@sixb/app 0.2.3 → 0.2.5

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 (329) hide show
  1. package/assets/connector-icons/README.md +1 -0
  2. package/assets/connector-icons/ctm.png +0 -0
  3. package/dist/agent/activity-label.d.ts.map +1 -1
  4. package/dist/agent/agent-chat.d.ts +3 -1
  5. package/dist/agent/agent-chat.d.ts.map +1 -1
  6. package/dist/agent/agent-panel.d.ts.map +1 -1
  7. package/dist/agent/artifact-panel.d.ts +3 -1
  8. package/dist/agent/artifact-panel.d.ts.map +1 -1
  9. package/dist/agent/background/background-tool-row.d.ts.map +1 -1
  10. package/dist/agent/background/interpret.d.ts +1 -1
  11. package/dist/agent/background/interpret.d.ts.map +1 -1
  12. package/dist/agent/components/composer-settings.d.ts +1 -1
  13. package/dist/agent/components/composer-settings.d.ts.map +1 -1
  14. package/dist/agent/components/composer.d.ts +22 -5
  15. package/dist/agent/components/composer.d.ts.map +1 -1
  16. package/dist/agent/components/context-meter.d.ts +1 -1
  17. package/dist/agent/components/context-meter.d.ts.map +1 -1
  18. package/dist/agent/components/conversation-panel.d.ts +8 -2
  19. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  20. package/dist/agent/components/message-parts.d.ts +2 -1
  21. package/dist/agent/components/message-parts.d.ts.map +1 -1
  22. package/dist/agent/components/message-view.d.ts.map +1 -1
  23. package/dist/agent/components/pending-messages.d.ts +20 -0
  24. package/dist/agent/components/pending-messages.d.ts.map +1 -0
  25. package/dist/agent/components/sandbox-recovery.d.ts +11 -2
  26. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  27. package/dist/agent/components/threads-button.d.ts +1 -1
  28. package/dist/agent/components/threads-button.d.ts.map +1 -1
  29. package/dist/agent/components/transcript.d.ts +5 -0
  30. package/dist/agent/components/transcript.d.ts.map +1 -1
  31. package/dist/agent/conversation.d.ts +3 -6
  32. package/dist/agent/conversation.d.ts.map +1 -1
  33. package/dist/agent/delegation/agent-exchange.d.ts +16 -0
  34. package/dist/agent/delegation/agent-exchange.d.ts.map +1 -0
  35. package/dist/agent/delegation/child-card.d.ts +3 -3
  36. package/dist/agent/delegation/child-card.d.ts.map +1 -1
  37. package/dist/agent/delegation/child-parts.d.ts +1 -10
  38. package/dist/agent/delegation/child-parts.d.ts.map +1 -1
  39. package/dist/agent/delegation/child-work.d.ts.map +1 -1
  40. package/dist/agent/delegation/interpret.d.ts +9 -10
  41. package/dist/agent/delegation/interpret.d.ts.map +1 -1
  42. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  43. package/dist/agent/file-edits/file-edit-tool-view.d.ts +10 -0
  44. package/dist/agent/file-edits/file-edit-tool-view.d.ts.map +1 -0
  45. package/dist/agent/file-edits/interpret.d.ts +25 -0
  46. package/dist/agent/file-edits/interpret.d.ts.map +1 -0
  47. package/dist/agent/hooks/use-agent-conversation.d.ts +16 -4
  48. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  49. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  50. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
  51. package/dist/agent/i18n/en.d.ts +114 -5
  52. package/dist/agent/i18n/en.d.ts.map +1 -1
  53. package/dist/agent/i18n/fr.d.ts.map +1 -1
  54. package/dist/agent/i18n/index.d.ts +190 -8
  55. package/dist/agent/i18n/index.d.ts.map +1 -1
  56. package/dist/agent/inbox-handoff.d.ts +10 -0
  57. package/dist/agent/inbox-handoff.d.ts.map +1 -0
  58. package/dist/agent/live-run.d.ts +8 -1
  59. package/dist/agent/live-run.d.ts.map +1 -1
  60. package/dist/agent/message-agent/interpret.d.ts +2 -2
  61. package/dist/agent/message-agent/interpret.d.ts.map +1 -1
  62. package/dist/agent/publish-artifact/interpret.d.ts +1 -1
  63. package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
  64. package/dist/agent/questions/interpret.d.ts +31 -0
  65. package/dist/agent/questions/interpret.d.ts.map +1 -0
  66. package/dist/agent/questions/question-card.d.ts +16 -0
  67. package/dist/agent/questions/question-card.d.ts.map +1 -0
  68. package/dist/agent/questions/question-composer.d.ts +15 -0
  69. package/dist/agent/questions/question-composer.d.ts.map +1 -0
  70. package/dist/agent/read/interpret.d.ts +8 -1
  71. package/dist/agent/read/interpret.d.ts.map +1 -1
  72. package/dist/agent/read/read-tool-view.d.ts.map +1 -1
  73. package/dist/agent/search/interpret.d.ts +101 -0
  74. package/dist/agent/search/interpret.d.ts.map +1 -0
  75. package/dist/agent/search/search-tool-view.d.ts +10 -0
  76. package/dist/agent/search/search-tool-view.d.ts.map +1 -0
  77. package/dist/agent/thread-state.d.ts +26 -0
  78. package/dist/agent/thread-state.d.ts.map +1 -0
  79. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  80. package/dist/agent/tool-views/registry.d.ts +5 -6
  81. package/dist/agent/tool-views/registry.d.ts.map +1 -1
  82. package/dist/agent/types.d.ts +5 -1
  83. package/dist/agent/types.d.ts.map +1 -1
  84. package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
  85. package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
  86. package/dist/agent/waits.d.ts +14 -0
  87. package/dist/agent/waits.d.ts.map +1 -0
  88. package/dist/artifacts/card-preview.d.ts.map +1 -1
  89. package/dist/artifacts/edit-session.d.ts +11 -1
  90. package/dist/artifacts/edit-session.d.ts.map +1 -1
  91. package/dist/artifacts/editor/block-handle.d.ts +20 -0
  92. package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
  93. package/dist/artifacts/editor/blocks.d.ts +34 -0
  94. package/dist/artifacts/editor/blocks.d.ts.map +1 -0
  95. package/dist/artifacts/editor/callout-view.d.ts +7 -0
  96. package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
  97. package/dist/artifacts/editor/document-editor.d.ts +30 -0
  98. package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
  99. package/dist/artifacts/editor/figure-view.d.ts +12 -0
  100. package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
  101. package/dist/artifacts/editor/find-blocks.d.ts +6 -0
  102. package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
  103. package/dist/artifacts/editor/markdown-document.d.ts +12 -0
  104. package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
  105. package/dist/artifacts/editor/messages.d.ts +4 -0
  106. package/dist/artifacts/editor/messages.d.ts.map +1 -0
  107. package/dist/artifacts/editor/schema.d.ts +21 -0
  108. package/dist/artifacts/editor/schema.d.ts.map +1 -0
  109. package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
  110. package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
  111. package/dist/artifacts/editor/slash-menu.d.ts +43 -0
  112. package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
  113. package/dist/artifacts/editor/upload.d.ts +12 -0
  114. package/dist/artifacts/editor/upload.d.ts.map +1 -0
  115. package/dist/artifacts/file-source.d.ts +5 -0
  116. package/dist/artifacts/file-source.d.ts.map +1 -1
  117. package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
  118. package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
  119. package/dist/artifacts/frame-editor/commands.d.ts +93 -0
  120. package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
  121. package/dist/artifacts/frame-editor/entry.d.ts +2 -0
  122. package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
  123. package/dist/artifacts/frame-editor/frame.d.ts +5 -0
  124. package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
  125. package/dist/artifacts/frame-editor/keys.d.ts +8 -0
  126. package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
  127. package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
  128. package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
  129. package/dist/artifacts/frame-editor/schema.d.ts +34 -0
  130. package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
  131. package/dist/artifacts/frame-editor/style.d.ts +2 -0
  132. package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
  133. package/dist/artifacts/frame.d.ts +2 -2
  134. package/dist/artifacts/frame.d.ts.map +1 -1
  135. package/dist/artifacts/live/boards.d.ts +2 -0
  136. package/dist/artifacts/live/boards.d.ts.map +1 -1
  137. package/dist/artifacts/live/document.d.ts +32 -0
  138. package/dist/artifacts/live/document.d.ts.map +1 -0
  139. package/dist/artifacts/live/header.d.ts +4 -4
  140. package/dist/artifacts/live/header.d.ts.map +1 -1
  141. package/dist/artifacts/live/presence.d.ts.map +1 -1
  142. package/dist/artifacts/live/session.d.ts +2 -0
  143. package/dist/artifacts/live/session.d.ts.map +1 -1
  144. package/dist/artifacts/live/view.d.ts +4 -3
  145. package/dist/artifacts/live/view.d.ts.map +1 -1
  146. package/dist/artifacts/messages.d.ts +278 -2
  147. package/dist/artifacts/messages.d.ts.map +1 -1
  148. package/dist/artifacts/pdf.d.ts +8 -0
  149. package/dist/artifacts/pdf.d.ts.map +1 -0
  150. package/dist/artifacts/queries.d.ts +80 -0
  151. package/dist/artifacts/queries.d.ts.map +1 -1
  152. package/dist/artifacts/references/references.d.ts +3 -3
  153. package/dist/artifacts/references/references.d.ts.map +1 -1
  154. package/dist/artifacts/renderers/canvas/board-editor.d.ts +11 -4
  155. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
  156. package/dist/artifacts/renderers/canvas/board.d.ts +14 -2
  157. package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
  158. package/dist/artifacts/renderers/canvas/canvas.d.ts +4 -3
  159. package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
  160. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
  161. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
  162. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
  163. package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
  164. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
  165. package/dist/artifacts/renderers/canvas/controls.d.ts +15 -4
  166. package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -1
  167. package/dist/artifacts/renderers/canvas/focus.d.ts +19 -5
  168. package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
  169. package/dist/artifacts/renderers/canvas/gestures.d.ts +46 -0
  170. package/dist/artifacts/renderers/canvas/gestures.d.ts.map +1 -0
  171. package/dist/artifacts/renderers/canvas/page-resize.d.ts +21 -0
  172. package/dist/artifacts/renderers/canvas/page-resize.d.ts.map +1 -0
  173. package/dist/artifacts/renderers/canvas/page-size-controls.d.ts +21 -0
  174. package/dist/artifacts/renderers/canvas/page-size-controls.d.ts.map +1 -0
  175. package/dist/artifacts/renderers/canvas/page-size.d.ts +93 -0
  176. package/dist/artifacts/renderers/canvas/page-size.d.ts.map +1 -0
  177. package/dist/artifacts/renderers/canvas/page-zoom.d.ts +64 -0
  178. package/dist/artifacts/renderers/canvas/page-zoom.d.ts.map +1 -0
  179. package/dist/artifacts/renderers/canvas/shown-size.d.ts +26 -0
  180. package/dist/artifacts/renderers/canvas/shown-size.d.ts.map +1 -0
  181. package/dist/artifacts/renderers/designed-document.d.ts +28 -0
  182. package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
  183. package/dist/artifacts/renderers/document-tree.d.ts +2 -0
  184. package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
  185. package/dist/artifacts/renderers/document.d.ts +9 -1
  186. package/dist/artifacts/renderers/document.d.ts.map +1 -1
  187. package/dist/artifacts/renderers/live-frame.d.ts +145 -0
  188. package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
  189. package/dist/artifacts/renderers/page-editor.d.ts +16 -0
  190. package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
  191. package/dist/artifacts/renderers/page.d.ts +10 -1
  192. package/dist/artifacts/renderers/page.d.ts.map +1 -1
  193. package/dist/artifacts/viewer.d.ts.map +1 -1
  194. package/dist/{chunk-001c4gnk.js → chunk-4fex83k2.js} +19965 -13027
  195. package/dist/chunk-4fex83k2.js.map +239 -0
  196. package/dist/{chunk-5crvhjp2.js → chunk-4wm09prf.js} +1633 -1999
  197. package/dist/chunk-4wm09prf.js.map +27 -0
  198. package/dist/{chunk-fwb9mxwm.js → chunk-5sgac68y.js} +1 -1
  199. package/dist/{chunk-kes4ygmz.js → chunk-69qgh20f.js} +1 -1
  200. package/dist/chunk-y51c4tsz.js +11 -0
  201. package/dist/chunk-y51c4tsz.js.map +10 -0
  202. package/dist/index.d.ts +4 -1
  203. package/dist/index.d.ts.map +1 -1
  204. package/dist/index.js +13 -6
  205. package/dist/index.js.map +5 -5
  206. package/dist/pages/console/data/messages.d.ts +6 -0
  207. package/dist/pages/console/data/messages.d.ts.map +1 -1
  208. package/dist/pages/console/data/shared.d.ts.map +1 -1
  209. package/dist/pages.js +12 -5
  210. package/dist/pages.js.map +6 -6
  211. package/dist/shell/search-command.d.ts.map +1 -1
  212. package/package.json +22 -5
  213. package/src/agent/activity-label.ts +9 -1
  214. package/src/agent/agent-chat.tsx +57 -37
  215. package/src/agent/agent-execution-trace.tsx +2 -2
  216. package/src/agent/agent-panel.tsx +6 -4
  217. package/src/agent/agent.css +254 -0
  218. package/src/agent/artifact-panel.tsx +77 -22
  219. package/src/agent/background/background-tool-row.tsx +24 -10
  220. package/src/agent/background/interpret.ts +60 -51
  221. package/src/agent/components/composer-settings.tsx +20 -10
  222. package/src/agent/components/composer.tsx +342 -104
  223. package/src/agent/components/context-meter.tsx +7 -3
  224. package/src/agent/components/conversation-panel.tsx +96 -37
  225. package/src/agent/components/message-parts.tsx +390 -64
  226. package/src/agent/components/message-view.tsx +12 -2
  227. package/src/agent/components/pending-messages.tsx +338 -0
  228. package/src/agent/components/sandbox-recovery.tsx +36 -17
  229. package/src/agent/components/threads-button.tsx +3 -2
  230. package/src/agent/components/transcript.tsx +92 -45
  231. package/src/agent/conversation.ts +203 -54
  232. package/src/agent/delegation/agent-exchange.tsx +53 -0
  233. package/src/agent/delegation/child-card.tsx +6 -40
  234. package/src/agent/delegation/child-parts.tsx +1 -84
  235. package/src/agent/delegation/child-work.tsx +19 -5
  236. package/src/agent/delegation/interpret.ts +64 -61
  237. package/src/agent/delegation/model.ts +1 -1
  238. package/src/agent/file-edits/file-edit-tool-view.tsx +126 -0
  239. package/src/agent/file-edits/interpret.ts +120 -0
  240. package/src/agent/hooks/use-agent-conversation.ts +360 -92
  241. package/src/agent/hooks/use-thread-stream.ts +10 -0
  242. package/src/agent/i18n/en.ts +134 -16
  243. package/src/agent/i18n/fr.ts +122 -16
  244. package/src/agent/inbox-handoff.ts +47 -0
  245. package/src/agent/live-run.ts +23 -2
  246. package/src/agent/message-agent/interpret.ts +4 -3
  247. package/src/agent/publish-artifact/interpret.ts +14 -5
  248. package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +2 -2
  249. package/src/agent/questions/interpret.ts +90 -0
  250. package/src/agent/questions/question-card.tsx +57 -0
  251. package/src/agent/questions/question-composer.tsx +257 -0
  252. package/src/agent/react-router.tsx +2 -2
  253. package/src/agent/read/interpret.ts +34 -1
  254. package/src/agent/read/read-tool-view.tsx +20 -4
  255. package/src/agent/search/interpret.ts +367 -0
  256. package/src/agent/search/search-tool-view.tsx +235 -0
  257. package/src/agent/thread-state.ts +114 -0
  258. package/src/agent/tool-views/built-in.tsx +33 -6
  259. package/src/agent/tool-views/registry.tsx +28 -2
  260. package/src/agent/types.ts +7 -0
  261. package/src/agent/view-file/view-file-tool-view.tsx +33 -19
  262. package/src/agent/waits.ts +50 -0
  263. package/src/artifacts/artifacts.css +434 -0
  264. package/src/artifacts/card-preview.tsx +6 -1
  265. package/src/artifacts/edit-session.tsx +15 -1
  266. package/src/artifacts/editor/block-handle.tsx +278 -0
  267. package/src/artifacts/editor/blocks.ts +216 -0
  268. package/src/artifacts/editor/callout-view.tsx +31 -0
  269. package/src/artifacts/editor/document-editor.tsx +484 -0
  270. package/src/artifacts/editor/figure-view.tsx +66 -0
  271. package/src/artifacts/editor/find-blocks.ts +19 -0
  272. package/src/artifacts/editor/markdown-document.tsx +72 -0
  273. package/src/artifacts/editor/messages.ts +4 -0
  274. package/src/artifacts/editor/schema.ts +159 -0
  275. package/src/artifacts/editor/selection-toolbar.tsx +364 -0
  276. package/src/artifacts/editor/slash-menu.tsx +251 -0
  277. package/src/artifacts/editor/upload.ts +40 -0
  278. package/src/artifacts/file-source.ts +11 -0
  279. package/src/artifacts/frame-editor/bundle.ts +8 -0
  280. package/src/artifacts/frame-editor/commands.ts +565 -0
  281. package/src/artifacts/frame-editor/entry.ts +6 -0
  282. package/src/artifacts/frame-editor/frame.ts +847 -0
  283. package/src/artifacts/frame-editor/generated/editor.txt +149 -0
  284. package/src/artifacts/frame-editor/generated.d.ts +5 -0
  285. package/src/artifacts/frame-editor/keys.ts +323 -0
  286. package/src/artifacts/frame-editor/protocol.ts +151 -0
  287. package/src/artifacts/frame-editor/schema.ts +293 -0
  288. package/src/artifacts/frame-editor/style.ts +58 -0
  289. package/src/artifacts/frame.tsx +14 -5
  290. package/src/artifacts/live/boards.ts +46 -3
  291. package/src/artifacts/live/document.ts +89 -0
  292. package/src/artifacts/live/header.tsx +9 -14
  293. package/src/artifacts/live/presence.ts +5 -1
  294. package/src/artifacts/live/session.ts +4 -2
  295. package/src/artifacts/live/view.ts +14 -8
  296. package/src/artifacts/messages.ts +192 -2
  297. package/src/artifacts/pdf.ts +50 -0
  298. package/src/artifacts/references/references.tsx +46 -11
  299. package/src/artifacts/renderers/canvas/board-editor.tsx +44 -155
  300. package/src/artifacts/renderers/canvas/board.tsx +70 -8
  301. package/src/artifacts/renderers/canvas/canvas.tsx +66 -15
  302. package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
  303. package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
  304. package/src/artifacts/renderers/canvas/comments.ts +8 -4
  305. package/src/artifacts/renderers/canvas/controls.tsx +64 -30
  306. package/src/artifacts/renderers/canvas/focus.tsx +200 -56
  307. package/src/artifacts/renderers/canvas/gestures.ts +265 -0
  308. package/src/artifacts/renderers/canvas/page-resize.tsx +542 -0
  309. package/src/artifacts/renderers/canvas/page-size-controls.tsx +193 -0
  310. package/src/artifacts/renderers/canvas/page-size.ts +218 -0
  311. package/src/artifacts/renderers/canvas/page-zoom.ts +280 -0
  312. package/src/artifacts/renderers/canvas/shown-size.ts +105 -0
  313. package/src/artifacts/renderers/designed-document.tsx +277 -0
  314. package/src/artifacts/renderers/document-tree.ts +9 -0
  315. package/src/artifacts/renderers/document.tsx +13 -102
  316. package/src/artifacts/renderers/live-frame.ts +163 -0
  317. package/src/artifacts/renderers/page-editor.tsx +613 -0
  318. package/src/artifacts/renderers/page.tsx +21 -4
  319. package/src/artifacts/viewer.tsx +101 -41
  320. package/src/index.ts +8 -0
  321. package/src/pages/console/data/messages.ts +6 -0
  322. package/src/pages/console/data/projections.tsx +4 -0
  323. package/src/pages/console/data/shared.tsx +1 -0
  324. package/src/pages/console/ontology/lineage/trail.tsx +3 -0
  325. package/src/shell/search-command.tsx +2 -0
  326. package/dist/chunk-001c4gnk.js.map +0 -204
  327. package/dist/chunk-5crvhjp2.js.map +0 -28
  328. /package/dist/{chunk-fwb9mxwm.js.map → chunk-5sgac68y.js.map} +0 -0
  329. /package/dist/{chunk-kes4ygmz.js.map → chunk-69qgh20f.js.map} +0 -0
