@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,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "@sixb/ui/lib/utils"
|
|
2
2
|
import { ChevronDown, Cloud, Folder, FolderPlus, Laptop, X } from "lucide-react"
|
|
3
|
-
import { useState } from "react"
|
|
3
|
+
import { Fragment, useState } from "react"
|
|
4
4
|
import type { NewThreadPlace } from "../hooks/use-new-thread-place"
|
|
5
5
|
import { useAgentMessages } from "../i18n"
|
|
6
6
|
import {
|
|
@@ -21,7 +21,9 @@ function folderName(folder: string): string {
|
|
|
21
21
|
/**
|
|
22
22
|
* Where a new conversation runs, as a quiet line under the input: set once for the conversation, and
|
|
23
23
|
* the thing a person most needs to see before sending, so it isn't among the per-message settings.
|
|
24
|
-
* Its menu holds
|
|
24
|
+
* Its menu holds each computer's folders and the cloud. In a desktop app, those are the folders
|
|
25
|
+
* chosen before on this computer, with a way to choose another. In a browser, they are the folders
|
|
26
|
+
* `sixb` is open in now, on each of the person's computers.
|
|
25
27
|
*/
|
|
26
28
|
export function ComposerPlace({
|
|
27
29
|
place,
|
|
@@ -32,17 +34,26 @@ export function ComposerPlace({
|
|
|
32
34
|
}) {
|
|
33
35
|
const messages = useAgentMessages().computer
|
|
34
36
|
const [open, setOpen] = useState(false)
|
|
35
|
-
const { cloud,
|
|
36
|
-
const name = cloud
|
|
37
|
+
const { cloud, chosen, forgetFolder } = place
|
|
38
|
+
const name = cloud
|
|
39
|
+
? messages.cloud
|
|
40
|
+
: chosen
|
|
41
|
+
? folderName(chosen.folder)
|
|
42
|
+
: messages.chooseFolderShort
|
|
37
43
|
const Icon = cloud ? Cloud : Laptop
|
|
38
|
-
const path =
|
|
44
|
+
const path =
|
|
45
|
+
!cloud && chosen
|
|
46
|
+
? place.remote && chosen.computer.name
|
|
47
|
+
? `${chosen.computer.name} · ${shownFolder(chosen.folder)}`
|
|
48
|
+
: shownFolder(chosen.folder)
|
|
49
|
+
: null
|
|
39
50
|
const described = path ?? name
|
|
40
51
|
|
|
41
52
|
return (
|
|
42
53
|
<ComposerMenu
|
|
43
54
|
open={open}
|
|
44
55
|
onOpenChange={(next) => {
|
|
45
|
-
if (next) place.refreshFolders()
|
|
56
|
+
if (next) place.refreshFolders?.()
|
|
46
57
|
setOpen(next)
|
|
47
58
|
}}
|
|
48
59
|
title={messages.placeTitle}
|
|
@@ -75,54 +86,67 @@ export function ComposerPlace({
|
|
|
75
86
|
}
|
|
76
87
|
>
|
|
77
88
|
<ComposerMenuScroll>
|
|
78
|
-
{place.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
89
|
+
{place.computers.map((computer) => (
|
|
90
|
+
<Fragment key={computer.id ?? "here"}>
|
|
91
|
+
{computer.name ? <ComposerMenuHeader>{computer.name}</ComposerMenuHeader> : null}
|
|
92
|
+
{computer.folders.map((known) => (
|
|
93
|
+
<div key={known} className="group/row relative">
|
|
94
|
+
<button
|
|
95
|
+
type="button"
|
|
96
|
+
className={cn(
|
|
97
|
+
COMPOSER_MENU_ROW_CLASS_NAME,
|
|
98
|
+
forgetFolder && "pr-9",
|
|
99
|
+
!cloud &&
|
|
100
|
+
chosen?.computer.id === computer.id &&
|
|
101
|
+
chosen.folder === known &&
|
|
102
|
+
COMPOSER_MENU_ROW_SELECTED_CLASS_NAME
|
|
103
|
+
)}
|
|
104
|
+
title={shownFolder(known)}
|
|
105
|
+
onClick={() => {
|
|
106
|
+
place.chooseFolder(computer, known)
|
|
107
|
+
setOpen(false)
|
|
108
|
+
}}
|
|
109
|
+
>
|
|
110
|
+
<Folder className="size-4 shrink-0" strokeWidth={1.9} aria-hidden="true" />
|
|
111
|
+
<span className="flex min-w-0 flex-1 flex-col gap-px">
|
|
112
|
+
<span className="truncate font-medium text-foreground">
|
|
113
|
+
{folderName(known)}
|
|
114
|
+
</span>
|
|
115
|
+
<span className="truncate text-xs leading-4 text-muted-foreground">
|
|
116
|
+
{shownFolder(known)}
|
|
117
|
+
</span>
|
|
118
|
+
</span>
|
|
119
|
+
</button>
|
|
120
|
+
{forgetFolder ? (
|
|
121
|
+
<button
|
|
122
|
+
type="button"
|
|
123
|
+
aria-label={messages.forgetFolder(shownFolder(known))}
|
|
124
|
+
title={messages.forgetFolder(shownFolder(known))}
|
|
125
|
+
className="absolute top-1/2 right-1.5 flex size-7 -translate-y-1/2 items-center justify-center rounded-full text-muted-foreground opacity-0 outline-none transition-opacity hover:bg-black/[0.05] focus-visible:opacity-100 group-hover/row:opacity-100 dark:hover:bg-white/[0.08]"
|
|
126
|
+
onClick={() => forgetFolder(known)}
|
|
127
|
+
>
|
|
128
|
+
<X className="size-3.5" strokeWidth={2.2} aria-hidden="true" />
|
|
129
|
+
</button>
|
|
130
|
+
) : null}
|
|
131
|
+
</div>
|
|
132
|
+
))}
|
|
133
|
+
</Fragment>
|
|
112
134
|
))}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
{place.pickFolder ? (
|
|
136
|
+
<button
|
|
137
|
+
type="button"
|
|
138
|
+
className={COMPOSER_MENU_ROW_CLASS_NAME}
|
|
139
|
+
onClick={() => {
|
|
140
|
+
setOpen(false)
|
|
141
|
+
void place.pickFolder?.()
|
|
142
|
+
}}
|
|
143
|
+
>
|
|
144
|
+
<FolderPlus className="size-4 shrink-0" strokeWidth={1.9} aria-hidden="true" />
|
|
145
|
+
<span className="min-w-0 flex-1 font-medium text-foreground">
|
|
146
|
+
{messages.chooseFolder}
|
|
147
|
+
</span>
|
|
148
|
+
</button>
|
|
149
|
+
) : null}
|
|
126
150
|
<ComposerMenuDivider strong />
|
|
127
151
|
<button
|
|
128
152
|
type="button"
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
type ClipboardEvent,
|
|
36
36
|
type KeyboardEvent,
|
|
37
|
+
type ReactNode,
|
|
37
38
|
useCallback,
|
|
38
39
|
useEffect,
|
|
39
40
|
useLayoutEffect,
|
|
@@ -119,6 +120,19 @@ export interface ComposerProps {
|
|
|
119
120
|
/** Exact context snapshot to restore after a failed send. */
|
|
120
121
|
readonly draftContext?: readonly AgentContextEntryInput[]
|
|
121
122
|
readonly draftNonce?: number
|
|
123
|
+
/**
|
|
124
|
+
* What an artifact hands the conversation, such as the comments the reader asks the Agent to
|
|
125
|
+
* act on, each time `nonce` changes to a non-zero value: its context joins the chips, replacing
|
|
126
|
+
* one of the same identity, and its words start an empty input, the reader's own kept. Nothing
|
|
127
|
+
* is sent.
|
|
128
|
+
*/
|
|
129
|
+
readonly insertion?: {
|
|
130
|
+
readonly text: string
|
|
131
|
+
readonly context?: AgentContextInput
|
|
132
|
+
readonly nonce: number
|
|
133
|
+
}
|
|
134
|
+
/** The insertion of that `nonce` joined the input: its holder lets it go. */
|
|
135
|
+
readonly onInserted?: (nonce: number) => void
|
|
122
136
|
/** Ambient context offered for the next turn. Explicit @ selections remain composer-local. */
|
|
123
137
|
readonly ambientContext?: readonly AgentContextInput[]
|
|
124
138
|
/** Scope drag/drop and overlays to an embedded panel instead of the whole viewport. */
|
|
@@ -146,6 +160,11 @@ export interface ComposerProps {
|
|
|
146
160
|
readonly contextMeter?: ContextMeterProps
|
|
147
161
|
/** Where a new conversation runs, where there's a choice; "waiting" until that's known. */
|
|
148
162
|
readonly newThreadPlace?: NewThreadPlace | "waiting"
|
|
163
|
+
/**
|
|
164
|
+
* The page's own choices for the conversation the next message creates, such as its repository,
|
|
165
|
+
* at the end of the line under the input.
|
|
166
|
+
*/
|
|
167
|
+
readonly newThreadControls?: ReactNode
|
|
149
168
|
}
|
|
150
169
|
|
|
151
170
|
type ComposerAttachment =
|
|
@@ -217,6 +236,8 @@ export function Composer({
|
|
|
217
236
|
draftAttachments,
|
|
218
237
|
draftContext,
|
|
219
238
|
draftNonce,
|
|
239
|
+
insertion,
|
|
240
|
+
onInserted,
|
|
220
241
|
ambientContext = [],
|
|
221
242
|
compact = false,
|
|
222
243
|
approvalMode,
|
|
@@ -226,6 +247,7 @@ export function Composer({
|
|
|
226
247
|
commands = [],
|
|
227
248
|
contextMeter,
|
|
228
249
|
newThreadPlace,
|
|
250
|
+
newThreadControls,
|
|
229
251
|
}: ComposerProps) {
|
|
230
252
|
const agentMessages = useAgentMessages()
|
|
231
253
|
const messages = agentMessages.composer
|
|
@@ -369,6 +391,29 @@ export function Composer({
|
|
|
369
391
|
textareaRef.current?.focus()
|
|
370
392
|
}, [draftNonce])
|
|
371
393
|
|
|
394
|
+
// What an artifact hands the input: its context as a chip, its words in an empty input, the
|
|
395
|
+
// caret after what the input holds.
|
|
396
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: added only when the nonce changes
|
|
397
|
+
useEffect(() => {
|
|
398
|
+
if (!insertion?.nonce) return
|
|
399
|
+
const { context, text } = insertion
|
|
400
|
+
if (context) {
|
|
401
|
+
const identity = agentContextIdentity(context)
|
|
402
|
+
setContextEntries((current) => [
|
|
403
|
+
...current.filter((entry) => agentContextIdentity(entry.context) !== identity),
|
|
404
|
+
{ context, origin: "explicit" },
|
|
405
|
+
])
|
|
406
|
+
}
|
|
407
|
+
setValue((current) => (current.trim() ? current : text))
|
|
408
|
+
onInserted?.(insertion.nonce)
|
|
409
|
+
requestAnimationFrame(() => {
|
|
410
|
+
const input = textareaRef.current
|
|
411
|
+
if (!input) return
|
|
412
|
+
input.focus()
|
|
413
|
+
input.setSelectionRange(input.value.length, input.value.length)
|
|
414
|
+
})
|
|
415
|
+
}, [insertion?.nonce])
|
|
416
|
+
|
|
372
417
|
// However a dictation ends, the focus returns to the input, the caret after any transcript.
|
|
373
418
|
useEffect(() => {
|
|
374
419
|
const wasDictating = wasDictatingRef.current
|
|
@@ -409,8 +454,7 @@ export function Composer({
|
|
|
409
454
|
// Grow the textarea to fit its content, up to a max height where it starts scrolling.
|
|
410
455
|
// Keep overflow hidden until the content actually exceeds the cap so an empty input does not
|
|
411
456
|
// render a scrollbar in browsers configured to always show scroll bars.
|
|
412
|
-
|
|
413
|
-
useLayoutEffect(() => {
|
|
457
|
+
const measure = () => {
|
|
414
458
|
const el = textareaRef.current
|
|
415
459
|
if (!el) return
|
|
416
460
|
if (!expanded) inlineWidthRef.current = el.clientWidth
|
|
@@ -421,7 +465,34 @@ export function Composer({
|
|
|
421
465
|
el.style.height = "auto"
|
|
422
466
|
el.style.overflowY = el.scrollHeight > MAX_HEIGHT_PX ? "auto" : "hidden"
|
|
423
467
|
el.style.height = `${Math.min(el.scrollHeight, MAX_HEIGHT_PX)}px`
|
|
424
|
-
}
|
|
468
|
+
}
|
|
469
|
+
const measureRef = useRef(measure)
|
|
470
|
+
measureRef.current = measure
|
|
471
|
+
|
|
472
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: re-measure whenever the text changes
|
|
473
|
+
useLayoutEffect(measure, [value, attachments.length, contextEntries.length, expanded])
|
|
474
|
+
|
|
475
|
+
// The row's width changes without the text changing: the model label settles after the first
|
|
476
|
+
// render, or the window resizes. A height measured at the old width would keep a wrapped
|
|
477
|
+
// placeholder's two lines.
|
|
478
|
+
useEffect(() => {
|
|
479
|
+
const el = textareaRef.current
|
|
480
|
+
if (!el) return
|
|
481
|
+
let width = el.clientWidth
|
|
482
|
+
let frame = 0
|
|
483
|
+
// Measuring resizes the textarea, so it waits a frame rather than resize inside the callback.
|
|
484
|
+
const observer = new ResizeObserver(() => {
|
|
485
|
+
if (el.clientWidth === width) return
|
|
486
|
+
width = el.clientWidth
|
|
487
|
+
cancelAnimationFrame(frame)
|
|
488
|
+
frame = requestAnimationFrame(() => measureRef.current())
|
|
489
|
+
})
|
|
490
|
+
observer.observe(el)
|
|
491
|
+
return () => {
|
|
492
|
+
observer.disconnect()
|
|
493
|
+
cancelAnimationFrame(frame)
|
|
494
|
+
}
|
|
495
|
+
}, [])
|
|
425
496
|
|
|
426
497
|
const submit = () => {
|
|
427
498
|
if (!canSend) return
|
|
@@ -844,6 +915,9 @@ export function Composer({
|
|
|
844
915
|
<div
|
|
845
916
|
data-dragging={draggingFiles || undefined}
|
|
846
917
|
data-expanded={expanded || undefined}
|
|
918
|
+
// The composer focuses itself on arrival and after each answer; on a phone that raises
|
|
919
|
+
// the keyboard only after a tap on it (TouchViewport).
|
|
920
|
+
data-focus-on-tap=""
|
|
847
921
|
className="group/composer sixb-composer-surface relative flex flex-wrap items-end gap-0.5 rounded-[30px] p-2.5 data-[expanded]:gap-y-1 data-[expanded]:rounded-[26px]"
|
|
848
922
|
>
|
|
849
923
|
{/* The draft on one line, to tell when it stops fitting there. */}
|
|
@@ -1009,12 +1083,23 @@ export function Composer({
|
|
|
1009
1083
|
)}
|
|
1010
1084
|
</div>
|
|
1011
1085
|
</div>
|
|
1012
|
-
{newThreadPlace ? (
|
|
1086
|
+
{newThreadPlace || newThreadControls ? (
|
|
1013
1087
|
// Its height held from the first render: the composer doesn't move when the place arrives.
|
|
1014
|
-
<div
|
|
1015
|
-
|
|
1088
|
+
<div
|
|
1089
|
+
data-slot="composer-place"
|
|
1090
|
+
className="mt-1.5 flex h-7 min-w-0 items-center gap-2 px-3.5"
|
|
1091
|
+
>
|
|
1092
|
+
{newThreadPlace && newThreadPlace !== "waiting" ? (
|
|
1016
1093
|
<ComposerPlace place={newThreadPlace} disabled={disabled || pending} />
|
|
1017
|
-
)}
|
|
1094
|
+
) : null}
|
|
1095
|
+
{newThreadControls ? (
|
|
1096
|
+
<div
|
|
1097
|
+
data-slot="composer-new-thread-controls"
|
|
1098
|
+
className="ml-auto flex min-w-0 items-center"
|
|
1099
|
+
>
|
|
1100
|
+
{newThreadControls}
|
|
1101
|
+
</div>
|
|
1102
|
+
) : null}
|
|
1018
1103
|
</div>
|
|
1019
1104
|
) : null}
|
|
1020
1105
|
<span className="sr-only" aria-live="polite">
|
|
@@ -3,8 +3,11 @@ import {
|
|
|
3
3
|
type AgentContextInput,
|
|
4
4
|
agentContextIdentity,
|
|
5
5
|
} from "@sixb/core/agents/context"
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from "@sixb/ui/components"
|
|
6
7
|
import { cn } from "@sixb/ui/lib/utils"
|
|
7
|
-
import { Box, PanelsTopLeft, X } from "lucide-react"
|
|
8
|
+
import { Box, MessageSquare, PanelsTopLeft, X } from "lucide-react"
|
|
9
|
+
import { useState } from "react"
|
|
10
|
+
import { type CommentsContextValue, readCommentsContext } from "../../artifacts/comments-context"
|
|
8
11
|
import { useAgentMessages } from "../i18n"
|
|
9
12
|
import { useAgentContextLabel } from "../object-context-title"
|
|
10
13
|
|
|
@@ -50,16 +53,23 @@ function ContextChip({
|
|
|
50
53
|
}) {
|
|
51
54
|
const messages = useAgentMessages().context
|
|
52
55
|
const label = useAgentContextLabel(context)
|
|
56
|
+
const comments = readCommentsContext(context)
|
|
53
57
|
return (
|
|
54
58
|
<span className={cn(COMPOSER_CHIP_CLASS_NAME, onRemove ? "pr-1.5" : "pr-2.5")}>
|
|
55
59
|
<span className={COMPOSER_CHIP_THUMB_CLASS_NAME}>
|
|
56
60
|
{context.kind === "object" ? (
|
|
57
61
|
<Box className="size-3" strokeWidth={2} aria-hidden="true" />
|
|
62
|
+
) : comments ? (
|
|
63
|
+
<MessageSquare className="size-3" strokeWidth={2} aria-hidden="true" />
|
|
58
64
|
) : (
|
|
59
65
|
<PanelsTopLeft className="size-3" strokeWidth={2} aria-hidden="true" />
|
|
60
66
|
)}
|
|
61
67
|
</span>
|
|
62
|
-
|
|
68
|
+
{comments ? (
|
|
69
|
+
<CommentsPreview label={label} comments={comments} />
|
|
70
|
+
) : (
|
|
71
|
+
<span className="min-w-0 flex-1 truncate">{label}</span>
|
|
72
|
+
)}
|
|
63
73
|
{onRemove ? (
|
|
64
74
|
<button
|
|
65
75
|
type="button"
|
|
@@ -73,3 +83,63 @@ function ContextChip({
|
|
|
73
83
|
</span>
|
|
74
84
|
)
|
|
75
85
|
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A comments chip's name, which shows the comments' words on hover or on a tap: what the reader
|
|
89
|
+
* sends, never the addresses and ids the Agent reads.
|
|
90
|
+
*/
|
|
91
|
+
function CommentsPreview({
|
|
92
|
+
label,
|
|
93
|
+
comments,
|
|
94
|
+
}: {
|
|
95
|
+
readonly label: string
|
|
96
|
+
readonly comments: CommentsContextValue
|
|
97
|
+
}) {
|
|
98
|
+
const messages = useAgentMessages().context
|
|
99
|
+
const [open, setOpen] = useState(false)
|
|
100
|
+
return (
|
|
101
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
102
|
+
<PopoverTrigger asChild>
|
|
103
|
+
<button
|
|
104
|
+
type="button"
|
|
105
|
+
aria-label={messages.showComments(label)}
|
|
106
|
+
onPointerEnter={(event) => {
|
|
107
|
+
if (event.pointerType === "mouse") setOpen(true)
|
|
108
|
+
}}
|
|
109
|
+
onPointerLeave={(event) => {
|
|
110
|
+
if (event.pointerType === "mouse") setOpen(false)
|
|
111
|
+
}}
|
|
112
|
+
className="min-w-0 flex-1 truncate rounded-sm text-left outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
|
|
113
|
+
>
|
|
114
|
+
{label}
|
|
115
|
+
</button>
|
|
116
|
+
</PopoverTrigger>
|
|
117
|
+
<PopoverContent
|
|
118
|
+
align="start"
|
|
119
|
+
side="top"
|
|
120
|
+
sideOffset={8}
|
|
121
|
+
className="w-80 max-w-[calc(100vw-2rem)] p-0"
|
|
122
|
+
onOpenAutoFocus={(event) => event.preventDefault()}
|
|
123
|
+
>
|
|
124
|
+
<ul
|
|
125
|
+
className="m-0 flex max-h-72 list-none flex-col gap-3 overflow-y-auto p-3"
|
|
126
|
+
data-comments-preview=""
|
|
127
|
+
>
|
|
128
|
+
{comments.comments.map((comment) => (
|
|
129
|
+
<li key={comment.id} className="flex flex-col gap-0.5">
|
|
130
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
131
|
+
{comment.author ?? messages.someone}
|
|
132
|
+
</span>
|
|
133
|
+
<span className="text-sm leading-5 text-foreground">{comment.body}</span>
|
|
134
|
+
{comment.replies.length > 0 ? (
|
|
135
|
+
<span className="text-xs text-muted-foreground">
|
|
136
|
+
{messages.replies(comment.replies.length)}
|
|
137
|
+
</span>
|
|
138
|
+
) : null}
|
|
139
|
+
</li>
|
|
140
|
+
))}
|
|
141
|
+
</ul>
|
|
142
|
+
</PopoverContent>
|
|
143
|
+
</Popover>
|
|
144
|
+
)
|
|
145
|
+
}
|
|
@@ -4,8 +4,9 @@ import { Plus } from "lucide-react"
|
|
|
4
4
|
import type { ReactNode } from "react"
|
|
5
5
|
import type { ConversationComposerProps } from "../hooks/use-agent-conversation"
|
|
6
6
|
import { useAgentMessages } from "../i18n"
|
|
7
|
+
import { QuestionComposer, type QuestionComposerProps } from "../questions/question-composer"
|
|
7
8
|
import type { Agent, AgentContextInput, AgentThread } from "../types"
|
|
8
|
-
import { Composer } from "./composer"
|
|
9
|
+
import { Composer, type ComposerProps } from "./composer"
|
|
9
10
|
import { ThreadsButton } from "./threads-button"
|
|
10
11
|
import { Transcript, type TranscriptProps } from "./transcript"
|
|
11
12
|
|
|
@@ -17,7 +18,10 @@ export interface ConversationPanelProps {
|
|
|
17
18
|
readonly readOnly?: boolean
|
|
18
19
|
readonly agent: Agent | undefined
|
|
19
20
|
readonly transcript: TranscriptProps
|
|
20
|
-
|
|
21
|
+
/** The conversation's composer, and the page's choices for a conversation not created yet. */
|
|
22
|
+
readonly composer: ConversationComposerProps & Pick<ComposerProps, "newThreadControls">
|
|
23
|
+
/** The Agent's question, which takes the composer's place while set. */
|
|
24
|
+
readonly question?: QuestionComposerProps | null
|
|
21
25
|
readonly messagesLoading: boolean
|
|
22
26
|
readonly messagesError: string | null
|
|
23
27
|
/** The selected durable thread, or null while composing a new one. */
|
|
@@ -41,6 +45,7 @@ export function ConversationPanel({
|
|
|
41
45
|
agent,
|
|
42
46
|
transcript,
|
|
43
47
|
composer,
|
|
48
|
+
question = null,
|
|
44
49
|
messagesLoading,
|
|
45
50
|
messagesError,
|
|
46
51
|
currentThread,
|
|
@@ -65,18 +70,33 @@ export function ConversationPanel({
|
|
|
65
70
|
transcript.messages.some((message) => message.id === null)
|
|
66
71
|
const showWelcome =
|
|
67
72
|
!messagesLoading && !messagesError && !hasActivity && transcript.messages.length === 0
|
|
73
|
+
// A reader who cannot write here cannot answer: the reply shows the question as waiting.
|
|
74
|
+
const asking = readOnly ? null : question
|
|
68
75
|
const renderComposer = (wideClassName?: string) =>
|
|
69
76
|
readOnly ? (
|
|
70
77
|
// Where the composer would end, so the notice keeps its place at the foot of the pane.
|
|
71
78
|
<div aria-hidden className={compact ? "pb-4" : "pb-3"} />
|
|
72
79
|
) : (
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
<>
|
|
81
|
+
{asking ? (
|
|
82
|
+
<QuestionComposer
|
|
83
|
+
// The question is the conversation's last message: a new one starts over.
|
|
84
|
+
key={transcript.messages.at(-1)?.key}
|
|
85
|
+
{...asking}
|
|
86
|
+
className={compact ? "px-4 pt-2 pb-4" : wideClassName}
|
|
87
|
+
/>
|
|
88
|
+
) : null}
|
|
89
|
+
{/* Kept while the question asks, so a draft written before it is still there after. */}
|
|
90
|
+
<div className={asking ? "hidden" : "contents"}>
|
|
91
|
+
<Composer
|
|
92
|
+
{...composer}
|
|
93
|
+
placeholder={composerPlaceholder}
|
|
94
|
+
className={compact ? "px-4 pt-2 pb-4" : wideClassName}
|
|
95
|
+
ambientContext={ambientContext}
|
|
96
|
+
compact={compact}
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
</>
|
|
80
100
|
)
|
|
81
101
|
|
|
82
102
|
const threadsButton = onOpenThreads ? (
|
|
@@ -140,7 +160,7 @@ export function ConversationPanel({
|
|
|
140
160
|
<p className="max-w-md text-sm text-destructive">{messagesError}</p>
|
|
141
161
|
</div>
|
|
142
162
|
) : (
|
|
143
|
-
<Transcript onNewThread={onNewChat} {...transcript} />
|
|
163
|
+
<Transcript onNewThread={onNewChat} {...transcript} onAnswer={asking?.onAnswer} />
|
|
144
164
|
)}
|
|
145
165
|
</div>
|
|
146
166
|
|
|
@@ -13,6 +13,7 @@ import { useArtifactPanel } from "../artifact-panel"
|
|
|
13
13
|
import { generatedMedia } from "../bash/bash-tool-view"
|
|
14
14
|
import { savedMemories } from "../bash/interpret"
|
|
15
15
|
import { ModelMediaView } from "../bash/model-media-view"
|
|
16
|
+
import { ChildAsked } from "../delegation/agent-exchange"
|
|
16
17
|
import { ChildCards } from "../delegation/child-cards"
|
|
17
18
|
import { describeDelegationTool, spawnedChildren } from "../delegation/interpret"
|
|
18
19
|
import { useAgentMessages } from "../i18n"
|
|
@@ -24,16 +25,21 @@ import {
|
|
|
24
25
|
toolResultValue,
|
|
25
26
|
} from "../parts"
|
|
26
27
|
import { turnArtifacts, unpublishedTitles } from "../publish-artifact/interpret"
|
|
28
|
+
import { isAskTool } from "../questions/interpret"
|
|
29
|
+
import { QuestionCards } from "../questions/question-card"
|
|
27
30
|
import { builtInToolView } from "../tool-views/built-in"
|
|
28
31
|
import { AnswerToolViews, ProjectToolView, useAgentToolView } from "../tool-views/registry"
|
|
29
32
|
import { coerceWebSearchOutput, collectWebSources } from "../utils/web-search"
|
|
33
|
+
import { waitsForChildren } from "../waits"
|
|
30
34
|
import { ACTIVITY_STATUS_ROW_CLASS_NAME, ActivityStatusText } from "./activity-status"
|
|
31
35
|
import { ApprovalCards } from "./approval-card"
|
|
32
36
|
import { FileAttachmentCard } from "./file-attachment-card"
|
|
33
37
|
import { WebSources } from "./web-sources"
|
|
34
38
|
|
|
35
39
|
/** Calls a sub-agent's row stands for, in the conversation and in its thread. */
|
|
36
|
-
|
|
40
|
+
function isDelegationRow(tool: NormalizedTool): boolean {
|
|
41
|
+
return tool.toolName === "spawn_agent" || waitsForChildren(tool)
|
|
42
|
+
}
|
|
37
43
|
|
|
38
44
|
/**
|
|
39
45
|
* Render an assistant body from normalized parts. Narration text stays on the main reading path;
|
|
@@ -49,6 +55,7 @@ export function AssistantBody({
|
|
|
49
55
|
parts,
|
|
50
56
|
live = false,
|
|
51
57
|
nested = false,
|
|
58
|
+
runId,
|
|
52
59
|
}: {
|
|
53
60
|
parts: readonly NormalizedPart[]
|
|
54
61
|
/** True while this body is driven by an in-flight run, so its headline shows live progress. */
|
|
@@ -58,6 +65,8 @@ export function AssistantBody({
|
|
|
58
65
|
* on the card already.
|
|
59
66
|
*/
|
|
60
67
|
nested?: boolean
|
|
68
|
+
/** The turn's run, whose restore points say what it changed in the artifacts it revised. */
|
|
69
|
+
runId?: string | null
|
|
61
70
|
}) {
|
|
62
71
|
const blocks: React.ReactNode[] = []
|
|
63
72
|
let textBuffer: string[] = []
|
|
@@ -84,9 +93,9 @@ export function AssistantBody({
|
|
|
84
93
|
(part) =>
|
|
85
94
|
!(
|
|
86
95
|
part.kind === "tool" &&
|
|
87
|
-
((
|
|
88
|
-
|
|
89
|
-
(!nested &&
|
|
96
|
+
((isDelegationRow(part.tool) && childQuestions(part.tool).length === 0) ||
|
|
97
|
+
(!nested && heldCallsInParts([part]).length > 0) ||
|
|
98
|
+
(!nested && part.tool.toolName === "ask"))
|
|
90
99
|
)
|
|
91
100
|
)
|
|
92
101
|
if (shown.some((part) => part.kind !== "step-start")) {
|
|
@@ -98,6 +107,11 @@ export function AssistantBody({
|
|
|
98
107
|
|
|
99
108
|
const held = heldCallsInParts(work)
|
|
100
109
|
if (held.length > 0) blocks.push(<ApprovalCards key={`approvals-${key++}`} calls={held} />)
|
|
110
|
+
// The Agent's questions to the user are the reply's last word, each a card to answer.
|
|
111
|
+
const asked = work.flatMap((part) =>
|
|
112
|
+
part.kind === "tool" && part.tool.toolName === "ask" ? [part.tool] : []
|
|
113
|
+
)
|
|
114
|
+
if (asked.length > 0) blocks.push(<QuestionCards key={`questions-${key++}`} tools={asked} />)
|
|
101
115
|
const spawned = spawnedChildren(work)
|
|
102
116
|
if (spawned.length > 0) blocks.push(<ChildCards key={`children-${key++}`} spawned={spawned} />)
|
|
103
117
|
}
|
|
@@ -117,6 +131,13 @@ export function AssistantBody({
|
|
|
117
131
|
blocks.push(<FileBlock key={`block-${key++}`} part={part} />)
|
|
118
132
|
return
|
|
119
133
|
}
|
|
134
|
+
// In a sub-agent's panel, its question to the Agent is part of the conversation, not the work.
|
|
135
|
+
if (nested && part.kind === "tool" && isAskTool(part.tool.toolName)) {
|
|
136
|
+
flushText()
|
|
137
|
+
flushWork(false)
|
|
138
|
+
blocks.push(<ChildAsked key={`block-${key++}`} tool={part.tool} />)
|
|
139
|
+
return
|
|
140
|
+
}
|
|
120
141
|
// reasoning | tool | step-start — buffered together into one work run.
|
|
121
142
|
flushText()
|
|
122
143
|
workBuffer.push(part)
|
|
@@ -126,7 +147,9 @@ export function AssistantBody({
|
|
|
126
147
|
flushWork(live)
|
|
127
148
|
blocks.push(<AnswerToolViews key="answer-tools" parts={parts} />)
|
|
128
149
|
const artifacts = turnArtifacts(parts)
|
|
129
|
-
if (artifacts.length > 0)
|
|
150
|
+
if (artifacts.length > 0) {
|
|
151
|
+
blocks.push(<ArtifactCards key="artifacts" artifacts={artifacts} runId={runId ?? null} />)
|
|
152
|
+
}
|
|
130
153
|
// Saving is work the reply keeps quiet about; what was remembered is the user's to see.
|
|
131
154
|
savedMemories(parts).forEach((save, index) => {
|
|
132
155
|
blocks.push(<SavedToMemory key={`memory:${index}`} {...save} />)
|
|
@@ -420,7 +443,7 @@ export function BuiltInToolRow({
|
|
|
420
443
|
className={cn(
|
|
421
444
|
"min-w-0 font-medium",
|
|
422
445
|
// A sub-agent's question reads in full.
|
|
423
|
-
tool.toolName
|
|
446
|
+
isAskTool(tool.toolName) ? "text-left break-words" : "truncate"
|
|
424
447
|
)}
|
|
425
448
|
>
|
|
426
449
|
{title}
|