feat: add app management, local inference controls, and task statistics

This commit is contained in:
mesalogo
2026-09-18 08:20:45 +08:00
parent 6dd6297414
commit bbae893c45
103 changed files with 7962 additions and 1490 deletions
+5
View File
@@ -39,6 +39,8 @@ import {
type AssistantHeartbeatRun,
type AssistantExpert,
type AssistantTask,
type ExecutionStats,
type ExecutionStatsInput,
type ActivityHistorySnapshot,
type ActivityRecord,
type TokenUsageSummary,
@@ -1744,6 +1746,7 @@ export type KnowledgeSearchReference = {
}
export type DesktopApi = {
localInference: import('./local-inference-contracts').LocalInferenceApi
storageUpgrade: {
getProgress: () => Promise<import('./assistant-storage-contracts').AssistantStorageProgress>
act: (action: 'retry' | 'quit') => Promise<void>
@@ -1907,6 +1910,7 @@ export type DesktopApi = {
}
updates?: {
getSettings: () => Promise<ApplicationSettings>
onSettingsChanged: (listener: (settings: ApplicationSettings) => void) => () => void
updateSettings: (
input: ApplicationSettingsUpdate
) => Promise<ApplicationSettings>
@@ -2107,6 +2111,7 @@ export type DesktopApi = {
}
tasks: {
list: () => Promise<AssistantTask[]>
getExecutionStats: (input: ExecutionStatsInput) => Promise<ExecutionStats>
setStatus: (
taskId: string,
status: Extract<AssistantTask['status'], 'completed' | 'cancelled'>