@wrongstack/webui 0.286.0 → 0.289.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 (340) hide show
  1. package/README.md +35 -0
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/assets/AnalyticsDashboard-qGVC0XiK.js +1 -0
  4. package/dist/assets/AudienceMemoryPanel-CxAGL0gP.js +3 -0
  5. package/dist/assets/ChangesView-Bc6demyA.js +1 -0
  6. package/dist/assets/ChronicleDashboard-CwWcOmB3.js +1 -0
  7. package/dist/assets/CodeEditor-JY7CfGGl.js +1 -0
  8. package/dist/assets/CodeMap-BDgG3Rjz.js +1 -0
  9. package/dist/assets/CronJobsPanel-CqA5Tmx-.js +1 -0
  10. package/dist/assets/DebugDashboard-DlSJuEnl.js +1 -0
  11. package/dist/assets/DesignGalleryView-Cw9pbmsU.js +1 -0
  12. package/dist/assets/GoalView-B9BA9Jlk.js +1 -0
  13. package/dist/assets/KanbanView-CvKWtMXO.js +1 -0
  14. package/dist/assets/MailboxDetailView-dtLgBAb5.js +1 -0
  15. package/dist/assets/MemoryManager-BX9vS8Sc.js +1 -0
  16. package/dist/assets/OfficeMapPanel-D87MJFyb.css +1 -0
  17. package/dist/assets/OfficeMapPanel-DBafq6N3.js +4 -0
  18. package/dist/assets/ProcessMonitor-B0wlr4xu.js +1 -0
  19. package/dist/assets/QueuePanel-Cbd6WEUu.js +1 -0
  20. package/dist/assets/RefreshDebugView-BU6_CzHg.js +1 -0
  21. package/dist/assets/SddBoardView-ChpDmoWH.js +2 -0
  22. package/dist/assets/SddFlowGraph-ZGRYKvG4.js +1 -0
  23. package/dist/assets/SddWizard-C9EU3uMP.js +1 -0
  24. package/dist/assets/SessionsDashboard-BZjGcI8m.js +1 -0
  25. package/dist/assets/SetupScreen-OLD-xwmi.js +1 -0
  26. package/dist/assets/SkillDetailView-cBe0gnN1.js +3 -0
  27. package/dist/assets/SpecsView-BXqQnduk.js +1 -0
  28. package/dist/assets/TechStackView-whP83IaE.js +1 -0
  29. package/dist/assets/TerminalPanel-DYJvz1GK.js +1 -0
  30. package/dist/assets/activity-B6TyDCwd.js +5 -0
  31. package/dist/assets/activity-BZm_Psbt.js +5 -0
  32. package/dist/assets/activity-Bhoxw076.js +5 -0
  33. package/dist/assets/activity-CWFY3Fhi.js +5 -0
  34. package/dist/assets/activity-DVZ7t5as.js +5 -0
  35. package/dist/assets/activity-DiuZra5w.js +5 -0
  36. package/dist/assets/activity-DkwwCy23.js +5 -0
  37. package/dist/assets/{chat-CmZiF8Sm.js → chat-BJzPxfyr.js} +1 -1
  38. package/dist/assets/{chat-eXJFi4bY.js → chat-BRBVFl4h.js} +1 -1
  39. package/dist/assets/{chat-C_9_T_Py.js → chat-Bkom8vQo.js} +1 -1
  40. package/dist/assets/{chat-DfjGjYKF.js → chat-C7ybebfi.js} +1 -1
  41. package/dist/assets/{chat-BNf8yQ-i.js → chat-Du7n7HZ7.js} +1 -1
  42. package/dist/assets/{chat-BwmYDkLr.js → chat-IRKmQ6we.js} +1 -1
  43. package/dist/assets/{chat-DW62ursN.js → chat-VkTBQmmx.js} +1 -1
  44. package/dist/assets/chat-store-BJ55HZKb.js +13 -0
  45. package/dist/assets/{commandPalette-C5U6qfth.js → commandPalette-CGMq-qlP.js} +1 -1
  46. package/dist/assets/{commandPalette-C4o2rUOp.js → commandPalette-CUh_kgfp.js} +1 -1
  47. package/dist/assets/{commandPalette-CBJfByB7.js → commandPalette-Dfk74u87.js} +1 -1
  48. package/dist/assets/{commandPalette-DUootORZ.js → commandPalette-DpaemFux.js} +1 -1
  49. package/dist/assets/{commandPalette-BcMV6x3_.js → commandPalette-Nlxs0V7J.js} +1 -1
  50. package/dist/assets/{commandPalette-CrYfIhnW.js → commandPalette-aaAou3Tl.js} +1 -1
  51. package/dist/assets/{commandPalette-Dgd8HfNm.js → commandPalette-tFxIIhvU.js} +1 -1
  52. package/dist/assets/i18n-BcnwAuXt.js +2 -0
  53. package/dist/assets/index-MIiPbE0D.js +151 -0
  54. package/dist/assets/index-dpcVzvHS.css +1 -0
  55. package/dist/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2 +0 -0
  56. package/dist/assets/manrope-greek-wght-normal-DL7QRZyv.woff2 +0 -0
  57. package/dist/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2 +0 -0
  58. package/dist/assets/manrope-latin-wght-normal-DHIcAJRg.woff2 +0 -0
  59. package/dist/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2 +0 -0
  60. package/dist/assets/markdown-CF2fGOZh.js +44 -0
  61. package/dist/assets/{monaco-MjnRih9i.js → monaco-BgFAljXl.js} +201 -201
  62. package/dist/assets/{monaco-theme-DhdHiZEb.js → monaco-theme-DxkhltWi.js} +1 -1
  63. package/dist/assets/{session-store-BOmBeF9r.js → session-store-CgCoJmdF.js} +1 -1
  64. package/dist/assets/settings-4BR882HN.js +1 -0
  65. package/dist/assets/settings-B5P4V9M6.js +1 -0
  66. package/dist/assets/settings-Cjxo5UVP.js +1 -0
  67. package/dist/assets/settings-CnViO4_M.js +1 -0
  68. package/dist/assets/settings-CyzkAhwD.js +1 -0
  69. package/dist/assets/settings-jrfJX8W2.js +1 -0
  70. package/dist/assets/settings-llUXRsji.js +1 -0
  71. package/dist/assets/shared-aqSRO8IM.js +1 -0
  72. package/dist/assets/space-grotesk-latin-ext-wght-normal-D9tNdqV9.woff2 +0 -0
  73. package/dist/assets/space-grotesk-latin-wght-normal-BhU9QXUp.woff2 +0 -0
  74. package/dist/assets/space-grotesk-vietnamese-wght-normal-D0rl6rjA.woff2 +0 -0
  75. package/dist/assets/ui-store-lBwi9h6q.js +1 -0
  76. package/dist/assets/utils-BLVofF8S.js +1 -0
  77. package/dist/assets/vendor-BBksTEZc.css +1 -0
  78. package/dist/assets/vendor-JNPeA-SL.js +76 -0
  79. package/dist/assets/ws-client-3f38Kop2.js +1 -0
  80. package/dist/components/AgentOfficeView.d.ts +3 -0
  81. package/dist/components/AgentOfficeView.d.ts.map +1 -0
  82. package/dist/components/AnalyticsDashboard.d.ts.map +1 -1
  83. package/dist/components/AudienceMemoryPanel.d.ts +2 -0
  84. package/dist/components/AudienceMemoryPanel.d.ts.map +1 -0
  85. package/dist/components/BoardView.d.ts +2 -2
  86. package/dist/components/ChatInput/slash-routing.d.ts +4 -4
  87. package/dist/components/ChatInput/slash-routing.d.ts.map +1 -1
  88. package/dist/components/ChatInput/use-paste-drop.d.ts.map +1 -1
  89. package/dist/components/ChatInput.d.ts.map +1 -1
  90. package/dist/components/CheckpointTimeline.d.ts.map +1 -1
  91. package/dist/components/ChipMultiSelect.d.ts +20 -0
  92. package/dist/components/ChipMultiSelect.d.ts.map +1 -0
  93. package/dist/components/ChronicleDashboard.d.ts +2 -0
  94. package/dist/components/ChronicleDashboard.d.ts.map +1 -0
  95. package/dist/components/CodeEditor.d.ts.map +1 -1
  96. package/dist/components/CodeMap.d.ts +9 -0
  97. package/dist/components/CodeMap.d.ts.map +1 -0
  98. package/dist/components/CommandPalette/index.d.ts.map +1 -1
  99. package/dist/components/ContextDashboard.d.ts +13 -0
  100. package/dist/components/ContextDashboard.d.ts.map +1 -0
  101. package/dist/components/CronJobsPanel.d.ts +6 -0
  102. package/dist/components/CronJobsPanel.d.ts.map +1 -0
  103. package/dist/components/CronTrigger.d.ts +2 -0
  104. package/dist/components/CronTrigger.d.ts.map +1 -0
  105. package/dist/components/DebugDashboard.d.ts.map +1 -1
  106. package/dist/components/DesignGalleryView.d.ts.map +1 -1
  107. package/dist/components/FallbackEditor.d.ts.map +1 -1
  108. package/dist/components/FileReferenceChip.d.ts +2 -2
  109. package/dist/components/FileReferenceChip.d.ts.map +1 -1
  110. package/dist/components/FleetPanel.d.ts.map +1 -1
  111. package/dist/components/{AutoPhaseView.d.ts → GoalView.d.ts} +4 -4
  112. package/dist/components/GoalView.d.ts.map +1 -0
  113. package/dist/components/InspectorPanel.d.ts +9 -9
  114. package/dist/components/InspectorPanel.d.ts.map +1 -1
  115. package/dist/components/KanbanCleanerAlert.d.ts +6 -0
  116. package/dist/components/KanbanCleanerAlert.d.ts.map +1 -0
  117. package/dist/components/KanbanView.d.ts +14 -0
  118. package/dist/components/KanbanView.d.ts.map +1 -1
  119. package/dist/components/MailboxDetailView.d.ts.map +1 -1
  120. package/dist/components/MailboxPanel.d.ts.map +1 -1
  121. package/dist/components/MemoryManager/MemoryDetail.d.ts +17 -0
  122. package/dist/components/MemoryManager/MemoryDetail.d.ts.map +1 -0
  123. package/dist/components/MemoryManager/MemoryDrawer.d.ts +25 -0
  124. package/dist/components/MemoryManager/MemoryDrawer.d.ts.map +1 -0
  125. package/dist/components/MemoryManager/MemoryEditor.d.ts +12 -0
  126. package/dist/components/MemoryManager/MemoryEditor.d.ts.map +1 -0
  127. package/dist/components/MemoryManager/MemoryFilters.d.ts +19 -0
  128. package/dist/components/MemoryManager/MemoryFilters.d.ts.map +1 -0
  129. package/dist/components/MemoryManager/MemoryGraph.d.ts +9 -0
  130. package/dist/components/MemoryManager/MemoryGraph.d.ts.map +1 -0
  131. package/dist/components/MemoryManager/MemoryList.d.ts +13 -0
  132. package/dist/components/MemoryManager/MemoryList.d.ts.map +1 -0
  133. package/dist/components/MemoryManager/index.d.ts +2 -0
  134. package/dist/components/MemoryManager/index.d.ts.map +1 -0
  135. package/dist/components/MemoryManager/shared.d.ts +51 -0
  136. package/dist/components/MemoryManager/shared.d.ts.map +1 -0
  137. package/dist/components/MessageBubble/index.d.ts.map +1 -1
  138. package/dist/components/ModelSelectDialog.d.ts +47 -0
  139. package/dist/components/ModelSelectDialog.d.ts.map +1 -0
  140. package/dist/components/OfficeMapCanvas/edges.d.ts +15 -0
  141. package/dist/components/OfficeMapCanvas/edges.d.ts.map +1 -0
  142. package/dist/components/OfficeMapCanvas/nodes.d.ts +53 -0
  143. package/dist/components/OfficeMapCanvas/nodes.d.ts.map +1 -0
  144. package/dist/components/OfficeMapCanvas/resolve.d.ts +17 -2
  145. package/dist/components/OfficeMapCanvas/resolve.d.ts.map +1 -1
  146. package/dist/components/OfficeMapCanvas/utils.d.ts +28 -1
  147. package/dist/components/OfficeMapCanvas/utils.d.ts.map +1 -1
  148. package/dist/components/OfficeMapCanvas.d.ts.map +1 -1
  149. package/dist/components/OfficeMapPanel.d.ts.map +1 -1
  150. package/dist/components/PhasePanel.d.ts.map +1 -1
  151. package/dist/components/RefinePanel.d.ts +21 -1
  152. package/dist/components/RefinePanel.d.ts.map +1 -1
  153. package/dist/components/SddWizard.d.ts.map +1 -1
  154. package/dist/components/SessionsDashboard.d.ts.map +1 -1
  155. package/dist/components/SettingsPanel/BrainSection.d.ts.map +1 -1
  156. package/dist/components/SettingsPanel/ChimeraSettingsPanel.d.ts +10 -0
  157. package/dist/components/SettingsPanel/ChimeraSettingsPanel.d.ts.map +1 -0
  158. package/dist/components/SettingsPanel/ModelSection.d.ts.map +1 -1
  159. package/dist/components/SettingsPanel/PluginToggleList.d.ts +3 -0
  160. package/dist/components/SettingsPanel/PluginToggleList.d.ts.map +1 -0
  161. package/dist/components/SettingsPanel/RoutingSection.d.ts +8 -1
  162. package/dist/components/SettingsPanel/RoutingSection.d.ts.map +1 -1
  163. package/dist/components/SettingsPanel/index.d.ts.map +1 -1
  164. package/dist/components/SetupScreen.d.ts.map +1 -1
  165. package/dist/components/SidePanel/AgentsPanel.d.ts.map +1 -1
  166. package/dist/components/SidePanel/HistoryPanel.d.ts.map +1 -1
  167. package/dist/components/SidePanel/SessionList.d.ts +33 -5
  168. package/dist/components/SidePanel/SessionList.d.ts.map +1 -1
  169. package/dist/components/SidePanel/SessionPanel.d.ts.map +1 -1
  170. package/dist/components/SidePanel/index.d.ts.map +1 -1
  171. package/dist/components/SkillDetailView.d.ts.map +1 -1
  172. package/dist/components/TaskActivityTimeline.d.ts +31 -0
  173. package/dist/components/TaskActivityTimeline.d.ts.map +1 -0
  174. package/dist/components/TaskExecutionAttempts.d.ts +28 -0
  175. package/dist/components/TaskExecutionAttempts.d.ts.map +1 -0
  176. package/dist/components/TaskIntelligencePanel.d.ts +42 -0
  177. package/dist/components/TaskIntelligencePanel.d.ts.map +1 -0
  178. package/dist/components/TaskRiskPanel.d.ts +31 -0
  179. package/dist/components/TaskRiskPanel.d.ts.map +1 -0
  180. package/dist/components/TechStackView/DependencyDetail.d.ts +20 -0
  181. package/dist/components/TechStackView/DependencyDetail.d.ts.map +1 -0
  182. package/dist/components/TechStackView/DependencyTable.d.ts +17 -0
  183. package/dist/components/TechStackView/DependencyTable.d.ts.map +1 -0
  184. package/dist/components/TechStackView/FindingsPanel.d.ts +15 -0
  185. package/dist/components/TechStackView/FindingsPanel.d.ts.map +1 -0
  186. package/dist/components/TechStackView/TechStackToolbar.d.ts +26 -0
  187. package/dist/components/TechStackView/TechStackToolbar.d.ts.map +1 -0
  188. package/dist/components/TechStackView/index.d.ts +18 -0
  189. package/dist/components/TechStackView/index.d.ts.map +1 -0
  190. package/dist/components/TechStackView/shared.d.ts +73 -0
  191. package/dist/components/TechStackView/shared.d.ts.map +1 -0
  192. package/dist/components/TodosPanel.d.ts.map +1 -1
  193. package/dist/components/WelcomeScreen.d.ts +1 -8
  194. package/dist/components/WelcomeScreen.d.ts.map +1 -1
  195. package/dist/components/WorkspaceDock.d.ts +8 -9
  196. package/dist/components/WorkspaceDock.d.ts.map +1 -1
  197. package/dist/components/activity-bar/index.d.ts.map +1 -1
  198. package/dist/components/codemap-model.d.ts +64 -0
  199. package/dist/components/codemap-model.d.ts.map +1 -0
  200. package/dist/components/index.d.ts +3 -1
  201. package/dist/components/index.d.ts.map +1 -1
  202. package/dist/components/ui/PickerCardList.d.ts +52 -0
  203. package/dist/components/ui/PickerCardList.d.ts.map +1 -0
  204. package/dist/components/ui/sheet.d.ts +7 -1
  205. package/dist/components/ui/sheet.d.ts.map +1 -1
  206. package/dist/hooks/index.d.ts +1 -0
  207. package/dist/hooks/index.d.ts.map +1 -1
  208. package/dist/hooks/useDesktopBridge.d.ts +29 -0
  209. package/dist/hooks/useDesktopBridge.d.ts.map +1 -0
  210. package/dist/hooks/useF5Resilience.d.ts +16 -0
  211. package/dist/hooks/useF5Resilience.d.ts.map +1 -0
  212. package/dist/hooks/useGlobalKeyboardShortcuts.d.ts +25 -0
  213. package/dist/hooks/useGlobalKeyboardShortcuts.d.ts.map +1 -0
  214. package/dist/hooks/useHorizontalScroll.d.ts +17 -0
  215. package/dist/hooks/useHorizontalScroll.d.ts.map +1 -0
  216. package/dist/hooks/useKanbanMeta.d.ts +32 -0
  217. package/dist/hooks/useKanbanMeta.d.ts.map +1 -0
  218. package/dist/hooks/useMemoryForFile.d.ts +30 -0
  219. package/dist/hooks/useMemoryForFile.d.ts.map +1 -0
  220. package/dist/hooks/useScrollPosition.d.ts +16 -0
  221. package/dist/hooks/useScrollPosition.d.ts.map +1 -0
  222. package/dist/hooks/useWebSocket.d.ts +36 -13
  223. package/dist/hooks/useWebSocket.d.ts.map +1 -1
  224. package/dist/hooks/ws-handlers/fleet-handlers.d.ts.map +1 -1
  225. package/dist/hooks/ws-handlers/misc-handlers.d.ts +6 -4
  226. package/dist/hooks/ws-handlers/misc-handlers.d.ts.map +1 -1
  227. package/dist/hooks/ws-handlers/session-handlers.d.ts.map +1 -1
  228. package/dist/hooks/ws-handlers/techstack-handlers.d.ts +13 -0
  229. package/dist/hooks/ws-handlers/techstack-handlers.d.ts.map +1 -0
  230. package/dist/hooks/ws-handlers.d.ts +7 -0
  231. package/dist/hooks/ws-handlers.d.ts.map +1 -1
  232. package/dist/index.css +2881 -2
  233. package/dist/index.css.map +3 -3
  234. package/dist/index.html +16 -17
  235. package/dist/index.js +33292 -16587
  236. package/dist/index.js.map +4 -4
  237. package/dist/lib/agent-office.d.ts +96 -0
  238. package/dist/lib/agent-office.d.ts.map +1 -0
  239. package/dist/lib/desktop-host.d.ts.map +1 -1
  240. package/dist/lib/kanban-cleaner.d.ts +28 -0
  241. package/dist/lib/kanban-cleaner.d.ts.map +1 -0
  242. package/dist/lib/kanban-metadata.d.ts +7 -0
  243. package/dist/lib/kanban-metadata.d.ts.map +1 -0
  244. package/dist/lib/plugin-enablement.d.ts +37 -0
  245. package/dist/lib/plugin-enablement.d.ts.map +1 -0
  246. package/dist/lib/view-navigation.d.ts +1 -1
  247. package/dist/lib/view-navigation.d.ts.map +1 -1
  248. package/dist/lib/ws-client.d.ts +67 -10
  249. package/dist/lib/ws-client.d.ts.map +1 -1
  250. package/dist/main.d.ts +2 -0
  251. package/dist/main.d.ts.map +1 -1
  252. package/dist/providers.json +30 -0
  253. package/dist/stores/chat-store.d.ts.map +1 -1
  254. package/dist/stores/codemap-activity-store.d.ts +79 -0
  255. package/dist/stores/codemap-activity-store.d.ts.map +1 -0
  256. package/dist/stores/cron-store.d.ts +29 -0
  257. package/dist/stores/cron-store.d.ts.map +1 -0
  258. package/dist/stores/file-reference-store.d.ts +7 -1
  259. package/dist/stores/file-reference-store.d.ts.map +1 -1
  260. package/dist/stores/fleet-store.d.ts.map +1 -1
  261. package/dist/stores/{autophase-store.d.ts → goal-run-store.d.ts} +12 -12
  262. package/dist/stores/goal-run-store.d.ts.map +1 -0
  263. package/dist/stores/goal-state-store.d.ts +12 -0
  264. package/dist/stores/goal-state-store.d.ts.map +1 -0
  265. package/dist/stores/index.d.ts +7 -2
  266. package/dist/stores/index.d.ts.map +1 -1
  267. package/dist/stores/kanban-store.d.ts +2 -1
  268. package/dist/stores/kanban-store.d.ts.map +1 -1
  269. package/dist/stores/local-prefs.d.ts +32 -0
  270. package/dist/stores/local-prefs.d.ts.map +1 -1
  271. package/dist/stores/mailbox-store.d.ts +16 -0
  272. package/dist/stores/mailbox-store.d.ts.map +1 -1
  273. package/dist/stores/monitor-store.d.ts +61 -0
  274. package/dist/stores/monitor-store.d.ts.map +1 -1
  275. package/dist/stores/office-map-store.d.ts +4 -0
  276. package/dist/stores/office-map-store.d.ts.map +1 -1
  277. package/dist/stores/session-store.d.ts.map +1 -1
  278. package/dist/stores/techstack-store.d.ts +110 -0
  279. package/dist/stores/techstack-store.d.ts.map +1 -0
  280. package/dist/stores/types.d.ts +29 -3
  281. package/dist/stores/types.d.ts.map +1 -1
  282. package/dist/stores/ui-store.d.ts +44 -13
  283. package/dist/stores/ui-store.d.ts.map +1 -1
  284. package/dist/stores/viz-store.d.ts +6 -0
  285. package/dist/stores/viz-store.d.ts.map +1 -1
  286. package/dist/types.d.ts +672 -41
  287. package/dist/types.d.ts.map +1 -1
  288. package/package.json +16 -18
  289. package/dist/assets/AnalyticsDashboard-BDpQqHtX.js +0 -1
  290. package/dist/assets/AutoPhaseView-BL_RSAcj.js +0 -1
  291. package/dist/assets/ChangesView-Dqfa8YFA.js +0 -1
  292. package/dist/assets/CodeEditor-De8voGEi.js +0 -1
  293. package/dist/assets/DebugDashboard-D0C8_NWJ.js +0 -1
  294. package/dist/assets/DesignGalleryView-Dwn2JYAL.js +0 -1
  295. package/dist/assets/KanbanView-BUugea4e.js +0 -1
  296. package/dist/assets/MailboxDetailView-DCjSrQNI.js +0 -1
  297. package/dist/assets/OfficeMapPanel-Bqqys7xo.js +0 -4
  298. package/dist/assets/ProcessMonitor-CS1LSf39.js +0 -1
  299. package/dist/assets/QueuePanel-Cs7k3M-4.js +0 -1
  300. package/dist/assets/RefreshDebugView-Di0lyXKv.js +0 -1
  301. package/dist/assets/SddBoardView-Dv9R7tBM.js +0 -2
  302. package/dist/assets/SddFlowGraph-BGPIWq7W.js +0 -1
  303. package/dist/assets/SddWizard-BWaJb5ZH.js +0 -1
  304. package/dist/assets/SessionsDashboard-B1u7rjTK.js +0 -1
  305. package/dist/assets/SetupScreen-nZMY7jM6.js +0 -1
  306. package/dist/assets/SkillDetailView-CQevybc9.js +0 -3
  307. package/dist/assets/SpecsView-Xw9k8Llw.js +0 -1
  308. package/dist/assets/TerminalPanel-CPuqFiXC.js +0 -1
  309. package/dist/assets/activity-Bt5JliZ2.js +0 -5
  310. package/dist/assets/activity-DVbfo6OS.js +0 -5
  311. package/dist/assets/activity-DkmpcH1_.js +0 -5
  312. package/dist/assets/activity-HUfcj2wp.js +0 -5
  313. package/dist/assets/activity-lQ47COGt.js +0 -5
  314. package/dist/assets/activity-mgahm8RV.js +0 -5
  315. package/dist/assets/activity-naMKylQi.js +0 -5
  316. package/dist/assets/chat-store-Dy1m3oen.js +0 -5
  317. package/dist/assets/i18n-ClFSbktB.js +0 -2
  318. package/dist/assets/index-DGwt4pL3.js +0 -157
  319. package/dist/assets/index-pw_NYdQ9.css +0 -1
  320. package/dist/assets/local-prefs-DUm4LFyu.js +0 -1
  321. package/dist/assets/markdown-BRAejDWd.js +0 -44
  322. package/dist/assets/settings-BehzuKKh.js +0 -1
  323. package/dist/assets/settings-CO8sA1-8.js +0 -1
  324. package/dist/assets/settings-CSb_3QO0.js +0 -1
  325. package/dist/assets/settings-CVkZ15Hv.js +0 -1
  326. package/dist/assets/settings-DRDu_6WL.js +0 -1
  327. package/dist/assets/settings-Dj8eonZG.js +0 -1
  328. package/dist/assets/settings-DkZAyCk6.js +0 -1
  329. package/dist/assets/ui-store-LCpXBvQT.js +0 -1
  330. package/dist/assets/utils-Bl7Yr7Bw.js +0 -1
  331. package/dist/assets/vendor-C9iFsXuW.js +0 -70
  332. package/dist/assets/vendor-CcOzUMQS.css +0 -1
  333. package/dist/assets/ws-client-WVS5hdJj.js +0 -1
  334. package/dist/assets/xyflow-DtxX27Jz.css +0 -1
  335. package/dist/assets/xyflow-YzHYNDhB.js +0 -7
  336. package/dist/components/AutoPhaseView.d.ts.map +0 -1
  337. package/dist/lib/analytics.d.ts +0 -38
  338. package/dist/lib/analytics.d.ts.map +0 -1
  339. package/dist/server/index.d.ts.map +0 -1
  340. package/dist/stores/autophase-store.d.ts.map +0 -1
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Usage } from '@wrongstack/core';
2
- import type { KanbanBoard, KanbanBoardSummary, KanbanTask } from '@wrongstack/kanban';
2
+ import type { KanbanBoard, KanbanBoardPresence, KanbanBoardSummary, KanbanEvent, KanbanTask } from '@wrongstack/kanban';
3
3
  export interface WSMessage {
4
4
  type: string;
5
5
  payload: unknown;
@@ -27,6 +27,8 @@ export interface WSSessionStart {
27
27
  replayUsage?: Usage | undefined;
28
28
  /** True when no provider+model is configured yet — show the setup screen. */
29
29
  needsSetup?: boolean | undefined;
30
+ /** Feature negotiation prevents a newer WebUI from sending messages to an older backend. */
31
+ protocolCapabilities?: string[] | undefined;
30
32
  };
31
33
  }
