@sixb/app 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/connector-icons/README.md +1 -0
- package/assets/connector-icons/fleetio.ico +0 -0
- 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-card.d.ts +10 -0
- package/dist/agent/background/background-card.d.ts.map +1 -0
- package/dist/agent/background/background-tool-row.d.ts +9 -0
- package/dist/agent/background/background-tool-row.d.ts.map +1 -0
- package/dist/agent/background/context.d.ts +23 -0
- package/dist/agent/background/context.d.ts.map +1 -0
- package/dist/agent/background/interpret.d.ts +116 -0
- package/dist/agent/background/interpret.d.ts.map +1 -0
- package/dist/agent/bash/bash-tool-view.d.ts.map +1 -1
- package/dist/agent/bash/interpret.d.ts +4 -0
- package/dist/agent/bash/interpret.d.ts.map +1 -1
- package/dist/agent/components/composer-menu.d.ts +3 -1
- package/dist/agent/components/composer-menu.d.ts.map +1 -1
- package/dist/agent/components/composer-place.d.ts +13 -0
- package/dist/agent/components/composer-place.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +23 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/computer-place.d.ts +3 -1
- package/dist/agent/components/computer-place.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 +3 -1
- 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 +6 -0
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/components/web-fetch-tool-view.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/child-parts.d.ts +2 -0
- package/dist/agent/delegation/child-parts.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/hooks/use-agent-conversation.d.ts +24 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-new-thread-place.d.ts +70 -0
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-lists.d.ts +40 -0
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +74 -0
- 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 +126 -0
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/observed-conversation.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/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/utils/web-fetch.d.ts +33 -1
- package/dist/agent/utils/web-fetch.d.ts.map +1 -1
- package/dist/agent/utils/web-search.d.ts +14 -2
- package/dist/agent/utils/web-search.d.ts.map +1 -1
- 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 +6 -6
- 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 +424 -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 +43 -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 +64 -19
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +13 -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/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 +40 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- 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/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/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-fw2bm6dq.js → chunk-001c4gnk.js} +8086 -3870
- package/dist/chunk-001c4gnk.js.map +204 -0
- package/dist/chunk-00wggsst.js +7 -0
- package/dist/chunk-00wggsst.js.map +10 -0
- package/dist/chunk-5crvhjp2.js +4704 -0
- package/dist/chunk-5crvhjp2.js.map +28 -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-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
- package/dist/chunk-fg6thecb.js.map +10 -0
- package/dist/{chunk-j9653e83.js → chunk-fwb9mxwm.js} +1 -1
- package/dist/{chunk-km25essq.js → chunk-kes4ygmz.js} +1 -1
- package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +930 -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/shared.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 +2 -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 +8195 -4841
- package/dist/pages.js.map +58 -49
- 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 -2
- package/src/agent/agent-chat.tsx +51 -8
- package/src/agent/agent-panel.tsx +12 -0
- package/src/agent/agent-surface.tsx +4 -0
- package/src/agent/agent.css +18 -0
- package/src/agent/artifact-card.tsx +84 -16
- package/src/agent/artifact-panel.tsx +63 -43
- package/src/agent/background/background-card.tsx +308 -0
- package/src/agent/background/background-tool-row.tsx +58 -0
- package/src/agent/background/context.ts +26 -0
- package/src/agent/background/interpret.ts +356 -0
- package/src/agent/bash/bash-tool-view.tsx +9 -4
- package/src/agent/bash/interpret.ts +21 -3
- package/src/agent/components/agent-message-body.tsx +1 -1
- package/src/agent/components/composer-menu.tsx +4 -1
- package/src/agent/components/composer-place.tsx +168 -0
- package/src/agent/components/composer.tsx +101 -3
- package/src/agent/components/computer-place.tsx +18 -1
- package/src/agent/components/context-chips.tsx +72 -2
- package/src/agent/components/conversation-panel.tsx +3 -2
- package/src/agent/components/message-parts.tsx +6 -1
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/components/transcript.tsx +33 -1
- package/src/agent/components/web-fetch-tool-view.tsx +94 -29
- package/src/agent/composer-insertion.ts +36 -0
- package/src/agent/delegation/child-parts.tsx +1 -1
- package/src/agent/hooks/use-agent-conversation.ts +101 -8
- package/src/agent/hooks/use-new-thread-place.ts +294 -0
- package/src/agent/i18n/en.ts +70 -3
- package/src/agent/i18n/fr.ts +70 -3
- package/src/agent/observed-conversation.tsx +3 -0
- package/src/agent/publish-artifact/interpret.ts +27 -5
- 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/react-router.tsx +2 -2
- package/src/agent/tool-views/built-in.tsx +29 -11
- package/src/agent/types.ts +4 -0
- package/src/agent/utils/web-fetch.ts +89 -10
- package/src/agent/utils/web-search.ts +67 -28
- package/src/artifacts/artifact-page.tsx +42 -17
- package/src/artifacts/artifact-viewer.tsx +56 -0
- package/src/artifacts/artifacts.css +80 -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 +6 -6
- package/src/artifacts/file-source.ts +10 -3
- package/src/artifacts/frame.tsx +50 -12
- 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 +415 -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 +817 -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 +309 -33
- package/src/artifacts/renderers/canvas/canvas.tsx +387 -72
- 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/draft.ts +41 -50
- package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
- package/src/artifacts/renderers/canvas/focus.tsx +175 -24
- package/src/artifacts/renderers/canvas/items.tsx +179 -52
- package/src/artifacts/renderers/canvas/layout.ts +99 -47
- 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/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 +205 -147
- package/src/build.ts +96 -11
- package/src/codegen.ts +83 -5
- package/src/createCustomApp.ts +20 -7
- package/src/index.ts +12 -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/shared.tsx +1 -0
- 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 +2 -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 +17 -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-4mprsd2n.js.map +0 -10
- package/dist/chunk-fw2bm6dq.js.map +0 -182
- package/dist/chunk-zxthr2q5.js +0 -1487
- package/dist/chunk-zxthr2q5.js.map +0 -18
- /package/dist/{chunk-j9653e83.js.map → chunk-fwb9mxwm.js.map} +0 -0
- /package/dist/{chunk-km25essq.js.map → chunk-kes4ygmz.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
2
|
+
import { ChevronDown, Cloud, Folder, FolderPlus, Laptop, X } from "lucide-react"
|
|
3
|
+
import { Fragment, useState } from "react"
|
|
4
|
+
import type { NewThreadPlace } from "../hooks/use-new-thread-place"
|
|
5
|
+
import { useAgentMessages } from "../i18n"
|
|
6
|
+
import {
|
|
7
|
+
COMPOSER_MENU_ROW_CLASS_NAME,
|
|
8
|
+
COMPOSER_MENU_ROW_SELECTED_CLASS_NAME,
|
|
9
|
+
ComposerMenu,
|
|
10
|
+
ComposerMenuDivider,
|
|
11
|
+
ComposerMenuHeader,
|
|
12
|
+
ComposerMenuScroll,
|
|
13
|
+
} from "./composer-menu"
|
|
14
|
+
import { shownFolder } from "./computer-place"
|
|
15
|
+
|
|
16
|
+
/** A folder's last name: what tells it apart in a chip. */
|
|
17
|
+
function folderName(folder: string): string {
|
|
18
|
+
return folder.split("/").filter(Boolean).at(-1) ?? folder
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Where a new conversation runs, as a quiet line under the input: set once for the conversation, and
|
|
23
|
+
* the thing a person most needs to see before sending, so it isn't among the per-message settings.
|
|
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.
|
|
27
|
+
*/
|
|
28
|
+
export function ComposerPlace({
|
|
29
|
+
place,
|
|
30
|
+
disabled,
|
|
31
|
+
}: {
|
|
32
|
+
readonly place: NewThreadPlace
|
|
33
|
+
readonly disabled?: boolean
|
|
34
|
+
}) {
|
|
35
|
+
const messages = useAgentMessages().computer
|
|
36
|
+
const [open, setOpen] = useState(false)
|
|
37
|
+
const { cloud, chosen, forgetFolder } = place
|
|
38
|
+
const name = cloud
|
|
39
|
+
? messages.cloud
|
|
40
|
+
: chosen
|
|
41
|
+
? folderName(chosen.folder)
|
|
42
|
+
: messages.chooseFolderShort
|
|
43
|
+
const Icon = cloud ? Cloud : Laptop
|
|
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
|
|
50
|
+
const described = path ?? name
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<ComposerMenu
|
|
54
|
+
open={open}
|
|
55
|
+
onOpenChange={(next) => {
|
|
56
|
+
if (next) place.refreshFolders?.()
|
|
57
|
+
setOpen(next)
|
|
58
|
+
}}
|
|
59
|
+
title={messages.placeTitle}
|
|
60
|
+
align="start"
|
|
61
|
+
side="bottom"
|
|
62
|
+
className="w-[22rem]"
|
|
63
|
+
trigger={
|
|
64
|
+
<button
|
|
65
|
+
type="button"
|
|
66
|
+
disabled={disabled}
|
|
67
|
+
aria-label={messages.placeChip(described)}
|
|
68
|
+
aria-haspopup="dialog"
|
|
69
|
+
aria-expanded={open}
|
|
70
|
+
title={described}
|
|
71
|
+
className="group/place -ml-1.5 flex h-7 min-w-0 items-center gap-1.5 rounded-full pr-2 pl-1.5 text-[12.5px] font-medium text-muted-foreground outline-none transition-colors hover:bg-black/[0.05] hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 disabled:opacity-50 aria-expanded:bg-black/[0.05] aria-expanded:text-foreground dark:hover:bg-white/[0.08] dark:aria-expanded:bg-white/[0.08]"
|
|
72
|
+
>
|
|
73
|
+
<Icon className="size-3.5 shrink-0" strokeWidth={1.9} aria-hidden="true" />
|
|
74
|
+
<span className="max-w-[12rem] shrink-0 truncate">{name}</span>
|
|
75
|
+
{path ? (
|
|
76
|
+
<span className="min-w-0 truncate font-normal text-muted-foreground/70 max-sm:hidden">
|
|
77
|
+
{path}
|
|
78
|
+
</span>
|
|
79
|
+
) : null}
|
|
80
|
+
<ChevronDown
|
|
81
|
+
className="size-3 shrink-0 opacity-70 transition-transform group-aria-expanded/place:rotate-180"
|
|
82
|
+
strokeWidth={2.6}
|
|
83
|
+
aria-hidden="true"
|
|
84
|
+
/>
|
|
85
|
+
</button>
|
|
86
|
+
}
|
|
87
|
+
>
|
|
88
|
+
<ComposerMenuScroll>
|
|
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>
|
|
134
|
+
))}
|
|
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}
|
|
150
|
+
<ComposerMenuDivider strong />
|
|
151
|
+
<button
|
|
152
|
+
type="button"
|
|
153
|
+
className={cn(
|
|
154
|
+
COMPOSER_MENU_ROW_CLASS_NAME,
|
|
155
|
+
cloud && COMPOSER_MENU_ROW_SELECTED_CLASS_NAME
|
|
156
|
+
)}
|
|
157
|
+
onClick={() => {
|
|
158
|
+
place.chooseCloud()
|
|
159
|
+
setOpen(false)
|
|
160
|
+
}}
|
|
161
|
+
>
|
|
162
|
+
<Cloud className="size-4 shrink-0" strokeWidth={1.9} aria-hidden="true" />
|
|
163
|
+
<span className="min-w-0 flex-1 font-medium text-foreground">{messages.cloud}</span>
|
|
164
|
+
</button>
|
|
165
|
+
</ComposerMenuScroll>
|
|
166
|
+
</ComposerMenu>
|
|
167
|
+
)
|
|
168
|
+
}
|
|
@@ -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,
|
|
@@ -43,6 +44,7 @@ import {
|
|
|
43
44
|
} from "react"
|
|
44
45
|
import { createPortal } from "react-dom"
|
|
45
46
|
import { type AgentApprovalMode, toggledApprovalMode } from "../approvals"
|
|
47
|
+
import type { NewThreadPlace } from "../hooks/use-new-thread-place"
|
|
46
48
|
import { useAgentMessages } from "../i18n"
|
|
47
49
|
import type { AgentFileRef, LanguageModel } from "../types"
|
|
48
50
|
import { agentContextLabel, mergeAgentContext } from "../utils/context-display"
|
|
@@ -59,6 +61,7 @@ import {
|
|
|
59
61
|
commandQuery,
|
|
60
62
|
matchCommands,
|
|
61
63
|
} from "./composer-commands"
|
|
64
|
+
import { ComposerPlace } from "./composer-place"
|
|
62
65
|
import { ComposerSettings } from "./composer-settings"
|
|
63
66
|
import {
|
|
64
67
|
COMPOSER_CHIP_CLASS_NAME,
|
|
@@ -117,6 +120,19 @@ export interface ComposerProps {
|
|
|
117
120
|
/** Exact context snapshot to restore after a failed send. */
|
|
118
121
|
readonly draftContext?: readonly AgentContextEntryInput[]
|
|
119
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
|
|
120
136
|
/** Ambient context offered for the next turn. Explicit @ selections remain composer-local. */
|
|
121
137
|
readonly ambientContext?: readonly AgentContextInput[]
|
|
122
138
|
/** Scope drag/drop and overlays to an embedded panel instead of the whole viewport. */
|
|
@@ -142,6 +158,13 @@ export interface ComposerProps {
|
|
|
142
158
|
readonly commands?: readonly ComposerCommand[]
|
|
143
159
|
/** How much of its model's limit the conversation uses: a ring beside the model. */
|
|
144
160
|
readonly contextMeter?: ContextMeterProps
|
|
161
|
+
/** Where a new conversation runs, where there's a choice; "waiting" until that's known. */
|
|
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
|
|
145
168
|
}
|
|
146
169
|
|
|
147
170
|
type ComposerAttachment =
|
|
@@ -213,6 +236,8 @@ export function Composer({
|
|
|
213
236
|
draftAttachments,
|
|
214
237
|
draftContext,
|
|
215
238
|
draftNonce,
|
|
239
|
+
insertion,
|
|
240
|
+
onInserted,
|
|
216
241
|
ambientContext = [],
|
|
217
242
|
compact = false,
|
|
218
243
|
approvalMode,
|
|
@@ -221,6 +246,8 @@ export function Composer({
|
|
|
221
246
|
dictation,
|
|
222
247
|
commands = [],
|
|
223
248
|
contextMeter,
|
|
249
|
+
newThreadPlace,
|
|
250
|
+
newThreadControls,
|
|
224
251
|
}: ComposerProps) {
|
|
225
252
|
const agentMessages = useAgentMessages()
|
|
226
253
|
const messages = agentMessages.composer
|
|
@@ -364,6 +391,29 @@ export function Composer({
|
|
|
364
391
|
textareaRef.current?.focus()
|
|
365
392
|
}, [draftNonce])
|
|
366
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
|
+
|
|
367
417
|
// However a dictation ends, the focus returns to the input, the caret after any transcript.
|
|
368
418
|
useEffect(() => {
|
|
369
419
|
const wasDictating = wasDictatingRef.current
|
|
@@ -404,8 +454,7 @@ export function Composer({
|
|
|
404
454
|
// Grow the textarea to fit its content, up to a max height where it starts scrolling.
|
|
405
455
|
// Keep overflow hidden until the content actually exceeds the cap so an empty input does not
|
|
406
456
|
// render a scrollbar in browsers configured to always show scroll bars.
|
|
407
|
-
|
|
408
|
-
useLayoutEffect(() => {
|
|
457
|
+
const measure = () => {
|
|
409
458
|
const el = textareaRef.current
|
|
410
459
|
if (!el) return
|
|
411
460
|
if (!expanded) inlineWidthRef.current = el.clientWidth
|
|
@@ -416,7 +465,34 @@ export function Composer({
|
|
|
416
465
|
el.style.height = "auto"
|
|
417
466
|
el.style.overflowY = el.scrollHeight > MAX_HEIGHT_PX ? "auto" : "hidden"
|
|
418
467
|
el.style.height = `${Math.min(el.scrollHeight, MAX_HEIGHT_PX)}px`
|
|
419
|
-
}
|
|
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
|
+
}, [])
|
|
420
496
|
|
|
421
497
|
const submit = () => {
|
|
422
498
|
if (!canSend) return
|
|
@@ -839,6 +915,9 @@ export function Composer({
|
|
|
839
915
|
<div
|
|
840
916
|
data-dragging={draggingFiles || undefined}
|
|
841
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=""
|
|
842
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]"
|
|
843
922
|
>
|
|
844
923
|
{/* The draft on one line, to tell when it stops fitting there. */}
|
|
@@ -1004,6 +1083,25 @@ export function Composer({
|
|
|
1004
1083
|
)}
|
|
1005
1084
|
</div>
|
|
1006
1085
|
</div>
|
|
1086
|
+
{newThreadPlace || newThreadControls ? (
|
|
1087
|
+
// Its height held from the first render: the composer doesn't move when the place arrives.
|
|
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" ? (
|
|
1093
|
+
<ComposerPlace place={newThreadPlace} disabled={disabled || pending} />
|
|
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}
|
|
1103
|
+
</div>
|
|
1104
|
+
) : null}
|
|
1007
1105
|
<span className="sr-only" aria-live="polite">
|
|
1008
1106
|
{modeAnnouncement}
|
|
1009
1107
|
</span>
|
|
@@ -60,6 +60,8 @@ export interface ComputerOfflineNoticeProps {
|
|
|
60
60
|
/** Why the last move failed: a turn it must wait for, or anything else. */
|
|
61
61
|
readonly error: "busy" | "failed" | null
|
|
62
62
|
readonly onContinueInCloud: () => void
|
|
63
|
+
/** In a desktop app on this conversation's own computer: ask the person to run it here. */
|
|
64
|
+
readonly onRunHere?: () => void
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
/**
|
|
@@ -71,6 +73,7 @@ export function ComputerOfflineNotice({
|
|
|
71
73
|
pending,
|
|
72
74
|
error,
|
|
73
75
|
onContinueInCloud,
|
|
76
|
+
onRunHere,
|
|
74
77
|
}: ComputerOfflineNoticeProps) {
|
|
75
78
|
const messages = useAgentMessages().computer
|
|
76
79
|
return (
|
|
@@ -81,9 +84,23 @@ export function ComputerOfflineNotice({
|
|
|
81
84
|
<Laptop aria-hidden className="size-3.5 shrink-0" />
|
|
82
85
|
<span className="min-w-0 flex-1">
|
|
83
86
|
{computer
|
|
84
|
-
?
|
|
87
|
+
? onRunHere
|
|
88
|
+
? messages.offlineHere(shownFolder(computer.folder))
|
|
89
|
+
: messages.offlineNotice(computer.name, shownFolder(computer.folder))
|
|
85
90
|
: messages.noFolder}
|
|
86
91
|
</span>
|
|
92
|
+
{onRunHere ? (
|
|
93
|
+
<Button
|
|
94
|
+
type="button"
|
|
95
|
+
variant="outline"
|
|
96
|
+
size="sm"
|
|
97
|
+
disabled={pending}
|
|
98
|
+
className="h-7 rounded-full"
|
|
99
|
+
onClick={onRunHere}
|
|
100
|
+
>
|
|
101
|
+
{messages.runHere}
|
|
102
|
+
</Button>
|
|
103
|
+
) : null}
|
|
87
104
|
<AlertDialog>
|
|
88
105
|
<AlertDialogTrigger asChild>
|
|
89
106
|
<Button
|
|
@@ -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
|
+
}
|
|
@@ -5,7 +5,7 @@ import type { ReactNode } from "react"
|
|
|
5
5
|
import type { ConversationComposerProps } from "../hooks/use-agent-conversation"
|
|
6
6
|
import { useAgentMessages } from "../i18n"
|
|
7
7
|
import type { Agent, AgentContextInput, AgentThread } from "../types"
|
|
8
|
-
import { Composer } from "./composer"
|
|
8
|
+
import { Composer, type ComposerProps } from "./composer"
|
|
9
9
|
import { ThreadsButton } from "./threads-button"
|
|
10
10
|
import { Transcript, type TranscriptProps } from "./transcript"
|
|
11
11
|
|
|
@@ -17,7 +17,8 @@ export interface ConversationPanelProps {
|
|
|
17
17
|
readonly readOnly?: boolean
|
|
18
18
|
readonly agent: Agent | undefined
|
|
19
19
|
readonly transcript: TranscriptProps
|
|
20
|
-
|
|
20
|
+
/** The conversation's composer, and the page's choices for a conversation not created yet. */
|
|
21
|
+
readonly composer: ConversationComposerProps & Pick<ComposerProps, "newThreadControls">
|
|
21
22
|
readonly messagesLoading: boolean
|
|
22
23
|
readonly messagesError: string | null
|
|
23
24
|
/** The selected durable thread, or null while composing a new one. */
|
|
@@ -49,6 +49,7 @@ export function AssistantBody({
|
|
|
49
49
|
parts,
|
|
50
50
|
live = false,
|
|
51
51
|
nested = false,
|
|
52
|
+
runId,
|
|
52
53
|
}: {
|
|
53
54
|
parts: readonly NormalizedPart[]
|
|
54
55
|
/** True while this body is driven by an in-flight run, so its headline shows live progress. */
|
|
@@ -58,6 +59,8 @@ export function AssistantBody({
|
|
|
58
59
|
* on the card already.
|
|
59
60
|
*/
|
|
60
61
|
nested?: boolean
|
|
62
|
+
/** The turn's run, whose restore points say what it changed in the artifacts it revised. */
|
|
63
|
+
runId?: string | null
|
|
61
64
|
}) {
|
|
62
65
|
const blocks: React.ReactNode[] = []
|
|
63
66
|
let textBuffer: string[] = []
|
|
@@ -126,7 +129,9 @@ export function AssistantBody({
|
|
|
126
129
|
flushWork(live)
|
|
127
130
|
blocks.push(<AnswerToolViews key="answer-tools" parts={parts} />)
|
|
128
131
|
const artifacts = turnArtifacts(parts)
|
|
129
|
-
if (artifacts.length > 0)
|
|
132
|
+
if (artifacts.length > 0) {
|
|
133
|
+
blocks.push(<ArtifactCards key="artifacts" artifacts={artifacts} runId={runId ?? null} />)
|
|
134
|
+
}
|
|
130
135
|
// Saving is work the reply keeps quiet about; what was remembered is the user's to see.
|
|
131
136
|
savedMemories(parts).forEach((save, index) => {
|
|
132
137
|
blocks.push(<SavedToMemory key={`memory:${index}`} {...save} />)
|
|
@@ -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 ? (
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
type ReportedApprovalOutcome,
|
|
16
16
|
type TranscriptApprovals,
|
|
17
17
|
} from "../approvals"
|
|
18
|
+
import { BackgroundCardsContext, type TranscriptBackground } from "../background/context"
|
|
19
|
+
import { BACKGROUND_TOOLS, readThreadBackground } from "../background/interpret"
|
|
18
20
|
import type { AgentConversationMessage, AgentConversationTurn } from "../conversation"
|
|
19
21
|
import { DelegationCardsContext, type TranscriptDelegation } from "../delegation/context"
|
|
20
22
|
import {
|
|
@@ -67,10 +69,20 @@ export interface TranscriptProps {
|
|
|
67
69
|
readonly delegation?: TranscriptDelegation
|
|
68
70
|
/** Where the conversation moved, after which saved message: the files from before stayed. */
|
|
69
71
|
readonly moved?: { readonly afterMessageId: string; readonly label: string } | null
|
|
72
|
+
/**
|
|
73
|
+
* Where its background commands run and what is known of them now, each a card under the work
|
|
74
|
+
* that started it. Without it, a command its turn no longer runs reads as last seen running.
|
|
75
|
+
*/
|
|
76
|
+
readonly background?: TranscriptBackground
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
const NO_OUTCOMES: ReadonlyMap<string, ReportedApprovalOutcome> = new Map()
|
|
73
80
|
|
|
81
|
+
/** Nothing said of where the commands run: no card claims how one ended that nobody saw. */
|
|
82
|
+
const UNKNOWN_BACKGROUND: TranscriptBackground = {
|
|
83
|
+
source: { onComputer: true, live: null, online: false },
|
|
84
|
+
}
|
|
85
|
+
|
|
74
86
|
export function Transcript(props: TranscriptProps) {
|
|
75
87
|
const { approvals, approvalOutcomes, messages, turn, threadId, delegation: actions } = props
|
|
76
88
|
const cards = useMemo(
|
|
@@ -91,10 +103,30 @@ export function Transcript(props: TranscriptProps) {
|
|
|
91
103
|
[threadId, delegation, liveRunId, actions]
|
|
92
104
|
)
|
|
93
105
|
|
|
106
|
+
// Its background commands change as their calls do, not with every chunk of the reply.
|
|
107
|
+
const backgroundSignature = JSON.stringify(
|
|
108
|
+
messages.flatMap((message) =>
|
|
109
|
+
message.parts.flatMap((part) =>
|
|
110
|
+
part.type === "tool" && BACKGROUND_TOOLS.has(part.toolName)
|
|
111
|
+
? [[part.toolCallId, part.state]]
|
|
112
|
+
: []
|
|
113
|
+
)
|
|
114
|
+
)
|
|
115
|
+
)
|
|
116
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: the signature stands for the calls
|
|
117
|
+
const thread = useMemo(() => readThreadBackground(messages), [backgroundSignature])
|
|
118
|
+
const { background = UNKNOWN_BACKGROUND } = props
|
|
119
|
+
const backgroundCards = useMemo(
|
|
120
|
+
() => ({ ...background, thread, liveRunId }),
|
|
121
|
+
[background, thread, liveRunId]
|
|
122
|
+
)
|
|
123
|
+
|
|
94
124
|
return (
|
|
95
125
|
<ApprovalCardsContext.Provider value={cards}>
|
|
96
126
|
<DelegationCardsContext.Provider value={children}>
|
|
97
|
-
<
|
|
127
|
+
<BackgroundCardsContext.Provider value={backgroundCards}>
|
|
128
|
+
<TranscriptView {...props} threadDelegation={delegation} />
|
|
129
|
+
</BackgroundCardsContext.Provider>
|
|
98
130
|
</DelegationCardsContext.Provider>
|
|
99
131
|
</ApprovalCardsContext.Provider>
|
|
100
132
|
)
|