@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,294 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type DesktopComputer,
|
|
3
|
+
type DesktopComputerAccess,
|
|
4
|
+
listAgentComputersOptions,
|
|
5
|
+
useDesktop,
|
|
6
|
+
} from "@sixb/client/hooks"
|
|
7
|
+
import { useQuery, useQueryClient } from "@tanstack/react-query"
|
|
8
|
+
import { useCallback, useEffect, useState } from "react"
|
|
9
|
+
|
|
10
|
+
const STORAGE_KEY = "sixb.agent.new-thread-place"
|
|
11
|
+
/** In a browser: the folder chosen last, on one of the person's computers. */
|
|
12
|
+
const ONLINE_STORAGE_KEY = "sixb.agent.new-thread-place.online"
|
|
13
|
+
|
|
14
|
+
/** The last choice, on this computer: where a new conversation starts. */
|
|
15
|
+
interface StoredPlace {
|
|
16
|
+
readonly cloud: boolean
|
|
17
|
+
readonly folder: string | null
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function readStored(): StoredPlace {
|
|
21
|
+
try {
|
|
22
|
+
const stored = JSON.parse(localStorage.getItem(STORAGE_KEY) ?? "null") as Partial<StoredPlace>
|
|
23
|
+
return { cloud: stored?.cloud === true, folder: stored?.folder ?? null }
|
|
24
|
+
} catch {
|
|
25
|
+
return { cloud: false, folder: null }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** A message that's to run on this computer, and what runs it there can't start. */
|
|
30
|
+
export class ComputerUnavailableError extends Error {
|
|
31
|
+
constructor(cause: unknown) {
|
|
32
|
+
super("[SixbApp] What runs the agent on this computer couldn't start.", { cause })
|
|
33
|
+
this.name = "ComputerUnavailableError"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** What a new conversation is created with to run on this computer: nothing, for the cloud. */
|
|
38
|
+
export type NewThreadPlaceBody =
|
|
39
|
+
| { readonly runsOn?: undefined }
|
|
40
|
+
| {
|
|
41
|
+
readonly runsOn: "computer"
|
|
42
|
+
readonly computer: DesktopComputer & { readonly folder: string }
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** A computer a new conversation can run on, with the folders to choose from there. */
|
|
46
|
+
export interface PlaceComputer {
|
|
47
|
+
/** Both null while what runs the agent on this computer can't start: the cloud is still a choice. */
|
|
48
|
+
readonly id: string | null
|
|
49
|
+
readonly name: string | null
|
|
50
|
+
readonly folders: readonly string[]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** The composer's choice of where a new conversation runs. */
|
|
54
|
+
export interface NewThreadPlace {
|
|
55
|
+
/**
|
|
56
|
+
* In a desktop app, this computer alone. In a browser, the person's computers with `sixb` open,
|
|
57
|
+
* which aren't the one the page is on.
|
|
58
|
+
*/
|
|
59
|
+
readonly computers: readonly PlaceComputer[]
|
|
60
|
+
/** The computers are elsewhere: what's shown names the computer as well as the folder. */
|
|
61
|
+
readonly remote: boolean
|
|
62
|
+
readonly cloud: boolean
|
|
63
|
+
/** Null before the person has chosen one: in a desktop app, the first message asks. */
|
|
64
|
+
readonly chosen: { readonly computer: PlaceComputer; readonly folder: string } | null
|
|
65
|
+
readonly chooseCloud: () => void
|
|
66
|
+
readonly chooseFolder: (computer: PlaceComputer, folder: string) => void
|
|
67
|
+
/** In a desktop app: ask the person for a folder, and use it. */
|
|
68
|
+
readonly pickFolder?: () => Promise<void>
|
|
69
|
+
/** In a desktop app: take a folder back. */
|
|
70
|
+
readonly forgetFolder?: (folder: string) => void
|
|
71
|
+
/**
|
|
72
|
+
* In a desktop app: read this computer's folders again, as the menu opens. A browser's list
|
|
73
|
+
* follows the activity feed instead.
|
|
74
|
+
*/
|
|
75
|
+
readonly refreshFolders?: () => void
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface NewThreadPlaceState {
|
|
79
|
+
/** Null where the only place is the cloud, or until it's known that there's another. */
|
|
80
|
+
readonly place: NewThreadPlace | null
|
|
81
|
+
/** A desktop app that hasn't said yet whether it can run the agent here. */
|
|
82
|
+
readonly waiting: boolean
|
|
83
|
+
/** This computer, once the desktop app has said: what tells a conversation that runs on it. */
|
|
84
|
+
readonly computerId: string | null
|
|
85
|
+
/**
|
|
86
|
+
* What to create the next conversation with, asking for a folder if none is chosen. Null when the
|
|
87
|
+
* person cancels, so that their message stays in the composer.
|
|
88
|
+
*/
|
|
89
|
+
readonly resolveBody: () => Promise<NewThreadPlaceBody | null>
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Where a new conversation runs. In a desktop app that can run the agent here: this computer
|
|
94
|
+
* unless the person chooses the cloud. In a browser: the cloud unless they choose a folder on one
|
|
95
|
+
* of their computers where `sixb` is open now, and there's nothing to choose while none is.
|
|
96
|
+
*
|
|
97
|
+
* `starting`: a new conversation is open. Only then does a browser list the person's computers.
|
|
98
|
+
*/
|
|
99
|
+
export function useNewThreadPlace(starting: boolean): NewThreadPlaceState {
|
|
100
|
+
const access: DesktopComputerAccess | null = useDesktop()?.computer ?? null
|
|
101
|
+
const desktop = useDesktopPlace(access)
|
|
102
|
+
const online = useOnlineComputersPlace(starting && access === null)
|
|
103
|
+
return desktop ?? online
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** In a desktop app that can run the agent here; null elsewhere. */
|
|
107
|
+
function useDesktopPlace(access: DesktopComputerAccess | null): NewThreadPlaceState | null {
|
|
108
|
+
// Undefined until the desktop app answers; null where it can't run the agent.
|
|
109
|
+
const [computer, setComputer] = useState<DesktopComputer | null | undefined>(undefined)
|
|
110
|
+
const [cannotStart, setCannotStart] = useState(false)
|
|
111
|
+
// Null until the runner has said: a folder chosen before isn't taken as gone meanwhile.
|
|
112
|
+
const [folders, setFolders] = useState<readonly string[] | null>(null)
|
|
113
|
+
const [stored, setStored] = useState(readStored)
|
|
114
|
+
|
|
115
|
+
const remember = useCallback((next: StoredPlace) => {
|
|
116
|
+
setStored(next)
|
|
117
|
+
try {
|
|
118
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify(next))
|
|
119
|
+
} catch {
|
|
120
|
+
// Private storage: the choice lasts as long as the page.
|
|
121
|
+
}
|
|
122
|
+
}, [])
|
|
123
|
+
|
|
124
|
+
const refreshFolders = useCallback(() => {
|
|
125
|
+
void access?.folders().then(setFolders, () => {})
|
|
126
|
+
}, [access])
|
|
127
|
+
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
if (!access) return
|
|
130
|
+
let current = true
|
|
131
|
+
const refresh = () => {
|
|
132
|
+
void access.about().then(
|
|
133
|
+
(found) => {
|
|
134
|
+
if (!current) return
|
|
135
|
+
setComputer(found)
|
|
136
|
+
setCannotStart(false)
|
|
137
|
+
},
|
|
138
|
+
() => {
|
|
139
|
+
if (current) setCannotStart(true)
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
refreshFolders()
|
|
143
|
+
}
|
|
144
|
+
refresh()
|
|
145
|
+
// A runner that couldn't start when this first asked may have since.
|
|
146
|
+
window.addEventListener("focus", refresh)
|
|
147
|
+
return () => {
|
|
148
|
+
current = false
|
|
149
|
+
window.removeEventListener("focus", refresh)
|
|
150
|
+
}
|
|
151
|
+
}, [access, refreshFolders])
|
|
152
|
+
|
|
153
|
+
if (!access) return null
|
|
154
|
+
|
|
155
|
+
const pick = async (): Promise<string | null> => {
|
|
156
|
+
const folder = await access.pickFolder()
|
|
157
|
+
if (folder) {
|
|
158
|
+
remember({ cloud: false, folder })
|
|
159
|
+
refreshFolders()
|
|
160
|
+
}
|
|
161
|
+
return folder
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Asks the runner rather than reading what's shown: a message sent before it has answered goes
|
|
165
|
+
// where the person last chose, not to the cloud by default. One it can't start for says so.
|
|
166
|
+
const resolveBody = async (): Promise<NewThreadPlaceBody | null> => {
|
|
167
|
+
if (stored.cloud) return {}
|
|
168
|
+
const found = await access.about().catch((cause: unknown) => {
|
|
169
|
+
throw new ComputerUnavailableError(cause)
|
|
170
|
+
})
|
|
171
|
+
if (!found) return {}
|
|
172
|
+
// A folder that's no longer allowed here, or no longer there, or a sign-in that ended: asking
|
|
173
|
+
// again allows it, and signs in. Anything else would leave the message waiting on nothing.
|
|
174
|
+
const allowed = await access.folders()
|
|
175
|
+
const folder = stored.folder && allowed.includes(stored.folder) ? stored.folder : await pick()
|
|
176
|
+
return folder ? { runsOn: "computer", computer: { ...found, folder } } : null
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (computer === null || (computer === undefined && !cannotStart)) {
|
|
180
|
+
return { place: null, waiting: computer === undefined, computerId: null, resolveBody }
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const here: PlaceComputer = {
|
|
184
|
+
id: computer?.id ?? null,
|
|
185
|
+
name: computer?.name ?? null,
|
|
186
|
+
folders: folders ?? [],
|
|
187
|
+
}
|
|
188
|
+
const folder =
|
|
189
|
+
stored.folder && (!folders || folders.includes(stored.folder)) ? stored.folder : null
|
|
190
|
+
return {
|
|
191
|
+
waiting: false,
|
|
192
|
+
computerId: computer?.id ?? null,
|
|
193
|
+
place: {
|
|
194
|
+
computers: [here],
|
|
195
|
+
remote: false,
|
|
196
|
+
cloud: stored.cloud,
|
|
197
|
+
chosen: folder ? { computer: here, folder } : null,
|
|
198
|
+
chooseCloud: () => remember({ ...stored, cloud: true }),
|
|
199
|
+
chooseFolder: (_here, folder) => remember({ cloud: false, folder }),
|
|
200
|
+
pickFolder: async () => {
|
|
201
|
+
await pick()
|
|
202
|
+
},
|
|
203
|
+
forgetFolder: (folder) => {
|
|
204
|
+
void access.forgetFolder(folder).then(refreshFolders, () => {})
|
|
205
|
+
if (stored.folder === folder) remember({ ...stored, folder: null })
|
|
206
|
+
},
|
|
207
|
+
refreshFolders,
|
|
208
|
+
},
|
|
209
|
+
resolveBody,
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** The folder a browser last chose, on one of the person's computers: null for the cloud. */
|
|
214
|
+
interface StoredOnlinePlace {
|
|
215
|
+
readonly computerId: string
|
|
216
|
+
readonly folder: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function readStoredOnline(): StoredOnlinePlace | null {
|
|
220
|
+
try {
|
|
221
|
+
const stored = JSON.parse(localStorage.getItem(ONLINE_STORAGE_KEY) ?? "null") as unknown
|
|
222
|
+
if (!stored || typeof stored !== "object") return null
|
|
223
|
+
const { computerId, folder } = stored as Partial<StoredOnlinePlace>
|
|
224
|
+
return typeof computerId === "string" && typeof folder === "string"
|
|
225
|
+
? { computerId, folder }
|
|
226
|
+
: null
|
|
227
|
+
} catch {
|
|
228
|
+
return null
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
type OnlineComputer = PlaceComputer & { readonly id: string; readonly name: string }
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* In a browser: the person's computers where `sixb` is open now. A folder chosen before is the
|
|
236
|
+
* place only while it's open there: what's shown is what a message is sent to, and the cloud
|
|
237
|
+
* otherwise.
|
|
238
|
+
*/
|
|
239
|
+
function useOnlineComputersPlace(enabled: boolean): NewThreadPlaceState {
|
|
240
|
+
const queryClient = useQueryClient()
|
|
241
|
+
const listed = useQuery({ ...listAgentComputersOptions(), enabled })
|
|
242
|
+
const [stored, setStored] = useState(readStoredOnline)
|
|
243
|
+
|
|
244
|
+
const remember = useCallback((next: StoredOnlinePlace | null) => {
|
|
245
|
+
setStored(next)
|
|
246
|
+
try {
|
|
247
|
+
localStorage.setItem(ONLINE_STORAGE_KEY, JSON.stringify(next))
|
|
248
|
+
} catch {
|
|
249
|
+
// Private storage: the choice lasts as long as the page.
|
|
250
|
+
}
|
|
251
|
+
}, [])
|
|
252
|
+
|
|
253
|
+
const chosenIn = (computers: readonly OnlineComputer[]) => {
|
|
254
|
+
const computer = stored ? computers.find((known) => known.id === stored.computerId) : undefined
|
|
255
|
+
return stored && computer?.folders.includes(stored.folder)
|
|
256
|
+
? { computer, folder: stored.folder }
|
|
257
|
+
: null
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Before the list arrives, a message waits for it rather than going to the cloud by default.
|
|
261
|
+
const resolveBody = async (): Promise<NewThreadPlaceBody> => {
|
|
262
|
+
if (!enabled || !stored) return {}
|
|
263
|
+
const computers = await queryClient
|
|
264
|
+
.ensureQueryData(listAgentComputersOptions())
|
|
265
|
+
.then(({ computers }) => computers)
|
|
266
|
+
.catch(() => [])
|
|
267
|
+
const chosen = chosenIn(computers)
|
|
268
|
+
if (!chosen) return {}
|
|
269
|
+
const { id, name } = chosen.computer
|
|
270
|
+
return { runsOn: "computer", computer: { id, name, folder: chosen.folder } }
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const computers = listed.data?.computers ?? []
|
|
274
|
+
if (!enabled || computers.length === 0) {
|
|
275
|
+
return { place: null, waiting: false, computerId: null, resolveBody }
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const chosen = chosenIn(computers)
|
|
279
|
+
return {
|
|
280
|
+
waiting: false,
|
|
281
|
+
computerId: null,
|
|
282
|
+
place: {
|
|
283
|
+
computers,
|
|
284
|
+
remote: true,
|
|
285
|
+
cloud: chosen === null,
|
|
286
|
+
chosen,
|
|
287
|
+
chooseCloud: () => remember(null),
|
|
288
|
+
chooseFolder: (computer, folder) => {
|
|
289
|
+
if (computer.id) remember({ computerId: computer.id, folder })
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
resolveBody,
|
|
293
|
+
}
|
|
294
|
+
}
|
package/src/agent/i18n/en.ts
CHANGED
|
@@ -51,6 +51,8 @@ export const en = {
|
|
|
51
51
|
busy: "An answer is already in progress. Send yours when it finishes.",
|
|
52
52
|
busyOther: "Someone else's message is being answered. Send yours when it finishes.",
|
|
53
53
|
sandboxUnavailable: "This conversation's sandbox must be recovered before another answer.",
|
|
54
|
+
computerUnavailable:
|
|
55
|
+
"This computer can't run the agent right now. Try again, or choose Cloud below.",
|
|
54
56
|
retryFailed: "Couldn't retry this answer. Try again.",
|
|
55
57
|
stopFailed: "Couldn't stop this answer. Try again.",
|
|
56
58
|
removed: "You no longer take part in this thread.",
|
|
@@ -122,6 +124,10 @@ export const en = {
|
|
|
122
124
|
searching: "Searching…",
|
|
123
125
|
empty: (query: string) => `No objects found for “${query}”`,
|
|
124
126
|
remove: (label: string) => `Remove ${label} context`,
|
|
127
|
+
/** A chip of comments: what shows them, and a comment the project cannot name the author of. */
|
|
128
|
+
showComments: (label: string) => `Show ${label}`,
|
|
129
|
+
someone: "Someone",
|
|
130
|
+
replies: (count: number) => (count === 1 ? "1 reply" : `${count} replies`),
|
|
125
131
|
/** A context entry with no readable name. */
|
|
126
132
|
unnamed: "Context",
|
|
127
133
|
},
|
|
@@ -421,10 +427,18 @@ export const en = {
|
|
|
421
427
|
results: (results: number) => count(results, "result"),
|
|
422
428
|
webPage: "web page",
|
|
423
429
|
reading: (domain: string) => `Reading ${domain}`,
|
|
430
|
+
/** A page read to answer a question about it. */
|
|
431
|
+
asking: (domain: string) => `Asking ${domain}`,
|
|
424
432
|
read: (domain: string) => `Read ${domain}`,
|
|
425
433
|
reviewing: (domain: string) => `Reviewing ${domain}`,
|
|
426
434
|
readFailed: (domain: string) => `Could not read ${domain}`,
|
|
427
435
|
pageError: "The page could not be read.",
|
|
436
|
+
redirectedTo: (domain: string) => `Redirected to ${domain}`,
|
|
437
|
+
answerFailed: "No answer came back. Here is how the page begins.",
|
|
438
|
+
/** Under an answer that reached its length limit. */
|
|
439
|
+
answerTruncated: "The answer stopped at its length limit and may be incomplete.",
|
|
440
|
+
/** Beside the size of a page that was too large to read whole. */
|
|
441
|
+
truncated: "truncated",
|
|
428
442
|
noPageText: "No page text was returned.",
|
|
429
443
|
openPage: "Open page",
|
|
430
444
|
newTab: " (opens in a new tab)",
|
|
@@ -488,6 +502,8 @@ export const en = {
|
|
|
488
502
|
/** Headlines of the agent's shell commands: past tense when done, progressive while running. */
|
|
489
503
|
bash: {
|
|
490
504
|
preparing: "Preparing a command",
|
|
505
|
+
/** Beside a command stopped at its timeout, which reads otherwise as a plain failure. */
|
|
506
|
+
timedOut: (duration: string) => `timed out after ${duration}`,
|
|
491
507
|
steps: {
|
|
492
508
|
title: (steps: number) => `Ran ${count(steps, "step")}`,
|
|
493
509
|
running: (steps: number) => `Running ${count(steps, "step")}`,
|
|
@@ -760,6 +776,16 @@ export const en = {
|
|
|
760
776
|
publishing: (title: string) => `Publishing ${title || "an artifact"}`,
|
|
761
777
|
published: (title: string) => `Published ${title || "an artifact"}`,
|
|
762
778
|
publishFailed: (title: string) => `Couldn't publish ${title || "an artifact"}`,
|
|
779
|
+
/** An `update_artifact` call, which changes an artifact's current version. */
|
|
780
|
+
updating: (title: string) => `Updating ${title || "an artifact"}`,
|
|
781
|
+
updated: (title: string) => `Updated ${title || "an artifact"}`,
|
|
782
|
+
updateFailed: (title: string) => `Couldn't update ${title || "an artifact"}`,
|
|
783
|
+
/** An `open_artifact` call, which installs an artifact for the agent to read or revise. */
|
|
784
|
+
opening: (title: string) => `Opening ${title || "an artifact"}`,
|
|
785
|
+
opened: (title: string) => `Opened ${title || "an artifact"}`,
|
|
786
|
+
openFailed: (title: string) => `Couldn't open ${title || "an artifact"}`,
|
|
787
|
+
/** A revised artifact whose structure stayed as it was: what changed is within it. */
|
|
788
|
+
changed: "Updated",
|
|
763
789
|
open: (title: string) => `Open ${title}`,
|
|
764
790
|
/** Labels the cards of what one response published. */
|
|
765
791
|
cards: "Published in this response",
|
|
@@ -783,15 +809,56 @@ export const en = {
|
|
|
783
809
|
create: "Create fresh sandbox",
|
|
784
810
|
ownerOnly: (owner: string) => `Only ${owner} can start this conversation with a fresh sandbox.`,
|
|
785
811
|
},
|
|
812
|
+
/** A command the agent runs in the background, as its card and its calls read. */
|
|
813
|
+
background: {
|
|
814
|
+
card: (command: string) => `Background command: ${command}`,
|
|
815
|
+
starting: "Starting in the background",
|
|
816
|
+
running: "Running",
|
|
817
|
+
waiting: "the agent waits for it",
|
|
818
|
+
reading: "the agent reads it",
|
|
819
|
+
stopping: "Stopping…",
|
|
820
|
+
exited: (code: number) => (code === 0 ? "Exited · code 0" : `Failed · exit code ${code}`),
|
|
821
|
+
stopped: "Stopped",
|
|
822
|
+
stoppedWithTurn: "Stopped as its turn ended",
|
|
823
|
+
stoppedWithSixb: "Stopped as sixb quit",
|
|
824
|
+
unknown: "Last seen running",
|
|
825
|
+
unreachable: "Last seen running · sixb is closed there",
|
|
826
|
+
stop: "Stop",
|
|
827
|
+
stopHint: "Stop it, and everything it started",
|
|
828
|
+
stopFailed: "Could not stop it: it may have ended. Try again.",
|
|
829
|
+
output: "Output",
|
|
830
|
+
lines: (lines: number) => count(lines, "line"),
|
|
831
|
+
earlierOutput: (path: string) => `Earlier output is in ${path}`,
|
|
832
|
+
rows: {
|
|
833
|
+
start: { title: "Started in the background", running: "Starting in the background" },
|
|
834
|
+
read: { title: "Checked a background command", running: "Checking a background command" },
|
|
835
|
+
wait: {
|
|
836
|
+
title: "Waited for a background command",
|
|
837
|
+
running: "Waiting for a background command",
|
|
838
|
+
},
|
|
839
|
+
stop: { title: "Stopped a background command", running: "Stopping a background command" },
|
|
840
|
+
},
|
|
841
|
+
},
|
|
786
842
|
/** A conversation that runs on its owner's computer, as its owner sees it. */
|
|
787
843
|
computer: {
|
|
788
|
-
online: "
|
|
789
|
-
offline: "
|
|
844
|
+
online: "Connected",
|
|
845
|
+
offline: "Not connected",
|
|
790
846
|
offlineNotice: (computer: string, folder: string) =>
|
|
791
|
-
`${computer} is offline. Your message waits until
|
|
847
|
+
`${computer} is offline. Your message waits until ${folder} is connected there.`,
|
|
792
848
|
noFolder:
|
|
793
849
|
"This conversation has no folder yet. Open sixb in its folder and press ctrl+f, or continue in the cloud.",
|
|
850
|
+
/** In a desktop app, about a conversation of this computer's. */
|
|
851
|
+
offlineHere: (folder: string) =>
|
|
852
|
+
`Not running here yet. Your message waits until this computer is connected in ${folder}.`,
|
|
853
|
+
runHere: "Run on this computer",
|
|
794
854
|
waitingFor: (computer: string) => `Waiting for ${computer}`,
|
|
855
|
+
/** Where a new conversation runs, in a desktop app. */
|
|
856
|
+
placeTitle: "Where this conversation runs",
|
|
857
|
+
placeChip: (place: string) => `Runs in ${place}. Change where it runs`,
|
|
858
|
+
cloud: "Cloud",
|
|
859
|
+
chooseFolder: "Choose a folder…",
|
|
860
|
+
chooseFolderShort: "Choose a folder",
|
|
861
|
+
forgetFolder: (folder: string) => `Stop running messages in ${folder}`,
|
|
795
862
|
continueInCloud: "Continue in the cloud",
|
|
796
863
|
moving: "Moving…",
|
|
797
864
|
moveFailed: "Could not move it to the cloud. Try again.",
|
package/src/agent/i18n/fr.ts
CHANGED
|
@@ -42,6 +42,8 @@ export const fr: Translation<AgentMessages> = {
|
|
|
42
42
|
busy: "Une réponse est déjà en cours. Envoyez votre message quand elle sera terminée.",
|
|
43
43
|
busyOther:
|
|
44
44
|
"L’agent répond au message de quelqu’un d’autre. Envoyez le vôtre quand il aura fini.",
|
|
45
|
+
computerUnavailable:
|
|
46
|
+
"Cet ordinateur ne peut pas exécuter l’agent pour le moment. Réessayez, ou choisissez Cloud ci-dessous.",
|
|
45
47
|
sandboxUnavailable:
|
|
46
48
|
"L’environnement de cette conversation doit être récupéré avant une nouvelle réponse.",
|
|
47
49
|
retryFailed: "Impossible de relancer cette réponse. Réessayez.",
|
|
@@ -115,6 +117,9 @@ export const fr: Translation<AgentMessages> = {
|
|
|
115
117
|
searching: "Recherche…",
|
|
116
118
|
empty: (query) => `Aucun objet trouvé pour ${quoted(query)}`,
|
|
117
119
|
remove: (label) => `Retirer le contexte ${label}`,
|
|
120
|
+
showComments: (label) => `Afficher ${label}`,
|
|
121
|
+
someone: "Quelqu’un",
|
|
122
|
+
replies: (count) => (count === 1 ? "1 réponse" : `${count} réponses`),
|
|
118
123
|
unnamed: "Contexte",
|
|
119
124
|
},
|
|
120
125
|
models: {
|
|
@@ -401,10 +406,15 @@ export const fr: Translation<AgentMessages> = {
|
|
|
401
406
|
results: (results) => count(results, "résultat"),
|
|
402
407
|
webPage: "page web",
|
|
403
408
|
reading: (domain) => `Lecture : ${domain}`,
|
|
409
|
+
asking: (domain) => `Question à ${domain}`,
|
|
404
410
|
read: (domain) => `Page consultée : ${domain}`,
|
|
405
411
|
reviewing: (domain) => `Analyse : ${domain}`,
|
|
406
412
|
readFailed: (domain) => `Lecture impossible : ${domain}`,
|
|
407
413
|
pageError: "La page n’a pas pu être lue.",
|
|
414
|
+
redirectedTo: (domain) => `Redirigé vers ${domain}`,
|
|
415
|
+
answerFailed: "Aucune réponse n’a été obtenue. Voici le début de la page.",
|
|
416
|
+
answerTruncated: "La réponse a atteint sa longueur maximale et peut être incomplète.",
|
|
417
|
+
truncated: "tronqué",
|
|
408
418
|
noPageText: "Aucun texte n’a été récupéré sur cette page.",
|
|
409
419
|
openPage: "Ouvrir la page",
|
|
410
420
|
newTab: " (s’ouvre dans un nouvel onglet)",
|
|
@@ -466,6 +476,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
466
476
|
},
|
|
467
477
|
bash: {
|
|
468
478
|
preparing: "Préparation d’une commande",
|
|
479
|
+
timedOut: (duration) => `délai de ${duration} dépassé`,
|
|
469
480
|
steps: {
|
|
470
481
|
title: (steps) => count(steps, "étape exécutée", "étapes exécutées"),
|
|
471
482
|
running: (steps) => `Exécution de ${count(steps, "étape")}`,
|
|
@@ -812,6 +823,15 @@ export const fr: Translation<AgentMessages> = {
|
|
|
812
823
|
published: (title) => (title ? `${title} publié` : "Artefact publié"),
|
|
813
824
|
publishFailed: (title) =>
|
|
814
825
|
title ? `Impossible de publier ${title}` : "Impossible de publier l’artefact",
|
|
826
|
+
updating: (title) => (title ? `Mise à jour de ${title}` : "Mise à jour d’un artefact"),
|
|
827
|
+
updated: (title) => (title ? `${title} mis à jour` : "Artefact mis à jour"),
|
|
828
|
+
updateFailed: (title) =>
|
|
829
|
+
title ? `Impossible de mettre à jour ${title}` : "Impossible de mettre à jour l’artefact",
|
|
830
|
+
opening: (title) => (title ? `Ouverture de ${title}` : "Ouverture d’un artefact"),
|
|
831
|
+
opened: (title) => (title ? `${title} ouvert` : "Artefact ouvert"),
|
|
832
|
+
openFailed: (title) =>
|
|
833
|
+
title ? `Impossible d’ouvrir ${title}` : "Impossible d’ouvrir l’artefact",
|
|
834
|
+
changed: "Mis à jour",
|
|
815
835
|
open: (title) => `Ouvrir ${title}`,
|
|
816
836
|
cards: "Publié dans cette réponse",
|
|
817
837
|
close: "Fermer",
|
|
@@ -835,13 +855,60 @@ export const fr: Translation<AgentMessages> = {
|
|
|
835
855
|
ownerOnly: (owner) =>
|
|
836
856
|
`${owner} est la seule personne à pouvoir faire repartir cette conversation d’un nouvel environnement.`,
|
|
837
857
|
},
|
|
858
|
+
background: {
|
|
859
|
+
card: (command) => `Commande en arrière-plan : ${command}`,
|
|
860
|
+
starting: "Démarrage en arrière-plan",
|
|
861
|
+
running: "En cours",
|
|
862
|
+
waiting: "l’agent l’attend",
|
|
863
|
+
reading: "l’agent la lit",
|
|
864
|
+
stopping: "Arrêt…",
|
|
865
|
+
exited: (code) => (code === 0 ? "Terminée · code 0" : `Échec · code de sortie ${code}`),
|
|
866
|
+
stopped: "Arrêtée",
|
|
867
|
+
stoppedWithTurn: "Arrêtée à la fin de son tour",
|
|
868
|
+
stoppedWithSixb: "Arrêtée à la fermeture de sixb",
|
|
869
|
+
unknown: "En cours à la dernière lecture",
|
|
870
|
+
unreachable: "En cours à la dernière lecture · sixb y est fermé",
|
|
871
|
+
stop: "Arrêter",
|
|
872
|
+
stopHint: "L’arrêter, avec tout ce qu’elle a lancé",
|
|
873
|
+
stopFailed: "Impossible de l’arrêter : elle est peut-être terminée. Réessayez.",
|
|
874
|
+
output: "Sortie",
|
|
875
|
+
lines: (lines) => count(lines, "ligne"),
|
|
876
|
+
earlierOutput: (path) => `La sortie précédente est dans ${path}`,
|
|
877
|
+
rows: {
|
|
878
|
+
start: {
|
|
879
|
+
title: "Commande lancée en arrière-plan",
|
|
880
|
+
running: "Lancement d’une commande en arrière-plan",
|
|
881
|
+
},
|
|
882
|
+
read: {
|
|
883
|
+
title: "Commande en arrière-plan consultée",
|
|
884
|
+
running: "Consultation d’une commande en arrière-plan",
|
|
885
|
+
},
|
|
886
|
+
wait: {
|
|
887
|
+
title: "Commande en arrière-plan attendue",
|
|
888
|
+
running: "Attente d’une commande en arrière-plan",
|
|
889
|
+
},
|
|
890
|
+
stop: {
|
|
891
|
+
title: "Commande en arrière-plan arrêtée",
|
|
892
|
+
running: "Arrêt d’une commande en arrière-plan",
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
},
|
|
838
896
|
computer: {
|
|
839
|
-
online: "
|
|
840
|
-
offline: "
|
|
897
|
+
online: "Connecté",
|
|
898
|
+
offline: "Non connecté",
|
|
841
899
|
offlineNotice: (computer, folder) =>
|
|
842
|
-
`${computer} est hors ligne. Votre message attendra que
|
|
900
|
+
`${computer} est hors ligne. Votre message attendra que ${folder} y soit connecté.`,
|
|
843
901
|
noFolder:
|
|
844
902
|
"Cette conversation n’a pas encore de dossier. Ouvrez sixb dans son dossier et appuyez sur ctrl+f, ou continuez dans le cloud.",
|
|
903
|
+
offlineHere: (folder) =>
|
|
904
|
+
`Pas encore en cours ici. Votre message attendra que cet ordinateur soit connecté dans ${folder}.`,
|
|
905
|
+
runHere: "Exécuter sur cet ordinateur",
|
|
906
|
+
placeTitle: "Où cette conversation s'exécute",
|
|
907
|
+
placeChip: (place) => `S'exécute dans ${place}. Changer l'emplacement`,
|
|
908
|
+
cloud: "Cloud",
|
|
909
|
+
chooseFolder: "Choisir un dossier…",
|
|
910
|
+
chooseFolderShort: "Choisir un dossier",
|
|
911
|
+
forgetFolder: (folder) => `Ne plus exécuter les messages dans ${folder}`,
|
|
845
912
|
waitingFor: (computer) => `En attente de ${computer}`,
|
|
846
913
|
continueInCloud: "Continuer dans le cloud",
|
|
847
914
|
moving: "Déplacement…",
|
|
@@ -137,6 +137,9 @@ export function ObservedConversation({
|
|
|
137
137
|
messages={conversation}
|
|
138
138
|
turn={turn}
|
|
139
139
|
approvalOutcomes={approvalOutcomes}
|
|
140
|
+
background={{
|
|
141
|
+
source: { onComputer: thread.runsOn === "computer", live: null, online: false },
|
|
142
|
+
}}
|
|
140
143
|
/>
|
|
141
144
|
)
|
|
142
145
|
if (messagesQuery.isLoading) {
|
|
@@ -2,17 +2,29 @@ import { ARTIFACT_KINDS } from "@sixb/core/artifacts"
|
|
|
2
2
|
import type { ArtifactKindName } from "../../artifacts/kind-icon"
|
|
3
3
|
import type { NormalizedPart, NormalizedTool } from "../parts"
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Creating an artifact, and changing one: `update_artifact` writes its current version, and
|
|
7
|
+
* `publish_artifact_version`, in threads from before, published the next version.
|
|
8
|
+
*/
|
|
9
|
+
const PUBLISH_TOOLS = new Set(["publish_artifact", "update_artifact", "publish_artifact_version"])
|
|
7
10
|
|
|
8
11
|
export function isPublishTool(toolName: string): boolean {
|
|
9
12
|
return PUBLISH_TOOLS.has(toolName)
|
|
10
13
|
}
|
|
11
14
|
|
|
15
|
+
/** Whether a publish call changed an artifact that was there before, rather than created one. */
|
|
16
|
+
export function isUpdateTool(toolName: string): boolean {
|
|
17
|
+
return toolName === "update_artifact" || toolName === "publish_artifact_version"
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
/** What one publish call published, read from its result. */
|
|
13
21
|
export interface PublishedArtifact {
|
|
14
22
|
readonly artifactId: string
|
|
15
23
|
readonly version: number
|
|
24
|
+
/** The artifact's revision once written: absent from calls made before revisions. */
|
|
25
|
+
readonly revision?: number
|
|
26
|
+
/** Whether the version written stays open; absent from calls made before open versions. */
|
|
27
|
+
readonly open?: boolean
|
|
16
28
|
readonly kind: ArtifactKindName
|
|
17
29
|
readonly title: string
|
|
18
30
|
readonly warnings: readonly { readonly message: string; readonly part?: string }[]
|
|
@@ -34,6 +46,8 @@ export function publishedArtifact(tool: NormalizedTool): PublishedArtifact | nul
|
|
|
34
46
|
return {
|
|
35
47
|
artifactId: output.artifactId,
|
|
36
48
|
version: output.version,
|
|
49
|
+
...(typeof output.revision === "number" ? { revision: output.revision } : {}),
|
|
50
|
+
...(typeof output.open === "boolean" ? { open: output.open } : {}),
|
|
37
51
|
kind: output.kind as ArtifactKindName,
|
|
38
52
|
title: output.title,
|
|
39
53
|
warnings: warnings.flatMap((warning) =>
|
|
@@ -62,8 +76,8 @@ export interface TurnArtifact extends PublishedArtifact {
|
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
/**
|
|
65
|
-
* Each artifact a turn published, once,
|
|
66
|
-
*
|
|
79
|
+
* Each artifact a turn published, once, as the turn last wrote it, in the order the turn first
|
|
80
|
+
* published them.
|
|
67
81
|
*/
|
|
68
82
|
export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[] {
|
|
69
83
|
const byId = new Map<string, TurnArtifact>()
|
|
@@ -73,7 +87,7 @@ export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[]
|
|
|
73
87
|
if (!published) continue
|
|
74
88
|
const earlier = byId.get(published.artifactId)
|
|
75
89
|
const created = earlier?.created === true || part.tool.toolName === "publish_artifact"
|
|
76
|
-
if (!earlier || published
|
|
90
|
+
if (!earlier || writtenAfter(published, earlier)) {
|
|
77
91
|
byId.set(published.artifactId, { ...published, created })
|
|
78
92
|
} else if (created !== earlier.created) {
|
|
79
93
|
byId.set(published.artifactId, { ...earlier, created })
|
|
@@ -82,6 +96,14 @@ export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[]
|
|
|
82
96
|
return [...byId.values()]
|
|
83
97
|
}
|
|
84
98
|
|
|
99
|
+
/** Whether one write came after another: by revision, else, before revisions, by version. */
|
|
100
|
+
function writtenAfter(later: PublishedArtifact, earlier: PublishedArtifact): boolean {
|
|
101
|
+
if (later.revision !== undefined && earlier.revision !== undefined) {
|
|
102
|
+
return later.revision > earlier.revision
|
|
103
|
+
}
|
|
104
|
+
return later.version > earlier.version
|
|
105
|
+
}
|
|
106
|
+
|
|
85
107
|
/**
|
|
86
108
|
* The titles of what a finished turn last tried to publish and could not: a refused attempt that no
|
|
87
109
|
* later publish of the same artifact (a version, by its id) or the same title (a new one) replaced.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { FileText } from "lucide-react"
|
|
2
|
+
import { ActivityStatusText } from "../components/activity-status"
|
|
3
|
+
import { useAgentMessages } from "../i18n"
|
|
4
|
+
import type { NormalizedTool } from "../parts"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An `open_artifact` call in the work trace: the Agent opened an artifact to read it, or to revise
|
|
8
|
+
* it. A calm step, as reading a file is; a failure says why, without the harness's prefix.
|
|
9
|
+
*/
|
|
10
|
+
export function OpenArtifactToolView({ tool }: { tool: NormalizedTool }) {
|
|
11
|
+
const messages = useAgentMessages().artifacts
|
|
12
|
+
const title = openedTitle(tool)
|
|
13
|
+
const running = tool.state === "input-streaming" || tool.state === "input-available"
|
|
14
|
+
const failed = tool.state === "output-error"
|
|
15
|
+
const label = failed
|
|
16
|
+
? messages.openFailed(title)
|
|
17
|
+
: running
|
|
18
|
+
? messages.opening(title)
|
|
19
|
+
: messages.opened(title)
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div className="min-w-0 space-y-1">
|
|
23
|
+
<div className="flex w-fit max-w-full items-center gap-1.5 text-[13px] leading-normal text-muted-foreground">
|
|
24
|
+
<FileText className="size-3.5 shrink-0" />
|
|
25
|
+
{running ? (
|
|
26
|
+
<ActivityStatusText label={label} className="font-medium shimmer" />
|
|
27
|
+
) : (
|
|
28
|
+
<span className="min-w-0 truncate font-medium">{label}</span>
|
|
29
|
+
)}
|
|
30
|
+
</div>
|
|
31
|
+
{failed && tool.errorText ? (
|
|
32
|
+
<p className="pl-5 text-xs leading-relaxed whitespace-pre-wrap text-muted-foreground/80">
|
|
33
|
+
{tool.errorText.replace(/^\[SixbAgent\] open_artifact refused: /, "")}
|
|
34
|
+
</p>
|
|
35
|
+
) : null}
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The title the artifact has, once opened; until then, nothing the Agent could make up. */
|
|
41
|
+
function openedTitle(tool: NormalizedTool): string {
|
|
42
|
+
const output = tool.output
|
|
43
|
+
return typeof output === "object" &&
|
|
44
|
+
output !== null &&
|
|
45
|
+
"title" in output &&
|
|
46
|
+
typeof output.title === "string"
|
|
47
|
+
? output.title
|
|
48
|
+
: ""
|
|
49
|
+
}
|