@sixb/app 0.2.4 → 0.2.6

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 (306) 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/components/agent-threads.d.ts.map +1 -1
  10. package/dist/agent/components/composer-place.d.ts.map +1 -1
  11. package/dist/agent/components/composer-settings.d.ts +1 -1
  12. package/dist/agent/components/composer-settings.d.ts.map +1 -1
  13. package/dist/agent/components/composer.d.ts +22 -5
  14. package/dist/agent/components/composer.d.ts.map +1 -1
  15. package/dist/agent/components/computer-place.d.ts +24 -6
  16. package/dist/agent/components/computer-place.d.ts.map +1 -1
  17. package/dist/agent/components/context-meter.d.ts +1 -1
  18. package/dist/agent/components/context-meter.d.ts.map +1 -1
  19. package/dist/agent/components/conversation-panel.d.ts +5 -2
  20. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  21. package/dist/agent/components/message-parts.d.ts +2 -1
  22. package/dist/agent/components/message-parts.d.ts.map +1 -1
  23. package/dist/agent/components/message-view.d.ts +13 -3
  24. package/dist/agent/components/message-view.d.ts.map +1 -1
  25. package/dist/agent/components/pending-messages.d.ts +20 -0
  26. package/dist/agent/components/pending-messages.d.ts.map +1 -0
  27. package/dist/agent/components/sandbox-recovery.d.ts +11 -2
  28. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  29. package/dist/agent/components/threads-button.d.ts +1 -1
  30. package/dist/agent/components/threads-button.d.ts.map +1 -1
  31. package/dist/agent/components/transcript.d.ts +13 -0
  32. package/dist/agent/components/transcript.d.ts.map +1 -1
  33. package/dist/agent/conversation.d.ts +7 -6
  34. package/dist/agent/conversation.d.ts.map +1 -1
  35. package/dist/agent/delegation/interpret.d.ts +5 -0
  36. package/dist/agent/delegation/interpret.d.ts.map +1 -1
  37. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  38. package/dist/agent/format.d.ts +7 -0
  39. package/dist/agent/format.d.ts.map +1 -1
  40. package/dist/agent/hooks/thread-queries.d.ts +1548 -0
  41. package/dist/agent/hooks/thread-queries.d.ts.map +1 -0
  42. package/dist/agent/hooks/use-agent-conversation.d.ts +51 -6
  43. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  44. package/dist/agent/hooks/use-thread-lists.d.ts +80 -3
  45. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  46. package/dist/agent/hooks/use-thread-place.d.ts +49 -0
  47. package/dist/agent/hooks/use-thread-place.d.ts.map +1 -0
  48. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
  49. package/dist/agent/i18n/en.d.ts +107 -6
  50. package/dist/agent/i18n/en.d.ts.map +1 -1
  51. package/dist/agent/i18n/fr.d.ts.map +1 -1
  52. package/dist/agent/i18n/index.d.ts +180 -12
  53. package/dist/agent/i18n/index.d.ts.map +1 -1
  54. package/dist/agent/inbox-handoff.d.ts +10 -0
  55. package/dist/agent/inbox-handoff.d.ts.map +1 -0
  56. package/dist/agent/live-run.d.ts +8 -1
  57. package/dist/agent/live-run.d.ts.map +1 -1
  58. package/dist/agent/model-selection.d.ts +3 -2
  59. package/dist/agent/model-selection.d.ts.map +1 -1
  60. package/dist/agent/moves.d.ts +40 -0
  61. package/dist/agent/moves.d.ts.map +1 -0
  62. package/dist/agent/search/interpret.d.ts +101 -0
  63. package/dist/agent/search/interpret.d.ts.map +1 -0
  64. package/dist/agent/search/search-tool-view.d.ts +10 -0
  65. package/dist/agent/search/search-tool-view.d.ts.map +1 -0
  66. package/dist/agent/thread-reader-state.d.ts +30 -0
  67. package/dist/agent/thread-reader-state.d.ts.map +1 -0
  68. package/dist/agent/thread-state.d.ts +26 -0
  69. package/dist/agent/thread-state.d.ts.map +1 -0
  70. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  71. package/dist/agent/tool-views/registry.d.ts +5 -6
  72. package/dist/agent/tool-views/registry.d.ts.map +1 -1
  73. package/dist/agent/types.d.ts +9 -1
  74. package/dist/agent/types.d.ts.map +1 -1
  75. package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
  76. package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
  77. package/dist/artifacts/card-preview.d.ts.map +1 -1
  78. package/dist/artifacts/editor/block-handle.d.ts +20 -0
  79. package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
  80. package/dist/artifacts/editor/blocks.d.ts +34 -0
  81. package/dist/artifacts/editor/blocks.d.ts.map +1 -0
  82. package/dist/artifacts/editor/callout-view.d.ts +7 -0
  83. package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
  84. package/dist/artifacts/editor/document-editor.d.ts +30 -0
  85. package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
  86. package/dist/artifacts/editor/figure-view.d.ts +12 -0
  87. package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
  88. package/dist/artifacts/editor/find-blocks.d.ts +6 -0
  89. package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
  90. package/dist/artifacts/editor/markdown-document.d.ts +12 -0
  91. package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
  92. package/dist/artifacts/editor/messages.d.ts +4 -0
  93. package/dist/artifacts/editor/messages.d.ts.map +1 -0
  94. package/dist/artifacts/editor/schema.d.ts +21 -0
  95. package/dist/artifacts/editor/schema.d.ts.map +1 -0
  96. package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
  97. package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
  98. package/dist/artifacts/editor/slash-menu.d.ts +43 -0
  99. package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
  100. package/dist/artifacts/editor/upload.d.ts +12 -0
  101. package/dist/artifacts/editor/upload.d.ts.map +1 -0
  102. package/dist/artifacts/file-source.d.ts +5 -0
  103. package/dist/artifacts/file-source.d.ts.map +1 -1
  104. package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
  105. package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
  106. package/dist/artifacts/frame-editor/commands.d.ts +93 -0
  107. package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
  108. package/dist/artifacts/frame-editor/entry.d.ts +2 -0
  109. package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
  110. package/dist/artifacts/frame-editor/frame.d.ts +5 -0
  111. package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
  112. package/dist/artifacts/frame-editor/keys.d.ts +8 -0
  113. package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
  114. package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
  115. package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
  116. package/dist/artifacts/frame-editor/schema.d.ts +34 -0
  117. package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
  118. package/dist/artifacts/frame-editor/style.d.ts +2 -0
  119. package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
  120. package/dist/artifacts/frame.d.ts +2 -2
  121. package/dist/artifacts/frame.d.ts.map +1 -1
  122. package/dist/artifacts/live/boards.d.ts +2 -0
  123. package/dist/artifacts/live/boards.d.ts.map +1 -1
  124. package/dist/artifacts/live/document.d.ts +32 -0
  125. package/dist/artifacts/live/document.d.ts.map +1 -0
  126. package/dist/artifacts/live/header.d.ts +4 -4
  127. package/dist/artifacts/live/header.d.ts.map +1 -1
  128. package/dist/artifacts/live/presence.d.ts.map +1 -1
  129. package/dist/artifacts/live/session.d.ts +2 -0
  130. package/dist/artifacts/live/session.d.ts.map +1 -1
  131. package/dist/artifacts/live/view.d.ts +4 -3
  132. package/dist/artifacts/live/view.d.ts.map +1 -1
  133. package/dist/artifacts/messages.d.ts +226 -2
  134. package/dist/artifacts/messages.d.ts.map +1 -1
  135. package/dist/artifacts/pdf.d.ts +8 -0
  136. package/dist/artifacts/pdf.d.ts.map +1 -0
  137. package/dist/artifacts/queries.d.ts +80 -0
  138. package/dist/artifacts/queries.d.ts.map +1 -1
  139. package/dist/artifacts/references/references.d.ts +3 -3
  140. package/dist/artifacts/references/references.d.ts.map +1 -1
  141. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
  142. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
  143. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
  144. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
  145. package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
  146. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
  147. package/dist/artifacts/renderers/designed-document.d.ts +28 -0
  148. package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
  149. package/dist/artifacts/renderers/document-tree.d.ts +2 -0
  150. package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
  151. package/dist/artifacts/renderers/document.d.ts +9 -1
  152. package/dist/artifacts/renderers/document.d.ts.map +1 -1
  153. package/dist/artifacts/renderers/live-frame.d.ts +145 -0
  154. package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
  155. package/dist/artifacts/renderers/page-editor.d.ts +16 -0
  156. package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
  157. package/dist/artifacts/renderers/page.d.ts +10 -1
  158. package/dist/artifacts/renderers/page.d.ts.map +1 -1
  159. package/dist/artifacts/viewer.d.ts.map +1 -1
  160. package/dist/{chunk-pxd07kvx.js → chunk-096d52h2.js} +1 -1
  161. package/dist/{chunk-yrcm1pbg.js → chunk-94d7enwc.js} +491 -2128
  162. package/dist/chunk-94d7enwc.js.map +27 -0
  163. package/dist/{chunk-970s5nkn.js → chunk-ezntd3yy.js} +1 -1
  164. package/dist/{chunk-kymx9y5e.js → chunk-qjw5r2vk.js} +12729 -5044
  165. package/dist/chunk-qjw5r2vk.js.map +242 -0
  166. package/dist/chunk-y51c4tsz.js +11 -0
  167. package/dist/chunk-y51c4tsz.js.map +10 -0
  168. package/dist/createCustomApp.d.ts +8 -1
  169. package/dist/createCustomApp.d.ts.map +1 -1
  170. package/dist/index.d.ts +4 -2
  171. package/dist/index.d.ts.map +1 -1
  172. package/dist/index.js +13 -6
  173. package/dist/index.js.map +5 -5
  174. package/dist/pages/console/data/accounts.d.ts +94 -0
  175. package/dist/pages/console/data/accounts.d.ts.map +1 -0
  176. package/dist/pages/console/data/connectors.d.ts.map +1 -1
  177. package/dist/pages/console/data/live-updates.d.ts.map +1 -1
  178. package/dist/pages/console/data/messages.d.ts +52 -0
  179. package/dist/pages/console/data/messages.d.ts.map +1 -1
  180. package/dist/pages/console/data/shared.d.ts.map +1 -1
  181. package/dist/pages/console/data/sync-button.d.ts.map +1 -1
  182. package/dist/pages/console/data/syncs.d.ts.map +1 -1
  183. package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
  184. package/dist/pages/settings/usage/page.d.ts +4 -1
  185. package/dist/pages/settings/usage/page.d.ts.map +1 -1
  186. package/dist/pages/settings/usage/spend-model.d.ts +43 -19
  187. package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
  188. package/dist/pages.js +23044 -22570
  189. package/dist/pages.js.map +17 -16
  190. package/dist/server.d.ts +1 -1
  191. package/dist/server.d.ts.map +1 -1
  192. package/dist/server.js +40 -3
  193. package/dist/server.js.map +3 -3
  194. package/dist/shell/search-command.d.ts.map +1 -1
  195. package/package.json +22 -5
  196. package/src/agent/activity-label.ts +3 -0
  197. package/src/agent/agent-chat.tsx +58 -39
  198. package/src/agent/agent-execution-trace.tsx +2 -2
  199. package/src/agent/agent-panel.tsx +6 -4
  200. package/src/agent/agent.css +254 -0
  201. package/src/agent/artifact-panel.tsx +77 -22
  202. package/src/agent/components/agent-threads.tsx +42 -2
  203. package/src/agent/components/composer-place.tsx +2 -7
  204. package/src/agent/components/composer-settings.tsx +20 -10
  205. package/src/agent/components/composer.tsx +342 -104
  206. package/src/agent/components/computer-place.tsx +415 -70
  207. package/src/agent/components/context-meter.tsx +7 -3
  208. package/src/agent/components/conversation-panel.tsx +99 -54
  209. package/src/agent/components/message-parts.tsx +367 -59
  210. package/src/agent/components/message-view.tsx +428 -9
  211. package/src/agent/components/pending-messages.tsx +342 -0
  212. package/src/agent/components/sandbox-recovery.tsx +36 -17
  213. package/src/agent/components/threads-button.tsx +3 -2
  214. package/src/agent/components/transcript.tsx +198 -38
  215. package/src/agent/conversation.ts +219 -55
  216. package/src/agent/delegation/interpret.ts +31 -7
  217. package/src/agent/format.ts +52 -0
  218. package/src/agent/hooks/thread-queries.ts +75 -0
  219. package/src/agent/hooks/use-agent-conversation.ts +801 -211
  220. package/src/agent/hooks/use-thread-lists.ts +72 -7
  221. package/src/agent/hooks/use-thread-place.ts +239 -0
  222. package/src/agent/hooks/use-thread-stream.ts +10 -0
  223. package/src/agent/i18n/en.ts +150 -27
  224. package/src/agent/i18n/fr.ts +148 -31
  225. package/src/agent/inbox-handoff.ts +47 -0
  226. package/src/agent/live-run.ts +61 -2
  227. package/src/agent/model-selection.ts +3 -2
  228. package/src/agent/moves.ts +174 -0
  229. package/src/agent/react-router.tsx +2 -2
  230. package/src/agent/search/interpret.ts +367 -0
  231. package/src/agent/search/search-tool-view.tsx +235 -0
  232. package/src/agent/thread-reader-state.ts +75 -0
  233. package/src/agent/thread-state.ts +114 -0
  234. package/src/agent/tool-views/built-in.tsx +16 -0
  235. package/src/agent/tool-views/registry.tsx +28 -2
  236. package/src/agent/types.ts +13 -0
  237. package/src/agent/view-file/view-file-tool-view.tsx +33 -19
  238. package/src/artifacts/artifacts.css +398 -0
  239. package/src/artifacts/card-preview.tsx +6 -1
  240. package/src/artifacts/editor/block-handle.tsx +278 -0
  241. package/src/artifacts/editor/blocks.ts +216 -0
  242. package/src/artifacts/editor/callout-view.tsx +31 -0
  243. package/src/artifacts/editor/document-editor.tsx +484 -0
  244. package/src/artifacts/editor/figure-view.tsx +66 -0
  245. package/src/artifacts/editor/find-blocks.ts +19 -0
  246. package/src/artifacts/editor/markdown-document.tsx +72 -0
  247. package/src/artifacts/editor/messages.ts +4 -0
  248. package/src/artifacts/editor/schema.ts +159 -0
  249. package/src/artifacts/editor/selection-toolbar.tsx +364 -0
  250. package/src/artifacts/editor/slash-menu.tsx +251 -0
  251. package/src/artifacts/editor/upload.ts +40 -0
  252. package/src/artifacts/file-source.ts +11 -0
  253. package/src/artifacts/frame-editor/bundle.ts +8 -0
  254. package/src/artifacts/frame-editor/commands.ts +565 -0
  255. package/src/artifacts/frame-editor/entry.ts +6 -0
  256. package/src/artifacts/frame-editor/frame.ts +847 -0
  257. package/src/artifacts/frame-editor/generated/editor.txt +149 -0
  258. package/src/artifacts/frame-editor/generated.d.ts +5 -0
  259. package/src/artifacts/frame-editor/keys.ts +323 -0
  260. package/src/artifacts/frame-editor/protocol.ts +151 -0
  261. package/src/artifacts/frame-editor/schema.ts +293 -0
  262. package/src/artifacts/frame-editor/style.ts +58 -0
  263. package/src/artifacts/frame.tsx +11 -3
  264. package/src/artifacts/live/boards.ts +46 -3
  265. package/src/artifacts/live/document.ts +89 -0
  266. package/src/artifacts/live/header.tsx +9 -14
  267. package/src/artifacts/live/presence.ts +5 -1
  268. package/src/artifacts/live/session.ts +9 -2
  269. package/src/artifacts/live/view.ts +14 -8
  270. package/src/artifacts/messages.ts +138 -2
  271. package/src/artifacts/pdf.ts +50 -0
  272. package/src/artifacts/references/references.tsx +46 -11
  273. package/src/artifacts/renderers/canvas/board-editor.tsx +11 -144
  274. package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
  275. package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
  276. package/src/artifacts/renderers/canvas/comments.ts +8 -4
  277. package/src/artifacts/renderers/designed-document.tsx +277 -0
  278. package/src/artifacts/renderers/document-tree.ts +9 -0
  279. package/src/artifacts/renderers/document.tsx +13 -102
  280. package/src/artifacts/renderers/live-frame.ts +163 -0
  281. package/src/artifacts/renderers/page-editor.tsx +613 -0
  282. package/src/artifacts/renderers/page.tsx +21 -4
  283. package/src/artifacts/viewer.tsx +87 -41
  284. package/src/createCustomApp.ts +57 -3
  285. package/src/index.ts +10 -0
  286. package/src/pages/console/data/accounts.tsx +509 -0
  287. package/src/pages/console/data/connectors.tsx +7 -15
  288. package/src/pages/console/data/live-updates.ts +2 -0
  289. package/src/pages/console/data/messages.ts +79 -0
  290. package/src/pages/console/data/projections.tsx +4 -0
  291. package/src/pages/console/data/shared.tsx +1 -0
  292. package/src/pages/console/data/sync-button.tsx +56 -16
  293. package/src/pages/console/data/syncs.tsx +66 -41
  294. package/src/pages/console/ontology/lineage/trail.tsx +3 -0
  295. package/src/pages/section-ui.tsx +1 -1
  296. package/src/pages/settings/usage/breakdown.tsx +5 -2
  297. package/src/pages/settings/usage/filter-menu.tsx +1 -1
  298. package/src/pages/settings/usage/page.tsx +32 -13
  299. package/src/pages/settings/usage/spend-chart.tsx +2 -2
  300. package/src/pages/settings/usage/spend-model.ts +118 -50
  301. package/src/server.ts +1 -0
  302. package/src/shell/search-command.tsx +2 -0
  303. package/dist/chunk-kymx9y5e.js.map +0 -211
  304. package/dist/chunk-yrcm1pbg.js.map +0 -34
  305. /package/dist/{chunk-pxd07kvx.js.map → chunk-096d52h2.js.map} +0 -0
  306. /package/dist/{chunk-970s5nkn.js.map → chunk-ezntd3yy.js.map} +0 -0
