feat(companion): add direct disconnect metadata getters

This commit is contained in:
William Valentin
2026-02-16 23:32:50 -08:00
parent 6821e3779f
commit 809000b6c6
7 changed files with 83 additions and 11 deletions
+24
View File
@@ -300,6 +300,14 @@ export class MacOSCompanionClient {
return this.runtime.idle;
}
get lastDisconnectCode(): number | undefined {
return this.runtime.lastDisconnectCode;
}
get lastDisconnectReason(): string | undefined {
return this.runtime.lastDisconnectReason;
}
getPendingWorkSnapshot(): PendingWorkSnapshot {
return this.runtime.getPendingWorkSnapshot();
}
@@ -578,6 +586,14 @@ export class IOSCompanionClient {
return this.runtime.idle;
}
get lastDisconnectCode(): number | undefined {
return this.runtime.lastDisconnectCode;
}
get lastDisconnectReason(): string | undefined {
return this.runtime.lastDisconnectReason;
}
getPendingWorkSnapshot(): PendingWorkSnapshot {
return this.runtime.getPendingWorkSnapshot();
}
@@ -854,6 +870,14 @@ export class AndroidCompanionClient {
return this.runtime.idle;
}
get lastDisconnectCode(): number | undefined {
return this.runtime.lastDisconnectCode;
}
get lastDisconnectReason(): string | undefined {
return this.runtime.lastDisconnectReason;
}
getPendingWorkSnapshot(): PendingWorkSnapshot {
return this.runtime.getPendingWorkSnapshot();
}