@wrongstack/webui 0.284.1 → 0.286.0

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.
Files changed (572) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/App.d.ts.map +1 -0
  3. package/dist/assets/{AnalyticsDashboard-BBoAzpgL.js → AnalyticsDashboard-BDpQqHtX.js} +1 -1
  4. package/dist/assets/AutoPhaseView-BL_RSAcj.js +1 -0
  5. package/dist/assets/{ChangesView-4X9cQM4r.js → ChangesView-Dqfa8YFA.js} +1 -1
  6. package/dist/assets/{CodeEditor-C8hiA7LI.js → CodeEditor-De8voGEi.js} +1 -1
  7. package/dist/assets/DebugDashboard-D0C8_NWJ.js +1 -0
  8. package/dist/assets/{DesignGalleryView-CzF24Ppi.js → DesignGalleryView-Dwn2JYAL.js} +1 -1
  9. package/dist/assets/KanbanView-BUugea4e.js +1 -0
  10. package/dist/assets/MailboxDetailView-DCjSrQNI.js +1 -0
  11. package/dist/assets/OfficeMapPanel-Bqqys7xo.js +4 -0
  12. package/dist/assets/{ProcessMonitor-pm8Ih7-q.js → ProcessMonitor-CS1LSf39.js} +1 -1
  13. package/dist/assets/{QueuePanel-Lv54tvvk.js → QueuePanel-Cs7k3M-4.js} +1 -1
  14. package/dist/assets/{RefreshDebugView-0VzJJqhZ.js → RefreshDebugView-Di0lyXKv.js} +1 -1
  15. package/dist/assets/SddBoardView-Dv9R7tBM.js +2 -0
  16. package/dist/assets/SddFlowGraph-BGPIWq7W.js +1 -0
  17. package/dist/assets/SddWizard-BWaJb5ZH.js +1 -0
  18. package/dist/assets/SessionsDashboard-B1u7rjTK.js +1 -0
  19. package/dist/assets/SetupScreen-nZMY7jM6.js +1 -0
  20. package/dist/assets/SkillDetailView-CQevybc9.js +3 -0
  21. package/dist/assets/SpecsView-Xw9k8Llw.js +1 -0
  22. package/dist/assets/TerminalPanel-CPuqFiXC.js +1 -0
  23. package/dist/assets/{activity-CcEdxJjx.js → activity-Bt5JliZ2.js} +2 -2
  24. package/dist/assets/activity-DVbfo6OS.js +5 -0
  25. package/dist/assets/activity-DkmpcH1_.js +5 -0
  26. package/dist/assets/{activity-T9kySYDT.js → activity-HUfcj2wp.js} +3 -3
  27. package/dist/assets/activity-lQ47COGt.js +5 -0
  28. package/dist/assets/activity-mgahm8RV.js +5 -0
  29. package/dist/assets/activity-naMKylQi.js +5 -0
  30. package/dist/assets/chat-BNf8yQ-i.js +1 -0
  31. package/dist/assets/chat-BwmYDkLr.js +1 -0
  32. package/dist/assets/chat-C_9_T_Py.js +1 -0
  33. package/dist/assets/chat-CmZiF8Sm.js +1 -0
  34. package/dist/assets/chat-DW62ursN.js +1 -0
  35. package/dist/assets/chat-DfjGjYKF.js +1 -0
  36. package/dist/assets/chat-eXJFi4bY.js +1 -0
  37. package/dist/assets/chat-store-Dy1m3oen.js +5 -0
  38. package/dist/assets/commandPalette-BcMV6x3_.js +1 -0
  39. package/dist/assets/commandPalette-C4o2rUOp.js +1 -0
  40. package/dist/assets/commandPalette-C5U6qfth.js +1 -0
  41. package/dist/assets/commandPalette-CBJfByB7.js +1 -0
  42. package/dist/assets/commandPalette-CrYfIhnW.js +1 -0
  43. package/dist/assets/commandPalette-Dgd8HfNm.js +1 -0
  44. package/dist/assets/common-D8_r1x8x.js +1 -0
  45. package/dist/assets/common-suUxW9sA.js +1 -0
  46. package/dist/assets/{i18n-CkkVJCs9.js → i18n-ClFSbktB.js} +2 -2
  47. package/dist/assets/index-DGwt4pL3.js +157 -0
  48. package/dist/assets/index-pw_NYdQ9.css +1 -0
  49. package/dist/assets/local-prefs-DUm4LFyu.js +1 -0
  50. package/dist/assets/markdown-BRAejDWd.js +44 -0
  51. package/dist/assets/{monaco-XnLmrAXJ.js → monaco-MjnRih9i.js} +1 -1
  52. package/dist/assets/{monaco-theme-Lsd14tM-.js → monaco-theme-DhdHiZEb.js} +1 -1
  53. package/dist/assets/{session-store-P-JnaPPK.js → session-store-BOmBeF9r.js} +1 -1
  54. package/dist/assets/settings-BehzuKKh.js +1 -0
  55. package/dist/assets/settings-CO8sA1-8.js +1 -0
  56. package/dist/assets/settings-CSb_3QO0.js +1 -0
  57. package/dist/assets/settings-CVkZ15Hv.js +1 -0
  58. package/dist/assets/settings-DRDu_6WL.js +1 -0
  59. package/dist/assets/settings-Dj8eonZG.js +1 -0
  60. package/dist/assets/settings-DkZAyCk6.js +1 -0
  61. package/dist/assets/ui-store-LCpXBvQT.js +1 -0
  62. package/dist/assets/utils-Bl7Yr7Bw.js +1 -0
  63. package/dist/assets/{vendor-CyLvG8N0.js → vendor-C9iFsXuW.js} +28 -28
  64. package/dist/assets/ws-client-WVS5hdJj.js +1 -0
  65. package/dist/assets/{xyflow-oYDGUYW6.js → xyflow-YzHYNDhB.js} +3 -3
  66. package/dist/components/AgentTranscript.d.ts +13 -0
  67. package/dist/components/AgentTranscript.d.ts.map +1 -0
  68. package/dist/components/AgentsMonitor.d.ts +26 -0
  69. package/dist/components/AgentsMonitor.d.ts.map +1 -0
  70. package/dist/components/AgentsPage/format.d.ts +23 -0
  71. package/dist/components/AgentsPage/format.d.ts.map +1 -0
  72. package/dist/components/AgentsPage.d.ts +49 -0
  73. package/dist/components/AgentsPage.d.ts.map +1 -0
  74. package/dist/components/AnalyticsDashboard.d.ts +2 -0
  75. package/dist/components/AnalyticsDashboard.d.ts.map +1 -0
  76. package/dist/components/AutoPhaseView.d.ts +15 -0
  77. package/dist/components/AutoPhaseView.d.ts.map +1 -0
  78. package/dist/components/AutonomyPicker.d.ts +21 -0
  79. package/dist/components/AutonomyPicker.d.ts.map +1 -0
  80. package/dist/components/BoardView.d.ts +14 -0
  81. package/dist/components/BoardView.d.ts.map +1 -0
  82. package/dist/components/ChangesView.d.ts +10 -0
  83. package/dist/components/ChangesView.d.ts.map +1 -0
  84. package/dist/components/ChatInput/code-detect.d.ts +20 -0
  85. package/dist/components/ChatInput/code-detect.d.ts.map +1 -0
  86. package/dist/components/ChatInput/file-mention-picker.d.ts +15 -0
  87. package/dist/components/ChatInput/file-mention-picker.d.ts.map +1 -0
  88. package/dist/components/ChatInput/image-attachments.d.ts +58 -0
  89. package/dist/components/ChatInput/image-attachments.d.ts.map +1 -0
  90. package/dist/components/ChatInput/queued-messages.d.ts +9 -0
  91. package/dist/components/ChatInput/queued-messages.d.ts.map +1 -0
  92. package/dist/components/ChatInput/slash-commands.d.ts +17 -0
  93. package/dist/components/ChatInput/slash-commands.d.ts.map +1 -0
  94. package/dist/components/ChatInput/slash-routing.d.ts +87 -0
  95. package/dist/components/ChatInput/slash-routing.d.ts.map +1 -0
  96. package/dist/components/ChatInput/use-paste-drop.d.ts +39 -0
  97. package/dist/components/ChatInput/use-paste-drop.d.ts.map +1 -0
  98. package/dist/components/ChatInput.d.ts +5 -0
  99. package/dist/components/ChatInput.d.ts.map +1 -0
  100. package/dist/components/ChatView/ThinkingBubble.d.ts +8 -0
  101. package/dist/components/ChatView/ThinkingBubble.d.ts.map +1 -0
  102. package/dist/components/ChatView/index.d.ts +2 -0
  103. package/dist/components/ChatView/index.d.ts.map +1 -0
  104. package/dist/components/ChatView/utils.d.ts +44 -0
  105. package/dist/components/ChatView/utils.d.ts.map +1 -0
  106. package/dist/components/ChatView.d.ts +2 -0
  107. package/dist/components/ChatView.d.ts.map +1 -0
  108. package/dist/components/CheckpointTimeline.d.ts +7 -0
  109. package/dist/components/CheckpointTimeline.d.ts.map +1 -0
  110. package/dist/components/CodeEditor.d.ts +3 -0
  111. package/dist/components/CodeEditor.d.ts.map +1 -0
  112. package/dist/components/CollabPanel.d.ts +28 -0
  113. package/dist/components/CollabPanel.d.ts.map +1 -0
  114. package/dist/components/CommandPalette/export-utils.d.ts +10 -0
  115. package/dist/components/CommandPalette/export-utils.d.ts.map +1 -0
  116. package/dist/components/CommandPalette/index.d.ts +2 -0
  117. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  118. package/dist/components/CommandPalette.d.ts +3 -0
  119. package/dist/components/CommandPalette.d.ts.map +1 -0
  120. package/dist/components/ConfirmDialog.d.ts +2 -0
  121. package/dist/components/ConfirmDialog.d.ts.map +1 -0
  122. package/dist/components/ConfirmModal.d.ts +59 -0
  123. package/dist/components/ConfirmModal.d.ts.map +1 -0
  124. package/dist/components/ConnectionBanner.d.ts +13 -0
  125. package/dist/components/ConnectionBanner.d.ts.map +1 -0
  126. package/dist/components/ContextBar.d.ts +35 -0
  127. package/dist/components/ContextBar.d.ts.map +1 -0
  128. package/dist/components/ContextBreakdownModal.d.ts +7 -0
  129. package/dist/components/ContextBreakdownModal.d.ts.map +1 -0
  130. package/dist/components/ContextModePicker.d.ts +2 -0
  131. package/dist/components/ContextModePicker.d.ts.map +1 -0
  132. package/dist/components/CostChip.d.ts +12 -0
  133. package/dist/components/CostChip.d.ts.map +1 -0
  134. package/dist/components/DebugDashboard.d.ts +2 -0
  135. package/dist/components/DebugDashboard.d.ts.map +1 -0
  136. package/dist/components/DependencyGraph.d.ts +13 -0
  137. package/dist/components/DependencyGraph.d.ts.map +1 -0
  138. package/dist/components/DesignGalleryView.d.ts +14 -0
  139. package/dist/components/DesignGalleryView.d.ts.map +1 -0
  140. package/dist/components/DiffView.d.ts +33 -0
  141. package/dist/components/DiffView.d.ts.map +1 -0
  142. package/dist/components/ErrorBoundary.d.ts +40 -0
  143. package/dist/components/ErrorBoundary.d.ts.map +1 -0
  144. package/dist/components/FallbackEditor.d.ts +15 -0
  145. package/dist/components/FallbackEditor.d.ts.map +1 -0
  146. package/dist/components/FileExplorer.d.ts +2 -0
  147. package/dist/components/FileExplorer.d.ts.map +1 -0
  148. package/dist/components/FilePicker.d.ts +16 -0
  149. package/dist/components/FilePicker.d.ts.map +1 -0
  150. package/dist/components/FileReferenceChip.d.ts +8 -0
  151. package/dist/components/FileReferenceChip.d.ts.map +1 -0
  152. package/dist/components/FleetMonitor.d.ts +27 -0
  153. package/dist/components/FleetMonitor.d.ts.map +1 -0
  154. package/dist/components/FleetPanel.d.ts +17 -0
  155. package/dist/components/FleetPanel.d.ts.map +1 -0
  156. package/dist/components/GoalPanel.d.ts +7 -0
  157. package/dist/components/GoalPanel.d.ts.map +1 -0
  158. package/dist/components/InspectorPanel.d.ts +14 -0
  159. package/dist/components/InspectorPanel.d.ts.map +1 -0
  160. package/dist/components/KanbanView.d.ts +4 -0
  161. package/dist/components/KanbanView.d.ts.map +1 -0
  162. package/dist/components/MailboxDetailView.d.ts +8 -0
  163. package/dist/components/MailboxDetailView.d.ts.map +1 -0
  164. package/dist/components/MailboxPanel.d.ts +4 -0
  165. package/dist/components/MailboxPanel.d.ts.map +1 -0
  166. package/dist/components/MessageBubble/AttachmentGallery.d.ts +12 -0
  167. package/dist/components/MessageBubble/AttachmentGallery.d.ts.map +1 -0
  168. package/dist/components/MessageBubble/CopyButton.d.ts +6 -0
  169. package/dist/components/MessageBubble/CopyButton.d.ts.map +1 -0
  170. package/dist/components/MessageBubble/ErrorBody.d.ts +4 -0
  171. package/dist/components/MessageBubble/ErrorBody.d.ts.map +1 -0
  172. package/dist/components/MessageBubble/LazyMarkdown.d.ts +27 -0
  173. package/dist/components/MessageBubble/LazyMarkdown.d.ts.map +1 -0
  174. package/dist/components/MessageBubble/StreamingMarkdown.d.ts +24 -0
  175. package/dist/components/MessageBubble/StreamingMarkdown.d.ts.map +1 -0
  176. package/dist/components/MessageBubble/ToolInputView.d.ts +4 -0
  177. package/dist/components/MessageBubble/ToolInputView.d.ts.map +1 -0
  178. package/dist/components/MessageBubble/index.d.ts +9 -0
  179. package/dist/components/MessageBubble/index.d.ts.map +1 -0
  180. package/dist/components/MessageBubble/utils.d.ts +17 -0
  181. package/dist/components/MessageBubble/utils.d.ts.map +1 -0
  182. package/dist/components/MessageBubble.d.ts +2 -0
  183. package/dist/components/MessageBubble.d.ts.map +1 -0
  184. package/dist/components/ModePicker.d.ts +9 -0
  185. package/dist/components/ModePicker.d.ts.map +1 -0
  186. package/dist/components/ModelPickDialog.d.ts +22 -0
  187. package/dist/components/ModelPickDialog.d.ts.map +1 -0
  188. package/dist/components/ModelPicker.d.ts +18 -0
  189. package/dist/components/ModelPicker.d.ts.map +1 -0
  190. package/dist/components/MonacoDiffView.d.ts +13 -0
  191. package/dist/components/MonacoDiffView.d.ts.map +1 -0
  192. package/dist/components/NextStepsBar.d.ts +39 -0
  193. package/dist/components/NextStepsBar.d.ts.map +1 -0
  194. package/dist/components/OfficeMapCanvas/resolve.d.ts +48 -0
  195. package/dist/components/OfficeMapCanvas/resolve.d.ts.map +1 -0
  196. package/dist/components/OfficeMapCanvas/utils.d.ts +57 -0
  197. package/dist/components/OfficeMapCanvas/utils.d.ts.map +1 -0
  198. package/dist/components/OfficeMapCanvas.d.ts +10 -0
  199. package/dist/components/OfficeMapCanvas.d.ts.map +1 -0
  200. package/dist/components/OfficeMapPanel.d.ts +6 -0
  201. package/dist/components/OfficeMapPanel.d.ts.map +1 -0
  202. package/dist/components/OfficeMapSettingsPanel.d.ts +10 -0
  203. package/dist/components/OfficeMapSettingsPanel.d.ts.map +1 -0
  204. package/dist/components/PhasePanel.d.ts +42 -0
  205. package/dist/components/PhasePanel.d.ts.map +1 -0
  206. package/dist/components/PlanPanel.d.ts +14 -0
  207. package/dist/components/PlanPanel.d.ts.map +1 -0
  208. package/dist/components/ProcessMonitor.d.ts +7 -0
  209. package/dist/components/ProcessMonitor.d.ts.map +1 -0
  210. package/dist/components/PromptLibraryModal.d.ts +7 -0
  211. package/dist/components/PromptLibraryModal.d.ts.map +1 -0
  212. package/dist/components/QueuePanel.d.ts +11 -0
  213. package/dist/components/QueuePanel.d.ts.map +1 -0
  214. package/dist/components/QuickModelSwitcher.d.ts +10 -0
  215. package/dist/components/QuickModelSwitcher.d.ts.map +1 -0
  216. package/dist/components/QuickModelSwitcher.filter.d.ts +33 -0
  217. package/dist/components/QuickModelSwitcher.filter.d.ts.map +1 -0
  218. package/dist/components/RefinePanel.d.ts +24 -0
  219. package/dist/components/RefinePanel.d.ts.map +1 -0
  220. package/dist/components/RefreshDebugView.d.ts +32 -0
  221. package/dist/components/RefreshDebugView.d.ts.map +1 -0
  222. package/dist/components/SddActivityFeed.d.ts +11 -0
  223. package/dist/components/SddActivityFeed.d.ts.map +1 -0
  224. package/dist/components/SddBoardView.d.ts +9 -0
  225. package/dist/components/SddBoardView.d.ts.map +1 -0
  226. package/dist/components/SddDestroyDialog.d.ts +16 -0
  227. package/dist/components/SddDestroyDialog.d.ts.map +1 -0
  228. package/dist/components/SddFlowGraph.d.ts +23 -0
  229. package/dist/components/SddFlowGraph.d.ts.map +1 -0
  230. package/dist/components/SddKanbanView.d.ts +12 -0
  231. package/dist/components/SddKanbanView.d.ts.map +1 -0
  232. package/dist/components/SddTaskDrawer.d.ts +28 -0
  233. package/dist/components/SddTaskDrawer.d.ts.map +1 -0
  234. package/dist/components/SddWizard.d.ts +10 -0
  235. package/dist/components/SddWizard.d.ts.map +1 -0
  236. package/dist/components/SearchOverlay.d.ts +12 -0
  237. package/dist/components/SearchOverlay.d.ts.map +1 -0
  238. package/dist/components/SendButton.d.ts +2 -0
  239. package/dist/components/SendButton.d.ts.map +1 -0
  240. package/dist/components/SessionWatchPanel.d.ts +17 -0
  241. package/dist/components/SessionWatchPanel.d.ts.map +1 -0
  242. package/dist/components/SessionsDashboard.d.ts +3 -0
  243. package/dist/components/SessionsDashboard.d.ts.map +1 -0
  244. package/dist/components/SettingsPanel/BrainSection.d.ts +3 -0
  245. package/dist/components/SettingsPanel/BrainSection.d.ts.map +1 -0
  246. package/dist/components/SettingsPanel/ClearAllowlistDialog.d.ts +19 -0
  247. package/dist/components/SettingsPanel/ClearAllowlistDialog.d.ts.map +1 -0
  248. package/dist/components/SettingsPanel/MCPSection.d.ts +48 -0
  249. package/dist/components/SettingsPanel/MCPSection.d.ts.map +1 -0
  250. package/dist/components/SettingsPanel/ModelSection.d.ts +31 -0
  251. package/dist/components/SettingsPanel/ModelSection.d.ts.map +1 -0
  252. package/dist/components/SettingsPanel/OAuthLoginSection.d.ts +14 -0
  253. package/dist/components/SettingsPanel/OAuthLoginSection.d.ts.map +1 -0
  254. package/dist/components/SettingsPanel/PreferenceControls.d.ts +23 -0
  255. package/dist/components/SettingsPanel/PreferenceControls.d.ts.map +1 -0
  256. package/dist/components/SettingsPanel/PreferenceToggle.d.ts +25 -0
  257. package/dist/components/SettingsPanel/PreferenceToggle.d.ts.map +1 -0
  258. package/dist/components/SettingsPanel/ProviderModelsPanel.d.ts +46 -0
  259. package/dist/components/SettingsPanel/ProviderModelsPanel.d.ts.map +1 -0
  260. package/dist/components/SettingsPanel/ProviderModelsPanel.filter.d.ts +110 -0
  261. package/dist/components/SettingsPanel/ProviderModelsPanel.filter.d.ts.map +1 -0
  262. package/dist/components/SettingsPanel/ProviderSection.d.ts +63 -0
  263. package/dist/components/SettingsPanel/ProviderSection.d.ts.map +1 -0
  264. package/dist/components/SettingsPanel/RoutingSection.d.ts +6 -0
  265. package/dist/components/SettingsPanel/RoutingSection.d.ts.map +1 -0
  266. package/dist/components/SettingsPanel/ShadowSection.d.ts +3 -0
  267. package/dist/components/SettingsPanel/ShadowSection.d.ts.map +1 -0
  268. package/dist/components/SettingsPanel/ToolsSection.d.ts +12 -0
  269. package/dist/components/SettingsPanel/ToolsSection.d.ts.map +1 -0
  270. package/dist/components/SettingsPanel/index.d.ts +2 -0
  271. package/dist/components/SettingsPanel/index.d.ts.map +1 -0
  272. package/dist/components/SettingsPanel/local-presets.d.ts +31 -0
  273. package/dist/components/SettingsPanel/local-presets.d.ts.map +1 -0
  274. package/dist/components/SettingsPanel/official-servers.d.ts +30 -0
  275. package/dist/components/SettingsPanel/official-servers.d.ts.map +1 -0
  276. package/dist/components/SettingsPanel/settings-panel-reducers.d.ts +40 -0
  277. package/dist/components/SettingsPanel/settings-panel-reducers.d.ts.map +1 -0
  278. package/dist/components/SettingsPanel/undo-send-decision.d.ts +42 -0
  279. package/dist/components/SettingsPanel/undo-send-decision.d.ts.map +1 -0
  280. package/dist/components/SettingsPanel.d.ts +3 -0
  281. package/dist/components/SettingsPanel.d.ts.map +1 -0
  282. package/dist/components/SetupScreen.d.ts +2 -0
  283. package/dist/components/SetupScreen.d.ts.map +1 -0
  284. package/dist/components/ShortcutsOverlay.d.ts +2 -0
  285. package/dist/components/ShortcutsOverlay.d.ts.map +1 -0
  286. package/dist/components/SideEffectTimeline.d.ts +11 -0
  287. package/dist/components/SideEffectTimeline.d.ts.map +1 -0
  288. package/dist/components/SidePanel/AgentsPanel.d.ts +8 -0
  289. package/dist/components/SidePanel/AgentsPanel.d.ts.map +1 -0
  290. package/dist/components/SidePanel/ChangesPanel.d.ts +8 -0
  291. package/dist/components/SidePanel/ChangesPanel.d.ts.map +1 -0
  292. package/dist/components/SidePanel/DesignStudioPanel.d.ts +12 -0
  293. package/dist/components/SidePanel/DesignStudioPanel.d.ts.map +1 -0
  294. package/dist/components/SidePanel/HistoryPanel.d.ts +7 -0
  295. package/dist/components/SidePanel/HistoryPanel.d.ts.map +1 -0
  296. package/dist/components/SidePanel/SessionList.d.ts +24 -0
  297. package/dist/components/SidePanel/SessionList.d.ts.map +1 -0
  298. package/dist/components/SidePanel/SessionPanel.d.ts +10 -0
  299. package/dist/components/SidePanel/SessionPanel.d.ts.map +1 -0
  300. package/dist/components/SidePanel/SkillsList.d.ts +8 -0
  301. package/dist/components/SidePanel/SkillsList.d.ts.map +1 -0
  302. package/dist/components/SidePanel/WorktreesPanel.d.ts +8 -0
  303. package/dist/components/SidePanel/WorktreesPanel.d.ts.map +1 -0
  304. package/dist/components/SidePanel/index.d.ts +11 -0
  305. package/dist/components/SidePanel/index.d.ts.map +1 -0
  306. package/dist/components/SkillDetailView.d.ts +8 -0
  307. package/dist/components/SkillDetailView.d.ts.map +1 -0
  308. package/dist/components/SpecsView.d.ts +9 -0
  309. package/dist/components/SpecsView.d.ts.map +1 -0
  310. package/dist/components/TaskBoard.d.ts +20 -0
  311. package/dist/components/TaskBoard.d.ts.map +1 -0
  312. package/dist/components/TaskCard.d.ts +43 -0
  313. package/dist/components/TaskCard.d.ts.map +1 -0
  314. package/dist/components/TasksPanel.d.ts +14 -0
  315. package/dist/components/TasksPanel.d.ts.map +1 -0
  316. package/dist/components/TerminalPanel.d.ts +12 -0
  317. package/dist/components/TerminalPanel.d.ts.map +1 -0
  318. package/dist/components/ThemeProvider.d.ts +15 -0
  319. package/dist/components/ThemeProvider.d.ts.map +1 -0
  320. package/dist/components/Toaster.d.ts +33 -0
  321. package/dist/components/Toaster.d.ts.map +1 -0
  322. package/dist/components/TodosPanel.d.ts +14 -0
  323. package/dist/components/TodosPanel.d.ts.map +1 -0
  324. package/dist/components/ToolGroup.d.ts +18 -0
  325. package/dist/components/ToolGroup.d.ts.map +1 -0
  326. package/dist/components/ToolResult.d.ts +33 -0
  327. package/dist/components/ToolResult.d.ts.map +1 -0
  328. package/dist/components/WatchMessageBubble.d.ts +30 -0
  329. package/dist/components/WatchMessageBubble.d.ts.map +1 -0
  330. package/dist/components/WelcomeScreen.d.ts +9 -0
  331. package/dist/components/WelcomeScreen.d.ts.map +1 -0
  332. package/dist/components/WorkDashboard.d.ts +11 -0
  333. package/dist/components/WorkDashboard.d.ts.map +1 -0
  334. package/dist/components/WorkspaceDock.d.ts +16 -0
  335. package/dist/components/WorkspaceDock.d.ts.map +1 -0
  336. package/dist/components/WorktreeGraph.d.ts +21 -0
  337. package/dist/components/WorktreeGraph.d.ts.map +1 -0
  338. package/dist/components/WorktreeLanes.d.ts +11 -0
  339. package/dist/components/WorktreeLanes.d.ts.map +1 -0
  340. package/dist/components/WorktreeOrphans.d.ts +9 -0
  341. package/dist/components/WorktreeOrphans.d.ts.map +1 -0
  342. package/dist/components/activity-bar/index.d.ts +14 -0
  343. package/dist/components/activity-bar/index.d.ts.map +1 -0
  344. package/dist/components/activity-bar/nav.d.ts +17 -0
  345. package/dist/components/activity-bar/nav.d.ts.map +1 -0
  346. package/dist/components/dashboard-primitives.d.ts +22 -0
  347. package/dist/components/dashboard-primitives.d.ts.map +1 -0
  348. package/dist/components/index.d.ts +32 -0
  349. package/dist/components/index.d.ts.map +1 -0
  350. package/dist/components/monaco-theme.d.ts +6 -0
  351. package/dist/components/monaco-theme.d.ts.map +1 -0
  352. package/dist/components/toaster-helpers.d.ts +34 -0
  353. package/dist/components/toaster-helpers.d.ts.map +1 -0
  354. package/dist/components/ui/badge.d.ts +10 -0
  355. package/dist/components/ui/badge.d.ts.map +1 -0
  356. package/dist/components/ui/button.d.ts +12 -0
  357. package/dist/components/ui/button.d.ts.map +1 -0
  358. package/dist/components/ui/concurrency-gauge.d.ts +18 -0
  359. package/dist/components/ui/concurrency-gauge.d.ts.map +1 -0
  360. package/dist/components/ui/dialog.d.ts +29 -0
  361. package/dist/components/ui/dialog.d.ts.map +1 -0
  362. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  363. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  364. package/dist/components/ui/event-timeline.d.ts +15 -0
  365. package/dist/components/ui/event-timeline.d.ts.map +1 -0
  366. package/dist/components/ui/index.d.ts +11 -0
  367. package/dist/components/ui/index.d.ts.map +1 -0
  368. package/dist/components/ui/input.d.ts +6 -0
  369. package/dist/components/ui/input.d.ts.map +1 -0
  370. package/dist/components/ui/scroll-area.d.ts +6 -0
  371. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  372. package/dist/components/ui/sheet.d.ts +32 -0
  373. package/dist/components/ui/sheet.d.ts.map +1 -0
  374. package/dist/components/ui/sparkline.d.ts +16 -0
  375. package/dist/components/ui/sparkline.d.ts.map +1 -0
  376. package/dist/components/ui/tabs.d.ts +8 -0
  377. package/dist/components/ui/tabs.d.ts.map +1 -0
  378. package/dist/hooks/index.d.ts +2 -0
  379. package/dist/hooks/index.d.ts.map +1 -0
  380. package/dist/hooks/use-ws-handlers.d.ts +24 -0
  381. package/dist/hooks/use-ws-handlers.d.ts.map +1 -0
  382. package/dist/hooks/useGitInfo.d.ts +4 -0
  383. package/dist/hooks/useGitInfo.d.ts.map +1 -0
  384. package/dist/hooks/useProviderModels.d.ts +15 -0
  385. package/dist/hooks/useProviderModels.d.ts.map +1 -0
  386. package/dist/hooks/useWebSocket.d.ts +85 -0
  387. package/dist/hooks/useWebSocket.d.ts.map +1 -0
  388. package/dist/hooks/ws-handlers/chat-handlers.d.ts +21 -0
  389. package/dist/hooks/ws-handlers/chat-handlers.d.ts.map +1 -0
  390. package/dist/hooks/ws-handlers/coordinator-handlers.d.ts +3 -0
  391. package/dist/hooks/ws-handlers/coordinator-handlers.d.ts.map +1 -0
  392. package/dist/hooks/ws-handlers/files-mailbox-handlers.d.ts +17 -0
  393. package/dist/hooks/ws-handlers/files-mailbox-handlers.d.ts.map +1 -0
  394. package/dist/hooks/ws-handlers/fleet-handlers.d.ts +13 -0
  395. package/dist/hooks/ws-handlers/fleet-handlers.d.ts.map +1 -0
  396. package/dist/hooks/ws-handlers/misc-handlers.d.ts +21 -0
  397. package/dist/hooks/ws-handlers/misc-handlers.d.ts.map +1 -0
  398. package/dist/hooks/ws-handlers/session-handlers.d.ts +34 -0
  399. package/dist/hooks/ws-handlers/session-handlers.d.ts.map +1 -0
  400. package/dist/hooks/ws-handlers.d.ts +24 -0
  401. package/dist/hooks/ws-handlers.d.ts.map +1 -0
  402. package/dist/i18n/index.d.ts +12 -0
  403. package/dist/i18n/index.d.ts.map +1 -0
  404. package/dist/i18n/languages.d.ts +40 -0
  405. package/dist/i18n/languages.d.ts.map +1 -0
  406. package/dist/index.css +2 -2
  407. package/dist/index.css.map +7 -1
  408. package/dist/index.d.ts +1 -2
  409. package/dist/index.html +16 -16
  410. package/dist/index.js +21624 -19624
  411. package/dist/index.js.map +7 -1
  412. package/dist/lib/accent-colors.d.ts +136 -0
  413. package/dist/lib/accent-colors.d.ts.map +1 -0
  414. package/dist/lib/agent-status.d.ts +41 -0
  415. package/dist/lib/agent-status.d.ts.map +1 -0
  416. package/dist/lib/analytics.d.ts +38 -0
  417. package/dist/lib/analytics.d.ts.map +1 -0
  418. package/dist/lib/chime.d.ts +20 -0
  419. package/dist/lib/chime.d.ts.map +1 -0
  420. package/dist/lib/color.d.ts +15 -0
  421. package/dist/lib/color.d.ts.map +1 -0
  422. package/dist/lib/completion.d.ts +27 -0
  423. package/dist/lib/completion.d.ts.map +1 -0
  424. package/dist/lib/core-browser-shim.d.ts +22 -0
  425. package/dist/lib/core-browser-shim.d.ts.map +1 -0
  426. package/dist/lib/default-prompt-pools.d.ts +27 -0
  427. package/dist/lib/default-prompt-pools.d.ts.map +1 -0
  428. package/dist/lib/desktop-host.d.ts +24 -0
  429. package/dist/lib/desktop-host.d.ts.map +1 -0
  430. package/dist/lib/desktop-shell.d.ts +3 -0
  431. package/dist/lib/desktop-shell.d.ts.map +1 -0
  432. package/dist/lib/favicon.d.ts +21 -0
  433. package/dist/lib/favicon.d.ts.map +1 -0
  434. package/dist/lib/file-icons.d.ts +10 -0
  435. package/dist/lib/file-icons.d.ts.map +1 -0
  436. package/dist/lib/goal.d.ts +32 -0
  437. package/dist/lib/goal.d.ts.map +1 -0
  438. package/dist/lib/index.d.ts +4 -0
  439. package/dist/lib/index.d.ts.map +1 -0
  440. package/dist/lib/model-matrix-routes.d.ts +203 -0
  441. package/dist/lib/model-matrix-routes.d.ts.map +1 -0
  442. package/dist/lib/notify.d.ts +15 -0
  443. package/dist/lib/notify.d.ts.map +1 -0
  444. package/dist/lib/sdd-theme.d.ts +52 -0
  445. package/dist/lib/sdd-theme.d.ts.map +1 -0
  446. package/dist/lib/stream-coalescer.d.ts +46 -0
  447. package/dist/lib/stream-coalescer.d.ts.map +1 -0
  448. package/dist/lib/terminal-dock.d.ts +6 -0
  449. package/dist/lib/terminal-dock.d.ts.map +1 -0
  450. package/dist/lib/tool-icon.d.ts +19 -0
  451. package/dist/lib/tool-icon.d.ts.map +1 -0
  452. package/dist/lib/tool-summary.d.ts +2 -0
  453. package/dist/lib/tool-summary.d.ts.map +1 -0
  454. package/dist/lib/utils.d.ts +10 -0
  455. package/dist/lib/utils.d.ts.map +1 -0
  456. package/dist/lib/view-navigation.d.ts +15 -0
  457. package/dist/lib/view-navigation.d.ts.map +1 -0
  458. package/dist/lib/ws-client-helpers.d.ts +46 -0
  459. package/dist/lib/ws-client-helpers.d.ts.map +1 -0
  460. package/dist/lib/ws-client-utils.d.ts +87 -0
  461. package/dist/lib/ws-client-utils.d.ts.map +1 -0
  462. package/dist/lib/ws-client.d.ts +239 -0
  463. package/dist/lib/ws-client.d.ts.map +1 -0
  464. package/dist/main.d.ts +8 -0
  465. package/dist/main.d.ts.map +1 -0
  466. package/dist/server/index.d.ts.map +1 -0
  467. package/dist/stores/auto-submit-streak.d.ts +40 -0
  468. package/dist/stores/auto-submit-streak.d.ts.map +1 -0
  469. package/dist/stores/autophase-store.d.ts +50 -0
  470. package/dist/stores/autophase-store.d.ts.map +1 -0
  471. package/dist/stores/chat-store.d.ts +137 -0
  472. package/dist/stores/chat-store.d.ts.map +1 -0
  473. package/dist/stores/config-store.d.ts +67 -0
  474. package/dist/stores/config-store.d.ts.map +1 -0
  475. package/dist/stores/coordinator-monitor-store.d.ts +133 -0
  476. package/dist/stores/coordinator-monitor-store.d.ts.map +1 -0
  477. package/dist/stores/file-reference-store.d.ts +36 -0
  478. package/dist/stores/file-reference-store.d.ts.map +1 -0
  479. package/dist/stores/file-store.d.ts +40 -0
  480. package/dist/stores/file-store.d.ts.map +1 -0
  481. package/dist/stores/fleet-store.d.ts +29 -0
  482. package/dist/stores/fleet-store.d.ts.map +1 -0
  483. package/dist/stores/git-changes-store.d.ts +38 -0
  484. package/dist/stores/git-changes-store.d.ts.map +1 -0
  485. package/dist/stores/git-info-store.d.ts +18 -0
  486. package/dist/stores/git-info-store.d.ts.map +1 -0
  487. package/dist/stores/goal-store.d.ts +12 -0
  488. package/dist/stores/goal-store.d.ts.map +1 -0
  489. package/dist/stores/history-store.d.ts +15 -0
  490. package/dist/stores/history-store.d.ts.map +1 -0
  491. package/dist/stores/index.d.ts +36 -0
  492. package/dist/stores/index.d.ts.map +1 -0
  493. package/dist/stores/kanban-store.d.ts +22 -0
  494. package/dist/stores/kanban-store.d.ts.map +1 -0
  495. package/dist/stores/local-prefs.d.ts +135 -0
  496. package/dist/stores/local-prefs.d.ts.map +1 -0
  497. package/dist/stores/mailbox-store.d.ts +63 -0
  498. package/dist/stores/mailbox-store.d.ts.map +1 -0
  499. package/dist/stores/monitor-store.d.ts +116 -0
  500. package/dist/stores/monitor-store.d.ts.map +1 -0
  501. package/dist/stores/office-map-store.d.ts +47 -0
  502. package/dist/stores/office-map-store.d.ts.map +1 -0
  503. package/dist/stores/sdd-board-store.d.ts +88 -0
  504. package/dist/stores/sdd-board-store.d.ts.map +1 -0
  505. package/dist/stores/sdd-wizard-store.d.ts +64 -0
  506. package/dist/stores/sdd-wizard-store.d.ts.map +1 -0
  507. package/dist/stores/session-store.d.ts +125 -0
  508. package/dist/stores/session-store.d.ts.map +1 -0
  509. package/dist/stores/side-effect-store.d.ts +18 -0
  510. package/dist/stores/side-effect-store.d.ts.map +1 -0
  511. package/dist/stores/specs-store.d.ts +67 -0
  512. package/dist/stores/specs-store.d.ts.map +1 -0
  513. package/dist/stores/types.d.ts +254 -0
  514. package/dist/stores/types.d.ts.map +1 -0
  515. package/dist/stores/ui-store.d.ts +307 -0
  516. package/dist/stores/ui-store.d.ts.map +1 -0
  517. package/dist/stores/viz-store.d.ts +126 -0
  518. package/dist/stores/viz-store.d.ts.map +1 -0
  519. package/dist/stores/worktree-store.d.ts +47 -0
  520. package/dist/stores/worktree-store.d.ts.map +1 -0
  521. package/dist/types.d.ts +321 -119
  522. package/dist/types.d.ts.map +1 -0
  523. package/dist/types.js +1 -1
  524. package/dist/types.js.map +7 -1
  525. package/package.json +13 -14
  526. package/dist/assets/AutoPhaseView-D053zOhN.js +0 -1
  527. package/dist/assets/DebugDashboard-DBPKvghW.js +0 -1
  528. package/dist/assets/KanbanView-DWBGErwm.js +0 -1
  529. package/dist/assets/MailboxDetailView-CCtq-c8u.js +0 -1
  530. package/dist/assets/OfficeMapPanel-BBKsytG0.js +0 -4
  531. package/dist/assets/SddBoardView-Q-k1UjLv.js +0 -2
  532. package/dist/assets/SddFlowGraph-BaWwH9Zc.js +0 -1
  533. package/dist/assets/SddWizard-C4wdyhYe.js +0 -1
  534. package/dist/assets/SessionsDashboard-CveBdrQJ.js +0 -1
  535. package/dist/assets/SkillDetailView-B4U0AtHj.js +0 -2
  536. package/dist/assets/SpecsView-QssXs9kF.js +0 -1
  537. package/dist/assets/TerminalPanel-CSDEzJNZ.js +0 -1
  538. package/dist/assets/activity-3lpGdUIy.js +0 -5
  539. package/dist/assets/activity-Bi6wI_Cg.js +0 -5
  540. package/dist/assets/activity-CSPSX--m.js +0 -5
  541. package/dist/assets/activity-Cv0CmTyM.js +0 -5
  542. package/dist/assets/activity-Doy5Yots.js +0 -5
  543. package/dist/assets/chat--Zry3Atx.js +0 -1
  544. package/dist/assets/chat-0DeGMNFQ.js +0 -1
  545. package/dist/assets/chat-BErfSQjE.js +0 -1
  546. package/dist/assets/chat-CX5cjaC-.js +0 -1
  547. package/dist/assets/chat-CibJIps5.js +0 -1
  548. package/dist/assets/chat-Dr5SJikx.js +0 -1
  549. package/dist/assets/chat-Siz8aWTB.js +0 -1
  550. package/dist/assets/chat-store-De7J1E26.js +0 -5
  551. package/dist/assets/commandPalette-2M1hYRuH.js +0 -1
  552. package/dist/assets/commandPalette-BE_ljQwl.js +0 -1
  553. package/dist/assets/commandPalette-BYf22WAi.js +0 -1
  554. package/dist/assets/commandPalette-BZhacjvy.js +0 -1
  555. package/dist/assets/commandPalette-CTE9ITWg.js +0 -1
  556. package/dist/assets/commandPalette-RxWSjQIg.js +0 -1
  557. package/dist/assets/common-B28qhvZh.js +0 -1
  558. package/dist/assets/common-CeTsF3jX.js +0 -1
  559. package/dist/assets/index-BqAVsSCe.js +0 -154
  560. package/dist/assets/index-DTFjO9oF.css +0 -1
  561. package/dist/assets/local-prefs-C1YdbI5g.js +0 -1
  562. package/dist/assets/markdown-D0X23O-i.js +0 -44
  563. package/dist/assets/settings-BVvx94WK.js +0 -1
  564. package/dist/assets/settings-CQ4x-iFD.js +0 -1
  565. package/dist/assets/settings-CmHCQRVI.js +0 -1
  566. package/dist/assets/settings-DgGu17XI.js +0 -1
  567. package/dist/assets/settings-Os0ifjjB.js +0 -1
  568. package/dist/assets/settings-TqprB9wO.js +0 -1
  569. package/dist/assets/settings-UGa_oSYC.js +0 -1
  570. package/dist/assets/ui-store-FTgDlcX2.js +0 -1
  571. package/dist/assets/utils-CU_o9ioU.js +0 -1
  572. package/dist/assets/ws-client-lDxBz-7w.js +0 -1
