@wrongstack/webui 0.313.1 → 0.316.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-CESYPVXA.js +9 -0
- package/dist/assets/AnalyticsDashboard-zDBIqTxO.js +1 -0
- package/dist/assets/AudienceMemoryPanel-BnNJ0EhQ.js +3 -0
- package/dist/assets/ChangesView-CGwCocSR.js +1 -0
- package/dist/assets/ChimeraReviewsView-CFxZwJBI.js +1 -0
- package/dist/assets/ChronicleDashboard-DKiMK5nl.js +1 -0
- package/dist/assets/CodeEditor-CZcMPNTH.js +2 -0
- package/dist/assets/CodeMap-zPUlmh5G.js +1 -0
- package/dist/assets/ConfirmModal-CUGk-0lT.js +1 -0
- package/dist/assets/{CronJobsPanel-BzH_InFe.js → CronJobsPanel-C_wutCVP.js} +1 -1
- package/dist/assets/{DeadCodeScanPanel-Dj-5SAEE.js → DeadCodeScanPanel-DCCjg17Q.js} +2 -2
- package/dist/assets/{DebugDashboard-C-lpnxsJ.js → DebugDashboard-D-ogYAbO.js} +1 -1
- package/dist/assets/DesignGalleryView-CtlHZWOn.js +1 -0
- package/dist/assets/GoalView-Czksj2nD.js +1 -0
- package/dist/assets/KanbanView-C5_GD0qk.js +3 -0
- package/dist/assets/MailboxDetailView-2rWp3cTv.js +1 -0
- package/dist/assets/MemoryDrawer-D9Chtt6v.js +1 -0
- package/dist/assets/MemoryManager-Bj41s3KW.js +1 -0
- package/dist/assets/ModelPicker-vwrqLOL4.js +1 -0
- package/dist/assets/OfficeMapPanel-BfuePIGH.js +4 -0
- package/dist/assets/ProcessMonitor-CHPTCtyu.js +1 -0
- package/dist/assets/PromptJournalView-tOTjKpi8.js +1 -0
- package/dist/assets/QueuePanel-BIwoG-tG.js +1 -0
- package/dist/assets/RefreshDebugView-DesPEAAq.js +1 -0
- package/dist/assets/RequirementIntakeView-BonXC1a5.js +1 -0
- package/dist/assets/SageTabs-82lpgRh-.js +2 -0
- package/dist/assets/SddFlowGraph-CMedulJi.js +1 -0
- package/dist/assets/SddHub-D3Gm4Io2.js +2 -0
- package/dist/assets/SessionInspectView-BUs2B4mF.js +1 -0
- package/dist/assets/SessionList-DxQgJqgl.js +1 -0
- package/dist/assets/SessionsDashboard-JtwQf-N5.js +1 -0
- package/dist/assets/SetupScreen-XFBFjPbd.js +1 -0
- package/dist/assets/SkillDetailView-C_P_-783.js +3 -0
- package/dist/assets/{SpecsView-B9Aj1qpe.js → SpecsView-D6GqoZ2L.js} +1 -1
- package/dist/assets/TechStackView-BE4tdEYZ.js +2 -0
- package/dist/assets/TerminalPanel-BcizpYrZ.js +1 -0
- package/dist/assets/activity-B2_Vr2oD.js +10 -0
- package/dist/assets/activity-BF1idM4Y.js +10 -0
- package/dist/assets/activity-C-kOJZXC.js +10 -0
- package/dist/assets/activity-DPpMW8BU.js +10 -0
- package/dist/assets/activity-DYMBKGt0.js +10 -0
- package/dist/assets/activity-IxgYWPDt.js +10 -0
- package/dist/assets/activity-q85HXQNv.js +10 -0
- package/dist/assets/{button-Dhmop_yM.js → button-C_EYpeP-.js} +1 -1
- package/dist/assets/{chat-CR2B97dj.js → chat-B5a3cvps.js} +1 -1
- package/dist/assets/{chat-DResBrkV.js → chat-B60h8Cji.js} +1 -1
- package/dist/assets/{chat-BnkVCZ3Q.js → chat-BNWqeV-N.js} +1 -1
- package/dist/assets/chat-BlllxfpP.js +1 -0
- package/dist/assets/{chat-BfQBSiII.js → chat-BvKkSd09.js} +1 -1
- package/dist/assets/{chat-BPuAsrkF.js → chat-DTI7lNDx.js} +1 -1
- package/dist/assets/{chat-Di8o0wDz.js → chat-DlhXGxxi.js} +1 -1
- package/dist/assets/chat-store-x5w4ss_D.js +1 -0
- package/dist/assets/{codemap-activity-store-BWt_a7Gs.js → codemap-activity-store-ZCXcHlwd.js} +1 -1
- package/dist/assets/codemap-index-store-Cb5mn74P.js +1 -0
- package/dist/assets/{dialog-DPl7DolS.js → dialog-9eW9sG90.js} +1 -1
- package/dist/assets/{empty-state-IT10GzRA.js → empty-state-DJb_tw7Q.js} +1 -1
- package/dist/assets/i18n-DkMSw3tI.js +2 -0
- package/dist/assets/index-BSpLtv9S.css +1 -0
- package/dist/assets/index-CTyM4bm8.js +137 -0
- package/dist/assets/{input-C3rIQ26u.js → input-CsEvo8Oo.js} +1 -1
- package/dist/assets/{mailbox-store-DhAVkVJQ.js → mailbox-store-KHcrg_Fm.js} +1 -1
- package/dist/assets/{roster-ws-Ch6O90eT.js → roster-ws-CXnrEaEu.js} +1 -1
- package/dist/assets/settings-1o1gooaL.js +1 -0
- package/dist/assets/settings-BGvRM3vJ.js +1 -0
- package/dist/assets/{settings-BV1_j8_-.js → settings-BV8EFmpH.js} +1 -1
- package/dist/assets/settings-Ci_RMpCQ.js +1 -0
- package/dist/assets/settings-Cy_xp4Jt.js +1 -0
- package/dist/assets/settings-D-LlBmzO.js +1 -0
- package/dist/assets/settings-nWMBX3xS.js +1 -0
- package/dist/assets/{shared-BUXBOqyO.js → shared-sYlGVRJI.js} +1 -1
- package/dist/assets/stores-5ynEAenb.js +7 -0
- package/dist/assets/toasts-BsmyGP95.js +1 -0
- package/dist/assets/toasts-CgXHu8ZB.js +1 -0
- package/dist/assets/toasts-DZ6HdKgG.js +1 -0
- package/dist/assets/toasts-DizCJjAR.js +1 -0
- package/dist/assets/toasts-NC2MT4uN.js +1 -0
- package/dist/assets/toasts-bPl097de.js +1 -0
- package/dist/assets/toasts-tCVo15mP.js +1 -0
- package/dist/assets/ui-store-9b7zzi3V.js +1 -0
- package/dist/assets/useWebSocket-1kxFH7f8.js +27 -0
- package/dist/assets/utils-DIo8iytt.js +1 -0
- package/dist/assets/{vector-memory-panel-CBA4CK6N.js → vector-memory-panel-Dd3jXXYA.js} +1 -1
- package/dist/assets/{vendor-DZ9_OO6N.js → vendor-UFryhfbN.js} +30 -30
- package/dist/assets/view-navigation-ICwpL9qw.js +1 -0
- package/dist/assets/ws-client-Ccf_VLRQ.js +22 -0
- package/dist/components/AgentOfficeView/model.d.ts +4 -3
- package/dist/components/AgentRosterView.d.ts +8 -1
- package/dist/components/ChatInput/composer-button-bar.d.ts +6 -2
- package/dist/components/ChatInput/image-attachments.d.ts +2 -1
- package/dist/components/ChatInput/next-steps-helpers.d.ts +0 -16
- package/dist/components/ChatInput/refine-panel-host.d.ts +2 -2
- package/dist/components/ChatInput/session-effort-select.d.ts +16 -0
- package/dist/components/ChatInput/slash-commands.d.ts +2 -1
- package/dist/components/ChatInput/slash-routing.d.ts +8 -0
- package/dist/components/ChatInput/use-chat-input-mcp.d.ts +2 -1
- package/dist/components/ChatInput/use-paste-drop.d.ts +2 -1
- package/dist/components/ChatInput/use-refine-timeout.d.ts +2 -1
- package/dist/components/ChatInput/use-speech-recognition.d.ts +9 -0
- package/dist/components/ChatView/AgentTabs.d.ts +1 -1
- package/dist/components/ChatView/BrainDecisionCard.d.ts +9 -0
- package/dist/components/ChatView/ChatHeader.d.ts +3 -3
- package/dist/components/ChatView/ChatRowView.d.ts +3 -1
- package/dist/components/ChatView/ChimeraReportCard.d.ts +22 -0
- package/dist/components/ChatView/CouncilDecisionCard.d.ts +9 -0
- package/dist/components/ChatView/auto-collapse.d.ts +2 -1
- package/dist/components/ChatView/useChatViewState.d.ts +14 -28
- package/dist/components/ChatView/utils.d.ts +2 -1
- package/dist/components/ChimeraReviewsView.d.ts +2 -0
- package/dist/components/CodeMapActivityStreamPanel.d.ts +2 -1
- package/dist/components/CodeMapDirectoryTree.d.ts +2 -1
- package/dist/components/CodeMapLiveOverlay.d.ts +0 -3
- package/dist/components/CodeMapSelectedNodeSummary.d.ts +2 -1
- package/dist/components/CollabPanel.d.ts +2 -7
- package/dist/components/ConfirmModal.d.ts +6 -13
- package/dist/components/CronJobsPanel.d.ts +2 -1
- package/dist/components/CustomRosterPanel.d.ts +0 -1
- package/dist/components/DependencyGraph.d.ts +2 -1
- package/dist/components/FileActivityDrawer.d.ts +2 -2
- package/dist/components/FileExplorer/FileExplorerModals.d.ts +11 -6
- package/dist/components/FileExplorer/TreeRow.d.ts +2 -6
- package/dist/components/FileExplorer/tree-helpers.d.ts +7 -0
- package/dist/components/FleetPanel.d.ts +4 -13
- package/dist/components/InspectorPanel.d.ts +6 -1
- package/dist/components/KanbanBoardSidebar.d.ts +2 -1
- package/dist/components/KanbanBoardState.d.ts +1 -1
- package/dist/components/KanbanContractGraphView.d.ts +3 -2
- package/dist/components/KanbanQueueHealthBar.d.ts +2 -1
- package/dist/components/KanbanTaskActivityRecorder.d.ts +2 -1
- package/dist/components/MemoryManager/MemoryDetail.d.ts +2 -1
- package/dist/components/MemoryManager/MemoryEditor.d.ts +2 -1
- package/dist/components/MemoryManager/MemoryFilters.d.ts +2 -1
- package/dist/components/MemoryManager/MemoryList.d.ts +2 -1
- package/dist/components/MemoryManager/MemorySearchBreakdown.d.ts +2 -1
- package/dist/components/MemoryManager/ReviewQueue.d.ts +2 -1
- package/dist/components/MemoryManager/SageTabs.d.ts +2 -1
- package/dist/components/MemoryManager/shared.d.ts +0 -1
- package/dist/components/MessageBubble/FailedRunContinue.d.ts +12 -0
- package/dist/components/MessageBubble/utils.d.ts +6 -0
- package/dist/components/ModelPickDialog.d.ts +1 -1
- package/dist/components/ModelSelectDialog.d.ts +4 -3
- package/dist/components/NextStepsBar.d.ts +1 -6
- package/dist/components/NotificationMenu.d.ts +6 -0
- package/dist/components/OfficeMapCanvas/edges.d.ts +0 -6
- package/dist/components/OfficeMapCanvas/nodes.d.ts +0 -32
- package/dist/components/OfficeMapCanvas/use-recently-finished.d.ts +2 -1
- package/dist/components/OfficeMapCanvas/utils.d.ts +4 -10
- package/dist/components/ProcessMonitor.d.ts +2 -1
- package/dist/components/ProviderWaitingRoom.d.ts +8 -0
- package/dist/components/QueuePanel.d.ts +1 -1
- package/dist/components/QuickModelSwitcher.filter.d.ts +23 -7
- package/dist/components/RestoreTabsModal.d.ts +20 -0
- package/dist/components/SddFlowGraph.d.ts +3 -2
- package/dist/components/SessionTabBar/TabMap.d.ts +19 -0
- package/dist/components/SessionTabBar/summaries.d.ts +39 -0
- package/dist/components/SessionTabBar.d.ts +14 -0
- package/dist/components/SettingsPanel/ClearAllowlistDialog.d.ts +2 -1
- package/dist/components/SettingsPanel/ModelCatalogPicker.d.ts +2 -14
- package/dist/components/SettingsPanel/ModelEffortSelect.d.ts +12 -0
- package/dist/components/SettingsPanel/ModelListEditor.d.ts +2 -1
- package/dist/components/SettingsPanel/ModelSchemaEditor.d.ts +2 -1
- package/dist/components/SettingsPanel/ModelSection.d.ts +3 -1
- package/dist/components/SettingsPanel/ModelTiersSection.d.ts +7 -0
- package/dist/components/SettingsPanel/OAuthLoginSection.d.ts +2 -2
- package/dist/components/SettingsPanel/PluginToggleList.d.ts +3 -1
- package/dist/components/SettingsPanel/ProviderModelsPanel.d.ts +2 -1
- package/dist/components/SettingsPanel/ProviderModelsPanel.filter.d.ts +2 -1
- package/dist/components/SettingsPanel/ProviderSection.d.ts +2 -2
- package/dist/components/SettingsPanel/ToolsSection.d.ts +0 -10
- package/dist/components/SettingsPanel/brain-section-options.d.ts +3 -10
- package/dist/components/SettingsPanel/contracts.d.ts +5 -3
- package/dist/components/SettingsPanel/sync-settings-preference.d.ts +8 -0
- package/dist/components/SettingsPanel/undo-send-decision.d.ts +2 -1
- package/dist/components/SidePanel/ChangesPanel.d.ts +0 -6
- package/dist/components/SidePanel/DesignStudioPanel.d.ts +7 -0
- package/dist/components/SidePanel/SessionList.d.ts +6 -6
- package/dist/components/SystemPromptDialog.d.ts +18 -0
- package/dist/components/TaskActivityTimeline.d.ts +3 -3
- package/dist/components/TaskBoard.d.ts +1 -1
- package/dist/components/TaskCard.d.ts +2 -7
- package/dist/components/TaskExecutionAttempts.d.ts +2 -1
- package/dist/components/TaskIntelligencePanel.d.ts +1 -1
- package/dist/components/TaskRiskPanel.d.ts +4 -3
- package/dist/components/TechStackView/DependencyDetail.d.ts +2 -1
- package/dist/components/TechStackView/DependencyTable.d.ts +2 -1
- package/dist/components/TechStackView/FindingsPanel.d.ts +2 -1
- package/dist/components/TechStackView/TechStackToolbar.d.ts +2 -1
- package/dist/components/TechStackView/shared.d.ts +5 -5
- package/dist/components/Toaster.d.ts +3 -31
- package/dist/components/ToolStatsModal.d.ts +15 -0
- package/dist/components/UpdateBanner.d.ts +6 -4
- package/dist/components/WorkbenchTopbar.d.ts +1 -3
- package/dist/components/agent-roster-data.d.ts +1 -1
- package/dist/components/agents/AgentDetailSection.d.ts +2 -1
- package/dist/components/agents/AgentRosterCard.d.ts +2 -1
- package/dist/components/agents/FleetSummaryBar.d.ts +6 -3
- package/dist/components/codemap-model.d.ts +3 -2
- package/dist/components/ui/PickerCardList.d.ts +3 -2
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/concurrency-gauge.d.ts +2 -1
- package/dist/components/ui/dialog.d.ts +5 -5
- package/dist/components/ui/dropdown-menu.d.ts +8 -8
- package/dist/components/ui/event-timeline.d.ts +2 -1
- package/dist/components/ui/fleet-agent-row.d.ts +2 -7
- package/dist/components/ui/scroll-area.d.ts +2 -2
- package/dist/components/ui/sheet.d.ts +2 -2
- package/dist/components/ui/sparkline.d.ts +2 -1
- package/dist/components/vector-memory-panel/model.d.ts +2 -7
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDesktopBridge.d.ts +2 -1
- package/dist/hooks/useF5Resilience.d.ts +0 -14
- package/dist/hooks/useFleetPolling.d.ts +2 -1
- package/dist/hooks/useGlobalKeyboardShortcuts.d.ts +4 -1
- package/dist/hooks/useIntegrationStatus.d.ts +10 -0
- package/dist/hooks/useKanbanMeta.d.ts +4 -3
- package/dist/hooks/useLiveContextDebug.d.ts +4 -3
- package/dist/hooks/useMemoryForFile.d.ts +3 -2
- package/dist/hooks/usePagination.d.ts +2 -1
- package/dist/hooks/useProviderModels.d.ts +1 -0
- package/dist/hooks/useSessionSubscription.d.ts +15 -0
- package/dist/hooks/useViewport.d.ts +2 -3
- package/dist/hooks/useWebSocket.d.ts +6 -1
- package/dist/hooks/ws-handlers/chat-handlers.d.ts +22 -10
- package/dist/hooks/ws-handlers/coordinator-handlers.d.ts +7 -0
- package/dist/hooks/ws-handlers/files-mailbox-handlers.d.ts +1 -3
- package/dist/hooks/ws-handlers/misc-handlers.d.ts +22 -0
- package/dist/hooks/ws-handlers/session-context-handlers.d.ts +24 -2
- package/dist/hooks/ws-handlers/session-execution-handlers.d.ts +12 -0
- package/dist/hooks/ws-handlers/session-handlers.d.ts +3 -3
- package/dist/hooks/ws-handlers/session-replay-handlers.d.ts +31 -2
- package/dist/hooks/ws-handlers/techstack-handlers.d.ts +0 -3
- package/dist/index.html +30 -26
- package/dist/index.js +77572 -66789
- package/dist/lib/agent-office.d.ts +3 -3
- package/dist/lib/agent-session.d.ts +19 -0
- package/dist/lib/agent-status.d.ts +5 -4
- package/dist/lib/completion.d.ts +3 -2
- package/dist/lib/delegate-format.d.ts +33 -0
- package/dist/lib/favicon.d.ts +2 -1
- package/dist/lib/kanban-verification.d.ts +3 -2
- package/dist/lib/model-matrix-routes.d.ts +3 -3
- package/dist/lib/plugin-enablement.d.ts +1 -1
- package/dist/lib/reasoning-effort.d.ts +76 -0
- package/dist/lib/sdd-theme.d.ts +4 -3
- package/dist/lib/task-brief-preview.d.ts +5 -0
- package/dist/lib/terminal-dock.d.ts +0 -1
- package/dist/lib/view-navigation.d.ts +2 -2
- package/dist/lib/ws-client-actions.d.ts +1 -0
- package/dist/lib/ws-client-domain-methods.d.ts +45 -5
- package/dist/lib/ws-client-utils.d.ts +33 -0
- package/dist/lib/ws-client.d.ts +135 -6
- package/dist/manifest.json +17 -0
- package/dist/protocol-compatibility.d.ts +0 -10
- package/dist/stores/auto-submit-streak.d.ts +3 -1
- package/dist/stores/chat-lanes.d.ts +279 -0
- package/dist/stores/chat-retention.d.ts +2 -4
- package/dist/stores/chat-store-types.d.ts +1 -0
- package/dist/stores/chat-store.d.ts +46 -25
- package/dist/stores/chimera-hub-store.d.ts +140 -0
- package/dist/stores/chimera-reports-store.d.ts +45 -0
- package/dist/stores/codemap-activity-store.d.ts +4 -4
- package/dist/stores/context-editor-store.d.ts +4 -5
- package/dist/stores/coordinator-monitor-store.d.ts +3 -2
- package/dist/stores/council-log-store.d.ts +6 -20
- package/dist/stores/file-store.d.ts +32 -13
- package/dist/stores/fleet-store.d.ts +49 -5
- package/dist/stores/git-changes-store.d.ts +25 -1
- package/dist/stores/goal-run-store.d.ts +2 -2
- package/dist/stores/history-store.d.ts +11 -0
- package/dist/stores/index.d.ts +17 -9
- package/dist/stores/local-prefs.d.ts +87 -0
- package/dist/stores/mailbox-store.d.ts +2 -2
- package/dist/stores/memory-injector-store.d.ts +2 -2
- package/dist/stores/memory-lifecycle-store.d.ts +6 -2
- package/dist/stores/monitor-store.d.ts +3 -2
- package/dist/stores/notification-store.d.ts +141 -0
- package/dist/stores/provider-status-store.d.ts +19 -0
- package/dist/stores/restore-tabs-store.d.ts +29 -0
- package/dist/stores/resume-progress-store.d.ts +58 -0
- package/dist/stores/session-inspect-store.d.ts +1 -1
- package/dist/stores/session-lanes.d.ts +242 -0
- package/dist/stores/session-scoped-store.d.ts +56 -0
- package/dist/stores/session-store.d.ts +97 -154
- package/dist/stores/session-tab-store.d.ts +197 -0
- package/dist/stores/side-effect-store.d.ts +9 -1
- package/dist/stores/system-prompt-store.d.ts +48 -0
- package/dist/stores/tool-stats-store.d.ts +52 -0
- package/dist/stores/types.d.ts +81 -4
- package/dist/stores/ui-store.d.ts +113 -11
- package/dist/types/brain.d.ts +17 -16
- package/dist/types/chronicle.d.ts +3 -2
- package/dist/types/client-message.d.ts +139 -23
- package/dist/types/collab.d.ts +0 -2
- package/dist/types/protocol-core.d.ts +62 -6
- package/dist/types/server-message.d.ts +204 -3
- package/dist/types/skills-design.d.ts +2 -1
- package/package.json +9 -9
- package/dist/assets/AgentRosterView-p5iiedCA.js +0 -9
- package/dist/assets/AnalyticsDashboard-B0sbSAxw.js +0 -1
- package/dist/assets/AudienceMemoryPanel-DcDONq7t.js +0 -3
- package/dist/assets/ChangesView-CD3JR3qY.js +0 -1
- package/dist/assets/ChronicleDashboard-3tJUiU7K.js +0 -1
- package/dist/assets/CodeEditor-0RJa9mSq.js +0 -2
- package/dist/assets/CodeMap-BvqQN6MG.js +0 -1
- package/dist/assets/ConfirmModal-CRSE2t_c.js +0 -1
- package/dist/assets/DesignGalleryView-BKl6Ce71.js +0 -1
- package/dist/assets/GoalView-Db55m-Nq.js +0 -1
- package/dist/assets/KanbanView-BQ7duNsz.js +0 -3
- package/dist/assets/MailboxDetailView-CgHzqllF.js +0 -1
- package/dist/assets/MemoryDrawer-BNTsi4jl.js +0 -1
- package/dist/assets/MemoryManager-B4NAvfYx.js +0 -1
- package/dist/assets/ModelPicker-BtK3pwfC.js +0 -1
- package/dist/assets/OfficeMapPanel-Bk9q12hP.js +0 -4
- package/dist/assets/ProcessMonitor-BTndLGIV.js +0 -1
- package/dist/assets/PromptJournalView-DbwN6AWe.js +0 -1
- package/dist/assets/QueuePanel-Cb1mIIuO.js +0 -1
- package/dist/assets/RefreshDebugView-CzGncYqB.js +0 -1
- package/dist/assets/RequirementIntakeView-BgKJbUlD.js +0 -1
- package/dist/assets/SageTabs-mB6lxkdD.js +0 -2
- package/dist/assets/SddFlowGraph-C484p5L9.js +0 -1
- package/dist/assets/SddHub-DsD8ORZo.js +0 -2
- package/dist/assets/SessionInspectView-DtM6MBbL.js +0 -1
- package/dist/assets/SessionList-CCaEa3iW.js +0 -1
- package/dist/assets/SessionsDashboard-CxatSEv6.js +0 -1
- package/dist/assets/SetupScreen-CBkuOnoN.js +0 -1
- package/dist/assets/SkillDetailView-DKVIAnwb.js +0 -3
- package/dist/assets/TechStackView-B6WDU-tt.js +0 -2
- package/dist/assets/TerminalPanel-Dfkt3xtA.js +0 -1
- package/dist/assets/Toaster-CcgCyzaU.js +0 -1
- package/dist/assets/activity-BA8C9ueU.js +0 -9
- package/dist/assets/activity-BYnOci5N.js +0 -9
- package/dist/assets/activity-COQ9xSFu.js +0 -9
- package/dist/assets/activity-CuJqhGz7.js +0 -9
- package/dist/assets/activity-D3ZccGOh.js +0 -9
- package/dist/assets/activity-YMES6OPI.js +0 -9
- package/dist/assets/activity-zlMMaNE1.js +0 -9
- package/dist/assets/chat-CzaGXz_W.js +0 -1
- package/dist/assets/chat-store-BiEXyguk.js +0 -17
- package/dist/assets/codemap-index-store-CDhApwWQ.js +0 -1
- package/dist/assets/i18n-BeHaHx3x.js +0 -2
- package/dist/assets/index-B8J_xxU5.css +0 -1
- package/dist/assets/index-BLI23QVE.js +0 -134
- package/dist/assets/session-store-CKpAwNIm.js +0 -1
- package/dist/assets/settings-BNbqEBSr.js +0 -1
- package/dist/assets/settings-BsZgLIo2.js +0 -1
- package/dist/assets/settings-C3OnmFrY.js +0 -1
- package/dist/assets/settings-C3bNf1Bx.js +0 -1
- package/dist/assets/settings-C9FOpDBt.js +0 -1
- package/dist/assets/settings-oeXlO4HA.js +0 -1
- package/dist/assets/stores-BskP1BVl.js +0 -7
- package/dist/assets/toasts-BCDGDcyq.js +0 -1
- package/dist/assets/toasts-BwQJwYLe.js +0 -1
- package/dist/assets/toasts-CFzweRH5.js +0 -1
- package/dist/assets/toasts-DDYQsJV8.js +0 -1
- package/dist/assets/toasts-DOfXc7Rt.js +0 -1
- package/dist/assets/toasts-Dm12Nq8t.js +0 -1
- package/dist/assets/toasts-frBt6fvE.js +0 -1
- package/dist/assets/ui-store-3HoYrTu5.js +0 -1
- package/dist/assets/useWebSocket-6jp275vG.js +0 -29
- package/dist/assets/utils-BecmXwgG.js +0 -1
- package/dist/assets/view-navigation-C1UDTk5R.js +0 -1
- package/dist/assets/ws-client-C6jAU4nL.js +0 -1
package/dist/types/brain.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface BrainModelEntryWire {
|
|
2
2
|
provider?: string | undefined;
|
|
3
3
|
model: string;
|
|
4
4
|
}
|
|
@@ -9,7 +9,7 @@ export interface BrainCouncilVoterWire extends BrainModelEntryWire {
|
|
|
9
9
|
veto?: boolean | undefined;
|
|
10
10
|
}
|
|
11
11
|
/** Predicate half of a deterministic Brain rule on the wire (mirrors BrainRuleMatch). */
|
|
12
|
-
|
|
12
|
+
interface BrainRuleMatchWire {
|
|
13
13
|
source?: string | string[] | undefined;
|
|
14
14
|
risk?: string | string[] | undefined;
|
|
15
15
|
minRisk?: string | undefined;
|
|
@@ -23,7 +23,7 @@ export interface BrainRuleMatchWire {
|
|
|
23
23
|
notContext?: string | undefined;
|
|
24
24
|
}
|
|
25
25
|
/** Action half of a deterministic Brain rule on the wire (mirrors BrainRuleAction). */
|
|
26
|
-
|
|
26
|
+
type BrainRuleActionWire = {
|
|
27
27
|
action: 'answer';
|
|
28
28
|
optionId?: string | undefined;
|
|
29
29
|
text?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export type BrainRuleActionWire = {
|
|
|
38
38
|
action: 'defer';
|
|
39
39
|
};
|
|
40
40
|
/** One deterministic Brain rule on the wire (mirrors core's BrainRule). */
|
|
41
|
-
|
|
41
|
+
interface BrainRuleWire {
|
|
42
42
|
id: string;
|
|
43
43
|
enabled?: boolean | undefined;
|
|
44
44
|
description?: string | undefined;
|
|
@@ -46,7 +46,7 @@ export interface BrainRuleWire {
|
|
|
46
46
|
then: BrainRuleActionWire;
|
|
47
47
|
}
|
|
48
48
|
/** Built-in pattern-heuristic toggles on the wire (mirrors BrainHeuristicsConfig). */
|
|
49
|
-
|
|
49
|
+
interface BrainHeuristicsWire {
|
|
50
50
|
lowRiskAutoAnswer: boolean;
|
|
51
51
|
blockedResolved: boolean;
|
|
52
52
|
deadlockSkip: boolean;
|
|
@@ -55,7 +55,7 @@ export interface BrainHeuristicsWire {
|
|
|
55
55
|
blockedResolvedMarkers?: string[] | undefined;
|
|
56
56
|
}
|
|
57
57
|
/** Writable form of the heuristic toggles (every field optional, `null` clears the block). */
|
|
58
|
-
|
|
58
|
+
interface BrainHeuristicsPatchWire {
|
|
59
59
|
lowRiskAutoAnswer?: boolean | undefined;
|
|
60
60
|
blockedResolved?: boolean | undefined;
|
|
61
61
|
deadlockSkip?: boolean | undefined;
|
|
@@ -64,14 +64,14 @@ export interface BrainHeuristicsPatchWire {
|
|
|
64
64
|
blockedResolvedMarkers?: string[] | undefined;
|
|
65
65
|
}
|
|
66
66
|
/** Effective single-LLM tier quality gate. */
|
|
67
|
-
|
|
67
|
+
interface BrainLlmWire {
|
|
68
68
|
maxTokens: number;
|
|
69
69
|
rejectUncertain: boolean;
|
|
70
70
|
minConfidence: number;
|
|
71
71
|
denyIsTerminal: 'never' | 'when-decided' | 'always';
|
|
72
72
|
}
|
|
73
73
|
/** Writable single-LLM tier quality gate. */
|
|
74
|
-
|
|
74
|
+
interface BrainLlmPatchWire {
|
|
75
75
|
maxTokens?: number | undefined;
|
|
76
76
|
rejectUncertain?: boolean | undefined;
|
|
77
77
|
minConfidence?: number | undefined;
|
|
@@ -82,20 +82,20 @@ export interface BrainLlmPatchWire {
|
|
|
82
82
|
} | undefined;
|
|
83
83
|
}
|
|
84
84
|
/** Effective replay-trace settings. */
|
|
85
|
-
|
|
85
|
+
interface BrainTraceWire {
|
|
86
86
|
enabled: boolean;
|
|
87
87
|
content: 'none' | 'redacted' | 'full';
|
|
88
88
|
path?: string | undefined;
|
|
89
89
|
}
|
|
90
90
|
/** Writable replay-trace settings. */
|
|
91
|
-
|
|
91
|
+
interface BrainTracePatchWire {
|
|
92
92
|
enabled?: boolean | undefined;
|
|
93
93
|
content?: 'none' | 'redacted' | 'full' | undefined;
|
|
94
94
|
path?: string | undefined;
|
|
95
95
|
maxOpenRecords?: number | undefined;
|
|
96
96
|
}
|
|
97
97
|
/** BrainMonitor distress-signal settings (same shape read + written). */
|
|
98
|
-
|
|
98
|
+
interface BrainMonitorWire {
|
|
99
99
|
enabled?: boolean | undefined;
|
|
100
100
|
policy?: 'llm' | 'steer' | 'observe' | undefined;
|
|
101
101
|
signals?: {
|
|
@@ -115,7 +115,7 @@ export interface BrainMonitorWire {
|
|
|
115
115
|
cooldownMs?: number | undefined;
|
|
116
116
|
}
|
|
117
117
|
/** Effective decision-cache settings plus live counters (`hits`/`misses`/`size` are read-only). */
|
|
118
|
-
|
|
118
|
+
interface BrainCacheWire {
|
|
119
119
|
enabled: boolean;
|
|
120
120
|
ttlMs: number;
|
|
121
121
|
maxEntries: number;
|
|
@@ -124,18 +124,18 @@ export interface BrainCacheWire {
|
|
|
124
124
|
size: number;
|
|
125
125
|
}
|
|
126
126
|
/** Writable decision-cache settings. */
|
|
127
|
-
|
|
127
|
+
interface BrainCachePatchWire {
|
|
128
128
|
enabled?: boolean | undefined;
|
|
129
129
|
ttlMs?: number | undefined;
|
|
130
130
|
maxEntries?: number | undefined;
|
|
131
131
|
}
|
|
132
132
|
/** One council seat template on the wire. */
|
|
133
|
-
|
|
133
|
+
interface BrainCouncilSeatWire {
|
|
134
134
|
persona: string;
|
|
135
135
|
veto?: boolean | undefined;
|
|
136
136
|
}
|
|
137
137
|
/** One selectable Council decision lens, published from the server's registry. */
|
|
138
|
-
|
|
138
|
+
interface BrainCouncilPersonaWire {
|
|
139
139
|
id: string;
|
|
140
140
|
name: string;
|
|
141
141
|
description: string;
|
|
@@ -143,7 +143,7 @@ export interface BrainCouncilPersonaWire {
|
|
|
143
143
|
defaultVeto?: boolean | undefined;
|
|
144
144
|
}
|
|
145
145
|
/** Headless escalation variant. */
|
|
146
|
-
|
|
146
|
+
type BrainTerminalPolicyWire = 'conservative' | 'deny-all' | 'continue-on-recommended';
|
|
147
147
|
/** JSON-safe snapshot of the live Brain config (mirrors core's BrainConfigSnapshot). */
|
|
148
148
|
export interface BrainConfigWire {
|
|
149
149
|
mode: 'headless' | 'interactive';
|
|
@@ -253,4 +253,5 @@ export interface BrainConfigPatchWire {
|
|
|
253
253
|
decisionLogMaxEntries?: number | null | undefined;
|
|
254
254
|
cache?: BrainCachePatchWire | null | undefined;
|
|
255
255
|
}
|
|
256
|
+
export {};
|
|
256
257
|
//# sourceMappingURL=brain.d.ts.map
|
|
@@ -116,7 +116,7 @@ export interface ChronicleGraphResult {
|
|
|
116
116
|
/** Derived aggregates served from the server-side Chronicle metrics store
|
|
117
117
|
* (metrics.db) — no raw journal scan on the request path. */
|
|
118
118
|
export type ChronicleMetricsView = 'summary' | 'providers' | 'tasks' | 'files';
|
|
119
|
-
|
|
119
|
+
interface ChronicleMetricsRefresh {
|
|
120
120
|
ingestedEvents: number;
|
|
121
121
|
ingestedBytes: number;
|
|
122
122
|
sourceFiles: number;
|
|
@@ -166,7 +166,7 @@ export interface ChronicleFileLineageRow {
|
|
|
166
166
|
modelId: string;
|
|
167
167
|
source: string;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
interface ChronicleMetricsSummaryView {
|
|
170
170
|
providers: {
|
|
171
171
|
attempts: number;
|
|
172
172
|
completed: number;
|
|
@@ -233,4 +233,5 @@ export interface ChronicleStatus {
|
|
|
233
233
|
serving: 'webui-server';
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
+
export {};
|
|
236
237
|
//# sourceMappingURL=chronicle.d.ts.map
|
|
@@ -31,9 +31,48 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
31
31
|
requestId: string;
|
|
32
32
|
prompt: string;
|
|
33
33
|
};
|
|
34
|
+
} | {
|
|
35
|
+
/** Ask the server which persisted Chimera review reports a session has, or query all. */
|
|
36
|
+
type: 'chimera.reports.list' | 'chimera.reports.query';
|
|
37
|
+
payload: SessionScopedPayload & {
|
|
38
|
+
sessionId?: string | undefined;
|
|
39
|
+
all?: boolean | undefined;
|
|
40
|
+
lifecycle?: string | undefined;
|
|
41
|
+
limit?: number | undefined;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
/** Fetch full details (findings + journal events) for a Chimera report. */
|
|
45
|
+
type: 'chimera.report.get';
|
|
46
|
+
payload: {
|
|
47
|
+
reportId: string;
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
/** Transition a Chimera report lifecycle. */
|
|
51
|
+
type: 'chimera.report.transition';
|
|
52
|
+
payload: {
|
|
53
|
+
reportId: string;
|
|
54
|
+
to: string;
|
|
55
|
+
reason?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
/** Add an annotation note to a Chimera report. */
|
|
59
|
+
type: 'chimera.report.add_note';
|
|
60
|
+
payload: {
|
|
61
|
+
reportId: string;
|
|
62
|
+
note: string;
|
|
63
|
+
};
|
|
64
|
+
} | {
|
|
65
|
+
/** Transition a Chimera finding lifecycle. */
|
|
66
|
+
type: 'chimera.finding.transition';
|
|
67
|
+
payload: {
|
|
68
|
+
findingId: string;
|
|
69
|
+
to: string;
|
|
70
|
+
outcome?: string | undefined;
|
|
71
|
+
reason?: string | undefined;
|
|
72
|
+
};
|
|
34
73
|
} | WSToolConfirmResult | {
|
|
35
74
|
type: 'side_effects.list';
|
|
36
|
-
payload?:
|
|
75
|
+
payload?: SessionScopedPayload | undefined;
|
|
37
76
|
} | {
|
|
38
77
|
type: 'goal.start';
|
|
39
78
|
payload: {
|
|
@@ -350,7 +389,9 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
350
389
|
};
|
|
351
390
|
} | {
|
|
352
391
|
type: 'session.new';
|
|
353
|
-
payload?:
|
|
392
|
+
payload?: ({
|
|
393
|
+
systemPromptVariant?: string;
|
|
394
|
+
} & SessionScopedPayload) | SessionScopedPayload;
|
|
354
395
|
} | {
|
|
355
396
|
type: 'session.checkpoints';
|
|
356
397
|
payload?: SessionScopedPayload;
|
|
@@ -359,6 +400,43 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
359
400
|
payload: {
|
|
360
401
|
checkpointIndex: number;
|
|
361
402
|
} & SessionScopedPayload;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Declare every session this connection is displaying (its open tabs).
|
|
406
|
+
*
|
|
407
|
+
* A WebUI page holds up to four tabs on ONE socket, so the server cannot
|
|
408
|
+
* infer the open set from the last message's `sessionId`. Without this the
|
|
409
|
+
* broadcast filter drops the other three tabs' runs at the wire. Re-sent in
|
|
410
|
+
* full whenever a tab opens or closes — it replaces, it does not merge.
|
|
411
|
+
*/
|
|
412
|
+
/**
|
|
413
|
+
* This tab came to the front. Moves the runtime's current session, this
|
|
414
|
+
* connection's acting id and the todo board onto it — and deliberately
|
|
415
|
+
* sends no transcript back, because the tab is already showing one.
|
|
416
|
+
* `session.resume` is the other half: it OPENS a conversation and does
|
|
417
|
+
* answer with its transcript.
|
|
418
|
+
*/
|
|
419
|
+
| {
|
|
420
|
+
type: 'session.focus';
|
|
421
|
+
payload: {
|
|
422
|
+
id: string;
|
|
423
|
+
} & SessionScopedPayload;
|
|
424
|
+
} | {
|
|
425
|
+
type: 'session.subscribe';
|
|
426
|
+
payload: {
|
|
427
|
+
sessionIds: string[];
|
|
428
|
+
/**
|
|
429
|
+
* The subset of `sessionIds` whose chat pane is EMPTY on this page and
|
|
430
|
+
* therefore needs its transcript sent back. After a reload the browser
|
|
431
|
+
* restores its four slots from storage but holds no messages for any of
|
|
432
|
+
* them, so without this the three background tabs come back blank and
|
|
433
|
+
* only fill in if the user clicks them. Naming them explicitly keeps the
|
|
434
|
+
* server from re-sending a transcript to a tab that already shows one —
|
|
435
|
+
* a replay is rebuilt from the working set and is strictly poorer than
|
|
436
|
+
* what a live lane already has.
|
|
437
|
+
*/
|
|
438
|
+
replayFor?: string[];
|
|
439
|
+
} & SessionScopedPayload;
|
|
362
440
|
} | {
|
|
363
441
|
type: 'context.clear';
|
|
364
442
|
payload?: SessionScopedPayload;
|
|
@@ -553,6 +631,11 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
553
631
|
};
|
|
554
632
|
} | {
|
|
555
633
|
type: 'provider.status.get';
|
|
634
|
+
} | {
|
|
635
|
+
type: 'provider.audit.get';
|
|
636
|
+
payload?: {
|
|
637
|
+
count?: number | undefined;
|
|
638
|
+
};
|
|
556
639
|
} | {
|
|
557
640
|
type: 'provider.status.retry';
|
|
558
641
|
payload: {
|
|
@@ -797,7 +880,7 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
797
880
|
type: 'session.delete';
|
|
798
881
|
payload: {
|
|
799
882
|
id: string;
|
|
800
|
-
};
|
|
883
|
+
} & SessionScopedPayload;
|
|
801
884
|
} | {
|
|
802
885
|
type: 'session.rename';
|
|
803
886
|
payload: {
|
|
@@ -820,14 +903,14 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
820
903
|
};
|
|
821
904
|
} | {
|
|
822
905
|
type: 'files.tree';
|
|
823
|
-
payload: {
|
|
906
|
+
payload: ({
|
|
824
907
|
path?: string | undefined;
|
|
825
|
-
} | Record<string, never
|
|
908
|
+
} | Record<string, never>) & SessionScopedPayload;
|
|
826
909
|
} | {
|
|
827
910
|
type: 'files.read';
|
|
828
911
|
payload: {
|
|
829
912
|
filePath: string;
|
|
830
|
-
};
|
|
913
|
+
} & SessionScopedPayload;
|
|
831
914
|
} | {
|
|
832
915
|
type: 'files.skeleton';
|
|
833
916
|
payload: {
|
|
@@ -844,31 +927,31 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
844
927
|
payload: {
|
|
845
928
|
filePath: string;
|
|
846
929
|
content: string;
|
|
847
|
-
};
|
|
930
|
+
} & SessionScopedPayload;
|
|
848
931
|
} | {
|
|
849
932
|
type: 'files.create';
|
|
850
933
|
payload: {
|
|
851
934
|
filePath: string;
|
|
852
935
|
type: 'file' | 'directory';
|
|
853
|
-
};
|
|
936
|
+
} & SessionScopedPayload;
|
|
854
937
|
} | {
|
|
855
938
|
type: 'files.delete';
|
|
856
939
|
payload: {
|
|
857
940
|
filePath: string;
|
|
858
941
|
recursive?: boolean | undefined;
|
|
859
|
-
};
|
|
942
|
+
} & SessionScopedPayload;
|
|
860
943
|
} | {
|
|
861
944
|
type: 'files.rename';
|
|
862
945
|
payload: {
|
|
863
946
|
oldPath: string;
|
|
864
947
|
newPath: string;
|
|
865
|
-
};
|
|
948
|
+
} & SessionScopedPayload;
|
|
866
949
|
} | {
|
|
867
950
|
type: 'files.move';
|
|
868
951
|
payload: {
|
|
869
952
|
srcPath: string;
|
|
870
953
|
destDir: string;
|
|
871
|
-
};
|
|
954
|
+
} & SessionScopedPayload;
|
|
872
955
|
} | WSCompletionRequest | {
|
|
873
956
|
type: 'todos.get';
|
|
874
957
|
payload?: SessionScopedPayload;
|
|
@@ -910,13 +993,15 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
910
993
|
type: 'ping';
|
|
911
994
|
} | {
|
|
912
995
|
type: 'process.list';
|
|
996
|
+
payload?: SessionScopedPayload;
|
|
913
997
|
} | {
|
|
914
998
|
type: 'process.kill';
|
|
915
999
|
payload: {
|
|
916
1000
|
pid: number;
|
|
917
|
-
};
|
|
1001
|
+
} & SessionScopedPayload;
|
|
918
1002
|
} | {
|
|
919
1003
|
type: 'process.killAll';
|
|
1004
|
+
payload?: SessionScopedPayload;
|
|
920
1005
|
} | {
|
|
921
1006
|
type: 'git.info';
|
|
922
1007
|
} | {
|
|
@@ -926,6 +1011,29 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
926
1011
|
payload: {
|
|
927
1012
|
path: string;
|
|
928
1013
|
};
|
|
1014
|
+
} | {
|
|
1015
|
+
type: 'git.stage';
|
|
1016
|
+
payload: {
|
|
1017
|
+
paths?: string[] | undefined;
|
|
1018
|
+
path?: string | undefined;
|
|
1019
|
+
};
|
|
1020
|
+
} | {
|
|
1021
|
+
type: 'git.unstage';
|
|
1022
|
+
payload: {
|
|
1023
|
+
paths?: string[] | undefined;
|
|
1024
|
+
path?: string | undefined;
|
|
1025
|
+
};
|
|
1026
|
+
} | {
|
|
1027
|
+
type: 'git.discard';
|
|
1028
|
+
payload: {
|
|
1029
|
+
paths?: string[] | undefined;
|
|
1030
|
+
path?: string | undefined;
|
|
1031
|
+
};
|
|
1032
|
+
} | {
|
|
1033
|
+
type: 'git.commit';
|
|
1034
|
+
payload: {
|
|
1035
|
+
message: string;
|
|
1036
|
+
};
|
|
929
1037
|
} | {
|
|
930
1038
|
type: 'goal.get';
|
|
931
1039
|
} | {
|
|
@@ -934,12 +1042,16 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
934
1042
|
type: 'autonomy.switch';
|
|
935
1043
|
payload: {
|
|
936
1044
|
mode: string;
|
|
937
|
-
};
|
|
1045
|
+
} & SessionScopedPayload;
|
|
938
1046
|
} | {
|
|
939
1047
|
type: 'prefs.update';
|
|
940
1048
|
payload: Record<string, unknown>;
|
|
941
1049
|
} | {
|
|
942
1050
|
type: 'prefs.get';
|
|
1051
|
+
payload?: SessionScopedPayload | undefined;
|
|
1052
|
+
} | {
|
|
1053
|
+
type: 'system_prompt.get';
|
|
1054
|
+
payload?: SessionScopedPayload;
|
|
943
1055
|
} | {
|
|
944
1056
|
type: 'projects.list';
|
|
945
1057
|
} | {
|
|
@@ -976,7 +1088,7 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
976
1088
|
body: string;
|
|
977
1089
|
priority: 'low' | 'normal' | 'high';
|
|
978
1090
|
replyTo?: string | undefined;
|
|
979
|
-
};
|
|
1091
|
+
} & SessionScopedPayload;
|
|
980
1092
|
} | {
|
|
981
1093
|
type: 'mailbox.messages';
|
|
982
1094
|
payload: {
|
|
@@ -1006,23 +1118,24 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
1006
1118
|
} | undefined;
|
|
1007
1119
|
} | {
|
|
1008
1120
|
type: 'brain.status';
|
|
1121
|
+
payload?: SessionScopedPayload;
|
|
1009
1122
|
} | {
|
|
1010
1123
|
type: 'brain.risk';
|
|
1011
1124
|
payload: {
|
|
1012
1125
|
level: string;
|
|
1013
|
-
};
|
|
1126
|
+
} & SessionScopedPayload;
|
|
1014
1127
|
} | {
|
|
1015
1128
|
type: 'brain.ask';
|
|
1016
1129
|
payload: {
|
|
1017
1130
|
question: string;
|
|
1018
|
-
};
|
|
1131
|
+
} & SessionScopedPayload;
|
|
1019
1132
|
} | {
|
|
1020
1133
|
type: 'brain.config.get';
|
|
1021
1134
|
} | {
|
|
1022
1135
|
type: 'brain.config.set';
|
|
1023
1136
|
payload: {
|
|
1024
1137
|
patch: BrainConfigPatchWire;
|
|
1025
|
-
};
|
|
1138
|
+
} & SessionScopedPayload;
|
|
1026
1139
|
} | {
|
|
1027
1140
|
type: 'model.refine';
|
|
1028
1141
|
payload: {
|
|
@@ -1081,20 +1194,22 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
1081
1194
|
};
|
|
1082
1195
|
} | {
|
|
1083
1196
|
type: 'design.list';
|
|
1197
|
+
payload?: SessionScopedPayload;
|
|
1084
1198
|
} | {
|
|
1085
1199
|
type: 'design.use';
|
|
1086
1200
|
payload: {
|
|
1087
1201
|
kit: string;
|
|
1088
1202
|
stack?: string | undefined;
|
|
1089
1203
|
overrides?: Record<string, string> | undefined;
|
|
1090
|
-
};
|
|
1204
|
+
} & SessionScopedPayload;
|
|
1091
1205
|
} | {
|
|
1092
1206
|
type: 'design.state';
|
|
1207
|
+
payload?: SessionScopedPayload;
|
|
1093
1208
|
} | {
|
|
1094
1209
|
type: 'design.set';
|
|
1095
1210
|
payload: {
|
|
1096
1211
|
overrides: Record<string, string>;
|
|
1097
|
-
};
|
|
1212
|
+
} & SessionScopedPayload;
|
|
1098
1213
|
} | {
|
|
1099
1214
|
type: 'design.tune';
|
|
1100
1215
|
payload: {
|
|
@@ -1104,21 +1219,22 @@ export type WSClientMessageCore = WSUserMessage | {
|
|
|
1104
1219
|
font?: string | undefined;
|
|
1105
1220
|
motion?: string | undefined;
|
|
1106
1221
|
};
|
|
1107
|
-
};
|
|
1222
|
+
} & SessionScopedPayload;
|
|
1108
1223
|
} | {
|
|
1109
1224
|
type: 'design.swap';
|
|
1110
1225
|
payload: {
|
|
1111
1226
|
kit: string;
|
|
1112
1227
|
stack?: string | undefined;
|
|
1113
|
-
};
|
|
1228
|
+
} & SessionScopedPayload;
|
|
1114
1229
|
} | {
|
|
1115
1230
|
type: 'design.materialize';
|
|
1116
|
-
payload?: {
|
|
1231
|
+
payload?: ({
|
|
1117
1232
|
stack?: string | undefined;
|
|
1118
1233
|
out?: string | undefined;
|
|
1119
|
-
} | undefined;
|
|
1234
|
+
} & SessionScopedPayload) | undefined;
|
|
1120
1235
|
} | {
|
|
1121
1236
|
type: 'design.verify';
|
|
1237
|
+
payload?: SessionScopedPayload;
|
|
1122
1238
|
} | {
|
|
1123
1239
|
type: 'config.doctor';
|
|
1124
1240
|
payload?: {
|
package/dist/types/collab.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { WSError } from './runtime.js';
|
|
2
|
-
export type CollabPanelMessage = WSCollabState | WSCollabParticipantJoined | WSCollabParticipantLeft | WSCollabAnnotationAdded | WSCollabAnnotationResolved | WSCollabPauseGranted | WSCollabPauseReleased | WSCollabInjectionGranted | WSError;
|
|
3
1
|
/**
|
|
4
2
|
* Roles a collaboration participant can hold. The string union is the
|
|
5
3
|
* wire contract — adding new roles (e.g. `controller`) in later phases
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { SessionMarker, Usage } from '@wrongstack/core/types';
|
|
2
|
-
export interface WSMessage {
|
|
3
|
-
type: string;
|
|
4
|
-
payload: unknown;
|
|
5
|
-
}
|
|
1
|
+
import type { SessionMarker, SessionToolMeta, Usage } from '@wrongstack/core/types';
|
|
6
2
|
export interface WSSessionStart {
|
|
7
3
|
type: 'session.start';
|
|
8
4
|
payload: {
|
|
9
5
|
sessionId: string;
|
|
6
|
+
/** Original session start timestamp; resume must not reset uptime. */
|
|
7
|
+
startedAt?: string | undefined;
|
|
10
8
|
model: string;
|
|
11
9
|
provider: string;
|
|
12
10
|
maxContext?: number | undefined;
|
|
@@ -27,6 +25,10 @@ export interface WSSessionStart {
|
|
|
27
25
|
* provider retries, truncation) projected server-side. Replayed alongside
|
|
28
26
|
* the conversation so a reconnect shows what the live stream showed. */
|
|
29
27
|
replayMarkers?: SessionMarker[] | undefined;
|
|
28
|
+
/** Per-tool timing/output metadata projected from `tool_call_end`, so a
|
|
29
|
+
* replayed tool card shows the same duration and size chips it showed
|
|
30
|
+
* live. */
|
|
31
|
+
replayToolMeta?: SessionToolMeta[] | undefined;
|
|
30
32
|
replayUsage?: Usage | undefined;
|
|
31
33
|
/** True when no provider+model is configured yet — show the setup screen. */
|
|
32
34
|
needsSetup?: boolean | undefined;
|
|
@@ -63,7 +65,6 @@ export interface WSUserMessage {
|
|
|
63
65
|
id: string;
|
|
64
66
|
content: string;
|
|
65
67
|
timestamp: number;
|
|
66
|
-
stateExpiresAt?: number | undefined;
|
|
67
68
|
/** Atomically replace only the provider-bound conversation before this run. */
|
|
68
69
|
freshContext?: boolean | undefined;
|
|
69
70
|
/** Images attached in the composer (paste / drop / file picker). The
|
|
@@ -274,12 +275,43 @@ export interface WSProviderStatusChanged {
|
|
|
274
275
|
newState: 'healthy' | 'degraded' | 'blocked';
|
|
275
276
|
reason: string;
|
|
276
277
|
timestamp: number;
|
|
278
|
+
/** Epoch ms when the new state's cooldown expires; omitted when n/a. */
|
|
279
|
+
stateExpiresAt?: number | undefined;
|
|
280
|
+
/** Last-error context for real-time waiting-room detail (optional). */
|
|
281
|
+
lastErrorKind?: string | undefined;
|
|
282
|
+
lastErrorStatus?: number | null | undefined;
|
|
283
|
+
lastErrorMessage?: string | null | undefined;
|
|
284
|
+
lastSessionId?: string | null | undefined;
|
|
285
|
+
lastAgentId?: string | null | undefined;
|
|
277
286
|
};
|
|
278
287
|
}
|
|
279
288
|
export interface WSProviderStatusSnapshot {
|
|
280
289
|
type: 'provider.status.snapshot';
|
|
281
290
|
payload: Record<string, unknown>;
|
|
282
291
|
}
|
|
292
|
+
/** One durable block/open audit entry (tail of provider-status-audit.jsonl). */
|
|
293
|
+
interface WSProviderAuditLine {
|
|
294
|
+
ts: number;
|
|
295
|
+
providerId: string;
|
|
296
|
+
model: string;
|
|
297
|
+
from: 'healthy' | 'degraded' | 'blocked';
|
|
298
|
+
to: 'healthy' | 'degraded' | 'blocked';
|
|
299
|
+
reason: string;
|
|
300
|
+
expiresAt: number | null;
|
|
301
|
+
error: {
|
|
302
|
+
kind: string;
|
|
303
|
+
status: number | null;
|
|
304
|
+
message: string;
|
|
305
|
+
sessionId: string | null;
|
|
306
|
+
agentId: string | null;
|
|
307
|
+
} | null;
|
|
308
|
+
}
|
|
309
|
+
export interface WSProviderAuditHistory {
|
|
310
|
+
type: 'provider.audit.history';
|
|
311
|
+
payload: SessionScopedPayload & {
|
|
312
|
+
lines: WSProviderAuditLine[];
|
|
313
|
+
};
|
|
314
|
+
}
|
|
283
315
|
export interface WSProviderActiveBlocked {
|
|
284
316
|
type: 'provider.active_blocked';
|
|
285
317
|
payload: SessionScopedPayload & {
|
|
@@ -299,6 +331,29 @@ export interface WSProviderStreamError {
|
|
|
299
331
|
message: string;
|
|
300
332
|
};
|
|
301
333
|
}
|
|
334
|
+
/**
|
|
335
|
+
* Whether one session's run is live, answered per declared tab.
|
|
336
|
+
*
|
|
337
|
+
* A reconnect is the hole this closes. `run.result` is what clears a lane's
|
|
338
|
+
* spinner, and it is broadcast once — a tab whose run finished while the
|
|
339
|
+
* socket was down never hears it, so it spins forever, counts as busy, refuses
|
|
340
|
+
* to be recycled and asks to abort a run that ended long ago. Only the tab in
|
|
341
|
+
* front gets a `session.start` on reconnect; this answers for all four.
|
|
342
|
+
*/
|
|
343
|
+
export interface WSSessionRunState {
|
|
344
|
+
type: 'session.run_state';
|
|
345
|
+
payload: SessionScopedPayload & {
|
|
346
|
+
isRunning: boolean;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
export interface WSSessionResumeProgress {
|
|
350
|
+
type: 'session.resume_progress';
|
|
351
|
+
payload: SessionScopedPayload & {
|
|
352
|
+
stage: string;
|
|
353
|
+
loadedBytes: number;
|
|
354
|
+
totalBytes: number;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
302
357
|
export interface WSRunResult {
|
|
303
358
|
type: 'run.result';
|
|
304
359
|
payload: SessionScopedPayload & {
|
|
@@ -314,4 +369,5 @@ export interface WSRunResult {
|
|
|
314
369
|
};
|
|
315
370
|
};
|
|
316
371
|
}
|
|
372
|
+
export {};
|
|
317
373
|
//# sourceMappingURL=protocol-core.d.ts.map
|