@@ -23,6 +23,9 @@ export declare const useAgentMessages: () => {
23
23
  threadsLoadFailed: string;
24
24
  sharedThreadsLoadFailed: string;
25
25
  sendFailed: string;
26
+ editFailed: string;
27
+ editBusy: string;
28
+ editBusyOther: string;
26
29
  busy: string;
27
30
  busyOther: string;
28
31
  sandboxUnavailable: string;
@@ -53,6 +56,18 @@ export declare const useAgentMessages: () => {
53
56
  add: string;
54
57
  mention: string;
55
58
  commands: string;
59
+ steerPending: string;
60
+ queuePending: string;
61
+ sendNowPending: string;
62
+ waitingFile: string;
63
+ steer: string;
64
+ queue: string;
65
+ sendNow: string;
66
+ withdraw: string;
67
+ messageActions: string;
68
+ changeFailed: string;
69
+ withdrawFailed: string;
70
+ notYourAnswer: string;
56
71
  };
57
72
  commands: {
58
73
  list: string;
@@ -210,6 +225,12 @@ export declare const useAgentMessages: () => {
210
225
  ago: (time: string) => string;
211
226
  };
212
227
  transcript: {
228
+ editMessage: string;
229
+ copyMessage: string;
230
+ copiedMessage: string;
231
+ editInfo: string;
232
+ cancelEdit: string;
233
+ saveEdit: string;
213
234
  condensed: string;
214
235
  condensing: string;
215
236
  condensingLabel: string;
@@ -261,6 +282,7 @@ export declare const useAgentMessages: () => {
261
282
  messageAgentFailed: (key: string) => string;
262
283
  reasoning: string;
263
284
  steps: (steps: number) => string;
285
+ latest: string;
264
286
  searchFailedHint: string;
265
287
  noSources: string;
266
288
  running: string;
@@ -468,6 +490,46 @@ export declare const useAgentMessages: () => {
468
490
  lines: (start: number, end: number) => string;
469
491
  moreAvailable: (range: string) => string;
470
492
  };
493
+ search: {
494
+ found: (files: number) => string;
495
+ foundMore: (files: number) => string;
496
+ looked: string;
497
+ looking: string;
498
+ lookFailed: string;
499
+ searchedFor: (term: string) => string;
500
+ searched: string;
501
+ searching: string;
502
+ searchFailed: (term?: string) => string;
503
+ memory: {
504
+ title: (project: boolean) => string;
505
+ running: (project: boolean) => string;
506
+ failed: (project: boolean) => string;
507
+ };
508
+ guide: {
509
+ title: (name: string) => string;
510
+ running: (name: string) => string;
511
+ failed: (name: string) => string;
512
+ };
513
+ ontology: {
514
+ title: string;
515
+ running: string;
516
+ failed: string;
517
+ };
518
+ term: (term: string) => string;
519
+ files: (files: number) => string;
520
+ moreFiles: (files: number) => string;
521
+ matches: (matches: number, files: number) => string;
522
+ moreMatches: (matches: number) => string;
523
+ noMatches: string;
524
+ moreInFile: (matches: number) => string;
525
+ noFiles: string;
526
+ noLines: string;
527
+ truncatedFiles: (files: number) => string;
528
+ truncatedMatches: (lines: number) => string;
529
+ incomplete: string;
530
+ error: string;
531
+ in: (path: string) => string;
532
+ };
471
533
  bash: {
472
534
  preparing: string;
473
535
  timedOut: (duration: string) => string;
@@ -870,6 +932,10 @@ export declare const useAgentMessages: () => {
870
932
  cancel: string;
871
933
  create: string;
872
934
  ownerOnly: (owner: string) => string;
935
+ resume: string;
936
+ resuming: string;
937
+ resumeHint: string;
938
+ resumeFailed: string;
873
939
  };
874
940
  background: {
875
941
  card: (command: string) => string;
@@ -912,27 +978,45 @@ export declare const useAgentMessages: () => {
912
978
  computer: {
913
979
  online: string;
914
980
  offline: string;
915
- offlineNotice: (computer: string, folder: string) => string;
981
+ folderUnavailable: (folder: string, computer: string) => string;
982
+ messageWaiting: (folder: string, computer: string) => string;
916
983
  noFolder: string;
917
984
  offlineHere: (folder: string) => string;
918
985
  runHere: string;
919
986
  waitingFor: (computer: string) => string;
920
987
  placeTitle: string;
921
- placeChip: (place: string) => string;
988
+ placeChip: (place: string, status: string | null) => string;
989
+ noFolderChip: string;
922
990
  cloud: string;
991
+ cloudDescription: string;
992
+ thisComputer: string;
993
+ checkingComputers: string;
994
+ noComputers: string;
995
+ offlineLabel: string;
996
+ offlineMenuHint: string;
923
997
  chooseFolder: string;
924
998
  chooseFolderShort: string;
925
999
  forgetFolder: (folder: string) => string;
926
1000
  continueInCloud: string;
927
1001
  moving: string;
928
1002
  moveFailed: string;
1003
+ moveSwitchFailed: string;
929
1004
  moveBusy: string;
1005
+ moveWhileRunning: string;
1006
+ moveWhileApproval: string;
930
1007
  confirmTitle: string;
931
- confirmDescription: string;
1008
+ confirmDescription: (folder: string | null) => string;
1009
+ confirmAction: string;
932
1010
  cancel: string;
933
- movedToCloud: string;
934
- movedToFolder: (folder: string) => string;
935
- movedElsewhere: string;
1011
+ placeOn: (folder: string, computer: string) => string;
1012
+ cloudPlace: string;
1013
+ movedToCloud: (from: string | null) => string;
1014
+ movedToFolder: (place: string) => string;
1015
+ movedToComputer: (owner: string | null) => string;
1016
+ movedBetweenFolders: (folder: string, from: string) => string;
1017
+ movedElsewhere: (place: string | null) => string;
1018
+ continuedIn: (place: string) => string;
1019
+ continuedOnComputer: (owner: string | null) => string;
936
1020
  };
937
1021
  sharing: {
938
1022
  share: string;
@@ -1083,6 +1167,9 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1083
1167
  threadsLoadFailed: string;
1084
1168
  sharedThreadsLoadFailed: string;
1085
1169
  sendFailed: string;
1170
+ editFailed: string;
1171
+ editBusy: string;
1172
+ editBusyOther: string;
1086
1173
  busy: string;
1087
1174
  busyOther: string;
1088
1175
  sandboxUnavailable: string;
@@ -1113,6 +1200,18 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1113
1200
  add: string;
1114
1201
  mention: string;
1115
1202
  commands: string;
1203
+ steerPending: string;
1204
+ queuePending: string;
1205
+ sendNowPending: string;
1206
+ waitingFile: string;
1207
+ steer: string;
1208
+ queue: string;
1209
+ sendNow: string;
1210
+ withdraw: string;
1211
+ messageActions: string;
1212
+ changeFailed: string;
1213
+ withdrawFailed: string;
1214
+ notYourAnswer: string;
1116
1215
  };
1117
1216
  commands: {
1118
1217
  list: string;
@@ -1270,6 +1369,12 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1270
1369
  ago: (time: string) => string;
1271
1370
  };
1272
1371
  transcript: {
1372
+ editMessage: string;
1373
+ copyMessage: string;
1374
+ copiedMessage: string;
1375
+ editInfo: string;
1376
+ cancelEdit: string;
1377
+ saveEdit: string;
1273
1378
  condensed: string;
1274
1379
  condensing: string;
1275
1380
  condensingLabel: string;
@@ -1321,6 +1426,7 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1321
1426
  messageAgentFailed: (key: string) => string;
1322
1427
  reasoning: string;
1323
1428
  steps: (steps: number) => string;
1429
+ latest: string;
1324
1430
  searchFailedHint: string;
1325
1431
  noSources: string;
1326
1432
  running: string;
@@ -1528,6 +1634,46 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1528
1634
  lines: (start: number, end: number) => string;
1529
1635
  moreAvailable: (range: string) => string;
1530
1636
  };
1637
+ search: {
1638
+ found: (files: number) => string;
1639
+ foundMore: (files: number) => string;
1640
+ looked: string;
1641
+ looking: string;
1642
+ lookFailed: string;
1643
+ searchedFor: (term: string) => string;
1644
+ searched: string;
1645
+ searching: string;
1646
+ searchFailed: (term?: string) => string;
1647
+ memory: {
1648
+ title: (project: boolean) => string;
1649
+ running: (project: boolean) => string;
1650
+ failed: (project: boolean) => string;
1651
+ };
1652
+ guide: {
1653
+ title: (name: string) => string;
1654
+ running: (name: string) => string;
1655
+ failed: (name: string) => string;
1656
+ };
1657
+ ontology: {
1658
+ title: string;
1659
+ running: string;
1660
+ failed: string;
1661
+ };
1662
+ term: (term: string) => string;
1663
+ files: (files: number) => string;
1664
+ moreFiles: (files: number) => string;
1665
+ matches: (matches: number, files: number) => string;
1666
+ moreMatches: (matches: number) => string;
1667
+ noMatches: string;
1668
+ moreInFile: (matches: number) => string;
1669
+ noFiles: string;
1670
+ noLines: string;
1671
+ truncatedFiles: (files: number) => string;
1672
+ truncatedMatches: (lines: number) => string;
1673
+ incomplete: string;
1674
+ error: string;
1675
+ in: (path: string) => string;
1676
+ };
1531
1677
  bash: {
1532
1678
  preparing: string;
1533
1679
  timedOut: (duration: string) => string;
@@ -1930,6 +2076,10 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1930
2076
  cancel: string;
1931
2077
  create: string;
1932
2078
  ownerOnly: (owner: string) => string;
2079
+ resume: string;
2080
+ resuming: string;
2081
+ resumeHint: string;
2082
+ resumeFailed: string;
1933
2083
  };
1934
2084
  background: {
1935
2085
  card: (command: string) => string;
@@ -1972,27 +2122,45 @@ export declare const AgentLabelsProvider: (props: import("@sixb/ui/lib/i18n").La
1972
2122
  computer: {
1973
2123
  online: string;
1974
2124
  offline: string;
1975
- offlineNotice: (computer: string, folder: string) => string;
2125
+ folderUnavailable: (folder: string, computer: string) => string;
2126
+ messageWaiting: (folder: string, computer: string) => string;
1976
2127
  noFolder: string;
1977
2128
  offlineHere: (folder: string) => string;
1978
2129
  runHere: string;
1979
2130
  waitingFor: (computer: string) => string;
1980
2131
  placeTitle: string;
1981
- placeChip: (place: string) => string;
2132
+ placeChip: (place: string, status: string | null) => string;
2133
+ noFolderChip: string;
1982
2134
  cloud: string;
2135
+ cloudDescription: string;
2136
+ thisComputer: string;
2137
+ checkingComputers: string;
2138
+ noComputers: string;
2139
+ offlineLabel: string;
2140
+ offlineMenuHint: string;
1983
2141
  chooseFolder: string;
1984
2142
  chooseFolderShort: string;
1985
2143
  forgetFolder: (folder: string) => string;
1986
2144
  continueInCloud: string;
1987
2145
  moving: string;
1988
2146
  moveFailed: string;
2147
+ moveSwitchFailed: string;
1989
2148
  moveBusy: string;
2149
+ moveWhileRunning: string;
2150
+ moveWhileApproval: string;
1990
2151
  confirmTitle: string;
1991
- confirmDescription: string;
2152
+ confirmDescription: (folder: string | null) => string;
2153
+ confirmAction: string;
1992
2154
  cancel: string;
1993
- movedToCloud: string;
1994
- movedToFolder: (folder: string) => string;
1995
- movedElsewhere: string;
2155
+ placeOn: (folder: string, computer: string) => string;
2156
+ cloudPlace: string;
2157
+ movedToCloud: (from: string | null) => string;
2158
+ movedToFolder: (place: string) => string;
2159
+ movedToComputer: (owner: string | null) => string;
2160
+ movedBetweenFolders: (folder: string, from: string) => string;
2161
+ movedElsewhere: (place: string | null) => string;
2162
+ continuedIn: (place: string) => string;
2163
+ continuedOnComputer: (owner: string | null) => string;
1996
2164
  };
1997
2165
  sharing: {
1998
2166
  share: 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,M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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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AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,GAAG,YAAY,CAWvF"}
@@ -18,8 +18,9 @@ export interface ResolvedModelSelection {
18
18
  readonly request?: ModelPreference;
19
19
  }
20
20
  /**
21
- * With tiers, the chat starts on Auto: a decision model picks each message's model, and without
22
- * one every message runs on `standard`. Choosing a model pins it.
21
+ * With tiers, a conversation starts on Auto: a decision model picks each message's model, and
22
+ * without one every message runs on `standard`. A model chosen in any conversation becomes the one
23
+ * the next conversation starts on, and each conversation pins its own.
23
24
  */
24
25
  export declare function hasTiers(models: readonly LanguageModel[]): boolean;
25
26
  export declare function defaultLanguageModel(models: readonly LanguageModel[]): LanguageModel | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"model-selection.d.ts","sourceRoot":"","sources":["../../src/agent/model-selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;IAC5D,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAA;CACzC;AAED,6EAA6E;AAC7E,MAAM,WAAW,sBAAsB;IACrC,iGAAiG;IACjG,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAA;IACxC,yFAAyF;IACzF,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;CACnC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAElE;AAED,wBAAgB,oBAAoB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,CAAC,EAAE,eAAe,CAAA;CACnC;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAElE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,GAAG,aAAa,GAAG,SAAS,CAEhG;AAED,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,GAAG,SAAS,CAK3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,UAAU,EAAE,eAAe,GAAG,IAAI,GACjC,sBAAsB,CA8BxB;AAED,8FAA8F;AAC9F,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,sBAAsB,EACjC,SAAS,EAAE,mBAAmB,GAC7B,eAAe,CAGjB;AAED,8FAA8F;AAC9F,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,sBAAsB,GAChC,eAAe,GAAG,IAAI,CAGxB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,CAExF"}
@@ -0,0 +1,40 @@
1
+ import type { AgentMessages } from "./i18n";
2
+ import type { AgentMessage, AgentRun, AgentThread } from "./types";
3
+ /** A move in the transcript: what it says, and where it went. */
4
+ export interface TranscriptMove {
5
+ readonly label: string;
6
+ readonly place: "cloud" | "computer";
7
+ }
8
+ /** What the labels name places with, beyond what the runs hold. */
9
+ interface MoveNames {
10
+ readonly messages: AgentMessages["computer"];
11
+ /** Each computer's name, by id, where the reader knows it: runs keep only the id. */
12
+ readonly computerNames: ReadonlyMap<string, string>;
13
+ /** Whose computer it is, for someone they shared it with, who isn't shown its folders. */
14
+ readonly ownerName: string | null;
15
+ }
16
+ export interface TranscriptMoves {
17
+ /** The latest move, when no turn ran since: after the last message from before it. */
18
+ readonly moved: (TranscriptMove & {
19
+ readonly afterMessageId: string;
20
+ }) | null;
21
+ /** Every move, by the shown message it follows. */
22
+ readonly moves: ReadonlyMap<string, TranscriptMove>;
23
+ }
24
+ /**
25
+ * Every place the conversation moved to, in its transcript: where a turn runs elsewhere than the
26
+ * turn before it, and where it runs now when no turn ran since it moved. Moving back before a turn
27
+ * ran is no move: the workspace is the one the last turn worked in. A fork's first turn starts in a
28
+ * workspace of its own. The core tells the model the same (`detectMovedMessages`).
29
+ */
30
+ export declare function transcriptMoves(input: MoveNames & {
31
+ readonly thread: AgentThread | null;
32
+ /** Oldest first. */
33
+ readonly savedMessages: readonly AgentMessage[];
34
+ /** The saved messages the transcript draws: a marker follows one of them. */
35
+ readonly shownIds: ReadonlySet<string>;
36
+ /** Newest first, as the conversation reads them. */
37
+ readonly runs: readonly AgentRun[];
38
+ }): TranscriptMoves;
39
+ export {};
40
+ //# sourceMappingURL=moves.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moves.d.ts","sourceRoot":"","sources":["../../src/agent/moves.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AA2BlE,iEAAiE;AACjE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAAA;CACrC;AAED,mEAAmE;AACnE,UAAU,SAAS;IACjB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IAC5C,qFAAqF;IACrF,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnD,0FAA0F;IAC1F,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC;AAkDD,MAAM,WAAW,eAAe;IAC9B,sFAAsF;IACtF,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,GAAG;QAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAA;IAC7E,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACpD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,GAAG;IACjB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IACnC,oBAAoB;IACpB,QAAQ,CAAC,aAAa,EAAE,SAAS,YAAY,EAAE,CAAA;IAC/C,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACtC,oDAAoD;IACpD,QAAQ,CAAC,IAAI,EAAE,SAAS,QAAQ,EAAE,CAAA;CACnC,GACA,eAAe,CA0DjB"}
@@ -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,EAAE,MAAM,CAAC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ool } 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"}
@@ -0,0 +1,30 @@
1
+ import type { CurrentUser } from "../session";
2
+ import type { AgentThread } from "./types";
3
+ /**
4
+ * What a session asks of the person reading it. The words are the app's; the facts are the
5
+ * server's: a call waiting on them, a turn in flight, and what arrived since they last looked.
6
+ */
7
+ export type AgentThreadState = "needs-you" | "working" | "finished" | "idle";
8
+ type ThreadStateSources = Pick<AgentThread, "activeRunId" | "lastRun" | "read">;
9
+ /**
10
+ * The state of a session for one reader, in this order:
11
+ *
12
+ * - `needs-you`: a call waits on their approval, or a turn they asked for ended short since they
13
+ * last looked, and they can run it again.
14
+ * - `working`: a turn runs.
15
+ * - `finished`: something arrived since they last looked: an answer, someone's message, or
16
+ * another person's turn that ended short.
17
+ * - `idle`: nothing did.
18
+ *
19
+ * Looking, which marking the thread read records, settles a turn that ended short as it settles
20
+ * the messages before it: Done clears both. Without a place in the thread (an observer, or a
21
+ * project without sign-in) only approvals and running turns show.
22
+ *
23
+ * `waiting` is a pending approval of theirs in this thread, from `agent.approvals.list()`.
24
+ */
25
+ export declare function agentThreadState(thread: ThreadStateSources, reader: {
26
+ readonly waiting: boolean;
27
+ readonly user: CurrentUser | null;
28
+ }): AgentThreadState;
29
+ export {};
30
+ //# sourceMappingURL=thread-reader-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-reader-state.d.ts","sourceRoot":"","sources":["../../src/agent/thread-reader-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAG7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;AAE5E,KAAK,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,CAAA;AAE/E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,GACvE,gBAAgB,CAQlB"}
@@ -0,0 +1,26 @@
1
+ import type { AgentContextEntryInput } from "@sixb/core/agents/context";
2
+ import type { ViewerTarget } from "../artifacts/target";
3
+ import type { AgentFileRef } from "./types";
4
+ export interface ThreadComposerDraft {
5
+ readonly text: string;
6
+ readonly attachments: readonly AgentFileRef[];
7
+ readonly explicitContext: readonly AgentContextEntryInput[];
8
+ }
9
+ export declare class ThreadStateStore {
10
+ private readonly entries;
11
+ readDraft(draftKey: string): ThreadComposerDraft | null;
12
+ writeDraft(draftKey: string, draft: ThreadComposerDraft): void;
13
+ clearDraft(draftKey: string): void;
14
+ readPanelTarget(scopeKey: string): ViewerTarget | null;
15
+ writePanelTarget(scopeKey: string, target: ViewerTarget | null): void;
16
+ private touch;
17
+ }
18
+ /** Return the `ThreadStateStore` scoped to an app-lifetime owner such as `QueryClient`. */
19
+ export declare function threadStateStoreFor(owner: object): ThreadStateStore;
20
+ export declare const ThreadStateContext: import("react").Context<ThreadStateStore | null>;
21
+ /**
22
+ * The surrounding conversation store when inside `AgentChat`, or a mount-local store when a
23
+ * component such as `ArtifactPanelRoot` is rendered standalone.
24
+ */
25
+ export declare function useThreadStateStore(owner?: object | null): ThreadStateStore;
26
+ //# sourceMappingURL=thread-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-state.d.ts","sourceRoot":"","sources":["../../src/agent/thread-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,SAAS,YAAY,EAAE,CAAA;IAC7C,QAAQ,CAAC,eAAe,EAAE,SAAS,sBAAsB,EAAE,CAAA;CAC5D;AAOD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsC;IAE9D,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI;IAMvD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAkB9D,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIlC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAKtD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI;IAkBrE,OAAO,CAAC,KAAK;CASd;AAID,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAOnE;AAED,eAAO,MAAM,kBAAkB,kDAA+C,CAAA;AAE9E;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gBAAgB,CAO3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../src/agent/tool-views/built-in.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAyE9C,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAE/D"}
1
+ {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../src/agent/tool-views/built-in.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAyF9C,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAE/D"}