@wrongstack/webui 0.319.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AgentRosterView-BXURTwLP.js +12 -0
- package/dist/assets/AnalyticsDashboard-yAGcObTd.js +1 -0
- package/dist/assets/AudienceMemoryPanel-BwtB_jYJ.js +3 -0
- package/dist/assets/ChangesView-BgC27G9n.js +1 -0
- package/dist/assets/ChimeraReviewsView-BZ3kmsEA.js +1 -0
- package/dist/assets/ChronicleDashboard-DVor6J-y.js +1 -0
- package/dist/assets/CodeEditor-Dk2WJQks.js +2 -0
- package/dist/assets/CodeMap-CjWRQ37U.js +1 -0
- package/dist/assets/ConfirmModal-C_KAUjBK.js +1 -0
- package/dist/assets/CronJobsPanel-CGq8lhRJ.js +1 -0
- package/dist/assets/{DeadCodeScanPanel-DooqnEMF.js → DeadCodeScanPanel-CcPRcYm0.js} +1 -1
- package/dist/assets/DebugDashboard-B-aDaDrO.js +1 -0
- package/dist/assets/DesignGalleryView-Ex3zW5ci.js +1 -0
- package/dist/assets/GoalView-CBDc5nCD.js +1 -0
- package/dist/assets/KanbanView-azjPGLmM.js +3 -0
- package/dist/assets/MailboxDetailView-BXW9zqle.js +1 -0
- package/dist/assets/MemoryDrawer-CyN_6CRo.js +1 -0
- package/dist/assets/MemoryManager-BLu0rLEm.js +1 -0
- package/dist/assets/ModelPicker-CXQR8UbH.js +1 -0
- package/dist/assets/ProcessMonitor-CBIQkbLx.js +1 -0
- package/dist/assets/PromptJournalView-C6O40uTv.js +1 -0
- package/dist/assets/QueuePanel-CutrvgTH.js +1 -0
- package/dist/assets/RefreshDebugView-DDFD26EI.js +1 -0
- package/dist/assets/RequirementIntakeView-BpFyFOlB.js +1 -0
- package/dist/assets/SageTabs-Cx299O-q.js +2 -0
- package/dist/assets/SddFlowGraph-CJjawf9r.js +1 -0
- package/dist/assets/SddHub-CmSlkvkM.js +2 -0
- package/dist/assets/SessionInspectView-CtrlRlJu.js +1 -0
- package/dist/assets/SessionList-BWoK6Ro5.js +1 -0
- package/dist/assets/SessionsDashboard-7C6Fj9pK.js +1 -0
- package/dist/assets/SetupScreen-IzaqHJ_O.js +1 -0
- package/dist/assets/SkillDetailView-C5nOcysX.js +3 -0
- package/dist/assets/TechStackView-DkNjeYPK.js +2 -0
- package/dist/assets/TerminalPanel-CTr-KAnH.js +1 -0
- package/dist/assets/{activity-C7dkJqBU.js → activity-87Kr1xrI.js} +2 -2
- package/dist/assets/{activity-D1rp3dH9.js → activity-CCW2-qSA.js} +2 -2
- package/dist/assets/activity-CXLMCm4J.js +10 -0
- package/dist/assets/{activity-BU6MNvBJ.js → activity-CmzV075e.js} +2 -2
- package/dist/assets/{activity-C_18AaRY.js → activity-D2D6_ljD.js} +2 -2
- package/dist/assets/{activity-CpnSsE22.js → activity-Dt348P4m.js} +2 -2
- package/dist/assets/{activity-hTPcI4q1.js → activity-FxWZooaS.js} +2 -2
- package/dist/assets/button-rqi3MczV.js +1 -0
- package/dist/assets/chat-store-BbBGSliF.js +1 -0
- package/dist/assets/{codemap-activity-store-Br4b57a0.js → codemap-activity-store-CWi-Yd9Z.js} +1 -1
- package/dist/assets/codemap-index-store-3M7F08K_.js +1 -0
- package/dist/assets/dialog-xJxaQi60.js +1 -0
- package/dist/assets/empty-state-BxilAuC3.js +1 -0
- package/dist/assets/i18n-tRUjoMoU.js +2 -0
- package/dist/assets/index-BnpuNJ9u.js +144 -0
- package/dist/assets/input-ClZR-odw.js +1 -0
- package/dist/assets/{mailbox-store-B9DIvRgo.js → mailbox-store-yydAVjyj.js} +1 -1
- package/dist/assets/{markdown-Kp5uSgOw.js → markdown-BP6Z3HKc.js} +24 -24
- package/dist/assets/{monaco-BCqJp2xW.js → monaco-_kWjHrlo.js} +204 -204
- package/dist/assets/{monaco-theme-CR1QvFi2.js → monaco-theme-Dmx6JuoU.js} +1 -1
- package/dist/assets/react-core-BNmTiJ-I.js +9 -0
- package/dist/assets/{roster-ws-BQUI8QuW.js → roster-ws-B4xVrXos.js} +1 -1
- package/dist/assets/{settings-BGvRM3vJ.js → settings-B1vpPbTt.js} +1 -1
- package/dist/assets/{settings-D-LlBmzO.js → settings-BZnHCnGT.js} +1 -1
- package/dist/assets/{settings-1o1gooaL.js → settings-BcB2BIE2.js} +1 -1
- package/dist/assets/{settings-Cy_xp4Jt.js → settings-D9AQ5wLT2.js} +1 -1
- package/dist/assets/{settings-BV8EFmpH.js → settings-DiVpBZQ2.js} +1 -1
- package/dist/assets/{settings-nWMBX3xS.js → settings-DwbEJvxt.js} +1 -1
- package/dist/assets/settings-WuyKla3E.js +1 -0
- package/dist/assets/setup-B-xPcuTH.js +1 -0
- package/dist/assets/setup-B9oerXTs.js +1 -0
- package/dist/assets/setup-BWlr07i_.js +1 -0
- package/dist/assets/setup-CQ4-lz5u.js +1 -0
- package/dist/assets/setup-Cmq_aIjv.js +1 -0
- package/dist/assets/setup-DK5JTuqw.js +1 -0
- package/dist/assets/setup-qooXjj4V.js +1 -0
- package/dist/assets/shared-D8dubdNH.js +1 -0
- package/dist/assets/stores-B7GcARdp.js +7 -0
- package/dist/assets/ui-store-CLXDcLPI.js +1 -0
- package/dist/assets/useWebSocket-L5s7ggJm.js +27 -0
- package/dist/assets/{utils-DQ9Exx8j.js → utils-BpBOwXlT.js} +1 -1
- package/dist/assets/vector-memory-panel-BwPPCCbh.js +1 -0
- package/dist/assets/{vendor-BMdWcCR4.css → vendor-BShi5_Dg.css} +1 -1
- package/dist/assets/vendor-BshlG0z-.js +125 -0
- package/dist/assets/view-navigation-CvWJeGMc.js +1 -0
- package/dist/assets/vite-preload-Czpn1I53.js +1 -0
- package/dist/assets/ws-client-BR51gfnV.js +22 -0
- package/dist/assets/xyflow-BNn76cbK.js +7 -0
- package/dist/assets/xyflow-DLioOiRN.css +1 -0
- package/dist/components/AgentOfficeView/AgentLane.d.ts +10 -0
- package/dist/components/AgentOfficeView/BreakRoom.d.ts +10 -0
- package/dist/components/AgentOfficeView/ClientOfficeHeader.d.ts +6 -0
- package/dist/components/AgentOfficeView/OfficeBriefing.d.ts +8 -0
- package/dist/components/AgentOfficeView/parcels.d.ts +27 -0
- package/dist/components/AgentOfficeView.d.ts +2 -10
- package/dist/components/ChatInput/chat-input-bars.d.ts +30 -0
- package/dist/components/ChatInput/session-draft.d.ts +46 -0
- package/dist/components/ChatInput/use-chat-keydown.d.ts +21 -0
- package/dist/components/ChatInput/use-chat-submit.d.ts +40 -0
- package/dist/components/ChatInput/use-paste-drop.d.ts +1 -1
- package/dist/components/ChatInput.d.ts +3 -3
- package/dist/components/FileActivityDrawer/ContextTab.d.ts +21 -0
- package/dist/components/FileActivityDrawer/LogsTab.d.ts +13 -0
- package/dist/components/FileActivityDrawer/OverviewTab.d.ts +14 -0
- package/dist/components/FileActivityDrawer/SkeletonTab.d.ts +5 -0
- package/dist/components/FileActivityDrawer/types.d.ts +58 -0
- package/dist/components/FileActivityDrawer.d.ts +1 -40
- package/dist/components/MainViewSlot.d.ts +16 -0
- package/dist/components/MemoryManager/DeleteMemoryDialog.d.ts +3 -2
- package/dist/components/SettingsPanel/brain-section-options.d.ts +6 -0
- package/dist/components/ViewRouter.d.ts +12 -4
- package/dist/components/view-registry.d.ts +73 -0
- package/dist/hooks/useServerMessage.d.ts +71 -0
- package/dist/hooks/ws-handlers/session-context-handlers.d.ts +20 -0
- package/dist/index.css +788 -788
- package/dist/index.html +25 -25
- package/dist/index.js +81203 -80204
- package/dist/lib/platform.d.ts +40 -0
- package/dist/lib/view-navigation.d.ts +27 -2
- package/dist/lib/ws-client-auth.d.ts +17 -0
- package/dist/lib/ws-client-connection.d.ts +26 -0
- package/dist/lib/ws-client-contracts.d.ts +10 -0
- package/dist/lib/ws-client-echo.d.ts +46 -0
- package/dist/lib/ws-client-queue.d.ts +18 -0
- package/dist/lib/ws-client-session-methods.d.ts +54 -0
- package/dist/lib/ws-client-swap.d.ts +53 -0
- package/dist/lib/ws-client.d.ts +40 -71
- package/dist/stores/context-editor-store.d.ts +1 -1
- package/dist/stores/council-log-store.d.ts +6 -0
- package/dist/stores/session-tab-store.d.ts +8 -0
- package/dist/stores/types.d.ts +10 -1
- package/dist/stores/ui-store-chrome.d.ts +12 -0
- package/dist/stores/ui-store-persist.d.ts +4 -0
- package/dist/stores/ui-store-types.d.ts +379 -0
- package/dist/stores/ui-store.d.ts +7 -467
- package/dist/stores/viz-graph-helpers.d.ts +18 -0
- package/dist/stores/viz-pipeline.d.ts +7 -0
- package/dist/stores/viz-store.d.ts +3 -123
- package/dist/stores/viz-types.d.ts +124 -0
- package/dist/types/brain.d.ts +3 -0
- package/dist/types/client-message.d.ts +8 -0
- package/dist/types/runtime.d.ts +7 -0
- package/dist/types/sage.d.ts +7 -0
- package/dist/types/server-message-chimera.d.ts +161 -0
- package/dist/types/server-message-files.d.ts +195 -0
- package/dist/types/server-message-fleet.d.ts +148 -0
- package/dist/types/server-message-mcp.d.ts +199 -0
- package/dist/types/server-message-system.d.ts +399 -0
- package/dist/types/server-message.d.ts +12 -1098
- package/dist/types/skills-design.d.ts +7 -0
- package/dist/types/system.d.ts +16 -0
- package/package.json +9 -9
- package/dist/assets/AgentRosterView-VIctzKMy.js +0 -9
- package/dist/assets/AnalyticsDashboard-Dr67MeEY.js +0 -1
- package/dist/assets/AudienceMemoryPanel-DoaZfrjf.js +0 -3
- package/dist/assets/ChangesView-s7Mn7iE2.js +0 -1
- package/dist/assets/ChimeraReviewsView-Cverzv0b.js +0 -1
- package/dist/assets/ChronicleDashboard-CzqPfaPc.js +0 -1
- package/dist/assets/CodeEditor-DXQoTSH5.js +0 -2
- package/dist/assets/CodeMap-D34FOPgR.js +0 -1
- package/dist/assets/ConfirmModal-B6BGiiN8.js +0 -1
- package/dist/assets/CronJobsPanel-CenxuaN9.js +0 -1
- package/dist/assets/DebugDashboard-DWaUg6e1.js +0 -1
- package/dist/assets/DesignGalleryView-BKtjn4px.js +0 -1
- package/dist/assets/GoalView-BZ62_vF-.js +0 -1
- package/dist/assets/KanbanView-DsWnTpxr.js +0 -3
- package/dist/assets/MailboxDetailView-DS1P9DRT.js +0 -1
- package/dist/assets/MemoryDrawer-BJEY1v4P.js +0 -1
- package/dist/assets/MemoryManager-D-kuyTQe.js +0 -1
- package/dist/assets/ModelPicker-CLs0qQgg.js +0 -1
- package/dist/assets/OfficeMapPanel-BqoCcniD.js +0 -4
- package/dist/assets/ProcessMonitor-CHNNqCk9.js +0 -1
- package/dist/assets/PromptJournalView-Biu4DknM.js +0 -1
- package/dist/assets/QueuePanel-CzTXq6j4.js +0 -1
- package/dist/assets/RefreshDebugView-d9iU3sFX.js +0 -1
- package/dist/assets/RequirementIntakeView-BVyF2zXR.js +0 -1
- package/dist/assets/SageTabs-YASyEFo6.js +0 -2
- package/dist/assets/SddFlowGraph-Bj_Aqq5B.js +0 -1
- package/dist/assets/SddHub-rmGGEYZe.js +0 -2
- package/dist/assets/SessionInspectView-iaKkGAAM.js +0 -1
- package/dist/assets/SessionList-vmAS2Fg5.js +0 -1
- package/dist/assets/SessionsDashboard-x3iyhrGl.js +0 -1
- package/dist/assets/SetupScreen-huPJT0Bv.js +0 -1
- package/dist/assets/SkillDetailView-BcD9z7zG.js +0 -3
- package/dist/assets/SpecsView-ok8HZ8ws.js +0 -1
- package/dist/assets/TechStackView-DmMtwb4l.js +0 -2
- package/dist/assets/TerminalPanel-cbM6oQWQ.js +0 -1
- package/dist/assets/activity-CtTKsSX6.js +0 -10
- package/dist/assets/button-DNyYztcH.js +0 -1
- package/dist/assets/chat-store-oW_-zcJP.js +0 -1
- package/dist/assets/codemap-index-store-tSmlp7Uz.js +0 -1
- package/dist/assets/dialog-BTHxOi5z.js +0 -1
- package/dist/assets/empty-state-DBQN80mK.js +0 -1
- package/dist/assets/i18n-D06uU1PM.js +0 -2
- package/dist/assets/index-BQ7PJ-sA.js +0 -144
- package/dist/assets/input-CTGeYzNe.js +0 -1
- package/dist/assets/settings-Ci_RMpCQ.js +0 -1
- package/dist/assets/setup-B0D9CK3-.js +0 -1
- package/dist/assets/setup-B58YVaGU.js +0 -1
- package/dist/assets/setup-C2H9Uv0Q.js +0 -1
- package/dist/assets/setup-CzM4dkkU.js +0 -1
- package/dist/assets/setup-Di56FlHP.js +0 -1
- package/dist/assets/setup-Dwt58Mpz.js +0 -1
- package/dist/assets/setup-DznVdlJy.js +0 -1
- package/dist/assets/shared-CLfD85oZ.js +0 -1
- package/dist/assets/stores-C7Vvce-6.js +0 -7
- package/dist/assets/ui-store-Dm7ujR9u.js +0 -1
- package/dist/assets/useWebSocket-9lfOsI_r.js +0 -27
- package/dist/assets/vector-memory-panel-B4bQhdHe.js +0 -1
- package/dist/assets/vendor-enc0q-Va.js +0 -139
- package/dist/assets/view-navigation-wOKaM_Rf.js +0 -1
- package/dist/assets/ws-client-DtTZLD8e.js +0 -22
- /package/dist/assets/{OfficeMapPanel-Ce7myLNH.css → AgentRosterView-Ce7myLNH.css} +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type { BrainConfigWire } from './brain.js';
|
|
2
1
|
import type { ChronicleFacet, ChronicleFacetValue, ChronicleGraphResult, ChronicleMetricsResultPayload, ChronicleQueryResult, ChronicleStatus } from './chronicle.js';
|
|
3
2
|
import type { WSCollabAnnotationAdded, WSCollabAnnotationResolved, WSCollabEvent, WSCollabInjectionGranted, WSCollabParticipantJoined, WSCollabParticipantLeft, WSCollabPauseGranted, WSCollabPauseReleased, WSCollabState } from './collab.js';
|
|
4
3
|
import type { AutoHealStatusEvent, ConnectionsHealthReport, ServiceActionResult } from './connections.js';
|
|
5
4
|
import type { WSAgentStatusChanged, WSAgentTimelineMessage, WSEternalIteration, WSGoalAssessResult, WSGoalLifecycle, WSGoalList, WSGoalProgress, WSGoalState, WSKanbanResult, WSKanbanTaskActivity, WSModesList, WSWorktreeCleanupResult, WSWorktreeDiffResult, WSWorktreeEvent, WSWorktreeMergeResult, WSWorktreeOrphans, WSWorktreeState } from './goal-kanban-worktree.js';
|
|
6
|
-
import type {
|
|
5
|
+
import type { WSCodeMapToolExecuted, WSCodeMapToolStarted, WSIterationCompleted, WSIterationLimitReached, WSIterationStarted, WSProviderActiveBlocked, WSProviderAuditHistory, WSProviderError, WSProviderFallback, WSProviderFallbackPending, WSProviderResponse, WSProviderRetry, WSProviderStatusChanged, WSProviderStatusSnapshot, WSProviderStreamError, WSRunResult, WSSessionEnd, WSSessionResumeProgress, WSSessionRunState, WSSessionStart, WSTextDelta, WSThinkingDelta, WSToolExecuted, WSToolProgress, WSToolUseStart } from './protocol-core.js';
|
|
7
6
|
import type { WSCompactionFailed, WSContextCompacted, WSContextDebug, WSContextEditorApplied, WSContextEditorSnapshot, WSContextEditorValidation, WSContextMaxContext, WSContextModeChanged, WSContextModesList, WSContextPct, WSContextRepaired, WSDelegateCompleted, WSDelegateStarted, WSError, WSMemoryList, WSSessionStats, WSTokenCostEstimateUnavailable, WSTokenThreshold, WSToolConfirmNeeded, WSToolLoopDetected, WSToolsList, WSTopicAdviceResult, WSTrustPersisted } from './runtime.js';
|
|
8
7
|
import type { WSMemorySageBackfillRecoverable, WSMemorySageCandidateResolve, WSMemorySageDelete, WSMemorySageForFile, WSMemorySageGet, WSMemorySageGraph, WSMemorySageList, WSMemorySageListCandidates, WSMemorySageListPage, WSMemorySageRecover, WSMemorySageRemember, WSMemorySageSearchBreakdown, WSMemorySageUpdate } from './sage.js';
|
|
8
|
+
import type { WSChimeraServerMessage } from './server-message-chimera.js';
|
|
9
|
+
import type { WSFilesGitServerMessage } from './server-message-files.js';
|
|
10
|
+
import type { WSFleetServerMessage } from './server-message-fleet.js';
|
|
11
|
+
import type { WSMcpServerMessage } from './server-message-mcp.js';
|
|
12
|
+
import type { WSSystemMiscServerMessage } from './server-message-system.js';
|
|
9
13
|
import type { WSDesignList, WSDesignMaterialize, WSDesignSet, WSDesignState, WSDesignSwap, WSDesignTune, WSDesignUse, WSDesignVerify, WSSkillContent, WSSkillsCreated, WSSkillsEdited, WSSkillsExported, WSSkillsInstalled, WSSkillsList, WSSkillsUninstalled, WSSkillsUpdated } from './skills-design.js';
|
|
10
14
|
import type { WSAuthOAuthStatus, WSCatalogModelSearchResult, WSCompletionResult, WSDiagGet, WSFilesList, WSKeyOperationResult, WSModelSwitchResult, WSProviderCatalog, WSProviderModels, WSProviderProbe, WSSavedProviders, WSSessionInspect, WSSessionsList, WSSideEffects, WSStatsGet, WSTodosCleared, WSTodosUpdated } from './system.js';
|
|
11
15
|
export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSThinkingDelta | WSToolUseStart | WSToolProgress | WSToolExecuted | WSCodeMapToolStarted | WSCodeMapToolExecuted | WSIterationStarted | WSIterationCompleted | WSIterationLimitReached | WSProviderResponse | WSProviderRetry | WSProviderAuditHistory | WSProviderError | WSProviderFallback | WSProviderFallbackPending | WSProviderStatusChanged | WSProviderStatusSnapshot | WSProviderActiveBlocked | WSProviderStreamError | WSRunResult | WSSessionRunState | WSSessionResumeProgress | WSSessionStats | WSError | WSToolConfirmNeeded | WSTrustPersisted | WSToolLoopDetected | WSDelegateStarted | WSDelegateCompleted | WSContextDebug | WSContextCompacted | WSCompactionFailed | WSContextRepaired | WSContextEditorSnapshot | WSContextEditorValidation | WSContextEditorApplied | WSContextPct | WSTopicAdviceResult | WSContextMaxContext | WSTokenThreshold | WSTokenCostEstimateUnavailable | WSContextModesList | WSContextModeChanged | WSToolsList | WSMemoryList | WSMemorySageList | WSMemorySageListPage | WSMemorySageListCandidates | WSMemorySageGet | WSMemorySageGraph | WSMemorySageSearchBreakdown | WSMemorySageUpdate | WSMemorySageRemember | WSMemorySageDelete | WSMemorySageRecover | WSMemorySageCandidateResolve | WSMemorySageBackfillRecoverable | WSMemorySageForFile | WSSkillsList | WSSkillContent | WSDesignList | WSDesignUse | WSDesignState | WSDesignSet | WSDesignTune | WSDesignSwap | WSDesignMaterialize | WSDesignVerify | WSSkillsInstalled | WSSkillsUninstalled | WSSkillsUpdated | WSSkillsCreated | WSSkillsEdited | WSSkillsExported | WSDiagGet | WSStatsGet | {
|
|
@@ -58,1100 +62,10 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
|
|
|
58
62
|
payload: {
|
|
59
63
|
message: string;
|
|
60
64
|
};
|
|
61
|
-
} | WSSessionsList | WSSessionInspect | WSProviderCatalog | WSCatalogModelSearchResult | WSProviderModels | WSSavedProviders |
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
reason?: string | undefined;
|
|
68
|
-
};
|
|
69
|
-
} | WSProviderProbe | WSKeyOperationResult | WSModelSwitchResult | WSAuthOAuthStatus | WSFilesList | {
|
|
70
|
-
type: 'files.tree';
|
|
71
|
-
payload: {
|
|
72
|
-
root: string;
|
|
73
|
-
tree: unknown[];
|
|
74
|
-
error?: string | undefined;
|
|
75
|
-
sessionId?: string | undefined;
|
|
76
|
-
};
|
|
77
|
-
} | {
|
|
78
|
-
type: 'files.read';
|
|
79
|
-
payload: {
|
|
80
|
-
filePath: string;
|
|
81
|
-
content: string;
|
|
82
|
-
/** Server refused content: NUL byte detected (see handleFilesRead). */
|
|
83
|
-
binary?: boolean | undefined;
|
|
84
|
-
/** Server refused content: file exceeds the 2 MB display cap. */
|
|
85
|
-
tooLarge?: boolean | undefined;
|
|
86
|
-
error?: string | undefined;
|
|
87
|
-
sessionId?: string | undefined;
|
|
88
|
-
};
|
|
89
|
-
} | {
|
|
90
|
-
type: 'files.skeleton_result';
|
|
91
|
-
payload: {
|
|
92
|
-
filePath: string;
|
|
93
|
-
lang?: string | undefined;
|
|
94
|
-
skeleton: string;
|
|
95
|
-
stats?: {
|
|
96
|
-
originalLines: number;
|
|
97
|
-
skeletonLines: number;
|
|
98
|
-
tokenSavingsPercent: number;
|
|
99
|
-
symbolCount: number;
|
|
100
|
-
} | undefined;
|
|
101
|
-
error?: string | undefined;
|
|
102
|
-
};
|
|
103
|
-
} | {
|
|
104
|
-
type: 'files.written';
|
|
105
|
-
payload: {
|
|
106
|
-
filePath: string;
|
|
107
|
-
success: boolean;
|
|
108
|
-
error?: string | undefined;
|
|
109
|
-
sessionId?: string | undefined;
|
|
110
|
-
};
|
|
111
|
-
} | {
|
|
112
|
-
type: 'files.created';
|
|
113
|
-
payload: {
|
|
114
|
-
filePath: string;
|
|
115
|
-
success: boolean;
|
|
116
|
-
error?: string | undefined;
|
|
117
|
-
sessionId?: string | undefined;
|
|
118
|
-
};
|
|
119
|
-
} | {
|
|
120
|
-
type: 'files.deleted';
|
|
121
|
-
payload: {
|
|
122
|
-
filePath: string;
|
|
123
|
-
success: boolean;
|
|
124
|
-
error?: string | undefined;
|
|
125
|
-
sessionId?: string | undefined;
|
|
126
|
-
};
|
|
127
|
-
} | {
|
|
128
|
-
type: 'files.renamed';
|
|
129
|
-
payload: {
|
|
130
|
-
oldPath: string;
|
|
131
|
-
newPath: string;
|
|
132
|
-
success: boolean;
|
|
133
|
-
error?: string | undefined;
|
|
134
|
-
sessionId?: string | undefined;
|
|
135
|
-
};
|
|
136
|
-
} | {
|
|
137
|
-
type: 'files.moved';
|
|
138
|
-
payload: {
|
|
139
|
-
srcPath: string;
|
|
140
|
-
destPath: string;
|
|
141
|
-
success: boolean;
|
|
142
|
-
error?: string | undefined;
|
|
143
|
-
sessionId?: string | undefined;
|
|
144
|
-
};
|
|
145
|
-
} | WSCompletionResult | WSTodosUpdated | WSTodosCleared | {
|
|
146
|
-
type: 'tasks.updated';
|
|
147
|
-
payload: {
|
|
148
|
-
tasks: unknown[];
|
|
149
|
-
error?: string | undefined;
|
|
150
|
-
};
|
|
151
|
-
} | {
|
|
152
|
-
type: 'plan.updated';
|
|
153
|
-
payload: {
|
|
154
|
-
plan: unknown | null;
|
|
155
|
-
error?: string | undefined;
|
|
156
|
-
};
|
|
157
|
-
} | WSModesList | WSGoalState | WSGoalProgress | WSGoalLifecycle | WSGoalList | WSGoalAssessResult | {
|
|
158
|
-
type: 'specs.list';
|
|
159
|
-
payload: {
|
|
160
|
-
specs: unknown[];
|
|
161
|
-
};
|
|
162
|
-
} | {
|
|
163
|
-
type: 'specs.detail';
|
|
164
|
-
payload: Record<string, unknown>;
|
|
165
|
-
} | {
|
|
166
|
-
type: 'sdd.board.snapshot';
|
|
167
|
-
payload: Record<string, unknown> | null;
|
|
168
|
-
} | {
|
|
169
|
-
type: 'sdd.board.list';
|
|
170
|
-
payload: {
|
|
171
|
-
boards: unknown[];
|
|
172
|
-
};
|
|
173
|
-
} | {
|
|
174
|
-
type: 'sdd.board.lifecycle_result';
|
|
175
|
-
payload: {
|
|
176
|
-
op: 'cleanup_worktrees' | 'rollback' | 'destroy';
|
|
177
|
-
ok: boolean;
|
|
178
|
-
removed?: number;
|
|
179
|
-
reverted?: number;
|
|
180
|
-
deleted?: string[];
|
|
181
|
-
reason?: string;
|
|
182
|
-
};
|
|
183
|
-
} | {
|
|
184
|
-
type: 'sdd.spec.snapshot';
|
|
185
|
-
payload: Record<string, unknown>;
|
|
186
|
-
} | {
|
|
187
|
-
type: 'sdd.spec.agent_text';
|
|
188
|
-
payload: {
|
|
189
|
-
text: string;
|
|
190
|
-
};
|
|
191
|
-
} | {
|
|
192
|
-
type: 'sdd.spec.error';
|
|
193
|
-
payload: {
|
|
194
|
-
message: string;
|
|
195
|
-
};
|
|
196
|
-
} | {
|
|
197
|
-
type: 'sdd.run.started';
|
|
198
|
-
payload: {
|
|
199
|
-
runId: string;
|
|
200
|
-
graphId?: string;
|
|
201
|
-
specId?: string;
|
|
202
|
-
};
|
|
203
|
-
} | WSEternalIteration | WSAgentTimelineMessage | WSAgentStatusChanged | WSKanbanResult | WSKanbanTaskActivity | {
|
|
204
|
-
type: 'subagent.event';
|
|
205
|
-
payload: SessionScopedPayload & Record<string, unknown> & {
|
|
206
|
-
kind: string;
|
|
207
|
-
};
|
|
208
|
-
} | WSWorktreeState | WSWorktreeEvent | WSWorktreeOrphans | WSWorktreeCleanupResult | WSWorktreeMergeResult | WSWorktreeDiffResult | WSCollabState | WSCollabParticipantJoined | WSCollabParticipantLeft | WSCollabEvent | WSCollabAnnotationAdded | WSCollabAnnotationResolved | WSCollabPauseGranted | WSCollabPauseReleased | WSCollabInjectionGranted | {
|
|
209
|
-
type: 'session.checkpoints';
|
|
210
|
-
payload: {
|
|
211
|
-
checkpoints: Array<{
|
|
212
|
-
index: number;
|
|
213
|
-
iteration: number;
|
|
214
|
-
timestamp: string;
|
|
215
|
-
label: string;
|
|
216
|
-
messageCount: number;
|
|
217
|
-
tokens: number;
|
|
218
|
-
}>;
|
|
219
|
-
};
|
|
220
|
-
} | {
|
|
221
|
-
type: 'goal-state.updated';
|
|
222
|
-
payload: Record<string, unknown> | null;
|
|
223
|
-
} | {
|
|
224
|
-
type: 'prefs.updated';
|
|
225
|
-
payload: Record<string, unknown>;
|
|
226
|
-
} | {
|
|
227
|
-
type: 'system_prompt.info';
|
|
228
|
-
payload: WSSystemPromptInfo;
|
|
229
|
-
} | {
|
|
230
|
-
type: 'techstack.job.started';
|
|
231
|
-
payload: {
|
|
232
|
-
jobId: string;
|
|
233
|
-
kind: 'inventory' | 'analyze';
|
|
234
|
-
};
|
|
235
|
-
} | {
|
|
236
|
-
type: 'techstack.job.progress';
|
|
237
|
-
payload: {
|
|
238
|
-
jobId: string;
|
|
239
|
-
phase: string;
|
|
240
|
-
completed: number;
|
|
241
|
-
total: number;
|
|
242
|
-
};
|
|
243
|
-
} | {
|
|
244
|
-
type: 'techstack.workspace.completed';
|
|
245
|
-
payload: {
|
|
246
|
-
jobId: string;
|
|
247
|
-
workspaceId: string;
|
|
248
|
-
ecosystem: string;
|
|
249
|
-
dependencyCount: number;
|
|
250
|
-
};
|
|
251
|
-
} | {
|
|
252
|
-
type: 'techstack.snapshot.updated';
|
|
253
|
-
payload: {
|
|
254
|
-
snapshot: import('@/stores/techstack-store').TechStackSnapshot;
|
|
255
|
-
stale?: boolean | undefined;
|
|
256
|
-
};
|
|
257
|
-
} | {
|
|
258
|
-
type: 'techstack.report.ready';
|
|
259
|
-
payload: {
|
|
260
|
-
reportId: string;
|
|
261
|
-
summary?: string | undefined;
|
|
262
|
-
};
|
|
263
|
-
} | {
|
|
264
|
-
type: 'techstack.report.delivered';
|
|
265
|
-
payload: {
|
|
266
|
-
deliveryId: string;
|
|
267
|
-
sessionId: string;
|
|
268
|
-
};
|
|
269
|
-
} | {
|
|
270
|
-
type: 'techstack.job.failed';
|
|
271
|
-
payload: {
|
|
272
|
-
jobId: string;
|
|
273
|
-
error: string;
|
|
274
|
-
};
|
|
275
|
-
} | {
|
|
276
|
-
type: 'techstack.job.cancelled';
|
|
277
|
-
payload: {
|
|
278
|
-
jobId: string;
|
|
279
|
-
};
|
|
280
|
-
} | {
|
|
281
|
-
type: 'client.status_update';
|
|
282
|
-
payload: Record<string, unknown>;
|
|
283
|
-
} | {
|
|
284
|
-
type: 'sessions.status_update';
|
|
285
|
-
payload: {
|
|
286
|
-
sessions: unknown[];
|
|
287
|
-
};
|
|
288
|
-
} | {
|
|
289
|
-
type: 'chimera.report_available';
|
|
290
|
-
payload: {
|
|
291
|
-
reportId: string;
|
|
292
|
-
sessionId: string;
|
|
293
|
-
message: string;
|
|
294
|
-
fileCount: number;
|
|
295
|
-
findingCount: number;
|
|
296
|
-
hasActionableFindings: boolean;
|
|
297
|
-
messageId?: string | undefined;
|
|
298
|
-
};
|
|
299
|
-
} | {
|
|
300
|
-
type: 'mailbox.event';
|
|
301
|
-
payload: Record<string, unknown> & {
|
|
302
|
-
event: string;
|
|
303
|
-
};
|
|
304
|
-
} | {
|
|
305
|
-
type: 'mailbox.received';
|
|
306
|
-
payload: Record<string, unknown>;
|
|
307
|
-
} | {
|
|
308
|
-
type: 'mailbox.agent_registered';
|
|
309
|
-
payload: Record<string, unknown>;
|
|
310
|
-
} | {
|
|
311
|
-
type: 'mailbox.agent_deregistered';
|
|
312
|
-
payload: Record<string, unknown>;
|
|
313
|
-
} | {
|
|
314
|
-
type: 'mailbox.messages';
|
|
315
|
-
payload: {
|
|
316
|
-
messages: Array<Record<string, unknown>>;
|
|
317
|
-
error?: string | undefined;
|
|
318
|
-
};
|
|
319
|
-
} | {
|
|
320
|
-
type: 'mailbox.agents';
|
|
321
|
-
payload: {
|
|
322
|
-
agents: Array<Record<string, unknown>>;
|
|
323
|
-
error?: string | undefined;
|
|
324
|
-
};
|
|
325
|
-
} | {
|
|
326
|
-
type: 'mailbox.sent';
|
|
327
|
-
payload: {
|
|
328
|
-
requestId: string;
|
|
329
|
-
success: boolean;
|
|
330
|
-
messageId?: string | undefined;
|
|
331
|
-
to?: string | undefined;
|
|
332
|
-
audience?: 'all' | 'leaders' | undefined;
|
|
333
|
-
error?: string | undefined;
|
|
334
|
-
};
|
|
335
|
-
} | {
|
|
336
|
-
type: 'mailbox.action_result';
|
|
337
|
-
payload: {
|
|
338
|
-
requestId: string;
|
|
339
|
-
success: boolean;
|
|
340
|
-
action?: 'mark-read' | 'acknowledge' | 'reopen' | 'soft-delete' | undefined;
|
|
341
|
-
mailId?: string | undefined;
|
|
342
|
-
error?: string | undefined;
|
|
343
|
-
};
|
|
344
|
-
} | {
|
|
345
|
-
type: 'pong';
|
|
346
|
-
payload?: Record<string, unknown> | undefined;
|
|
347
|
-
} | {
|
|
348
|
-
type: 'process.list';
|
|
349
|
-
payload: {
|
|
350
|
-
sessionId?: string | undefined;
|
|
351
|
-
processes: Array<{
|
|
352
|
-
pid: number;
|
|
353
|
-
command: string;
|
|
354
|
-
tool: string;
|
|
355
|
-
startedAt: number;
|
|
356
|
-
status: 'running' | 'exited' | 'killed';
|
|
357
|
-
protected?: boolean | undefined;
|
|
358
|
-
background?: boolean | undefined;
|
|
359
|
-
sessionId?: string | undefined;
|
|
360
|
-
}>;
|
|
361
|
-
};
|
|
362
|
-
} | WSSideEffects | {
|
|
363
|
-
type: 'git.info';
|
|
364
|
-
payload: {
|
|
365
|
-
branch: string;
|
|
366
|
-
added: number;
|
|
367
|
-
deleted: number;
|
|
368
|
-
untracked: number;
|
|
369
|
-
behind: number;
|
|
370
|
-
ahead: number;
|
|
371
|
-
};
|
|
372
|
-
} | {
|
|
373
|
-
type: 'git.action_result';
|
|
374
|
-
payload: {
|
|
375
|
-
action: 'stage' | 'unstage' | 'discard' | 'commit';
|
|
376
|
-
ok: boolean;
|
|
377
|
-
paths?: string[] | undefined;
|
|
378
|
-
message?: string | undefined;
|
|
379
|
-
error?: string | undefined;
|
|
380
|
-
};
|
|
381
|
-
} | {
|
|
382
|
-
type: 'git.changes';
|
|
383
|
-
payload: {
|
|
384
|
-
files: Array<{
|
|
385
|
-
path: string;
|
|
386
|
-
status: string;
|
|
387
|
-
added: number;
|
|
388
|
-
deleted: number;
|
|
389
|
-
staged: boolean;
|
|
390
|
-
}>;
|
|
391
|
-
/**
|
|
392
|
-
* Aggregate status per directory (repo-relative keys): the
|
|
393
|
-
* highest-ranked child status, computed server-side — replaces the
|
|
394
|
-
* old client-side prefix-scan heuristic in FileExplorer.
|
|
395
|
-
*/
|
|
396
|
-
dirs?: Record<string, string> | undefined;
|
|
397
|
-
/** Repo→project path prefix ('' when equal) — see repoRelativePrefix. */
|
|
398
|
-
repoPrefix?: string | undefined;
|
|
399
|
-
error?: string | undefined;
|
|
400
|
-
};
|
|
401
|
-
} | {
|
|
402
|
-
type: 'git.diff';
|
|
403
|
-
payload: {
|
|
404
|
-
path: string;
|
|
405
|
-
oldText?: string | undefined;
|
|
406
|
-
newText?: string | undefined;
|
|
407
|
-
binary?: boolean | undefined;
|
|
408
|
-
tooLarge?: boolean | undefined;
|
|
409
|
-
error?: string | undefined;
|
|
410
|
-
};
|
|
411
|
-
} | {
|
|
412
|
-
type: 'projects.list';
|
|
413
|
-
payload: {
|
|
414
|
-
projects: Array<{
|
|
415
|
-
name: string;
|
|
416
|
-
root: string;
|
|
417
|
-
slug: string;
|
|
418
|
-
lastSeen?: string | undefined;
|
|
419
|
-
}>;
|
|
420
|
-
};
|
|
421
|
-
} | {
|
|
422
|
-
type: 'projects.added';
|
|
423
|
-
payload: {
|
|
424
|
-
name: string;
|
|
425
|
-
root: string;
|
|
426
|
-
slug: string;
|
|
427
|
-
message: string;
|
|
428
|
-
};
|
|
429
|
-
} | {
|
|
430
|
-
type: 'projects.selected';
|
|
431
|
-
payload: {
|
|
432
|
-
root: string;
|
|
433
|
-
name: string;
|
|
434
|
-
message: string;
|
|
435
|
-
};
|
|
436
|
-
} | {
|
|
437
|
-
type: 'working_dir.changed';
|
|
438
|
-
payload: {
|
|
439
|
-
cwd: string;
|
|
440
|
-
projectRoot: string;
|
|
441
|
-
};
|
|
442
|
-
} | {
|
|
443
|
-
type: 'brain.status';
|
|
444
|
-
payload: {
|
|
445
|
-
maxAutoRisk: string;
|
|
446
|
-
log: Array<{
|
|
447
|
-
at: number;
|
|
448
|
-
kind: string;
|
|
449
|
-
question: string;
|
|
450
|
-
outcome: string;
|
|
451
|
-
}>;
|
|
452
|
-
/** Enrichment fields — present when the server wires a BrainRuntime. */
|
|
453
|
-
mode?: 'headless' | 'interactive' | undefined;
|
|
454
|
-
poolLabels?: string[] | undefined;
|
|
455
|
-
councilLabels?: string[] | undefined;
|
|
456
|
-
/** EFFECTIVE council judge — undefined when no council is wired. */
|
|
457
|
-
judgeLabel?: string | undefined;
|
|
458
|
-
/** True when that judge is also a seated voter (correlated tie-break). */
|
|
459
|
-
judgeIsVoter?: boolean | undefined;
|
|
460
|
-
ledgerPath?: string | undefined;
|
|
461
|
-
};
|
|
462
|
-
} | {
|
|
463
|
-
type: 'brain.config';
|
|
464
|
-
payload: {
|
|
465
|
-
config: BrainConfigWire;
|
|
466
|
-
persisted: boolean;
|
|
467
|
-
error?: string | undefined;
|
|
468
|
-
};
|
|
469
|
-
} | {
|
|
470
|
-
type: 'brain.answer';
|
|
471
|
-
payload: SessionScopedPayload & {
|
|
472
|
-
question: string;
|
|
473
|
-
decision: {
|
|
474
|
-
type: string;
|
|
475
|
-
optionId?: string | undefined;
|
|
476
|
-
text?: string | undefined;
|
|
477
|
-
rationale?: string | undefined;
|
|
478
|
-
reason?: string | undefined;
|
|
479
|
-
prompt?: string | undefined;
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
} | {
|
|
483
|
-
type: 'brain.event';
|
|
484
|
-
payload: SessionScopedPayload & Record<string, unknown> & {
|
|
485
|
-
event: string;
|
|
486
|
-
};
|
|
487
|
-
} | {
|
|
488
|
-
type: 'memory.event';
|
|
489
|
-
payload: SessionScopedPayload & Record<string, unknown> & {
|
|
490
|
-
event: string;
|
|
491
|
-
};
|
|
492
|
-
} | {
|
|
493
|
-
type: 'file.saved';
|
|
494
|
-
payload: SessionScopedPayload & {
|
|
495
|
-
filePath: string;
|
|
496
|
-
};
|
|
497
|
-
} | {
|
|
498
|
-
type: 'codemap.file_event';
|
|
499
|
-
payload: SessionScopedPayload & {
|
|
500
|
-
filePath: string;
|
|
501
|
-
operation: 'read' | 'write' | 'edit' | 'delete' | 'rename';
|
|
502
|
-
phase: 'started' | 'completed' | 'changed';
|
|
503
|
-
source: 'tool' | 'editor' | 'deterministic' | 'watcher' | 'external';
|
|
504
|
-
at: number;
|
|
505
|
-
traceId?: string | undefined;
|
|
506
|
-
agentId?: string | undefined;
|
|
507
|
-
agentName?: string | undefined;
|
|
508
|
-
toolUseId?: string | undefined;
|
|
509
|
-
toolName?: string | undefined;
|
|
510
|
-
line?: number | undefined;
|
|
511
|
-
endLine?: number | undefined;
|
|
512
|
-
};
|
|
513
|
-
} | {
|
|
514
|
-
type: 'codemap.index_updated';
|
|
515
|
-
payload: {
|
|
516
|
-
at: number;
|
|
517
|
-
ready: boolean;
|
|
518
|
-
reason: 'index_complete';
|
|
519
|
-
};
|
|
520
|
-
} | {
|
|
521
|
-
type: 'session.damaged';
|
|
522
|
-
payload: {
|
|
523
|
-
sessionId: string;
|
|
524
|
-
detail: string;
|
|
525
|
-
};
|
|
526
|
-
} | {
|
|
527
|
-
type: 'session.rewound';
|
|
528
|
-
payload: SessionScopedPayload & {
|
|
529
|
-
toPromptIndex: number;
|
|
530
|
-
revertedFiles: string[];
|
|
531
|
-
removedEvents: number;
|
|
532
|
-
};
|
|
533
|
-
} | {
|
|
534
|
-
type: 'checkpoint.written';
|
|
535
|
-
payload: SessionScopedPayload & {
|
|
536
|
-
promptIndex: number;
|
|
537
|
-
promptPreview: string;
|
|
538
|
-
ts: string;
|
|
539
|
-
fileCount: number;
|
|
540
|
-
};
|
|
541
|
-
} | {
|
|
542
|
-
type: 'in_flight.started';
|
|
543
|
-
payload: SessionScopedPayload & {
|
|
544
|
-
context: string;
|
|
545
|
-
ts: string;
|
|
546
|
-
};
|
|
547
|
-
} | {
|
|
548
|
-
type: 'in_flight.ended';
|
|
549
|
-
payload: SessionScopedPayload & {
|
|
550
|
-
reason: 'clean' | 'aborted' | 'recovered';
|
|
551
|
-
ts: string;
|
|
552
|
-
};
|
|
553
|
-
} | {
|
|
554
|
-
type: 'model.refine_result';
|
|
555
|
-
payload: {
|
|
556
|
-
refined: string;
|
|
557
|
-
english: string;
|
|
558
|
-
error?: string | undefined;
|
|
559
|
-
/** Machine-readable failure class driving client recovery (undefined on success). */
|
|
560
|
-
errorKind?: 'timeout' | 'empty' | 'provider_error' | undefined;
|
|
561
|
-
/** Suggested window (ms) for a retry after a timeout. */
|
|
562
|
-
retryTimeoutMs?: number | undefined;
|
|
563
|
-
/** One-key "retry with another model" offer (provider/model), if any. */
|
|
564
|
-
fallbackRef?: string | undefined;
|
|
565
|
-
/** The provider/model that produced this result (echoes an ephemeral retry). */
|
|
566
|
-
refinedWith?: {
|
|
567
|
-
provider: string;
|
|
568
|
-
model: string;
|
|
569
|
-
} | undefined;
|
|
570
|
-
};
|
|
571
|
-
} | {
|
|
572
|
-
type: 'coordinator.status';
|
|
573
|
-
payload: {
|
|
574
|
-
status: 'idle' | 'running' | 'draining' | 'stopped';
|
|
575
|
-
mode?: string;
|
|
576
|
-
subagentCount?: number;
|
|
577
|
-
taskQueue?: {
|
|
578
|
-
pending: number;
|
|
579
|
-
running: number;
|
|
580
|
-
completed: number;
|
|
581
|
-
failed: number;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
} | {
|
|
585
|
-
type: 'coordinator.stats';
|
|
586
|
-
payload: SessionScopedPayload & {
|
|
587
|
-
total: number;
|
|
588
|
-
running: number;
|
|
589
|
-
idle: number;
|
|
590
|
-
stopped: number;
|
|
591
|
-
inFlight: number;
|
|
592
|
-
pending: number;
|
|
593
|
-
completed: number;
|
|
594
|
-
subagentStatuses?: Array<{
|
|
595
|
-
id: string;
|
|
596
|
-
name: string;
|
|
597
|
-
status: string;
|
|
598
|
-
currentTask?: string;
|
|
599
|
-
}>;
|
|
600
|
-
};
|
|
601
|
-
} | {
|
|
602
|
-
type: 'fleet.concurrency_update';
|
|
603
|
-
payload: SessionScopedPayload & {
|
|
604
|
-
fleetConcurrency: number;
|
|
605
|
-
fleetConcurrencyMax: number;
|
|
606
|
-
maxSpawns?: number;
|
|
607
|
-
usedSpawns?: number;
|
|
608
|
-
remainingSpawns?: number;
|
|
609
|
-
maxSpawnsSource?: string;
|
|
610
|
-
maxConcurrentSource?: string;
|
|
611
|
-
effectiveSource?: string;
|
|
612
|
-
checkpointMaxSpawns?: number;
|
|
613
|
-
ceilingMismatch?: boolean;
|
|
614
|
-
};
|
|
615
|
-
} | {
|
|
616
|
-
type: 'budget.threshold_reached';
|
|
617
|
-
payload: SessionScopedPayload & {
|
|
618
|
-
subagentId: string;
|
|
619
|
-
taskId?: string;
|
|
620
|
-
ts: number;
|
|
621
|
-
kind: string;
|
|
622
|
-
used: number;
|
|
623
|
-
limit: number;
|
|
624
|
-
timeoutMs: number;
|
|
625
|
-
};
|
|
626
|
-
} | {
|
|
627
|
-
type: 'budget.decision';
|
|
628
|
-
payload: {
|
|
629
|
-
subagentId: string;
|
|
630
|
-
kind: string;
|
|
631
|
-
decision: 'extend' | 'deny';
|
|
632
|
-
extended?: {
|
|
633
|
-
timeoutMs?: number;
|
|
634
|
-
maxIterations?: number;
|
|
635
|
-
maxToolCalls?: number;
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
} | {
|
|
639
|
-
type: 'subagent.budget_extended';
|
|
640
|
-
payload: {
|
|
641
|
-
subagentId: string;
|
|
642
|
-
kind: string;
|
|
643
|
-
extendedMs?: number;
|
|
644
|
-
extendedTo?: number;
|
|
645
|
-
};
|
|
646
|
-
} | {
|
|
647
|
-
type: 'consensus.vote_initiated';
|
|
648
|
-
payload: {
|
|
649
|
-
changeId: string;
|
|
650
|
-
title: string;
|
|
651
|
-
eligible: Array<{
|
|
652
|
-
agentId: string;
|
|
653
|
-
agentName: string;
|
|
654
|
-
}>;
|
|
655
|
-
};
|
|
656
|
-
} | {
|
|
657
|
-
type: 'consensus.vote_cast';
|
|
658
|
-
payload: {
|
|
659
|
-
changeId: string;
|
|
660
|
-
voterId: string;
|
|
661
|
-
value: 'approve' | 'reject' | 'abstain';
|
|
662
|
-
};
|
|
663
|
-
} | {
|
|
664
|
-
type: 'consensus.vote_resolved';
|
|
665
|
-
payload: {
|
|
666
|
-
changeId: string;
|
|
667
|
-
result: 'approved' | 'rejected' | 'vetoed' | 'quorum_not_met';
|
|
668
|
-
approveCount: number;
|
|
669
|
-
rejectCount: number;
|
|
670
|
-
};
|
|
671
|
-
} | {
|
|
672
|
-
type: 'task.pending';
|
|
673
|
-
payload: {
|
|
674
|
-
taskId: string;
|
|
675
|
-
description: string;
|
|
676
|
-
priority?: number;
|
|
677
|
-
};
|
|
678
|
-
} | {
|
|
679
|
-
type: 'task.started';
|
|
680
|
-
payload: {
|
|
681
|
-
taskId: string;
|
|
682
|
-
subagentId: string;
|
|
683
|
-
};
|
|
684
|
-
} | {
|
|
685
|
-
type: 'task.completed';
|
|
686
|
-
payload: {
|
|
687
|
-
taskId: string;
|
|
688
|
-
subagentId: string;
|
|
689
|
-
status: string;
|
|
690
|
-
durationMs: number;
|
|
691
|
-
};
|
|
692
|
-
} | {
|
|
693
|
-
type: 'task.failed';
|
|
694
|
-
payload: {
|
|
695
|
-
taskId: string;
|
|
696
|
-
subagentId: string;
|
|
697
|
-
error: string;
|
|
698
|
-
};
|
|
699
|
-
} | {
|
|
700
|
-
type: 'tool.disabled';
|
|
701
|
-
payload: {
|
|
702
|
-
name: string;
|
|
703
|
-
ok: boolean;
|
|
704
|
-
};
|
|
705
|
-
} | {
|
|
706
|
-
type: 'tool.enabled';
|
|
707
|
-
payload: {
|
|
708
|
-
name: string;
|
|
709
|
-
ok: boolean;
|
|
710
|
-
};
|
|
711
|
-
} | {
|
|
712
|
-
type: 'config.doctor.result';
|
|
713
|
-
payload: {
|
|
714
|
-
success: boolean;
|
|
715
|
-
applied: boolean;
|
|
716
|
-
changed: boolean;
|
|
717
|
-
changes: Array<{
|
|
718
|
-
path: string;
|
|
719
|
-
action: 'added' | 'replaced';
|
|
720
|
-
}>;
|
|
721
|
-
configPath: string;
|
|
722
|
-
backupPath?: string;
|
|
723
|
-
error?: string;
|
|
724
|
-
};
|
|
725
|
-
} | {
|
|
726
|
-
type: 'mcp.list';
|
|
727
|
-
payload: {
|
|
728
|
-
servers: Array<{
|
|
729
|
-
name: string;
|
|
730
|
-
transport: string;
|
|
731
|
-
status: string;
|
|
732
|
-
enabled: boolean;
|
|
733
|
-
description?: string;
|
|
734
|
-
tools?: string[];
|
|
735
|
-
error?: string;
|
|
736
|
-
pid?: number;
|
|
737
|
-
lazy?: boolean;
|
|
738
|
-
command?: string;
|
|
739
|
-
args?: string[];
|
|
740
|
-
env?: Record<string, string>;
|
|
741
|
-
url?: string;
|
|
742
|
-
health?: {
|
|
743
|
-
healthState: 'disabled' | 'dormant' | 'connecting' | 'healthy' | 'degraded' | 'failed';
|
|
744
|
-
consecutiveFailures: number;
|
|
745
|
-
failures: {
|
|
746
|
-
transport: number;
|
|
747
|
-
protocol: number;
|
|
748
|
-
tool: number;
|
|
749
|
-
};
|
|
750
|
-
reconnectCount: number;
|
|
751
|
-
wakeCount: number;
|
|
752
|
-
sleepCount: number;
|
|
753
|
-
restartCount: number;
|
|
754
|
-
inFlightCalls: number;
|
|
755
|
-
peakInFlightCalls: number;
|
|
756
|
-
callLatency: {
|
|
757
|
-
count: number;
|
|
758
|
-
lastMs?: number;
|
|
759
|
-
p50Ms?: number;
|
|
760
|
-
p95Ms?: number;
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
}>;
|
|
764
|
-
};
|
|
765
|
-
} | {
|
|
766
|
-
type: 'mcp.server.added';
|
|
767
|
-
payload: {
|
|
768
|
-
server: {
|
|
769
|
-
name: string;
|
|
770
|
-
transport: string;
|
|
771
|
-
status: string;
|
|
772
|
-
enabled: boolean;
|
|
773
|
-
description?: string;
|
|
774
|
-
tools?: string[];
|
|
775
|
-
lazy?: boolean;
|
|
776
|
-
command?: string;
|
|
777
|
-
args?: string[];
|
|
778
|
-
env?: Record<string, string>;
|
|
779
|
-
url?: string;
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
|
-
} | {
|
|
783
|
-
type: 'mcp.server.removed';
|
|
784
|
-
payload: {
|
|
785
|
-
name: string;
|
|
786
|
-
};
|
|
787
|
-
} | {
|
|
788
|
-
type: 'mcp.server.updated';
|
|
789
|
-
payload: {
|
|
790
|
-
server: {
|
|
791
|
-
name: string;
|
|
792
|
-
transport: string;
|
|
793
|
-
status: string;
|
|
794
|
-
enabled: boolean;
|
|
795
|
-
description?: string;
|
|
796
|
-
tools?: string[];
|
|
797
|
-
lazy?: boolean;
|
|
798
|
-
command?: string;
|
|
799
|
-
args?: string[];
|
|
800
|
-
env?: Record<string, string>;
|
|
801
|
-
url?: string;
|
|
802
|
-
};
|
|
803
|
-
};
|
|
804
|
-
} | {
|
|
805
|
-
type: 'mcp.server.discovered';
|
|
806
|
-
payload: {
|
|
807
|
-
name: string;
|
|
808
|
-
tools: string[];
|
|
809
|
-
};
|
|
810
|
-
} | {
|
|
811
|
-
type: 'mcp.server.sleeping';
|
|
812
|
-
payload: {
|
|
813
|
-
name: string;
|
|
814
|
-
};
|
|
815
|
-
} | {
|
|
816
|
-
type: 'mcp.server.waking';
|
|
817
|
-
payload: {
|
|
818
|
-
name: string;
|
|
819
|
-
};
|
|
820
|
-
} | {
|
|
821
|
-
type: 'mcp.server.connected';
|
|
822
|
-
payload: {
|
|
823
|
-
name: string;
|
|
824
|
-
pid?: number;
|
|
825
|
-
toolCount?: number;
|
|
826
|
-
};
|
|
827
|
-
} | {
|
|
828
|
-
type: 'mcp.server.reconnected';
|
|
829
|
-
payload: {
|
|
830
|
-
name: string;
|
|
831
|
-
toolCount: number;
|
|
832
|
-
};
|
|
833
|
-
} | {
|
|
834
|
-
type: 'mcp.server.disconnected';
|
|
835
|
-
payload: {
|
|
836
|
-
name: string;
|
|
837
|
-
reason: string;
|
|
838
|
-
};
|
|
839
|
-
} | {
|
|
840
|
-
type: 'mcp.server.error';
|
|
841
|
-
payload: {
|
|
842
|
-
name: string;
|
|
843
|
-
error: string;
|
|
844
|
-
};
|
|
845
|
-
} | {
|
|
846
|
-
type: 'mcp.operation_result';
|
|
847
|
-
payload: {
|
|
848
|
-
success: boolean;
|
|
849
|
-
message: string;
|
|
850
|
-
};
|
|
851
|
-
} | {
|
|
852
|
-
type: 'mcp.resources';
|
|
853
|
-
payload: {
|
|
854
|
-
name: string;
|
|
855
|
-
resources: Array<{
|
|
856
|
-
uri: string;
|
|
857
|
-
name: string;
|
|
858
|
-
description?: string;
|
|
859
|
-
mimeType?: string;
|
|
860
|
-
size?: number;
|
|
861
|
-
}>;
|
|
862
|
-
resourceTemplates: Array<{
|
|
863
|
-
uriTemplate: string;
|
|
864
|
-
name: string;
|
|
865
|
-
description?: string;
|
|
866
|
-
mimeType?: string;
|
|
867
|
-
}>;
|
|
868
|
-
};
|
|
869
|
-
} | {
|
|
870
|
-
type: 'mcp.prompts';
|
|
871
|
-
payload: {
|
|
872
|
-
name: string;
|
|
873
|
-
prompts: Array<{
|
|
874
|
-
name: string;
|
|
875
|
-
description?: string;
|
|
876
|
-
arguments?: Array<{
|
|
877
|
-
name: string;
|
|
878
|
-
description?: string;
|
|
879
|
-
required?: boolean;
|
|
880
|
-
}>;
|
|
881
|
-
}>;
|
|
882
|
-
};
|
|
883
|
-
} | {
|
|
884
|
-
type: 'mcp.content.selected';
|
|
885
|
-
payload: {
|
|
886
|
-
kind: 'resource' | 'prompt';
|
|
887
|
-
untrusted: true;
|
|
888
|
-
byteSize: number;
|
|
889
|
-
provenance: {
|
|
890
|
-
origin: 'mcp';
|
|
891
|
-
serverName: string;
|
|
892
|
-
capability: 'resource' | 'prompt';
|
|
893
|
-
resourceUri?: string;
|
|
894
|
-
promptName?: string;
|
|
895
|
-
promptArgumentNames?: string[];
|
|
896
|
-
};
|
|
897
|
-
contents?: unknown[];
|
|
898
|
-
messages?: unknown[];
|
|
899
|
-
description?: string;
|
|
900
|
-
};
|
|
901
|
-
} | {
|
|
902
|
-
type: 'mcp.content.error';
|
|
903
|
-
payload: {
|
|
904
|
-
action: string;
|
|
905
|
-
name: string;
|
|
906
|
-
error: string;
|
|
907
|
-
};
|
|
908
|
-
} | {
|
|
909
|
-
type: 'mailbox.cleared';
|
|
910
|
-
payload: {
|
|
911
|
-
error?: string | undefined;
|
|
912
|
-
};
|
|
913
|
-
} | {
|
|
914
|
-
type: 'mailbox.purged';
|
|
915
|
-
payload: Record<string, unknown> & {
|
|
916
|
-
error?: string | undefined;
|
|
917
|
-
};
|
|
918
|
-
} | {
|
|
919
|
-
type: 'chimera.reports';
|
|
920
|
-
payload: {
|
|
921
|
-
sessionId: string;
|
|
922
|
-
isQuery?: boolean | undefined;
|
|
923
|
-
reports: Array<{
|
|
924
|
-
reportId: string;
|
|
925
|
-
sessionId?: string | undefined;
|
|
926
|
-
agentId?: string | undefined;
|
|
927
|
-
reviewedAt: string;
|
|
928
|
-
reviewerModel?: string | undefined;
|
|
929
|
-
source?: string | undefined;
|
|
930
|
-
reviewStatus?: 'success' | 'failed' | undefined;
|
|
931
|
-
lifecycleStatus: string;
|
|
932
|
-
counts?: {
|
|
933
|
-
critical: number;
|
|
934
|
-
high: number;
|
|
935
|
-
medium: number;
|
|
936
|
-
low: number;
|
|
937
|
-
} | undefined;
|
|
938
|
-
totalFindings: number;
|
|
939
|
-
fileCount?: number | undefined;
|
|
940
|
-
durationSeconds?: number | undefined;
|
|
941
|
-
cascadeDepth?: number | undefined;
|
|
942
|
-
evidenceStatus?: string | undefined;
|
|
943
|
-
hasActionableFindings?: boolean | undefined;
|
|
944
|
-
}>;
|
|
945
|
-
};
|
|
946
|
-
} | {
|
|
947
|
-
type: 'chimera.report.detail';
|
|
948
|
-
payload: {
|
|
949
|
-
report: {
|
|
950
|
-
id: string;
|
|
951
|
-
reviewedAt: string;
|
|
952
|
-
sessionId: string;
|
|
953
|
-
agentId: string;
|
|
954
|
-
reviewerModel: string;
|
|
955
|
-
source: string;
|
|
956
|
-
reviewStatus: 'success' | 'failed';
|
|
957
|
-
lifecycle: string;
|
|
958
|
-
files: Array<{
|
|
959
|
-
path: string;
|
|
960
|
-
status: string;
|
|
961
|
-
}>;
|
|
962
|
-
counts: {
|
|
963
|
-
critical: number;
|
|
964
|
-
high: number;
|
|
965
|
-
medium: number;
|
|
966
|
-
low: number;
|
|
967
|
-
};
|
|
968
|
-
totalFindings: number;
|
|
969
|
-
unparseableCount: number;
|
|
970
|
-
durationSeconds?: number | undefined;
|
|
971
|
-
rawText: string;
|
|
972
|
-
cascadeDepth?: number | undefined;
|
|
973
|
-
evidenceStatus?: string | undefined;
|
|
974
|
-
evidenceChecks?: Array<{
|
|
975
|
-
name: string;
|
|
976
|
-
command: string;
|
|
977
|
-
ok: boolean;
|
|
978
|
-
claimedExitCode?: number | null;
|
|
979
|
-
actualExitCode?: number | null;
|
|
980
|
-
}> | undefined;
|
|
981
|
-
} | null;
|
|
982
|
-
findings: Array<{
|
|
983
|
-
finding: {
|
|
984
|
-
id: string;
|
|
985
|
-
fingerprint: string;
|
|
986
|
-
severity: 'critical' | 'high' | 'medium' | 'low';
|
|
987
|
-
source: string;
|
|
988
|
-
location?: {
|
|
989
|
-
file: string;
|
|
990
|
-
line?: number | undefined;
|
|
991
|
-
} | undefined;
|
|
992
|
-
category?: string | undefined;
|
|
993
|
-
confidence?: string | undefined;
|
|
994
|
-
verification?: {
|
|
995
|
-
status: string;
|
|
996
|
-
reason: string;
|
|
997
|
-
evidence?: string | undefined;
|
|
998
|
-
} | undefined;
|
|
999
|
-
title: string;
|
|
1000
|
-
description: string;
|
|
1001
|
-
suggestedFix?: string | undefined;
|
|
1002
|
-
createdAt: string;
|
|
1003
|
-
status: string;
|
|
1004
|
-
resolution?: {
|
|
1005
|
-
outcome: string;
|
|
1006
|
-
resolvedAt: string;
|
|
1007
|
-
resolvedBy: string;
|
|
1008
|
-
commitSha?: string | undefined;
|
|
1009
|
-
notes?: string | undefined;
|
|
1010
|
-
} | undefined;
|
|
1011
|
-
originReport: {
|
|
1012
|
-
reportId: string;
|
|
1013
|
-
sessionId: string;
|
|
1014
|
-
agentId: string;
|
|
1015
|
-
reviewerModel: string;
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
events: Array<{
|
|
1019
|
-
id: string;
|
|
1020
|
-
findingId: string;
|
|
1021
|
-
eventType: string;
|
|
1022
|
-
fromStatus: string | null;
|
|
1023
|
-
toStatus: string;
|
|
1024
|
-
actorId: string;
|
|
1025
|
-
actorKind: string;
|
|
1026
|
-
timestamp: string;
|
|
1027
|
-
reason?: string | undefined;
|
|
1028
|
-
}>;
|
|
1029
|
-
}>;
|
|
1030
|
-
events: Array<{
|
|
1031
|
-
id: string;
|
|
1032
|
-
reportId: string;
|
|
1033
|
-
eventType: string;
|
|
1034
|
-
fromLifecycle: string | null;
|
|
1035
|
-
toLifecycle: string;
|
|
1036
|
-
actorId: string;
|
|
1037
|
-
actorKind: string;
|
|
1038
|
-
timestamp: string;
|
|
1039
|
-
reason?: string | undefined;
|
|
1040
|
-
}>;
|
|
1041
|
-
error?: string | undefined;
|
|
1042
|
-
};
|
|
1043
|
-
} | {
|
|
1044
|
-
type: 'chimera.report.updated';
|
|
1045
|
-
payload: {
|
|
1046
|
-
reportId: string;
|
|
1047
|
-
lifecycle?: string | undefined;
|
|
1048
|
-
success: boolean;
|
|
1049
|
-
error?: string | undefined;
|
|
1050
|
-
};
|
|
1051
|
-
} | {
|
|
1052
|
-
type: 'chimera.report.note_added';
|
|
1053
|
-
payload: {
|
|
1054
|
-
reportId: string;
|
|
1055
|
-
success: boolean;
|
|
1056
|
-
error?: string | undefined;
|
|
1057
|
-
};
|
|
1058
|
-
} | {
|
|
1059
|
-
type: 'chimera.finding.updated';
|
|
1060
|
-
payload: {
|
|
1061
|
-
findingId: string;
|
|
1062
|
-
status?: string | undefined;
|
|
1063
|
-
success: boolean;
|
|
1064
|
-
error?: string | undefined;
|
|
1065
|
-
};
|
|
1066
|
-
} | {
|
|
1067
|
-
type: 'cron.snapshot';
|
|
1068
|
-
payload: {
|
|
1069
|
-
count: number;
|
|
1070
|
-
maxConcurrent: number;
|
|
1071
|
-
jobs: Array<{
|
|
1072
|
-
name: string;
|
|
1073
|
-
intervalMs: number;
|
|
1074
|
-
action: string;
|
|
1075
|
-
enabled: boolean;
|
|
1076
|
-
lastRun: string | null;
|
|
1077
|
-
nextRun: string;
|
|
1078
|
-
runCount: number;
|
|
1079
|
-
overdue: boolean;
|
|
1080
|
-
}>;
|
|
1081
|
-
};
|
|
1082
|
-
} | {
|
|
1083
|
-
type: 'cron.job_fired';
|
|
1084
|
-
payload: {
|
|
1085
|
-
name: string;
|
|
1086
|
-
action: string;
|
|
1087
|
-
runCount: number;
|
|
1088
|
-
ts: string;
|
|
1089
|
-
};
|
|
1090
|
-
} | {
|
|
1091
|
-
type: 'terminal.output';
|
|
1092
|
-
payload: {
|
|
1093
|
-
id: string;
|
|
1094
|
-
data: string;
|
|
1095
|
-
};
|
|
1096
|
-
} | {
|
|
1097
|
-
type: 'terminal.exit';
|
|
1098
|
-
payload: {
|
|
1099
|
-
id: string;
|
|
1100
|
-
exitCode: number;
|
|
1101
|
-
signal?: number | undefined;
|
|
1102
|
-
};
|
|
1103
|
-
} | {
|
|
1104
|
-
type: 'prompts.journal';
|
|
1105
|
-
payload: WSPromptsJournalPayload;
|
|
1106
|
-
};
|
|
1107
|
-
/** One entry from the hierarchical prompt journal (mirrors core `PromptJournalEntry`). */
|
|
1108
|
-
export interface WSPromptJournalEntry {
|
|
1109
|
-
id: string;
|
|
1110
|
-
timestamp: string;
|
|
1111
|
-
sessionId: string;
|
|
1112
|
-
projectRoot: string;
|
|
1113
|
-
role: 'user' | 'system' | 'assistant' | 'tool';
|
|
1114
|
-
category: string;
|
|
1115
|
-
content: string;
|
|
1116
|
-
rawContent?: string | undefined;
|
|
1117
|
-
metadata: {
|
|
1118
|
-
model?: string | undefined;
|
|
1119
|
-
provider?: string | undefined;
|
|
1120
|
-
iterationIndex?: number | undefined;
|
|
1121
|
-
tokenEstimate: number;
|
|
1122
|
-
characterCount: number;
|
|
1123
|
-
lineCount: number;
|
|
1124
|
-
activeTools?: string[] | undefined;
|
|
1125
|
-
contextFiles?: string[] | undefined;
|
|
1126
|
-
durationMs?: number | undefined;
|
|
1127
|
-
decisionReason?: string | undefined;
|
|
1128
|
-
tags?: string[] | undefined;
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
export interface WSPromptsJournalPayload {
|
|
1132
|
-
enabled: boolean;
|
|
1133
|
-
entries: WSPromptJournalEntry[];
|
|
1134
|
-
error?: string | undefined;
|
|
1135
|
-
}
|
|
1136
|
-
/** One selectable identity-prompt size, with its upper-bound token estimate. */
|
|
1137
|
-
export interface WSSystemPromptVariantInfo {
|
|
1138
|
-
variant: 'lite' | 'default' | 'pro';
|
|
1139
|
-
label: string;
|
|
1140
|
-
hint: string;
|
|
1141
|
-
tokens: number;
|
|
1142
|
-
}
|
|
1143
|
-
/**
|
|
1144
|
-
* Payload of `system_prompt.info`.
|
|
1145
|
-
*
|
|
1146
|
-
* `chosen` is false until the user has explicitly picked a variant at least
|
|
1147
|
-
* once — the config loader materializes a default variant for every config, so
|
|
1148
|
-
* this flag is the only way the browser can tell a fresh install from a
|
|
1149
|
-
* deliberate "Standard" and decide whether to open the picker unprompted.
|
|
1150
|
-
*/
|
|
1151
|
-
export interface WSSystemPromptInfo {
|
|
1152
|
-
current: 'lite' | 'default' | 'pro';
|
|
1153
|
-
chosen: boolean;
|
|
1154
|
-
variants: WSSystemPromptVariantInfo[];
|
|
1155
|
-
error?: string | undefined;
|
|
1156
|
-
}
|
|
65
|
+
} | WSSessionsList | WSSessionInspect | WSProviderCatalog | WSCatalogModelSearchResult | WSProviderModels | WSSavedProviders | WSProviderProbe | WSKeyOperationResult | WSModelSwitchResult | WSAuthOAuthStatus | WSFilesList | WSFilesGitServerMessage | WSCompletionResult | WSTodosUpdated | WSTodosCleared | WSModesList | WSGoalState | WSGoalProgress | WSGoalLifecycle | WSGoalList | WSGoalAssessResult | WSEternalIteration | WSAgentTimelineMessage | WSAgentStatusChanged | WSKanbanResult | WSKanbanTaskActivity | WSWorktreeState | WSWorktreeEvent | WSWorktreeOrphans | WSWorktreeCleanupResult | WSWorktreeMergeResult | WSWorktreeDiffResult | WSCollabState | WSCollabParticipantJoined | WSCollabParticipantLeft | WSCollabEvent | WSCollabAnnotationAdded | WSCollabAnnotationResolved | WSCollabPauseGranted | WSCollabPauseReleased | WSCollabInjectionGranted | WSSideEffects | WSMcpServerMessage | WSChimeraServerMessage | WSFleetServerMessage | WSSystemMiscServerMessage;
|
|
66
|
+
export type { WSChimeraServerMessage } from './server-message-chimera.js';
|
|
67
|
+
export type { WSFilesGitServerMessage } from './server-message-files.js';
|
|
68
|
+
export type { WSFleetServerMessage } from './server-message-fleet.js';
|
|
69
|
+
export type { WSMcpServerMessage } from './server-message-mcp.js';
|
|
70
|
+
export type { WSPromptJournalEntry, WSPromptsJournalPayload, WSSystemMiscServerMessage, WSSystemPromptInfo, WSSystemPromptVariantInfo, } from './server-message-system.js';
|
|
1157
71
|
//# sourceMappingURL=server-message.d.ts.map
|