@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.
- package/assets/connector-icons/README.md +1 -0
- package/assets/connector-icons/ctm.png +0 -0
- package/dist/agent/activity-label.d.ts.map +1 -1
- package/dist/agent/agent-chat.d.ts +3 -1
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/agent-panel.d.ts.map +1 -1
- package/dist/agent/artifact-panel.d.ts +3 -1
- package/dist/agent/artifact-panel.d.ts.map +1 -1
- package/dist/agent/background/background-tool-row.d.ts.map +1 -1
- package/dist/agent/background/interpret.d.ts +1 -1
- package/dist/agent/background/interpret.d.ts.map +1 -1
- package/dist/agent/components/composer-settings.d.ts +1 -1
- package/dist/agent/components/composer-settings.d.ts.map +1 -1
- package/dist/agent/components/composer.d.ts +22 -5
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/context-meter.d.ts.map +1 -1
- package/dist/agent/components/conversation-panel.d.ts +8 -2
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +2 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/message-view.d.ts.map +1 -1
- package/dist/agent/components/pending-messages.d.ts +20 -0
- package/dist/agent/components/pending-messages.d.ts.map +1 -0
- package/dist/agent/components/sandbox-recovery.d.ts +11 -2
- package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
- package/dist/agent/components/threads-button.d.ts +1 -1
- package/dist/agent/components/threads-button.d.ts.map +1 -1
- package/dist/agent/components/transcript.d.ts +5 -0
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/conversation.d.ts +3 -6
- package/dist/agent/conversation.d.ts.map +1 -1
- package/dist/agent/delegation/agent-exchange.d.ts +16 -0
- package/dist/agent/delegation/agent-exchange.d.ts.map +1 -0
- package/dist/agent/delegation/child-card.d.ts +3 -3
- package/dist/agent/delegation/child-card.d.ts.map +1 -1
- package/dist/agent/delegation/child-parts.d.ts +1 -10
- package/dist/agent/delegation/child-parts.d.ts.map +1 -1
- package/dist/agent/delegation/child-work.d.ts.map +1 -1
- package/dist/agent/delegation/interpret.d.ts +9 -10
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/file-edits/file-edit-tool-view.d.ts +10 -0
- package/dist/agent/file-edits/file-edit-tool-view.d.ts.map +1 -0
- package/dist/agent/file-edits/interpret.d.ts +25 -0
- package/dist/agent/file-edits/interpret.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +16 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +114 -5
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +190 -8
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/inbox-handoff.d.ts +10 -0
- package/dist/agent/inbox-handoff.d.ts.map +1 -0
- package/dist/agent/live-run.d.ts +8 -1
- package/dist/agent/live-run.d.ts.map +1 -1
- package/dist/agent/message-agent/interpret.d.ts +2 -2
- package/dist/agent/message-agent/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
- package/dist/agent/questions/interpret.d.ts +31 -0
- package/dist/agent/questions/interpret.d.ts.map +1 -0
- package/dist/agent/questions/question-card.d.ts +16 -0
- package/dist/agent/questions/question-card.d.ts.map +1 -0
- package/dist/agent/questions/question-composer.d.ts +15 -0
- package/dist/agent/questions/question-composer.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +8 -1
- package/dist/agent/read/interpret.d.ts.map +1 -1
- package/dist/agent/read/read-tool-view.d.ts.map +1 -1
- package/dist/agent/search/interpret.d.ts +101 -0
- package/dist/agent/search/interpret.d.ts.map +1 -0
- package/dist/agent/search/search-tool-view.d.ts +10 -0
- package/dist/agent/search/search-tool-view.d.ts.map +1 -0
- package/dist/agent/thread-state.d.ts +26 -0
- package/dist/agent/thread-state.d.ts.map +1 -0
- package/dist/agent/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/tool-views/registry.d.ts +5 -6
- package/dist/agent/tool-views/registry.d.ts.map +1 -1
- package/dist/agent/types.d.ts +5 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
- package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
- package/dist/agent/waits.d.ts +14 -0
- package/dist/agent/waits.d.ts.map +1 -0
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/edit-session.d.ts +11 -1
- package/dist/artifacts/edit-session.d.ts.map +1 -1
- package/dist/artifacts/editor/block-handle.d.ts +20 -0
- package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
- package/dist/artifacts/editor/blocks.d.ts +34 -0
- package/dist/artifacts/editor/blocks.d.ts.map +1 -0
- package/dist/artifacts/editor/callout-view.d.ts +7 -0
- package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
- package/dist/artifacts/editor/document-editor.d.ts +30 -0
- package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
- package/dist/artifacts/editor/figure-view.d.ts +12 -0
- package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
- package/dist/artifacts/editor/find-blocks.d.ts +6 -0
- package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
- package/dist/artifacts/editor/markdown-document.d.ts +12 -0
- package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
- package/dist/artifacts/editor/messages.d.ts +4 -0
- package/dist/artifacts/editor/messages.d.ts.map +1 -0
- package/dist/artifacts/editor/schema.d.ts +21 -0
- package/dist/artifacts/editor/schema.d.ts.map +1 -0
- package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
- package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
- package/dist/artifacts/editor/slash-menu.d.ts +43 -0
- package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
- package/dist/artifacts/editor/upload.d.ts +12 -0
- package/dist/artifacts/editor/upload.d.ts.map +1 -0
- package/dist/artifacts/file-source.d.ts +5 -0
- package/dist/artifacts/file-source.d.ts.map +1 -1
- package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
- package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/commands.d.ts +93 -0
- package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/entry.d.ts +2 -0
- package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/frame.d.ts +5 -0
- package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/keys.d.ts +8 -0
- package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
- package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/schema.d.ts +34 -0
- package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/style.d.ts +2 -0
- package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
- package/dist/artifacts/frame.d.ts +2 -2
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/artifacts/live/boards.d.ts +2 -0
- package/dist/artifacts/live/boards.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts +32 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/header.d.ts +4 -4
- package/dist/artifacts/live/header.d.ts.map +1 -1
- package/dist/artifacts/live/presence.d.ts.map +1 -1
- package/dist/artifacts/live/session.d.ts +2 -0
- package/dist/artifacts/live/session.d.ts.map +1 -1
- package/dist/artifacts/live/view.d.ts +4 -3
- package/dist/artifacts/live/view.d.ts.map +1 -1
- package/dist/artifacts/messages.d.ts +278 -2
- package/dist/artifacts/messages.d.ts.map +1 -1
- package/dist/artifacts/pdf.d.ts +8 -0
- package/dist/artifacts/pdf.d.ts.map +1 -0
- package/dist/artifacts/queries.d.ts +80 -0
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/references/references.d.ts +3 -3
- package/dist/artifacts/references/references.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board-editor.d.ts +11 -4
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board.d.ts +14 -2
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +4 -3
- package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
- package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/controls.d.ts +15 -4
- package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/focus.d.ts +19 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/gestures.d.ts +46 -0
- package/dist/artifacts/renderers/canvas/gestures.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-resize.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-resize.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts +93 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts +64 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/shown-size.d.ts +26 -0
- package/dist/artifacts/renderers/canvas/shown-size.d.ts.map +1 -0
- package/dist/artifacts/renderers/designed-document.d.ts +28 -0
- package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
- package/dist/artifacts/renderers/document-tree.d.ts +2 -0
- package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
- package/dist/artifacts/renderers/document.d.ts +9 -1
- package/dist/artifacts/renderers/document.d.ts.map +1 -1
- package/dist/artifacts/renderers/live-frame.d.ts +145 -0
- package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
- package/dist/artifacts/renderers/page-editor.d.ts +16 -0
- package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
- package/dist/artifacts/renderers/page.d.ts +10 -1
- package/dist/artifacts/renderers/page.d.ts.map +1 -1
- package/dist/artifacts/viewer.d.ts.map +1 -1
- package/dist/{chunk-001c4gnk.js → chunk-4fex83k2.js} +19965 -13027
- package/dist/chunk-4fex83k2.js.map +239 -0
- package/dist/{chunk-5crvhjp2.js → chunk-4wm09prf.js} +1633 -1999
- package/dist/chunk-4wm09prf.js.map +27 -0
- package/dist/{chunk-fwb9mxwm.js → chunk-5sgac68y.js} +1 -1
- package/dist/{chunk-kes4ygmz.js → chunk-69qgh20f.js} +1 -1
- package/dist/chunk-y51c4tsz.js +11 -0
- package/dist/chunk-y51c4tsz.js.map +10 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +5 -5
- package/dist/pages/console/data/messages.d.ts +6 -0
- package/dist/pages/console/data/messages.d.ts.map +1 -1
- package/dist/pages/console/data/shared.d.ts.map +1 -1
- package/dist/pages.js +12 -5
- package/dist/pages.js.map +6 -6
- package/dist/shell/search-command.d.ts.map +1 -1
- package/package.json +22 -5
- package/src/agent/activity-label.ts +9 -1
- package/src/agent/agent-chat.tsx +57 -37
- package/src/agent/agent-execution-trace.tsx +2 -2
- package/src/agent/agent-panel.tsx +6 -4
- package/src/agent/agent.css +254 -0
- package/src/agent/artifact-panel.tsx +77 -22
- package/src/agent/background/background-tool-row.tsx +24 -10
- package/src/agent/background/interpret.ts +60 -51
- package/src/agent/components/composer-settings.tsx +20 -10
- package/src/agent/components/composer.tsx +342 -104
- package/src/agent/components/context-meter.tsx +7 -3
- package/src/agent/components/conversation-panel.tsx +96 -37
- package/src/agent/components/message-parts.tsx +390 -64
- package/src/agent/components/message-view.tsx +12 -2
- package/src/agent/components/pending-messages.tsx +338 -0
- package/src/agent/components/sandbox-recovery.tsx +36 -17
- package/src/agent/components/threads-button.tsx +3 -2
- package/src/agent/components/transcript.tsx +92 -45
- package/src/agent/conversation.ts +203 -54
- package/src/agent/delegation/agent-exchange.tsx +53 -0
- package/src/agent/delegation/child-card.tsx +6 -40
- package/src/agent/delegation/child-parts.tsx +1 -84
- package/src/agent/delegation/child-work.tsx +19 -5
- package/src/agent/delegation/interpret.ts +64 -61
- package/src/agent/delegation/model.ts +1 -1
- package/src/agent/file-edits/file-edit-tool-view.tsx +126 -0
- package/src/agent/file-edits/interpret.ts +120 -0
- package/src/agent/hooks/use-agent-conversation.ts +360 -92
- package/src/agent/hooks/use-thread-stream.ts +10 -0
- package/src/agent/i18n/en.ts +134 -16
- package/src/agent/i18n/fr.ts +122 -16
- package/src/agent/inbox-handoff.ts +47 -0
- package/src/agent/live-run.ts +23 -2
- package/src/agent/message-agent/interpret.ts +4 -3
- package/src/agent/publish-artifact/interpret.ts +14 -5
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +2 -2
- package/src/agent/questions/interpret.ts +90 -0
- package/src/agent/questions/question-card.tsx +57 -0
- package/src/agent/questions/question-composer.tsx +257 -0
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/read/interpret.ts +34 -1
- package/src/agent/read/read-tool-view.tsx +20 -4
- package/src/agent/search/interpret.ts +367 -0
- package/src/agent/search/search-tool-view.tsx +235 -0
- package/src/agent/thread-state.ts +114 -0
- package/src/agent/tool-views/built-in.tsx +33 -6
- package/src/agent/tool-views/registry.tsx +28 -2
- package/src/agent/types.ts +7 -0
- package/src/agent/view-file/view-file-tool-view.tsx +33 -19
- package/src/agent/waits.ts +50 -0
- package/src/artifacts/artifacts.css +434 -0
- package/src/artifacts/card-preview.tsx +6 -1
- package/src/artifacts/edit-session.tsx +15 -1
- package/src/artifacts/editor/block-handle.tsx +278 -0
- package/src/artifacts/editor/blocks.ts +216 -0
- package/src/artifacts/editor/callout-view.tsx +31 -0
- package/src/artifacts/editor/document-editor.tsx +484 -0
- package/src/artifacts/editor/figure-view.tsx +66 -0
- package/src/artifacts/editor/find-blocks.ts +19 -0
- package/src/artifacts/editor/markdown-document.tsx +72 -0
- package/src/artifacts/editor/messages.ts +4 -0
- package/src/artifacts/editor/schema.ts +159 -0
- package/src/artifacts/editor/selection-toolbar.tsx +364 -0
- package/src/artifacts/editor/slash-menu.tsx +251 -0
- package/src/artifacts/editor/upload.ts +40 -0
- package/src/artifacts/file-source.ts +11 -0
- package/src/artifacts/frame-editor/bundle.ts +8 -0
- package/src/artifacts/frame-editor/commands.ts +565 -0
- package/src/artifacts/frame-editor/entry.ts +6 -0
- package/src/artifacts/frame-editor/frame.ts +847 -0
- package/src/artifacts/frame-editor/generated/editor.txt +149 -0
- package/src/artifacts/frame-editor/generated.d.ts +5 -0
- package/src/artifacts/frame-editor/keys.ts +323 -0
- package/src/artifacts/frame-editor/protocol.ts +151 -0
- package/src/artifacts/frame-editor/schema.ts +293 -0
- package/src/artifacts/frame-editor/style.ts +58 -0
- package/src/artifacts/frame.tsx +14 -5
- package/src/artifacts/live/boards.ts +46 -3
- package/src/artifacts/live/document.ts +89 -0
- package/src/artifacts/live/header.tsx +9 -14
- package/src/artifacts/live/presence.ts +5 -1
- package/src/artifacts/live/session.ts +4 -2
- package/src/artifacts/live/view.ts +14 -8
- package/src/artifacts/messages.ts +192 -2
- package/src/artifacts/pdf.ts +50 -0
- package/src/artifacts/references/references.tsx +46 -11
- package/src/artifacts/renderers/canvas/board-editor.tsx +44 -155
- package/src/artifacts/renderers/canvas/board.tsx +70 -8
- package/src/artifacts/renderers/canvas/canvas.tsx +66 -15
- package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
- package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
- package/src/artifacts/renderers/canvas/comments.ts +8 -4
- package/src/artifacts/renderers/canvas/controls.tsx +64 -30
- package/src/artifacts/renderers/canvas/focus.tsx +200 -56
- package/src/artifacts/renderers/canvas/gestures.ts +265 -0
- package/src/artifacts/renderers/canvas/page-resize.tsx +542 -0
- package/src/artifacts/renderers/canvas/page-size-controls.tsx +193 -0
- package/src/artifacts/renderers/canvas/page-size.ts +218 -0
- package/src/artifacts/renderers/canvas/page-zoom.ts +280 -0
- package/src/artifacts/renderers/canvas/shown-size.ts +105 -0
- package/src/artifacts/renderers/designed-document.tsx +277 -0
- package/src/artifacts/renderers/document-tree.ts +9 -0
- package/src/artifacts/renderers/document.tsx +13 -102
- package/src/artifacts/renderers/live-frame.ts +163 -0
- package/src/artifacts/renderers/page-editor.tsx +613 -0
- package/src/artifacts/renderers/page.tsx +21 -4
- package/src/artifacts/viewer.tsx +101 -41
- package/src/index.ts +8 -0
- package/src/pages/console/data/messages.ts +6 -0
- package/src/pages/console/data/projections.tsx +4 -0
- package/src/pages/console/data/shared.tsx +1 -0
- package/src/pages/console/ontology/lineage/trail.tsx +3 -0
- package/src/shell/search-command.tsx +2 -0
- package/dist/chunk-001c4gnk.js.map +0 -204
- package/dist/chunk-5crvhjp2.js.map +0 -28
- /package/dist/{chunk-fwb9mxwm.js.map → chunk-5sgac68y.js.map} +0 -0
- /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
|
-
|
|
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
|
-
|
|
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
|
|
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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AM,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"}
|
package/dist/agent/live-run.d.ts
CHANGED
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"live-run.d.ts","sourceRoot":"","sources":["../../src/agent/live-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EAEpB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,uGAAuG;AACvG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAA;CACpD;AAED,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,EA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,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 `
|
|
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 `
|
|
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;
|
|
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
|
|
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;
|
|
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,CAA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
|
+
/** 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
|
|
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":["../../../src/agent/read/interpret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAM,MAAM,YAAY,CAAA;AAGnD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,sFAAsF;IACtF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CACzB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAEhE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAuBlE;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,MAAM,EAAE,UAAU,GAAG,IAAI,EACzB,QAAQ,GAAE,aAAkB,
|
|
1
|
+
{"version":3,"file":"interpret.d.ts","sour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G,IAAI,CAUxE;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,MAAM,EAAE,UAAU,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":"
|
|
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":"AAC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AAG,UAAU,GAAG,IAAI,CAUlE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CA0BlE;AAED,6FAA6F;AAC7F,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,QAAQ,CAAC,EAC9C,QAAQ,GAAE,aAAkB,GAC3B,eAAe,CA+BjB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,QAAQ,CAAC,EAC9C,QAAQ,GAAE,aAAkB,GAC3B,eAAe,CAoCjB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,EAAE,CAapF;AAED,+DAA+D;AAC/D,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAK1F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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"}
|