feat: add persistent desktop assistant workspace

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
lofyer
2026-07-31 22:33:03 +08:00
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent 698a15ad14
commit 6ef1795b81
101 changed files with 31866 additions and 1176 deletions
+33
View File
@@ -0,0 +1,33 @@
import type {
AgentEvent,
AgentRuntimeStatus
} from '../../shared/contracts'
import type {
AgentExecutionRequest,
AgentRuntime
} from './runtime'
export class UnconfiguredAgentRuntime implements AgentRuntime {
readonly requiresToolApproval = false
getStatus(): Promise<AgentRuntimeStatus> {
return Promise.resolve({
id: 'setup',
label: '需要配置模型',
available: false,
detail: '请在设置中选择并配置可用的模型或 Agent Runtime'
})
}
async *run(
request: AgentExecutionRequest
): AsyncGenerator<AgentEvent, void, void> {
yield {
requestId: request.requestId,
type: 'error',
message: '请先完成模型与 Agent Runtime 配置'
}
}
async dispose(): Promise<void> {}
}