@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,39 @@
|
|
|
1
|
+
/** Where the service worker is served: a Sixb name, so a project's own `public/sw.js` keeps its. */
|
|
2
|
+
export declare const SERVICE_WORKER_PATH = "/sixb-service-worker.js";
|
|
3
|
+
/**
|
|
4
|
+
* Paths the app's origin keeps for the API, sign-in, docs and shared links. The worker leaves them
|
|
5
|
+
* to the network, as the app's link handling does.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RESERVED_PATH_PREFIXES: readonly ["/api", "/auth", "/ws", "/docs", "/shared"];
|
|
8
|
+
/**
|
|
9
|
+
* Names `buildApp` gives entries, chunks and assets: a content hash keeps each one's contents fixed
|
|
10
|
+
* under its URL, so the server caches them forever and the worker can serve them without asking.
|
|
11
|
+
*/
|
|
12
|
+
export declare const IMMUTABLE_ASSET_PATTERN: RegExp;
|
|
13
|
+
export interface ServiceWorkerOptions {
|
|
14
|
+
/** Changes with every build, so a deploy replaces what the device keeps. */
|
|
15
|
+
readonly version: string;
|
|
16
|
+
/** The shell's entry script: a shell that doesn't name it belongs to another deploy. */
|
|
17
|
+
readonly entry: string;
|
|
18
|
+
/** Same-origin files the app needs to open: its entry script and stylesheet, and its icons. */
|
|
19
|
+
readonly precache: readonly string[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The service worker a production build ships. It keeps the app on the device, so the installed
|
|
23
|
+
* app opens on a slow connection or none:
|
|
24
|
+
*
|
|
25
|
+
* - A page goes to the network first, and opens from the device when the network fails or takes
|
|
26
|
+
* longer than three seconds. Every page is the same app shell, saved from `/` once per version.
|
|
27
|
+
* - A hashed file comes from the device once saved; any other file of the app's comes from the
|
|
28
|
+
* network, and from the device when the network fails. Each is saved as it loads.
|
|
29
|
+
* - Other origins, such as a separately served API, and the reserved paths pass through untouched.
|
|
30
|
+
*
|
|
31
|
+
* Installing saves the shell and the files it opens with; a new version takes over at once. The last
|
|
32
|
+
* version's files stay one more round, for a page still running it, and older ones go. The page's
|
|
33
|
+
* data still comes from the API.
|
|
34
|
+
*
|
|
35
|
+
* With navigation preload, the browser asks for a page while the worker starts rather than after, so
|
|
36
|
+
* the worker adds no wait to a launch online.
|
|
37
|
+
*/
|
|
38
|
+
export declare function renderServiceWorker(options: ServiceWorkerOptions): string;
|
|
39
|
+
//# sourceMappingURL=service-worker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-worker.d.ts","sourceRoot":"","sources":["../src/service-worker.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,4BAA4B,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,uDAAwD,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QACsD,CAAA;AAK1F,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,wFAAwF;IACxF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,+FAA+F;IAC/F,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACrC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAkIzE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SixbSharedAccessSession } from "@sixb/client/browser";
|
|
2
|
+
import { type QueryClient } from "@tanstack/react-query";
|
|
3
|
+
/** The visitor of a shared link, as their session knows them. */
|
|
4
|
+
export interface SharedGuest {
|
|
5
|
+
readonly grantId: string;
|
|
6
|
+
/** The page the link opens, within the app: where the guest goes back to. */
|
|
7
|
+
readonly destinationPath: string;
|
|
8
|
+
/** The author id of the comments they write. */
|
|
9
|
+
readonly id: string;
|
|
10
|
+
/** The name they gave, which their comments and presence carry; none until they give it. */
|
|
11
|
+
readonly name?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Keeps the shared link's session the bootstrap opened. Nobody is signed in: the member's session
|
|
15
|
+
* is never asked for, as the boundary would refuse it.
|
|
16
|
+
*/
|
|
17
|
+
export declare function keepSharedSession(queries: QueryClient, session: SixbSharedAccessSession): void;
|
|
18
|
+
/** The guest reading through a shared link, or `null` for anyone else. */
|
|
19
|
+
export declare function useSharedGuest(): SharedGuest | null;
|
|
20
|
+
/**
|
|
21
|
+
* Gives the guest's name, which their session keeps for their comments and presence. Rejects when
|
|
22
|
+
* the API refuses it, so a form can say why.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGiveGuestName(): (name: string) => Promise<void>;
|
|
25
|
+
//# sourceMappingURL=shared-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-session.d.ts","sourceRoot":"","sources":["../src/shared-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,uBAAuB,CAAA;AAQlF,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAI9F;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,IAAI,WAAW,GAAG,IAAI,CAgBnD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAiBlE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
2
|
+
/** Away at least this long, the app refreshes what it shows when it comes back. */
|
|
3
|
+
export declare const REFRESH_AFTER_MS = 30000;
|
|
4
|
+
/**
|
|
5
|
+
* Relaunched within this long of being left, the installed app opens on the screen it was left on.
|
|
6
|
+
* iOS closes a web app in the background as it needs the memory, and opens it again at its start
|
|
7
|
+
* page; a native app comes back where it was.
|
|
8
|
+
*/
|
|
9
|
+
export declare const RESTORE_WITHIN_MS: number;
|
|
10
|
+
export interface LeftScreen {
|
|
11
|
+
/** The address, with its query string. */
|
|
12
|
+
readonly path: string;
|
|
13
|
+
/** When the app was left, in milliseconds since the epoch. */
|
|
14
|
+
readonly at: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* In the installed app, refreshes every query on screen when the app comes back after
|
|
18
|
+
* `REFRESH_AFTER_MS` or longer in the background, so returning to it shows what changed, as a
|
|
19
|
+
* native app does. A browser tab keeps the query client's own choice not to refetch on focus.
|
|
20
|
+
* Once per page.
|
|
21
|
+
*/
|
|
22
|
+
export declare function refreshOnReturn(queryClient: QueryClient): void;
|
|
23
|
+
/**
|
|
24
|
+
* In the installed app, reopens the screen it was left on when it is launched again at its start
|
|
25
|
+
* page within `RESTORE_WITHIN_MS`, before the first render, and remembers the screen each time the
|
|
26
|
+
* app is left. Back from a reopened record climbs to its list (`useBack`). Browser tabs keep their
|
|
27
|
+
* own history and are left alone.
|
|
28
|
+
*/
|
|
29
|
+
export declare function restoreLastScreen(): void;
|
|
30
|
+
/** The screen to reopen at launch, or null to open where iOS did. */
|
|
31
|
+
export declare function screenToReopen(left: LeftScreen | null, launch: {
|
|
32
|
+
readonly path: string;
|
|
33
|
+
readonly now: number;
|
|
34
|
+
}): string | null;
|
|
35
|
+
//# sourceMappingURL=app-return.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-return.d.ts","sourceRoot":"","sources":["../../src/shell/app-return.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,QAAS,CAAA;AAEtC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAc,CAAA;AAI5C,MAAM,WAAW,UAAU;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAKD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAe9D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAwBxC;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAC5B,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,MAAM,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACtD,MAAM,GAAG,IAAI,CAKf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../src/shell/app-shell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../src/shell/app-shell.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAKnE,OAAO,EAAc,KAAK,QAAQ,EAA0B,MAAM,aAAa,CAAA;AAQ/E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,EAAE,qBAAqB,+BAW/F;AAED,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAA;IAC9C,wCAAwC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;IACpD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAiB,EACjB,WAAoB,EACpB,IAAa,EACb,WAAW,EACX,QAAQ,GACT,EAAE,aAAa,+BAkBf"}
|
|
@@ -12,6 +12,8 @@ export interface NavItem {
|
|
|
12
12
|
readonly badge?: ReactNode;
|
|
13
13
|
/** Links nested under this one. */
|
|
14
14
|
readonly items?: readonly NavItem[];
|
|
15
|
+
/** One of the places a phone's tab bar holds; the rest are under More. */
|
|
16
|
+
readonly tab?: boolean;
|
|
15
17
|
}
|
|
16
18
|
/** Links under a heading. */
|
|
17
19
|
export interface NavGroup {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-items.d.ts","sourceRoot":"","sources":["../../src/shell/nav-items.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,+BAA+B;AAC/B,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mGAAmG;IACnG,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,oDAAoD;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"nav-items.d.ts","sourceRoot":"","sources":["../../src/shell/nav-items.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,+BAA+B;AAC/B,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mGAAmG;IACnG,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,oDAAoD;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,6BAA6B;AAC7B,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;CACnC;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CACpC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,+BA+ChD;AA6BD,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,WAExF;AASD,sFAAsF;AACtF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"back.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/back.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,OAAO,IAAI,MAAM,IAAI,CAOpC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The launch screen's icon size in CSS pixels. The production loading shell and the iOS launch
|
|
3
|
+
* image draw the app's icon at this size in the middle of the screen, so one hands over to the
|
|
4
|
+
* other without a jump.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LAUNCH_ICON_SIZE = 72;
|
|
7
|
+
//# sourceMappingURL=launch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/launch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from "react";
|
|
2
|
+
import { type NavEntry } from "../nav-items";
|
|
3
|
+
export interface PhoneMoreSheetProps {
|
|
4
|
+
/** The app's places; those in the tab bar are left out. */
|
|
5
|
+
readonly nav: readonly NavEntry[];
|
|
6
|
+
/** More of the app's own, after its places, such as recent conversations. */
|
|
7
|
+
readonly children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Everything beyond the tab bar, as a sheet that rises from the bottom: the account and its theme,
|
|
11
|
+
* the places the tab bar doesn't hold, Artifacts and the built-in sections, and sign out. It takes
|
|
12
|
+
* the sidebar's place on a phone and opens with it, so anything that opens the sidebar, the tab
|
|
13
|
+
* bar's More and ⌘B included, opens this.
|
|
14
|
+
*/
|
|
15
|
+
export declare function PhoneMoreSheet({ nav, children }: PhoneMoreSheetProps): import("react").JSX.Element;
|
|
16
|
+
/** A labelled group of rows in the More sheet. */
|
|
17
|
+
export declare function PhoneMoreGroup({ label, children, }: {
|
|
18
|
+
readonly label?: string;
|
|
19
|
+
readonly children: ReactNode;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
/** One row in the More sheet: an optional icon, the label and a chevron. A link to another site
|
|
22
|
+
* opens in a new tab, as the sidebar's do. */
|
|
23
|
+
export declare function PhoneMoreRow({ to, label, icon: Icon, current, trailing, nested, onNavigate, }: {
|
|
24
|
+
readonly to: string;
|
|
25
|
+
readonly label: ReactNode;
|
|
26
|
+
readonly icon?: ComponentType<{
|
|
27
|
+
readonly className?: string;
|
|
28
|
+
}>;
|
|
29
|
+
readonly current?: boolean;
|
|
30
|
+
/** Shown before the chevron, such as a working indicator. */
|
|
31
|
+
readonly trailing?: ReactNode;
|
|
32
|
+
/** One of a place's own pages, set in under it. */
|
|
33
|
+
readonly nested?: boolean;
|
|
34
|
+
readonly onNavigate?: () => void;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=more-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"more-sheet.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/more-sheet.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,OAAO,EAA6B,KAAK,QAAQ,EAAgB,MAAM,cAAc,CAAA;AAKrF,MAAM,WAAW,mBAAmB;IAClC,2DAA2D;IAC3D,QAAQ,CAAC,GAAG,EAAE,SAAS,QAAQ,EAAE,CAAA;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAkEpE;AAED,kDAAkD;AAClD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,+BAOA;AAED;8CAC8C;AAC9C,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,KAAK,EACL,IAAI,EAAE,IAAI,EACV,OAAO,EACP,QAAQ,EACR,MAAM,EACN,UAAU,GACX,EAAE;IACD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACjC,+BAyCA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What makes every Sixb app behave like an installed one on a phone, whatever its layout: the
|
|
3
|
+
* keyboard, sheets that pull down to close, screens that push and pop, scroll positions kept across
|
|
4
|
+
* Back, pull to refresh, and the launch image iOS shows when the app opens. The generated root
|
|
5
|
+
* renders it once, inside the router; each part does nothing with a mouse or on a wide screen. The
|
|
6
|
+
* back swipe is iOS's own.
|
|
7
|
+
*/
|
|
8
|
+
export declare function PhoneFoundations(): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=phone-foundations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-foundations.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/phone-foundations.tsx"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,gCAY/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pull down at the top of any page to refresh what it shows, as native lists do. Installed web
|
|
3
|
+
* apps lose the browser's own pull-to-refresh, so this restores it for the app's data: the page
|
|
4
|
+
* follows the finger with a rubber band, the activity indicator draws its ticks in the gap under
|
|
5
|
+
* the top bar as the pull arms, and every query on screen refetches without reloading the app.
|
|
6
|
+
* An element that owns vertical drags opts out with `data-no-pull-refresh`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function PullToRefresh(): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=pull-to-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-to-refresh.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/pull-to-refresh.tsx"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,aAAa,gCAoJ5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** The page's scroll container, which the shell marks with `data-app-scroll`. */
|
|
2
|
+
export declare function appScroller(): HTMLElement | null;
|
|
3
|
+
export declare function normalizePath(pathname: string): string;
|
|
4
|
+
/** A top-level screen, such as Home or a list: it shows its title, never a back button. */
|
|
5
|
+
export declare function isRootPath(pathname: string): boolean;
|
|
6
|
+
/** The section a screen belongs to: its first segment, or "" for Home. */
|
|
7
|
+
export declare function sectionOf(pathname: string): string;
|
|
8
|
+
/** The screen above this one: the address without its last segment. */
|
|
9
|
+
export declare function parentPath(pathname: string): string;
|
|
10
|
+
/** This history entry's place in the app's history, as the router counts it. */
|
|
11
|
+
export declare function historyIndex(state?: unknown): number;
|
|
12
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/routes.ts"],"names":[],"mappings":"AAKA,iFAAiF;AACjF,wBAAgB,WAAW,IAAI,WAAW,GAAG,IAAI,CAEhD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,KAAK,GAAE,OAA8B,GAAG,MAAM,CAG1E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Watch the router's history calls so the screen can be copied before React replaces it.
|
|
3
|
+
* Returns the function that stops watching.
|
|
4
|
+
*/
|
|
5
|
+
export declare function watchScreenChanges(): () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Called once the next page has rendered, before the browser paints it: moves the screens. Reads
|
|
8
|
+
* the address itself, as the history calls it watches carry it, router basename and all.
|
|
9
|
+
*/
|
|
10
|
+
export declare function runScreenMotion(): void;
|
|
11
|
+
//# sourceMappingURL=screen-motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen-motion.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/screen-motion.ts"],"names":[],"mappings":"AAyCA;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,IAAI,CAwC/C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAetC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The app scrolls inside one container that stays mounted between pages, so the browser can't
|
|
3
|
+
* manage its position. A new screen starts at the top; Back comes back to where the screen was
|
|
4
|
+
* left. Changing only the query string, such as a filter, keeps the position.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ScrollRestoration(): null;
|
|
7
|
+
//# sourceMappingURL=scroll-restoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-restoration.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/scroll-restoration.tsx"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAgB,iBAAiB,SAyDhC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iOS shows a Home Screen app's launch image, read from `apple-touch-startup-image` links when the
|
|
3
|
+
* app is added, and a blank screen without one. It takes no part of the manifest, and wants one
|
|
4
|
+
* image per screen size and orientation, exactly sized. In Safari on an iPhone or iPad this draws
|
|
5
|
+
* the two for the screen in hand, so whatever device adds the app has its own: the app's background
|
|
6
|
+
* with its icon in the middle, matching the loading shell it hands over to. They follow the app's
|
|
7
|
+
* theme until the app is added. Nothing runs once installed, on a shared link, elsewhere, or
|
|
8
|
+
* without canvas.
|
|
9
|
+
*/
|
|
10
|
+
export declare function watchStartupImages(): () => void;
|
|
11
|
+
/** The `media` that matches this screen in one orientation, as iOS reads it. */
|
|
12
|
+
export declare function startupImageMedia(screen: {
|
|
13
|
+
readonly width: number;
|
|
14
|
+
readonly height: number;
|
|
15
|
+
readonly scale: number;
|
|
16
|
+
}, orientation: "portrait" | "landscape"): string;
|
|
17
|
+
//# sourceMappingURL=startup-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startup-image.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/startup-image.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,IAAI,CA+B/C;AAED,gFAAgF;AAChF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACnF,WAAW,EAAE,UAAU,GAAG,WAAW,GACpC,MAAM,CAIR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type NavItem } from "../nav-items";
|
|
2
|
+
export interface PhoneTabBarProps {
|
|
3
|
+
/** The places the bar holds, up to four; More, for everything else, follows them. A link to
|
|
4
|
+
* another site is never a tab. */
|
|
5
|
+
readonly items: readonly NavItem[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A phone's tab bar: a floating glass capsule with the places people go most and More for
|
|
9
|
+
* everything else, and a lens that glides to the current tab. Switching tabs returns to where that
|
|
10
|
+
* tab was left; tapping the current tab goes back to its first screen, and from there scrolls to
|
|
11
|
+
* the top. More opens the sidebar, which a phone shows as the More sheet.
|
|
12
|
+
*/
|
|
13
|
+
export declare function PhoneTabBar({ items }: PhoneTabBarProps): import("react").JSX.Element | null;
|
|
14
|
+
//# sourceMappingURL=tab-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-bar.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/tab-bar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAMtE,MAAM,WAAW,gBAAgB;IAC/B;sCACkC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,gBAAgB,sCAuEtD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface PhoneTopBarProps {
|
|
3
|
+
/** Controls at the trailing end, such as Search; a page's own actions join them. */
|
|
4
|
+
readonly trailing?: ReactNode;
|
|
5
|
+
/** Whether the page's heading moves into the bar as it scrolls away. Off for a greeting. */
|
|
6
|
+
readonly title?: boolean;
|
|
7
|
+
/** Sit above the page's own overlays, as over a full-screen conversation. */
|
|
8
|
+
readonly raised?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A phone's top bar, in the iOS 26 manner. It has no bar at all while the page is at rest: its
|
|
12
|
+
* controls float as glass over the page, and once content scrolls beneath them a soft blurred edge
|
|
13
|
+
* fades in. Pushed screens get a back button (`useBack`); the page's first heading moves into the
|
|
14
|
+
* bar when it scrolls out of view, as large titles do.
|
|
15
|
+
*/
|
|
16
|
+
export declare function PhoneTopBar(props: PhoneTopBarProps): import("react").JSX.Element | null;
|
|
17
|
+
/**
|
|
18
|
+
* A page's own actions in the phone's top bar, beside its trailing controls, such as a record's
|
|
19
|
+
* Edit. Renders nothing while the bar is not shown, so wider screens keep the page's own controls.
|
|
20
|
+
*/
|
|
21
|
+
export declare function PhoneBarActions({ children }: {
|
|
22
|
+
readonly children: ReactNode;
|
|
23
|
+
}): import("react").ReactPortal | null;
|
|
24
|
+
//# sourceMappingURL=top-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-bar.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/top-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAA;AAOjF,MAAM,WAAW,gBAAgB;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCAIlD;AAyDD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAU7E"}
|
|
@@ -2,11 +2,13 @@ import { type NavEntry } from "./nav-items";
|
|
|
2
2
|
export interface SearchCommandProps {
|
|
3
3
|
/** The app's own pages, listed before the built-in sections'. `AppShell` passes its nav. */
|
|
4
4
|
readonly pages?: readonly NavEntry[];
|
|
5
|
+
/** A row in the sidebar, or an icon in a phone's top bar, where search fills the screen. */
|
|
6
|
+
readonly placement?: "sidebar" | "toolbar";
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* A Search button for the sidebar, and ⌘K anywhere: the app's pages, every built-in section page
|
|
8
10
|
* this person may open, and the project's objects as they type, each opening its page. Shared
|
|
9
11
|
* links, which open one page, leave it out.
|
|
10
12
|
*/
|
|
11
|
-
export declare function SearchCommand({ pages }: SearchCommandProps): import("react").JSX.Element | null;
|
|
13
|
+
export declare function SearchCommand({ pages, placement }: SearchCommandProps): import("react").JSX.Element | null;
|
|
12
14
|
//# sourceMappingURL=search-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-command.d.ts","sourceRoot":"","sources":["../../src/shell/search-command.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAc,KAAK,QAAQ,EAAgB,MAAM,aAAa,CAAA;AAErE,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"search-command.d.ts","sourceRoot":"","sources":["../../src/shell/search-command.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAc,KAAK,QAAQ,EAAgB,MAAM,aAAa,CAAA;AAErE,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAA;IACpC,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAU,EAAE,SAAqB,EAAE,EAAE,kBAAkB,sCAwHtF"}
|
|
@@ -17,6 +17,8 @@ export interface UserMenuItemProps {
|
|
|
17
17
|
* way into the sections.
|
|
18
18
|
*/
|
|
19
19
|
declare function UserMenuRoot({ children }: UserMenuProps): import("react").JSX.Element;
|
|
20
|
+
/** Up to two letters for an avatar without a picture. */
|
|
21
|
+
export declare function initials(name: string): string;
|
|
20
22
|
declare function UserMenuItem({ href, icon: Icon, onSelect, children }: UserMenuItemProps): import("react").JSX.Element;
|
|
21
23
|
export declare const UserMenu: typeof UserMenuRoot & {
|
|
22
24
|
Item: typeof UserMenuItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-menu.d.ts","sourceRoot":"","sources":["../../src/shell/user-menu.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,+BA4GhD;
|
|
1
|
+
{"version":3,"file":"user-menu.d.ts","sourceRoot":"","sources":["../../src/shell/user-menu.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,+BA4GhD;AA+BD,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAchF;AAED,eAAO,MAAM,QAAQ;;CAAsD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixb/app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Custom app toolkit for Sixb projects — route scanning, dev serving, and production builds",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixb",
|
|
@@ -54,15 +54,18 @@
|
|
|
54
54
|
"prepack": "bun run build"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@sixb/client": "^0.2.
|
|
58
|
-
"@sixb/core": "^0.2.
|
|
59
|
-
"@sixb/ui": "^0.2.
|
|
57
|
+
"@sixb/client": "^0.2.3",
|
|
58
|
+
"@sixb/core": "^0.2.3",
|
|
59
|
+
"@sixb/ui": "^0.2.3",
|
|
60
60
|
"@tailwindcss/cli": "^4.2.2",
|
|
61
61
|
"@xyflow/react": "^12.10.2",
|
|
62
|
+
"lib0": "0.2.119",
|
|
62
63
|
"lucide-react": "^0.562.0",
|
|
63
64
|
"parse5": "^8.0.0",
|
|
64
65
|
"recharts": "^3.8.0",
|
|
65
|
-
"tailwindcss": "^4.1.18"
|
|
66
|
+
"tailwindcss": "^4.1.18",
|
|
67
|
+
"y-protocols": "1.0.7",
|
|
68
|
+
"yjs": "^13.6.33"
|
|
66
69
|
},
|
|
67
70
|
"peerDependencies": {
|
|
68
71
|
"@tanstack/react-query": "^5.0.0",
|
package/src/agent/agent-chat.tsx
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { getAuthSessionOptions, getProjectInfoOptions } from "@sixb/client/hooks"
|
|
1
2
|
import { Button, EmptyState, Toaster } from "@sixb/ui/components"
|
|
2
3
|
import { cn } from "@sixb/ui/lib/utils"
|
|
4
|
+
import { useQueryClient } from "@tanstack/react-query"
|
|
3
5
|
import { MessagesSquare } from "lucide-react"
|
|
4
|
-
import { type ReactNode, useId } from "react"
|
|
6
|
+
import { type ReactNode, useEffect, useId } from "react"
|
|
5
7
|
import { ArtifactPeopleContext } from "../artifacts/people"
|
|
6
8
|
import type { ArtifactTarget } from "../artifacts/target"
|
|
9
|
+
import { takeAgentDraft } from "../artifacts/view-context"
|
|
7
10
|
import { ArtifactPanelRoot } from "./artifact-panel"
|
|
8
11
|
import { ComputerBadge, ComputerOfflineNotice } from "./components/computer-place"
|
|
9
12
|
import { ConversationPanel } from "./components/conversation-panel"
|
|
@@ -11,12 +14,16 @@ import { SandboxRecovery } from "./components/sandbox-recovery"
|
|
|
11
14
|
import { SharedThreadNotice } from "./components/shared-thread-notice"
|
|
12
15
|
import { ThreadArtifactsMenu } from "./components/thread-artifacts-menu"
|
|
13
16
|
import { ThreadPeople } from "./components/thread-people"
|
|
14
|
-
import {
|
|
17
|
+
import { useComposerInsertion } from "./composer-insertion"
|
|
18
|
+
import {
|
|
19
|
+
type UseAgentConversationInput,
|
|
20
|
+
useAgentConversation,
|
|
21
|
+
} from "./hooks/use-agent-conversation"
|
|
15
22
|
import { useThreadSharing } from "./hooks/use-thread-sharing"
|
|
16
23
|
import { useAgentMessages } from "./i18n"
|
|
17
24
|
import { knownName, MessageAuthorsContext, useConversationAuthors } from "./message-authors"
|
|
18
25
|
import { personName, threadOwner } from "./sharing"
|
|
19
|
-
import type { AgentContextInput } from "./types"
|
|
26
|
+
import type { AgentContextInput, AgentThreadSandboxParams } from "./types"
|
|
20
27
|
|
|
21
28
|
export interface AgentChatProps {
|
|
22
29
|
readonly threadId?: string | null
|
|
@@ -43,6 +50,13 @@ export interface AgentChatProps {
|
|
|
43
50
|
* may call it. False hides it.
|
|
44
51
|
*/
|
|
45
52
|
readonly dictation?: boolean
|
|
53
|
+
/**
|
|
54
|
+
* The sandbox the conversation the next message creates works in, as the project's sandbox
|
|
55
|
+
* declares its params. See {@link UseAgentConversationInput.newThreadSandbox}.
|
|
56
|
+
*/
|
|
57
|
+
readonly newThreadSandbox?: AgentThreadSandboxParams
|
|
58
|
+
/** Under the input of a new conversation, on the right: the page's choices for it. */
|
|
59
|
+
readonly newThreadControls?: ReactNode
|
|
46
60
|
}
|
|
47
61
|
|
|
48
62
|
/** Route-independent conversation view; routing and embedded panels only adapt its callbacks. */
|
|
@@ -62,13 +76,39 @@ export function AgentChat({
|
|
|
62
76
|
conversationHeaderActions: hostHeaderActions,
|
|
63
77
|
composerPlaceholder,
|
|
64
78
|
dictation = true,
|
|
79
|
+
newThreadSandbox,
|
|
80
|
+
newThreadControls,
|
|
65
81
|
}: AgentChatProps) {
|
|
66
82
|
const messages = useAgentMessages()
|
|
67
83
|
const threadId = threadIdInput ?? null
|
|
68
84
|
const conversation = useAgentConversation({
|
|
69
85
|
threadId,
|
|
70
86
|
onThreadCreated: onNavigateThread,
|
|
87
|
+
newThreadSandbox,
|
|
71
88
|
})
|
|
89
|
+
// Words an artifact puts in the input, as comments it asks the Agent to act on.
|
|
90
|
+
const { insertion, insert, inserted } = useComposerInsertion()
|
|
91
|
+
|
|
92
|
+
// What an artifact on its own page asked the Agent before coming here starts the input, when
|
|
93
|
+
// it was this person, in this project, a moment ago.
|
|
94
|
+
const queries = useQueryClient()
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
let current = true
|
|
97
|
+
Promise.all([
|
|
98
|
+
queries.fetchQuery({ ...getProjectInfoOptions(), staleTime: Number.POSITIVE_INFINITY }),
|
|
99
|
+
queries.fetchQuery({ ...getAuthSessionOptions(), staleTime: Number.POSITIVE_INFINITY }),
|
|
100
|
+
])
|
|
101
|
+
.then(([project, session]) => {
|
|
102
|
+
const userId = session.authenticated ? session.user.id : null
|
|
103
|
+
const pending = current ? takeAgentDraft({ userId, projectId: project.id }) : null
|
|
104
|
+
if (pending) insert(pending)
|
|
105
|
+
})
|
|
106
|
+
.catch(() => {})
|
|
107
|
+
return () => {
|
|
108
|
+
current = false
|
|
109
|
+
}
|
|
110
|
+
}, [insert, queries])
|
|
111
|
+
|
|
72
112
|
// Each chat has its own toaster, so a toast shows once however many chats are mounted.
|
|
73
113
|
const toasterId = useId()
|
|
74
114
|
const sharing = useThreadSharing({
|
|
@@ -149,11 +189,13 @@ export function AgentChat({
|
|
|
149
189
|
<ConversationPanel
|
|
150
190
|
agent={conversation.currentAgent}
|
|
151
191
|
transcript={conversation.transcriptProps}
|
|
152
|
-
composer={
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
192
|
+
composer={{
|
|
193
|
+
...conversation.composerProps,
|
|
194
|
+
...(dictation ? {} : { dictation: undefined }),
|
|
195
|
+
...(threadId === null && newThreadControls ? { newThreadControls } : {}),
|
|
196
|
+
...(insertion ? { insertion } : {}),
|
|
197
|
+
onInserted: inserted,
|
|
198
|
+
}}
|
|
157
199
|
messagesLoading={conversation.messagesLoading}
|
|
158
200
|
messagesError={conversation.messagesError ? messages.chat.messagesLoadFailed : null}
|
|
159
201
|
currentThread={conversation.currentThread}
|
|
@@ -196,6 +238,7 @@ export function AgentChat({
|
|
|
196
238
|
scopeKey={threadId ?? "draft"}
|
|
197
239
|
routeTarget={artifactTarget}
|
|
198
240
|
onRouteTargetChange={onArtifactTargetChange}
|
|
241
|
+
{...(readOnly ? {} : { onAgentDraft: insert })}
|
|
199
242
|
>
|
|
200
243
|
<div
|
|
201
244
|
data-agent-panel={compact ? "" : undefined}
|
|
@@ -3,6 +3,7 @@ import { cn } from "@sixb/ui/lib/utils"
|
|
|
3
3
|
import { type ReactNode, useCallback, useState } from "react"
|
|
4
4
|
import { AgentChat } from "./agent-chat"
|
|
5
5
|
import { useRegisteredAgentContext } from "./agent-context-provider"
|
|
6
|
+
import type { AgentThreadSandboxParams } from "./types"
|
|
6
7
|
|
|
7
8
|
export interface AgentPanelProps {
|
|
8
9
|
/** Omitted uses AgentContextProvider; provided is the complete controlled ambient list. */
|
|
@@ -29,6 +30,13 @@ export interface AgentPanelProps {
|
|
|
29
30
|
readonly className?: string
|
|
30
31
|
/** Centered content for an empty conversation. Omit for the agent identity; null hides it. */
|
|
31
32
|
readonly welcomeContent?: ReactNode
|
|
33
|
+
/**
|
|
34
|
+
* The sandbox the conversation the next message creates works in, as the project's sandbox
|
|
35
|
+
* declares its params, such as a repository and a branch.
|
|
36
|
+
*/
|
|
37
|
+
readonly newThreadSandbox?: AgentThreadSandboxParams
|
|
38
|
+
/** Under the input of a new conversation, on the right: the page's choices for it. */
|
|
39
|
+
readonly newThreadControls?: ReactNode
|
|
32
40
|
}
|
|
33
41
|
|
|
34
42
|
/** Embeddable chat that never reads or changes the host application's route. */
|
|
@@ -47,6 +55,8 @@ export function AgentPanel({
|
|
|
47
55
|
compact = true,
|
|
48
56
|
className,
|
|
49
57
|
welcomeContent,
|
|
58
|
+
newThreadSandbox,
|
|
59
|
+
newThreadControls,
|
|
50
60
|
}: AgentPanelProps) {
|
|
51
61
|
const registeredContext = useRegisteredAgentContext()
|
|
52
62
|
const ambientContext = context === undefined ? registeredContext : context
|
|
@@ -73,6 +83,8 @@ export function AgentPanel({
|
|
|
73
83
|
composerPlaceholder={composerPlaceholder}
|
|
74
84
|
dictation={dictation}
|
|
75
85
|
welcomeContent={welcomeContent}
|
|
86
|
+
newThreadSandbox={newThreadSandbox}
|
|
87
|
+
newThreadControls={newThreadControls}
|
|
76
88
|
onNavigateHome={() => {
|
|
77
89
|
changeThread(null)
|
|
78
90
|
onNewThread?.()
|
|
@@ -245,6 +245,8 @@ export function AgentSurface({
|
|
|
245
245
|
type="button"
|
|
246
246
|
size="icon"
|
|
247
247
|
className="fixed right-5 bottom-5 z-40 size-11 rounded-full shadow-lg max-sm:right-3 max-sm:bottom-3"
|
|
248
|
+
// A phone's shell hides it: it would sit on the tab bar, so the top bar opens the agent.
|
|
249
|
+
data-agent-launcher=""
|
|
248
250
|
aria-label={launcher}
|
|
249
251
|
title={launcher}
|
|
250
252
|
onClick={() => changeMode("dock")}
|
|
@@ -268,6 +270,8 @@ export function AgentSurface({
|
|
|
268
270
|
<aside
|
|
269
271
|
data-agent-surface={presentation}
|
|
270
272
|
data-agent-surface-resizing={resizing ? "" : undefined}
|
|
273
|
+
// On a phone the dock rests on the keyboard, rising into place as it opens (TouchViewport).
|
|
274
|
+
data-keyboard-overlay={presentation === "dock" ? "" : undefined}
|
|
271
275
|
aria-label={surfaceTitle}
|
|
272
276
|
aria-hidden={!visible}
|
|
273
277
|
inert={!visible}
|