This commit is contained in:
2026-09-11 14:20:57 -04:00
parent 275a44975f
commit 78cb03e6cb
22 changed files with 248 additions and 25 deletions
+3 -1
View File
@@ -16,9 +16,11 @@ export class ComputerUseSession {
this.stepsUsed = 0;
this.sessionId = `cu_${this.clock().toString(36)}`;
this.expiresAt = this.clock() + 3 * 60 * 1000;
return { session_id: this.sessionId, restore_token_present: Boolean(persist), monitors };
return { session_id: this.sessionId, restore_token_present: Boolean(persist), monitors, backend: this.backend };
}
setBackend(backend) { this.backend = ['portal-ei', 'ydotool', 'none'].includes(backend) ? backend : 'none'; return this.backend; }
revoke() {
this.active = false;
this.sessionId = null;