32
34
  export interface WSSessionEnd {
@@ -75,12 +77,22 @@ export interface WSThinkingDelta {
75
77
  text: string;
76
78
  };
77
79
  }
80
+ export interface WSCodeMapFileTarget {
81
+ filePath: string;
82
+ operation: 'read' | 'write' | 'edit' | 'delete' | 'search';
83
+ line?: number | undefined;
84
+ endLine?: number | undefined;
85
+ }
78
86
  export interface WSToolUseStart {
79
87
  type: 'tool.started';
80
88
  payload: SessionScopedPayload & {
81
89
  id: string;
82
90
  name: string;
91
+ traceId?: string | undefined;
92
+ agentId?: string | undefined;
93
+ agentName?: string | undefined;
83
94
  input?: unknown | undefined;
95
+ fileTargets?: WSCodeMapFileTarget[] | undefined;
84
96
  messageId: string;
85
97
  };
86
98
  }
@@ -89,10 +101,17 @@ export interface WSToolProgress {
89
101
  payload: SessionScopedPayload & {
90
102
  name: string;
91
103
  id: string;
104
+ traceId?: string | undefined;
105
+ agentId?: string | undefined;
106
+ agentName?: string | undefined;
92
107
  event: {
93
108
  type: 'log' | 'warning' | 'metric' | 'file_changed' | 'partial_output';
94
109
  text?: string | undefined;
95
110
  data?: Record<string, unknown>;
111
+ path?: string | undefined;
112
+ operation?: 'write' | 'edit' | 'delete' | 'rename' | undefined;
113
+ line?: number | undefined;
114
+ endLine?: number | undefined;
96
115
  };
97
116
  };
98
117
  }
