@sixb/app 0.2.1 → 0.2.4
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/dist/agent/activity-label.d.ts.map +1 -1
- package/dist/agent/agent-chat.d.ts +9 -2
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/agent-panel.d.ts +9 -1
- package/dist/agent/agent-panel.d.ts.map +1 -1
- package/dist/agent/agent-surface.d.ts.map +1 -1
- package/dist/agent/artifact-card.d.ts +3 -1
- package/dist/agent/artifact-card.d.ts.map +1 -1
- package/dist/agent/artifact-panel.d.ts +7 -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-place.d.ts +3 -1
- package/dist/agent/components/composer-place.d.ts.map +1 -1
- package/dist/agent/components/composer.d.ts +20 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/context-chips.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/conversation-panel.d.ts +7 -2
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +3 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/thread-artifacts-menu.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/composer-insertion.d.ts +24 -0
- package/dist/agent/composer-insertion.d.ts.map +1 -0
- 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 +4 -10
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts +5 -5
- 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-new-thread-place.d.ts +39 -17
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +59 -4
- 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 +96 -8
- package/dist/agent/i18n/index.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 +8 -2
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts +9 -0
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts.map +1 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +4 -2
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -1
- package/dist/agent/publish-artifact/use-live-publishes.d.ts +3 -3
- package/dist/agent/publish-artifact/use-live-publishes.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/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/types.d.ts +3 -1
- package/dist/agent/types.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/artifact-page.d.ts.map +1 -1
- package/dist/artifacts/artifact-viewer.d.ts +16 -0
- package/dist/artifacts/artifact-viewer.d.ts.map +1 -0
- package/dist/artifacts/card-details.d.ts +1 -1
- package/dist/artifacts/card-details.d.ts.map +1 -1
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/comments-context.d.ts +48 -0
- package/dist/artifacts/comments-context.d.ts.map +1 -0
- package/dist/artifacts/edit-session.d.ts +17 -7
- package/dist/artifacts/edit-session.d.ts.map +1 -1
- package/dist/artifacts/file-source.d.ts.map +1 -1
- package/dist/artifacts/frame.d.ts +10 -2
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/artifacts/guest-badge.d.ts +8 -0
- package/dist/artifacts/guest-badge.d.ts.map +1 -0
- package/dist/artifacts/held-artifact.d.ts +19 -0
- package/dist/artifacts/held-artifact.d.ts.map +1 -0
- package/dist/artifacts/holders.d.ts +10 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/live/boards.d.ts +15 -0
- package/dist/artifacts/live/boards.d.ts.map +1 -0
- package/dist/artifacts/live/canvas.d.ts +79 -0
- package/dist/artifacts/live/canvas.d.ts.map +1 -0
- package/dist/artifacts/live/header.d.ts +29 -0
- package/dist/artifacts/live/header.d.ts.map +1 -0
- package/dist/artifacts/live/hooks.d.ts +21 -0
- package/dist/artifacts/live/hooks.d.ts.map +1 -0
- package/dist/artifacts/live/presence.d.ts +32 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/session.d.ts +130 -0
- package/dist/artifacts/live/session.d.ts.map +1 -0
- package/dist/artifacts/live/view.d.ts +28 -0
- package/dist/artifacts/live/view.d.ts.map +1 -0
- package/dist/artifacts/messages.d.ts +476 -14
- package/dist/artifacts/messages.d.ts.map +1 -1
- package/dist/artifacts/page-queries.d.ts +2 -2
- package/dist/artifacts/page-queries.d.ts.map +1 -1
- package/dist/artifacts/page-state.d.ts.map +1 -1
- package/dist/artifacts/publish-edit.d.ts +24 -14
- package/dist/artifacts/publish-edit.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +490 -9
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/references/references.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/arrows.d.ts +0 -18
- package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board-editor.d.ts +50 -0
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts +37 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts +18 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board.d.ts +77 -20
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +14 -4
- package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts +84 -0
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts +58 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts +27 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts +56 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -0
- 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/draft.d.ts +7 -6
- package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts +19 -2
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/focus.d.ts +54 -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/items.d.ts +47 -4
- package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/layout.d.ts +5 -8
- package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -1
- 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/presence.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/presence.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts +54 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/renderer.d.ts +11 -2
- package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -1
- 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/canvas/thumbnail.d.ts +5 -2
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -1
- package/dist/artifacts/version-menu.d.ts +19 -0
- package/dist/artifacts/version-menu.d.ts.map +1 -0
- package/dist/artifacts/view-context.d.ts +43 -0
- package/dist/artifacts/view-context.d.ts.map +1 -0
- package/dist/artifacts/viewer.d.ts.map +1 -1
- package/dist/build.d.ts +5 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/chunk-00wggsst.js +7 -0
- package/dist/chunk-00wggsst.js.map +10 -0
- package/dist/{chunk-q69001w3.js → chunk-694m74s7.js} +7 -1
- package/dist/{chunk-q69001w3.js.map → chunk-694m74s7.js.map} +3 -3
- package/dist/{chunk-7fj9cfkw.js → chunk-970s5nkn.js} +1 -1
- package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
- package/dist/chunk-fg6thecb.js.map +10 -0
- package/dist/{chunk-ytadd0b5.js → chunk-kymx9y5e.js} +8126 -4257
- package/dist/chunk-kymx9y5e.js.map +211 -0
- package/dist/{chunk-j8g956dt.js → chunk-pxd07kvx.js} +1 -1
- package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
- package/dist/chunk-yrcm1pbg.js +5975 -0
- package/dist/chunk-yrcm1pbg.js.map +34 -0
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +932 -309
- package/dist/index.js.map +15 -10
- package/dist/locale-messages.d.ts +12 -0
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +12 -0
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +1 -1
- package/dist/metadata.d.ts +8 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/console/action-run.d.ts.map +1 -1
- package/dist/pages/console/data/connectors.d.ts.map +1 -1
- package/dist/pages/console/data/datasets.d.ts.map +1 -1
- package/dist/pages/console/data/lake-health.d.ts +3 -0
- package/dist/pages/console/data/lake-health.d.ts.map +1 -0
- package/dist/pages/console/data/messages.d.ts +98 -2
- package/dist/pages/console/data/messages.d.ts.map +1 -1
- package/dist/pages/console/data/pipelines.d.ts.map +1 -1
- package/dist/pages/console/data/projections.d.ts.map +1 -1
- package/dist/pages/console/data/syncs.d.ts.map +1 -1
- package/dist/pages/console/ontology/action-runs.d.ts.map +1 -1
- package/dist/pages/console/ontology/actions.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/artifact-picker.d.ts +36 -0
- package/dist/pages/console/ontology/components/artifact-picker.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -1
- package/dist/pages/console/ontology/lib/action-params.d.ts +2 -0
- package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts +2 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-page.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
- package/dist/pages/console/ontology/objects.d.ts.map +1 -1
- package/dist/pages/console/ontology/rules.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
- package/dist/pages/console/skeletons.d.ts +30 -0
- package/dist/pages/console/skeletons.d.ts.map +1 -0
- package/dist/pages/console/workflow-run.d.ts.map +1 -1
- package/dist/pages/section-page.d.ts +11 -1
- package/dist/pages/section-page.d.ts.map +1 -1
- package/dist/pages/section-ui.d.ts +25 -3
- package/dist/pages/section-ui.d.ts.map +1 -1
- package/dist/pages/settings/activity/calendar.d.ts.map +1 -1
- package/dist/pages/settings/activity/connections.d.ts.map +1 -1
- package/dist/pages/settings/activity/page.d.ts.map +1 -1
- package/dist/pages/settings/activity/thread.d.ts.map +1 -1
- package/dist/pages/settings/activity/timeline.d.ts +2 -0
- package/dist/pages/settings/activity/timeline.d.ts.map +1 -1
- package/dist/pages/settings/controls.d.ts +4 -0
- package/dist/pages/settings/controls.d.ts.map +1 -1
- package/dist/pages/settings/members.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts +2 -0
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/memory.d.ts.map +1 -1
- package/dist/pages/settings/service-accounts.d.ts.map +1 -1
- package/dist/pages/settings/sessions.d.ts.map +1 -1
- package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
- package/dist/pages/settings/usage/limits.d.ts.map +1 -1
- package/dist/pages/settings/usage/messages.d.ts +0 -2
- package/dist/pages/settings/usage/messages.d.ts.map +1 -1
- package/dist/pages/settings/usage/runs.d.ts +8 -2
- package/dist/pages/settings/usage/runs.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-model.d.ts +5 -0
- package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
- package/dist/pages/values.d.ts +6 -0
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +4 -0
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +8188 -4841
- package/dist/pages.js.map +56 -47
- package/dist/sections/catalog.d.ts.map +1 -1
- package/dist/sections/sections.d.ts.map +1 -1
- package/dist/server.js +294 -23
- package/dist/server.js.map +8 -7
- package/dist/service-worker.d.ts +39 -0
- package/dist/service-worker.d.ts.map +1 -0
- package/dist/shared-session.d.ts +25 -0
- package/dist/shared-session.d.ts.map +1 -0
- package/dist/shell/app-return.d.ts +35 -0
- package/dist/shell/app-return.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +1 -1
- package/dist/shell/app-shell.d.ts.map +1 -1
- package/dist/shell/nav-items.d.ts +2 -0
- package/dist/shell/nav-items.d.ts.map +1 -1
- package/dist/shell/phone/back.d.ts +6 -0
- package/dist/shell/phone/back.d.ts.map +1 -0
- package/dist/shell/phone/launch.d.ts +7 -0
- package/dist/shell/phone/launch.d.ts.map +1 -0
- package/dist/shell/phone/more-sheet.d.ts +36 -0
- package/dist/shell/phone/more-sheet.d.ts.map +1 -0
- package/dist/shell/phone/phone-foundations.d.ts +9 -0
- package/dist/shell/phone/phone-foundations.d.ts.map +1 -0
- package/dist/shell/phone/pull-to-refresh.d.ts +9 -0
- package/dist/shell/phone/pull-to-refresh.d.ts.map +1 -0
- package/dist/shell/phone/routes.d.ts +12 -0
- package/dist/shell/phone/routes.d.ts.map +1 -0
- package/dist/shell/phone/screen-motion.d.ts +11 -0
- package/dist/shell/phone/screen-motion.d.ts.map +1 -0
- package/dist/shell/phone/scroll-restoration.d.ts +7 -0
- package/dist/shell/phone/scroll-restoration.d.ts.map +1 -0
- package/dist/shell/phone/startup-image.d.ts +17 -0
- package/dist/shell/phone/startup-image.d.ts.map +1 -0
- package/dist/shell/phone/tab-bar.d.ts +14 -0
- package/dist/shell/phone/tab-bar.d.ts.map +1 -0
- package/dist/shell/phone/top-bar.d.ts +24 -0
- package/dist/shell/phone/top-bar.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +3 -1
- package/dist/shell/search-command.d.ts.map +1 -1
- package/dist/shell/user-menu.d.ts +2 -0
- package/dist/shell/user-menu.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/agent/activity-label.ts +6 -1
- package/src/agent/agent-chat.tsx +52 -8
- package/src/agent/agent-panel.tsx +12 -0
- package/src/agent/agent-surface.tsx +4 -0
- package/src/agent/artifact-card.tsx +84 -16
- package/src/agent/artifact-panel.tsx +63 -43
- package/src/agent/background/background-tool-row.tsx +24 -10
- package/src/agent/background/interpret.ts +60 -51
- package/src/agent/components/agent-message-body.tsx +1 -1
- package/src/agent/components/composer-place.tsx +77 -53
- package/src/agent/components/composer.tsx +92 -7
- package/src/agent/components/context-chips.tsx +72 -2
- package/src/agent/components/conversation-panel.tsx +30 -10
- package/src/agent/components/message-parts.tsx +29 -6
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/components/transcript.tsx +45 -27
- package/src/agent/composer-insertion.ts +36 -0
- 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 +33 -54
- 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 +61 -10
- package/src/agent/hooks/use-new-thread-place.ts +149 -25
- package/src/agent/i18n/en.ts +60 -4
- package/src/agent/i18n/fr.ts +51 -4
- package/src/agent/message-agent/interpret.ts +4 -3
- package/src/agent/publish-artifact/interpret.ts +37 -6
- package/src/agent/publish-artifact/open-artifact-tool-view.tsx +49 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +14 -8
- package/src/agent/publish-artifact/use-live-publishes.ts +7 -11
- 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/tool-views/built-in.tsx +22 -8
- package/src/agent/types.ts +4 -0
- package/src/agent/waits.ts +50 -0
- package/src/artifacts/artifact-page.tsx +42 -17
- package/src/artifacts/artifact-viewer.tsx +56 -0
- package/src/artifacts/artifacts.css +116 -0
- package/src/artifacts/card-details.ts +2 -2
- package/src/artifacts/card-preview.tsx +17 -3
- package/src/artifacts/comments-context.ts +125 -0
- package/src/artifacts/edit-session.tsx +21 -7
- package/src/artifacts/file-source.ts +10 -3
- package/src/artifacts/frame.tsx +53 -14
- package/src/artifacts/gallery.tsx +9 -11
- package/src/artifacts/guest-badge.tsx +21 -0
- package/src/artifacts/held-artifact.tsx +241 -0
- package/src/artifacts/holders.tsx +170 -0
- package/src/artifacts/live/boards.ts +95 -0
- package/src/artifacts/live/canvas.ts +402 -0
- package/src/artifacts/live/header.tsx +137 -0
- package/src/artifacts/live/hooks.ts +94 -0
- package/src/artifacts/live/presence.ts +147 -0
- package/src/artifacts/live/session.ts +520 -0
- package/src/artifacts/live/view.ts +81 -0
- package/src/artifacts/messages.ts +469 -24
- package/src/artifacts/page-queries.ts +2 -3
- package/src/artifacts/page-state.ts +16 -7
- package/src/artifacts/publish-edit.ts +50 -22
- package/src/artifacts/queries.ts +108 -10
- package/src/artifacts/references/references.tsx +6 -9
- package/src/artifacts/renderers/canvas/arrows.tsx +12 -39
- package/src/artifacts/renderers/canvas/board-editor.tsx +839 -0
- package/src/artifacts/renderers/canvas/board-properties.tsx +488 -0
- package/src/artifacts/renderers/canvas/board-source.ts +110 -0
- package/src/artifacts/renderers/canvas/board.tsx +373 -35
- package/src/artifacts/renderers/canvas/canvas.tsx +441 -75
- package/src/artifacts/renderers/canvas/comment-pins.tsx +465 -0
- package/src/artifacts/renderers/canvas/commenting.tsx +319 -0
- package/src/artifacts/renderers/canvas/comments-panel.tsx +574 -0
- package/src/artifacts/renderers/canvas/comments.ts +225 -0
- package/src/artifacts/renderers/canvas/controls.tsx +64 -30
- package/src/artifacts/renderers/canvas/draft.ts +41 -50
- package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
- package/src/artifacts/renderers/canvas/focus.tsx +321 -26
- package/src/artifacts/renderers/canvas/gestures.ts +265 -0
- package/src/artifacts/renderers/canvas/items.tsx +179 -52
- package/src/artifacts/renderers/canvas/layout.ts +99 -47
- 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/presence.tsx +184 -0
- package/src/artifacts/renderers/canvas/previews.ts +127 -0
- package/src/artifacts/renderers/canvas/renderer.tsx +87 -22
- package/src/artifacts/renderers/canvas/shown-size.ts +105 -0
- package/src/artifacts/renderers/canvas/thumbnail.tsx +56 -15
- package/src/artifacts/renderers/canvas/toolbar.tsx +1 -1
- package/src/artifacts/renderers/slides/slides.tsx +1 -1
- package/src/artifacts/version-menu.tsx +438 -0
- package/src/artifacts/view-context.ts +102 -0
- package/src/artifacts/viewer.tsx +219 -147
- package/src/build.ts +96 -11
- package/src/codegen.ts +83 -5
- package/src/createCustomApp.ts +20 -7
- package/src/index.ts +14 -0
- package/src/locale-messages.ts +24 -0
- package/src/metadata.ts +12 -0
- package/src/pages/console/action-run.tsx +20 -0
- package/src/pages/console/data/connectors.tsx +27 -3
- package/src/pages/console/data/datasets.tsx +30 -1
- package/src/pages/console/data/lake-health.tsx +299 -0
- package/src/pages/console/data/messages.ts +143 -2
- package/src/pages/console/data/pipelines.tsx +91 -3
- package/src/pages/console/data/projections.tsx +23 -4
- package/src/pages/console/data/syncs.tsx +39 -2
- package/src/pages/console/ontology/action-runs.tsx +8 -2
- package/src/pages/console/ontology/actions.tsx +39 -15
- package/src/pages/console/ontology/components/action-button.tsx +10 -0
- package/src/pages/console/ontology/components/artifact-picker.tsx +522 -0
- package/src/pages/console/ontology/components/object-query-bar.tsx +21 -5
- package/src/pages/console/ontology/lib/action-params.ts +10 -0
- package/src/pages/console/ontology/lineage/properties-panel.tsx +32 -24
- package/src/pages/console/ontology/object-page.tsx +2 -0
- package/src/pages/console/ontology/object-type.tsx +73 -14
- package/src/pages/console/ontology/object-types.tsx +56 -7
- package/src/pages/console/ontology/objects.tsx +167 -19
- package/src/pages/console/ontology/rules.tsx +186 -30
- package/src/pages/console/ontology/workflow.tsx +130 -74
- package/src/pages/console/ontology/workflows/run-input-form.tsx +21 -2
- package/src/pages/console/ontology/workflows/schema-shape.tsx +3 -0
- package/src/pages/console/ontology/workflows.tsx +34 -21
- package/src/pages/console/skeletons.tsx +99 -0
- package/src/pages/console/workflow-run.tsx +20 -0
- package/src/pages/section-page.tsx +37 -7
- package/src/pages/section-ui.tsx +96 -13
- package/src/pages/settings/activity/calendar.tsx +13 -6
- package/src/pages/settings/activity/connections.tsx +26 -9
- package/src/pages/settings/activity/page.tsx +31 -4
- package/src/pages/settings/activity/thread.tsx +32 -18
- package/src/pages/settings/activity/timeline.tsx +39 -0
- package/src/pages/settings/controls.tsx +19 -1
- package/src/pages/settings/developers.tsx +2 -2
- package/src/pages/settings/members.tsx +42 -9
- package/src/pages/settings/memory-history.tsx +76 -10
- package/src/pages/settings/memory.tsx +47 -5
- package/src/pages/settings/service-accounts.tsx +7 -2
- package/src/pages/settings/sessions.tsx +6 -2
- package/src/pages/settings/usage/breakdown.tsx +62 -2
- package/src/pages/settings/usage/limits.tsx +45 -3
- package/src/pages/settings/usage/messages.ts +0 -2
- package/src/pages/settings/usage/page.tsx +99 -52
- package/src/pages/settings/usage/runs.tsx +105 -8
- package/src/pages/settings/usage/spend-chart.tsx +79 -45
- package/src/pages/settings/usage/spend-model.ts +16 -0
- package/src/pages/values.tsx +72 -6
- package/src/pages.ts +4 -0
- package/src/sections/catalog.ts +6 -0
- package/src/sections/sections.tsx +2 -0
- package/src/service-worker.ts +176 -0
- package/src/shared-session.ts +73 -0
- package/src/shell/app-return.ts +115 -0
- package/src/shell/app-shell.tsx +125 -27
- package/src/shell/nav-items.tsx +2 -0
- package/src/shell/phone/back.ts +16 -0
- package/src/shell/phone/launch.ts +6 -0
- package/src/shell/phone/more-sheet.tsx +249 -0
- package/src/shell/phone/phone-foundations.tsx +43 -0
- package/src/shell/phone/phone.css +660 -0
- package/src/shell/phone/pull-to-refresh.tsx +201 -0
- package/src/shell/phone/routes.ts +34 -0
- package/src/shell/phone/screen-motion.ts +292 -0
- package/src/shell/phone/scroll-restoration.tsx +70 -0
- package/src/shell/phone/startup-image.ts +119 -0
- package/src/shell/phone/tab-bar.tsx +95 -0
- package/src/shell/phone/top-bar.tsx +195 -0
- package/src/shell/search-command.tsx +30 -14
- package/src/shell/user-menu.tsx +2 -1
- package/dist/chunk-4j3c3p72.js +0 -1487
- package/dist/chunk-4j3c3p72.js.map +0 -18
- package/dist/chunk-4mprsd2n.js.map +0 -10
- package/dist/chunk-ytadd0b5.js.map +0 -188
- /package/dist/{chunk-7fj9cfkw.js.map → chunk-970s5nkn.js.map} +0 -0
- /package/dist/{chunk-j8g956dt.js.map → chunk-pxd07kvx.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ListArtifactsResponse } from "@sixb/client"
|
|
1
2
|
import { listArtifactsOptions } from "@sixb/client/hooks"
|
|
2
3
|
import {
|
|
3
4
|
Button,
|
|
@@ -13,11 +14,31 @@ import { ArrowUpRight, Layers } from "lucide-react"
|
|
|
13
14
|
import { Link } from "react-router-dom"
|
|
14
15
|
import { ArtifactKindIcon } from "../../artifacts/kind-icon"
|
|
15
16
|
import { useArtifactMessages } from "../../artifacts/messages"
|
|
17
|
+
import { useArtifactVersion } from "../../artifacts/queries"
|
|
16
18
|
import type { ArtifactTarget } from "../../artifacts/target"
|
|
17
19
|
import { ARTIFACTS_HREF } from "../../pages/routes"
|
|
18
20
|
import { useArtifactPanel } from "../artifact-panel"
|
|
19
21
|
import { useAgentMessages } from "../i18n"
|
|
20
22
|
|
|
23
|
+
type ArtifactSummary = ListArtifactsResponse["artifacts"][number]
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* An artifact's kind, and its latest version once someone created it: the current version changes
|
|
27
|
+
* in place, and has no number to give yet.
|
|
28
|
+
*/
|
|
29
|
+
function ArtifactDetail({ artifact }: { readonly artifact: ArtifactSummary }) {
|
|
30
|
+
const messages = useArtifactMessages()
|
|
31
|
+
const { data } = useArtifactVersion(artifact.id, artifact.latestVersion, {
|
|
32
|
+
revision: artifact.revision,
|
|
33
|
+
})
|
|
34
|
+
return (
|
|
35
|
+
<span className="shrink-0 text-xs text-muted-foreground tabular-nums">
|
|
36
|
+
{messages.kinds[artifact.kind]}
|
|
37
|
+
{data?.frozen ? ` · ${messages.viewer.version(artifact.latestVersion)}` : null}
|
|
38
|
+
</span>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
21
42
|
/**
|
|
22
43
|
* The artifacts the Agent published in this conversation, each one opening in the panel, and the
|
|
23
44
|
* way to every artifact in the gallery. Everyone who reads the conversation lists them: its owner,
|
|
@@ -36,7 +57,6 @@ export function ThreadArtifactsMenu({
|
|
|
36
57
|
}) {
|
|
37
58
|
const panel = useArtifactPanel()
|
|
38
59
|
const messages = useAgentMessages().artifacts
|
|
39
|
-
const artifactMessages = useArtifactMessages()
|
|
40
60
|
const { data } = useQuery({
|
|
41
61
|
...listArtifactsOptions({ query: { thread: threadId } }),
|
|
42
62
|
retry: false,
|
|
@@ -70,10 +90,7 @@ export function ThreadArtifactsMenu({
|
|
|
70
90
|
>
|
|
71
91
|
<ArtifactKindIcon kind={artifact.kind} className="size-4 text-muted-foreground" />
|
|
72
92
|
<span className="min-w-0 flex-1 truncate">{artifact.title}</span>
|
|
73
|
-
<
|
|
74
|
-
{artifactMessages.kinds[artifact.kind]} ·{" "}
|
|
75
|
-
{artifactMessages.viewer.version(artifact.latestVersion)}
|
|
76
|
-
</span>
|
|
93
|
+
<ArtifactDetail artifact={artifact} />
|
|
77
94
|
</DropdownMenuItem>
|
|
78
95
|
))}
|
|
79
96
|
{withGallery ? (
|
|
@@ -27,6 +27,8 @@ import {
|
|
|
27
27
|
import { heldInCard } from "../delegation/model"
|
|
28
28
|
import { useAgentMessages } from "../i18n"
|
|
29
29
|
import { principalKey } from "../message-authors"
|
|
30
|
+
import { openQuestion } from "../questions/interpret"
|
|
31
|
+
import { type QuestionTurn, QuestionTurnContext } from "../questions/question-card"
|
|
30
32
|
import { CONTEXT_LIMIT_EXCEEDED } from "../run-presentation"
|
|
31
33
|
import { ApprovalCards } from "./approval-card"
|
|
32
34
|
import {
|
|
@@ -74,10 +76,18 @@ export interface TranscriptProps {
|
|
|
74
76
|
* that started it. Without it, a command its turn no longer runs reads as last seen running.
|
|
75
77
|
*/
|
|
76
78
|
readonly background?: TranscriptBackground
|
|
79
|
+
/**
|
|
80
|
+
* Given by a chat that shows `QuestionComposer`, from its `onAnswer`: the reply then leaves the
|
|
81
|
+
* question to it. Without it, the question reads in the reply as waiting.
|
|
82
|
+
*/
|
|
83
|
+
readonly onAnswer?: (text: string) => void
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
const NO_OUTCOMES: ReadonlyMap<string, ReportedApprovalOutcome> = new Map()
|
|
80
87
|
|
|
88
|
+
/** A reply whose questions the conversation has moved past. */
|
|
89
|
+
const CLOSED_QUESTION: QuestionTurn = { open: false }
|
|
90
|
+
|
|
81
91
|
/** Nothing said of where the commands run: no card claims how one ended that nobody saw. */
|
|
82
92
|
const UNKNOWN_BACKGROUND: TranscriptBackground = {
|
|
83
93
|
source: { onComputer: true, live: null, online: false },
|
|
@@ -143,6 +153,7 @@ function TranscriptView({
|
|
|
143
153
|
onNewThread,
|
|
144
154
|
approvals,
|
|
145
155
|
moved,
|
|
156
|
+
onAnswer,
|
|
146
157
|
}: TranscriptProps & { readonly threadDelegation: ThreadDelegation }) {
|
|
147
158
|
// Messages one person sends in a row name them once; an answer in between names them again.
|
|
148
159
|
const continuedKeys = useMemo(() => continuedUserMessages(messages), [messages])
|
|
@@ -168,6 +179,9 @@ function TranscriptView({
|
|
|
168
179
|
? currentTurnAnchor(messages, turn.kind === "responding" ? turn.runId : liveReply?.runId)
|
|
169
180
|
: lastKey(messages, (message) => message.status === "pending")
|
|
170
181
|
const newestSavedKey = lastKey(messages, (message) => message.id !== null)
|
|
182
|
+
// The reply whose questions are the conversation's last word, which its cards answer.
|
|
183
|
+
const openQuestionKey = openQuestion(messages, turn)?.messageKey ?? null
|
|
184
|
+
const asking = useMemo(() => ({ open: true, answering: onAnswer !== undefined }), [onAnswer])
|
|
171
185
|
|
|
172
186
|
// A call is answered on the card under the work that made it. One whose command output does not
|
|
173
187
|
// name it, such as output sent elsewhere, still gets a card, after its turn's saved answer, and
|
|
@@ -233,38 +247,42 @@ function TranscriptView({
|
|
|
233
247
|
return (
|
|
234
248
|
<Fragment key={message.key}>
|
|
235
249
|
{index === trailingAt ? trailingCards : null}
|
|
236
|
-
<
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
turn={turn}
|
|
249
|
-
message={message}
|
|
250
|
-
onRetry={onRetry}
|
|
251
|
-
onContinue={onContinue}
|
|
252
|
-
/>
|
|
253
|
-
),
|
|
254
|
-
}
|
|
255
|
-
: message.unfinished
|
|
250
|
+
<QuestionTurnContext.Provider
|
|
251
|
+
value={message.key === openQuestionKey ? asking : CLOSED_QUESTION}
|
|
252
|
+
>
|
|
253
|
+
<TranscriptMessage
|
|
254
|
+
message={message}
|
|
255
|
+
continued={continuedKeys.has(message.key)}
|
|
256
|
+
scrollAnchor={message.key === anchoredKey}
|
|
257
|
+
// Only the newest answer can be continued; older ones keep their notice alone.
|
|
258
|
+
{...(message.key === newestSavedKey && onContinue
|
|
259
|
+
? { onContinue, continuing: turn.continuing }
|
|
260
|
+
: {})}
|
|
261
|
+
{...(message === liveReply
|
|
256
262
|
? {
|
|
257
263
|
after: (
|
|
258
|
-
<
|
|
259
|
-
|
|
260
|
-
{
|
|
261
|
-
|
|
262
|
-
|
|
264
|
+
<TurnEnd
|
|
265
|
+
turn={turn}
|
|
266
|
+
message={message}
|
|
267
|
+
onRetry={onRetry}
|
|
268
|
+
onContinue={onContinue}
|
|
263
269
|
/>
|
|
264
270
|
),
|
|
265
271
|
}
|
|
266
|
-
:
|
|
267
|
-
|
|
272
|
+
: message.unfinished
|
|
273
|
+
? {
|
|
274
|
+
after: (
|
|
275
|
+
<UnfinishedMarker
|
|
276
|
+
unfinished={message.unfinished}
|
|
277
|
+
{...(message.key === newestSavedKey && onContinue
|
|
278
|
+
? { onContinue, continuing: turn.continuing }
|
|
279
|
+
: {})}
|
|
280
|
+
/>
|
|
281
|
+
),
|
|
282
|
+
}
|
|
283
|
+
: {})}
|
|
284
|
+
/>
|
|
285
|
+
</QuestionTurnContext.Provider>
|
|
268
286
|
{calls ? (
|
|
269
287
|
<MessageScrollerItem messageId={`approvals:${message.key}`}>
|
|
270
288
|
<ApprovalCards calls={calls} />
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AgentContextInput } from "@sixb/core/agents/context"
|
|
2
|
+
import { useCallback, useState } from "react"
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Words waiting to join the composer's input, and context to join its chips, numbered so the same
|
|
6
|
+
* handed twice joins twice.
|
|
7
|
+
*/
|
|
8
|
+
export interface ComposerInsertion {
|
|
9
|
+
readonly text: string
|
|
10
|
+
readonly context?: AgentContextInput
|
|
11
|
+
readonly nonce: number
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Words an artifact hands the conversation's input, held until the composer took them: once it
|
|
16
|
+
* has, they are gone, so a composer drawn again, as when the conversation's first message replaces
|
|
17
|
+
* its welcome, does not add them a second time.
|
|
18
|
+
*/
|
|
19
|
+
export function useComposerInsertion(): {
|
|
20
|
+
readonly insertion: ComposerInsertion | undefined
|
|
21
|
+
readonly insert: (draft: { readonly text: string; readonly context?: AgentContextInput }) => void
|
|
22
|
+
readonly inserted: (nonce: number) => void
|
|
23
|
+
} {
|
|
24
|
+
const [pending, setPending] = useState<ComposerInsertion | undefined>(undefined)
|
|
25
|
+
|
|
26
|
+
const insert = useCallback(
|
|
27
|
+
(draft: { readonly text: string; readonly context?: AgentContextInput }) =>
|
|
28
|
+
setPending((current) => ({ ...draft, nonce: (current?.nonce ?? 0) + 1 })),
|
|
29
|
+
[]
|
|
30
|
+
)
|
|
31
|
+
const inserted = useCallback(
|
|
32
|
+
(nonce: number) => setPending((current) => (current?.nonce === nonce ? undefined : current)),
|
|
33
|
+
[]
|
|
34
|
+
)
|
|
35
|
+
return { insertion: pending, insert, inserted }
|
|
36
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Bubble, BubbleContent } from "@sixb/ui/components"
|
|
2
|
+
import { useAgentMessages } from "../i18n"
|
|
3
|
+
import type { NormalizedTool } from "../parts"
|
|
4
|
+
import { askedQuestions } from "../questions/interpret"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* What the Agent sent a sub-agent, in the sub-agent's panel: its answer or its message, on the
|
|
8
|
+
* other side of the conversation, as a person's message reads in the Agent's own.
|
|
9
|
+
*/
|
|
10
|
+
export function AgentNote({ text }: { readonly text: string }) {
|
|
11
|
+
return (
|
|
12
|
+
<Bubble variant="secondary" align="end" data-agent-note="">
|
|
13
|
+
<BubbleContent className="rounded-2xl px-3.5 py-2 text-[15px] whitespace-pre-wrap">
|
|
14
|
+
{text}
|
|
15
|
+
</BubbleContent>
|
|
16
|
+
</Bubble>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A sub-agent's question to the Agent, in its panel: what it asked, as its own words, then the
|
|
22
|
+
* Agent's answer when it came in the same run. One that came later opens the next run instead.
|
|
23
|
+
*/
|
|
24
|
+
export function ChildAsked({ tool }: { readonly tool: NormalizedTool }) {
|
|
25
|
+
const labels = useAgentMessages().delegation
|
|
26
|
+
const questions = askedQuestions(tool.input)
|
|
27
|
+
if (questions.length === 0) return null
|
|
28
|
+
const output = isRecord(tool.output) ? tool.output : {}
|
|
29
|
+
const answer = typeof output.answer === "string" ? output.answer : null
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div className="flex flex-col gap-3">
|
|
33
|
+
<div className="flex flex-col gap-1.5 text-[15px] leading-relaxed text-foreground">
|
|
34
|
+
{questions.map((question) => (
|
|
35
|
+
<div key={question.question}>
|
|
36
|
+
<p className="break-words">{question.question}</p>
|
|
37
|
+
{question.choices.length > 0 ? (
|
|
38
|
+
<p className="text-[13px] text-muted-foreground">{question.choices.join(" · ")}</p>
|
|
39
|
+
) : null}
|
|
40
|
+
</div>
|
|
41
|
+
))}
|
|
42
|
+
</div>
|
|
43
|
+
{answer !== null ? <AgentNote text={answer} /> : null}
|
|
44
|
+
{output.status === "unanswered" ? (
|
|
45
|
+
<p className="text-[13px] text-muted-foreground">{labels.noAnswer}</p>
|
|
46
|
+
) : null}
|
|
47
|
+
</div>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
52
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
53
|
+
}
|
|
@@ -10,17 +10,10 @@ import { heldCallOf } from "../approvals"
|
|
|
10
10
|
import { ApprovalCard } from "../components/approval-card"
|
|
11
11
|
import { FileAttachmentCard } from "../components/file-attachment-card"
|
|
12
12
|
import { useAgentMessages } from "../i18n"
|
|
13
|
-
import {
|
|
14
|
-
AgentAvatar,
|
|
15
|
-
Exchanges,
|
|
16
|
-
ModelChip,
|
|
17
|
-
NEEDS_READER_TEXT,
|
|
18
|
-
statusLabel,
|
|
19
|
-
WorkedFor,
|
|
20
|
-
} from "./child-parts"
|
|
13
|
+
import { AgentAvatar, ModelChip, NEEDS_READER_TEXT, statusLabel, WorkedFor } from "./child-parts"
|
|
21
14
|
import { ChildWork } from "./child-work"
|
|
22
15
|
import { useDelegationCards } from "./context"
|
|
23
|
-
import { type AgentChild, activeRun, childTitle
|
|
16
|
+
import { type AgentChild, activeRun, childTitle } from "./interpret"
|
|
24
17
|
import type { ChildModel } from "./model"
|
|
25
18
|
import { type ChildrenSource, refreshChildren } from "./use-children"
|
|
26
19
|
|
|
@@ -206,12 +199,11 @@ export function ChildDetail({
|
|
|
206
199
|
}
|
|
207
200
|
|
|
208
201
|
/**
|
|
209
|
-
* What waits on the reader from one sub-agent, under the reply's line: the
|
|
210
|
-
*
|
|
202
|
+
* What waits on the reader from one sub-agent, under the reply's line: the calls it holds for
|
|
203
|
+
* approval. What passed between it and the Agent reads in its panel, from its own thread.
|
|
211
204
|
*/
|
|
212
205
|
export function ChildAttention({
|
|
213
206
|
model,
|
|
214
|
-
observed,
|
|
215
207
|
named,
|
|
216
208
|
}: {
|
|
217
209
|
readonly model: ChildModel
|
|
@@ -219,37 +211,11 @@ export function ChildAttention({
|
|
|
219
211
|
readonly named: boolean
|
|
220
212
|
}) {
|
|
221
213
|
const labels = useAgentMessages().delegation
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
const exchanges = cards?.delegation.exchanges.get(child.id) ?? []
|
|
225
|
-
const openQuestion =
|
|
226
|
-
view?.awaiting?.type === "answer"
|
|
227
|
-
? view.awaiting.question.text
|
|
228
|
-
: state === "asking" && live
|
|
229
|
-
? liveQuestion(live.parts)
|
|
230
|
-
: null
|
|
231
|
-
const asks = exchanges.length > 0 || openQuestion !== null
|
|
232
|
-
if (!asks && model.approvals.length === 0 && !model.heldLater) return null
|
|
214
|
+
const { child } = model
|
|
215
|
+
if (model.approvals.length === 0 && !model.heldLater) return null
|
|
233
216
|
|
|
234
217
|
return (
|
|
235
218
|
<div className="flex flex-col gap-2" data-child-key={child.key}>
|
|
236
|
-
{asks ? (
|
|
237
|
-
<div className="pl-[1.875rem]">
|
|
238
|
-
{named ? (
|
|
239
|
-
<p className="mb-1 text-xs font-medium text-muted-foreground">
|
|
240
|
-
{childTitle(child.key)}
|
|
241
|
-
</p>
|
|
242
|
-
) : null}
|
|
243
|
-
<Exchanges
|
|
244
|
-
exchanges={exchanges}
|
|
245
|
-
openQuestion={openQuestion}
|
|
246
|
-
urgent={needsReader || state === "asking"}
|
|
247
|
-
/>
|
|
248
|
-
{state === "answer" && !observed ? (
|
|
249
|
-
<p className="mt-1 text-xs text-muted-foreground">{labels.answerHint}</p>
|
|
250
|
-
) : null}
|
|
251
|
-
</div>
|
|
252
|
-
) : null}
|
|
253
219
|
{model.heldLater ? (
|
|
254
220
|
<button
|
|
255
221
|
type="button"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { listModelsOptions } from "@sixb/client/hooks"
|
|
2
2
|
import { cn } from "@sixb/ui/lib/utils"
|
|
3
3
|
import { useQuery } from "@tanstack/react-query"
|
|
4
|
-
import { Bot
|
|
4
|
+
import { Bot } from "lucide-react"
|
|
5
5
|
import { useEffect, useState } from "react"
|
|
6
6
|
import { latestWorkLabel } from "../activity-label"
|
|
7
7
|
import { ProviderLogo } from "../components/provider-logo"
|
|
@@ -10,7 +10,6 @@ import type { AgentMessages } from "../i18n/en"
|
|
|
10
10
|
import {
|
|
11
11
|
type AgentChild,
|
|
12
12
|
activeRun,
|
|
13
|
-
type ChildExchange,
|
|
14
13
|
type ChildState,
|
|
15
14
|
formatWorked,
|
|
16
15
|
isActive,
|
|
@@ -187,88 +186,6 @@ export function ModelChip({
|
|
|
187
186
|
)
|
|
188
187
|
}
|
|
189
188
|
|
|
190
|
-
/**
|
|
191
|
-
* What the Agent told the child, what the child asked, and what the Agent answered. The question
|
|
192
|
-
* it waits on reads in full, in amber when the reader is the one to answer.
|
|
193
|
-
*/
|
|
194
|
-
export function Exchanges({
|
|
195
|
-
exchanges,
|
|
196
|
-
openQuestion,
|
|
197
|
-
urgent,
|
|
198
|
-
}: {
|
|
199
|
-
readonly exchanges: readonly ChildExchange[]
|
|
200
|
-
readonly openQuestion: string | null
|
|
201
|
-
readonly urgent: boolean
|
|
202
|
-
}) {
|
|
203
|
-
const labels = useAgentMessages().delegation
|
|
204
|
-
const shown = [...exchanges]
|
|
205
|
-
if (openQuestion && !shown.some((each) => each.kind === "asked" && each.text === openQuestion)) {
|
|
206
|
-
shown.push({ kind: "asked", text: openQuestion })
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
let lastAsked = -1
|
|
210
|
-
shown.forEach((each, index) => {
|
|
211
|
-
if (each.kind === "asked" && each.text === openQuestion) lastAsked = index
|
|
212
|
-
})
|
|
213
|
-
|
|
214
|
-
return (
|
|
215
|
-
<ul className="flex flex-col gap-1.5">
|
|
216
|
-
{shown.map((exchange, index) => {
|
|
217
|
-
const open = index === lastAsked
|
|
218
|
-
const amber = open && urgent
|
|
219
|
-
// The question waiting on the reader: its card says so already, so it reads as itself.
|
|
220
|
-
if (amber) {
|
|
221
|
-
return (
|
|
222
|
-
<li key={`${exchange.kind}:${index}`} className="text-sm leading-5 text-foreground">
|
|
223
|
-
<span className="sr-only">{labels.asks} · </span>
|
|
224
|
-
{exchange.text}
|
|
225
|
-
</li>
|
|
226
|
-
)
|
|
227
|
-
}
|
|
228
|
-
const Icon =
|
|
229
|
-
exchange.kind === "asked"
|
|
230
|
-
? MessageCircleQuestion
|
|
231
|
-
: exchange.kind === "answered"
|
|
232
|
-
? Check
|
|
233
|
-
: CornerDownRight
|
|
234
|
-
const label =
|
|
235
|
-
exchange.kind === "asked"
|
|
236
|
-
? labels.asks
|
|
237
|
-
: exchange.kind === "answered"
|
|
238
|
-
? labels.answer
|
|
239
|
-
: labels.fromAgent
|
|
240
|
-
|
|
241
|
-
return (
|
|
242
|
-
<li
|
|
243
|
-
key={`${exchange.kind}:${index}`}
|
|
244
|
-
className={cn(
|
|
245
|
-
"flex min-w-0 items-start gap-2 text-[13px] leading-5",
|
|
246
|
-
exchange.kind === "answered" && "pl-5"
|
|
247
|
-
)}
|
|
248
|
-
>
|
|
249
|
-
<Icon
|
|
250
|
-
className={cn(
|
|
251
|
-
"mt-0.5 size-3.5 shrink-0",
|
|
252
|
-
amber ? "text-amber-600 dark:text-amber-400" : "text-muted-foreground"
|
|
253
|
-
)}
|
|
254
|
-
aria-hidden="true"
|
|
255
|
-
/>
|
|
256
|
-
<p className={cn("min-w-0 break-words", !open && "line-clamp-3")} title={exchange.text}>
|
|
257
|
-
<span
|
|
258
|
-
className={cn("font-medium", amber ? NEEDS_READER_TEXT : "text-muted-foreground")}
|
|
259
|
-
>
|
|
260
|
-
{label}
|
|
261
|
-
</span>
|
|
262
|
-
<span className="text-muted-foreground"> · </span>
|
|
263
|
-
<span className="text-foreground">{exchange.text}</span>
|
|
264
|
-
</p>
|
|
265
|
-
</li>
|
|
266
|
-
)
|
|
267
|
-
})}
|
|
268
|
-
</ul>
|
|
269
|
-
)
|
|
270
|
-
}
|
|
271
|
-
|
|
272
189
|
function tierOf(value: string | undefined): "light" | "standard" | "heavy" | undefined {
|
|
273
190
|
return value === "light" || value === "standard" || value === "heavy" ? value : undefined
|
|
274
191
|
}
|
|
@@ -7,6 +7,7 @@ import { useAgentMessages } from "../i18n"
|
|
|
7
7
|
import type { LiveRunState } from "../live-run"
|
|
8
8
|
import { normalizeDurableParts } from "../parts"
|
|
9
9
|
import type { AgentMessage } from "../types"
|
|
10
|
+
import { AgentNote } from "./agent-exchange"
|
|
10
11
|
import type { AgentChild, WaitedChild } from "./interpret"
|
|
11
12
|
import { type ChildrenSource, useChildMessages } from "./use-children"
|
|
12
13
|
|
|
@@ -107,7 +108,11 @@ export function ChildWork({
|
|
|
107
108
|
{view.runs.map((run, index) => {
|
|
108
109
|
const atWork = run.status === "queued" || run.status === "running"
|
|
109
110
|
const own = byRun.get(run.id) ?? []
|
|
110
|
-
|
|
111
|
+
// Its work, and what the Agent sent it along the way; its task heads the panel already.
|
|
112
|
+
const work = own.filter(
|
|
113
|
+
(message) =>
|
|
114
|
+
message.role === "assistant" || message.parts.some((part) => part.type === "mail")
|
|
115
|
+
)
|
|
111
116
|
|
|
112
117
|
let body: ReactNode
|
|
113
118
|
if (work.length > 0) {
|
|
@@ -166,7 +171,7 @@ function continuedAfterAnswer(
|
|
|
166
171
|
return previous?.finishReason === "awaiting_answer"
|
|
167
172
|
}
|
|
168
173
|
|
|
169
|
-
/** One run's work, as its thread keeps it: its
|
|
174
|
+
/** One run's work, as its thread keeps it: its steps, and what the Agent sent it between them. */
|
|
170
175
|
const RunWork = memo(function RunWork({
|
|
171
176
|
messages,
|
|
172
177
|
threadId,
|
|
@@ -190,9 +195,18 @@ const RunWork = memo(function RunWork({
|
|
|
190
195
|
|
|
191
196
|
return (
|
|
192
197
|
<>
|
|
193
|
-
{bodies.map((parts, position) =>
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
{bodies.map((parts, position) => {
|
|
199
|
+
const message = messages[position]
|
|
200
|
+
// What the Agent sent it, an answer or a message, reads on the Agent's side.
|
|
201
|
+
if (message?.role === "user") {
|
|
202
|
+
return message.parts.flatMap((part, index) =>
|
|
203
|
+
part.type === "mail"
|
|
204
|
+
? [<AgentNote key={`${message.id}:${index}`} text={part.text} />]
|
|
205
|
+
: []
|
|
206
|
+
)
|
|
207
|
+
}
|
|
208
|
+
return <AssistantBody key={message?.id ?? position} parts={parts} nested />
|
|
209
|
+
})}
|
|
196
210
|
</>
|
|
197
211
|
)
|
|
198
212
|
})
|