@sixb/app 0.2.1 → 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/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/components/composer-place.d.ts +3 -1
- package/dist/agent/components/composer-place.d.ts.map +1 -1
- package/dist/agent/components/composer.d.ts +20 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/context-chips.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/conversation-panel.d.ts +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/composer-insertion.d.ts +24 -0
- package/dist/agent/composer-insertion.d.ts.map +1 -0
- 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 +10 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-new-thread-place.d.ts +39 -17
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +14 -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 +20 -0
- package/dist/agent/i18n/index.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/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-ytadd0b5.js → chunk-001c4gnk.js} +6871 -3756
- 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-j8g956dt.js → chunk-fwb9mxwm.js} +1 -1
- package/dist/{chunk-7fj9cfkw.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/syncs.d.ts.map +1 -1
- package/dist/pages/console/ontology/action-runs.d.ts.map +1 -1
- package/dist/pages/console/ontology/actions.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/artifact-picker.d.ts +36 -0
- package/dist/pages/console/ontology/components/artifact-picker.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -1
- package/dist/pages/console/ontology/lib/action-params.d.ts +2 -0
- package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts +2 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-page.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
- package/dist/pages/console/ontology/objects.d.ts.map +1 -1
- package/dist/pages/console/ontology/rules.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
- package/dist/pages/console/skeletons.d.ts +30 -0
- package/dist/pages/console/skeletons.d.ts.map +1 -0
- package/dist/pages/console/workflow-run.d.ts.map +1 -1
- package/dist/pages/section-page.d.ts +11 -1
- package/dist/pages/section-page.d.ts.map +1 -1
- package/dist/pages/section-ui.d.ts +25 -3
- package/dist/pages/section-ui.d.ts.map +1 -1
- package/dist/pages/settings/activity/calendar.d.ts.map +1 -1
- package/dist/pages/settings/activity/connections.d.ts.map +1 -1
- package/dist/pages/settings/activity/page.d.ts.map +1 -1
- package/dist/pages/settings/activity/thread.d.ts.map +1 -1
- package/dist/pages/settings/activity/timeline.d.ts +2 -0
- package/dist/pages/settings/activity/timeline.d.ts.map +1 -1
- package/dist/pages/settings/controls.d.ts +4 -0
- package/dist/pages/settings/controls.d.ts.map +1 -1
- package/dist/pages/settings/members.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts +2 -0
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/memory.d.ts.map +1 -1
- package/dist/pages/settings/service-accounts.d.ts.map +1 -1
- package/dist/pages/settings/sessions.d.ts.map +1 -1
- package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
- package/dist/pages/settings/usage/limits.d.ts.map +1 -1
- package/dist/pages/settings/usage/messages.d.ts +0 -2
- package/dist/pages/settings/usage/messages.d.ts.map +1 -1
- package/dist/pages/settings/usage/runs.d.ts +8 -2
- package/dist/pages/settings/usage/runs.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-model.d.ts +5 -0
- package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
- package/dist/pages/values.d.ts +6 -0
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +4 -0
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +8188 -4841
- package/dist/pages.js.map +56 -47
- package/dist/sections/catalog.d.ts.map +1 -1
- package/dist/sections/sections.d.ts.map +1 -1
- package/dist/server.js +294 -23
- package/dist/server.js.map +8 -7
- package/dist/service-worker.d.ts +39 -0
- package/dist/service-worker.d.ts.map +1 -0
- package/dist/shared-session.d.ts +25 -0
- package/dist/shared-session.d.ts.map +1 -0
- package/dist/shell/app-return.d.ts +35 -0
- package/dist/shell/app-return.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +1 -1
- package/dist/shell/app-shell.d.ts.map +1 -1
- package/dist/shell/nav-items.d.ts +2 -0
- package/dist/shell/nav-items.d.ts.map +1 -1
- package/dist/shell/phone/back.d.ts +6 -0
- package/dist/shell/phone/back.d.ts.map +1 -0
- package/dist/shell/phone/launch.d.ts +7 -0
- package/dist/shell/phone/launch.d.ts.map +1 -0
- package/dist/shell/phone/more-sheet.d.ts +36 -0
- package/dist/shell/phone/more-sheet.d.ts.map +1 -0
- package/dist/shell/phone/phone-foundations.d.ts +9 -0
- package/dist/shell/phone/phone-foundations.d.ts.map +1 -0
- package/dist/shell/phone/pull-to-refresh.d.ts +9 -0
- package/dist/shell/phone/pull-to-refresh.d.ts.map +1 -0
- package/dist/shell/phone/routes.d.ts +12 -0
- package/dist/shell/phone/routes.d.ts.map +1 -0
- package/dist/shell/phone/screen-motion.d.ts +11 -0
- package/dist/shell/phone/screen-motion.d.ts.map +1 -0
- package/dist/shell/phone/scroll-restoration.d.ts +7 -0
- package/dist/shell/phone/scroll-restoration.d.ts.map +1 -0
- package/dist/shell/phone/startup-image.d.ts +17 -0
- package/dist/shell/phone/startup-image.d.ts.map +1 -0
- package/dist/shell/phone/tab-bar.d.ts +14 -0
- package/dist/shell/phone/tab-bar.d.ts.map +1 -0
- package/dist/shell/phone/top-bar.d.ts +24 -0
- package/dist/shell/phone/top-bar.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +3 -1
- package/dist/shell/search-command.d.ts.map +1 -1
- package/dist/shell/user-menu.d.ts +2 -0
- package/dist/shell/user-menu.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/agent/agent-chat.tsx +51 -8
- package/src/agent/agent-panel.tsx +12 -0
- package/src/agent/agent-surface.tsx +4 -0
- package/src/agent/artifact-card.tsx +84 -16
- package/src/agent/artifact-panel.tsx +63 -43
- package/src/agent/components/agent-message-body.tsx +1 -1
- package/src/agent/components/composer-place.tsx +77 -53
- package/src/agent/components/composer.tsx +92 -7
- package/src/agent/components/context-chips.tsx +72 -2
- package/src/agent/components/conversation-panel.tsx +3 -2
- package/src/agent/components/message-parts.tsx +6 -1
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/composer-insertion.ts +36 -0
- package/src/agent/hooks/use-agent-conversation.ts +41 -10
- package/src/agent/hooks/use-new-thread-place.ts +149 -25
- package/src/agent/i18n/en.ts +14 -0
- package/src/agent/i18n/fr.ts +12 -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 +3 -0
- package/src/agent/types.ts +4 -0
- 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/syncs.tsx +39 -2
- package/src/pages/console/ontology/action-runs.tsx +8 -2
- package/src/pages/console/ontology/actions.tsx +39 -15
- package/src/pages/console/ontology/components/action-button.tsx +10 -0
- package/src/pages/console/ontology/components/artifact-picker.tsx +522 -0
- package/src/pages/console/ontology/components/object-query-bar.tsx +21 -5
- package/src/pages/console/ontology/lib/action-params.ts +10 -0
- package/src/pages/console/ontology/lineage/properties-panel.tsx +32 -24
- package/src/pages/console/ontology/object-page.tsx +2 -0
- package/src/pages/console/ontology/object-type.tsx +73 -14
- package/src/pages/console/ontology/object-types.tsx +56 -7
- package/src/pages/console/ontology/objects.tsx +167 -19
- package/src/pages/console/ontology/rules.tsx +186 -30
- package/src/pages/console/ontology/workflow.tsx +130 -74
- package/src/pages/console/ontology/workflows/run-input-form.tsx +21 -2
- package/src/pages/console/ontology/workflows/schema-shape.tsx +3 -0
- package/src/pages/console/ontology/workflows.tsx +34 -21
- package/src/pages/console/skeletons.tsx +99 -0
- package/src/pages/console/workflow-run.tsx +20 -0
- package/src/pages/section-page.tsx +37 -7
- package/src/pages/section-ui.tsx +96 -13
- package/src/pages/settings/activity/calendar.tsx +13 -6
- package/src/pages/settings/activity/connections.tsx +26 -9
- package/src/pages/settings/activity/page.tsx +31 -4
- package/src/pages/settings/activity/thread.tsx +32 -18
- package/src/pages/settings/activity/timeline.tsx +39 -0
- package/src/pages/settings/controls.tsx +19 -1
- package/src/pages/settings/developers.tsx +2 -2
- package/src/pages/settings/members.tsx +42 -9
- package/src/pages/settings/memory-history.tsx +76 -10
- package/src/pages/settings/memory.tsx +47 -5
- package/src/pages/settings/service-accounts.tsx +7 -2
- package/src/pages/settings/sessions.tsx +6 -2
- package/src/pages/settings/usage/breakdown.tsx +62 -2
- package/src/pages/settings/usage/limits.tsx +45 -3
- package/src/pages/settings/usage/messages.ts +0 -2
- package/src/pages/settings/usage/page.tsx +99 -52
- package/src/pages/settings/usage/runs.tsx +105 -8
- package/src/pages/settings/usage/spend-chart.tsx +79 -45
- package/src/pages/settings/usage/spend-model.ts +16 -0
- package/src/pages/values.tsx +72 -6
- package/src/pages.ts +4 -0
- package/src/sections/catalog.ts +6 -0
- package/src/sections/sections.tsx +2 -0
- package/src/service-worker.ts +176 -0
- package/src/shared-session.ts +73 -0
- package/src/shell/app-return.ts +115 -0
- package/src/shell/app-shell.tsx +125 -27
- package/src/shell/nav-items.tsx +2 -0
- package/src/shell/phone/back.ts +16 -0
- package/src/shell/phone/launch.ts +6 -0
- package/src/shell/phone/more-sheet.tsx +249 -0
- package/src/shell/phone/phone-foundations.tsx +43 -0
- package/src/shell/phone/phone.css +660 -0
- package/src/shell/phone/pull-to-refresh.tsx +201 -0
- package/src/shell/phone/routes.ts +34 -0
- package/src/shell/phone/screen-motion.ts +292 -0
- package/src/shell/phone/scroll-restoration.tsx +70 -0
- package/src/shell/phone/startup-image.ts +119 -0
- package/src/shell/phone/tab-bar.tsx +95 -0
- package/src/shell/phone/top-bar.tsx +195 -0
- package/src/shell/search-command.tsx +30 -14
- package/src/shell/user-menu.tsx +2 -1
- package/dist/chunk-4j3c3p72.js +0 -1487
- package/dist/chunk-4j3c3p72.js.map +0 -18
- package/dist/chunk-4mprsd2n.js.map +0 -10
- package/dist/chunk-ytadd0b5.js.map +0 -188
- /package/dist/{chunk-j8g956dt.js.map → chunk-fwb9mxwm.js.map} +0 -0
- /package/dist/{chunk-7fj9cfkw.js.map → chunk-kes4ygmz.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
2
|
+
import { Check, CloudOff, LoaderCircle, Sparkles, TriangleAlert } from "lucide-react"
|
|
3
|
+
import { useArtifactMessages } from "../messages"
|
|
4
|
+
import { PersonAvatar } from "../person-avatar"
|
|
5
|
+
import { livePersonName, useLivePresence } from "./presence"
|
|
6
|
+
import type { LiveArtifact, LiveArtifactState } from "./session"
|
|
7
|
+
|
|
8
|
+
/** The most people the header shows faces of; the rest count in a `+N`. */
|
|
9
|
+
const MAX_FACES = 3
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Who else is on the artifact, as faces beside the title, each ringed in the color their
|
|
13
|
+
* selection takes on the canvas, and the Agent while a turn changes it. Nothing when nobody is.
|
|
14
|
+
*/
|
|
15
|
+
export function LiveAvatars({ live }: { readonly live: LiveArtifact }) {
|
|
16
|
+
const messages = useArtifactMessages()
|
|
17
|
+
const { people, agents } = useLivePresence(live)
|
|
18
|
+
const working = agents.length > 0
|
|
19
|
+
if (people.length === 0 && !working) return null
|
|
20
|
+
|
|
21
|
+
// A shared link's guest is named as one: the name is only what they typed.
|
|
22
|
+
const labels = { guest: messages.canvas.comments.guest, teamMember: messages.live.teamMember }
|
|
23
|
+
const nameOf = (person: (typeof people)[number]) => {
|
|
24
|
+
const name = livePersonName(person, labels)
|
|
25
|
+
return person.guest && person.name ? `${name} (${labels.guest})` : name
|
|
26
|
+
}
|
|
27
|
+
const shown = people.slice(0, MAX_FACES)
|
|
28
|
+
const names = [...people.map(nameOf), ...(working ? [messages.live.agent] : [])]
|
|
29
|
+
return (
|
|
30
|
+
<div
|
|
31
|
+
role="group"
|
|
32
|
+
aria-label={messages.live.here(names.join(", "))}
|
|
33
|
+
title={names.join(", ")}
|
|
34
|
+
data-live-avatars=""
|
|
35
|
+
className="flex shrink-0 items-center gap-0 pl-1 -space-x-1"
|
|
36
|
+
>
|
|
37
|
+
{working ? (
|
|
38
|
+
<span
|
|
39
|
+
data-live-agent=""
|
|
40
|
+
className="relative flex size-6 items-center justify-center rounded-full bg-[color-mix(in_oklab,var(--primary)_14%,var(--background))] text-primary ring-2 ring-background"
|
|
41
|
+
>
|
|
42
|
+
<Sparkles className="size-3.5 motion-safe:animate-pulse" aria-hidden="true" />
|
|
43
|
+
</span>
|
|
44
|
+
) : null}
|
|
45
|
+
{shown.map((person) => (
|
|
46
|
+
<span
|
|
47
|
+
key={person.id}
|
|
48
|
+
className="relative rounded-full"
|
|
49
|
+
style={{ boxShadow: `0 0 0 1.5px var(--background), 0 0 0 3px ${person.color}` }}
|
|
50
|
+
title={nameOf(person)}
|
|
51
|
+
>
|
|
52
|
+
<PersonAvatar name={livePersonName(person, labels)} size="sm" className="bg-background" />
|
|
53
|
+
</span>
|
|
54
|
+
))}
|
|
55
|
+
{people.length > shown.length ? (
|
|
56
|
+
<span className="relative flex size-6 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground ring-2 ring-background">
|
|
57
|
+
{messages.live.more(people.length - shown.length)}
|
|
58
|
+
</span>
|
|
59
|
+
) : null}
|
|
60
|
+
</div>
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** What the header says of an edit's write-back, as a document editor does. */
|
|
65
|
+
export type LiveSaveLabel = "saved" | "saving" | "failed" | "offline"
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Where what the reader changed is: saved, being saved, kept here while the socket is down, or
|
|
69
|
+
* failed and tried again by the server.
|
|
70
|
+
*/
|
|
71
|
+
export function liveSaveLabel(state: LiveArtifactState): LiveSaveLabel {
|
|
72
|
+
if (state.connection !== "online") return "offline"
|
|
73
|
+
if (state.save?.state === "failed") return "failed"
|
|
74
|
+
if (state.pending || state.save?.state === "unsaved" || state.save?.state === "saving") {
|
|
75
|
+
return "saving"
|
|
76
|
+
}
|
|
77
|
+
return "saved"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The save state, discreet beside the title: its words fold into the icon on a narrow header.
|
|
82
|
+
* Only a failure is announced; offline with nothing kept, it says it is reconnecting.
|
|
83
|
+
*/
|
|
84
|
+
export function LiveSaveStatus({ state }: { readonly state: LiveArtifactState }) {
|
|
85
|
+
const messages = useArtifactMessages().live
|
|
86
|
+
const label = liveSaveLabel(state)
|
|
87
|
+
const text = label === "offline" && !state.pending ? messages.reconnecting : messages[label]
|
|
88
|
+
const Icon =
|
|
89
|
+
label === "saved"
|
|
90
|
+
? Check
|
|
91
|
+
: label === "saving"
|
|
92
|
+
? LoaderCircle
|
|
93
|
+
: label === "failed"
|
|
94
|
+
? TriangleAlert
|
|
95
|
+
: CloudOff
|
|
96
|
+
return (
|
|
97
|
+
<span
|
|
98
|
+
role={label === "failed" ? "status" : undefined}
|
|
99
|
+
title={text}
|
|
100
|
+
data-save={label}
|
|
101
|
+
className={cn(
|
|
102
|
+
"flex h-5 shrink-0 items-center gap-1 text-xs whitespace-nowrap transition-colors",
|
|
103
|
+
label === "failed" ? "text-warning" : "text-muted-foreground"
|
|
104
|
+
)}
|
|
105
|
+
>
|
|
106
|
+
<Icon
|
|
107
|
+
className={cn("size-3.5", label === "saving" && "animate-spin motion-reduce:animate-none")}
|
|
108
|
+
aria-hidden="true"
|
|
109
|
+
/>
|
|
110
|
+
<span className="sr-only @2xl:not-sr-only">{text}</span>
|
|
111
|
+
</span>
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Why the reader's hold on a live artifact changed: they may only watch now, or it is gone. */
|
|
116
|
+
export type LiveNoticeReason = "access" | "not_shared" | "not_found"
|
|
117
|
+
|
|
118
|
+
/** Under the header, when the reader's hold on the artifact changed, saying how. */
|
|
119
|
+
export function LiveNotice({ reason }: { readonly reason: LiveNoticeReason }) {
|
|
120
|
+
const messages = useArtifactMessages().live
|
|
121
|
+
const text =
|
|
122
|
+
reason === "not_shared"
|
|
123
|
+
? messages.notShared
|
|
124
|
+
: reason === "not_found"
|
|
125
|
+
? messages.deleted
|
|
126
|
+
: messages.accessLost
|
|
127
|
+
return (
|
|
128
|
+
<p
|
|
129
|
+
role="status"
|
|
130
|
+
data-live-notice={reason}
|
|
131
|
+
className="flex shrink-0 items-center gap-2 border-b border-border/60 bg-muted/40 px-4 py-2 text-[13px] text-muted-foreground animate-in fade-in-0 duration-200"
|
|
132
|
+
>
|
|
133
|
+
<TriangleAlert className="size-4 shrink-0 text-warning" aria-hidden="true" />
|
|
134
|
+
{text}
|
|
135
|
+
</p>
|
|
136
|
+
)
|
|
137
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createContext,
|
|
3
|
+
createElement,
|
|
4
|
+
type ReactNode,
|
|
5
|
+
useContext,
|
|
6
|
+
useEffect,
|
|
7
|
+
useState,
|
|
8
|
+
useSyncExternalStore,
|
|
9
|
+
} from "react"
|
|
10
|
+
import { type LiveArtifact, type LiveArtifactState, LiveHub } from "./session"
|
|
11
|
+
|
|
12
|
+
let pageHub: LiveHub | null = null
|
|
13
|
+
|
|
14
|
+
const LiveHubContext = createContext<LiveHub | null>(null)
|
|
15
|
+
|
|
16
|
+
/** The hub views hold live artifacts through: one per page, unless a test provides its own. */
|
|
17
|
+
export function LiveHubProvider({
|
|
18
|
+
hub,
|
|
19
|
+
children,
|
|
20
|
+
}: {
|
|
21
|
+
readonly hub: LiveHub
|
|
22
|
+
readonly children: ReactNode
|
|
23
|
+
}) {
|
|
24
|
+
return createElement(LiveHubContext.Provider, { value: hub }, children)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function useLiveHub(): LiveHub {
|
|
28
|
+
const provided = useContext(LiveHubContext)
|
|
29
|
+
if (provided) return provided
|
|
30
|
+
pageHub ??= new LiveHub()
|
|
31
|
+
return pageHub
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Holds an artifact live while the view does: its document and presence, kept in step with
|
|
36
|
+
* everyone else's. Null while `artifactId` is, as for a version that is not the latest.
|
|
37
|
+
*/
|
|
38
|
+
export function useLiveArtifact(artifactId: string | null): LiveArtifact | null {
|
|
39
|
+
const hub = useLiveHub()
|
|
40
|
+
const [artifact, setArtifact] = useState<LiveArtifact | null>(null)
|
|
41
|
+
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (!artifactId) {
|
|
44
|
+
setArtifact(null)
|
|
45
|
+
return
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const held = hub.acquire(artifactId)
|
|
49
|
+
setArtifact(held)
|
|
50
|
+
return () => {
|
|
51
|
+
hub.release(held)
|
|
52
|
+
}
|
|
53
|
+
}, [hub, artifactId])
|
|
54
|
+
|
|
55
|
+
return artifactId && artifact?.artifactId === artifactId ? artifact : null
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const NOT_LIVE: LiveArtifactState = {
|
|
59
|
+
connection: "connecting",
|
|
60
|
+
access: null,
|
|
61
|
+
synced: false,
|
|
62
|
+
save: null,
|
|
63
|
+
pending: false,
|
|
64
|
+
user: null,
|
|
65
|
+
left: null,
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const noSubscription = () => () => {}
|
|
69
|
+
|
|
70
|
+
/** What the server says of a live artifact, as it changes. */
|
|
71
|
+
export function useLiveArtifactState(artifact: LiveArtifact | null): LiveArtifactState {
|
|
72
|
+
return useSyncExternalStore(
|
|
73
|
+
artifact?.subscribe ?? noSubscription,
|
|
74
|
+
artifact?.getState ?? (() => NOT_LIVE),
|
|
75
|
+
() => NOT_LIVE
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const LiveArtifactContext = createContext<LiveArtifact | null>(null)
|
|
80
|
+
|
|
81
|
+
/** The artifact the viewer holds live, for the renderer under it. */
|
|
82
|
+
export function LiveArtifactProvider({
|
|
83
|
+
artifact,
|
|
84
|
+
children,
|
|
85
|
+
}: {
|
|
86
|
+
readonly artifact: LiveArtifact | null
|
|
87
|
+
readonly children: ReactNode
|
|
88
|
+
}) {
|
|
89
|
+
return createElement(LiveArtifactContext.Provider, { value: artifact }, children)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function useViewerLiveArtifact(): LiveArtifact | null {
|
|
93
|
+
return useContext(LiveArtifactContext)
|
|
94
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AGENT_AWARENESS_FIELD,
|
|
3
|
+
type ArtifactAgentPresence,
|
|
4
|
+
type ArtifactLiveUser,
|
|
5
|
+
USER_AWARENESS_FIELD,
|
|
6
|
+
} from "@sixb/core/artifacts/live"
|
|
7
|
+
import { useCallback, useSyncExternalStore } from "react"
|
|
8
|
+
import type { LiveArtifact } from "./session"
|
|
9
|
+
|
|
10
|
+
// Who is on a live artifact, from its awareness: each connection's state, which the server stamps
|
|
11
|
+
// with who the person is (`user`), and the server's own, which says which boards an Agent turn is
|
|
12
|
+
// changing. A connection says itself what it has selected.
|
|
13
|
+
|
|
14
|
+
/** The awareness field a connection selects items in, by id. */
|
|
15
|
+
export const SELECTION_FIELD = "selection"
|
|
16
|
+
|
|
17
|
+
/** Someone on the artifact, from one of their connections: a person may have several. */
|
|
18
|
+
export interface LivePeer {
|
|
19
|
+
readonly clientId: number
|
|
20
|
+
readonly user: ArtifactLiveUser
|
|
21
|
+
/** The items they have selected. */
|
|
22
|
+
readonly selection: readonly string[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface LivePresence {
|
|
26
|
+
/** Everyone else's connections, in the order they came. */
|
|
27
|
+
readonly peers: readonly LivePeer[]
|
|
28
|
+
/** The people among them, once each, for the avatars. */
|
|
29
|
+
readonly people: readonly ArtifactLiveUser[]
|
|
30
|
+
/** The Agent's turns at work, and the boards each is changing. */
|
|
31
|
+
readonly agents: readonly ArtifactAgentPresence[]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const NOBODY: LivePresence = { peers: [], people: [], agents: [] }
|
|
35
|
+
|
|
36
|
+
const presences = new WeakMap<
|
|
37
|
+
LiveArtifact,
|
|
38
|
+
{ value: LivePresence; readonly listeners: Set<() => void> }
|
|
39
|
+
>()
|
|
40
|
+
|
|
41
|
+
/** The presence of a live artifact, read again whenever its awareness changes. */
|
|
42
|
+
function presenceOf(artifact: LiveArtifact) {
|
|
43
|
+
let entry = presences.get(artifact)
|
|
44
|
+
if (entry) return entry
|
|
45
|
+
|
|
46
|
+
const created = { value: readPresence(artifact), listeners: new Set<() => void>() }
|
|
47
|
+
artifact.awareness.on("change", () => {
|
|
48
|
+
created.value = readPresence(artifact)
|
|
49
|
+
for (const listener of created.listeners) listener()
|
|
50
|
+
})
|
|
51
|
+
entry = created
|
|
52
|
+
presences.set(artifact, entry)
|
|
53
|
+
return entry
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function readPresence(artifact: LiveArtifact): LivePresence {
|
|
57
|
+
const own = artifact.doc.clientID
|
|
58
|
+
const peers: LivePeer[] = []
|
|
59
|
+
const agents: ArtifactAgentPresence[] = []
|
|
60
|
+
for (const [clientId, state] of artifact.awareness.getStates()) {
|
|
61
|
+
if (clientId === own) continue
|
|
62
|
+
|
|
63
|
+
agents.push(...agentsOf(state[AGENT_AWARENESS_FIELD]))
|
|
64
|
+
const user = userOf(state[USER_AWARENESS_FIELD])
|
|
65
|
+
if (!user) continue
|
|
66
|
+
|
|
67
|
+
const selection = state[SELECTION_FIELD]
|
|
68
|
+
peers.push({
|
|
69
|
+
clientId,
|
|
70
|
+
user,
|
|
71
|
+
selection: Array.isArray(selection)
|
|
72
|
+
? selection.filter((id): id is string => typeof id === "string")
|
|
73
|
+
: [],
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
if (peers.length === 0 && agents.length === 0) return NOBODY
|
|
77
|
+
|
|
78
|
+
const self = artifact.getState().user?.id
|
|
79
|
+
const people = new Map<string, ArtifactLiveUser>()
|
|
80
|
+
for (const peer of peers) {
|
|
81
|
+
if (peer.user.id !== self && !people.has(peer.user.id)) people.set(peer.user.id, peer.user)
|
|
82
|
+
}
|
|
83
|
+
return { peers, people: [...people.values()], agents }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* What a person on the artifact is called: the name the server gives them, else "Guest" for a
|
|
88
|
+
* shared link's visitor who gave none, and "Team member" for a member without a profile name.
|
|
89
|
+
*/
|
|
90
|
+
export function livePersonName(
|
|
91
|
+
user: ArtifactLiveUser,
|
|
92
|
+
labels: { readonly guest: string; readonly teamMember: string }
|
|
93
|
+
): string {
|
|
94
|
+
return user.name || (user.guest ? labels.guest : labels.teamMember)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function userOf(value: unknown): ArtifactLiveUser | null {
|
|
98
|
+
if (typeof value !== "object" || value === null) return null
|
|
99
|
+
const { id, name, color, guest } = value as Record<string, unknown>
|
|
100
|
+
if (typeof id !== "string" || typeof name !== "string" || typeof color !== "string") return null
|
|
101
|
+
return { id, name, color, ...(guest === true ? { guest } : {}) }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function agentsOf(value: unknown): ArtifactAgentPresence[] {
|
|
105
|
+
if (!Array.isArray(value)) return []
|
|
106
|
+
return value.flatMap((entry) => {
|
|
107
|
+
if (typeof entry !== "object" || entry === null) return []
|
|
108
|
+
const { runId, boards } = entry as Record<string, unknown>
|
|
109
|
+
if (typeof runId !== "string" || !Array.isArray(boards)) return []
|
|
110
|
+
return [{ runId, boards: boards.filter((id): id is string => typeof id === "string") }]
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const noSubscription = () => () => {}
|
|
115
|
+
|
|
116
|
+
/** Who else is on a live artifact, and what the Agent is changing, as it changes. */
|
|
117
|
+
export function useLivePresence(artifact: LiveArtifact | null): LivePresence {
|
|
118
|
+
const subscribe = useCallback(
|
|
119
|
+
(listener: () => void) => {
|
|
120
|
+
if (!artifact) return noSubscription()
|
|
121
|
+
const entry = presenceOf(artifact)
|
|
122
|
+
entry.listeners.add(listener)
|
|
123
|
+
return () => {
|
|
124
|
+
entry.listeners.delete(listener)
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[artifact]
|
|
128
|
+
)
|
|
129
|
+
return useSyncExternalStore(
|
|
130
|
+
subscribe,
|
|
131
|
+
() => (artifact ? presenceOf(artifact).value : NOBODY),
|
|
132
|
+
() => NOBODY
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** Says to the others what this reader has selected. */
|
|
137
|
+
export function shareSelection(artifact: LiveArtifact, ids: readonly string[]): void {
|
|
138
|
+
const current = artifact.awareness.getLocalState()?.[SELECTION_FIELD]
|
|
139
|
+
if (
|
|
140
|
+
Array.isArray(current) &&
|
|
141
|
+
current.length === ids.length &&
|
|
142
|
+
current.every((id, index) => id === ids[index])
|
|
143
|
+
) {
|
|
144
|
+
return
|
|
145
|
+
}
|
|
146
|
+
artifact.awareness.setLocalStateField(SELECTION_FIELD, [...ids])
|
|
147
|
+
}
|