@@ -101,10 +120,50 @@ export interface WSToolExecuted {
101
120
  payload: SessionScopedPayload & {
102
121
  id: string;
103
122
  name: string;
123
+ traceId?: string | undefined;
124
+ agentId?: string | undefined;
125
+ agentName?: string | undefined;
104
126
  durationMs: number;
105
127
  ok: boolean;
106
128
  input?: unknown | undefined;
129
+ fileTargets?: WSCodeMapFileTarget[] | undefined;
107
130
  output?: string | undefined;
131
+ outputBytes?: number | undefined;
132
+ outputTokens?: number | undefined;
133
+ outputLines?: number | undefined;
134
+ };
135
+ }
136
+ /** Subagent tool lifecycle dedicated to CodeMap; intentionally does not create chat bubbles. */
137
+ export interface WSCodeMapToolStarted {
138
+ type: 'codemap.tool_started';
139
+ payload: SessionScopedPayload & {
140
+ parentSessionId?: string | undefined;
141
+ traceId?: string | undefined;
142
+ agentId: string;
143
+ agentName: string;
144
+ id: string;
145
+ name: string;
146
+ input?: unknown | undefined;
147
+ fileTargets?: WSCodeMapFileTarget[] | undefined;
148
+ output?: string | undefined;
149
+ outputBytes?: number | undefined;
150
+ outputTokens?: number | undefined;
151
+ outputLines?: number | undefined;
152
+ };
153
+ }
154
+ export interface WSCodeMapToolExecuted {
155
+ type: 'codemap.tool_executed';
156
+ payload: SessionScopedPayload & {
157
+ parentSessionId?: string | undefined;
158
+ traceId?: string | undefined;
159
+ agentId: string;
160
+ agentName: string;
161
+ id?: string | undefined;
162
+ name: string;
163
+ durationMs: number;
164
+ ok: boolean;
165
+ input?: unknown | undefined;
166
+ fileTargets?: WSCodeMapFileTarget[] | undefined;
108
167
  };
109
168
  }
