@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-hePW80VL.js";var t=e({agent:()=>p,allowlist:()=>d,brain:()=>k,brainOpt:()=>A,cancel:()=>T,connection:()=>s,context:()=>y,default:()=>M,display:()=>C,execution:()=>m,fallbacks:()=>g,features:()=>h,fleet:()=>_,general:()=>a,integrations:()=>v,logs:()=>b,mcp:()=>u,model:()=>o,modelSchema:()=>j,oauth:()=>f,provider:()=>c,providerModels:()=>l,resetConfirmAction:()=>O,resetConfirmBody:()=>D,resetConfirmTitle:()=>E,resetLabel:()=>w,security:()=>x,subtitle:()=>r,tabs:()=>i,title:()=>n,toast:()=>S}),n=`Settings`,r=`Configure every aspect of your agent workspace`,i={general:`General`,provider:`Provider`,connection:`Connections`,agent:`Agent`,execution:`Execution`,fallbacks:`Fallbacks`,routing:`Routing`,fleet:`Fleet`,integrations:`Integrations`,chimera:`Chimera`,context:`Context`,logs:`Logs`,security:`Security`,display:`Display`,displayDesc:`Workbench chrome, status chip, refine timers, and tool/memory injection toggles — mirrors the TUI SettingsPicker.`,generalDesc:`Appearance, language, and display preferences — mirrors the TUI SettingsPicker.`,providerDesc:`API keys, saved providers, and the provider catalog.`,connectionDesc:`WebSocket server URL and connection health.`,agentDesc:`Autonomy, prompt refinement, reasoning, and model routing.`,executionDesc:`Iteration caps, exit behavior, and process circuit breaker.`,fallbacksDesc:`Model fallback chain, favorites, and named fallback profiles.`,routingDesc:`Per-phase and per-role model route matrix.`,fleetDesc:`Subagent concurrency, streaming, and next-step prediction.`,integrationsDesc:`HQ client, MCP servers, and Telegram notifications.`,chimeraDesc:`Post-session code review agent configuration.`,contextDesc:`Feature flags, context strategy, compactor, and plugin controls.`,logsDesc:`Log level, audit detail, filesystem access scope, and debug stream.`,securityDesc:`Brain decision control, shadow agent, and tool access.`},a={themeHeading:`Theme`,themeLight:`Light`,themeDark:`Dark`,themeSystem:`System`,themeSystemHint:`System follows your OS-level light/dark preference.`,preferencesHeading:`Display Preferences`,compactDensity:`Compact density`,compactDensityHint:`Tighter spacing throughout the chat.`,soundOnComplete:`Sound on completion`,soundOnCompleteHint:`Play a soft chime when a run finishes.`,titleAnimation:`Title animation`,titleAnimationHint:`Show animated terminal title in the CLI.`,showThinkingLabel:`Show thinking logs`,showThinkingHint:`Display completed reasoning blocks in the chat history.`,groupToolCallsLabel:`Group tool calls`,groupToolCallsHint:`Collapse consecutive tool calls into a single chip.`,autoCollapseInputLabel:`Auto-collapse input under history`,autoCollapseInputHint:`When a session with messages loads, collapse the composer under the history. Off by default — input stays expanded until you collapse it manually.`,languageHeading:`Language`,languageLabel:`Interface language`,languageHint:`Changes only the interface text. Prompts, skills, and model output are not affected.`,statuslineModeLabel:`Statusline mode (CLI/TUI)`,statuslineModeHint:`Density of the TUI statusline.`,statuslineModeDetailed:`Detailed`,statuslineModeMinimum:`Minimum`,statuslineModeNoColor:`No color`,animationStyleLabel:`Animation style (CLI/TUI)`,animationStyleHint:`Animation for the TUI working-state chip.`,animationStyleRainbow:`Rainbow`,animationStyleWave:`Wave`,animationStylePulse:`Pulse`,animationStyleDots:`Dots`,animationStyleBreathe:`Breathe`,animationStyleStatic:`Static`,animationStyleCycle:`Cycle`,thinkingWordLabel:`Thinking word (CLI/TUI)`,thinkingWordHint:`Word shown in the TUI status chip. Single short word.`,paletteHeading:`Color palette`,paletteSwitcherTitle:`Color palette`,paletteHint:`Pick the main color (and its derivatives). Neutral surfaces stay the same.`,paletteSignal:`Signal`,paletteEmeraldGold:`Emerald & Gold`,paletteBlueNavy:`Blue Navy`,palettePurplePink:`Purple & Pink`,paletteCyanTeal:`Cyan & Teal`,paletteRoseCopper:`Rose & Copper`,paletteIndigoAmber:`Indigo & Amber`,paletteSageSand:`Sage & Sand`,paletteSlateViolet:`Slate & Violet`,paletteCoralMint:`Coral & Mint`,paletteArcticEmber:`Arctic & Ember`,paletteMossRust:`Moss & Rust`},o={heading:`Model`,loading:`Loading models...`,notFound:`No models found for this provider. The catalog might be empty or still loading.`,selectProviderFirst:`Select a provider first`,context:`{{count}}k context`},s={providerHealth:{heading:`Provider Health`,hint:`Which provider/model pairs are healthy, degraded, or blocked — and why.`,refresh:`Refresh`,empty:`No providers tracked yet.`,summary:`{{blocked}} blocked · {{degraded}} degraded · {{healthy}} healthy`,totalFailures:`failures`,rateLimits:`rate limits`,state:{blocked:`Blocked`,degraded:`Degraded`,healthy:`Healthy`},blocked:`Blocked`,degraded:`Degraded`,consecutive:`consecutive failures`,retryNow:`Retry now`,clear:`Clear`,allHealthy:`All tracked providers are healthy.`,statSuccesses:`successes`,statFailures:`failures`,statRateLimits:`rate limits`,statConsecutive:`consecutive`,lastError:`Last error`,recentErrors:`Recent errors`,autoRecovery:`Auto-recovers at`,expired:`Expired`,remainingSecs:`{{secs}}s`,remainingMins:`{{mins}}m`,remainingHours:`{{hours}}h {{mins}}m`,explainHealthy:`Responding normally.`,explain402:`Billing limit reached (402). Blocked for ~15 minutes until quota resets.`,explain403quota:`Usage limit reached for this billing cycle. Blocked until the next cycle resets (~15 min).`,explain403auth:`Permission/auth error. Non-retryable — check your API key and access rights.`,explain429:`Rate limit hit (429). Temporary throttle — recovers automatically.`,explain529:`Server overloaded (529). The provider is under heavy load.`,explain5xx:`Server error ({{status}}). Temporary backend issue.`,explainNetwork:`Network unreachable. Check your internet or the provider's status page.`,explainTimeout:`Request timed out (408). The provider was slow to respond.`,explainStreamHang:`Stream stalled (599). The provider stopped mid-response.`,explainQuota:`Quota exhausted. Blocked until the reset window.`,explainUnknown:`Failure kind: {{kind}} / status: {{status}}.`},wsUrlLabel:`WebSocket Server URL`,wsUrlPlaceholder:`ws://localhost:3456`,wsUrlHint:`URL of the agent WebSocket server. The server runs alongside the CLI.`,startingHeading:`Starting the WebSocket Server`,startingBody:`For development, run ./dev.ps1 from the repo root (optionally set WS_HOST/WS_PORT first). Otherwise launch the WebUI with the CLI: wstack --webui.`,healthHeading:`Connection health`,healthHint:`Live ownership, storage, queue, watcher, and latency report for project services.`,healthRefresh:`Refresh`,healthLoading:`Checking services…`,healthUnknown:`Health unknown`,healthDisconnected:`The WebUI WebSocket is disconnected.`,healthRestartRequired:`Restart the backend once to activate connection health reporting.`,healthOptional:`On demand`,endpointInvalidBadge:`socket path too long`,endpointInvalidRemedy:`The IPC socket path exceeds this platform's length limit, so the shared daemon cannot start. Queries fall back to a slower process-local mode. Remedy: set a shorter TMPDIR (e.g. export TMPDIR=/tmp) and restart WrongStack.`,healthCounts:`{{healthy}} healthy · {{attention}} attention · {{sleeping}} sleeping`,healthOverall:{healthy:`Required services healthy`,degraded:`Required service degraded`,error:`Required service unavailable`},healthStatus:{healthy:`Healthy`,degraded:`Degraded`,offline:`Sleeping`,unavailable:`Unavailable`,error:`Error`},services:{kanban:{label:`Kanban IPC`},mailbox:{label:`Mailbox IPC`}},serviceActionRestart:`Restart {{label}}`,webuiTransport:`WebUI transport`,serviceAutoRestarting:`Auto-restarting…`},c={subscriptionHeading:`Subscription login`,apiKeysHeading:`API key providers`,apiKeysBody:`Pick a provider from the catalog and add an API key, or manage saved providers.`,tabCatalog:`Catalog`,tabSaved:`Saved ({{count}})`,searchPlaceholder:`Search {{count}} providers (name / id / family)…`,loadingCatalog:`Loading catalog...`,noMatch:`No providers match "{{query}}".`,configured:`Configured`,reachable:`Reachable`,envVar:`ENV: {{var}}`,modelCount_one:`{{count}} model`,modelCount_other:`{{count}} models`,keyPlaceholder:`{{name}} API key`,orEnv:`Or set {{env}} in the environment instead.`,addApiKey:`Add API key`,manageKeys:`Manage your API keys and provider configurations`,addProvider:`Add Provider`,addCustomHeading:`Add Custom Provider`,localServers:`Local servers — click to pre-fill:`,providerIdPlaceholder:`Provider ID (e.g. my-llm-server)`,apiKeyOptionalPlaceholder:`API Key (optional)`,noSaved:`No saved providers yet`,noSavedHint:`Add a provider to get started`,apiKeysLabel:`API Keys`,savedProviderCount_one:`{{count}} provider`,savedProviderCount_other:`{{count}} providers`,keyCount_one:`{{count}} key configured`,keyCount_other:`{{count}} keys configured`,activeKeyCount_one:`{{count}} active key`,activeKeyCount_other:`{{count}} active keys`,addKey:`Add Key`,noKeys:`No keys configured`,active:`Active`,setActive:`Set Active`,keyLabelPlaceholder:`Key label (e.g. default, production)`,apiKeyPlaceholder:`API key`,saveKey:`Save Key`,savedToast:`Saved key for {{name}}`},l={addCustom:`Add custom model`,addCustomTitle:`Add custom model`,addFromCatalog:`Add from catalog`,catalogSearchPlaceholder:`Search models.dev catalog…`,catalogSearchTitle:`Search models.dev catalog`,colActions:`Actions`,colCaps:`Capabilities`,colContext:`Context`,colCost:`Cost`,colModalities:`Modalities`,colModel:`Model`,colOutput:`Output`,colSource:`Source`,editModel:`Edit model`,emptyState:`No models yet — add from the catalog or create a custom model.`,fieldContext:`Context window`,fieldCostInput:`Input cost`,fieldCostOutput:`Output cost`,fieldDescription:`Description`,fieldFamily:`Family`,fieldInputLimit:`Input limit`,fieldInputModalities:`Input modalities`,fieldLastUpdated:`Last updated`,fieldName:`Name`,fieldOutput:`Max output`,fieldOutputModalities:`Output modalities`,fieldReleaseDate:`Release date`,modelAdded:`Added {{model}}`,modelRemoved:`Removed {{model}}`,modelSaved:`Saved {{model}}`,noResults:`No models found`,removeModel:`Remove model`,sectionCapabilities:`Capability flags`,sectionDates:`Dates`,sectionIdentity:`Identity`,sectionLimits:`Limits`,sectionModalities:`Modalities`,sectionPricing:`Pricing (per 1M tokens, USD)`,tabForm:`Form`,tabRawJson:`Raw JSON`,typeToSearch:`Type to search the catalog…`,useModel:`Use {{model}}`,usingModel:`Using {{model}}`,filterPlaceholder:`Filter models…`},u={status:{connected:`Connected`,connecting:`Connecting`,sleeping:`Sleeping`,discovering:`Discovering`,error:`Error`,stopped:`Stopped`,unknown:`Unknown`},disabled:`MCP servers are disabled.`,wakeTitle:`Wake server`,sleepTitle:`Sleep server`,discoverTitle:`Discover tools`,editTitle:`Edit`,removeTitle:`Remove`,statusLabel:`Status:`,enabledLabel:`Enabled:`,yes:`Yes`,no:`No`,descriptionLabel:`Description:`,pidLabel:`PID:`,errorLabel:`Error:`,toolsLabel:`Tools ({{count}}):`,noTools:`No tools discovered yet`,serverNameRequired:`Server name is required`,dialogTitleEdit:`Edit MCP Server`,dialogTitleAdd:`Add MCP Server`,dialogTitleAddCustom:`Add Custom MCP Server`,fieldName:`Name`,fieldNamePlaceholder:`e.g., github, filesystem`,fieldTransport:`Transport`,fieldUrl:`URL`,fieldCommand:`Command`,fieldCommandPlaceholder:`e.g., npx`,fieldArgs:`Args`,fieldArgsHint:`(space-separated)`,fieldArgsPlaceholder:`e.g., -y @modelcontextprotocol/server-github`,fieldEnv:`Env vars`,fieldEnvHint:`(KEY=value, one per line)`,fieldDescription:`Description`,fieldDescriptionPlaceholder:`GitHub MCP server for repository access`,enableServer:`Enable server`,lazyConnect:`Lazy connect`,lazyConnectHint:`(don't start until first tool call; auto-sleeps when idle)`,saveChanges:`Save Changes`,addServer:`Add Server`,requires:`Requires: {{vars}}`,added:`Added`,heading:`MCP Servers`,summary:`{{connected}} connected · {{sleeping}} sleeping · {{total}} total`,addCustom:`Add Custom`,tabRecommended:`Recommended`,tabServers:`Servers`,tabAddCustom:`Add Custom`,recommendedBody:`One-click add for popular MCP servers. Click Add to pre-fill the configuration, then confirm. Servers requiring credentials will need their env vars set before use.`,loadingServers:`Loading servers...`,noServers:`No MCP servers configured`,noServersHint:`Switch to the Recommended tab to add popular servers, or Add Custom for your own.`,addCustomBody:`Configure a custom MCP server with stdio, SSE, or HTTP transport.`,addCustomBodyHint:`For popular servers, use the Recommended tab instead — everything is pre-configured for you.`,removeConfirmTitle:`Remove server "{{name}}"?`,removeConfirmBody:`This removes the MCP server from your configuration.`,toastAdded:`Server "{{name}}" added`,toastRemoved:`Server "{{name}}" removed`,toastDiscovered:`Discovered {{count}} tools from "{{name}}"`,toastSleeping:`Server "{{name}}" is now sleeping`,toastConnected:`Server "{{name}}" connected`,toastReconnected:`Server "{{name}}" reconnected`,toastDisconnected:`Server "{{name}}" disconnected: {{reason}}`,toastError:`Server "{{name}}" error: {{error}}`},d={title:`Clear saved allowlist?`,body_one:`This will remove the pinned model for {{provider}}. The model picker will fall back to the models.dev catalog.`,body_other:`This will remove the {{count}} pinned models for {{provider}}. The model picker will fall back to the models.dev catalog.`,undoHint:`You can undo this for 8 seconds after confirming.`,keepTitle:`Keep the allowlist (Esc)`,clearTitle:`Clear the allowlist (Enter)`,clear:`Clear allowlist`},f={termsWarning:`Sign in with a subscription instead of an API key. Using a subscription outside its official client may violate the provider's Terms — your account could be rate-limited or banned. An API key is the sanctioned path for programmatic use.`,signIn:`Sign in`,waitingBrowser:`Waiting for you to sign in…`,openSignIn:`Open sign-in page`,pasteLoopbackBusy:`Loopback port busy — paste the redirect URL`,pasteCantReach:`Browser can't reach this server? Paste the redirect URL`,submit:`Submit`,enterCode:`Enter this code at the verification page:`,openVerification:`Open verification page`,waitingCode:`Waiting for authorization…`,exchanging:`Exchanging tokens…`,fetchingModels:`Fetching models…`,signedIn:`Signed in.`,signedInToast:`Signed in — {{provider}}`,signInFailed:`Sign-in failed`,accountCount_one:`{{count}} account saved`,accountCount_other:`{{count}} accounts saved`,active:`Active`,inactive:`Inactive`,retry:`Retry`,retryLogin:`Re-authenticate this account`,newAccount:`New account`,aliasPlaceholder:`e.g. {{default}}`},p={autonomyHeading:`Autonomy & Behavior`,autonomyModeLabel:`Autonomy mode`,autonomyModeHint:`How independently the agent proceeds between turns.`,autonomyModeOff:`Off — full manual control`,autonomyModeSuggest:`Suggest — suggests next steps`,autonomyModeAuto:`Auto — brief confirmation delay`,autonomyModeEternal:`Eternal — autonomous until goal done`,autonomyModeEternalParallel:`Eternal Parallel — multi-agent fleet`,autoProceedDelayLabel:`Auto-proceed delay`,autoProceedDelayHint:`Milliseconds before the agent auto-proceeds in Auto mode. 0 = immediate.`,yoloLabel:`YOLO mode`,yoloHint:`Bypass tool confirmation prompts — the agent runs without asking.`,refineHeading:`Prompt Refinement`,enableRefineLabel:`Enable refine`,enableRefineHint:`Rewrite prompts before sending — clearer instructions, better results.`,refineDelayLabel:`Refine delay`,refineDelayHint:`Countdown before the refined prompt auto-sends.`,refineLanguageLabel:`Refine language`,refineLanguageHint:`Keep your language or translate to English for the model.`,refineLanguageOriginal:`Original — keep your language`,refineLanguageEnglish:`English — translate to English`,refinerProviderLabel:`Refiner provider`,refinerProviderHint:`Provider for goal refinement. Select one from your configured providers.`,refinerProviderDefault:`Session provider`,refinerModelLabel:`Refiner model`,refinerModelHint:`Model for goal refinement. Requires a refiner provider first.`,refinerModelDefault:`Session model`,refinerProfileLabel:`Refiner fallback profile`,refinerProfileHint:`Named fallback profile for goal refinement. Overrides provider+model.`,refinerProfileDefault:`None — use provider+model or session defaults`,reasoningHeading:`Reasoning & Cache`,reasoningModeLabel:`Reasoning mode`,reasoningModeHint:`Control how the model uses extended thinking. Auto = provider default.`,reasoningModeAuto:`Auto — provider default`,reasoningModeOn:`On — force thinking on`,reasoningModeOff:`Off — force thinking off`,reasoningEffortLabel:`Reasoning effort`,reasoningEffortHint:`How much compute the model spends thinking. Only sent when the model supports it.`,reasoningEffortNone:`None`,reasoningEffortMinimal:`Minimal`,reasoningEffortLow:`Low`,reasoningEffortMedium:`Medium`,reasoningEffortHigh:`High`,reasoningEffortXhigh:`Extra High`,reasoningEffortMax:`Max`,preserveThinkingLabel:`Preserve thinking`,preserveThinkingHint:`Keep reasoning blocks across turns for context continuity.`,cacheTtlLabel:`Cache TTL`,cacheTtlHint:`Prompt cache time-to-live. 1h costs more on write but saves on repeat reads (Anthropic).`,cacheTtlDefault:`Default — provider default`,cacheTtl5m:`5 minutes`,cacheTtl1h:`1 hour`,capsHint:`Use wstack models caps to check what the current model supports. Unsupported settings are silently omitted per-request.`,routingHeading:`Model Routing`,routingRouteKey:`Route key`,routingPhasesGroup:`Phases`,routingRolesGroup:`Roles — {{label}}`,routingCustomGroup:`Existing custom routes`,routingTargetAria:`Model route target`,routingTargetEmpty:`— Clear route —`,routingTargetProfilesGroup:`Fallback Profiles`,routingTargetModelsGroup:`Models (provider/model)`,routingSet:`Set`,routingReasoningModeAria:`New route reasoning mode`,routingReasoningEffortAria:`New route reasoning effort`,routingReasoningPreserveAria:`New route reasoning preservation`,routingReasoningModeFor:`Reasoning mode for {{key}}`,routingReasoningEffortFor:`Reasoning effort for {{key}}`,routingReasoningPreserveFor:`Reasoning preservation for {{key}}`,noRoutes:`No model routes yet.`,leaderModel:`leader model`,autonomyDelayMsLabel:`Auto-proceed delay`,autonomyDelayMsHint:`Milliseconds before the agent auto-proceeds in Auto mode. 0 = immediate.`,refineCountdownLabel:`Refine countdown`,refineCountdownHint:`Grace period before the refined prompt auto-sends (milliseconds).`,reasoningEffortModelSet:`levels offered by the active model`},m={heading:`Execution`,maxIterationsLabel:`Max iterations per run`,maxIterationsHint:`Hard cap on LLM turns per agent.run().`,autoProceedMaxIterationsLabel:`Auto-proceed max iterations`,autoProceedMaxIterationsHint:`Stop auto-proceed after N iterations. 0 = unlimited.`,confirmExitLabel:`Confirm before exit`,confirmExitHint:`First Ctrl+C aborts work, second confirms exit.`,chimeLabel:`Chime on completion`,chimeHint:`Terminal bell when an agent run finishes.`,breakerLabel:`Process circuit breaker`,breakerHint:`Gate bash/exec after repeated failures; trips arm the kill/reset countdown.`,breakerTimeoutLabel:`Breaker kill/reset timeout`,breakerTimeoutHint:`Delay before automatic kill/reset when the breaker trips. 0 = manual recovery.`,availabilityHeading:`Provider/model availability calendar`,availabilityHint:`Prevent autonomous and overnight runs from using selected providers or models during recurring windows.`},h={chimeraDedicatedHeading:`Chimera — Post-session Code Review`,chimeraDedicatedHint:`Automated code quality review that runs after every agent session. Catches regressions, anti-patterns, and potential bugs.`,chimeraSectionEnabled:`Post-session review (Chimera)`,chimeraSectionEnabledHint:`Run a code review agent after every iteration.`,chimeraProviderLabel:`Chimera provider`,chimeraProviderHint:`Provider for the review agent. Select one from your configured providers.`,chimeraProviderSessionDefault:`Session default`,chimeraModelLabel:`Model`,chimeraModelSessionDefault:`Session default`,chimeraModelHint:`Model for the review agent. Requires a provider first.`,chimeraMaxFilesLabel:`Max files per review`,chimeraMaxFilesHint:`Maximum number of changed files included in a single review call.`,chimeraAutoFixLabel:`Auto-fix mode`,chimeraAutoFixHint:`Whether the review agent should automatically apply fixes for issues it finds.`,chimeraAutoFixOff:`Off — review only`,chimeraAutoFixAsk:`Ask — confirm before applying`,chimeraAutoFixAuto:`Auto — apply without confirmation`,autoReviewCascadeOnLabel:`Cascade on`,autoReviewCascadeOnHint:`When a review finds issues at or above this severity, spawn follow-up agents.`,autoReviewCascadeOnOff:`Off`,autoReviewCascadeOnHigh:`High or above`,autoReviewCascadeOnCritical:`Critical only`,chimeraPickModel:`Pick provider/model for Chimera`,chimeraPickModelHint:`Select a provider and model for post-session code review.`,autoReviewSectionEnabled:`Mid-session review (Auto-Review)`,autoReviewSectionEnabledHint:`Run a review agent mid-session on every file change.`,autoReviewFallbackProfileLabel:`Fallback / Round-robin profile`,autoReviewFallbackProfileHint:`Named model profile for auto-review. It supplies the fallback pool and the models used by round-robin or random selection.`,autoReviewFallbackProfileNone:`None — use provider+model or session defaults`,autoReviewModelSelectionLabel:`Profile selection`,autoReviewModelSelectionHint:`Choose the next profile model in order, or pick a random starting model for each review.`,autoReviewModelSelectionRoundRobin:`Round-robin — iterate in profile order`,autoReviewModelSelectionRandom:`Random — pick from the profile`,autoReviewFallbackModelsLabel:`Fallback / Round-robin models`,autoReviewFallbackModelsEmpty:`No fallback / round-robin models configured`,autoReviewFallbackModelsHint:`Models resolved from the selected profile or global chain; they form both the selection pool and the retry chain.`,autoReviewModelLabel:`Model`,autoReviewModelHint:`Model for the auto-review agent. Requires a provider first.`,autoReviewDebounceLabel:`Debounce interval (ms)`,autoReviewDebounceHint:`Minimum gap between review triggers after a file change.`,autoReviewMaxFilesLabel:`Max files per batch`,autoReviewMaxFilesHint:`Files per auto-review call.`,autoReviewMaxConcurrentLabel:`Max concurrent reviews`,autoReviewMaxConcurrentHint:`Parallel review subagent cap.`,autoReviewCascadeLabel:`Cascade on`,autoReviewCascadeHint:`Follow-up agent threshold — spawns security-scanner and bug-hunter above this severity.`,autoReviewCascadeOff:`Off — no cascade`,autoReviewCascadeCritical:`Critical — only critical findings`,autoReviewCascadeHigh:`High — critical or high findings`,autoReviewPickModel:`Pick provider/model for Auto-Review`,autoReviewPickModelHint:`Select a provider and model, or a named fallback profile, for mid-session auto-review.`,pluginsPerPluginHint:`Enable or disable individual plugins. Changes take effect on next session.`},g={heading:`Fallback / Round-robin Models`,body:`These ordered model chains support failover and profile-based round-robin selection. On rate limits, 5xx errors, or stalls, the agent retries on the next available model.`,autoFallbackLabel:`Auto fallback`,autoFallbackHint:`When the chain above is empty, auto-derive one from your keyed providers.`,favoritesOnlyLabel:`Favorites only`,favoritesOnlyHint:`When auto fallback derives a chain, restrict it to your favorite models.`,profilesHeading:`Fallback / Round-robin Profiles`,addProfile:`Add`,noProfiles:`No named fallback profiles yet.`,createDefault:`Create default from active model`,useChain:`Use chain`,setLeader:`Set leader`,profileEmpty:`Profile is empty.`,favoritesHeading:`Favorite Models`,favoritesEmpty:`Favorites are shown first and can constrain auto fallback.`,addModelToProfile:`Add model to profile…`,addFavoriteModel:`Add favorite model…`,inactive:`inactive`},_={heading:`Fleet & Streaming`,fleetChatVerbosityLabel:`Stream fleet events`,fleetChatVerbosityHint:`Show live subagent activity in the fleet panel.`,maxConcurrentLabel:`Max concurrent subagents`,maxConcurrentHint:`Maximum number of subagents that can run simultaneously.`,nextPredictionLabel:`Next-step prediction`,nextPredictionHint:`After a turn completes, predict likely next steps.`,nextStepsToolLabel:`Nextsteps tool`,nextStepsToolHint:`Let the agent record its follow-up suggestions with a tool call instead of writing the block by hand. Applies to the next session.`},v={heading:`Integrations`,hqHeading:`HQ Client`,hqPublishingLabel:`HQ publishing`,hqPublishingHint:`Publish this WebUI/client session to WrongStack HQ.`,hqUrlLabel:`HQ URL`,hqUrlHint:`Leave empty for same-machine auto-discovery.`,hqTokenLabel:`HQ client token`,hqRawContentLabel:`Raw HQ content`,hqRawContentHint:`Send raw content previews to HQ instead of redacted previews.`,wrongProxyHeading:`WrongProxy / WrongTrace`,wrongProxyEnabledLabel:`Route base URLs through the local proxy`,wrongProxyEnabledHint:`When enabled, every provider's base URL is rewritten through the configured proxy (default http://localhost:3444/proxy/<host><path>). openai-codex is excluded — it talks directly to the ChatGPT backend with an OAuth-issued token.`,wrongProxyUrlLabel:`Proxy URL`,wrongProxyUrlHint:`Where the local proxy daemon listens. The system periodically probes <url>/api/health; an unreachable daemon disables rewriting without retrying every keystroke.`,wrongProxyChangesApply:`Changes apply immediately to subsequent requests — no restart needed.`,telegramHeading:`Telegram Notifications`,telegramSessionEndLabel:`Session end`,telegramSessionEndHint:`Send a summary when a session ends.`,telegramDelegateLabel:`Delegate finished`,telegramDelegateHint:`Send a humanized note when a subagent completes.`,telegramLongToolLabel:`Long-running tools`,telegramLongToolHint:`Notify when a tool exceeds {{ms}}ms. Set 0 to disable.`,telegramChangesApply:`Changes apply immediately.`,telegramNotConfigured:`Telegram is not configured.`,disabledHint:`Enable the feature in the Context tab to use this section.`},y={heading:`Context & Memory`,flagsHeading:`Feature Flags`,memoryLabel:`Memory`,memoryHint:`Persist and recall facts across sessions.`,skillsLabel:`Skills`,skillsHint:`Load domain-specific skill prompts.`,indexOnStartLabel:`Index on start`,indexOnStartHint:`Build the codebase symbol index at session start.`,mcpLabel:`MCP servers`,mcpHint:`Enable Model Context Protocol integrations.`,pluginsLabel:`Plugins`,pluginsHint:`Load and run user-installed plugins.`,modelsRegistryLabel:`Models registry`,modelsRegistryHint:`Use the models.dev catalog for provider discovery.`,autoCompactLabel:`Auto-compact context`,autoCompactHint:`Automatically trim the context window when near limits.`,compactorStrategyLabel:`Compactor strategy`,compactorStrategyHint:`How the context is compacted when it grows too large.`,compactorStrategyHybrid:`Hybrid — fast rules (default)`,compactorStrategyIntelligent:`Intelligent — LLM summarization`,compactorStrategySelective:`Selective — LLM-driven selection`,contextModeLabel:`Context mode`,contextModeHint:`Context window policy — balanced is the default.`,contextModeBalanced:`Balanced — normal context usage`,contextModeFrugal:`Frugal — conservative token use`,contextModeDeep:`Deep — larger context for complex tasks`,tokenSavingLabel:`Token-saving mode`,tokenSavingHint:`Controls the next session's direct tool schemas and system prompt size.`,tokenSavingAuto:`Auto — adapt prompt to the model window`,tokenSavingOff:`Off — no token saving`,tokenSavingMinimal:`Minimal — basic optimization`,tokenSavingLight:`Light — moderate reduction`,tokenSavingMedium:`Medium — significant savings`,tokenSavingAggressive:`Aggressive — smallest direct surface and prompt`,pluginsPerPluginHeading:`🔌 Per-Plugin Controls`,pluginsPerPluginHint:`Enable or disable individual plugins. Changes take effect on next session.`,pluginChimera:`Chimera — post-session code review`,pluginSkills:`Skills — skill library & authoring`,pluginPrompts:`Prompts — prompt library & gen`,pluginCostTracker:`Cost Tracker — token & cost tracking`,pluginTelegram:`Telegram — notification bot`,pluginKnowledgeGraph:`Knowledge Graph — persistent facts`,pluginErrorLens:`Error Lens — failure diagnostics`,pluginTodoTracker:`Todo Tracker — persistent todos`,pluginSecretScanner:`Secret Scanner — credential detection`,pluginLintGate:`Lint Gate — lint before iteration`,pluginDiffSummary:`Diff Summary — compact diffs`,pluginDepGuard:`Dep Guard — dependency rules`,pluginTypeGate:`Type Gate — typecheck before iteration`,pluginInjectionShield:`Injection Shield — prompt injection`,pluginPromptFirewall:`Prompt Firewall — input filtering`,pluginTokenBudget:`Token Budget — token limits`,pluginLoopBreaker:`Loop Breaker — runaway detection`},b={heading:`Logs & Debug`,logLevelLabel:`Log level`,logLevelHint:`Minimum severity for server-side logging.`,logLevelDebug:`Debug — everything`,logLevelInfo:`Info — normal flow`,logLevelWarn:`Warn — problems only`,logLevelError:`Error — failures only`,auditLevelLabel:`Audit level`,auditLevelHint:`Detail level for session audit logs.`,auditLevelMinimal:`Minimal — errors only`,auditLevelStandard:`Standard — tool calls + errors`,auditLevelFull:`Full — every event (large logs)`,fsAccessLabel:`Filesystem access`,fsAccessHint:`Scope of the file tools. Applies on the next session.`,fsAccessUnrestricted:`Unrestricted — any path`,fsAccessProject:`Project — confined to project root`,debugStreamLabel:`Debug stream`,debugStreamHint:`Raw SSE hex-dump to the server stderr for provider debugging.`},x={heading:`Security & Monitoring`,brainHeading:`🧠 Brain — Decision Control`,brainHint:`Decision models, council, escalation and risk ceiling — applied live, saved to the global config.`,shadowHeading:`👁 Shadow Agent — Fleet Monitor`,shadowHint:`The Shadow Agent monitors all fleet agents, tracks their tasks, and detects anomalies.`,toolsHeading:`🔧 Tool Access Control`,toolsHint:`Enable or disable individual tools. Mutating tools are marked in amber.`,breakerHeading:`Process Circuit Breaker`,breakerHint:`Gate bash/exec after repeated failures; trips arm the kill/reset countdown.`},S={switchingTo:`Switching to {{provider}} / {{model}}…`,switching:`Switching model…`,switchingToTarget:`Switching to {{target}}…`,previousModel:`previous model`,modelSwitchedNextRequest:`Model switched: {{from}} → {{to}}. Active for the next LLM request.`,modelSwitchedRunActive:`Model switched: {{from}} → {{to}}. Active for the next LLM request; the current run continues and is not restarted.`,fallbackExists:`Fallback profile "{{name}}" already exists`,selectProviderModelFirst:`Select a provider and model first`,defaultProfileCreated:`Default fallback profile created`,profileEmpty:`Fallback profile "{{name}}" is empty`,leaderSetFrom:`Leader set from {{name}}`,modelSwitchTimeout:`Model switch timed out. Please try again.`},C={workbenchHeading:`Workbench chrome`,workbenchHint:`Toggle visibility of workbench surfaces in the chat view.`,showModelReasoningLabel:`Show model reasoning`,showModelReasoningHint:`Render LLM reasoning/thinking blocks in chat history (TUI parity).`,showAgentSwarmPanelLabel:`Agent swarm panel`,showAgentSwarmPanelHint:`Controls where the agent swarm (fleet + mission queue) is displayed.`,swarmPanelBottom:`Bottom panel`,swarmPanelSidebar:`Right sidebar`,swarmPanelOff:`Off`,titleAnimationLabel:`Title animation`,titleAnimationHint:`Animate the terminal/tab title with run-state status (TUI parity).`,statusChipHeading:`Status chip & statusline`,statusChipHint:`Visual style for the TUI/CLI statusline and working-state chip.`,thinkingWordLabel:`Thinking word`,thinkingWordHint:`Single short word shown in the TUI status chip while the agent is working.`,statuslineModeLabel:`Statusline mode`,statuslineModeHint:`Density of the TUI statusline rail.`,statuslineModeMinimum:`Minimum`,statuslineModeDetailed:`Detailed`,statuslineModeNoColor:`No color`,animationStyleLabel:`Animation style`,animationStyleHint:`Animation for the TUI working-state chip.`,animationStyleRainbow:`Rainbow`,animationStyleWave:`Wave`,animationStylePulse:`Pulse`,animationStyleDots:`Dots`,animationStyleBreathe:`Breathe`,animationStyleStatic:`Static`,animationStyleCycle:`Cycle`,refineHeading:`Refine countdown & diffs`,refineHint:`Configure the pre-refine grace countdown and the multi-diff summary footer cutoff.`,preRefineSecondsLabel:`Pre-refine countdown`,preRefineSecondsHint:`Grace period before the refiner starts (seconds). 0 = skip the countdown and refine immediately.`,preRefineSecondsPresets:`Presets: {{presets}} seconds (0 = off).`,multiDiffSummaryLabel:`Multi-diff summary`,multiDiffSummaryHint:`Minimum number of files before the aggregate 'N files · +X -Y' footer is shown above per-file blocks.`,multiDiffSummaryPresets:`Presets: {{presets}} (0 = off).`,memoryHeading:`Read tool & SAGE memory injection`,memoryHint:`Toggle what the read tool includes and when SAGE memory blocks are surfaced in tool results.`,readSymbolsLabel:`Read symbols`,readSymbolsHint:`When true, the read tool includes codebase-index symbols alongside file content.`,showSageMemoryInjectLabel:`Show SAGE Memory Inject`,showSageMemoryInjectHint:`When true, surface SAGE memory-injection blocks in tool results.`,sageMemoryInjectThresholdLabel:`SAGE Memory Inject threshold`,sageMemoryInjectThresholdHint:`Minimum relation strength required for an injected SAGE memory (0.72–0.95).`,footnote:`Settings here mirror the TUI /settings picker. Toggles apply live; some fields require a session restart.`,sageRelaxed:`0.72 (relaxed)`,sageDefault:`0.85 (default)`,sageStrict:`0.95 (strict)`},w=`Reset`,T=`Cancel`,E=`Reset all preferences?`,D=`This restores default settings and reloads the page.`,O=`Reset`,k={heading:`Brain`,headingHint:`Decision models, council, escalation and risk ceiling — applied live, saved to the global config.`,riskHeading:`Autonomy ceiling`,escalationHeading:`Escalation`,escalationModeLabel:`Mode`,escalationModeHint:`Headless: the Brain never blocks on a human — unanswered escalations resolve via the safe terminal policy. Applies to CLI/TUI sessions; the standalone WebUI Brain is always headless.`,escalationDecisionTimeoutLabel:`Decision timeout`,escalationDecisionTimeoutHint:`Per-LLM-call time budget for one Brain decision.`,escalationHumanTimeoutLabel:`Human answer timeout`,escalationHumanTimeoutHint:`Interactive mode: how long an escalation prompt may wait before the terminal policy resolves it.`,escalationTerminalPolicyLabel:`Terminal policy`,escalationTerminalPolicyHint:`How a headless escalation resolves with no human available. Conservative accepts a recommended option at low/medium risk; deny-all never auto-accepts; continue-on-recommended accepts a recommended option at ANY risk.`,escalationDecisionLogSizeLabel:`Decision log size`,escalationDecisionLogSizeHint:`Rolling in-memory decision log kept for the status view.`,rulesHeading:`Deterministic rules`,rulesConfigured:`{{count}} configured`,rulesBody:`Evaluated before any provider call — first match wins. Edit them in the global config file; this view is read-only.`,rulesOff:`off`,rulesDropped:`{{count}} rule(s) dropped`,heuristicsHeading:`Heuristics`,heuristicsBody:`Free pattern guesses that settle a question before any model runs. All on by default — turn one off when its guess is wrong for your workload.`,heuristicsLowRiskLabel:`Low-risk auto-answer`,heuristicsLowRiskHint:`Auto-answer low-risk requests that already carry a recommended option.`,heuristicsBlockedLabel:`Blocked-resolved`,heuristicsBlockedHint:`'blocked …' plus an explicit resolution marker in the context resolves to continue.`,heuristicsDeadlockLabel:`Deadlock skip`,heuristicsDeadlockHint:`'deadlock' plus failed work units in the context resolves to skip and continue.`,heuristicsRetryLabel:`Retry exhausted`,heuristicsRetryHint:`'failed'/'retry' plus demonstrably exhausted retries marks the unit failed and moves on.`,heuristicsPingLabel:`Continue ping`,heuristicsPingHint:`A bare continue/proceed ping with no competing alternative resolves to continue.`,heuristicsMarkers:`Markers: {{markers}}`,qualityHeading:`LLM quality`,qualityCircuit_one:`circuit {{state}} · {{count}} fail`,qualityCircuit_other:`circuit {{state}} · {{count}} fails`,qualityResponseBudgetLabel:`Response budget`,qualityResponseBudgetHint:`Output tokens per decision call. A Brain response is one decision plus a one-sentence rationale.`,qualityRejectLabel:`Reject uncertain answers`,qualityRejectHint:`Treat a declined or empty response as 'this tier could not decide' instead of accepting it as an answer.`,qualityMinConfidenceLabel:`Minimum confidence`,qualityMinConfidenceHint:`Reject answers whose self-reported confidence is below this. Responses reporting no confidence always pass.`,qualityDenyTerminalLabel:`Deny is terminal`,qualityDenyTerminalHint:`Whether a deny from the single-LLM tier ends the decision. 'when-decided' makes a genuine refusal terminal while infrastructure failures still escalate.`,traceHeading:`Replay trace`,traceRecordLabel:`Record decision traces`,traceRecordHint:`Per-decision JSONL of every tier, pool target and council vote, with timings and token usage. Off by default — enabling it writes decision content to disk.`,traceContentLabel:`Trace content`,traceContentHint:`'full' keeps question and context (needed to replay a decision); 'redacted' truncates free text; 'none' records metadata only.`,cacheHeading:`Decision cache`,cacheStats:`{{hits}} hit / {{misses}} miss · {{size}} live`,cacheReplayLabel:`Replay identical verdicts`,cacheReplayHint:`Reuse a previous council/LLM verdict for an identical repeated question. Deterministic tiers and ask-human are never cached; a decision the ledger observes to have failed is evicted.`,cacheLifetimeLabel:`Entry lifetime`,cacheLifetimeHint:`How long a cached verdict stays replayable.`,cacheMaxEntriesLabel:`Maximum entries`,cacheMaxEntriesHint:`Cap on live cached verdicts.`,monitorHeading:`Monitor`,monitorBody:`Distress-signal self-activation. The monitor is built once at boot, so these apply to the next session rather than live.`,monitorWatchLabel:`Watch for distress signals`,monitorWatchHint:`Tool-failure streaks, error storms, agent stalls and file churn engage the Brain on their own.`,monitorPolicyLabel:`Signal policy`,monitorPolicyHint:`How a detected signal resolves. 'llm' consults the Brain; 'steer' always intervenes and 'observe' never does — both without a provider call.`,modelsHeading:`Decision models`,modelsSessionBadge:`session model`,modelsResolvedBadge:`{{resolved}}/{{total}} resolved`,modelsUseSessionLabel:`Use session model`,modelsUseSessionHint:`Decide with whatever model the session is running. Turn off by adding models below.`,modelsAddModel:`Add model`,modelsPoolStrategyLabel:`Pool strategy`,modelsPoolStrategyHint:`Fallback: first model is primary, the rest are tried in order on failure. Round-robin: decisions rotate across the pool.`,councilHeading:`Council`,councilConvened:`convened`,councilDisabled:`disabled`,councilEnableLabel:`Enable multi-LLM council`,councilEnableHint:`High-stakes questions are voted on by independent seats (executor / skeptic-with-veto / auditor) instead of one model. Needs ≥2 resolvable voters (explicit seats below, or a ≥2-model pool).`,councilSeatsDerived:`Seats derived from the pool: {{seats}}`,councilCustomLens:`Custom decision lens — sent to the seat verbatim.`,councilCustomOption:`{{persona}} (custom)`,councilVeto:`veto`,councilAddVoter:`Add voter`,councilRiskFloorLabel:`Risk floor`,councilRiskFloorHint:`Minimum question risk that convenes the council instead of the single-model tier.`,councilJudge:`Judge`,councilJudgeDesc:`Tie-breaker model that sees every vote's rationale.`,councilResolved:`resolved: {{model}}`,councilAlsoVoter:`⚠ also a voter`,councilAuto:`auto`,councilPick:`Pick…`,councilAutoReset:`Auto`,councilQuorumLabel:`Quorum`,councilQuorumHint:`Fraction of seats that must return a valid vote.`,councilApprovalLabel:`Approval`,councilApprovalHint:`Fraction of cast vote weight the winning option must exceed.`,councilPerSeatTimeoutLabel:`Per-seat timeout`,councilPerSeatTimeoutHint:`Time budget for a single seat's vote. Slower than the decision timeout means one stalled seat holds up the vote.`,councilMaxConcurrencyLabel:`Max concurrency`,councilMaxConcurrencyHint:`How many seats vote in parallel. Lower this when the pool shares one rate-limited provider.`,councilDistinctnessLabel:`Seat distinctness`,councilDistinctnessHint:`Reject duplicate seats: 'model' requires distinct models, 'provider' requires independent providers so one outage cannot sway the vote.`,councilVoterBudgetLabel:`Voter response budget`,councilVoterBudgetHint:`Output tokens per seat call — reasoning models spend thinking tokens from this budget.`,councilJudgeBudgetLabel:`Judge response budget`,councilJudgeBudgetHint:`Output tokens for the tie-breaking judge call.`,councilSeatTemplate:`Seat template:`,ledgerHeading:`Decision ledger`,ledgerRecordLabel:`Record decisions + outcomes`,ledgerRecordHint:`Persists every decision and its observed outcome; similar past outcomes are fed back into future Brain prompts.`,ledgerAutoDenyLabel:`Auto-deny after failures`,ledgerAutoDenyHint:`Deny deterministically (no LLM) once this many consecutive approvals of a decision group ended in observed failures.`,ledgerMemoryEntriesLabel:`In-memory entries`,ledgerMemoryEntriesHint:`Ring size held in memory, and the number of past entries seeded from disk at boot.`,ledgerRetryWindowLabel:`Intervention retry window`,ledgerRetryWindowHint:`A same-kind monitor intervention re-firing inside this window marks the previous steer as a failure.`,recentHeading:`Recent decisions ({{count}})`,recentEmpty:`No decisions recorded yet this session.`,optInteractive:`Interactive (ask me)`,optHeadless:`Headless (never ask)`,optConservative:`Conservative (default)`,optDenyAll:`Deny all`,optContinueRecommended:`Continue on recommended`,optNeverDefault:`Never (default)`,optWhenDecided:`When decided`,optAlways:`Always`,optFullDefault:`Full (default)`,optRedacted:`Redacted`,optMetadataOnly:`Metadata only`,optConsultBrain:`Consult the Brain (default)`,optAlwaysSteer:`Always steer`,optObserveOnly:`Observe only`,optFallback:`Fallback`,optRoundRobin:`Round-robin`,optMediumPlus:`Medium+`,optHighPlus:`High+`,optCriticalOnly:`Critical only`,optNoneDefault:`None (default)`,optDistinctModels:`Distinct models`,optDistinctProviders:`Distinct providers`,optDefault3:`Default (3)`,optOff:`Off`,pickPoolTitle:`Add Brain pool model`,pickPoolHint:`Ordered decision pool — first is primary.`,pickVoterTitle:`Add council voter`,pickVoterHint:`Dialog stays open — add ≥2 voters, then close.`,pickJudgeTitle:`Pick council judge`,pickJudgeHint:`Tie-breaker that sees every vote.`,persistError:`Settings applied live but not saved.`,riskCopy:{off:`Human decides everything`,low:`Auto-decide low risk only`,medium:`Auto-decide up to medium risk`,high:`Auto-decide up to high risk`,all:`Auto-decide everything`},rulesConfigured_one:`{{count}} configured`,rulesConfigured_other:`{{count}} configured`},A={default15s:`Default (15s)`,waitForever:`Wait forever`,defaultHalf:`Default (0.5)`,all:`All`,n200Default:`200 (default)`,offDefault:`Off (default)`,n20Default:`20 (default)`,m5Default:`5m (default)`,default:`Default`,oneSerial:`1 (serial)`,default500:`Default (500)`,default10m:`Default (10m)`},j={capToolCall:`Tool call`,capReasoning:`Reasoning`,capTemperature:`Temperature`,capAttachment:`Attachment`,capStructuredOutput:`Structured output`,capOpenWeights:`Open weights`},M={title:n,subtitle:r,tabs:i,general:a,model:o,connection:s,provider:c,providerModels:l,mcp:u,allowlist:d,oauth:f,agent:p,execution:m,features:h,fallbacks:g,fleet:_,integrations:v,context:y,logs:b,security:x,toast:S,display:C,resetLabel:w,cancel:T,resetConfirmTitle:E,resetConfirmBody:D,resetConfirmAction:O,brain:k,brainOpt:A,modelSchema:j};export{t as n,M as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`Paramètres`,t=`Configure every aspect of your agent workspace`,n={general:`Général`,provider:`Fournisseur`,connection:`Connexions`,agent:`Agent`,execution:`Exécution`,fallbacks:`Fallbacks`,routing:`Routage`,fleet:`Flotte`,integrations:`Intégrations`,chimera:`Chimera`,context:`Contexte`,logs:`Journaux`,security:`Sécurité`,display:`Affichage`,displayDesc:`Apparence du workbench, puce d’état, minuteurs de refine et bascules d’injection d’outil/mémoire — reflète le SettingsPicker du TUI.`,generalDesc:`Apparence, langue et préférences d'affichage — reflète le sélecteur de paramètres de la TUI.`,providerDesc:`Clés API, fournisseurs enregistrés et catalogue de fournisseurs.`,connectionDesc:`URL du serveur WebSocket et état de la connexion.`,agentDesc:`Autonomie, affinage du prompt, raisonnement et routage des modèles.`,executionDesc:`Limites d'itérations, comportement de sortie et disjoncteur de processus.`,fallbacksDesc:`Chaîne de repli des modèles, favoris et profils de repli nommés.`,routingDesc:`Matrice de routage des modèles par phase et par rôle.`,fleetDesc:`Concurrence des sous-agents, streaming et prédiction des prochaines étapes.`,integrationsDesc:`Client HQ, serveurs MCP et notifications Telegram.`,chimeraDesc:`Configuration de l'agent de revue de code après session.`,contextDesc:`Interrupteurs de fonctionnalités, stratégie de contexte, compacteur et contrôles des plugins.`,logsDesc:`Niveau de journalisation, détail d'audit, portée d'accès au système de fichiers et flux de débogage.`,securityDesc:`Contrôle décisionnel Brain, agent fantôme et accès aux outils.`},r={heading:`Modèle`,loading:`Chargement des modèles...`,notFound:`Aucun modèle trouvé pour ce fournisseur. Le catalogue est peut-être vide ou en cours de chargement.`,selectProviderFirst:`Sélectionnez d'abord un fournisseur`,context:`{{count}}k contexte`},i={providerHealth:{heading:`État des fournisseurs`,hint:`Quels couples fournisseur/modèle sont sains, dégradés ou bloqués, et pourquoi.`,refresh:`Actualiser`,empty:`Aucun fournisseur suivi pour le moment.`,summary:`{{blocked}} bloqués · {{degraded}} dégradés · {{healthy}} sains`,totalFailures:`échecs`,rateLimits:`limitations de débit`,state:{blocked:`Bloqué`,degraded:`Dégradé`,healthy:`Sain`},blocked:`Bloqué`,degraded:`Dégradé`,consecutive:`échecs consécutifs`,retryNow:`Réessayer maintenant`,clear:`Effacer`,allHealthy:`Tous les fournisseurs suivis sont sains.`,statSuccesses:`succès`,statFailures:`échecs`,statRateLimits:`limitations de débit`,statConsecutive:`consécutifs`,lastError:`Dernière erreur`,recentErrors:`Erreurs récentes`,autoRecovery:`Récupération automatique à`,expired:`Expiré`,remainingSecs:`{{secs}} s`,remainingMins:`{{mins}} min`,remainingHours:`{{hours}} h {{mins}} min`,explainHealthy:`Répond normalement.`,explain402:`Limite de facturation atteinte (402). Bloqué environ 15 minutes, jusqu'à la réinitialisation du quota.`,explain403quota:`Limite d'utilisation atteinte pour ce cycle. Bloqué jusqu'au prochain cycle (environ 15 min).`,explain403auth:`Erreur d'autorisation/authentification. Non réessayable — vérifiez la clé API et les droits d'accès.`,explain429:`Limite de débit atteinte (429). Limitation temporaire avec récupération automatique.`,explain529:`Serveur surchargé (529). Le fournisseur subit une forte charge.`,explain5xx:`Erreur serveur ({{status}}). Problème temporaire du backend.`,explainNetwork:`Réseau inaccessible. Vérifiez votre connexion ou la page d'état du fournisseur.`,explainTimeout:`Délai de la requête dépassé (408). Le fournisseur a répondu trop lentement.`,explainStreamHang:`Flux interrompu (599). Le fournisseur s'est arrêté en cours de réponse.`,explainQuota:`Quota épuisé. Bloqué jusqu'à la fenêtre de réinitialisation.`,explainUnknown:`Type d'échec : {{kind}} / état : {{status}}.`},wsUrlLabel:`URL du serveur WebSocket`,wsUrlPlaceholder:`ws://localhost:3456`,wsUrlHint:`URL du serveur WebSocket de l'agent. Le serveur fonctionne en parallèle du CLI.`,startingHeading:`Démarrage du serveur WebSocket`,startingBody:`Pour le développement, lancez ./dev.ps1 depuis la racine du repo (définissez éventuellement WS_HOST/WS_PORT avant). Sinon, lancez la WebUI avec la CLI : wstack --webui.`,healthHeading:`État des connexions`,healthHint:`Rapport en direct sur le propriétaire, le stockage, la file, la surveillance et la latence.`,healthRefresh:`Actualiser`,healthLoading:`Vérification des services…`,healthUnknown:`État inconnu`,healthDisconnected:`Le WebSocket de la WebUI est déconnecté.`,healthRestartRequired:`Redémarrez le backend une fois pour activer le rapport de connexion.`,healthOptional:`À la demande`,endpointInvalidBadge:`chemin du socket trop long`,endpointInvalidRemedy:`Le chemin du socket IPC dépasse la limite de longueur de cette plateforme, donc le démon partagé ne peut pas démarrer. Les requêtes tombent en mode local de processus plus lent. Solution : définissez un TMPDIR plus court (par ex. export TMPDIR=/tmp) et redémarrez WrongStack.`,healthCounts:`{{healthy}} sains · {{attention}} attention · {{sleeping}} en veille`,healthOverall:{healthy:`Services requis sains`,degraded:`Service requis dégradé`,error:`Service requis indisponible`},healthStatus:{healthy:`Sain`,degraded:`Dégradé`,offline:`En veille`,unavailable:`Indisponible`,error:`Erreur`},services:{kanban:{label:`Kanban IPC`},mailbox:{label:`Mailbox IPC`}},serviceActionRestart:`Redémarrer {{label}}`,webuiTransport:`Transport WebUI`,serviceAutoRestarting:`Redémarrage automatique…`},a={savedProviderCount_one:`{{count}} fournisseur`,savedProviderCount_other:`{{count}} fournisseurs`,keyCount_one:`{{count}} clé configurée`,keyCount_other:`{{count}} clés configurées`,activeKeyCount_one:`{{count}} clé active`,activeKeyCount_other:`{{count}} clés actives`,subscriptionHeading:`Connexion par abonnement`,apiKeysHeading:`Fournisseurs de clés API`,apiKeysBody:`Choisissez un fournisseur dans le catalogue et ajoutez une clé API, ou gérez les fournisseurs enregistrés.`,tabCatalog:`Catalogue`,tabSaved:`Enregistrés ({{count}})`,searchPlaceholder:`Rechercher {{count}} fournisseurs (nom / id / famille)…`,loadingCatalog:`Chargement du catalogue...`,noMatch:`Aucun fournisseur ne correspond à « {{query}} ».`,configured:`Configuré`,reachable:`Accessible`,envVar:`ENV : {{var}}`,modelCount_one:`{{count}} modèle`,modelCount_other:`{{count}} modèles`,keyPlaceholder:`Clé API {{name}}`,orEnv:`Ou définissez {{env}} dans l'environnement à la place.`,addApiKey:`Ajouter une clé API`,manageKeys:`Gérez vos clés API et configurations de fournisseur`,addProvider:`Ajouter un fournisseur`,addCustomHeading:`Ajouter un fournisseur personnalisé`,localServers:`Serveurs locaux — cliquez pour pré-remplir :`,providerIdPlaceholder:`ID du fournisseur (ex. my-llm-server)`,apiKeyOptionalPlaceholder:`Clé API (facultatif)`,noSaved:`Aucun fournisseur enregistré`,noSavedHint:`Ajoutez un fournisseur pour démarrer`,apiKeysLabel:`Clés API`,addKey:`Ajouter une clé`,noKeys:`Aucune clé configurée`,active:`Active`,setActive:`Définir comme active`,keyLabelPlaceholder:`Libellé de la clé (ex. default, production)`,apiKeyPlaceholder:`Clé API`,saveKey:`Enregistrer la clé`,savedToast:`Clé enregistrée pour {{name}}`},o={addCustom:`Ajouter un modèle personnalisé`,addCustomTitle:`Ajouter un modèle personnalisé`,addFromCatalog:`Ajouter depuis le catalogue`,catalogSearchPlaceholder:`Rechercher dans le catalogue models.dev…`,catalogSearchTitle:`Rechercher dans le catalogue models.dev`,colActions:`Actions`,colCaps:`Capacités`,colContext:`Contexte`,colCost:`Coût`,colModalities:`Modalités`,colModel:`Modèle`,colOutput:`Sortie`,colSource:`Source`,editModel:`Modifier le modèle`,emptyState:`Aucun modèle pour l'instant — ajoutez depuis le catalogue ou créez un modèle personnalisé.`,fieldContext:`Fenêtre de contexte`,fieldCostInput:`Coût d'entrée`,fieldCostOutput:`Coût de sortie`,fieldDescription:`Description`,fieldFamily:`Famille`,fieldInputLimit:`Limite d'entrée`,fieldInputModalities:`Modalités d'entrée`,fieldLastUpdated:`Dernière mise à jour`,fieldName:`Nom`,fieldOutput:`Sortie max`,fieldOutputModalities:`Modalités de sortie`,fieldReleaseDate:`Date de sortie`,modelAdded:`{{model}} ajouté`,modelRemoved:`{{model}} supprimé`,modelSaved:`{{model}} enregistré`,noResults:`Aucun modèle trouvé`,removeModel:`Supprimer le modèle`,sectionCapabilities:`Indicateurs de capacités`,sectionDates:`Dates`,sectionIdentity:`Identité`,sectionLimits:`Limites`,sectionModalities:`Modalités`,sectionPricing:`Tarifs (par 1M de jetons, USD)`,tabForm:`Formulaire`,tabRawJson:`JSON brut`,typeToSearch:`Saisissez pour rechercher…`,useModel:`Utiliser {{model}}`,usingModel:`Utilisation de {{model}}`,filterPlaceholder:`Filtrer les modèles…`},s={status:{connected:`Connecté`,connecting:`Connexion`,sleeping:`En veille`,discovering:`Découverte`,error:`Erreur`,stopped:`Arrêté`,unknown:`Inconnu`},disabled:`Les serveurs MCP sont désactivés.`,wakeTitle:`Réveiller le serveur`,sleepTitle:`Mettre en veille`,discoverTitle:`Découvrir les outils`,editTitle:`Modifier`,removeTitle:`Supprimer`,statusLabel:`Statut :`,enabledLabel:`Activé :`,yes:`Oui`,no:`Non`,descriptionLabel:`Description :`,pidLabel:`PID :`,errorLabel:`Erreur :`,toolsLabel:`Outils ({{count}}) :`,noTools:`Aucun outil découvert pour le moment`,serverNameRequired:`Le nom du serveur est requis`,dialogTitleEdit:`Modifier le serveur MCP`,dialogTitleAdd:`Ajouter un serveur MCP`,dialogTitleAddCustom:`Ajouter un serveur MCP personnalisé`,fieldName:`Nom`,fieldNamePlaceholder:`ex. github, filesystem`,fieldTransport:`Transport`,fieldUrl:`URL`,fieldCommand:`Commande`,fieldCommandPlaceholder:`ex. npx`,fieldArgs:`Args`,fieldArgsHint:`(séparés par des espaces)`,fieldArgsPlaceholder:`ex. -y @modelcontextprotocol/server-github`,fieldEnv:`Variables d'env`,fieldEnvHint:`(KEY=valeur, une par ligne)`,fieldDescription:`Description`,fieldDescriptionPlaceholder:`Serveur MCP GitHub pour l'accès au dépôt`,enableServer:`Activer le serveur`,lazyConnect:`Connexion différée`,lazyConnectHint:`(ne démarre qu'au premier appel d'outil ; se met en veille quand inactif)`,saveChanges:`Enregistrer`,addServer:`Ajouter le serveur`,requires:`Requiert : {{vars}}`,added:`Ajouté`,heading:`Serveurs MCP`,summary:`{{connected}} connecté(s) · {{sleeping}} en veille · {{total}} au total`,addCustom:`Personnalisé`,tabRecommended:`Recommandés`,tabServers:`Serveurs`,tabAddCustom:`Personnalisé`,recommendedBody:`Ajout en un clic pour les serveurs MCP populaires. Cliquez sur Ajouter pour pré-remplir la configuration, puis confirmez. Les serveurs nécessitant des identifiants devront avoir leurs variables d'env définies avant usage.`,loadingServers:`Chargement des serveurs...`,noServers:`Aucun serveur MCP configuré`,noServersHint:`Passez à l'onglet Recommandés pour ajouter des serveurs populaires, ou Personnalisé pour les vôtres.`,addCustomBody:`Configurez un serveur MCP personnalisé avec transport stdio, SSE ou HTTP.`,addCustomBodyHint:`Pour les serveurs populaires, utilisez plutôt l'onglet Recommandés — tout est préconfiguré.`,removeConfirmTitle:`Supprimer le serveur « {{name}} » ?`,removeConfirmBody:`Cela supprime le serveur MCP de votre configuration.`,toastAdded:`Serveur « {{name}} » ajouté`,toastRemoved:`Serveur « {{name}} » supprimé`,toastDiscovered:`{{count}} outils découverts depuis « {{name}} »`,toastSleeping:`Le serveur « {{name}} » est en veille`,toastConnected:`Serveur « {{name}} » connecté`,toastReconnected:`Serveur « {{name}} » reconnecté`,toastDisconnected:`Serveur « {{name}} » déconnecté : {{reason}}`,toastError:`Serveur « {{name}} » erreur : {{error}}`},c={title:`Effacer la allowlist enregistrée ?`,body_one:`Cela supprimera le modèle épinglé pour {{provider}}. Le sélecteur de modèle reviendra au catalogue models.dev.`,body_other:`Cela supprimera les {{count}} modèles épinglés pour {{provider}}. Le sélecteur de modèle reviendra au catalogue models.dev.`,undoHint:`Vous pouvez annuler pendant 8 secondes après confirmation.`,keepTitle:`Conserver l'allowlist (Échap)`,clearTitle:`Effacer l'allowlist (Entrée)`,clear:`Effacer l'allowlist`},l={termsWarning:`Connectez-vous avec un abonnement au lieu d'une clé API. Utiliser un abonnement en dehors de son client officiel peut enfreindre les Conditions du fournisseur — votre compte pourrait être limité ou banni. Une clé API est la voie sanctifiée pour un usage programmatique.`,signIn:`Se connecter`,waitingBrowser:`En attente de votre connexion…`,openSignIn:`Ouvrir la page de connexion`,pasteLoopbackBusy:`Port loopback occupé — collez l'URL de redirection`,pasteCantReach:`Le navigateur n'atteint pas ce serveur ? Collez l'URL de redirection`,submit:`Soumettre`,enterCode:`Saisissez ce code sur la page de vérification :`,openVerification:`Ouvrir la page de vérification`,waitingCode:`En attente d'autorisation…`,exchanging:`Échange des tokens…`,fetchingModels:`Récupération des modèles…`,signedIn:`Connecté.`,signedInToast:`Connecté — {{provider}}`,signInFailed:`Échec de la connexion`,accountCount_one:`{{count}} compte enregistré`,accountCount_other:`{{count}} comptes enregistrés`,active:`Actif`,inactive:`Inactif`,retry:`Réessayer`,retryLogin:`Ré-authentifier ce compte`,newAccount:`Nouveau compte`,aliasPlaceholder:`ex. {{default}}`},u={showThinkingLabel:`Afficher les journaux de raisonnement`,showThinkingHint:`Affiche les blocs de raisonnement terminés dans l'historique du chat.`,groupToolCallsLabel:`Regrouper les appels d'outils`,groupToolCallsHint:`Regroupe les appels d'outils consécutifs dans une seule puce.`,autoCollapseInputLabel:`Replier la zone de saisie sous l'historique`,autoCollapseInputHint:`Lorsqu'une session avec messages se charge, replier la zone de saisie sous l'historique. Désactivé par défaut — la zone reste dépliée jusqu'à ce que vous la repliiez manuellement.`,themeHeading:`Thème`,themeLight:`Clair`,themeDark:`Sombre`,themeSystem:`Système`,themeSystemHint:`Système suit votre préférence clair/sombre définie au niveau du système d'exploitation.`,preferencesHeading:`Préférences`,compactDensity:`Densité compacte`,compactDensityHint:`Espacement plus serré dans tout le chat.`,soundOnComplete:`Son à la fin de l'exécution`,soundOnCompleteHint:`Émet une douce sonnerie quand une exécution se termine.`,titleAnimation:`Animation du titre`,titleAnimationHint:`Affiche un titre de terminal animé dans le CLI.`,thinkingWordLabel:`Mot de réflexion (CLI/TUI)`,thinkingWordHint:`Mot affiché dans la puce d'état de la TUI. Un seul mot court.`,statuslineModeLabel:`Mode de la ligne d'état (CLI/TUI)`,statuslineModeHint:`Densité de la ligne d'état de la TUI.`,statuslineModeDetailed:`Détaillé`,statuslineModeMinimum:`Minimal`,statuslineModeNoColor:`Sans couleur`,animationStyleLabel:`Style d'animation (CLI/TUI)`,animationStyleHint:`Animation de la puce d'activité de la TUI.`,animationStyleRainbow:`Arc-en-ciel`,animationStyleWave:`Vague`,animationStylePulse:`Pulsation`,animationStyleDots:`Points`,animationStyleBreathe:`Respiration`,animationStyleStatic:`Statique`,animationStyleCycle:`Cycle`,languageHeading:`Langue`,languageLabel:`Langue de l'interface`,languageHint:`Modifie uniquement le texte de l'interface. Les prompts, les compétences et la sortie du modèle ne sont pas affectés.`,paletteHeading:`Palette de couleurs`,paletteSwitcherTitle:`Palette de couleurs`,paletteHint:`Choisissez la couleur principale (et ses dérivées). Les surfaces neutres restent identiques.`,paletteSignal:`Signal`,paletteEmeraldGold:`Émeraude et or`,paletteBlueNavy:`Bleu marine`,palettePurplePink:`Violet et rose`,paletteCyanTeal:`Cyan et sarcelle`,paletteRoseCopper:`Rose et cuivre`,paletteIndigoAmber:`Indigo et ambre`,paletteSageSand:`Sauge et sable`,paletteSlateViolet:`Ardoise et violet`,paletteCoralMint:`Corail et menthe`,paletteArcticEmber:`Arctique et braise`,paletteMossRust:`Mousse et rouille`},d={autonomyHeading:`Autonomie & Comportement`,autonomyModeLabel:`Mode d'autonomie`,autonomyModeHint:`Indépendance de l'agent entre les tours.`,autonomyModeOff:`Désactivé — contrôle manuel complet`,autonomyModeSuggest:`Suggérer — suggère les prochaines étapes`,autonomyModeAuto:`Auto — court délai de confirmation`,autonomyModeEternal:`Éternel — autonome jusqu'à la fin de l'objectif`,autonomyModeEternalParallel:`Éternel Parallèle — flotte multi-agents`,autoProceedDelayLabel:`Délai d'avance automatique`,autoProceedDelayHint:`Millisecondes avant que l'agent avance automatiquement en mode Auto. 0 = immédiat.`,yoloLabel:`Mode YOLO`,yoloHint:`Contourner les confirmations d'outils — l'agent s'exécute sans demander.`,refineHeading:`Affinage du prompt`,enableRefineLabel:`Activer l'affinage`,enableRefineHint:`Réécrire les prompts avant l'envoi — instructions plus claires, meilleurs résultats.`,refineDelayLabel:`Délai d'affinage`,refineDelayHint:`Compte à rebours avant l'envoi automatique du prompt affiné.`,refineLanguageLabel:`Langue d'affinage`,refineLanguageHint:`Conserver votre langue ou traduire en anglais pour le modèle.`,refineLanguageOriginal:`Original — conserver votre langue`,refineLanguageEnglish:`Anglais — traduire en anglais`,refinerProviderLabel:`Fournisseur d'affinage`,refinerProviderHint:`Id du fournisseur pour l'affinage d'objectif. Vide = fournisseur de la session.`,refinerProviderDefault:`Fournisseur de la session`,refinerModelLabel:`Modèle d'affinage`,refinerModelHint:`Id du modèle pour l'affinage d'objectif. Vide = modèle de la session.`,refinerModelDefault:`Modèle de la session`,refinerProfileLabel:`Profil de fallback de l'affinage`,refinerProfileHint:`Profil de fallback nommé pour l'affinage d'objectif. Remplace le fournisseur et le modèle.`,refinerProfileDefault:`Aucun — utiliser le fournisseur et le modèle ou les valeurs par défaut de la session`,reasoningHeading:`Raisonnement & Cache`,reasoningModeLabel:`Mode de raisonnement`,reasoningModeHint:`Contrôler comment le modèle utilise la pensée étendue. Auto = valeur du fournisseur.`,reasoningModeAuto:`Auto — valeur du fournisseur`,reasoningModeOn:`Activé — forcer la pensée`,reasoningModeOff:`Désactivé — désactiver la pensée`,reasoningEffortLabel:`Effort de raisonnement`,reasoningEffortHint:`Quantité de calcul que le modèle consacre à la pensée. Envoyé seulement si le modèle le supporte.`,reasoningEffortNone:`Aucun`,reasoningEffortMinimal:`Minimal`,reasoningEffortLow:`Faible`,reasoningEffortMedium:`Moyen`,reasoningEffortHigh:`Élevé`,reasoningEffortXhigh:`Très élevé`,reasoningEffortMax:`Max`,preserveThinkingLabel:`Préserver la pensée`,preserveThinkingHint:`Conserver les blocs de raisonnement entre les tours pour la continuité du contexte.`,cacheTtlLabel:`TTL du cache`,cacheTtlHint:`Durée de vie du cache de prompt. 1h coûte plus à l'écriture mais économise en relectures (Anthropic).`,cacheTtlDefault:`Par défaut — valeur du fournisseur`,cacheTtl5m:`5 minutes`,cacheTtl1h:`1 heure`,capsHint:`Utilisez wstack models caps pour vérifier ce que le modèle actuel supporte. Les réglages non supportés sont omis silencieusement par requête.`,routingHeading:`Routage de modèle`,routingRouteKey:`Clé de route de modèle`,routingPhasesGroup:`Phases`,routingRolesGroup:`Rôles {{label}}`,routingCustomGroup:`Routes personnalisées existantes`,routingTargetAria:`Cible de la route de modèle`,routingTargetEmpty:`— Effacer la route —`,routingTargetProfilesGroup:`Profils de fallback`,routingTargetModelsGroup:`Modèles (fournisseur/modèle)`,routingSet:`Définir`,routingReasoningModeAria:`Mode de raisonnement nouvelle route`,routingReasoningEffortAria:`Effort de raisonnement nouvelle route`,routingReasoningPreserveAria:`Préservation raisonnement nouvelle route`,routingReasoningModeFor:`Mode de raisonnement pour {{key}}`,routingReasoningEffortFor:`Effort de raisonnement pour {{key}}`,routingReasoningPreserveFor:`Préservation raisonnement pour {{key}}`,noRoutes:`Aucune route de modèle pour l'instant.`,leaderModel:`modèle leader`,autonomyDelayMsLabel:`Délai de reprise automatique`,autonomyDelayMsHint:`Millisecondes avant que l'agent reprenne automatiquement en mode Auto. 0 = immédiat.`,refineCountdownLabel:`Compte à rebours d'affinage`,refineCountdownHint:`Délai de grâce avant l'envoi automatique du prompt affiné (millisecondes).`,reasoningEffortModelSet:`niveaux du modèle actif`},f={heading:`Exécution`,maxIterationsLabel:`Itérations max par run`,maxIterationsHint:`Plafond strict de tours LLM par agent.run().`,autoProceedMaxIterationsLabel:`Itérations max d'avance auto`,autoProceedMaxIterationsHint:`Arrêter l'avance auto après N itérations. 0 = illimité.`,confirmExitLabel:`Confirmer avant de quitter`,confirmExitHint:`Premier Ctrl+C annule le travail, second confirme la sortie.`,chimeLabel:`Carillon à la fin`,chimeHint:`Cloche du terminal quand un run d'agent se termine.`,breakerLabel:`Disjoncteur de processus`,breakerHint:`Bloque bash/exec après des échecs répétés ; le déclenchement arme le compte à rebours kill/reset.`,breakerTimeoutLabel:`Délai kill/reset du disjoncteur`,breakerTimeoutHint:`Délai avant le kill/reset automatique après déclenchement. 0 = récupération manuelle.`,availabilityHeading:`Provider/model availability calendar`,availabilityHint:`Prevent autonomous and overnight runs from using selected providers or models during recurring windows.`},p={heading:`Modèles fallback / round-robin`,body:`Quand le modèle actif est rate-limité (429/529), en erreur 5xx ou bloqué — après ses propres retries — l'agent passe au modèle suivant de cette chaîne. Aussi utilisé par défaut pour les sous-agents workers SDD.`,autoFallbackLabel:`Fallback auto`,autoFallbackHint:`Quand la chaîne ci-dessus est vide, en dériver une automatiquement depuis vos fournisseurs clés.`,favoritesOnlyLabel:`Favoris uniquement`,favoritesOnlyHint:`Quand le fallback auto dérive une chaîne, la restreindre à vos modèles favoris.`,profilesHeading:`Profils fallback / round-robin`,addProfile:`Ajouter`,noProfiles:`Aucun profil de fallback nommé pour l'instant.`,createDefault:`Créer le défaut depuis le modèle actif`,useChain:`Utiliser la chaîne`,setLeader:`Définir le leader`,profileEmpty:`Le profil est vide.`,favoritesHeading:`Modèles favoris`,favoritesEmpty:`Les favoris sont affichés en premier et peuvent contraindre le fallback auto.`,addModelToProfile:`Ajouter un modèle au profil…`,addFavoriteModel:`Ajouter un modèle favori…`,inactive:`inactif`},m={heading:`Flotte & Streaming`,fleetChatVerbosityLabel:`Streamer les événements de flotte`,fleetChatVerbosityHint:`Afficher l'activité live des sous-agents dans le panneau de flotte.`,maxConcurrentLabel:`Sous-agents simultanés max`,maxConcurrentHint:`Nombre maximum de sous-agents pouvant tourner simultanément.`,nextPredictionLabel:`Prédiction des prochaines étapes`,nextPredictionHint:`Après un tour, prédire les prochaines étapes probables.`,nextStepsToolLabel:`Outil nextsteps`,nextStepsToolHint:`Permet à l'agent d'enregistrer ses suggestions via un appel d'outil au lieu d'écrire le bloc à la main. Effectif à la prochaine session.`},h={hqHeading:`Client HQ`,hqPublishingLabel:`Publication HQ`,hqPublishingHint:`Publier cette session WebUI/client vers WrongStack HQ. Les clients de même machine peuvent auto-découvrir l'auth HQ locale ; les clients distants utilisent l'URL/token ci-dessous.`,hqUrlLabel:`URL HQ`,hqUrlHint:`Laisser vide pour l'auto-découverte sur même machine.`,hqTokenLabel:`Token client HQ`,hqRawContentLabel:`Contenu HQ brut`,hqRawContentHint:`Envoyer des aperçus de contenu bruts à HQ au lieu d'aperçus caviardés.`,wrongProxyHeading:`WrongProxy / WrongTrace`,wrongProxyEnabledLabel:`Router les URL de base via le proxy local`,wrongProxyEnabledHint:`Lorsqu'il est activé, l'URL de base de chaque fournisseur est réécrite via le proxy configuré (par défaut http://localhost:3444/proxy/<host><path>). openai-codex est exclu : il communique directement avec le backend ChatGPT avec un jeton OAuth.`,wrongProxyUrlLabel:`URL du proxy`,wrongProxyUrlHint:`Où écoute le daemon proxy local. Le système interroge périodiquement <url>/api/health ; un daemon injoignable désactive la réécriture sans réessayer à chaque frappe.`,wrongProxyChangesApply:`Les modifications s'appliquent immédiatement aux requêtes suivantes — aucun redémarrage requis.`,telegramHeading:`Notifications Telegram`,telegramSessionEndLabel:`Fin de session`,telegramSessionEndHint:`Envoyer un résumé quand une session se termine.`,telegramDelegateLabel:`Délégué terminé`,telegramDelegateHint:`Envoyer une note humanisée quand un sous-agent termine.`,telegramLongToolLabel:`Outils longs`,telegramLongToolHint:`Notifier quand un outil dépasse {{ms}}ms. 0 pour désactiver.`,telegramChangesApply:`Les changements s'appliquent immédiatement.`,telegramNotConfigured:`Telegram n'est pas configuré. Lancez /telegram-setup dans la CLI pour connecter un bot d'abord.`,heading:`Integrations`,disabledHint:`Activez la fonctionnalité dans l'onglet Contexte pour utiliser cette section.`},g={chimeraDedicatedHeading:`Chimera — Post-session Code Review`,chimeraDedicatedHint:`Automated code quality review that runs after every agent session. Catches regressions, anti-patterns, and potential bugs.`,chimeraSectionEnabled:`Post-session review (Chimera)`,chimeraSectionEnabledHint:`Run a code review agent after every iteration.`,chimeraProviderLabel:`Chimera provider`,chimeraProviderHint:`Provider for the review agent. Select one from your configured providers.`,chimeraProviderSessionDefault:`Session default`,chimeraModelLabel:`Model`,chimeraModelSessionDefault:`Session default`,chimeraModelHint:`Model for the review agent. Requires a provider first.`,chimeraMaxFilesLabel:`Max files per review`,chimeraMaxFilesHint:`Maximum number of changed files included in a single review call.`,chimeraAutoFixLabel:`Auto-fix mode`,chimeraAutoFixHint:`Whether the review agent should automatically apply fixes for issues it finds.`,chimeraAutoFixOff:`Off — review only`,chimeraAutoFixAsk:`Ask — confirm before applying`,chimeraAutoFixAuto:`Auto — apply without confirmation`,autoReviewCascadeOnLabel:`Cascade à partir de`,autoReviewCascadeOnHint:`Quand une revue détecte des problèmes à ce niveau de sévérité ou plus, lancer des agents de suivi.`,autoReviewCascadeOnOff:`Désactivé`,autoReviewCascadeOnHigh:`Haute ou plus`,autoReviewCascadeOnCritical:`Critique uniquement`,chimeraPickModel:`Pick provider/model for Chimera`,chimeraPickModelHint:`Select a provider and model for post-session code review.`,autoReviewSectionEnabled:`Mid-session review (Auto-Review)`,autoReviewSectionEnabledHint:`Run a review agent mid-session on every file change.`,autoReviewFallbackProfileLabel:`Profil fallback / round-robin`,autoReviewFallbackProfileHint:`Profil de modèles pour l’auto-review ; fournit le pool de fallback et les modèles pour round-robin ou sélection aléatoire.`,autoReviewFallbackProfileNone:`None — use provider+model or session defaults`,autoReviewModelSelectionLabel:`Sélection du profil`,autoReviewModelSelectionHint:`Choisit le modèle suivant dans l’ordre ou un modèle de départ aléatoire pour chaque revue.`,autoReviewModelSelectionRoundRobin:`Round-robin — ordre du profil`,autoReviewModelSelectionRandom:`Aléatoire — choisir dans le profil`,autoReviewFallbackModelsLabel:`Modèles fallback / round-robin`,autoReviewFallbackModelsEmpty:`Aucun modèle fallback / round-robin configuré`,autoReviewFallbackModelsHint:`Modèles du profil ou de la chaîne globale ; ils forment le pool de sélection et la chaîne de nouvelle tentative.`,autoReviewModelLabel:`Model`,autoReviewModelHint:`Model for the auto-review agent. Requires a provider first.`,autoReviewDebounceLabel:`Debounce interval (ms)`,autoReviewDebounceHint:`Minimum gap between review triggers after a file change.`,autoReviewMaxFilesLabel:`Max files per batch`,autoReviewMaxFilesHint:`Files per auto-review call.`,autoReviewMaxConcurrentLabel:`Max concurrent reviews`,autoReviewMaxConcurrentHint:`Parallel review subagent cap.`,autoReviewCascadeLabel:`Cascade on`,autoReviewCascadeHint:`Follow-up agent threshold — spawns security-scanner and bug-hunter above this severity.`,autoReviewCascadeOff:`Off — no cascade`,autoReviewCascadeCritical:`Critical — only critical findings`,autoReviewCascadeHigh:`High — critical or high findings`,autoReviewPickModel:`Pick provider/model for Auto-Review`,autoReviewPickModelHint:`Select a provider and model, or a named fallback profile, for mid-session auto-review.`,pluginsPerPluginHint:`Enable or disable individual plugins. Changes take effect on next session.`},_={flagsHeading:`Indicateurs de fonctionnalités`,mcpLabel:`Serveurs MCP`,mcpHint:`Activer les intégrations Model Context Protocol.`,pluginsLabel:`Plugins`,pluginsHint:`Charger et exécuter les plugins installés par l'utilisateur.`,memoryLabel:`Mémoire`,memoryHint:`Persister et rappeler des faits entre les sessions.`,skillsLabel:`Compétences`,skillsHint:`Charger les prompts de compétences spécifiques au domaine.`,modelsRegistryLabel:`Registre des modèles`,modelsRegistryHint:`Utiliser le catalogue models.dev pour la découverte des fournisseurs.`,indexOnStartLabel:`Indexer au démarrage`,indexOnStartHint:`Construire l'index des symboles du codebase au démarrage de la session.`,pluginsPerPluginHeading:`🔌 Per-Plugin Controls`,pluginsPerPluginHint:`Enable or disable individual plugins. Changes take effect on next session.`,pluginChimera:`Chimera — post-session code review`,pluginSkills:`Skills — skill library & authoring`,pluginPrompts:`Prompts — prompt library & gen`,pluginCostTracker:`Cost Tracker — token & cost tracking`,pluginTelegram:`Telegram — notification bot`,pluginKnowledgeGraph:`Knowledge Graph — persistent facts`,pluginErrorLens:`Error Lens — failure diagnostics`,pluginTodoTracker:`Todo Tracker — persistent todos`,pluginSecretScanner:`Secret Scanner — credential detection`,pluginLintGate:`Lint Gate — lint before iteration`,pluginDiffSummary:`Diff Summary — compact diffs`,pluginDepGuard:`Dep Guard — dependency rules`,pluginTypeGate:`Type Gate — typecheck before iteration`,pluginInjectionShield:`Injection Shield — prompt injection`,pluginPromptFirewall:`Prompt Firewall — input filtering`,pluginTokenBudget:`Token Budget — token limits`,pluginLoopBreaker:`Loop Breaker — runaway detection`,heading:`Contexte & Débogage`,autoCompactLabel:`Compacter le contexte auto`,autoCompactHint:`Réduire automatiquement la fenêtre de contexte près des limites.`,compactorStrategyLabel:`Stratégie de compactage`,compactorStrategyHint:`Comment le contexte est compacté quand il devient trop grand.`,compactorStrategyHybrid:`Hybride — règles rapides (défaut)`,compactorStrategyIntelligent:`Intelligent — résumé LLM`,compactorStrategySelective:`Sélectif — sélection pilotée par LLM`,contextModeLabel:`Mode de contexte`,contextModeHint:`Politique de fenêtre de contexte — équilibré par défaut.`,contextModeBalanced:`Équilibré — usage normal du contexte`,contextModeFrugal:`Frugal — usage conservateur de tokens`,contextModeDeep:`Profond — contexte plus large pour tâches complexes`,tokenSavingLabel:`Mode d'économie de tokens`,tokenSavingHint:`Contrôle les schémas directs et le prompt système de la prochaine session.`,tokenSavingAuto:`Auto — adapter le prompt à la fenêtre du modèle`,tokenSavingOff:`Désactivé — aucune économie`,tokenSavingMinimal:`Minimal — optimisation de base`,tokenSavingLight:`Léger — réduction modérée`,tokenSavingMedium:`Moyen — économies significatives`,tokenSavingAggressive:`Agressif — surface directe et prompt minimaux`},v={logLevelLabel:`Niveau de log`,logLevelHint:`Sévérité minimale pour le logging côté serveur.`,logLevelDebug:`Debug — tout`,logLevelInfo:`Info — flux normal`,logLevelWarn:`Warn — problèmes uniquement`,logLevelError:`Error — échecs uniquement`,auditLevelLabel:`Niveau d'audit`,auditLevelHint:`Niveau de détail pour les logs d'audit de session.`,auditLevelMinimal:`Minimal — erreurs uniquement`,auditLevelStandard:`Standard — appels d'outils + erreurs`,auditLevelFull:`Complet — chaque événement (logs volumineux)`,fsAccessLabel:`Accès au système de fichiers`,fsAccessHint:`Portée des outils de fichiers. Appliqué à la prochaine session.`,fsAccessUnrestricted:`Illimité — tout chemin`,fsAccessProject:`Projet — limité à la racine du projet`,debugStreamLabel:`Flux de débogage`,debugStreamHint:`Dump hexadécimal SSE brut vers stderr du serveur pour déboguer les fournisseurs.`,heading:`Logs & Debug`},y={heading:`Security & Monitoring`,brainHeading:`🧠 Brain — Contrôle des décisions`,brainHint:`Modèles de décision, conseil, escalade et plafond de risque — appliqués immédiatement, enregistrés dans la configuration globale.`,shadowHeading:`👁 Agent fantôme — Moniteur de flotte`,shadowHint:`L'agent fantôme surveille tous les agents de la flotte, suit leurs tâches et détecte les anomalies.`,toolsHeading:`🔧 Tool Access Control`,toolsHint:`Activez ou désactivez chaque outil. Les outils modifiants sont signalés en ambre.`,breakerHeading:`Process Circuit Breaker`,breakerHint:`Bloquer bash/exec après des échecs répétés ; un déclenchement arme le compte à rebours d'arrêt/réinitialisation.`},b={switchingTo:`Basculement vers {{provider}} / {{model}}…`,switching:`Changement de modèle…`,switchingToTarget:`Basculement vers {{target}}…`,previousModel:`modèle précédent`,modelSwitchedNextRequest:`Modèle changé : {{from}} → {{to}}. Actif pour la prochaine requête LLM.`,modelSwitchedRunActive:`Modèle changé : {{from}} → {{to}}. Actif pour la prochaine requête LLM ; l’exécution actuelle continue sans redémarrer.`,fallbackExists:`Le profil de fallback « {{name}} » existe déjà`,selectProviderModelFirst:`Sélectionnez d'abord un fournisseur et un modèle`,defaultProfileCreated:`Profil de fallback par défaut créé`,profileEmpty:`Le profil de fallback « {{name}} » est vide`,leaderSetFrom:`Leader défini depuis {{name}}`,modelSwitchTimeout:`Le changement de modèle a expiré. Veuillez réessayer.`},x={workbenchHeading:`Apparence du workbench`,workbenchHint:`Afficher ou masquer les surfaces du workbench dans la vue de chat.`,showModelReasoningLabel:`Afficher le raisonnement du modèle`,showModelReasoningHint:`Affiche les blocs de raisonnement/thinking du LLM dans l’historique du chat (parité TUI).`,showAgentSwarmPanelLabel:`Panneau agent swarm`,showAgentSwarmPanelHint:`Contrôle l'emplacement du panneau agent swarm (fleet + file de missions).`,swarmPanelBottom:`Panneau inférieur`,swarmPanelSidebar:`Barre latérale droite`,swarmPanelOff:`Désactivé`,titleAnimationLabel:`Animation du titre`,titleAnimationHint:`Anime le titre du terminal/onglet avec l’état d’exécution (parité TUI).`,statusChipHeading:`Puce d’état et ligne d’état`,statusChipHint:`Style visuel pour la ligne d’état TUI/CLI et la puce de travail.`,thinkingWordLabel:`Mot de réflexion`,thinkingWordHint:`Mot court unique affiché dans la puce d’état TUI pendant que l’agent travaille.`,statuslineModeLabel:`Mode ligne d’état`,statuslineModeHint:`Densité de la barre d’état TUI.`,statuslineModeMinimum:`Minimum`,statuslineModeDetailed:`Détaillé`,statuslineModeNoColor:`Sans couleur`,animationStyleLabel:`Style d’animation`,animationStyleHint:`Animation de la puce de travail TUI.`,animationStyleRainbow:`Arc-en-ciel`,animationStyleWave:`Vague`,animationStylePulse:`Pulsation`,animationStyleDots:`Points`,animationStyleBreathe:`Respiration`,animationStyleStatic:`Statique`,animationStyleCycle:`Cycle`,refineHeading:`Compte à rebours du refine et diffs`,refineHint:`Configurer le compte à rebours préalable au refine et le seuil du pied de résumé multi-diff.`,preRefineSecondsLabel:`Compte à rebours pré-refine`,preRefineSecondsHint:`Délai de grâce avant le démarrage du refiner (secondes). 0 = sauter le compte à rebours et raffiner immédiatement.`,preRefineSecondsPresets:`Préréglages : {{presets}} secondes (0 = désactivé).`,multiDiffSummaryLabel:`Résumé multi-diff`,multiDiffSummaryHint:`Nombre minimum de fichiers avant l'affichage du pied agrégé « N fichiers · +X -Y » au-dessus des blocs par fichier.`,multiDiffSummaryPresets:`Préréglages : {{presets}} (0 = désactivé).`,memoryHeading:`Outil read et injection de mémoire SAGE`,memoryHint:`Active ce que l’outil read inclut et quand les blocs mémoire SAGE apparaissent dans les résultats d’outil.`,readSymbolsLabel:`Lire les symboles`,readSymbolsHint:`Lorsqu’activé, l’outil read inclut les symboles de l’index de code avec le contenu du fichier.`,showSageMemoryInjectLabel:`Afficher SAGE Memory Inject`,showSageMemoryInjectHint:`Lorsqu’activé, affiche les blocs d’injection de mémoire SAGE dans les résultats d’outil.`,sageMemoryInjectThresholdLabel:`Seuil de SAGE Memory Inject`,sageMemoryInjectThresholdHint:`Force de relation minimale requise pour une mémoire SAGE injectée (0.72–0.95).`,footnote:`Ces paramètres reflètent le picker /settings du TUI. Les bascules s’appliquent en direct ; certains champs nécessitent un redémarrage de session.`,sageRelaxed:`0,72 (souple)`,sageDefault:`0,85 (par défaut)`,sageStrict:`0,95 (strict)`},S=`Réinitialiser`,C=`Annuler`,w=`Réinitialiser toutes les préférences ?`,T=`Cela restaure les paramètres par défaut et recharge la page.`,E=`Réinitialiser`,D=JSON.parse(`{"heading":"Brain","headingHint":"Modèles de décision, conseil, escalade et plafond de risque — appliqués en direct, enregistrés dans la configuration globale.","riskHeading":"Plafond d'autonomie","escalationHeading":"Escalade","escalationModeLabel":"Mode","escalationModeHint":"Headless : le Brain ne bloque jamais sur un humain — les escalades sans réponse sont résolues par la politique terminale sûre. S'applique aux sessions CLI/TUI ; le Brain WebUI autonome est toujours headless.","escalationDecisionTimeoutLabel":"Délai de décision","escalationDecisionTimeoutHint":"Budget de temps par appel LLM pour une décision du Brain.","escalationHumanTimeoutLabel":"Délai de réponse humaine","escalationHumanTimeoutHint":"Mode interactif : combien de temps un prompt d'escalade peut attendre avant que la politique terminale ne le résolve.","escalationTerminalPolicyLabel":"Politique terminale","escalationTerminalPolicyHint":"Comment une escalade headless se résout sans humain disponible. Conservateur accepte une option recommandée à risque faible/moyen ; tout-refuser n'accepte jamais automatiquement ; continuer-sur-recommandation accepte une option recommandée à TOUT risque.","escalationDecisionLogSizeLabel":"Taille du journal de décision","escalationDecisionLogSizeHint":"Journal de décision en mémoire rotatif conservé pour la vue d'état.","rulesHeading":"Règles déterministes","rulesConfigured":"{{count}} configurée(s)","rulesBody":"Évaluées avant tout appel fournisseur — la première correspondance gagne. Modifiez-les dans le fichier de configuration globale ; cette vue est en lecture seule.","rulesOff":"désactivée","rulesDropped":"{{count}} règle(s) abandonnée(s)","heuristicsHeading":"Heuristiques","heuristicsBody":"Hypothèses de motifs gratuites qui tranchent une question avant qu'un modèle ne s'exécute. Toutes activées par défaut — désactivez celle dont l'hypothèse est fausse pour votre charge de travail.","heuristicsLowRiskLabel":"Réponse auto à faible risque","heuristicsLowRiskHint":"Répond automatiquement aux demandes à faible risque qui portent déjà une option recommandée.","heuristicsBlockedLabel":"Bloqué-résolu","heuristicsBlockedHint":"'blocked …' plus un marqueur de résolution explicite dans le contexte résout en continuer.","heuristicsDeadlockLabel":"Ignorer l'impasse","heuristicsDeadlockHint":"'deadlock' plus des unités de travail en échec dans le contexte résout en ignorer et continuer.","heuristicsRetryLabel":"Nouvelles tentatives épuisées","heuristicsRetryHint":"'failed'/'retry' plus des nouvelles tentatives manifestement épuisées marque l'unité en échec et passe à la suite.","heuristicsPingLabel":"Ping de continuation","heuristicsPingHint":"Un simple ping continuer/procéder sans alternative concurrente résout en continuer.","heuristicsMarkers":"Marqueurs : {{markers}}","qualityHeading":"Qualité LLM","qualityCircuit_one":"circuit {{state}} · {{count}} échec","qualityCircuit_other":"circuit {{state}} · {{count}} échecs","qualityResponseBudgetLabel":"Budget de réponse","qualityResponseBudgetHint":"Jetons de sortie par appel de décision. Une réponse du Brain est une décision plus une justification d'une phrase.","qualityRejectLabel":"Rejeter les réponses incertaines","qualityRejectHint":"Traite une réponse refusée ou vide comme « ce niveau n'a pas pu décider » au lieu de l'accepter comme réponse.","qualityMinConfidenceLabel":"Confiance minimale","qualityMinConfidenceHint":"Rejette les réponses dont la confiance auto-déclarée est inférieure. Les réponses sans confiance déclarée passent toujours.","qualityDenyTerminalLabel":"Le refus est terminal","qualityDenyTerminalHint":"Si un refus du niveau LLM unique termine la décision. 'when-decided' rend un vrai refus terminal tandis que les pannes d'infrastructure escaladent toujours.","traceHeading":"Trace de rejeu","traceRecordLabel":"Enregistrer les traces de décision","traceRecordHint":"JSONL par décision de chaque niveau, cible de pool et vote du conseil, avec temps et utilisation de jetons. Désactivé par défaut — l'activer écrit le contenu des décisions sur disque.","traceContentLabel":"Contenu de la trace","traceContentHint":"'full' conserve la question et le contexte (nécessaire pour rejouer une décision) ; 'redacted' tronque le texte libre ; 'none' n'enregistre que les métadonnées.","cacheHeading":"Cache de décision","cacheStats":"{{hits}} succès / {{misses}} échec · {{size}} actif","cacheReplayLabel":"Rejouer les verdicts identiques","cacheReplayHint":"Réutilise un verdict conseil/LLM précédent pour une question identique répétée. Les niveaux déterministes et demander-un-humain ne sont jamais mis en cache ; une décision que le journal observe en échec est expulsée.","cacheLifetimeLabel":"Durée de vie des entrées","cacheLifetimeHint":"Combien de temps un verdict en cache reste rejouable.","cacheMaxEntriesLabel":"Entrées maximales","cacheMaxEntriesHint":"Plafond des verdicts en cache actifs.","monitorHeading":"Moniteur","monitorBody":"Auto-activation par signaux de détresse. Le moniteur est construit une fois au démarrage, donc ces réglages s'appliquent à la prochaine session plutôt qu'en direct.","monitorWatchLabel":"Surveiller les signaux de détresse","monitorWatchHint":"Les séries d'échecs d'outils, les tempêtes d'erreurs, les blocages d'agents et le churn de fichiers activent le Brain seuls.","monitorPolicyLabel":"Politique de signal","monitorPolicyHint":"Comment un signal détecté se résout. 'llm' consulte le Brain ; 'steer' intervient toujours et 'observe' jamais — les deux sans appel fournisseur.","modelsHeading":"Modèles de décision","modelsSessionBadge":"modèle de session","modelsResolvedBadge":"{{resolved}}/{{total}} résolus","modelsUseSessionLabel":"Utiliser le modèle de session","modelsUseSessionHint":"Décider avec le modèle que la session exécute. Désactiver en ajoutant des modèles ci-dessous.","modelsAddModel":"Ajouter un modèle","modelsPoolStrategyLabel":"Stratégie de pool","modelsPoolStrategyHint":"Repli : le premier modèle est principal, les autres sont essayés dans l'ordre en cas d'échec. Round-robin : les décisions tournent dans le pool.","councilHeading":"Conseil","councilConvened":"convoqué","councilDisabled":"désactivé","councilEnableLabel":"Activer le conseil multi-LLM","councilEnableHint":"Les questions à enjeu élevé sont votées par des sièges indépendants (exécuteur / sceptique-avec-veto / auditeur) au lieu d'un seul modèle. Nécessite ≥2 votants résolvables (sièges explicites ci-dessous, ou un pool de ≥2 modèles).","councilSeatsDerived":"Sièges dérivés du pool : {{seats}}","councilCustomLens":"Lentille de décision personnalisée — envoyée telle quelle au siège.","councilCustomOption":"{{persona}} (personnalisé)","councilVeto":"veto","councilAddVoter":"Ajouter un votant","councilRiskFloorLabel":"Plancher de risque","councilRiskFloorHint":"Risque minimum de question qui convoque le conseil au lieu du niveau mono-modèle.","councilJudge":"Juge","councilJudgeDesc":"Modèle de départage qui voit la justification de chaque vote.","councilResolved":"résolu : {{model}}","councilAlsoVoter":"⚠ aussi un votant","councilAuto":"auto","councilPick":"Choisir…","councilAutoReset":"Auto","councilQuorumLabel":"Quorum","councilQuorumHint":"Fraction des sièges devant renvoyer un vote valide.","councilApprovalLabel":"Approbation","councilApprovalHint":"Fraction du poids des votes exprimés que l'option gagnante doit dépasser.","councilPerSeatTimeoutLabel":"Délai par siège","councilPerSeatTimeoutHint":"Budget de temps pour le vote d'un seul siège. Plus lent que le délai de décision signifie qu'un siège bloqué retient le vote.","councilMaxConcurrencyLabel":"Concurrence maximale","councilMaxConcurrencyHint":"Combien de sièges votent en parallèle. Réduisez quand le pool partage un fournisseur limité en débit.","councilDistinctnessLabel":"Distinction des sièges","councilDistinctnessHint":"Rejeter les sièges en double : 'model' exige des modèles distincts, 'provider' des fournisseurs indépendants pour qu'une panne ne puisse pas faire basculer le vote.","councilVoterBudgetLabel":"Budget de réponse du votant","councilVoterBudgetHint":"Jetons de sortie par appel de siège — les modèles de raisonnement dépensent leurs jetons de réflexion sur ce budget.","councilJudgeBudgetLabel":"Budget de réponse du juge","councilJudgeBudgetHint":"Jetons de sortie pour l'appel du juge de départage.","councilSeatTemplate":"Modèle de siège :","ledgerHeading":"Journal de décision","ledgerRecordLabel":"Enregistrer les décisions + résultats","ledgerRecordHint":"Persiste chaque décision et son résultat observé ; les résultats passés similaires sont réinjectés dans les prompts futurs du Brain.","ledgerAutoDenyLabel":"Auto-refus après échecs","ledgerAutoDenyHint":"Refuser de manière déterministe (sans LLM) dès que ce nombre d'approbations consécutives d'un groupe de décisions s'est soldé par des échecs observés.","ledgerMemoryEntriesLabel":"Entrées en mémoire","ledgerMemoryEntriesHint":"Taille de l'anneau en mémoire et nombre d'entrées passées chargées du disque au démarrage.","ledgerRetryWindowLabel":"Fenêtre de nouvelle tentative d'intervention","ledgerRetryWindowHint":"Une intervention du moniteur de même nature qui se redéclenche dans cette fenêtre marque la précédente orientation comme un échec.","recentHeading":"Décisions récentes ({{count}})","recentEmpty":"Aucune décision enregistrée pour l'instant dans cette session.","optInteractive":"Interactif (me demander)","optHeadless":"Headless (ne jamais demander)","optConservative":"Conservateur (défaut)","optDenyAll":"Tout refuser","optContinueRecommended":"Continuer sur recommandation","optNeverDefault":"Jamais (défaut)","optWhenDecided":"Quand décidé","optAlways":"Toujours","optFullDefault":"Complet (défaut)","optRedacted":"Expurgé","optMetadataOnly":"Métadonnées uniquement","optConsultBrain":"Consulter le Brain (défaut)","optAlwaysSteer":"Toujours orienter","optObserveOnly":"Observer uniquement","optFallback":"Repli","optRoundRobin":"Round-robin","optMediumPlus":"Moyen+","optHighPlus":"Élevé+","optCriticalOnly":"Critique uniquement","optNoneDefault":"Aucun (défaut)","optDistinctModels":"Modèles distincts","optDistinctProviders":"Fournisseurs distincts","optDefault3":"Défaut (3)","optOff":"Désactivé","pickPoolTitle":"Ajouter un modèle de pool Brain","pickPoolHint":"Pool de décision ordonné — le premier est principal.","pickVoterTitle":"Ajouter un votant au conseil","pickVoterHint":"La boîte de dialogue reste ouverte — ajoutez ≥2 votants, puis fermez.","pickJudgeTitle":"Choisir le juge du conseil","pickJudgeHint":"Départage qui voit chaque vote.","persistError":"Paramètres appliqués en direct mais non enregistrés.","riskCopy":{"off":"Un humain décide de tout","low":"Décision auto pour faible risque uniquement","medium":"Décision auto jusqu'au risque moyen","high":"Décision auto jusqu'au risque élevé","all":"Décision auto pour tout"},"rulesConfigured_one":"{{count}} configurée","rulesConfigured_other":"{{count}} configurées"}`),O={default15s:`Par défaut (15 s)`,waitForever:`Attendre indéfiniment`,defaultHalf:`Par défaut (0,5)`,all:`Tous`,n200Default:`200 (par défaut)`,offDefault:`Désactivé (par défaut)`,n20Default:`20 (par défaut)`,m5Default:`5 min (par défaut)`,default:`Par défaut`,oneSerial:`1 (série)`,default500:`Par défaut (500)`,default10m:`Par défaut (10 min)`},k={capToolCall:`Appel d'outil`,capReasoning:`Raisonnement`,capTemperature:`Température`,capAttachment:`Pièce jointe`,capStructuredOutput:`Sortie structurée`,capOpenWeights:`Poids ouverts`},A={title:e,subtitle:t,tabs:n,model:r,connection:i,provider:a,providerModels:o,mcp:s,allowlist:c,oauth:l,general:u,agent:d,execution:f,fallbacks:p,fleet:m,integrations:h,features:g,context:_,logs:v,security:y,toast:b,display:x,resetLabel:S,cancel:C,resetConfirmTitle:w,resetConfirmBody:T,resetConfirmAction:E,brain:D,brainOpt:O,modelSchema:k};export{d as agent,c as allowlist,D as brain,O as brainOpt,C as cancel,i as connection,_ as context,A as default,x as display,f as execution,p as fallbacks,g as features,m as fleet,u as general,h as integrations,v as logs,s as mcp,r as model,k as modelSchema,l as oauth,a as provider,o as providerModels,E as resetConfirmAction,T as resetConfirmBody,w as resetConfirmTitle,S as resetLabel,y as security,t as subtitle,n as tabs,e as title,b as toast};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chat-store-BiEXyguk.js";import{Ra as t,za as n}from"./vendor-DZ9_OO6N.js";import"./i18n-BeHaHx3x.js";import{r,t as i}from"./ws-client-C6jAU4nL.js";import"./session-store-CKpAwNIm.js";import"./codemap-activity-store-BWt_a7Gs.js";import"./mailbox-store-DhAVkVJQ.js";import"./ui-store-3HoYrTu5.js";var a=`signal`,o=`wrongstack-palette`,s=[{id:`signal`,labelKey:`settings:general.paletteSignal`,swatch:`hsl(345.9 99% 58.8%)`,swatchSecondary:`hsl(37.5 98.4% 50%)`},{id:`emerald-gold`,labelKey:`settings:general.paletteEmeraldGold`,swatch:`hsl(152 66% 48%)`,swatchSecondary:`hsl(42 96% 54%)`},{id:`blue-navy`,labelKey:`settings:general.paletteBlueNavy`,swatch:`hsl(213 90% 60%)`,swatchSecondary:`hsl(36 96% 54%)`},{id:`purple-pink`,labelKey:`settings:general.palettePurplePink`,swatch:`hsl(263 82% 66%)`,swatchSecondary:`hsl(332 94% 62%)`},{id:`cyan-teal`,labelKey:`settings:general.paletteCyanTeal`,swatch:`hsl(180 76% 46%)`,swatchSecondary:`hsl(36 96% 54%)`},{id:`rose-copper`,labelKey:`settings:general.paletteRoseCopper`,swatch:`hsl(14 82% 56%)`,swatchSecondary:`hsl(34 96% 54%)`},{id:`indigo-amber`,labelKey:`settings:general.paletteIndigoAmber`,swatch:`hsl(233 74% 58%)`,swatchSecondary:`hsl(38 96% 54%)`},{id:`sage-sand`,labelKey:`settings:general.paletteSageSand`,swatch:`hsl(130 28% 55%)`,swatchSecondary:`hsl(36 55% 72%)`},{id:`slate-violet`,labelKey:`settings:general.paletteSlateViolet`,swatch:`hsl(248 50% 55%)`,swatchSecondary:`hsl(285 52% 62%)`},{id:`coral-mint`,labelKey:`settings:general.paletteCoralMint`,swatch:`hsl(12 85% 62%)`,swatchSecondary:`hsl(162 55% 55%)`},{id:`arctic-ember`,labelKey:`settings:general.paletteArcticEmber`,swatch:`hsl(195 85% 58%)`,swatchSecondary:`hsl(14 85% 55%)`},{id:`moss-rust`,labelKey:`settings:general.paletteMossRust`,swatch:`hsl(100 45% 38%)`,swatchSecondary:`hsl(18 70% 48%)`}];function c(e){return typeof e==`string`&&s.some(t=>t.id===e)}function l(e){return s.find(t=>t.id===e)??s[0]}function u(e,t){if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return c(n)?n:t}catch{return t}}function d(e,t){t===`signal`?e.removeAttribute(`data-palette`):e.setAttribute(`data-palette`,t)}var f=n()(t(e=>({provider:``,model:``,wsUrl:r(),wsConnected:!1,wsStatus:{state:`connecting`},theme:`system`,palette:`signal`,autoConnect:!0,soundOnComplete:!1,setProvider:t=>e({provider:t}),setModel:t=>e({model:t}),setConfig:t=>e(t),setTheme:t=>e({theme:t}),setPalette:t=>e({palette:t}),setWsConnected:t=>e({wsConnected:t}),setWsStatus:t=>e({wsStatus:t,wsConnected:t.state===`open`}),setSoundOnComplete:t=>e({soundOnComplete:t})}),{name:`wrongstack-config`,partialize:e=>({provider:e.provider,model:e.model,baseUrl:e.baseUrl,theme:e.theme,palette:e.palette,autoConnect:e.autoConnect,soundOnComplete:e.soundOnComplete}),merge:(e,t)=>{let{apiKey:n,...i}=e??{};return{...t,...i,wsUrl:r(),wsConnected:!1,wsStatus:{state:`connecting`},palette:c(i.palette)?i.palette:u(o,t.palette)}}}));function ee(e,t){return t>=100?`danger`:`warning`}function te(e,t){switch(e){case`budget.threshold_reached`:{let e=t,n=e.limit>0?Math.round(e.used/e.limit*100):0;return`${e.subagentId} [${e.kind}] ${n}% (${e.used}/${e.limit})`}case`budget.decision`:{let e=t;return`${e.subagentId} [${e.kind}] → ${e.decision}`}case`consensus.vote_initiated`:{let e=t;return`Vote: "${e.title}" — ${e.eligible.length} voters`}case`consensus.vote_cast`:{let e=t;return`${e.voterId} voted ${e.value}`}case`consensus.vote_resolved`:{let e=t;return`${e.result} — ✅${e.approveCount} ❌${e.rejectCount}`}case`task.pending`:return`Task queued: "${t.description.slice(0,60)}"`;case`task.started`:{let e=t;return`${e.subagentId} started ${e.taskId}`}case`task.completed`:{let e=t;return`Task ${e.taskId} ${e.status} (${e.durationMs}ms)`}case`task.failed`:{let e=t;return`Task ${e.taskId} failed: ${e.error.slice(0,60)}`}case`subagent.budget_extended`:{let e=t;return`${e.subagentId} [${e.kind}] extended → ${e.extendedTo}ms`}default:return e}}var ne=200,re=50,p=300,m=200,ie=100;function h(e,t,n){if(!(e.size<=t)){if(n)for(let[r,i]of e){if(e.size<=t)break;n(i)&&e.delete(r)}for(let n of e.keys()){if(e.size<=t)break;e.delete(n)}}}var ae=n()(e=>({coordinatorStatus:`idle`,subagents:new Map,events:[],consensusVotes:new Map,tasks:new Map,taskCounts:{pending:0,running:0,completed:0,failed:0},budgetAlerts:[],lastUpdated:Date.now(),setCoordinatorStatus:(t,n)=>e(e=>({coordinatorStatus:t,coordinatorMode:n,lastUpdated:Date.now()})),updateCoordinatorStats:t=>e(e=>{let n=new Map(e.subagents);for(let e of t.subagentStatuses??[]){let t=n.get(e.id);n.set(e.id,{id:e.id,name:e.name,role:t?.role??`agent`,status:e.status,currentTask:e.currentTask,budgetLimits:t?.budgetLimits,budgetUsage:t?.budgetUsage,lastSeen:t?.lastSeen??Date.now()})}return h(n,m,e=>e.status===`stopped`),{subagents:n,taskCounts:{pending:t.pending,running:t.inFlight,completed:t.completed,failed:0},lastUpdated:Date.now()}}),updateSubagentBudget:(t,n)=>e(e=>{let r=new Map(e.subagents),i=r.get(t);return r.set(t,{id:t,name:i?.name??t,role:i?.role??`agent`,status:i?.status??`idle`,...i,...n,lastSeen:Date.now()}),h(r,m,e=>e.status===`stopped`),{subagents:r,lastUpdated:Date.now()}}),pushEvent:(t,n,r,i,a)=>e(e=>{let o=n.kind??t,s=(t.includes(`budget`)||t.includes(`threshold`))&&typeof n.limit==`number`&&n.limit>0?Math.round(n.used/n.limit*100):void 0,c=s===void 0?t.includes(`consensus.vote_resolved`)?`info`:t.includes(`consensus.vote_initiated`)?`warning`:`info`:s>=100?`danger`:s>=85?`warning`:`info`;return{events:[{id:`${r}-${t}`,ts:r,type:t,subagentId:i,taskId:a,payload:n,kind:o,level:c,message:te(t,n)},...e.events].slice(0,ne),lastUpdated:Date.now()}}),pushConsensusVote:(t,n,r)=>e(e=>{let i=new Map(e.consensusVotes);return i.set(t,{changeId:t,title:n,status:`pending`,eligible:r,votes:[],approveCount:0,rejectCount:0,abstainCount:0,expiresAt:Date.now()+3e5}),h(i,ie,e=>e.status!==`pending`),{consensusVotes:i,lastUpdated:Date.now()}}),recordConsensusVote:(t,n,r,i)=>e(e=>{let a=new Map(e.consensusVotes),o=a.get(t);if(!o)return{};let s={...o,votes:[...o.votes.filter(e=>e.agentId!==n),{agentId:n,agentName:r,value:i,votedAt:Date.now()}],approveCount:i===`approve`?o.approveCount+1:o.approveCount,rejectCount:i===`reject`?o.rejectCount+1:o.rejectCount,abstainCount:i===`abstain`?o.abstainCount+1:o.abstainCount};return a.set(t,s),{consensusVotes:a,lastUpdated:Date.now()}}),resolveConsensusVote:(t,n,r,i)=>e(e=>{let a=new Map(e.consensusVotes),o=a.get(t);return o?(a.set(t,{...o,status:n,approveCount:r,rejectCount:i,resolvedAt:Date.now()}),{consensusVotes:a,lastUpdated:Date.now()}):{}}),pushTaskPending:(t,n,r)=>e(e=>{let i=new Map(e.tasks);return i.set(t,{id:t,description:n,status:`pending`,priority:r,queuedAt:Date.now()}),h(i,p,e=>e.status===`completed`||e.status===`failed`),{tasks:i,taskCounts:{...e.taskCounts,pending:e.taskCounts.pending+1},lastUpdated:Date.now()}}),startTask:(t,n)=>e(e=>{let r=new Map(e.tasks),i=r.get(t);return i?r.set(t,{...i,status:`running`,subagentId:n,startedAt:Date.now()}):r.set(t,{id:t,description:``,status:`running`,subagentId:n,startedAt:Date.now()}),{tasks:r,taskCounts:{...e.taskCounts,pending:Math.max(0,e.taskCounts.pending-1),running:e.taskCounts.running+1},lastUpdated:Date.now()}}),completeTask:(t,n,r)=>e(e=>{let i=new Map(e.tasks),a=i.get(t);return a&&i.set(t,{...a,status:n,completedAt:Date.now(),durationMs:r}),h(i,p,e=>e.status===`completed`||e.status===`failed`),{tasks:i,taskCounts:{...e.taskCounts,running:Math.max(0,e.taskCounts.running-1),completed:n===`completed`?e.taskCounts.completed+1:e.taskCounts.completed,failed:n===`failed`?e.taskCounts.failed+1:e.taskCounts.failed},lastUpdated:Date.now()}}),failTask:(t,n)=>e(e=>{let r=new Map(e.tasks),i=r.get(t);return i&&r.set(t,{...i,status:`failed`,error:n,completedAt:Date.now()}),h(r,p,e=>e.status===`completed`||e.status===`failed`),{tasks:r,taskCounts:{...e.taskCounts,running:Math.max(0,e.taskCounts.running-1),failed:e.taskCounts.failed+1},lastUpdated:Date.now()}}),recordBudgetDecision:(t,n,r,i)=>e(e=>{let a=new Map;for(let t of e.budgetAlerts){let e=`${t.subagentId}:${t.kind}`;a.has(e)||a.set(e,t)}let o=`${t}:${n}`,s=a.get(o);return s&&a.set(o,{...s,decision:r,newLimit:i,level:r===`extend`?`warning`:`danger`}),{budgetAlerts:Array.from(a.values()),lastUpdated:Date.now()}}),recordBudgetAlert:(t,n,r,i)=>e(e=>{let a=`${Date.now()}-${t}-${n}`,o=i>0?Math.round(r/i*100):0;return{budgetAlerts:[{id:a,ts:Date.now(),subagentId:t,kind:n,level:ee(n,o),used:r,limit:i,pct:o},...e.budgetAlerts].slice(0,re),lastUpdated:Date.now()}}),recordBudgetExtended:(t,n,r)=>e(e=>{let i=new Map(e.subagents),a=i.get(t);if(a?.budgetLimits){let e={...a.budgetLimits};n===`timeout`&&r&&(e.timeoutMs=r),n===`iterations`&&(e.maxIterations=r),n===`tool_calls`&&(e.maxToolCalls=r),i.set(t,{...a,budgetLimits:e,lastSeen:Date.now()})}return{subagents:i,lastUpdated:Date.now()}}),clear:()=>e({coordinatorStatus:`idle`,coordinatorMode:void 0,subagents:new Map,events:[],consensusVotes:new Map,tasks:new Map,taskCounts:{pending:0,running:0,completed:0,failed:0},budgetAlerts:[],lastUpdated:Date.now()})})),oe=n()(e=>({snapshot:null,lastFiredAt:{},revision:0,setSnapshot:t=>e(e=>({snapshot:t,revision:e.revision+1})),recordFired:(t,n)=>e(e=>({lastFiredAt:{...e.lastFiredAt,[t]:n},revision:e.revision+1})),clear:()=>e({snapshot:null,lastFiredAt:{},revision:0})}));function se(){return`ref_${Date.now()}_${Math.random().toString(36).slice(2,8)}`}function g(e){switch(e.split(`.`).pop()?.toLowerCase()??``){case`ts`:case`tsx`:return`typescript`;case`js`:case`jsx`:return`javascript`;case`json`:return`json`;case`md`:case`mdx`:return`markdown`;case`css`:return`css`;case`scss`:return`scss`;case`html`:case`htm`:return`html`;case`py`:return`python`;case`rs`:return`rust`;case`go`:return`go`;case`rb`:return`ruby`;case`java`:return`java`;case`c`:return`c`;case`cpp`:case`hpp`:return`cpp`;case`h`:return`c`;case`sh`:case`bash`:return`bash`;case`sql`:return`sql`;case`yaml`:case`yml`:return`yaml`;case`toml`:return`toml`;default:return``}}function _(e,t=20,n=2e3){let r=e.split(`
|
|
2
|
-
`),i=!1,a=e;return r.length>t&&(a=r.slice(0,t).join(`
|
|
3
|
-
`),i=!0),a.length>n&&(a=a.slice(0,n),i=!0),i&&(a=a.replace(/\s+$/,``)+`
|
|
4
|
-
…`),{text:a,truncated:i}}function ce(e){return e.length===0?``:[`[File reference contract]`,`Before answering or modifying anything related to these references, use the available file-reading tools to read each complete project file:`,...e.map(e=>`- ${JSON.stringify(e)}`),`If a read is paginated or chunked, continue on the same path until EOF. Do not treat an inline preview as the complete file.`].join(`
|
|
5
|
-
`)}function v(e,t){if(e.length===0)return``;let n=[],r=new Set;for(let i of e){if(i.kind===`file`){let e=t?.[i.path];if(e){let t=g(i.path),a=t?`\`\`\`${t}`:"```",o=_(e),s=o.truncated?`preview; complete read required`:`entire file`;n.push(`${a}\n// ${i.path} (${s})\n${o.text}\n\`\`\``),o.truncated&&r.add(i.path)}else n.push(`@${i.path}`),r.add(i.path);continue}let e=g(i.path),a=e?`\`\`\`${e}`:"```",o=`// ${i.path}:${i.startLine}-${i.endLine}`,s=_(i.kind===`snippet`?i.content:i.preview);n.push(`${a}\n${o}\n${s.text}\n\`\`\``),s.truncated&&r.add(i.path)}let i=ce([...r]);return[...n,i].filter(Boolean).join(`
|
|
6
|
-
|
|
7
|
-
`)}var y=n()((e,t)=>({refs:[],addRef:n=>{let r=t();if(n.kind===`file`&&r.refs.find(e=>e.kind===`file`&&e.path===n.path))return;let i={...n,id:se()};e({refs:[...r.refs,i]})},removeRef:t=>{e(e=>({refs:e.refs.filter(e=>e.id!==t)}))},clearRefs:()=>e({refs:[]})}));function b(e,t){let n=e??{},r=Array.isArray(n.openFilePaths)?n.openFilePaths.filter(e=>typeof e==`string`&&e.length>0):[],i=r.map(e=>({path:e,content:``,dirty:!1,savedContent:``})),a=typeof n.activeFilePath==`string`&&r.includes(n.activeFilePath)?n.activeFilePath:r[0]??null;return{...t,projectIdentity:typeof n.projectIdentity==`string`?n.projectIdentity:t.projectIdentity,openFiles:i,activeFilePath:a}}var le=n()(t((e,t)=>({projectRoot:``,tree:[],openFiles:[],activeFilePath:null,treeLoading:!1,error:null,targetLine:null,projectIdentity:``,hydratingPaths:new Set,setTree:(t,n)=>e({projectRoot:t,tree:n,treeLoading:!1,error:null}),jumpToLine:(t,n)=>e({targetLine:{line:t,col:n}}),clearTargetLine:()=>e({targetLine:null}),openFile:(n,r)=>{let i=t();if(i.openFiles.find(e=>e.path===n)){e({openFiles:i.openFiles.map(e=>e.path===n?{...e,content:r,dirty:!1,savedContent:r}:e),activeFilePath:n});return}e({openFiles:[...i.openFiles,{path:n,content:r,dirty:!1,savedContent:r}],activeFilePath:n})},closeFile:n=>{let r=t(),i=r.openFiles.findIndex(e=>e.path===n);if(i===-1)return;let a=[...r.openFiles];a.splice(i,1);let o=r.activeFilePath;r.activeFilePath===n&&(o=a.length===0?null:i<a.length?a[i].path:a[a.length-1].path),e({openFiles:a,activeFilePath:o})},setActiveFile:t=>e({activeFilePath:t}),updateContent:(t,n)=>{e(e=>({openFiles:e.openFiles.map(e=>e.path===t?{...e,content:n,dirty:n!==e.savedContent}:e)}))},markSaved:t=>{e(e=>({openFiles:e.openFiles.map(e=>e.path===t?{...e,dirty:!1,savedContent:e.content}:e)}))},setTreeLoading:t=>e({treeLoading:t}),setError:t=>e({error:t}),clearOpenTabs:()=>e({openFiles:[],activeFilePath:null}),setProjectIdentity:t=>e({projectIdentity:t}),hydrateFileContent:(n,r)=>{let i=t();if(!i.hydratingPaths.has(n))return!1;let a=new Set(i.hydratingPaths);a.delete(n);let o=i.openFiles.find(e=>e.path===n);return!o||o.dirty||o.content!==``||o.savedContent!==``?(e({hydratingPaths:a}),!1):(e({hydratingPaths:a,openFiles:i.openFiles.map(e=>e.path===n?{...e,content:r,savedContent:r,dirty:!1}:e)}),!0)},hydrateFileFailed:n=>{let r=t();if(!r.hydratingPaths.has(n))return;let i=new Set(r.hydratingPaths);i.delete(n);let a=r.openFiles.find(e=>e.path===n),o=!a||a.content===``&&!a.dirty&&a.savedContent===``;e({hydratingPaths:i}),o&&a&&t().closeFile(n)}}),{name:`wrongstack-file-store`,version:2,partialize:e=>({openFilePaths:e.openFiles.map(e=>e.path),activeFilePath:e.activeFilePath,projectIdentity:e.projectIdentity}),migrate:()=>({openFilePaths:[],activeFilePath:null,projectIdentity:``}),merge:(e,t)=>b(e,t)}));function x(e){return e===`running`}function S(e,t){let n=+!x(e.status),r=+!x(t.status);return n===r?e.startedAt-t.startedAt:n-r}function ue(e){let t=0,n=0,r=0;for(let i of e)i.status===`running`?t++:i.status===`completed`?n++:(i.status===`failed`||i.status===`timeout`)&&r++;return{running:t,completed:n,failed:r,total:e.length}}var de=85,fe=70;function pe(e){let t=Number.isFinite(e)?Math.max(0,Math.min(100,Math.round(e))):0;return{clamped:t,severity:t>=de?`high`:t>=fe?`medium`:`low`}}function C(e){return e==null||!Number.isFinite(e)||e<0?`0`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e))}function w(e){if(e==null||!Number.isFinite(e)||e<=0)return`$0`;if(e<.01){let t=e.toFixed(5);return t===`0.00000`?`$0`:`$`+t.replace(/(\d)0+$/,`$1`).replace(/\.$/,``)}return`$`+e.toFixed(3)}function T(e){if(e==null||!Number.isFinite(e)||e<0)return`—`;let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m ${t%60}s`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d`}function me(e,t=Date.now()){let{clamped:n,severity:r}=pe(e.ctxPct);return{ctxClamped:n,ctxSeverity:r,elapsed:!Number.isFinite(e.startedAt)||e.startedAt<=0?`—`:T(e.status===`running`?t-e.startedAt:(e.completedAt??t)-e.startedAt),cost:w(e.costUsd),iterationCount:e.iteration,toolCount:e.toolCalls,tokensIn:C(e.tokensIn),tokensOut:C(e.tokensOut)}}var E=12,he=20,ge=500,D=200,O=[];function k(e,t,n){return{id:e,name:t?.trim()||e,sessionId:n,status:`running`,iteration:0,toolCalls:0,costUsd:0,ctxPct:0,ctxTokens:0,maxContext:0,extensions:0,startedAt:Date.now(),toolLog:[],sparklineBins:Array(E).fill(0)}}var _e=0;function A(){return`tl_${Date.now()}_${++_e}`}function j(e,t){return[t,...e].slice(0,he)}function M(e){switch(e){case`text`:case`thinking`:case`tool_use`:case`tool_result`:case`error`:case`status`:case`system`:return e;default:return`status`}}function N(e,t){return e.subagentId!==t.subagentId||e.kind!==t.kind||e.iteration!==t.iteration||e.toolName!==t.toolName||e.toolOk!==t.toolOk?!1:e.kind===`text`||e.kind===`thinking`}function P(e,t){let n=e[e.length-1];return n&&N(n,t)?[...e.slice(0,-1),{...n,content:`${n.content}${t.content}`,ts:t.ts}].slice(-1e3):[...e,t].slice(-1e3)}function F(e){return[e[0]+1,...e.slice(0,11)]}function I(e){return Number.isFinite(e)?Math.max(0,Math.min(100,e)):0}var ve=n()((t,n)=>({agents:new Map,leaderId:void 0,fleetTokensIn:0,fleetTokensOut:0,fleetConcurrency:0,fleetConcurrencyMax:4,fleetMaxSpawns:void 0,fleetUsedSpawns:void 0,fleetRemainingSpawns:void 0,fleetBudgetSource:void 0,fleetCheckpointMaxSpawns:void 0,fleetCeilingMismatch:!1,eventTimeline:[],agentTimeline:[],agentTranscripts:new Map,pushAgentTimelineEntry:e=>t(t=>{let n={id:`agent_tl_${Date.now()}_${Math.random().toString(36).slice(2,6)}`,...e,kind:M(e.kind)},r=new Map(t.agentTranscripts);return r.set(n.subagentId,P(r.get(n.subagentId)??[],n)),{agentTimeline:[n,...t.agentTimeline].slice(0,ge),agentTranscripts:r}}),clear:()=>t({agents:new Map,leaderId:void 0,fleetTokensIn:0,fleetTokensOut:0,fleetConcurrency:0,fleetConcurrencyMax:4,fleetMaxSpawns:void 0,fleetUsedSpawns:void 0,fleetRemainingSpawns:void 0,fleetBudgetSource:void 0,fleetCheckpointMaxSpawns:void 0,fleetCeilingMismatch:!1,eventTimeline:[],agentTimeline:[],agentTranscripts:new Map}),getAgentsBySession:e=>{let t=[];for(let r of n().agents.values())r.sessionId===e&&t.push(r);return t},getAgentTranscript:e=>n().agentTranscripts.get(e)??O,clearFinishedAgents:()=>t(e=>{let t=new Map(e.agents),n=new Set,r=0,i=0;for(let[e,a]of t)a.status!==`running`&&(t.delete(e),n.add(e),r+=a.tokensIn??0,i+=a.tokensOut??0);let a=new Map(e.agentTranscripts);for(let e of n)a.delete(e);return{agents:t,agentTranscripts:a,agentTimeline:e.agentTimeline.filter(e=>!n.has(e.subagentId)),eventTimeline:e.eventTimeline.filter(e=>!n.has(e.agentId)),leaderId:e.leaderId&&n.has(e.leaderId)?void 0:e.leaderId,fleetTokensIn:Math.max(0,e.fleetTokensIn-r),fleetTokensOut:Math.max(0,e.fleetTokensOut-i)}}),applyEvent:n=>t(t=>{let r=new Map(t.agents),i=new Map(t.agentTranscripts),a=t.eventTimeline,o=t.leaderId,s=t.fleetTokensIn,c=t.fleetTokensOut;if(n.kind===`session_stopped`&&n.sessionId){let e=new Set;for(let[t,a]of r)a.sessionId===n.sessionId&&(r.delete(t),i.delete(t),e.add(t));return{agents:r,agentTranscripts:i,agentTimeline:t.agentTimeline.filter(t=>!e.has(t.subagentId)),leaderId:void 0,fleetTokensIn:0,fleetTokensOut:0}}if(n.kind===`removed`&&n.subagentId){let e=r.get(n.subagentId);return r.delete(n.subagentId),i.delete(n.subagentId),{agents:r,agentTranscripts:i,agentTimeline:t.agentTimeline.filter(e=>e.subagentId!==n.subagentId),eventTimeline:t.eventTimeline.filter(e=>e.agentId!==n.subagentId),leaderId:t.leaderId===n.subagentId?void 0:t.leaderId,fleetTokensIn:Math.max(0,t.fleetTokensIn-(e?.tokensIn??0)),fleetTokensOut:Math.max(0,t.fleetTokensOut-(e?.tokensOut??0))}}if(n.kind===`leader_updated`&&n.subagentId){let e=t.leaderId;if(e&&e!==n.subagentId){let t=r.get(e);t&&r.set(e,{...t,isLeader:!1})}o=n.subagentId;let i=r.get(n.subagentId)??k(n.subagentId,n.name,n.sessionId);return r.set(n.subagentId,{...i,isLeader:!0,name:n.name?.trim()||i.name}),a=j(a,{id:A(),kind:`leader_updated`,agentId:n.subagentId,agentName:n.name??o,timestamp:Date.now(),message:`${n.name??n.subagentId} became leader`}),{agents:r,leaderId:o,eventTimeline:a}}if(!n.subagentId)return t;let l=r.get(n.subagentId)??k(n.subagentId,n.name,n.sessionId),u={...l},d=Date.now();switch(n.kind){case`spawned`:u.name=n.name?.trim()||u.name,u.provider=n.provider??u.provider,u.model=n.model??u.model,u.description=n.description??u.description,u.taskId=n.taskId??u.taskId,u.sessionId=n.sessionId??u.sessionId,u.status=`running`,u.sparklineBins=Array(E).fill(0),a=j(a,{id:A(),kind:`spawned`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} spawned`});break;case`task_started`:u.description=n.description??u.description,u.taskId=n.taskId??u.taskId,u.status=`running`,a=j(a,{id:A(),kind:`task_started`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} started: ${n.description??`new task`}`});break;case`tool_executed`:{let e=typeof n.ok!=`boolean`||n.ok,t=typeof n.durationMs==`number`?n.durationMs:0;u.lastTool=n.toolName??u.lastTool,u.toolCalls+=1,u.toolLog=[{name:n.toolName??`unknown`,ok:e,durationMs:t,at:d},...u.toolLog].slice(0,50),u.sparklineBins=F(u.sparklineBins),a=j(a,{id:A(),kind:`tool_executed`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} ${e?`✓`:`✗`} ${n.toolName??`tool`}`,value:t});break}case`iteration_summary`:u.iteration=n.iteration??u.iteration,typeof n.toolCalls==`number`&&(u.toolCalls=n.toolCalls),typeof n.costUsd==`number`&&(u.costUsd=n.costUsd),u.currentTool=n.currentTool??u.currentTool,typeof n.partialText==`string`&&n.partialText&&(u.partialText=n.partialText),u.sparklineBins=F(u.sparklineBins),a=j(a,{id:A(),kind:`iteration_summary`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} iter ${n.iteration??u.iteration} · ${n.currentTool?`${n.currentTool}`:``}`,value:n.costUsd});break;case`budget_warning`:{let e=n.budgetKind??`budget`,t=typeof n.used==`number`?n.used:0,r=typeof n.limit==`number`?n.limit:0;u.budgetWarning={kind:e,used:t,limit:r},a=j(a,{id:A(),kind:`budget_warning`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} hit ${e} budget ${t}/${r}`,value:t});break}case`budget_extended`:u.extensions=n.totalExtensions??u.extensions+1,u.budgetWarning=void 0,a=j(a,{id:A(),kind:`budget_extended`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} extended budget ⚡×${u.extensions}`});break;case`ctx_pct`:u.ctxPct=I(Math.round(Math.max(0,n.load??0)*100)),u.ctxTokens=n.tokens??u.ctxTokens,u.maxContext=n.maxContext??u.maxContext,u.ctxPct>=80&&!u.budgetWarning&&(u.budgetWarning=u.ctxPct>=100?{kind:`hard`,used:u.ctxPct,limit:100}:{kind:`soft`,used:u.ctxPct,limit:100}),typeof n.costUsd==`number`&&(u.costUsd=n.costUsd),typeof n.tokensIn==`number`&&(u.tokensIn=n.tokensIn,s=s-(l.tokensIn??0)+n.tokensIn),typeof n.tokensOut==`number`&&(u.tokensOut=n.tokensOut,c=c-(l.tokensOut??0)+n.tokensOut),a=j(a,{id:A(),kind:`ctx_pct`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} ctx ${u.ctxPct}%`,value:u.ctxPct});break;case`task_completed`:{u.status=n.status===`success`?`completed`:n.status??`completed`,typeof n.iterations==`number`&&(u.iteration=n.iterations),typeof n.toolCalls==`number`&&(u.toolCalls=n.toolCalls),u.error=n.error,u.currentTool=void 0,u.completedAt=d,u.failureReason=n.failureReason??u.failureReason,typeof n.finalText==`string`&&n.finalText&&(u.finalText=e(n.finalText));let t=n.status===`success`?`✓ completed`:n.status===`failed`?`✗ failed${n.failureReason?` (${n.failureReason})`:``}`:n.status===`timeout`?`⏱ timeout${n.failureReason?` (${n.failureReason})`:``}`:`stopped`;a=j(a,{id:A(),kind:`task_completed`,agentId:n.subagentId,agentName:u.name,timestamp:d,message:`${u.name} ${t}`,value:u.costUsd});break}}r.set(n.subagentId,u);let f=!1;if(r.size>D)for(let[e,t]of r){if(r.size<=D)break;t.status!==`running`&&e!==n.subagentId&&(r.delete(e),i.delete(e),f=!0,s=Math.max(0,s-(t.tokensIn??0)),c=Math.max(0,c-(t.tokensOut??0)),o===e&&(o=void 0))}return{agents:r,...f?{agentTranscripts:i}:{},leaderId:o,fleetTokensIn:s,fleetTokensOut:c,eventTimeline:a}})})),ye=e=>{let t=0,n=0,r=0,i=0;for(let a of e.agents.values())a.status===`running`?t++:a.status===`completed`?n++:(a.status===`failed`||a.status===`timeout`)&&r++,Number.isFinite(a.costUsd)&&a.costUsd>0&&(i+=a.costUsd);return{running:t,completed:n,failed:r,total:e.agents.size,totalCost:i,tokensIn:e.fleetTokensIn,tokensOut:e.fleetTokensOut,concurrency:e.fleetConcurrency,concurrencyMax:e.fleetConcurrencyMax,maxSpawns:e.fleetMaxSpawns,usedSpawns:e.fleetUsedSpawns,remainingSpawns:e.fleetRemainingSpawns,budgetSource:e.fleetBudgetSource,ceilingMismatch:e.fleetCeilingMismatch||void 0,checkpointMaxSpawns:e.fleetCheckpointMaxSpawns}},be=e=>{let t=Array.from(e.agents.values()),n=e.leaderId;return t.sort((e,t)=>e===t||e.id===t.id?0:e.id===n?-1:t.id===n?1:S(e,t)),t},xe=e=>e.leaderId?e.agents.get(e.leaderId)?.name:void 0,Se=n()(e=>({files:[],error:null,loadingList:!1,selectedPath:null,diff:null,loadingDiff:!1,setFiles:(t,n)=>e({files:t,error:n,loadingList:!1}),setListLoading:t=>e({loadingList:t}),select:t=>e({selectedPath:t,diff:null,loadingDiff:!!t}),setDiff:t=>e({diff:t,loadingDiff:!1}),setDiffLoading:t=>e({loadingDiff:t}),clear:()=>e({files:[],error:null,selectedPath:null,diff:null,loadingDiff:!1})})),Ce=n()(e=>({info:null,setInfo:t=>e({info:t}),clear:()=>e({info:null})})),we=n()((e,t)=>({result:null,loading:!1,currentSeq:0,setResult:t=>e(e=>t.reqSeq===e.currentSeq?{result:t,loading:!1}:{}),setLoading:()=>e({loading:!0,result:null}),clear:()=>e({result:null,loading:!1}),nextSeq:()=>{let n=t().currentSeq+1;return e({currentSeq:n}),n}})),Te=n()(e=>({phases:[],activePhaseId:null,overallPercent:0,autonomous:!1,title:null,goal:null,status:`idle`,multiBoard:!1,lastEvent:null,lastError:null,graphs:[],progress:null,setState:t=>e(e=>({phases:t.phases??e.phases,activePhaseId:t.activePhaseId===void 0?e.activePhaseId:t.activePhaseId,overallPercent:t.overallPercent??e.overallPercent,autonomous:t.autonomous??e.autonomous,title:t.title===void 0?e.title:t.title,goal:t.goal===void 0?e.goal:t.goal,status:t.status??e.status,multiBoard:t.multiBoard??e.multiBoard,lastEvent:t.lastEvent===void 0?e.lastEvent:t.lastEvent,lastError:t.lastError===void 0?e.lastError:t.lastError,graphs:t.graphs??e.graphs,progress:t.progress===void 0?e.progress:t.progress})),clear:()=>e({phases:[],activePhaseId:null,overallPercent:0,autonomous:!1,title:null,goal:null,status:`idle`,multiBoard:!1,lastEvent:null,lastError:null,graphs:[],progress:null}),hydrateFromServer:e=>{e({type:`goal.list`}),e({type:`goal.state`})}}));function Ee(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return!(typeof t.iteration!=`number`||!Number.isFinite(t.iteration)||t.task!==void 0&&typeof t.task!=`string`||t.status!==void 0&&typeof t.status!=`string`||t.progress!==void 0&&(typeof t.progress!=`number`||!Number.isFinite(t.progress))||t.progressNote!==void 0&&typeof t.progressNote!=`string`||t.timestamp!==void 0&&typeof t.timestamp!=`string`)}function De(e){return!e||typeof e.goal!=`string`||!e.goal.trim()?null:{goal:e.goal,refinedGoal:typeof e.refinedGoal==`string`?e.refinedGoal:void 0,goalState:[`active`,`paused`,`completed`,`failed`,`abandoned`].includes(e.goalState)?e.goalState:`active`,iterations:typeof e.iterations==`number`?e.iterations:0,progress:typeof e.progress==`number`?e.progress:0,progressNote:typeof e.progressNote==`string`?e.progressNote:void 0,progressTrend:e.progressTrend===`accelerating`?`up`:e.progressTrend===`stalling`?`down`:e.progressTrend===`steady`?`stable`:void 0,deliverables:Array.isArray(e.deliverables)?e.deliverables.map((e,t)=>typeof e==`string`?{id:`d${t}`,text:e,status:/^\[[x✓]\]|✅|\(done\)/i.test(e)?`done`:`pending`}:e):void 0,journal:Array.isArray(e.journal)?e.journal.filter(Ee):void 0,lastTask:typeof e.lastTask==`string`?e.lastTask:void 0,lastStatus:typeof e.lastStatus==`string`?e.lastStatus:void 0}}var Oe=n()(e=>({goal:null,setGoal:t=>e({goal:De(t)}),clear:()=>e({goal:null}),appendJournalEntry:t=>e(e=>e.goal?{goal:{...e.goal,iterations:Math.max(e.goal.iterations,t.iteration),lastTask:t.task??e.goal.lastTask,lastStatus:t.status??e.goal.lastStatus,journal:[t,...e.goal.journal??[]].slice(0,200)}}:e),refresh:()=>{try{i()?.send?.({type:`goal-state.get`})}catch{}}})),ke=n()(e=>({entries:[],loading:!1,error:null,setEntries:(t,n=null)=>e({entries:t,error:n,loading:!1}),setLoading:t=>e({loading:t}),removeEntry:t=>e(e=>({entries:e.entries.filter(e=>e.id!==t)})),updateEntryName:(t,n)=>e(e=>({entries:e.entries.map(e=>{if(e.id!==t)return e;let r=n.trim();if(!r){let{name:t,...n}=e;return n}return{...e,name:r}})})),clearHistory:()=>e({entries:[]})}));function L(e,t){return e.presence?.some(e=>e.active)===!0||e.tags?.some(e=>e.startsWith(`session:`)&&t.includes(e.slice(8)))===!0}var Ae=3e5,je=n()((e,t)=>({boards:[],boardTotal:0,activeBoardTotal:0,orphanedBoardTotal:0,activeBoardId:null,activeBoard:null,loading:!1,lastOutboundAction:null,error:null,queueHealth:null,supervisorSnapshot:null,workbench:null,verificationActivity:{},boardHistory:[],fetchBoardHistory:e=>{t().sendKanban(`kanban.board.history`,{boardId:e})},setLoading:t=>e({loading:t}),sendKanban:(t,n)=>(e({loading:!0,lastOutboundAction:t}),t),transitionTask:(t,n,r,i)=>{let a=`kanban.task.transition`;return e({loading:!0,lastOutboundAction:a}),a},dispatchTask:(t,n,r)=>{let i=`kanban.task.dispatch`;return e({loading:!0,lastOutboundAction:i}),i},moveTask:(t,n,r)=>{let i=`kanban.task.move`;return e({loading:!0,lastOutboundAction:i}),i},removeTask:(t,n)=>{let r=`kanban.task.remove`;return e({loading:!0,lastOutboundAction:r}),r},setActiveBoardId:t=>e({activeBoardId:t,queueHealth:null,supervisorSnapshot:null,verificationActivity:{}}),setError:t=>e({error:t}),setQueueHealth:t=>e({queueHealth:t}),handleResult:(n,r)=>{if(!r.success){e({loading:!1,error:r.error??`Kanban request failed`});return}let i=r.data;if((n===`kanban.supervisor.status`||n===`kanban.supervisor.audit`)&&i){e({supervisorSnapshot:i,loading:!1,error:null});return}if(n===`kanban.health`&&r.data){e({queueHealth:r.data,loading:!1,error:null});return}if(n===`kanban.workbench`&&r.data){e({workbench:r.data,loading:!1,error:null});return}if(n===`kanban.list`){let t=Ne(i)?i:null,n=t?t.items:Array.isArray(i)?i:[];e({boards:n,boardTotal:t?.total??n.length,activeBoardTotal:t?.activeTotal??n.filter(e=>V(e)).length,orphanedBoardTotal:t?.orphanedTotal??n.filter(e=>!V(e)).length,loading:!1,error:null});return}if(n===`kanban.delete`){let n=t().activeBoardId,r=i,a=r?.removed===!0,o=r?.boardId??n;e(e=>{let t=a?e.boards.find(e=>e.id===o):void 0,n=t?V(t):void 0;return{boards:a?e.boards.filter(e=>e.id!==o):e.boards,boardTotal:a?Math.max(0,e.boardTotal-1):e.boardTotal,activeBoardTotal:n===!0?Math.max(0,e.activeBoardTotal-1):e.activeBoardTotal,orphanedBoardTotal:n===!1?Math.max(0,e.orphanedBoardTotal-1):e.orphanedBoardTotal,activeBoardId:a&&e.activeBoardId===o?null:e.activeBoardId,activeBoard:a&&e.activeBoard?.id===o?null:e.activeBoard,loading:!1,error:null}});return}if(n===`kanban.task.remove`){let t=i;e(e=>{let n=R(t?.board)?t.board:null;if(n&&e.activeBoardId===n.id)return{boards:U(e.boards,H(n)),activeBoard:n,loading:!1,error:null};let r=t?.boardId,i=t?.taskId,a=t?.removed===!0&&i&&e.activeBoard&&(!r||e.activeBoard.id===r)?{...e.activeBoard,tasks:e.activeBoard.tasks.filter(e=>e.id!==i)}:e.activeBoard;return{activeBoard:a,boards:a?U(e.boards,H(a)):e.boards,loading:!1,error:null}});return}if(n===`kanban.board.history`){Array.isArray(i)&&e({boardHistory:i});return}if(n===`kanban.task.verification_started`){let t=i;if(t?.boardId&&t.taskId){let n=`${t.boardId}:${t.taskId}`;e(e=>{let t=Date.now(),r=Object.fromEntries(Object.entries(e.verificationActivity).filter(([,e])=>t-e.startedAt<Ae));return r[n]={startedAt:t},{verificationActivity:r,loading:!1,error:null}})}return}if(n===`kanban.task.verification_completed`&&B(i)){let t=`${i.boardId}:${i.task.id}`;e(e=>{let n={...e.verificationActivity};if(delete n[t],e.activeBoard&&e.activeBoard.id===i.boardId){let t=W(e.activeBoard,i.task);return{verificationActivity:n,boards:U(e.boards,H(t)),activeBoard:t,loading:!1,error:null}}return{verificationActivity:n,loading:!1,error:null}});return}if(Me(i)){let t=i.board;e(e=>({boards:U(e.boards,H(t)),activeBoard:e.activeBoardId===t.id?t:e.activeBoard,loading:!1,error:null}));return}if(B(i)){e(e=>{if(e.activeBoard&&e.activeBoard.id===i.boardId){let t=W(e.activeBoard,i.task);return{boards:U(e.boards,H(t)),activeBoard:t,loading:!1,error:null}}return{loading:!1,error:null}});return}if(R(i)){let t=H(i);if(n===`kanban.get`){e(e=>({boards:U(e.boards,t),activeBoard:e.activeBoardId===i.id?i:e.activeBoard,loading:!1,error:null}));return}e(e=>({boards:U(e.boards,t),activeBoardId:i.id,activeBoard:i,loading:!1,error:null}));return}if(z(i)){e(e=>({...e.activeBoard?(()=>{let t=W(e.activeBoard,i);return{activeBoard:t,boards:U(e.boards,H(t))}})():{activeBoard:e.activeBoard},loading:!1,error:null}));return}if(Array.isArray(i)&&i.every(Pe)){e(e=>({...e.activeBoard?(()=>{let t={...e.activeBoard,columns:i};return{activeBoard:t,boards:U(e.boards,H(t))}})():{activeBoard:e.activeBoard},loading:!1,error:null}));return}e({loading:!1,error:null})}}));function R(e){return!!e&&typeof e==`object`&&Array.isArray(e.columns)&&Array.isArray(e.tasks)}function z(e){return!!e&&typeof e==`object`&&typeof e.title==`string`}function B(e){return!!e&&typeof e==`object`&&typeof e.boardId==`string`&&z(e.task)}function Me(e){return!!e&&typeof e==`object`&&R(e.board)}function Ne(e){return!!e&&typeof e==`object`&&Array.isArray(e.items)&&typeof e.total==`number`}function V(e){return L(e,[])}function Pe(e){return!!e&&typeof e==`object`&&typeof e.id==`string`}function H(e){return{id:e.id,title:e.title,description:e.description,tags:e.tags,presence:e.presence,createdAt:e.createdAt,updatedAt:e.updatedAt,columnCount:e.columns.length,taskCount:e.tasks.length,completedTaskCount:e.tasks.filter(e=>e.status===`completed`).length}}function U(e,t){return[t,...e.filter(e=>e.id!==t.id)].sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))}function W(e,t){let n=e.tasks.some(e=>e.id===t.id)?e.tasks.map(e=>e.id===t.id?t:e):[...e.tasks,t];return{...e,tasks:n}}function Fe(e){switch(e){case`tui`:return`tui`;case`cli`:case`repl`:return`repl`;case`webui`:return`webui`;default:return`webui`}}function Ie(e){let t={tui:0,webui:0,repl:0},n=0,r=0,i={toolCalls:0,costUsd:0,tokensIn:0,tokensOut:0};for(let a of e){t[Fe(a.clientType)]+=1;for(let e of a.agents)n+=1,(e.status===`running`||e.status===`streaming`)&&(r+=1),i.toolCalls+=e.toolCalls??0,i.costUsd+=e.costUsd??0,i.tokensIn+=e.tokensIn??0,i.tokensOut+=e.tokensOut??0}return{clientCounts:t,totalAgents:n,activeAgents:r,aggregate:i}}function Le(e){if(e!==void 0)return Number.isFinite(e)?Math.max(0,Math.min(100,Math.round(e))):0}function Re(e){return e.map(e=>({...e,agents:e.agents.map(e=>({...e,ctxPct:Le(e.ctxPct)}))}))}var ze=0,G=n()(e=>({clientCounts:{tui:0,webui:0,repl:0},mailActivity:[],totalMessages:0,openMessages:0,unreadMessages:0,totalAgents:0,activeAgents:0,currentSession:{},liveSessions:[],aggregate:{toolCalls:0,costUsd:0,tokensIn:0,tokensOut:0},lastUpdated:Date.now(),setClientCounts:t=>e({clientCounts:t,lastUpdated:Date.now()}),setLiveSessions:t=>{let n=Re(t),r=G.getState().liveSessions;if(r.length===n.length){let e=!0;for(let t=0;t<n.length;t++){let i=n[t],a=r[t];if(i.sessionId!==a.sessionId||i.status!==a.status||i.agentCount!==a.agentCount||i.startedAt!==a.startedAt||i.lastHeartbeatAt!==a.lastHeartbeatAt){e=!1;break}let o=i.agents??[],s=a.agents??[];if(o.length!==s.length){e=!1;break}for(let t=0;t<o.length;t++)if(o[t].id!==s[t].id||o[t].name!==s[t].name||o[t].status!==s[t].status||o[t].currentTool!==s[t].currentTool||o[t].iterations!==s[t].iterations||o[t].toolCalls!==s[t].toolCalls||o[t].ctxPct!==s[t].ctxPct||o[t].tokensIn!==s[t].tokensIn||o[t].tokensOut!==s[t].tokensOut||o[t].costUsd!==s[t].costUsd||o[t].recentTools?.[0]?.id!==s[t].recentTools?.[0]?.id||o[t].recentMail?.[0]?.id!==s[t].recentMail?.[0]?.id||o[t].activity?.reads!==s[t].activity?.reads||o[t].activity?.writes!==s[t].activity?.writes||o[t].activity?.edits!==s[t].activity?.edits||o[t].activity?.terminalCalls!==s[t].activity?.terminalCalls||o[t].activity?.mailReceived!==s[t].activity?.mailReceived||o[t].activity?.mailSent!==s[t].activity?.mailSent||o[t].activity?.linesAdded!==s[t].activity?.linesAdded||o[t].activity?.linesRemoved!==s[t].activity?.linesRemoved){e=!1;break}if(!e)break}if(e)return}e({liveSessions:n,...Ie(n),lastUpdated:Date.now()})},addMailActivity:t=>e(e=>({mailActivity:[{...t,seq:t.seq??++ze},...e.mailActivity].slice(0,50),lastUpdated:Date.now()})),setMailStats:(t,n,r)=>e({totalMessages:t,openMessages:n,unreadMessages:r,lastUpdated:Date.now()}),setAgentStats:(t,n)=>e({totalAgents:t,activeAgents:n,lastUpdated:Date.now()}),setCurrentSession:t=>e({currentSession:{...G.getState().currentSession,...t},lastUpdated:Date.now()}),clear:()=>e({clientCounts:{tui:0,webui:0,repl:0},mailActivity:[],totalMessages:0,openMessages:0,unreadMessages:0,totalAgents:0,activeAgents:0,currentSession:{},liveSessions:[],aggregate:{toolCalls:0,costUsd:0,tokensIn:0,tokensOut:0},lastUpdated:Date.now()})})),Be=[3e4,6e4,12e4,3e5,6e5],K=12e4,Ve=n()(t(e=>({viewMode:`office`,showHud:!0,showLegend:!0,showMinimap:!0,showControls:!0,animateEdges:!0,showFeed:!0,background:`dots`,waitThresholdMs:K,setViewMode:t=>e({viewMode:t}),setShowHud:t=>e({showHud:t}),setShowLegend:t=>e({showLegend:t}),setShowMinimap:t=>e({showMinimap:t}),setShowControls:t=>e({showControls:t}),setAnimateEdges:t=>e({animateEdges:t}),setShowFeed:t=>e({showFeed:t}),setBackground:t=>e({background:t}),setWaitThresholdMs:t=>e({waitThresholdMs:Number.isFinite(t)&&t>0?Math.round(t):K})}),{name:`wrongstack-officemap`})),q=e=>`${e.providerId}\u0000${e.model}`,He=n(e=>({entries:{},summary:null,loading:!1,error:null,update:t=>e(e=>{let n={...e.entries},r=q(t);return t.state===`healthy`?delete n[r]:n[r]={...n[r],...t},{entries:n}}),hydrate:t=>e({entries:Object.fromEntries(t.filter(e=>e.state!==`healthy`).map(e=>[q(e),e]))}),applySnapshot:t=>{let n=t.statuses;if(!Array.isArray(n)){e({error:`Invalid snapshot from server`,loading:!1});return}let r={};for(let e of n){if(!e||typeof e!=`object`)continue;let t=e,n=typeof t.providerId==`string`?t.providerId:``,i=typeof t.model==`string`?t.model:``;if(!n||!i)continue;let a=t.state;(a===`healthy`||a===`degraded`||a===`blocked`)&&(r[`${n}\u0000${i}`]={providerId:n,model:i,state:a,reason:(typeof t.lastErrorKind==`string`?t.lastErrorKind:``)||a,updatedAt:typeof t.lastFailureAt==`number`?t.lastFailureAt:Date.now(),...typeof t.stateExpiresAt==`number`?{stateExpiresAt:t.stateExpiresAt}:{},...typeof t.consecutiveFailures==`number`?{consecutiveFailures:t.consecutiveFailures}:{},...typeof t.totalFailures==`number`?{totalFailures:t.totalFailures}:{},...typeof t.rateLimitHits==`number`?{rateLimitHits:t.rateLimitHits}:{},...typeof t.lastErrorMessage==`string`?{lastErrorMessage:t.lastErrorMessage}:{},...typeof t.lastErrorKind==`string`?{lastErrorKind:t.lastErrorKind}:{},...typeof t.lastErrorStatus==`number`?{lastErrorStatus:t.lastErrorStatus}:{},...Array.isArray(t.recentErrors)?{recentErrors:t.recentErrors.slice(0,20)}:{},...typeof t.lastSessionId==`string`?{lastSessionId:t.lastSessionId}:{},...typeof t.lastAgentId==`string`?{lastAgentId:t.lastAgentId}:{},...typeof t.lastFailureAt==`number`?{lastFailureAt:t.lastFailureAt}:{}})}let i=t;e({entries:r,summary:{totalPairs:typeof i.totalPairs==`number`?i.totalPairs:0,healthy:typeof i.healthy==`number`?i.healthy:0,degraded:typeof i.degraded==`number`?i.degraded:0,blocked:typeof i.blocked==`number`?i.blocked:0,totalFailures:typeof i.totalFailures==`number`?i.totalFailures:0,totalRateLimits:typeof i.totalRateLimits==`number`?i.totalRateLimits:0},error:null,loading:!1})},setLoading:t=>e({loading:t}),setError:t=>e({error:t,loading:!1}),removeEntry:(t,n)=>e(e=>{let r={...e.entries};return delete r[q({providerId:t,model:n})],{entries:r}}),clear:()=>e({entries:{},summary:null,error:null})})),Ue=n(e=>({pending:null,selected:0,setPending:t=>e({pending:t,selected:0}),clear:()=>e({pending:null,selected:0}),move:t=>e(e=>{if(!e.pending||e.pending.candidates.length===0)return e;let n=e.pending.candidates.length;return{selected:(e.selected+t+n)%n}}),setSelected:t=>e({selected:Math.max(0,t)})})),We=n()(e=>({snapshot:null,boards:[],lifecycleResult:null,destroying:!1,setSnapshot:t=>e({snapshot:t}),setBoards:t=>e({boards:t}),setLifecycleResult:t=>e({lifecycleResult:t}),setDestroying:t=>e({destroying:t})})),Ge=n()(e=>({snapshot:null,agentText:``,error:null,startedRunId:null,setSnapshot:t=>{if(t.discarded||t.phase===`idle`&&!t.sessionId){e({snapshot:null,agentText:``,error:null});return}e({snapshot:t,error:null,...t.lastAgentText?{agentText:t.lastAgentText}:{}})},setAgentText:t=>e({agentText:t}),setError:t=>e({error:t}),setStartedRunId:t=>e({startedRunId:t}),reset:()=>e({snapshot:null,agentText:``,error:null,startedRunId:null})})),Ke=n(e=>({sideEffects:[],loading:!1,setSideEffects:t=>e({sideEffects:t,loading:!1}),setLoading:t=>e({loading:t}),clear:()=>e({sideEffects:[],loading:!1})})),J=n()(e=>({specs:[],detail:null,expandedSpecId:null,setSpecs:t=>e({specs:t}),setDetail:t=>e({detail:t}),setExpanded:t=>e({expandedSpecId:t,detail:null})})),qe=new Set([`idle`,`queued`,`discovering`,`inventorying`,`enriching`,`researching`,`synthesizing`,`completed`,`failed`,`cancelled`]);function Je(e){return qe.has(e)?e:void 0}var Y={snapshot:null,stale:!1,loading:!1,error:null,activeJob:null,lastWorkspaceId:null,reportId:null},Ye=n()(e=>({...Y,setSnapshot:(t,n=!1)=>e(e=>({snapshot:t,stale:n,loading:!1,error:null,activeJob:e.activeJob?{...e.activeJob,status:`completed`,error:null}:null})),setLoading:t=>e({loading:t}),setError:t=>e({error:t,loading:!1}),jobStarted:(t,n)=>e({activeJob:{id:t,kind:n,status:`queued`,progress:null,error:null},error:null,loading:!0}),jobProgress:(t,n)=>e(e=>{if(e.activeJob?.id!==t)return e;let r=Je(n.phase);return r?{activeJob:{...e.activeJob,status:r,progress:n},loading:!0}:e}),jobFailed:(t,n)=>e(e=>e.activeJob?.id===t?{activeJob:{...e.activeJob,status:`failed`,error:n},error:n,loading:!1}:e),jobCancelled:t=>e(e=>({activeJob:e.activeJob?.id===t?{...e.activeJob,status:`cancelled`,error:null}:e.activeJob,loading:!1})),workspaceCompleted:t=>e({lastWorkspaceId:t}),reportReady:t=>e({reportId:t}),clear:()=>e(Y)}));function Xe(e,t){return{seatId:Z(e.seatId)??`seat`,persona:Z(e.persona)??`voter`,status:Z(e.status)??`valid`,optionId:Z(e.optionId),stance:Z(e.stance),rationale:Z(e.rationale),providerId:Z(e.providerId),model:Z(e.model),veto:$(e.veto),weight:Q(e.weight),durationMs:Q(e.durationMs),error:Z(e.error),at:Q(e.at)??t}}function Ze(e){if(e.phase===`voting`)return`voting · ${e.seats.length} seat${e.seats.length===1?``:`s`} in`;let t=e.configuredSeatCount??e.seats.length,n=[e.resolution??e.status??`resolved`,`${e.validVoteCount??e.seats.length}/${t} seats`,`${e.distinctTargetCount??0} distinct target${e.distinctTargetCount===1?``:`s`}`];return e.judgeUsed&&n.push(`judge used`),e.durationMs!==void 0&&n.push(`${Math.round(e.durationMs/100)/10}s`),e.totalTokens&&n.push(`${e.totalTokens} tok`),n.join(` · `)}function X(e,t,n,r){let i=e.findIndex(e=>e.requestId===t);if(i>=0){let t=e[i],n=[...e];return n[i]=r(t),n}return[r({requestId:t,phase:`voting`,startedAt:n,seats:[]}),...e].slice(0,50)}var Qe=n(e=>({panels:[],recordVote:t=>{let n=Z(t.requestId);if(!n)return;let r=Date.now();e(e=>({panels:X(e.panels,n,r,e=>{let n=Z(t.seatId)??`seat`,i=Xe(t,r);return e.seats.some(e=>e.seatId===n)?{...e,seats:e.seats.map(e=>e.seatId===n?i:e)}:e.phase===`resolved`?{requestId:e.requestId,phase:`voting`,startedAt:r,seats:[i],question:e.question}:{...e,seats:[...e.seats,i]}})}))},recordResolution:t=>{let n=Z(t.requestId);if(!n)return;let r=Date.now(),i=t.usage;e(e=>({panels:X(e.panels,n,r,e=>({...e,phase:`resolved`,resolvedAt:Q(t.at)??r,status:Z(t.status),resolution:Z(t.resolution),optionId:Z(t.optionId),reason:Z(t.reason),configuredSeatCount:Q(t.configuredSeatCount),validVoteCount:Q(t.validVoteCount),distinctTargetCount:Q(t.distinctTargetCount),judgeUsed:$(t.judgeUsed),totalTokens:Q(i?.totalTokens),durationMs:Q(i?.durationMs),warnings:Array.isArray(t.warnings)?t.warnings.filter(e=>typeof e==`string`):void 0}))}))},noteQuestion:(t,n)=>{let r=n.trim();!t||!r||e(e=>{let n=e.panels.findIndex(e=>e.requestId===t);if(n<0)return e;let i=e.panels[n];if(i.question===r)return e;let a=[...e.panels];return a[n]={...i,question:r},{panels:a}})},clear:()=>e({panels:[]})}));function Z(e){return typeof e==`string`&&e.trim()?e:void 0}function Q(e){return typeof e==`number`&&Number.isFinite(e)?e:void 0}function $(e){return typeof e==`boolean`?e:void 0}var $e=n()(e=>({worktrees:[],baseBranch:``,activity:[],orphans:[],canClean:!1,cleanResult:null,mergeResult:null,diffByDir:{},setSnapshot:(t,n)=>e({worktrees:t,baseBranch:n}),pushEvent:t=>e(e=>({activity:[...e.activity,t].slice(-40)})),setOrphans:(t,n,r)=>e({orphans:t,canClean:n,cleanBlockedReason:r}),setCleanResult:t=>e({cleanResult:t}),setMergeResult:t=>e({mergeResult:t}),setDiff:(t,n)=>e(e=>({diffByDir:{...e.diffByDir,[t]:n}}))}));export{T as A,s as B,ye as C,S as D,ve as E,y as F,u as G,d as H,oe as I,ae as L,ue as M,le as N,me as O,v as P,f as R,O as S,be as T,l as U,o as V,c as W,Oe as _,J as a,Ce as b,We as c,Be as d,Ve as f,ke as g,L as h,Ye as i,C as j,w as k,Ue as l,je as m,Ze as n,Ke as o,G as p,Qe as r,Ge as s,$e as t,He as u,Te as v,xe as w,Se as x,we as y,a as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={saved:`Session enregistrée`,loaded:`Session chargée`,deleted:`Session supprimée`},t={generic:`Une erreur est survenue.`,connectionLost:`Connexion perdue. Reconnexion…`,reconnected:`Reconnecté.`},n={session:e,error:t};export{n as default,t as error,e as session};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={saved:`Sesión guardada`,loaded:`Sesión cargada`,deleted:`Sesión eliminada`},t={generic:`Algo salió mal.`,connectionLost:`Conexión perdida. Reconectando…`,reconnected:`Reconectado.`},n={session:e,error:t};export{n as default,t as error,e as session};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={saved:`Sitzung gespeichert`,loaded:`Sitzung geladen`,deleted:`Sitzung gelöscht`},t={generic:`Etwas ist schiefgelaufen.`,connectionLost:`Verbindung verloren. Verbindung wird wiederhergestellt…`,reconnected:`Verbindung wiederhergestellt.`},n={session:e,error:t};export{n as default,t as error,e as session};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={saved:`Oturum kaydedildi`,loaded:`Oturum yüklendi`,deleted:`Oturum silindi`},t={generic:`Bir şeyler ters gitti.`,connectionLost:`Bağlantı koptu. Yeniden bağlanıyor…`,reconnected:`Yeniden bağlandı.`},n={session:e,error:t};export{n as default,t as error,e as session};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-hePW80VL.js";var t=e({default:()=>i,error:()=>r,session:()=>n}),n={saved:`Session saved`,loaded:`Session loaded`,deleted:`Session deleted`},r={generic:`Something went wrong.`,connectionLost:`Connection lost. Reconnecting…`,reconnected:`Reconnected.`},i={session:n,error:r};export{t as n,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={saved:`Sessione salvata`,loaded:`Sessione caricata`,deleted:`Sessione eliminata`},t={generic:`Qualcosa è andato storto.`,connectionLost:`Connessione persa. Riconnessione…`,reconnected:`Riconnesso.`},n={session:e,error:t};export{n as default,t as error,e as session};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={saved:`Sessão salva`,loaded:`Sessão carregada`,deleted:`Sessão excluída`},t={generic:`Algo deu errado.`,connectionLost:`Conexão perdida. Reconectando…`,reconnected:`Reconectado.`},n={session:e,error:t};export{n as default,t as error,e as session};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ra as e,za as t}from"./vendor-DZ9_OO6N.js";var n=2048,r=2097152,i=new Set([`image/png`,`image/jpeg`,`image/webp`,`image/gif`]),a=class extends Error{reason;constructor(e,t){super(e),this.reason=t,this.name=`ImageAttachmentError`}};function o(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}function s(e){let t=e.indexOf(`,`),n=t>=0?e.length-t-1:e.length;return Math.floor(n*3/4)}function c(e){return/^data:([^;,]+)/.exec(e)?.[1]??`image/png`}async function l(e){try{return await createImageBitmap(e)}catch{let t=URL.createObjectURL(e);try{return await new Promise((e,n)=>{let r=new Image;r.onload=()=>e(r),r.onerror=()=>n(Error(`image decode failed`)),r.src=t})}finally{URL.revokeObjectURL(t)}}}function u(e,t,n,r,i){let o=document.createElement(`canvas`);o.width=t,o.height=n;let s=o.getContext(`2d`);if(!s)throw new a(`canvas 2d context unavailable`,`decode_failed`);s.drawImage(e,0,0,t,n);let c=o.toDataURL(`image/webp`,i);return c.startsWith(`data:image/webp`)?c:r?o.toDataURL(`image/png`):o.toDataURL(`image/jpeg`,i)}var d=0;function f(){return d+=1,`img_${Date.now()}_${d}`}async function p(e){let t=i.has(e.type),d;try{d=await l(e)}catch{throw new a(`Could not decode image "${e.name}"`,`decode_failed`)}let p=d.width,m=d.height,h=Math.max(p,m);if(!(!t||h>n||e.size>r)){let t=await o(e);return{id:f(),dataUrl:t,mediaType:e.type,bytes:s(t),name:e.name||void 0,width:p,height:m}}let g=e.type!==`image/jpeg`,_=Math.min(1,n/h),v=.85,y=u(d,Math.max(1,Math.round(p*_)),Math.max(1,Math.round(m*_)),g,v);s(y)>4194304&&(_=Math.min(_,1280/h),v=.7,y=u(d,Math.max(1,Math.round(p*_)),Math.max(1,Math.round(m*_)),g,v)),`close`in d&&d.close();let b=s(y);if(b>4194304)throw new a(`Image "${e.name}" is too large after compression`,`too_large`);return{id:f(),dataUrl:y,mediaType:c(y),bytes:b,name:e.name||void 0,width:Math.max(1,Math.round(p*_)),height:Math.max(1,Math.round(m*_))}}function m(e){return e.map(e=>{let t=e.dataUrl.indexOf(`,`);return{data:t>=0?e.dataUrl.slice(t+1):e.dataUrl,mediaType:e.mediaType,...e.name?{name:e.name}:{}}})}var h=[`chat`,`agents`,`files`,`changes`,`mailbox`,`skills`,`design`,`worktrees`,`officemap`];function g(e){return h.includes(e)?e:e===`context`||e===`history`||e===`sessions`||e===`projects`?`chat`:e===`officemap`?`officemap`:`chat`}var _=`chat.settings.memory.roster.context.goal.kanban.sddhub.files.changes.sessions.session-inspect.setup.skill.officemap.mailbox.debug.design-gallery.refresh-debug.analytics.codemap.techstack.chronicle.intake.deadcode.prompts`.split(`.`);function v(e){return _.includes(e)?e:`chat`}var y=[`goal`,`goal-state`,`fleet`,`work`,`worktrees`,`collab`];function b(e){return e==null||!y.includes(e)?null:e}var x=[`general`,`provider`,`connection`,`agent`,`execution`,`fallbacks`,`routing`,`fleet`,`integrations`,`chimera`,`context`,`logs`,`security`,`display`];function S(e){return x.includes(e)?e:`general`}function C(){if(typeof window>`u`)return!1;if(window.wrongstackDesktopHost)return!0;try{return new URLSearchParams(window.location.search).get(`shell`)===`desktop`}catch{return!1}}function w(e={}){return{currentView:`chat`,activeActivity:`chat`,sidebarOpen:e.sidebarOpen??!1,dockSection:null,dockCustomizeOpen:!1,fleetMonitorOpen:!1,agentsMonitorOpen:!1,processMonitorOpen:!1,queuePanelOpen:!1,cronJobsOpen:!1,sideContextBreakdownOpen:!1,inspectorOpen:!1,inspectorTab:`fleet`,inspectorFocusedAgentId:null,subagentChatFocusId:null,terminalOpen:!1,paletteOpen:!1,shortcutsOpen:!1,searchOpen:!1,searchQuery:``,searchActiveMessageId:null,modelSwitcherOpen:!1,promptLibraryOpen:!1,selectedMailMessage:null,refinePanel:null}}var T=t()(e(e=>({sidebarOpen:!0,activeActivity:`chat`,settingsOpen:!1,currentView:`chat`,showConfirmDialog:!1,confirmInfo:null,paletteOpen:!1,shortcutsOpen:!1,searchOpen:!1,searchQuery:``,searchActiveMessageId:null,scrollTarget:null,promptHistory:[],sidebarWidth:304,pinnedIds:[],compactMode:!1,modelSwitcherOpen:!1,favoriteSessionIds:[],sessionNicknames:{},fileExplorerWidth:220,refineEnabled:!0,refinePanel:null,promptLibraryOpen:!1,promptInsertRequest:null,dockSection:null,workDashboardTab:`todos`,hiddenChips:[],dockCustomizeOpen:!1,fleetMonitorOpen:!1,agentsMonitorOpen:!1,inspectorOpen:!1,inspectorTab:`fleet`,inspectorFocusedAgentId:null,subagentChatFocusId:null,processMonitorOpen:!1,queuePanelOpen:!1,cronJobsOpen:!1,inspectSessionId:null,terminalOpen:!1,terminalCreateNonce:0,settingsActiveTab:`general`,scrollPositions:{},draftInput:``,draftImages:[],sideContextBreakdownOpen:!1,selectedMailMessage:null,skillsState:{selectedSkill:null,navHistory:[],historyIndex:-1,detailOpen:!1,knownRefs:{},updateAvailableCount:0},selectActivity:t=>e({activeActivity:t}),toggleSidebar:()=>e(e=>({sidebarOpen:!e.sidebarOpen})),setSidebarOpen:t=>e({sidebarOpen:t}),setSettingsOpen:t=>e({settingsOpen:t}),setCurrentView:t=>e({currentView:v(t)}),showConfirm:t=>e({showConfirmDialog:!0,confirmInfo:t}),hideConfirm:()=>e({showConfirmDialog:!1,confirmInfo:null}),setPaletteOpen:t=>e({paletteOpen:t}),setShortcutsOpen:t=>e({shortcutsOpen:t}),setSearchOpen:t=>e({searchOpen:t,searchQuery:``,searchActiveMessageId:null}),setSearchQuery:t=>e({searchQuery:t}),setSearchActiveMessageId:t=>e({searchActiveMessageId:t}),requestScrollToMessage:t=>e(e=>({scrollTarget:{id:t,nonce:(e.scrollTarget?.nonce??0)+1}})),pushPrompt:t=>e(e=>{let n=t.trim();return n?{promptHistory:[n,...e.promptHistory.filter(e=>e!==n)].slice(0,50)}:e}),setSidebarWidth:t=>e({sidebarWidth:Math.max(240,Math.min(560,Math.round(t)))}),togglePin:t=>e(e=>({pinnedIds:e.pinnedIds.includes(t)?e.pinnedIds.filter(e=>e!==t):[...e.pinnedIds,t]})),unpinAll:()=>e({pinnedIds:[]}),toggleCompactMode:()=>e(e=>({compactMode:!e.compactMode})),setModelSwitcherOpen:t=>e({modelSwitcherOpen:t}),toggleFavoriteSession:t=>e(e=>({favoriteSessionIds:e.favoriteSessionIds.includes(t)?e.favoriteSessionIds.filter(e=>e!==t):[...e.favoriteSessionIds,t]})),setSessionNickname:(t,n)=>e(e=>{let r=n.trim(),i={...e.sessionNicknames};return r?i[t]=r:delete i[t],{sessionNicknames:i}}),setFileExplorerWidth:t=>e({fileExplorerWidth:Math.max(160,Math.min(400,Math.round(t)))}),toggleRefineEnabled:()=>e(e=>({refineEnabled:!e.refineEnabled})),setRefinePanel:t=>e({refinePanel:t}),setPromptLibraryOpen:t=>e({promptLibraryOpen:t}),requestPromptInsert:t=>e({promptInsertRequest:t,promptLibraryOpen:!1}),clearPromptInsert:()=>e({promptInsertRequest:null}),setDockSection:t=>e({dockSection:t,...t?{inspectorOpen:!1}:{}}),setWorkDashboardTab:t=>e({workDashboardTab:t}),toggleDockSection:t=>e(e=>{let n=e.dockSection===t?null:t;return{dockSection:n,...n?{inspectorOpen:!1}:{}}}),toggleChipHidden:t=>e(e=>{let n=e.hiddenChips.includes(t);return{hiddenChips:n?e.hiddenChips.filter(e=>e!==t):[...e.hiddenChips,t],dockSection:!n&&e.dockSection===t?null:e.dockSection}}),showDockChip:t=>e(e=>({hiddenChips:e.hiddenChips.filter(e=>e!==t)})),setDockCustomizeOpen:t=>e({dockCustomizeOpen:t}),setFleetMonitorOpen:t=>e(e=>({fleetMonitorOpen:!1,inspectorOpen:t?!0:e.inspectorTab!==`fleet`&&e.inspectorOpen,inspectorTab:t?`fleet`:e.inspectorTab,...t?{dockSection:null}:{}})),setAgentsMonitorOpen:t=>e(e=>({agentsMonitorOpen:!1,inspectorOpen:t?!0:e.inspectorTab!==`agents`&&e.inspectorOpen,inspectorTab:t?`agents`:e.inspectorTab,...t?{dockSection:null}:{}})),setInspectorOpen:t=>e({inspectorOpen:t,...t?{dockSection:null}:{}}),setInspectorTab:t=>e({inspectorTab:t}),setInspectorFocusedAgentId:t=>e({inspectorFocusedAgentId:t}),setSubagentChatFocus:t=>e({subagentChatFocusId:t}),toggleInspector:()=>e(e=>({inspectorOpen:!e.inspectorOpen,...e.inspectorOpen?{}:{dockSection:null}})),setProcessMonitorOpen:t=>e({processMonitorOpen:t}),setQueuePanelOpen:t=>e({queuePanelOpen:t}),setCronJobsOpen:t=>e({cronJobsOpen:t}),setInspectSession:t=>e({inspectSessionId:t,currentView:`session-inspect`}),clearInspectSession:()=>e({inspectSessionId:null,currentView:`chat`}),setTerminalOpen:t=>e({terminalOpen:t}),toggleTerminal:()=>e(e=>({terminalOpen:!e.terminalOpen})),requestTerminalCreate:()=>e(e=>({terminalCreateNonce:e.terminalCreateNonce+1})),setSettingsActiveTab:t=>e({settingsActiveTab:S(t)}),setScrollPosition:(t,n)=>e(e=>({scrollPositions:{...e.scrollPositions,[t]:n}})),setDraftInput:t=>e({draftInput:t}),setDraftImages:t=>e({draftImages:t.slice(-8)}),setSideContextBreakdownOpen:t=>e({sideContextBreakdownOpen:t}),setSkillsState:t=>e({skillsState:t}),setSelectedMailMessage:t=>e({selectedMailMessage:t})}),{name:`wrongstack-ui`,version:6,migrate:(e,t)=>{let n=e??{};return n.activeActivity=g(n.activeActivity),typeof n.sidebarWidth==`number`&&(n.sidebarWidth=Math.max(240,Math.min(560,n.sidebarWidth))),t<2&&(delete n.fleetDrawerOpen,delete n.agentsDrawerOpen),`currentView`in n&&(n.currentView=v(n.currentView)),`dockSection`in n&&(n.dockSection=b(n.dockSection)),`settingsActiveTab`in n&&(n.settingsActiveTab=S(n.settingsActiveTab)),t<6&&delete n.draftInput,n},merge:(e,t)=>{let n={...t,...e??{}};return n.activeActivity=g(n.activeActivity),n.currentView=v(n.currentView),n.dockSection=b(n.dockSection),n.settingsActiveTab=S(n.settingsActiveTab),n.sidebarWidth=Math.max(240,Math.min(560,n.sidebarWidth)),C()?{...n,...w({sidebarOpen:!1})}:n},partialize:e=>({sidebarOpen:e.sidebarOpen,activeActivity:e.activeActivity,sidebarWidth:e.sidebarWidth,promptHistory:e.promptHistory,pinnedIds:e.pinnedIds,compactMode:e.compactMode,favoriteSessionIds:e.favoriteSessionIds,sessionNicknames:e.sessionNicknames,fileExplorerWidth:e.fileExplorerWidth,refineEnabled:e.refineEnabled,hiddenChips:e.hiddenChips,workDashboardTab:e.workDashboardTab,inspectorOpen:e.inspectorOpen,inspectorTab:e.inspectorTab,skillsState:e.skillsState,currentView:e.currentView,dockSection:e.dockSection,settingsActiveTab:e.settingsActiveTab,scrollPositions:e.scrollPositions})}));function E(e={}){T.setState(w(e))}export{m as a,p as i,T as n,a as r,E as t};
|