@@ -53,6 +53,18 @@ export declare const useAgentMessages: () => {
53
53
  add: string;
54
54
  mention: string;
55
55
  commands: string;
56
+ steerPending: string;
57
+ queuePending: string;
58
+ sendNowPending: string;
59
+ waitingFile: string;
60
+ steer: string;
61
+ queue: string;
62
+ sendNow: string;
63
+ withdraw: string;
64
+ messageActions: string;
65
+ changeFailed: string;
66
+ withdrawFailed: string;
67
+ notYourAnswer: string;
56
68
  };
57
69
  commands: {
58
70
  list: string;
@@ -261,6 +273,7 @@ export declare const useAgentMessages: () => {
261
273
  messageAgentFailed: (key: string) => string;
262
274
  reasoning: string;
263
275
  steps: (steps: number) => string;
276
+ latest: string;
264
277
  searchFailedHint: string;
265
278
  noSources: string;
266
279
  running: string;
@@ -303,10 +316,7 @@ export declare const useAgentMessages: () => {
303
316
  timeout: string;
304
317
  unknown: string;
305
318
  };
306
- fromAgent: string;
307
- asks: string;
308
- answer: string;
309
- answerHint: string;
319
+ noAnswer: string;
310
320
  close: string;
311
321
  viewRequest: string;
312
322
  stepsLater: string;
@@ -340,6 +350,9 @@ export declare const useAgentMessages: () => {
340
350
  heardFrom: (key: string) => string;
341
351
  heardFromCount: (agents: number) => string;
342
352
  waitFailed: string;
353
+ stoppingAgent: (key: string) => string;
354
+ stoppedAgent: (key: string) => string;
355
+ stopAgentFailed: (key: string) => string;
343
356
  askedAgent: (question: string) => string;
344
357
  line: {
345
358
  names: (names: readonly string[]) => string;
@@ -405,6 +418,34 @@ export declare const useAgentMessages: () => {
405
418
  failed: (name: string) => string;
406
419
  open: (name: string) => string;
407
420
  };
421
+ questions: {
422
+ card: (count: number) => string;
423
+ asked: string;
424
+ waiting: string;
425
+ running: string;
426
+ send: string;
427
+ sending: string;
428
+ pickAny: string;
429
+ typeAnswer: string;
430
+ typeOther: string;
431
+ somethingElse: string;
432
+ next: string;
433
+ back: string;
434
+ step: (step: number, total: number) => string;
435
+ dismiss: string;
436
+ };
437
+ edit: {
438
+ title: (name: string) => string;
439
+ running: (name: string) => string;
440
+ failed: (name: string) => string;
441
+ };
442
+ write: {
443
+ created: (name: string) => string;
444
+ replaced: (name: string) => string;
445
+ running: (name: string) => string;
446
+ failed: (name: string) => string;
447
+ lines: (lines: number) => string;
448
+ };
408
449
  read: {
409
450
  file: {
410
451
  title: (name: string) => string;
@@ -421,6 +462,12 @@ export declare const useAgentMessages: () => {
421
462
  running: (name: string) => string;
422
463
  failed: (name: string) => string;
423
464
  };
465
+ directory: {
466
+ title: (name: string) => string;
467
+ running: (name: string) => string;
468
+ failed: (name: string) => string;
469
+ };
470
+ entries: (entries: number) => string;
424
471
  memory: {
425
472
  title: (project: boolean) => string;
426
473
  running: (project: boolean) => string;
@@ -434,6 +481,46 @@ export declare const useAgentMessages: () => {
434
481
  lines: (start: number, end: number) => string;
435
482
  moreAvailable: (range: string) => string;
436
483
  };
484
+ search: {
485
+ found: (files: number) => string;
486
+ foundMore: (files: number) => string;
487
+ looked: string;
488
+ looking: string;
489
+ lookFailed: string;
490
+ searchedFor: (term: string) => string;
491
+ searched: string;
492
+ searching: string;
493
+ searchFailed: (term?: string) => string;
494
+ memory: {
495
+ title: (project: boolean) => string;
496
+ running: (project: boolean) => string;
497
+ failed: (project: boolean) => string;
498
+ };
499
+ guide: {
500
+ title: (name: string) => string;
501
+ running: (name: string) => string;
502
+ failed: (name: string) => string;
503
+ };
504
+ ontology: {
505
+ title: string;
506
+ running: string;
507
+ failed: string;
508
+ };
509
+ term: (term: string) => string;
510
+ files: (files: number) => string;
511
+ moreFiles: (files: number) => string;
512
+ matches: (matches: number, files: number) => string;
513
+ moreMatches: (matches: number) => string;
514
+ noMatches: string;
515
+ moreInFile: (matches: number) => string;
516
+ noFiles: string;
517
+ noLines: string;
518
+ truncatedFiles: (files: number) => string;
519
+ truncatedMatches: (lines: number) => string;
520
+ incomplete: string;
521
+ error: string;
522
+ in: (path: string) => string;
523
+ };
437
524
  bash: {
438
525
  preparing: string;
439
526
  timedOut: (duration: string) => string;
@@ -836,6 +923,10 @@ export declare const useAgentMessages: () => {
836
923
  cancel: string;
837
924
  create: string;
838
925
  ownerOnly: (owner: string) => string;
926
+ resume: string;
927
+ resuming: string;
928
+ resumeHint: string;
929
+ resumeFailed: string;
839
930
  };
840
931
  background: {
841
932
  card: (command: string) => string;
@@ -1079,6 +1170,18 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1079
1170
  add: string;
1080
1171
  mention: string;
1081
1172
  commands: string;
1173
+ steerPending: string;
1174
+ queuePending: string;
1175
+ sendNowPending: string;
1176
+ waitingFile: string;
1177
+ steer: string;
1178
+ queue: string;
1179
+ sendNow: string;
1180
+ withdraw: string;
1181
+ messageActions: string;
1182
+ changeFailed: string;
1183
+ withdrawFailed: string;
1184
+ notYourAnswer: string;
1082
1185
  };
1083
1186
  commands: {
1084
1187
  list: string;
@@ -1287,6 +1390,7 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1287
1390
  messageAgentFailed: (key: string) => string;
1288
1391
  reasoning: string;
1289
1392
  steps: (steps: number) => string;
1393
+ latest: string;
1290
1394
  searchFailedHint: string;
1291
1395
  noSources: string;
1292
1396
  running: string;
@@ -1329,10 +1433,7 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1329
1433
  timeout: string;
1330
1434
  unknown: string;
1331
1435
  };
1332
- fromAgent: string;
1333
- asks: string;
1334
- answer: string;
1335
- answerHint: string;
1436
+ noAnswer: string;
1336
1437
  close: string;
1337
1438
  viewRequest: string;
1338
1439
  stepsLater: string;
@@ -1366,6 +1467,9 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1366
1467
  heardFrom: (key: string) => string;
1367
1468
  heardFromCount: (agents: number) => string;
1368
1469
  waitFailed: string;
1470
+ stoppingAgent: (key: string) => string;
1471
+ stoppedAgent: (key: string) => string;
1472
+ stopAgentFailed: (key: string) => string;
1369
1473
  askedAgent: (question: string) => string;
1370
1474
  line: {
1371
1475
  names: (names: readonly string[]) => string;
@@ -1431,6 +1535,34 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1431
1535
  failed: (name: string) => string;
1432
1536
  open: (name: string) => string;
1433
1537
  };
1538
+ questions: {
1539
+ card: (count: number) => string;
1540
+ asked: string;
1541
+ waiting: string;
1542
+ running: string;
1543
+ send: string;
1544
+ sending: string;
1545
+ pickAny: string;
1546
+ typeAnswer: string;
1547
+ typeOther: string;
1548
+ somethingElse: string;
1549
+ next: string;
1550
+ back: string;
1551
+ step: (step: number, total: number) => string;
1552
+ dismiss: string;
1553
+ };
1554
+ edit: {
1555
+ title: (name: string) => string;
1556
+ running: (name: string) => string;
1557
+ failed: (name: string) => string;
1558
+ };
1559
+ write: {
1560
+ created: (name: string) => string;
1561
+ replaced: (name: string) => string;
1562
+ running: (name: string) => string;
1563
+ failed: (name: string) => string;
1564
+ lines: (lines: number) => string;
1565
+ };
1434
1566
  read: {
1435
1567
  file: {
1436
1568
  title: (name: string) => string;
@@ -1447,6 +1579,12 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1447
1579
  running: (name: string) => string;
1448
1580
  failed: (name: string) => string;
1449
1581
  };
1582
+ directory: {
1583
+ title: (name: string) => string;
1584
+ running: (name: string) => string;
1585
+ failed: (name: string) => string;
1586
+ };
1587
+ entries: (entries: number) => string;
1450
1588
  memory: {
1451
1589
  title: (project: boolean) => string;
1452
1590
  running: (project: boolean) => string;
@@ -1460,6 +1598,46 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1460
1598
  lines: (start: number, end: number) => string;
1461
1599
  moreAvailable: (range: string) => string;
1462
1600
  };
1601
+ search: {
1602
+ found: (files: number) => string;
1603
+ foundMore: (files: number) => string;
1604
+ looked: string;
1605
+ looking: string;
1606
+ lookFailed: string;
1607
+ searchedFor: (term: string) => string;
1608
+ searched: string;
1609
+ searching: string;
1610
+ searchFailed: (term?: string) => string;
1611
+ memory: {
1612
+ title: (project: boolean) => string;
1613
+ running: (project: boolean) => string;
1614
+ failed: (project: boolean) => string;
1615
+ };
1616
+ guide: {
1617
+ title: (name: string) => string;
1618
+ running: (name: string) => string;
1619
+ failed: (name: string) => string;
1620
+ };
1621
+ ontology: {
1622
+ title: string;
1623
+ running: string;
1624
+ failed: string;
1625
+ };
1626
+ term: (term: string) => string;
1627
+ files: (files: number) => string;
1628
+ moreFiles: (files: number) => string;
1629
+ matches: (matches: number, files: number) => string;
1630
+ moreMatches: (matches: number) => string;
1631
+ noMatches: string;
1632
+ moreInFile: (matches: number) => string;
1633
+ noFiles: string;
1634
+ noLines: string;
1635
+ truncatedFiles: (files: number) => string;
1636
+ truncatedMatches: (lines: number) => string;
1637
+ incomplete: string;
1638
+ error: string;
1639
+ in: (path: string) => string;
1640
+ };
1463
1641
  bash: {
1464
1642
  preparing: string;
1465
1643
  timedOut: (duration: string) => string;
@@ -1862,6 +2040,10 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1862
2040
  cancel: string;
1863
2041
  create: string;
1864
2042
  ownerOnly: (owner: string) => string;
2043
+ resume: string;
2044
+ resuming: string;
2045
+ resumeHint: string;
2046
+ resumeFailed: string;
1865
2047
  };
1866
2048
  background: {
1867
2049
  card: (command: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,KAAK,aAAa,EAAM,MAAM,MAAM,CAAA;AAK7C,wFAAwF;AACxF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA+B,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;AAC/C,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,10 @@
1
+ /** Marks a tray line's text with the key its message will have in the conversation. */
2
+ export declare const TRAY_MESSAGE_ATTRIBUTE = "data-tray-message";
3
+ /** The key a tray message has in the conversation once read: its saved message's own. */
4
+ export declare function trayMessageKey(messageId: string): string;
5
+ /**
6
+ * Bring `element`, the conversation's copy of the message keyed `key`, into place: from its tray
7
+ * line when the tray still shows it, or by a short fade where the reader never saw it there.
8
+ */
9
+ export declare function riseFromTray(element: HTMLElement, key: string): void;
10
+ //# sourceMappingURL=inbox-handoff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbox-handoff.d.ts","sourceRoot":"","sources":["../../src/agent/inbox-handoff.ts"],"names":[],"mappings":"AAIA,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,sBAAsB,CAAA;AAEzD,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAExD;AAKD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CA2BpE"}
@@ -1,6 +1,11 @@
1
- import type { AgentRunFailure, AgentRunStreamEvent } from "@sixb/client";
1
+ import type { AgentInboxReadMessage, AgentRunFailure, AgentRunStreamEvent } from "@sixb/client";
2
2
  import type { NormalizedPart } from "./parts";
3
3
  import type { AgentRunStatus } from "./types";
4
+ /** Messages the turn read from its inbox, before the part at `at`: where the thread will hold them. */
5
+ export interface LiveInboxRead {
6
+ readonly at: number;
7
+ readonly messages: readonly AgentInboxReadMessage[];
8
+ }
4
9
  export interface LiveRunState {
5
10
  /** The run this state belongs to, or null when idle. */
6
11
  readonly runId: string | null;
@@ -18,6 +23,8 @@ export interface LiveRunState {
18
23
  * rendering — the view consumes `parts` directly.
19
24
  */
20
25
  readonly partKeys: readonly string[];
26
+ /** What the turn read from its inbox as it answered, in order. */
27
+ readonly inboxReads: readonly LiveInboxRead[];
21
28
  /** Model step currently being streamed. Used to keep reused part ids ordered. */
22
29
  readonly stepIndex: number;
23
30
  /** How many parts came before the current step: a step asked again drops the ones after. */
@@ -1 +1 @@
1
- {"version":3,"file":"live-run.d.ts","sourceRoot":"","sources":["../../src/agent/live-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAgB,MAAM,cAAc,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,sFAAsF;IACtF,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,iGAAiG;IACjG,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;IACzC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,iFAAiF;IACjF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,oGAAoG;IACpG,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,oDAAoD;IACpD,QAAQ,CAAC,YAAY,EAAE,cAAc,GAAG,IAAI,CAAA;IAC5C,yEAAyE;IACzE,QAAQ,CAAC,YAAY,EAAE,MA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K,EAAE,mBAAmB,CAAA;CAAE,GAC/D;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/D,wBAAgB,kBAAkB,CAAC,KAAK,GAAE,MAAM,GAAG,IAAW,GAAG,YAAY,CAiB5E;AAED,oGAAoG;AACpG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAEjE;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAGjF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,GAAG,YAAY,CAWvF"}
@@ -6,7 +6,7 @@ export interface MessageAgentDescription {
6
6
  /** The live label while it is the latest work: short, in the moment. */
7
7
  readonly running: string;
8
8
  }
9
- /** A question a child waits on, as `wait_agent` returned it. */
9
+ /** A question a child waits on, as `wait` returned it. */
10
10
  export interface ChildQuestion {
11
11
  readonly key: string;
12
12
  readonly text: string;
@@ -16,6 +16,6 @@ export interface ChildQuestion {
16
16
  * a child waiting on its question, it is the Agent's answer.
17
17
  */
18
18
  export declare function describeMessageAgent(tool: NormalizedTool, messages: AgentMessages): MessageAgentDescription;
19
- /** The questions a `wait_agent` call returned: the children that wait on the Agent's answer. */
19
+ /** The questions a `wait` call returned: the children that wait on the Agent's answer. */
20
20
  export declare function childQuestions(tool: NormalizedTool): readonly ChildQuestion[];
21
21
  //# sourceMappingURL=interpret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/agent/message-agent/interpret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,UAAU,CAAA;AAE/D,MAAM,WAAW,uBAAuB;IACtC,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED,gEAAgE;AAChE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,aAAa,GACtB,uBAAuB,CAmBzB;AAED,gGAAgG;AAChG,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,aAAa,EAAE,CAU7E"}
1
+ {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/agent/message-agent/interpret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,UAAU,CAAA;AAG/D,MAAM,WAAW,uBAAuB;IACtC,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,aAAa,GACtB,uBAAuB,CAmBzB;AAED,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,aAAa,EAAE,CAU7E"}
@@ -2,7 +2,7 @@ import type { ArtifactKindName } from "../../artifacts/kind-icon";
2
2
  import type { NormalizedPart, NormalizedTool } from "../parts";
3
3
  export declare function isPublishTool(toolName: string): boolean;
4
4
  /** Whether a publish call changed an artifact that was there before, rather than created one. */
5
- export declare function isUpdateTool(toolName: string): boolean;
5
+ export declare function isUpdate(tool: Pick<NormalizedTool, "toolName" | "input">): boolean;
6
6
  /** What one publish call published, read from its result. */
7
7
  export interface PublishedArtifact {
8
8
  readonly artifactId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/agent/publish-artifact/interpret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAQ9D,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,iGAAiG;AACjG,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,qFAAqF;IACrF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,2FAA2F;IAC3F,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACnF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,IAAI,CA+BhF;AAED,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,MAA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AC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,IAAI,CA+BhF;AAED,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAIzD;AAED,gGAAgG;AAChG,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,YAAY,EAAE,CAe9E;AAUD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,EAAE,CAiB5E"}
@@ -0,0 +1,31 @@
1
+ import type { AgentConversationMessage, AgentConversationTurn } from "../conversation";
2
+ /** One question of an `ask` call, as the card shows it. */
3
+ export interface AskedQuestion {
4
+ readonly question: string;
5
+ readonly choices: readonly string[];
6
+ /** Several of the choices may be picked. */
7
+ readonly multiple: boolean;
8
+ }
9
+ /** The tools an agent asks with: `ask`, and a sub-agent's `ask_parent` in earlier threads. */
10
+ export declare function isAskTool(toolName: string): boolean;
11
+ /** The questions of an `ask` call's input, or of an `ask_parent` call's `{ question }`. */
12
+ export declare function askedQuestions(input: unknown): readonly AskedQuestion[];
13
+ /** The questions as one line, for a row that names them: `Which year? · Which regions?`. */
14
+ export declare function askedText(input: unknown): string;
15
+ /**
16
+ * The user's answer as the message the card sends: the picked choices or the typed text, and with
17
+ * several questions each answer after its question. Unanswered questions are left out; empty when
18
+ * nothing was answered.
19
+ */
20
+ export declare function answerText(questions: readonly AskedQuestion[], answers: readonly (readonly string[])[]): string;
21
+ /** The questions the conversation's last word asks the user, and the reply that asked them. */
22
+ export interface OpenQuestion {
23
+ readonly messageKey: string;
24
+ readonly questions: readonly AskedQuestion[];
25
+ }
26
+ /**
27
+ * What still waits for the user: the questions of the conversation's last message, a reply that
28
+ * asked, once its turn ended. A later message answers it, and a running turn has not asked yet.
29
+ */
30
+ export declare function openQuestion(messages: readonly AgentConversationMessage[], turn: AgentConversationTurn): OpenQuestion | null;
31
+ //# sourceMappingURL=interpret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/agent/questions/interpret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEtF,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAC3B;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,aAAa,EAAE,CAmBvE;AAED,4FAA4F;AAC5F,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIhD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,SAAS,aAAa,EAAE,EACnC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,GACtC,MAAM,CAOR;AAED,+FAA+F;AAC/F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,aAAa,EAAE,CAAA;CAC7C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,SAAS,wBAAwB,EAAE,EAC7C,IAAI,EAAE,qBAAqB,GAC1B,YAAY,GAAG,IAAI,CAWrB"}
@@ -0,0 +1,16 @@
1
+ import type { NormalizedTool } from "../parts";
2
+ /**
3
+ * Whether the reply a line is in asks the reader now: its question is the conversation's last word,
4
+ * answered in the composer, which becomes the question (`QuestionComposer`). `answering` when the
5
+ * reader may answer there; otherwise, as for an observer, someone else's answer is awaited.
6
+ */
7
+ export interface QuestionTurn {
8
+ readonly open: boolean;
9
+ readonly answering?: boolean;
10
+ }
11
+ export declare const QuestionTurnContext: import("react").Context<QuestionTurn>;
12
+ /** The Agent's questions in its reply: a quiet line each, the composer asks them. */
13
+ export declare function QuestionCards({ tools }: {
14
+ readonly tools: readonly NormalizedTool[];
15
+ }): import("react").JSX.Element | null;
16
+ //# sourceMappingURL=question-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-card.d.ts","sourceRoot":"","sources":["../../../src/agent/questions/question-card.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG9C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,mBAAmB,uCAA+C,CAAA;AAE/E,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;CAAE,sCAUrF"}
@@ -0,0 +1,15 @@
1
+ import { type AskedQuestion } from "./interpret";
2
+ export interface QuestionComposerProps {
3
+ readonly questions: readonly AskedQuestion[];
4
+ readonly onAnswer: (text: string) => void;
5
+ /** Back to the composer, to reply in words of one's own. */
6
+ readonly onDismiss: () => void;
7
+ readonly className?: string;
8
+ }
9
+ /**
10
+ * The composer, become the Agent's question: the same surface in the same place, its questions one
11
+ * at a time, each choice a row to pick and a last row to write something else. Picking the one
12
+ * answer of the last question sends; several questions send together from the last.
13
+ */
14
+ export declare function QuestionComposer({ questions, onAnswer, onDismiss, className, }: QuestionComposerProps): import("react").JSX.Element | null;
15
+ //# sourceMappingURL=question-composer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-composer.d.ts","sourceRoot":"","sources":["../../../src/agent/questions/question-composer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,aAAa,CAAA;AAE5D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,aAAa,EAAE,CAAA;IAC5C,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,GACV,EAAE,qBAAqB,sCAwOvB"}
@@ -10,6 +10,12 @@ export interface ReadOutput {
10
10
  readonly truncated: boolean;
11
11
  readonly nextOffset?: number;
12
12
  }
13
+ /** A folder `read` listed: its entries, folders ending in `/`. */
14
+ export interface ReadDirectory {
15
+ readonly path: string;
16
+ readonly entries: readonly string[];
17
+ readonly truncated: boolean;
18
+ }
13
19
  export interface ReadDescription {
14
20
  readonly path: string;
15
21
  readonly title: string;
@@ -22,5 +28,6 @@ export interface ReadDescription {
22
28
  }
23
29
  export declare function coerceReadInput(value: unknown): ReadInput | null;
24
30
  export declare function coerceReadOutput(value: unknown): ReadOutput | null;
25
- export declare function describeRead(input: ReadInput | null, output: ReadOutput | null, messages?: AgentMessages): ReadDescription;
31
+ export declare function coerceReadDirectory(value: unknown): ReadDirectory | null;
32
+ export declare function describeRead(input: ReadInput | null, output: ReadOutput | null, messages?: AgentMessages, directory?: ReadDirectory | null): ReadDescription;
26
33
  //# sourceMappingURL=interpret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../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AAU,GAAG,IAAI,EACzB,QAAQ,GAAE,aAAkB,EAC5B,SAAS,GAAE,aAAa,GAAG,IAAW,GACrC,eAAe,CA0CjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"read-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/read/read-tool-view.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG9C,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,+BAkD9D"}
1
+ {"version":3,"file":"read-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/read/read-tool-view.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG9C,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,+BA2D9D"}
@@ -0,0 +1,101 @@
1
+ import { type AgentMessages } from "../i18n/en";
2
+ import type { NormalizedTool } from "../parts";
3
+ /** What `glob` stores: the files whose path matched, sorted. */
4
+ export interface GlobOutput {
5
+ readonly files: readonly string[];
6
+ /** More files match than the ones listed. */
7
+ readonly truncated: boolean;
8
+ /** The search stopped at its deadline. */
9
+ readonly incomplete: boolean;
10
+ }
11
+ export interface GrepMatch {
12
+ readonly path: string;
13
+ readonly line: number;
14
+ readonly text: string;
15
+ }
16
+ /** What `grep` stores: the matching lines, grouped by file in order. */
17
+ export interface GrepOutput {
18
+ readonly matches: readonly GrepMatch[];
19
+ /** How many files the matches are in. */
20
+ readonly files: number;
21
+ /** Matching lines past the ones a file shows, by path. */
22
+ readonly more: Readonly<Record<string, number>>;
23
+ /** Another file matches past the lines shown. */
24
+ readonly truncated: boolean;
25
+ /** The search stopped at its deadline. */
26
+ readonly incomplete: boolean;
27
+ }
28
+ /**
29
+ * Where a search looked, as the chat names it: the Agent's memory, its guides and its ontology
30
+ * read as themselves, as `read` names their files; anywhere else is files.
31
+ */
32
+ export type SearchPlace = {
33
+ readonly kind: "files";
34
+ } | {
35
+ readonly kind: "memory";
36
+ readonly project: boolean;
37
+ } | {
38
+ readonly kind: "guide";
39
+ readonly name: string;
40
+ } | {
41
+ readonly kind: "ontology";
42
+ };
43
+ export interface SearchDescription {
44
+ readonly place: SearchPlace;
45
+ readonly title: string;
46
+ readonly runningTitle: string;
47
+ readonly failedTitle: string;
48
+ /** What came of it, once it has a result: `8 matches in 3 files`. */
49
+ readonly detail?: string;
50
+ /** The pattern as the call wrote it, or empty until it streams in. */
51
+ readonly pattern: string;
52
+ /** The folder or file it looked in, as the call named it; absent for the working folder. */
53
+ readonly path?: string;
54
+ /** The files `grep` was limited to. */
55
+ readonly include?: string;
56
+ /** What the results leave out, in plain words. */
57
+ readonly notes: readonly string[];
58
+ }
59
+ export interface GlobDescription extends SearchDescription {
60
+ /** Relative to the folder searched, which the header names. */
61
+ readonly files: readonly string[];
62
+ }
63
+ /** The matches of one file, in the order `grep` found them. */
64
+ export interface GrepGroup {
65
+ /** Relative to the folder searched, which the header names. */
66
+ readonly path: string;
67
+ readonly matches: readonly Omit<GrepMatch, "path">[];
68
+ /** Matching lines past the ones shown. */
69
+ readonly more: number;
70
+ }
71
+ export interface GrepDescription extends SearchDescription {
72
+ readonly groups: readonly GrepGroup[];
73
+ /** The search as a regular expression, to mark where each line first matched. */
74
+ readonly highlight?: RegExp;
75
+ }
76
+ /** One run of a line's text: what the search matched, or what surrounds it. */
77
+ export interface LineSegment {
78
+ readonly text: string;
79
+ readonly match: boolean;
80
+ }
81
+ export declare function coerceGlobOutput(value: unknown): GlobOutput | null;
82
+ export declare function coerceGrepOutput(value: unknown): GrepOutput | null;
83
+ /** A search for files by name: `Found 12 files`, or where it looked when that has a name. */
84
+ export declare function describeGlob(tool: Pick<NormalizedTool, "input" | "output">, messages?: AgentMessages): GlobDescription;
85
+ /**
86
+ * A search for text: `Searched for “retries” · 8 matches in 3 files`. The pattern names the step
87
+ * only when it reads as words; a regular expression stays behind the disclosure.
88
+ */
89
+ export declare function describeGrep(tool: Pick<NormalizedTool, "input" | "output">, messages?: AgentMessages): GrepDescription;
90
+ /**
91
+ * A line cut where the search first matched it, so the match can be marked. Only the first: it is
92
+ * the work the search did on the line and finished, while matching on through the rest of the line
93
+ * can backtrack without end on a pattern such as `(a|a)+b`, and again on every render.
94
+ */
95
+ export declare function highlightLine(text: string, regex: RegExp | undefined): LineSegment[];
96
+ /** A path's folder and its name, so the name can stand out. */
97
+ export declare function splitPath(path: string): {
98
+ readonly folder: string;
99
+ readonly name: string;
100
+ };
101
+ //# sourceMappingURL=interpret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/agent/search/interpret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAM,MAAM,YAAY,CAAA;AAEnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,gEAAgE;AAChE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,6CAA6C;IAC7C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,wEAAwE;AACxE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,CAAA;IACtC,yCAAyC;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,E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1
+ import type { NormalizedTool } from "../parts";
2
+ /** Files the agent found by name: `Found 12 files`, opening to the list. */
3
+ export declare function GlobToolView({ tool }: {
4
+ tool: NormalizedTool;
5
+ }): import("react").JSX.Element;
6
+ /** Text the agent searched for: `Searched for “retries” · 8 matches in 3 files`, opening to them. */
7
+ export declare function GrepToolView({ tool }: {
8
+ tool: NormalizedTool;
9
+ }): import("react").JSX.Element;
10
+ //# sourceMappingURL=search-tool-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/search/search-tool-view.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAW9C,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,+BAsB9D;AAED,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,+BAyB9D"}