110
169
  export interface WSIterationStarted {
@@ -191,6 +250,121 @@ export interface WSRunResult {
191
250
  };
192
251
  };
193
252
  }
253
+ export interface ChronicleEventView {
254
+ schemaVersion: number;
255
+ eventId: string;
256
+ eventType: string;
257
+ occurredAt?: string | undefined;
258
+ observedAt: string;
259
+ persistedAt: string;
260
+ sequence: number;
261
+ hash: string;
262
+ previousHash: string;
263
+ outcome?: string | undefined;
264
+ durationNs?: string | undefined;
265
+ scope: Record<string, string | undefined>;
266
+ correlation: Record<string, string | undefined>;
267
+ runtime?: {
268
+ providerId?: string;
269
+ modelId?: string;
270
+ processId?: number;
271
+ parentProcessId?: number;
272
+ } | undefined;
273
+ resource?: {
274
+ kind: string;
275
+ id: string;
276
+ path?: string;
277
+ lineStart?: number;
278
+ lineEnd?: number;
279
+ } | undefined;
280
+ attributes?: Record<string, unknown> | undefined;
281
+ tags?: Record<string, string> | undefined;
282
+ }
283
+ export interface ChronicleQuery {
284
+ eventId?: string;
285
+ eventTypes?: string[];
286
+ outcomes?: string[];
287
+ from?: string;
288
+ to?: string;
289
+ projectId?: string;
290
+ sessionId?: string;
291
+ agentId?: string;
292
+ taskId?: string;
293
+ providerId?: string;
294
+ modelId?: string;
295
+ traceId?: string;
296
+ logicalRequestId?: string;
297
+ attemptId?: string;
298
+ toolCallId?: string;
299
+ resourceKind?: string;
300
+ resourceId?: string;
301
+ path?: string;
302
+ line?: number;
303
+ text?: string;
304
+ order?: 'asc' | 'desc';
305
+ limit?: number;
306
+ cursor?: string;
307
+ tags?: Record<string, string>;
308
+ attributes?: Record<string, unknown>;
309
+ }
310
+ export type ChronicleFacet = 'eventType' | 'outcome' | 'projectId' | 'sessionId' | 'agentId' | 'taskId' | 'providerId' | 'modelId' | 'resourceKind' | 'resourcePath' | 'toolCallId';
311
+ export interface ChronicleFacetValue {
312
+ value: string;
313
+ count: number;
314
+ }
315
+ export interface ChronicleQueryResult {
316
+ events: ChronicleEventView[];
317
+ total: number;
318
+ nextCursor?: string;
319
+ scannedEvents: number;
320
+ sourceFiles: number;
321
+ invalidLines: number;
322
+ summary: ChronicleSummary;
323
+ }
324
+ export interface ChronicleSummary {
325
+ logicalRequests: number;
326
+ modelAttempts: number;
327
+ completedAttempts: number;
328
+ failedAttempts: number;
329
+ scheduledRetries: number;
330
+ fallbacks: number;
331
+ providers: number;
332
+ models: number;
333
+ inputTokens: number;
334
+ outputTokens: number;
335
+ cacheReadTokens: number;
336
+ cacheWriteTokens: number;
337
+ estimatedCostUsd: number;
338
+ providerAvgDurationMs: number;
339
+ providerP95DurationMs: number;
340
+ toolCalls: number;
341
+ completedTools: number;
342
+ failedTools: number;
343
+ toolAvgDurationMs: number;
344
+ processes: number;
345
+ failedProcesses: number;
346
+ fileEvents: number;
347
+ uniqueFiles: number;
348
+ agentEvents: number;
349
+ uniqueAgents: number;
350
+ decisions: number;
351
+ escalations: number;
352
+ failures: number;
353
+ cancellations: number;
354
+ families: Record<ChronicleSignalFamily, number>;
355
+ failuresByFamily: Record<ChronicleSignalFamily, number>;
356
+ }
357
+ export type ChronicleSignalFamily = 'llm' | 'agent' | 'tool' | 'file' | 'memory' | 'task' | 'decision' | 'runtime';
358
+ export interface ChronicleGraphResult {
359
+ nodes: ChronicleEventView[];
360
+ edges: Array<{
361
+ from: string;
362
+ to: string;
363
+ kind: string;
364
+ confidence: 'explicit' | 'correlated' | 'inferred';
365
+ }>;
366
+ truncated: boolean;
367
+ }
194
368
  export interface WSSessionStats {
195
369
  type: 'session.stats';
196
370
  payload: {
@@ -418,6 +592,212 @@ export interface WSMemoryList {
418
592
  error?: string | undefined;
419
593
  };
420
594
  }
595
+ export type SuperMemoryScope = 'project' | 'user' | 'session' | 'file' | 'symbol';
596
+ export type SuperMemoryStatus = 'active' | 'stale' | 'superseded' | 'contradicted' | 'archived' | 'deleted';
597
+ export interface SuperMemoryAnchor {
598
+ type: 'file' | 'directory' | 'symbol' | 'package' | 'command' | 'test' | 'git';
599
+ path?: string | undefined;
600
+ symbol?: string | undefined;
601
+ command?: string | undefined;
602
+ lineStart?: number | undefined;
603
+ lineEnd?: number | undefined;
604
+ }
605
+ export interface SuperMemoryEntry {
606
+ id: string;
607
+ revision: number;
608
+ scope: SuperMemoryScope;
609
+ kind: string;
610
+ status: SuperMemoryStatus;
611
+ contextPolicy?: 'eligible' | 'never' | undefined;
612
+ text: string;
613
+ summary?: string | undefined;
614
+ importance: number;
615
+ confidence: number;
616
+ freshness: number;
617
+ tags: string[];
618
+ anchors: SuperMemoryAnchor[];
619
+ audience?: {
620
+ roles?: string[];
621
+ taskTypes?: string[];
622
+ modes?: string[];
623
+ } | undefined;
624
+ supersedes?: string[] | undefined;
625
+ supersededBy?: string | undefined;
626
+ contradicts?: string[] | undefined;
627
+ createdAt: string;
628
+ updatedAt: string;
629
+ lastAccessedAt?: string | undefined;
630
+ lastVerifiedAt?: string | undefined;
631
+ expiresAt?: string | undefined;
632
+ }
633
+ export interface SuperMemoryStats {
634
+ total: number;
635
+ byStatus: Record<string, number>;
636
+ byKind: Record<string, number>;
637
+ edges: number;
638
+ }
639
+ export interface WSMemorySuperList {
640
+ type: 'memory.super.list';
641
+ payload: {
642
+ memories?: SuperMemoryEntry[] | undefined;
643
+ stats?: SuperMemoryStats | undefined;
644
+ error?: string | undefined;
645
+ };
646
+ }
647
+ export interface WSMemorySuperGet {
648
+ type: 'memory.super.get';
649
+ payload: {
650
+ memory?: SuperMemoryEntry | undefined;
651
+ error?: string | undefined;
652
+ };
653
+ }
654
+ export interface WSMemorySuperUpdate {
655
+ type: 'memory.super.update';
656
+ payload: {
657
+ memory?: SuperMemoryEntry | undefined;
658
+ error?: string | undefined;
659
+ };
660
+ }
661
+ export interface WSMemorySuperRemember {
662
+ type: 'memory.super.remember';
663
+ payload: {
664
+ memory?: SuperMemoryEntry | undefined;
665
+ error?: string | undefined;
666
+ };
667
+ }
668
+ export interface WSMemorySuperDelete {
669
+ type: 'memory.super.delete';
670
+ payload: {
671
+ success: boolean;
672
+ message: string;
673
+ };
674
+ }
675
+ /**
676
+ * Why a memory matched the file/drawer query. Mirrors
677
+ * `MemoryMatchVia` from `@wrongstack/super-memory` (see PR #4 backend).
678
+ * Kept as a local re-declaration so the webui types module doesn't have to
679
+ * import from super-memory directly.
680
+ */
681
+ export type MemoryMatchVia = 'scope_file' | 'scope_symbol' | 'anchor_file' | 'anchor_symbol' | 'anchor_directory' | 'mention';
682
+ export interface MemoryPendingReview {
683
+ candidateId: string;
684
+ reason: string;
685
+ suggestedAction: 'delete' | 'archive' | 'update' | 'investigate';
686
+ ageDays: number;
687
+ }
688
+ /** Web-side mirror of `MemoryForFileMatch` — superset kept local for layering. */
689
+ export interface MemoryForFileMatch {
690
+ memory: SuperMemoryEntry;
691
+ matchedVia: MemoryMatchVia;
692
+ /** 0..1; higher = stronger match signal. */
693
+ matchStrength: number;
694
+ /** Populated for `status='superseded'` records when a head-of-chain exists. */
695
+ supersededByActiveId?: string | undefined;
696
+ /** Populated when hygiene has emitted a pending review candidate. */
697
+ pendingReview?: MemoryPendingReview | undefined;
698
+ }
699
+ export interface MemoryForFileResponse {
700
+ filePath: string;
701
+ primaryMatches: MemoryForFileMatch[];
702
+ symbolMatches: MemoryForFileMatch[];
703
+ relatedMatches: MemoryForFileMatch[];
704
+ totalCount: number;
705
+ activeCount: number;
706
+ supersededCount: number;
707
+ reviewPendingCount: number;
708
+ }
709
+ /**
710
+ * Request payload for `memory.super.forFile`. Cursor fields are optional —
711
+ * when both are provided, symbol-anchored memories overlapping the cursor
712
+ * range surface first (cursor-aware boost).
713
+ */
714
+ export interface WSMemorySuperForFileRequest {
715
+ /** Project-relative file path. */
716
+ filePath: string;
717
+ /** Optional caret line (1-indexed). */
718
+ lineStart?: number;
719
+ /** Optional last caret line. Pair with `lineStart`. */
720
+ lineEnd?: number;
721
+ /** Per-bucket cap. Default 50. */
722
+ limit?: number;
723
+ /** Default true. Include superseded memories (with supersededByActiveId). */
724
+ showSuperseded?: boolean;
725
+ /** Default false. Show recoverable deleted memories for one-click recovery. */
726
+ showDeleted?: boolean;
727
+ }
728
+ export interface WSMemorySuperForFile {
729
+ type: 'memory.super.forFile';
730
+ payload: {
731
+ response?: MemoryForFileResponse | undefined;
732
+ error?: string | undefined;
733
+ };
734
+ }
735
+ export interface WSMemorySuperRecover {
736
+ type: 'memory.super.recover';
737
+ payload: {
738
+ /** The restored memory (active status). */
739
+ memory?: SuperMemoryEntry | undefined;
740
+ /** True when the requested id was already active/superseded (no-op write). */
741
+ noop?: boolean | undefined;
742
+ /** Head-of-chain id when the requested id was superseded. */
743
+ activeId?: string | undefined;
744
+ error?: string | undefined;
745
+ };
746
+ }
747
+ export interface WSMemorySuperCandidateResolve {
748
+ type: 'memory.super.candidateResolve';
749
+ payload: {
750
+ /** The resolved candidate (with updated status). */
751
+ candidate?: MemoryCandidateEntry | undefined;
752
+ /** The user-facing action that was applied: accept | reject. */
753
+ resolvedAction?: 'accept' | 'reject' | undefined;
754
+ error?: string | undefined;
755
+ };
756
+ }
757
+ /** Local mirror of super-memory's `MemoryCandidate`. */
758
+ export interface MemoryCandidateEntry {
759
+ schemaVersion: 1;
760
+ id: string;
761
+ status: 'pending' | 'accepted' | 'rejected' | 'merged';
762
+ text: string;
763
+ kind: string;
764
+ confidence: number;
765
+ importance: number;
766
+ tags: string[];
767
+ anchors: SuperMemoryAnchor[];
768
+ sources: Array<{
769
+ type: 'user' | 'session' | 'tool_result' | 'project_instruction' | 'file' | 'test' | 'command' | 'legacy_memory';
770
+ sessionId?: string;
771
+ toolUseId?: string;
772
+ path?: string;
773
+ command?: string;
774
+ excerptHash?: string;
775
+ }>;
776
+ createdAt: string;
777
+ updatedAt: string;
778
+ }
779
+ export interface WSMemorySuperBackfillRecoverable {
780
+ type: 'memory.super.backfillRecoverable';
781
+ payload: {
782
+ /** Records that were backfilled into a fresh active version (dryRun=false). */
783
+ recoveredRecords?: Array<{
784
+ originalId: string;
785
+ newActiveId: string;
786
+ kind: string;
787
+ scope: string;
788
+ textPreview: string;
789
+ deletedAt: string;
790
+ persistence: string;
791
+ }> | undefined;
792
+ /** Total count of records recovered in this run. */
793
+ recovered?: number | undefined;
794
+ /** Total count examined. */
795
+ examined?: number | undefined;
796
+ /** True when the request was a dry-run (no writes). */
797
+ dryRun?: boolean | undefined;
798
+ error?: string | undefined;
799
+ };
800
+ }
421
801
  export interface WSSkillsList {
422
802
  type: 'skills.list';
423
803
  payload: {
@@ -664,10 +1044,19 @@ export interface WSSessionsList {
664
1044
  sessions: Array<{
665
1045
  id: string;
666
1046
  title: string;
1047
+ name?: string | undefined;
667
1048
  startedAt: string;
1049
+ endedAt?: string | undefined;
668
1050
  model: string;
669
1051
  provider: string;
670
1052
  tokenTotal: number;
1053
+ iterationCount?: number | undefined;
1054
+ toolCallCount?: number | undefined;
1055
+ toolErrorCount?: number | undefined;
1056
+ fileChangeCount?: number | undefined;
1057
+ toolBreakdown?: Record<string, number> | undefined;
1058
+ compactionCount?: number | undefined;
1059
+ outcome?: 'completed' | 'error' | 'timeout' | 'aborted' | undefined;
671
1060
  isCurrent: boolean;
672
1061
  }>;
673
1062
  error?: string | undefined;
@@ -841,21 +1230,21 @@ export interface WSModesList {
841
1230
  activeId: string;
842
1231
  };
843
1232
  }
844
- /** AutoPhase live state broadcast (see server/autophase-ws-handler.ts). */
845
- export interface WSAutoPhaseState {
846
- type: 'autophase.state';
1233
+ /** Goal live state broadcast (see server/goal-ws-handler.ts). */
1234
+ export interface WSGoalState {
1235
+ type: 'goal.state';
847
1236
  payload: Record<string, unknown>;
848
1237
  }
849
- export interface WSAutoPhaseProgress {
850
- type: 'autophase.progress';
1238
+ export interface WSGoalProgress {
1239
+ type: 'goal.progress';
851
1240
  payload: Record<string, unknown>;
852
1241
  }
853
- export interface WSAutoPhaseLifecycle {
854
- type: 'autophase.paused' | 'autophase.resumed' | 'autophase.stopped' | 'autophase.saved' | 'autophase.completed' | 'autophase.failed' | 'autophase.error' | 'autophase.cleared' | 'autophase.reverted';
1242
+ export interface WSGoalLifecycle {
1243
+ type: 'goal.paused' | 'goal.resumed' | 'goal.stopped' | 'goal.saved' | 'goal.completed' | 'goal.failed' | 'goal.error' | 'goal.cleared' | 'goal.reverted';
855
1244
  payload: Record<string, unknown>;
856
1245
  }
857
- export interface WSAutoPhaseList {
858
- type: 'autophase.list';
1246
+ export interface WSGoalList {
1247
+ type: 'goal.list';
859
1248
  payload: {
860
1249
  graphs: unknown[];
861
1250
  };
@@ -876,6 +1265,7 @@ export interface WSAgentTimelineMessage {
876
1265
  iteration: number;
877
1266
  ts: string;
878
1267
  toolName?: string | undefined;
1268
+ toolOk?: boolean | undefined;
879
1269
  costUsd?: number | undefined;
880
1270
  };
881
1271
  }
@@ -894,7 +1284,20 @@ export interface WSKanbanResult {
894
1284
  type: `kanban.${string}`;
895
1285
  payload: {
896
1286
  success: boolean;
897
- data?: KanbanBoard | KanbanBoardSummary[] | KanbanTask | KanbanTask[] | Record<string, unknown> | null;
1287
+ data?: KanbanBoard | KanbanBoardSummary[] | KanbanTask | KanbanTask[] | KanbanEvent[] | Record<string, unknown> | null;
1288
+ error?: string | undefined;
1289
+ };
1290
+ }
1291
+ export interface WSKanbanTaskActivity {
1292
+ type: 'kanban.task.activity';
1293
+ payload: {
1294
+ success: boolean;
1295
+ data?: {
1296
+ boardId: string;
1297
+ taskId: string;
1298
+ events: KanbanEvent[];
1299
+ presence?: KanbanBoardPresence[] | undefined;
1300
+ } | undefined;
898
1301
  error?: string | undefined;
899
1302
  };
900
1303
  }
@@ -1055,79 +1458,82 @@ export interface BrainConfigPatchWire {
1055
1458
  autoDenyAfterFailures?: number | null | undefined;
1056
1459
  } | null | undefined;
1057
1460
  }
1058
- export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1059
- type: 'autophase.start';
1461
+ export type WSClientMessageCore = WSUserMessage | WSToolConfirmResult | {
1462
+ type: 'side_effects.list';
1463
+ payload?: Record<string, never>;
1464
+ } | {
1465
+ type: 'goal.start';
1060
1466
  payload: {
1061
1467
  title: string;
1062
1468
  phases?: unknown[] | undefined;
1063
1469
  autonomous?: boolean | undefined;
1064
1470
  /** Per-run override of git-worktree isolation. Omitted → env default
1065
- * (WRONGSTACK_AUTOPHASE_WORKTREES). false → run on the current branch. */
1471
+ * (WRONGSTACK_GOAL_WORKTREES). false → run on the current branch. */
1066
1472
  worktrees?: boolean | undefined;
1067
1473
  };
1068
1474
  } | {
1069
- type: 'autophase.pause';
1475
+ type: 'goal.pause';
1070
1476
  payload: Record<string, never>;
1071
1477
  } | {
1072
- type: 'autophase.resume';
1478
+ type: 'goal.resume';
1073
1479
  payload: Record<string, never>;
1074
1480
  } | {
1075
- type: 'autophase.stop';
1481
+ type: 'goal.stop';
1076
1482
  payload: Record<string, never>;
1077
1483
  } | {
1078
- type: 'autophase.clear';
1484
+ type: 'goal.clear';
1079
1485
  payload?: Record<string, never>;
1080
1486
  } | {
1081
- type: 'autophase.revert';
1487
+ type: 'goal.revert';
1082
1488
  payload?: Record<string, never>;
1083
1489
  } | {
1084
- type: 'autophase.status';
1490
+ type: 'goal.status';
1085
1491
  payload?: Record<string, never>;
1086
1492
  } | {
1087
- type: 'autophase.state';
1493
+ type: 'goal.state';
1088
1494
  payload?: Record<string, never>;
1089
1495
  } | {
1090
- type: 'autophase.save';
1496
+ type: 'goal.save';
1091
1497
  payload?: Record<string, never>;
1092
1498
  } | {
1093
- type: 'autophase.list';
1499
+ type: 'goal.list';
1094
1500
  payload?: Record<string, never>;
1095
1501
  } | {
1096
- type: 'autophase.load';
1502
+ type: 'goal.load';
1097
1503
  payload: {
1098
1504
  graphId: string;
1099
1505
  };
1100
1506
  } | {
1101
- type: 'autophase.toggleAutonomous';
1507
+ type: 'goal.toggleAutonomous';
1102
1508
  payload: {
1103
1509
  autonomous?: boolean | undefined;
1104
1510
  };
1105
1511
  } | {
1106
- type: 'autophase.selectPhase';
1512
+ type: 'goal.selectPhase';
1107
1513
  payload: {
1108
1514
  phaseId: string;
1109
1515
  };
1110
1516
  } | {
1111
- type: 'autophase.taskStatus';
1517
+ type: 'goal.taskStatus';
1112
1518
  payload: {
1113
1519
  taskId: string;
1114
1520
  status: string;
1115
1521
  };
1116
1522
  } | {
1117
- type: 'autophase.moveTask';
1523
+ type: 'goal.moveTask';
1118
1524
  payload: {
1119
1525
  taskId: string;
1120
1526
  toPhaseId: string;
1121
1527
  };
1122
1528
  } | {
1123
- type: 'autophase.assignTask';
1529
+ type: 'goal.assignTask';
1124
1530
  payload: {
1125
1531
  taskId: string;
1126
1532
  agentId?: string | undefined;
1127
1533
  agentName?: string | undefined;
1128
1534
  };
1129
1535
  } | {
1130
- type: 'autophase.addTask';
1536
+ type: 'goal.addTask';
1131
1537
  payload: {
1132
1538
  phaseId: string;
1133
1539
  title: string;
@@ -1136,12 +1542,12 @@ export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1136
1542
  priority?: string | undefined;
1137
1543
  };
1138
1544
  } | {
1139
- type: 'autophase.retryTask';
1545
+ type: 'goal.retryTask';
1140
1546
  payload: {
1141
1547
  taskId: string;
1142
1548
  };
1143
1549
  } | {
1144
- type: 'autophase.runTask';
1550
+ type: 'goal.runTask';
1145
1551
  payload: {
1146
1552
  taskId: string;
1147
1553
  };
@@ -1478,16 +1884,82 @@ export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1478
1884
  } | {
1479
1885
  type: 'memory.list';
1480
1886
  } | {
1481
- type: 'memory.remember';
1887
+ type: 'memory.super.list';
1888
+ } | {
1889
+ type: 'memory.super.get';
1482
1890
  payload: {
1483
- text: string;
1484
- scope?: MemoryScope | undefined;
1891
+ id: string;
1892
+ };
1893
+ } | {
1894
+ type: 'memory.super.update';
1895
+ payload: {
1896
+ id: string;
1897
+ text?: string | undefined;
1898
+ tags?: string[] | undefined;
1899
+ kind?: string | undefined;
1900
+ status?: SuperMemoryStatus | undefined;
1901
+ importance?: number | undefined;
1902
+ confidence?: number | undefined;
1903
+ freshness?: number | undefined;
1904
+ anchors?: SuperMemoryAnchor[] | undefined;
1905
+ audience?: {
1906
+ roles?: string[];
1907
+ taskTypes?: string[];
1908
+ modes?: string[];
1909
+ } | undefined;
1910
+ supersedes?: string[] | undefined;
1911
+ contradicts?: string[] | undefined;
1485
1912
  };
1486
1913
  } | {
1487
- type: 'memory.forget';
1914
+ type: 'memory.super.delete';
1915
+ payload: {
1916
+ id: string;
1917
+ reason?: string | undefined;
1918
+ neverInject?: boolean | undefined;
1919
+ };
1920
+ } | {
1921
+ type: 'memory.super.recover';
1922
+ payload: {
1923
+ id: string;
1924
+ reason?: string | undefined;
1925
+ };
1926
+ } | {
1927
+ type: 'memory.super.candidateResolve';
1928
+ payload: {
1929
+ candidateId: string;
1930
+ action: 'accept' | 'reject';
1931
+ reason?: string | undefined;
1932
+ };
1933
+ } | {
1934
+ type: 'memory.super.backfillRecoverable';
1935
+ payload: {
1936
+ apply: boolean;
1937
+ kinds?: string[] | undefined;
1938
+ scopes?: string[] | undefined;
1939
+ updatedAfter?: string | undefined;
1940
+ updatedBefore?: string | undefined;
1941
+ };
1942
+ } | {
1943
+ type: 'memory.super.forFile';
1944
+ payload: WSMemorySuperForFileRequest;
1945
+ } | {
1946
+ type: 'memory.super.remember';
1488
1947
  payload: {
1489
1948
  text: string;
1490
- scope?: MemoryScope | undefined;
1949
+ kind?: string | undefined;
1950
+ scope?: SuperMemoryScope | undefined;
1951
+ tags?: string[] | undefined;
1952
+ importance?: number | undefined;
1953
+ confidence?: number | undefined;
1954
+ freshness?: number | undefined;
1955
+ anchors?: SuperMemoryAnchor[] | undefined;
1956
+ audience?: {
1957
+ roles?: string[];
1958
+ taskTypes?: string[];
1959
+ modes?: string[];
1960
+ } | undefined;
1961
+ supersedes?: string[] | undefined;
1962
+ contradicts?: string[] | undefined;
1491
1963
  };
1492
1964
  } | {
1493
1965
  type: 'skills.list';
@@ -1545,6 +2017,25 @@ export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1545
2017
  } | {
1546
2018
  type: 'stats.get';
1547
2019
  payload?: SessionScopedPayload;
2020
+ } | {
2021
+ type: 'chronicle.query';
2022
+ payload: {
2023
+ query?: ChronicleQuery | undefined;
2024
+ };
2025
+ } | {
2026
+ type: 'chronicle.facet';
2027
+ payload: {
2028
+ field: ChronicleFacet;
2029
+ query?: ChronicleQuery | undefined;
2030
+ limit?: number | undefined;
2031
+ };
2032
+ } | {
2033
+ type: 'chronicle.graph';
2034
+ payload: {
2035
+ seed: ChronicleQuery;
2036
+ hops?: number;
2037
+ maxNodes?: number;
2038
+ };
1548
2039
  } | {
1549
2040
  type: 'session.save';
1550
2041
  payload?: SessionScopedPayload;
@@ -1653,6 +2144,8 @@ export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1653
2144
  };
1654
2145
  } | {
1655
2146
  type: 'goal.get';
2147
+ } | {
2148
+ type: 'goal-state.get';
1656
2149
  } | {
1657
2150
  type: 'autonomy.switch';
1658
2151
  payload: {
@@ -1738,6 +2231,15 @@ export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1738
2231
  type: 'model.refine';
1739
2232
  payload: {
1740
2233
  text: string;
2234
+ /** Retry window override (ms). Set on the auto-retry after a timeout. */
2235
+ timeoutMs?: number | undefined;
2236
+ /** Refine on this provider/model instead of the session's — ephemeral, no session switch. */
2237
+ provider?: string | undefined;
2238
+ model?: string | undefined;
2239
+ /** Previous refinement when the user asks the preview to try again better. */
2240
+ previousRefined?: string | undefined;
2241
+ previousEnglish?: string | undefined;
2242
+ retryFeedback?: string | undefined;
1741
2243
  };
1742
2244
  } | {
1743
2245
  type: 'skills.list';
@@ -1939,7 +2441,29 @@ export type WSClientMessage = WSUserMessage | WSToolConfirmResult | {
1939
2441
  } | {
1940
2442
  type: 'webui.shutdown';
1941
2443
  };
1942
- export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSThinkingDelta | WSToolUseStart | WSToolProgress | WSToolExecuted | WSIterationStarted | WSIterationCompleted | WSIterationLimitReached | WSProviderResponse | WSProviderRetry | WSProviderError | WSProviderFallback | WSProviderStreamError | WSRunResult | WSSessionStats | WSError | WSToolConfirmNeeded | WSTrustPersisted | WSToolLoopDetected | WSDelegateStarted | WSDelegateCompleted | WSContextDebug | WSContextCompacted | WSCompactionFailed | WSContextRepaired | WSContextPct | WSContextMaxContext | WSTokenThreshold | WSTokenCostEstimateUnavailable | WSContextModesList | WSContextModeChanged | WSToolsList | WSMemoryList | WSSkillsList | WSSkillContent | WSDesignList | WSDesignUse | WSDesignState | WSDesignSet | WSDesignMaterialize | WSDesignVerify | WSSkillsInstalled | WSSkillsUninstalled | WSSkillsUpdated | WSSkillsCreated | WSSkillsEdited | WSSkillsExported | WSDiagGet | WSStatsGet | WSSessionsList | WSProviderCatalog | WSProviderModels | WSSavedProviders | WSProviderProbe | WSKeyOperationResult | WSAuthOAuthStatus | WSFilesList | {
2444
+ export type WSClientMessage = WSClientMessageCore;
2445
+ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSThinkingDelta | WSToolUseStart | WSToolProgress | WSToolExecuted | WSCodeMapToolStarted | WSCodeMapToolExecuted | WSIterationStarted | WSIterationCompleted | WSIterationLimitReached | WSProviderResponse | WSProviderRetry | WSProviderError | WSProviderFallback | WSProviderStreamError | WSRunResult | WSSessionStats | WSError | WSToolConfirmNeeded | WSTrustPersisted | WSToolLoopDetected | WSDelegateStarted | WSDelegateCompleted | WSContextDebug | WSContextCompacted | WSCompactionFailed | WSContextRepaired | WSContextPct | WSContextMaxContext | WSTokenThreshold | WSTokenCostEstimateUnavailable | WSContextModesList | WSContextModeChanged | WSToolsList | WSMemoryList | WSMemorySuperList | WSMemorySuperGet | WSMemorySuperUpdate | WSMemorySuperRemember | WSMemorySuperDelete | WSMemorySuperRecover | WSMemorySuperCandidateResolve | WSMemorySuperBackfillRecoverable | WSMemorySuperForFile | WSSkillsList | WSSkillContent | WSDesignList | WSDesignUse | WSDesignState | WSDesignSet | WSDesignMaterialize | WSDesignVerify | WSSkillsInstalled | WSSkillsUninstalled | WSSkillsUpdated | WSSkillsCreated | WSSkillsEdited | WSSkillsExported | WSDiagGet | WSStatsGet | {
2446
+ type: 'chronicle.query_result';
2447
+ payload: ChronicleQueryResult;
2448
+ } | {
2449
+ type: 'chronicle.facet_result';
2450
+ payload: {
2451
+ field: ChronicleFacet;
2452
+ values: ChronicleFacetValue[];
2453
+ diagnostics: {
2454
+ sourceFiles: number;
2455
+ invalidLines: number;
2456
+ };
2457
+ };
2458
+ } | {
2459
+ type: 'chronicle.graph_result';
2460
+ payload: ChronicleGraphResult;
2461
+ } | {
2462
+ type: 'chronicle.error';
2463
+ payload: {
2464
+ message: string;
2465
+ };
2466
+ } | WSSessionsList | WSProviderCatalog | WSProviderModels | WSSavedProviders | WSProviderProbe | WSKeyOperationResult | WSAuthOAuthStatus | WSFilesList | {
1943
2467
  type: 'files.tree';
1944
2468
  payload: {
1945
2469
  root: string;
@@ -1972,7 +2496,7 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
1972
2496
  plan: unknown | null;
1973
2497
  error?: string | undefined;
1974
2498
  };
1975
- } | WSModesList | WSAutoPhaseState | WSAutoPhaseProgress | WSAutoPhaseLifecycle | WSAutoPhaseList | {
2499
+ } | WSModesList | WSGoalState | WSGoalProgress | WSGoalLifecycle | WSGoalList | {
1976
2500
  type: 'specs.list';
1977
2501
  payload: {
1978
2502
  specs: unknown[];
@@ -2016,7 +2540,7 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
2016
2540
  payload: {
2017
2541
  runId: string;
2018
2542
  };
2019
- } | WSEternalIteration | WSAgentTimelineMessage | WSAgentStatusChanged | WSKanbanResult | {
2543
+ } | WSEternalIteration | WSAgentTimelineMessage | WSAgentStatusChanged | WSKanbanResult | WSKanbanTaskActivity | {
2020
2544
  type: 'subagent.event';
2021
2545
  payload: SessionScopedPayload & Record<string, unknown> & {
2022
2546
  kind: string;
@@ -2034,11 +2558,62 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
2034
2558
  }>;
2035
2559
  };
2036
2560
  } | {
2037
- type: 'goal.updated';
2561
+ type: 'goal-state.updated';
2038
2562
  payload: Record<string, unknown> | null;
2039
2563
  } | {
2040
2564
  type: 'prefs.updated';
2041
2565
  payload: Record<string, unknown>;
2566
+ } | {
2567
+ type: 'techstack.job.started';
2568
+ payload: {
2569
+ jobId: string;
2570
+ kind: 'inventory' | 'analyze';
2571
+ };
2572
+ } | {
2573
+ type: 'techstack.job.progress';
2574
+ payload: {
2575
+ jobId: string;
2576
+ phase: string;
2577
+ completed: number;
2578
+ total: number;
2579
+ };
2580
+ } | {
2581
+ type: 'techstack.workspace.completed';
2582
+ payload: {
2583
+ jobId: string;
2584
+ workspaceId: string;
2585
+ ecosystem: string;
2586
+ dependencyCount: number;
2587
+ };
2588
+ } | {
2589
+ type: 'techstack.snapshot.updated';
2590
+ payload: {
2591
+ snapshot: import('@/stores/techstack-store').TechStackSnapshot;
2592
+ stale?: boolean | undefined;
2593
+ };
2594
+ } | {
2595
+ type: 'techstack.report.ready';
2596
+ payload: {
2597
+ reportId: string;
2598
+ summary?: string | undefined;
2599
+ };
2600
+ } | {
2601
+ type: 'techstack.report.delivered';
2602
+ payload: {
2603
+ deliveryId: string;
2604
+ sessionId: string;
2605
+ };
2606
+ } | {
2607
+ type: 'techstack.job.failed';
2608
+ payload: {
2609
+ jobId: string;
2610
+ error: string;
2611
+ };
2612
+ } | {
2613
+ type: 'techstack.job.cancelled';
2614
+ payload: {
2615
+ jobId: string;
2616
+ };
2042
2617
  } | {
2043
2618
  type: 'client.status_update';
2044
2619
  payload: Record<string, unknown>;
@@ -2194,6 +2769,27 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
2194
2769
  payload: SessionScopedPayload & Record<string, unknown> & {
2195
2770
  event: string;
2196
2771
  };
2772
+ } | {
2773
+ type: 'file.saved';
2774
+ payload: SessionScopedPayload & {
2775
+ filePath: string;
2776
+ };
2777
+ } | {
2778
+ type: 'codemap.file_event';
2779
+ payload: SessionScopedPayload & {
2780
+ filePath: string;
2781
+ operation: 'read' | 'write' | 'edit' | 'delete' | 'rename';
2782
+ phase: 'started' | 'completed' | 'changed';
2783
+ source: 'tool' | 'editor' | 'deterministic' | 'watcher' | 'external';
2784
+ at: number;
2785
+ traceId?: string | undefined;
2786
+ agentId?: string | undefined;
2787
+ agentName?: string | undefined;
2788
+ toolUseId?: string | undefined;
2789
+ toolName?: string | undefined;
2790
+ line?: number | undefined;
2791
+ endLine?: number | undefined;
2792
+ };
2197
2793
  } | {
2198
2794
  type: 'session.damaged';
2199
2795
  payload: {
@@ -2233,6 +2829,17 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
2233
2829
  refined: string;
2234
2830
  english: string;
2235
2831
  error?: string | undefined;
2832
+ /** Machine-readable failure class driving client recovery (undefined on success). */
2833
+ errorKind?: 'timeout' | 'empty' | 'provider_error' | undefined;
2834
+ /** Suggested window (ms) for a retry after a timeout. */
2835
+ retryTimeoutMs?: number | undefined;
2836
+ /** One-key "retry with another model" offer (provider/model), if any. */
2837
+ fallbackRef?: string | undefined;
2838
+ /** The provider/model that produced this result (echoes an ephemeral retry). */
2839
+ refinedWith?: {
2840
+ provider: string;
2841
+ model: string;
2842
+ } | undefined;
2236
2843
  };
2237
2844
  } | {
2238
2845
  type: 'coordinator.status';
@@ -2544,6 +3151,30 @@ export type WSServerMessage = WSSessionStart | WSSessionEnd | WSTextDelta | WSTh
2544
3151
  payload: Record<string, unknown> & {
2545
3152
  error?: string | undefined;
2546
3153
  };
3154
+ } | {
3155
+ type: 'cron.snapshot';
3156
+ payload: {
3157
+ count: number;
3158
+ maxConcurrent: number;
3159
+ jobs: Array<{
3160
+ name: string;
3161
+ intervalMs: number;
3162
+ action: string;
3163
+ enabled: boolean;
3164
+ lastRun: string | null;
3165
+ nextRun: string;
3166
+ runCount: number;
3167
+ overdue: boolean;
3168
+ }>;
3169
+ };
3170
+ } | {
3171
+ type: 'cron.job_fired';
3172
+ payload: {
3173
+ name: string;
3174
+ action: string;
3175
+ runCount: number;
3176
+ ts: string;
3177
+ };
2547
3178
  } | {
2548
3179
  type: 'terminal.output';
2549
3180
  payload: {