feat(desktop): attest and manage the owned Windows host lifecycle

This commit is contained in:
Agent Workbench Dev
2026-10-31 09:03:01 +08:00
parent e634a252dd
commit 249f191ebc
32 changed files with 1765 additions and 70 deletions
+5
View File
@@ -179,6 +179,11 @@ export class ModelHub {
} finally { this.waiting--; }
}
async complete(config, body, signal, onProgress, plan, execute) {
const operation = this.provider.requestOperation?.(signal);
try { return await this.completeOwned(config, body, operation?.signal ?? signal, onProgress, plan, execute); }
finally { operation?.finish(); }
}
async completeOwned(config, body, signal, onProgress, plan, execute) {
const routing = config.modelRouting, excluded = new Set(), deadline = Date.now() + Math.min(routing.queueTimeoutMs, 60000);
const requestId = plan?.id ?? randomUUID(), runId = plan?.runId ?? requestId;
let lastError;