feat: add supervisor workspace and traceable story graph

Extend the existing heartbeat workspace with scoped work reviews, result-specific story graphs, source inspection, and pinned conversation or task feedback. Connect confirmed continuation and local knowledge entity previews through the desktop APIs, and preserve result history and user corrections in schema 43.

Include focused regression tests, an isolated visual fixture, and implementation evidence. Full event-by-event replay, Experiment targets, no-change handling, and cancellation remain incomplete; this commit does not claim complete feature acceptance. Existing automatic plans remain active when the application entry is disabled.

Release note: Review work progress in the Supervisor workspace, trace graph events to saved sources, and open a matching review from pinned conversation or task feedback.
This commit is contained in:
mesalogo
2026-09-23 13:49:13 +08:00
parent 785b1ee468
commit 7d487f9326
49 changed files with 5980 additions and 310 deletions
+13
View File
@@ -2191,6 +2191,19 @@ export type DesktopApi = {
entries: AssistantHeartbeatEntry[]
}>
}
supervision: {
overview: (input?: { target?: import('./supervision-contracts').SupervisionTarget }) => Promise<import('./supervision-contracts').SupervisionResultView[]>
run: (input: unknown) => Promise<unknown>
graph: (input?: import('./supervision-contracts').SupervisionGraphRequest) => Promise<Record<string, unknown>>
source: (sourceId: string) => Promise<Record<string, unknown> | undefined>
sourceContext: (sourceId: string) => Promise<Record<string, unknown>>
continueContext: (input: import('./supervision-contracts').SupervisionContinueContextRequest) => Promise<Record<string, unknown>>
continue: (input: import('./supervision-contracts').SupervisionContinueRequest) => Promise<void>
knowledgePreview: (input: import('./supervision-contracts').SupervisionKnowledgePreviewRequest) => Promise<Record<string, unknown>>
knowledgeCommit: (input: import('./supervision-contracts').SupervisionKnowledgeCommitRequest) => Promise<Record<string, unknown>>
entityAction: (input: import('./supervision-contracts').SupervisionEntityAction) => Promise<void>
relationAction: (input: import('./supervision-contracts').SupervisionRelationAction) => Promise<void>
}
experts: {
list: () => Promise<AssistantExpert[]>
create: (input: ExpertCreateInput) => Promise<AssistantExpert>