@@ -0,0 +1,203 @@
1
+ export interface ModelMatrixRouteRole {
2
+ role: string;
3
+ name: string;
4
+ }
5
+ export interface ModelMatrixRouteGroup {
6
+ phase: string;
7
+ label: string;
8
+ roles: readonly ModelMatrixRouteRole[];
9
+ }
10
+ export declare const MODEL_MATRIX_DEFAULT_ROUTE = "*";
11
+ export declare const MODEL_MATRIX_ROUTE_GROUPS: readonly [{
12
+ readonly phase: 'discovery';
13
+ readonly label: 'Discovery';
14
+ readonly roles: readonly [{
15
+ readonly role: 'explore';
16
+ readonly name: 'Explore';
17
+ }, {
18
+ readonly role: 'search';
19
+ readonly name: 'Search';
20
+ }, {
21
+ readonly role: 'research';
22
+ readonly name: 'Research';
23
+ }];
24
+ }, {
25
+ readonly phase: 'planning';
26
+ readonly label: 'Planning';
27
+ readonly roles: readonly [{
28
+ readonly role: 'analyst';
29
+ readonly name: 'Analyst';
30
+ }, {
31
+ readonly role: 'planner';
32
+ readonly name: 'Planner';
33
+ }, {
34
+ readonly role: 'architect';
35
+ readonly name: 'Architect';
36
+ }, {
37
+ readonly role: 'critic';
38
+ readonly name: 'Critic';
39
+ }, {
40
+ readonly role: 'refactor-planner';
41
+ readonly name: 'Refactor Planner';
42
+ }];
43
+ }, {
44
+ readonly phase: 'build';
45
+ readonly label: 'Build';
46
+ readonly roles: readonly [{
47
+ readonly role: 'executor';
48
+ readonly name: 'Executor';
49
+ }, {
50
+ readonly role: 'refactor';
51
+ readonly name: 'Refactor';
52
+ }, {
53
+ readonly role: 'simplifier';
54
+ readonly name: 'Simplifier';
55
+ }, {
56
+ readonly role: 'migration';
57
+ readonly name: 'Migration';
58
+ }, {
59
+ readonly role: 'vision';
60
+ readonly name: 'Vision';
61
+ }, {
62
+ readonly role: 'debugger';
63
+ readonly name: 'Debugger';
64
+ }, {
65
+ readonly role: 'tracer';
66
+ readonly name: 'Tracer';
67
+ }];
68
+ }, {
69
+ readonly phase: 'verify';
70
+ readonly label: 'Verify';
71
+ readonly roles: readonly [{
72
+ readonly role: 'verifier';
73
+ readonly name: 'Verifier';
74
+ }, {
75
+ readonly role: 'test';
76
+ readonly name: 'Test';
77
+ }, {
78
+ readonly role: 'e2e';
79
+ readonly name: 'E2E';
80
+ }, {
81
+ readonly role: 'browser';
82
+ readonly name: 'Browser';
83
+ }, {
84
+ readonly role: 'performance';
85
+ readonly name: 'Performance';
86
+ }, {
87
+ readonly role: 'chaos';
88
+ readonly name: 'Chaos';
89
+ }, {
90
+ readonly role: 'security-scanner';
91
+ readonly name: 'Security Scanner';
92
+ }, {
93
+ readonly role: 'bug-hunter';
94
+ readonly name: 'Bug Hunter';
95
+ }, {
96
+ readonly role: 'audit-log';
97
+ readonly name: 'Audit Log';
98
+ }];
99
+ }, {
100
+ readonly phase: 'review';
101
+ readonly label: 'Review';
102
+ readonly roles: readonly [{
103
+ readonly role: 'reviewer';
104
+ readonly name: 'Reviewer';
105
+ }, {
106
+ readonly role: 'code-reviewer';
107
+ readonly name: 'Code Reviewer';
108
+ }, {
109
+ readonly role: 'security-reviewer';
110
+ readonly name: 'Security Reviewer';
111
+ }, {
112
+ readonly role: 'accessibility';
113
+ readonly name: 'Accessibility';
114
+ }, {
115
+ readonly role: 'compliance';
116
+ readonly name: 'Compliance';
117
+ }];
118
+ }, {
119
+ readonly phase: 'domain';
120
+ readonly label: 'Domain';
121
+ readonly roles: readonly [{
122
+ readonly role: 'database';
123
+ readonly name: 'Database';
124
+ }, {
125
+ readonly role: 'api';
126
+ readonly name: 'API';
127
+ }, {
128
+ readonly role: 'auth';
129
+ readonly name: 'Auth';
130
+ }, {
131
+ readonly role: 'data';
132
+ readonly name: 'Data';
133
+ }, {
134
+ readonly role: 'frontend';
135
+ readonly name: 'Frontend';
136
+ }, {
137
+ readonly role: 'backend';
138
+ readonly name: 'Backend';
139
+ }, {
140
+ readonly role: 'designer';
141
+ readonly name: 'Designer';
142
+ }];
143
+ }, {
144
+ readonly phase: 'knowledge';
145
+ readonly label: 'Knowledge';
146
+ readonly roles: readonly [{
147
+ readonly role: 'document';
148
+ readonly name: 'Document';
149
+ }, {
150
+ readonly role: 'uml';
151
+ readonly name: 'UML';
152
+ }, {
153
+ readonly role: 'i18n';
154
+ readonly name: 'I18n';
155
+ }, {
156
+ readonly role: 'prompt';
157
+ readonly name: 'Prompt';
158
+ }];
159
+ }, {
160
+ readonly phase: 'delivery';
161
+ readonly label: 'Delivery';
162
+ readonly roles: readonly [{
163
+ readonly role: 'git';
164
+ readonly name: 'Git';
165
+ }, {
166
+ readonly role: 'release';
167
+ readonly name: 'Release';
168
+ }, {
169
+ readonly role: 'devops';
170
+ readonly name: 'DevOps';
171
+ }, {
172
+ readonly role: 'observability';
173
+ readonly name: 'Observability';
174
+ }, {
175
+ readonly role: 'dependency';
176
+ readonly name: 'Dependency';
177
+ }];
178
+ }, {
179
+ readonly phase: 'meta';
180
+ readonly label: 'Meta';
181
+ readonly roles: readonly [{
182
+ readonly role: 'skill-manage';
183
+ readonly name: 'Skill Manager';
184
+ }, {
185
+ readonly role: 'self-improving';
186
+ readonly name: 'Self-Improving';
187
+ }, {
188
+ readonly role: 'context';
189
+ readonly name: 'Context';
190
+ }, {
191
+ readonly role: 'cost';
192
+ readonly name: 'Cost';
193
+ }, {
194
+ readonly role: 'tech-stack';
195
+ readonly name: 'Tech Stack Validator';
196
+ }];
197
+ }];
198
+ export declare const MODEL_MATRIX_PHASE_ROUTES: ("build" | "delivery" | "discovery" | "domain" | "knowledge" | "meta" | "planning" | "review" | "verify")[];
199
+ export declare const MODEL_MATRIX_ROUTE_ROLES: readonly ModelMatrixRouteRole[];
200
+ export declare const MODEL_MATRIX_ROLE_ROUTES: string[];
201
+ export declare const MODEL_MATRIX_KNOWN_ROUTES: string[];
202
+ export declare function formatModelMatrixRouteLabel(route: string): string;
203
+ //# sourceMappingURL=model-matrix-routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-matrix-routes.d.ts","sourceRoot":"","sources":["../../src/lib/model-matrix-routes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,eAAO,MAAM,yBAAyB;oBAE3B,WAAW;oBACX,WAAW;;uBAER,SAAS;uBAAQ,SAAS;;uBAC1B,QAAQ;uBAAQ,QAAQ;;uBACxB,UAAU;uBAAQ,UAAU;;;oBAI/B,UAAU;oBACV,UAAU;;uBAEP,SAAS;uBAAQ,SAAS;;uBAC1B,SAAS;uBAAQ,SAAS;;uBAC1B,WAAW;uBAAQ,WAAW;;uBAC9B,QAAQ;uBAAQ,QAAQ;;uBACxB,kBAAkB;uBAAQ,kBAAkB;;;oBAI/C,OAAO;oBACP,OAAO;;uBAEJ,UAAU;uBAAQ,UAAU;;uBAC5B,UAAU;uBAAQ,UAAU;;uBAC5B,YAAY;uBAAQ,YAAY;;uBAChC,WAAW;uBAAQ,WAAW;;uBAC9B,QAAQ;uBAAQ,QAAQ;;uBACxB,UAAU;uBAAQ,UAAU;;uBAC5B,QAAQ;uBAAQ,QAAQ;;;oBAI3B,QAAQ;oBACR,QAAQ;;uBAEL,UAAU;uBAAQ,UAAU;;uBAC5B,MAAM;uBAAQ,MAAM;;uBACpB,KAAK;uBAAQ,KAAK;;uBAClB,SAAS;uBAAQ,SAAS;;uBAC1B,aAAa;uBAAQ,aAAa;;uBAClC,OAAO;uBAAQ,OAAO;;uBACtB,kBAAkB;uBAAQ,kBAAkB;;uBAC5C,YAAY;uBAAQ,YAAY;;uBAChC,WAAW;uBAAQ,WAAW;;;oBAIjC,QAAQ;oBACR,QAAQ;;uBAEL,UAAU;uBAAQ,UAAU;;uBAC5B,eAAe;uBAAQ,eAAe;;uBACtC,mBAAmB;uBAAQ,mBAAmB;;uBAC9C,eAAe;uBAAQ,eAAe;;uBACtC,YAAY;uBAAQ,YAAY;;;oBAInC,QAAQ;oBACR,QAAQ;;uBAEL,UAAU;uBAAQ,UAAU;;uBAC5B,KAAK;uBAAQ,KAAK;;uBAClB,MAAM;uBAAQ,MAAM;;uBACpB,MAAM;uBAAQ,MAAM;;uBACpB,UAAU;uBAAQ,UAAU;;uBAC5B,SAAS;uBAAQ,SAAS;;uBAC1B,UAAU;uBAAQ,UAAU;;;oBAI/B,WAAW;oBACX,WAAW;;uBAER,UAAU;uBAAQ,UAAU;;uBAC5B,KAAK;uBAAQ,KAAK;;uBAClB,MAAM;uBAAQ,MAAM;;uBACpB,QAAQ;uBAAQ,QAAQ;;;oBAI3B,UAAU;oBACV,UAAU;;uBAEP,KAAK;uBAAQ,KAAK;;uBAClB,SAAS;uBAAQ,SAAS;;uBAC1B,QAAQ;uBAAQ,QAAQ;;uBACxB,eAAe;uBAAQ,eAAe;;uBACtC,YAAY;uBAAQ,YAAY;;;oBAInC,MAAM;oBACN,MAAM;;uBAEH,cAAc;uBAAQ,eAAe;;uBACrC,gBAAgB;uBAAQ,gBAAgB;;uBACxC,SAAS;uBAAQ,SAAS;;uBAC1B,MAAM;uBAAQ,MAAM;;uBACpB,YAAY;uBAAQ,sBAAsB;;EAGH,CAAC;AAEtD,eAAO,MAAM,yBAAyB,6GAAwD,CAAC;AAE/F,eAAO,MAAM,wBAAwB,EAAE,SAAS,oBAAoB,EACJ,CAAC;AAEjE,eAAO,MAAM,wBAAwB,UAAoD,CAAC;AAE1F,eAAO,MAAM,yBAAyB,UAIrC,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjE"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Browser Notification API wrapper. We never pop a notification when the
3
+ * tab is foreground — the user already sees the chat update, so an OS
4
+ * popup would just be noise. The flow:
5
+ *
6
+ * 1. requestPermission() is called lazily on first run completion;
7
+ * browsers require a user gesture for the prompt to be safe but
8
+ * Chrome / Firefox accept it from any code path with relaxed rules.
9
+ * 2. notifyIfHidden() short-circuits unless the page is `document.hidden`.
10
+ * 3. Clicking the notification focuses the page (best-effort — some
11
+ * browsers won't focus across tab groups).
12
+ */
13
+ export declare function ensureNotificationPermission(): Promise<NotificationPermission | 'unsupported'>;
14
+ export declare function notifyIfHidden(title: string, body?: string | undefined, tag?: string): void;
15
+ //# sourceMappingURL=notify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../src/lib/notify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,wBAAsB,4BAA4B,IAAI,OAAO,CAC3D,sBAAsB,GAAG,aAAa,CACvC,CAeA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAuB3F"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Shared SDD design system — the single source of truth for status/priority
3
+ * visuals and small formatters across every SDD surface (flow graph, kanban,
4
+ * task drawer, activity feed, board header). Keeping these here instead of
5
+ * re-declaring per component prevents the colours/labels/icons from drifting
6
+ * apart as the views evolve.
7
+ */
8
+ import { type LucideIcon } from 'lucide-react';
9
+ export type SddStatus = 'pending' | 'queued' | 'in_progress' | 'blocked' | 'review' | 'failed' | 'completed' | 'cancelled';
10
+ export interface SddStatusStyle {
11
+ /** Short label, e.g. "Running". */
12
+ label: string;
13
+ /** Lucide icon for the status. */
14
+ icon: LucideIcon;
15
+ /** True for the running state (drives spin + glow). */
16
+ spin?: boolean;
17
+ /** Tailwind text-colour class. */
18
+ text: string;
19
+ /** Tailwind border+bg ring for chips/badges. */
20
+ ring: string;
21
+ /** Tailwind background class for a small status dot. */
22
+ dot: string;
23
+ /** CSS color string for React Flow edges/minimap, which cannot take Tailwind classes. */
24
+ hex: string;
25
+ }
26
+ export declare const SDD_STATUS: Record<SddStatus, SddStatusStyle>;
27
+ export declare function statusStyle(s: string): SddStatusStyle;
28
+ export type SddPriority = 'critical' | 'high' | 'medium' | 'low';
29
+ export declare const SDD_PRIORITY: Record<SddPriority, {
30
+ text: string;
31
+ chip: string;
32
+ }>;
33
+ export declare function priorityStyle(p: string): {
34
+ text: string;
35
+ chip: string;
36
+ };
37
+ /** Run-level status badge styles (board header). */
38
+ export declare const SDD_RUN_STATUS: Record<string, string>;
39
+ /** Deterministic palette for agent avatars (indexed by roster position). */
40
+ export declare const SDD_AGENT_COLORS: string[];
41
+ /** Activity-feed entry kinds → icon + colour. */
42
+ export declare const SDD_FEED_KIND: Record<string, {
43
+ icon: LucideIcon;
44
+ color: string;
45
+ }>;
46
+ /** Two-letter avatar initials from a worker name. */
47
+ export declare function agentInitials(name: string): string;
48
+ /** Compact duration, e.g. "2m 5s" / "12s". */
49
+ export declare function fmtDuration(ms: number): string;
50
+ /** Compact relative age, e.g. "5s" / "3m" / "2h". */
51
+ export declare function fmtAgo(ts: number, now: number): string;
52
+ //# sourceMappingURL=sdd-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdd-theme.d.ts","sourceRoot":"","sources":["../../src/lib/sdd-theme.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EASL,KAAK,UAAU,EAMhB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,QAAQ,GACR,aAAa,GACb,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,WAAW,cAAc;IAC7B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,IAAI,EAAE,UAAU,CAAC;IACjB,uDAAuD;IACvD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,yFAAyF;IACzF,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,cAAc,CAkExD,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,cAAc,CAErD;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAiB5E,CAAC;AAEF,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM;UAnBgB,MAAM;UAAQ,MAAM;EAqB1E;AAED,oDAAoD;AACpD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQjD,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,UAQ5B,CAAC;AAEF,iDAAiD;AACjD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAW7E,CAAC;AAIF,qDAAqD;AACrD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED,8CAA8C;AAC9C,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAO9C;AAED,qDAAqD;AACrD,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAMtD"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * rAF-batched stream coalescer.
3
+ *
4
+ * Provider chunks (text_delta / thinking_delta / tool.progress) arrive far
5
+ * faster than the screen refreshes — sometimes dozens per frame. Pushing each
6
+ * one straight into the zustand store triggers a store broadcast + a full
7
+ * ChatView re-render + a regroup per chunk, which is the dominant CPU cost
8
+ * while a long reply streams.
9
+ *
10
+ * This coalescer buffers incoming text per key and flushes at most once per
11
+ * animation frame via a single combined write. The visible result is identical
12
+ * (text still appears in order) but the store mutates ~60×/s instead of
13
+ * once-per-token. Callers that need the buffer drained synchronously (run
14
+ * end, finalize, tool result) call `flush(key)` or `flushAll()`.
15
+ *
16
+ * Falls back to a microtask when requestAnimationFrame is unavailable (e.g.
17
+ * jsdom under vitest) so behaviour stays deterministic in tests.
18
+ */
19
+ type FlushFn = (key: string, text: string) => void;
20
+ export declare class StreamCoalescer {
21
+ private pending;
22
+ private scheduled;
23
+ /**
24
+ * Queue `text` under `key`, to be flushed via `flush(key, joinedText)` on the
25
+ * next frame. Repeated calls for the same key before a flush concatenate.
26
+ * The `flush` callback is captured per key from the latest push.
27
+ */
28
+ push(key: string, text: string, flush: FlushFn): void;
29
+ private schedule;
30
+ private drain;
31
+ /** Discard a key's buffered text without flushing. Used when a later event
32
+ * replaces a stream's final value, such as tool.executed replacing pending
33
+ * progress with the complete result. */
34
+ drop(key: string): void;
35
+ /** Discard every buffered stream without flushing. Used when the transcript
36
+ * owner changes, such as session resume/new/project switch. */
37
+ dropAll(): void;
38
+ /** Drain a single key immediately (if buffered). Safe to call when empty. */
39
+ flush(key: string): void;
40
+ /** Drain every buffered key immediately. Call at run end / before finalize. */
41
+ flushAll(): void;
42
+ }
43
+ /** Shared singleton used by the WS handlers. */
44
+ export declare const streamCoalescer: StreamCoalescer;
45
+ export {};
46
+ //# sourceMappingURL=stream-coalescer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-coalescer.d.ts","sourceRoot":"","sources":["../../src/lib/stream-coalescer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAoBnD,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAA8B;IAC7C,OAAO,CAAC,SAAS,CAAS;IAE1B;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAUpD;IAED,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,KAAK;IAWb;;6CAEyC;IACzC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtB;IAED;oEACgE;IAChE,OAAO,IAAI,IAAI,CAEd;IAED,6EAA6E;IAC7E,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAKvB;IAED,+EAA+E;IAC/E,QAAQ,IAAI,IAAI,CAEf;CACF;AAED,gDAAgD;AAChD,eAAO,MAAM,eAAe,iBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const TERMINAL_HEIGHT_STORAGE_KEY = "wrongstack.terminalDockHeight";
2
+ export declare const MIN_TERMINAL_HEIGHT = 140;
3
+ export declare const MAX_TERMINAL_HEIGHT = 640;
4
+ export declare const MIN_MAIN_AREA_WHEN_TERMINAL_OPEN = 260;
5
+ export declare function clampTerminalHeight(height: number): number;
6
+ //# sourceMappingURL=terminal-dock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminal-dock.d.ts","sourceRoot":"","sources":["../../src/lib/terminal-dock.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAa1D"}
@@ -0,0 +1,19 @@
1
+ import { type ToolIconId } from '@wrongstack/tools/tool-icons';
2
+ import { type LucideIcon } from 'lucide-react';
3
+ /** Canonical ToolIconId → lucide-react component. */
4
+ export declare const TOOL_LUCIDE: Record<ToolIconId, LucideIcon>;
5
+ export interface ToolVisual {
6
+ Icon: LucideIcon;
7
+ /** Canonical hex color (same value the TUI uses). */
8
+ color: string;
9
+ }
10
+ /** Resolve a tool name to its { Icon, color }. Unknown / MCP tools fall back. */
11
+ export declare function getToolVisual(name: string): ToolVisual;
12
+ /** Human-readable category description for each ToolIconId. */
13
+ export declare const TOOL_CATEGORY_LABELS: Record<ToolIconId, string>;
14
+ /**
15
+ * Get a tooltip string for a tool name, describing its category and color.
16
+ * Example: "shell commands — red" or "search & grep — violet"
17
+ */
18
+ export declare function getToolTooltip(name: string): string;
19
+ //# sourceMappingURL=tool-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-icon.d.ts","sourceRoot":"","sources":["../../src/lib/tool-icon.ts"],"names":[],"mappings":"AAQA,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,EAkBL,KAAK,UAAU,EAOhB,MAAM,cAAc,CAAC;AAEtB,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAyBtD,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAGtD;AAED,+DAA+D;AAC/D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAyB3D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKnD"}
@@ -0,0 +1,2 @@
1
+ export { FALLBACK_HEAD_FIELDS, summarizeToolInput } from '@wrongstack/tools/tool-summary';
2
+ //# sourceMappingURL=tool-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../src/lib/tool-summary.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ /**
4
+ * Browser-safe UUID generation. `crypto.randomUUID()` is only available in
5
+ * secure contexts (HTTPS or localhost). In non-secure contexts (plain HTTP)
6
+ * it is `undefined`, and calling it throws TypeError. This wrapper falls
7
+ * back to a timestamp + Math.random combo when the API is unavailable.
8
+ */
9
+ export declare function safeId(): string;
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,IAAI,MAAM,CAK/B"}
@@ -0,0 +1,15 @@
1
+ import { type Activity } from '@/stores/ui-store';
2
+ export type PanelMainView = 'chat' | 'files' | 'skill' | 'officemap' | 'changes' | 'mailbox' | 'sessions' | 'design-gallery';
3
+ export type MainView = 'autophase' | 'specs' | 'kanban' | 'sddboard' | 'sddwizard' | 'settings';
4
+ export type AppView = PanelMainView | MainView | 'setup' | 'debug' | 'refresh-debug' | 'analytics';
5
+ export declare const PANEL_VIEW_BY_ACTIVITY: Record<Activity, PanelMainView>;
6
+ export declare const VIEW_ACTIVITY: Partial<Record<AppView, Activity>>;
7
+ export declare const ACTIVITY_SHORTCUT_BY_KEY: Readonly<Record<string, Activity>>;
8
+ export declare const ACTIVITY_SHORTCUT_LABEL_BY_ACTIVITY: Readonly<Record<Activity, string>>;
9
+ export declare function pairedViewForActivity(activity: Activity): PanelMainView;
10
+ export declare function shortcutLabelForActivity(activity: Activity): string;
11
+ export declare function showPanel(activity: Activity): void;
12
+ export declare function openPanel(activity: Activity): void;
13
+ export declare function openMainView(view: MainView): void;
14
+ export declare function navigateToView(view: AppView): void;
15
+ //# sourceMappingURL=view-navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-navigation.d.ts","sourceRoot":"","sources":["../../src/lib/view-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAc,MAAM,mBAAmB,CAAC;AAE9D,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,SAAS,GACT,UAAU,GACV,gBAAgB,CAAC;AAErB,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAEhG,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,WAAW,CAAC;AAEnG,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAWlE,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAS5D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAUvE,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAWlF,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,aAAa,CAEvE;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEnE;AAOD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAKlD;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAYlD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAQjD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CASlD"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Pure payload builders for the `provider.*` client messages.
3
+ * Extracted so the test suite can verify the wire shape without
4
+ * spinning up a WebSocket connection.
5
+ *
6
+ * The naming mirrors the `*.clear_models` ↔ `*.undo_clear` pair:
7
+ * - `buildClearModelsMessage(providerId)` → `provider.clear_models`
8
+ * - `buildUndoClearMessage(providerId, previousModels)` →
9
+ * `provider.undo_clear`
10
+ * - `buildProviderUpdateMessage(payload)` → `provider.update`
11
+ *
12
+ * The builders are the single source of truth for the message
13
+ * shape — both the `WSClient` methods and the test suite
14
+ * consume the same function, so an accidental shape drift is
15
+ * caught at type-check + unit-test time.
16
+ */
17
+ import type { WSClientMessage } from '../types';
18
+ /**
19
+ * Build the `provider.clear_models` message that removes the
20
+ * saved `models` allowlist for `providerId`. The picked id
21
+ * becomes `undefined` on the next `providers.saved` broadcast.
22
+ */
23
+ export declare function buildClearModelsMessage(providerId: string): WSClientMessage;
24
+ /**
25
+ * Build the `provider.undo_clear` message that restores the
26
+ * `models` allowlist from `previousModels`. Pairs with
27
+ * `buildClearModelsMessage` — the WebUI's "Undo" toast calls
28
+ * this to reapply the list the user just removed.
29
+ *
30
+ * Defensive-copies the input list so a caller who mutates their
31
+ * array after the call doesn't leak into the saved state.
32
+ */
33
+ export declare function buildUndoClearMessage(providerId: string, previousModels: string[]): WSClientMessage;
34
+ /**
35
+ * Build a `provider.update` message. Thin pass-through that
36
+ * exists so the test suite can verify the wire shape without
37
+ * importing the full `WSClient` class.
38
+ */
39
+ export declare function buildProviderUpdateMessage(payload: {
40
+ id: string;
41
+ family?: string | undefined;
42
+ baseUrl?: string | undefined;
43
+ envVars?: string[] | undefined;
44
+ models?: string[] | undefined;
45
+ }): WSClientMessage;
46
+ //# sourceMappingURL=ws-client-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ws-client-helpers.d.ts","sourceRoot":"","sources":["../../src/lib/ws-client-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,CAE3E;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EAAE,GACvB,eAAe,CAKjB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC/B,GAAG,eAAe,CAElB"}
@@ -0,0 +1,87 @@
1
+ import type { WSServerMessage } from '../types';
2
+ /**
3
+ * Generic event handler. When the consumer knows the literal message type K,
4
+ * `EventHandler<K>` narrows the received message to the matching union member
5
+ * so payload access is type-checked without an `as` cast. The bare
6
+ * `EventHandler` (no parameter) keeps the wider `WSServerMessage` shape for
7
+ * the internal dispatch table, where any message type may arrive.
8
+ */
9
+ export type EventHandler<K extends WSServerMessage['type'] = WSServerMessage['type']> = (msg: Extract<WSServerMessage, {
10
+ type: K;
11
+ }>) => void;
12
+ /**
13
+ * Returns true when a server message is intended for the currently-active
14
+ * session. The server tags session-scoped messages with `payload.sessionId`;
15
+ * messages without one (or when no session is active yet) are treated as
16
+ * active so boot-time broadcasts aren't dropped.
17
+ *
18
+ * Previously this helper was duplicated in four ws-handlers files; the
19
+ * copies had drifted in whitespace only but the divergence was a latent
20
+ * bug source. Single source of truth lives here.
21
+ */
22
+ export declare function isActiveSessionMessage(msg: WSServerMessage): boolean;
23
+ /**
24
+ * Convert a server message into a VizEvent and push it to the viz store,
25
+ * activating the viz surface. No-op when the message isn't a viz source.
26
+ * Previously duplicated in chat-handlers and session-handlers.
27
+ */
28
+ export declare function pipeViz(msg: WSServerMessage): void;
29
+ /**
30
+ * Shape-check a server message payload against a record of required keys +
31
+ * their expected primitive types. Returns the payload cast to T when every
32
+ * required key is present and matches its type, otherwise `null`.
33
+ *
34
+ * This is the light runtime guard that WS handlers can use BEFORE the
35
+ * `as {...}` cast, so a malformed server payload (missing field, wrong
36
+ * type) is dropped deliberately instead of crashing the handler. The
37
+ * generic WS emit() try/catch logs the crash but silently drops the
38
+ * message — a `safePayload` check turns that into an early return the
39
+ * handler can reason about.
40
+ *
41
+ * Usage:
42
+ * const p = safePayload(msg, { text: 'string', messageId: 'string' });
43
+ * if (!p) return;
44
+ * // p is now typed as { text: string; messageId: string }
45
+ *
46
+ * `optional` keys are checked only when present.
47
+ */
48
+ export declare function safePayload<T extends Record<string, unknown>>(msg: WSServerMessage, required: Record<string, 'string' | 'number' | 'boolean' | 'object' | 'array'>, optional?: Record<string, 'string' | 'number' | 'boolean' | 'object' | 'array'>): T | null;
49
+ export type PendingConfirm = Record<string, never>;
50
+ export type WsStatus = {
51
+ state: 'connecting';
52
+ } | {
53
+ state: 'open';
54
+ } | {
55
+ state: 'closed';
56
+ error?: string | undefined;
57
+ } | {
58
+ state: 'reconnecting';
59
+ attempt: number;
60
+ nextRetryAt: number;
61
+ lastError?: string | undefined;
62
+ };
63
+ /**
64
+ * Read `?token=…` from the WS URL the client was constructed with.
65
+ * Used by the cookie bootstrap (`ensureAuthCookie`) — when the server
66
+ * prints the WS URL to its startup banner (e.g. `ws://127.0.0.1:3457?token=…`)
67
+ * the page is loaded with the token in the URL, the client reads it
68
+ * here, hits `/ws-auth?token=…` to swap it for an HttpOnly cookie, and
69
+ * the cookie carries forward on every reconnect. There is no
70
+ * persistent client-side store of the token.
71
+ */
72
+ export declare function getTokenFromWsUrl(wsUrl: string): string | null;
73
+ export declare function getTokenFromPageUrl(): string | null;
74
+ export declare function stripTokenFromUrl(rawUrl: string): string;
75
+ export declare function stripTokenFromAddressBar(): void;
76
+ export declare function resolveWsPort(): number;
77
+ export declare function resolvePublicWsUrl(): string | null;
78
+ export declare function defaultWsUrl(): string;
79
+ /**
80
+ * Derive the HTTP origin for `/ws-auth` from the page's own location.
81
+ * `/ws-auth` is a same-origin HTTP call, so we use the page's host
82
+ * (NOT the WS port). The same `loopback→127.0.0.1` DNS-dance fix from
83
+ * `defaultWsUrl()` applies — on Windows, browsers resolve `localhost`
84
+ * to `[::1]` first, so we force IPv4 loopback for cookie consistency.
85
+ */
86
+ export declare function httpOriginForAuth(): string;
87
+ //# sourceMappingURL=ws-client-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ws-client-utils.d.ts","sourceRoot":"","sources":["../../src/lib/ws-client-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CACtF,GAAG,EAAE,OAAO,CAAC,eAAe,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,KACvC,IAAI,CAAC;AAEV;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAIpE;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI,CAMlD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3D,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,EAC9E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,GAC9E,CAAC,GAAG,IAAI,CAaV;AAmBD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAChB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,GACvB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjB;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC/C;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEpG;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAO9D;AAED,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAQnD;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAY/C;AAID,wBAAgB,aAAa,IAAI,MAAM,CAOtC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAkBlD;AAED,wBAAgB,YAAY,IAAI,MAAM,CAerC;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAW1C"}