@schlessera/brain-ui-react 0.35.0 → 0.37.0
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/README.md +82 -4
- package/dist/components/activity/activity-page.d.ts +17 -5
- package/dist/components/activity/activity-page.d.ts.map +1 -1
- package/dist/components/activity/activity-page.js +148 -50
- package/dist/components/activity/activity-page.js.map +1 -1
- package/dist/components/activity/activity-run-detail.d.ts +16 -1
- package/dist/components/activity/activity-run-detail.d.ts.map +1 -1
- package/dist/components/activity/activity-run-detail.js +47 -4
- package/dist/components/activity/activity-run-detail.js.map +1 -1
- package/dist/components/activity/activity-run-list.d.ts +7 -1
- package/dist/components/activity/activity-run-list.d.ts.map +1 -1
- package/dist/components/activity/activity-run-list.js +16 -8
- package/dist/components/activity/activity-run-list.js.map +1 -1
- package/dist/components/activity/activity-views.d.ts +63 -0
- package/dist/components/activity/activity-views.d.ts.map +1 -0
- package/dist/components/activity/activity-views.js +52 -0
- package/dist/components/activity/activity-views.js.map +1 -0
- package/dist/components/activity/approval-card.d.ts +29 -0
- package/dist/components/activity/approval-card.d.ts.map +1 -0
- package/dist/components/activity/approval-card.js +73 -0
- package/dist/components/activity/approval-card.js.map +1 -0
- package/dist/components/activity/digest-card.d.ts +3 -0
- package/dist/components/activity/digest-card.d.ts.map +1 -1
- package/dist/components/activity/digest-card.js +20 -16
- package/dist/components/activity/digest-card.js.map +1 -1
- package/dist/components/activity/digest-summary.d.ts +19 -0
- package/dist/components/activity/digest-summary.d.ts.map +1 -0
- package/dist/components/activity/digest-summary.js +20 -0
- package/dist/components/activity/digest-summary.js.map +1 -0
- package/dist/components/activity/push-switch.d.ts +25 -0
- package/dist/components/activity/push-switch.d.ts.map +1 -0
- package/dist/components/activity/push-switch.js +14 -0
- package/dist/components/activity/push-switch.js.map +1 -0
- package/dist/components/activity/push-toggle.d.ts +7 -0
- package/dist/components/activity/push-toggle.d.ts.map +1 -1
- package/dist/components/activity/push-toggle.js +72 -47
- package/dist/components/activity/push-toggle.js.map +1 -1
- package/dist/components/activity/span-bits.d.ts +11 -0
- package/dist/components/activity/span-bits.d.ts.map +1 -1
- package/dist/components/activity/span-bits.js +50 -7
- package/dist/components/activity/span-bits.js.map +1 -1
- package/dist/components/chat/ask-user-card.d.ts +76 -3
- package/dist/components/chat/ask-user-card.d.ts.map +1 -1
- package/dist/components/chat/ask-user-card.js +208 -149
- package/dist/components/chat/ask-user-card.js.map +1 -1
- package/dist/components/chat/ask-user-typed.d.ts +42 -0
- package/dist/components/chat/ask-user-typed.d.ts.map +1 -0
- package/dist/components/chat/ask-user-typed.js +60 -0
- package/dist/components/chat/ask-user-typed.js.map +1 -0
- package/dist/components/chat/brain-markdown-links.d.ts +2 -1
- package/dist/components/chat/brain-markdown-links.d.ts.map +1 -1
- package/dist/components/chat/brain-markdown-links.js +3 -4
- package/dist/components/chat/brain-markdown-links.js.map +1 -1
- package/dist/components/chat/brain-markdown.d.ts.map +1 -1
- package/dist/components/chat/brain-markdown.js +4 -2
- package/dist/components/chat/brain-markdown.js.map +1 -1
- package/dist/components/chat/chat-page.d.ts.map +1 -1
- package/dist/components/chat/chat-page.js +27 -11
- package/dist/components/chat/chat-page.js.map +1 -1
- package/dist/components/chat/composer-view.d.ts +75 -0
- package/dist/components/chat/composer-view.d.ts.map +1 -0
- package/dist/components/chat/composer-view.js +31 -0
- package/dist/components/chat/composer-view.js.map +1 -0
- package/dist/components/chat/composer.d.ts +4 -0
- package/dist/components/chat/composer.d.ts.map +1 -1
- package/dist/components/chat/composer.js +76 -59
- package/dist/components/chat/composer.js.map +1 -1
- package/dist/components/chat/markdown-content.d.ts +16 -1
- package/dist/components/chat/markdown-content.d.ts.map +1 -1
- package/dist/components/chat/markdown-content.js +47 -3
- package/dist/components/chat/markdown-content.js.map +1 -1
- package/dist/components/chat/mermaid-block.d.ts +4 -0
- package/dist/components/chat/mermaid-block.d.ts.map +1 -1
- package/dist/components/chat/mermaid-block.js +13 -5
- package/dist/components/chat/mermaid-block.js.map +1 -1
- package/dist/components/chat/mermaid-share.d.ts +2 -1
- package/dist/components/chat/mermaid-share.d.ts.map +1 -1
- package/dist/components/chat/mermaid-share.js +7 -8
- package/dist/components/chat/mermaid-share.js.map +1 -1
- package/dist/components/chat/mermaid-viewer.d.ts.map +1 -1
- package/dist/components/chat/mermaid-viewer.js +3 -1
- package/dist/components/chat/mermaid-viewer.js.map +1 -1
- package/dist/components/chat/message-bubble.d.ts +8 -1
- package/dist/components/chat/message-bubble.d.ts.map +1 -1
- package/dist/components/chat/message-bubble.js +53 -24
- package/dist/components/chat/message-bubble.js.map +1 -1
- package/dist/components/chat/message-share.d.ts +2 -1
- package/dist/components/chat/message-share.d.ts.map +1 -1
- package/dist/components/chat/message-share.js +6 -7
- package/dist/components/chat/message-share.js.map +1 -1
- package/dist/components/chat/renderers/bind.d.ts +39 -0
- package/dist/components/chat/renderers/bind.d.ts.map +1 -0
- package/dist/components/chat/renderers/bind.js +43 -0
- package/dist/components/chat/renderers/bind.js.map +1 -0
- package/dist/components/chat/renderers/brain-ui-tools.d.ts +3 -0
- package/dist/components/chat/renderers/brain-ui-tools.d.ts.map +1 -0
- package/dist/components/chat/renderers/brain-ui-tools.js +41 -0
- package/dist/components/chat/renderers/brain-ui-tools.js.map +1 -0
- package/dist/components/chat/renderers/claude-tools.d.ts.map +1 -1
- package/dist/components/chat/renderers/claude-tools.js +3 -2
- package/dist/components/chat/renderers/claude-tools.js.map +1 -1
- package/dist/components/chat/renderers/index.d.ts +10 -2
- package/dist/components/chat/renderers/index.d.ts.map +1 -1
- package/dist/components/chat/renderers/index.js +15 -10
- package/dist/components/chat/renderers/index.js.map +1 -1
- package/dist/components/chat/session-drawer.d.ts +4 -0
- package/dist/components/chat/session-drawer.d.ts.map +1 -1
- package/dist/components/chat/session-drawer.js +32 -32
- package/dist/components/chat/session-drawer.js.map +1 -1
- package/dist/components/chat/session-list.d.ts +41 -0
- package/dist/components/chat/session-list.d.ts.map +1 -0
- package/dist/components/chat/session-list.js +10 -0
- package/dist/components/chat/session-list.js.map +1 -0
- package/dist/components/chat/share-block.d.ts.map +1 -1
- package/dist/components/chat/share-block.js +12 -11
- package/dist/components/chat/share-block.js.map +1 -1
- package/dist/components/chat/share-card.js +2 -2
- package/dist/components/chat/share-card.js.map +1 -1
- package/dist/components/chat/subagent-view.js +1 -1
- package/dist/components/chat/subagent-view.js.map +1 -1
- package/dist/components/chat/tool-call-timeline.d.ts.map +1 -1
- package/dist/components/chat/tool-call-timeline.js +45 -14
- package/dist/components/chat/tool-call-timeline.js.map +1 -1
- package/dist/components/chat/tool-cards/block-card.d.ts +28 -0
- package/dist/components/chat/tool-cards/block-card.d.ts.map +1 -0
- package/dist/components/chat/tool-cards/block-card.js +103 -0
- package/dist/components/chat/tool-cards/block-card.js.map +1 -0
- package/dist/components/chat/tool-cards/image-mask-card.d.ts +70 -0
- package/dist/components/chat/tool-cards/image-mask-card.d.ts.map +1 -0
- package/dist/components/chat/tool-cards/image-mask-card.js +142 -0
- package/dist/components/chat/tool-cards/image-mask-card.js.map +1 -0
- package/dist/components/chat/tool-cards/location-card.d.ts +45 -0
- package/dist/components/chat/tool-cards/location-card.d.ts.map +1 -0
- package/dist/components/chat/tool-cards/location-card.js +128 -0
- package/dist/components/chat/tool-cards/location-card.js.map +1 -0
- package/dist/components/chat/tool-views.d.ts +19 -2
- package/dist/components/chat/tool-views.d.ts.map +1 -1
- package/dist/components/chat/tool-views.js +28 -22
- package/dist/components/chat/tool-views.js.map +1 -1
- package/dist/components/chat/transcript-turn.d.ts +45 -0
- package/dist/components/chat/transcript-turn.d.ts.map +1 -0
- package/dist/components/chat/transcript-turn.js +25 -0
- package/dist/components/chat/transcript-turn.js.map +1 -0
- package/dist/components/chat/use-chat-commands.d.ts.map +1 -1
- package/dist/components/chat/use-chat-commands.js +13 -16
- package/dist/components/chat/use-chat-commands.js.map +1 -1
- package/dist/components/chat/welcome-state.d.ts +7 -0
- package/dist/components/chat/welcome-state.d.ts.map +1 -1
- package/dist/components/chat/welcome-state.js +13 -5
- package/dist/components/chat/welcome-state.js.map +1 -1
- package/dist/components/connectivity/connection-gate.d.ts.map +1 -1
- package/dist/components/connectivity/connection-gate.js +27 -21
- package/dist/components/connectivity/connection-gate.js.map +1 -1
- package/dist/components/connectivity/login-form.d.ts +31 -0
- package/dist/components/connectivity/login-form.d.ts.map +1 -0
- package/dist/components/connectivity/login-form.js +19 -0
- package/dist/components/connectivity/login-form.js.map +1 -0
- package/dist/components/connectivity/login-screen.d.ts +5 -2
- package/dist/components/connectivity/login-screen.d.ts.map +1 -1
- package/dist/components/connectivity/login-screen.js +41 -31
- package/dist/components/connectivity/login-screen.js.map +1 -1
- package/dist/components/dev/share-harness.js +1 -1
- package/dist/components/dev/share-harness.js.map +1 -1
- package/dist/components/files/file-panel.d.ts +1 -1
- package/dist/components/files/file-panel.d.ts.map +1 -1
- package/dist/components/files/file-panel.js +74 -0
- package/dist/components/files/file-panel.js.map +1 -1
- package/dist/components/files/file-tree-view.d.ts +45 -0
- package/dist/components/files/file-tree-view.d.ts.map +1 -0
- package/dist/components/files/file-tree-view.js +51 -0
- package/dist/components/files/file-tree-view.js.map +1 -0
- package/dist/components/files/file-tree.d.ts +6 -0
- package/dist/components/files/file-tree.d.ts.map +1 -1
- package/dist/components/files/file-tree.js +39 -43
- package/dist/components/files/file-tree.js.map +1 -1
- package/dist/components/files/file-viewer-binary.d.ts.map +1 -1
- package/dist/components/files/file-viewer-binary.js +3 -2
- package/dist/components/files/file-viewer-binary.js.map +1 -1
- package/dist/components/files/file-viewer-frame.d.ts +36 -0
- package/dist/components/files/file-viewer-frame.d.ts.map +1 -0
- package/dist/components/files/file-viewer-frame.js +26 -0
- package/dist/components/files/file-viewer-frame.js.map +1 -0
- package/dist/components/files/file-viewer.d.ts +5 -0
- package/dist/components/files/file-viewer.d.ts.map +1 -1
- package/dist/components/files/file-viewer.js +26 -32
- package/dist/components/files/file-viewer.js.map +1 -1
- package/dist/components/files/frontmatter-chips.d.ts +18 -0
- package/dist/components/files/frontmatter-chips.d.ts.map +1 -0
- package/dist/components/files/frontmatter-chips.js +11 -0
- package/dist/components/files/frontmatter-chips.js.map +1 -0
- package/dist/components/files/frontmatter-panel.d.ts +5 -1
- package/dist/components/files/frontmatter-panel.d.ts.map +1 -1
- package/dist/components/files/frontmatter-panel.js +7 -6
- package/dist/components/files/frontmatter-panel.js.map +1 -1
- package/dist/components/files/staleness.d.ts +18 -0
- package/dist/components/files/staleness.d.ts.map +1 -0
- package/dist/components/files/staleness.js +27 -0
- package/dist/components/files/staleness.js.map +1 -0
- package/dist/components/graph/graph-canvas.d.ts.map +1 -1
- package/dist/components/graph/graph-canvas.js +24 -1
- package/dist/components/graph/graph-canvas.js.map +1 -1
- package/dist/components/graph/graph-controls-column.d.ts +14 -0
- package/dist/components/graph/graph-controls-column.d.ts.map +1 -0
- package/dist/components/graph/graph-controls-column.js +44 -0
- package/dist/components/graph/graph-controls-column.js.map +1 -0
- package/dist/components/graph/graph-controls.d.ts +20 -5
- package/dist/components/graph/graph-controls.d.ts.map +1 -1
- package/dist/components/graph/graph-controls.js +58 -37
- package/dist/components/graph/graph-controls.js.map +1 -1
- package/dist/components/graph/graph-form.d.ts +82 -0
- package/dist/components/graph/graph-form.d.ts.map +1 -0
- package/dist/components/graph/graph-form.js +69 -0
- package/dist/components/graph/graph-form.js.map +1 -0
- package/dist/components/graph/graph-maintenance.d.ts.map +1 -1
- package/dist/components/graph/graph-maintenance.js +6 -10
- package/dist/components/graph/graph-maintenance.js.map +1 -1
- package/dist/components/graph/graph-node-rail.d.ts +13 -0
- package/dist/components/graph/graph-node-rail.d.ts.map +1 -0
- package/dist/components/graph/graph-node-rail.js +92 -0
- package/dist/components/graph/graph-node-rail.js.map +1 -0
- package/dist/components/graph/graph-page.d.ts +7 -0
- package/dist/components/graph/graph-page.d.ts.map +1 -1
- package/dist/components/graph/graph-page.js +102 -12
- package/dist/components/graph/graph-page.js.map +1 -1
- package/dist/components/graph/graph-scene.d.ts.map +1 -1
- package/dist/components/graph/graph-scene.js +100 -24
- package/dist/components/graph/graph-scene.js.map +1 -1
- package/dist/components/graph/lib/graph-helpers.d.ts +42 -12
- package/dist/components/graph/lib/graph-helpers.d.ts.map +1 -1
- package/dist/components/graph/lib/graph-helpers.js +33 -41
- package/dist/components/graph/lib/graph-helpers.js.map +1 -1
- package/dist/components/graph/node-card.d.ts +28 -0
- package/dist/components/graph/node-card.d.ts.map +1 -0
- package/dist/components/graph/node-card.js +7 -0
- package/dist/components/graph/node-card.js.map +1 -0
- package/dist/components/graph/node-popover.d.ts +6 -2
- package/dist/components/graph/node-popover.d.ts.map +1 -1
- package/dist/components/graph/node-popover.js +13 -31
- package/dist/components/graph/node-popover.js.map +1 -1
- package/dist/components/graph/use-graph-theme.d.ts +32 -4
- package/dist/components/graph/use-graph-theme.d.ts.map +1 -1
- package/dist/components/graph/use-graph-theme.js +44 -32
- package/dist/components/graph/use-graph-theme.js.map +1 -1
- package/dist/components/graph/use-node-actions.d.ts +26 -0
- package/dist/components/graph/use-node-actions.d.ts.map +1 -0
- package/dist/components/graph/use-node-actions.js +54 -0
- package/dist/components/graph/use-node-actions.js.map +1 -0
- package/dist/components/images/image-share.d.ts +2 -1
- package/dist/components/images/image-share.d.ts.map +1 -1
- package/dist/components/images/image-share.js +3 -3
- package/dist/components/images/image-share.js.map +1 -1
- package/dist/components/images/image-viewer.d.ts.map +1 -1
- package/dist/components/images/image-viewer.js +3 -1
- package/dist/components/images/image-viewer.js.map +1 -1
- package/dist/components/images/mask-editor.d.ts.map +1 -1
- package/dist/components/images/mask-editor.js +7 -5
- package/dist/components/images/mask-editor.js.map +1 -1
- package/dist/components/layout/app-shell.d.ts.map +1 -1
- package/dist/components/layout/app-shell.js +4 -1
- package/dist/components/layout/app-shell.js.map +1 -1
- package/dist/components/layout/desktop-palette.d.ts +23 -0
- package/dist/components/layout/desktop-palette.d.ts.map +1 -0
- package/dist/components/layout/desktop-palette.js +132 -0
- package/dist/components/layout/desktop-palette.js.map +1 -0
- package/dist/components/layout/key-cap.d.ts +9 -0
- package/dist/components/layout/key-cap.d.ts.map +1 -0
- package/dist/components/layout/key-cap.js +10 -0
- package/dist/components/layout/key-cap.js.map +1 -0
- package/dist/components/layout/mobile-tab-bar.d.ts +13 -0
- package/dist/components/layout/mobile-tab-bar.d.ts.map +1 -1
- package/dist/components/layout/mobile-tab-bar.js +58 -47
- package/dist/components/layout/mobile-tab-bar.js.map +1 -1
- package/dist/components/layout/shortcut-switch.d.ts +13 -0
- package/dist/components/layout/shortcut-switch.d.ts.map +1 -0
- package/dist/components/layout/shortcut-switch.js +22 -0
- package/dist/components/layout/shortcut-switch.js.map +1 -0
- package/dist/components/layout/side-rail.d.ts +28 -0
- package/dist/components/layout/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail.js +72 -27
- package/dist/components/layout/side-rail.js.map +1 -1
- package/dist/components/layout/slide-panel.d.ts +25 -2
- package/dist/components/layout/slide-panel.d.ts.map +1 -1
- package/dist/components/layout/slide-panel.js +13 -4
- package/dist/components/layout/slide-panel.js.map +1 -1
- package/dist/components/layout/theme.d.ts +22 -0
- package/dist/components/layout/theme.d.ts.map +1 -0
- package/dist/components/layout/theme.js +44 -0
- package/dist/components/layout/theme.js.map +1 -0
- package/dist/components/quick-actions/add-form.d.ts +44 -0
- package/dist/components/quick-actions/add-form.d.ts.map +1 -0
- package/dist/components/quick-actions/add-form.js +32 -0
- package/dist/components/quick-actions/add-form.js.map +1 -0
- package/dist/components/quick-actions/add-modal.d.ts +7 -0
- package/dist/components/quick-actions/add-modal.d.ts.map +1 -1
- package/dist/components/quick-actions/add-modal.js +23 -20
- package/dist/components/quick-actions/add-modal.js.map +1 -1
- package/dist/components/quick-actions/search-modal.d.ts.map +1 -1
- package/dist/components/quick-actions/search-modal.js +8 -5
- package/dist/components/quick-actions/search-modal.js.map +1 -1
- package/dist/components/quick-actions/streaming-modal.d.ts +6 -0
- package/dist/components/quick-actions/streaming-modal.d.ts.map +1 -1
- package/dist/components/quick-actions/streaming-modal.js +53 -18
- package/dist/components/quick-actions/streaming-modal.js.map +1 -1
- package/dist/components/quick-actions/streaming-output.d.ts +38 -0
- package/dist/components/quick-actions/streaming-output.d.ts.map +1 -0
- package/dist/components/quick-actions/streaming-output.js +22 -0
- package/dist/components/quick-actions/streaming-output.js.map +1 -0
- package/dist/components/quick-actions/whatsup-modal.d.ts +5 -0
- package/dist/components/quick-actions/whatsup-modal.d.ts.map +1 -1
- package/dist/components/quick-actions/whatsup-modal.js +51 -10
- package/dist/components/quick-actions/whatsup-modal.js.map +1 -1
- package/dist/components/settings/devices-agents-tab.d.ts +6 -1
- package/dist/components/settings/devices-agents-tab.d.ts.map +1 -1
- package/dist/components/settings/devices-agents-tab.js +55 -20
- package/dist/components/settings/devices-agents-tab.js.map +1 -1
- package/dist/components/settings/models-list.d.ts +39 -0
- package/dist/components/settings/models-list.d.ts.map +1 -0
- package/dist/components/settings/models-list.js +72 -0
- package/dist/components/settings/models-list.js.map +1 -0
- package/dist/components/settings/models-tab.d.ts +4 -0
- package/dist/components/settings/models-tab.d.ts.map +1 -1
- package/dist/components/settings/models-tab.js +52 -102
- package/dist/components/settings/models-tab.js.map +1 -1
- package/dist/components/settings/one-time-agent-credential.js +1 -1
- package/dist/components/settings/one-time-agent-credential.js.map +1 -1
- package/dist/components/settings/passkey-list.d.ts +35 -0
- package/dist/components/settings/passkey-list.d.ts.map +1 -0
- package/dist/components/settings/passkey-list.js +34 -0
- package/dist/components/settings/passkey-list.js.map +1 -0
- package/dist/components/settings/passkey-tab.d.ts +3 -0
- package/dist/components/settings/passkey-tab.d.ts.map +1 -1
- package/dist/components/settings/passkey-tab.js +53 -45
- package/dist/components/settings/passkey-tab.js.map +1 -1
- package/dist/components/settings/pi-accounts-list.d.ts +27 -0
- package/dist/components/settings/pi-accounts-list.d.ts.map +1 -0
- package/dist/components/settings/pi-accounts-list.js +15 -0
- package/dist/components/settings/pi-accounts-list.js.map +1 -0
- package/dist/components/settings/pi-accounts.d.ts +3 -0
- package/dist/components/settings/pi-accounts.d.ts.map +1 -1
- package/dist/components/settings/pi-accounts.js +73 -55
- package/dist/components/settings/pi-accounts.js.map +1 -1
- package/dist/components/settings/principal-list.d.ts +37 -0
- package/dist/components/settings/principal-list.d.ts.map +1 -0
- package/dist/components/settings/principal-list.js +18 -0
- package/dist/components/settings/principal-list.js.map +1 -0
- package/dist/components/settings/settings-panel.d.ts +10 -3
- package/dist/components/settings/settings-panel.d.ts.map +1 -1
- package/dist/components/settings/settings-panel.js +71 -10
- package/dist/components/settings/settings-panel.js.map +1 -1
- package/dist/components/settings/skills-list.d.ts +53 -0
- package/dist/components/settings/skills-list.d.ts.map +1 -0
- package/dist/components/settings/skills-list.js +28 -0
- package/dist/components/settings/skills-list.js.map +1 -0
- package/dist/components/settings/skills-tab.d.ts.map +1 -1
- package/dist/components/settings/skills-tab.js +65 -38
- package/dist/components/settings/skills-tab.js.map +1 -1
- package/dist/components/settings/tool-permissions-list.d.ts +18 -0
- package/dist/components/settings/tool-permissions-list.d.ts.map +1 -0
- package/dist/components/settings/tool-permissions-list.js +6 -0
- package/dist/components/settings/tool-permissions-list.js.map +1 -0
- package/dist/components/settings/tool-permissions.d.ts +2 -1
- package/dist/components/settings/tool-permissions.d.ts.map +1 -1
- package/dist/components/settings/tool-permissions.js +33 -16
- package/dist/components/settings/tool-permissions.js.map +1 -1
- package/dist/components/settings/web-search-chain.d.ts +41 -0
- package/dist/components/settings/web-search-chain.d.ts.map +1 -0
- package/dist/components/settings/web-search-chain.js +47 -0
- package/dist/components/settings/web-search-chain.js.map +1 -0
- package/dist/components/settings/web-search-settings.d.ts +4 -7
- package/dist/components/settings/web-search-settings.d.ts.map +1 -1
- package/dist/components/settings/web-search-settings.js +54 -76
- package/dist/components/settings/web-search-settings.js.map +1 -1
- package/dist/components/share/share-menu.d.ts.map +1 -1
- package/dist/components/share/share-menu.js +24 -4
- package/dist/components/share/share-menu.js.map +1 -1
- package/dist/components/voice/dictation-sheet.js +3 -3
- package/dist/components/voice/dictation-sheet.js.map +1 -1
- package/dist/components/voice/mic-button.js +1 -1
- package/dist/components/voice/mic-button.js.map +1 -1
- package/dist/components/voice/review-card.js +1 -1
- package/dist/components/voice/review-card.js.map +1 -1
- package/dist/config.d.ts +5 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +15 -5
- package/dist/config.js.map +1 -1
- package/dist/connection.d.ts +12 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/connection.js +421 -0
- package/dist/connection.js.map +1 -0
- package/dist/default-root.d.ts +3 -0
- package/dist/default-root.d.ts.map +1 -0
- package/dist/default-root.js +16 -0
- package/dist/default-root.js.map +1 -0
- package/dist/hooks/use-color-scheme.d.ts +14 -0
- package/dist/hooks/use-color-scheme.d.ts.map +1 -0
- package/dist/hooks/use-color-scheme.js +37 -0
- package/dist/hooks/use-color-scheme.js.map +1 -0
- package/dist/hooks/use-fine-pointer.d.ts +12 -0
- package/dist/hooks/use-fine-pointer.d.ts.map +1 -0
- package/dist/hooks/use-fine-pointer.js +15 -0
- package/dist/hooks/use-fine-pointer.js.map +1 -0
- package/dist/hooks/use-hash-routes.d.ts.map +1 -1
- package/dist/hooks/use-hash-routes.js +4 -2
- package/dist/hooks/use-hash-routes.js.map +1 -1
- package/dist/hooks/use-media-query.d.ts +9 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +38 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-share-intake.d.ts.map +1 -1
- package/dist/hooks/use-share-intake.js +37 -12
- package/dist/hooks/use-share-intake.js.map +1 -1
- package/dist/hooks/use-vpn-status.d.ts.map +1 -1
- package/dist/hooks/use-vpn-status.js +17 -18
- package/dist/hooks/use-vpn-status.js.map +1 -1
- package/dist/hooks/use-websocket.d.ts +5 -24
- package/dist/hooks/use-websocket.d.ts.map +1 -1
- package/dist/hooks/use-websocket.js +11 -384
- package/dist/hooks/use-websocket.js.map +1 -1
- package/dist/hooks/websocket-handlers/activity.d.ts +2 -2
- package/dist/hooks/websocket-handlers/activity.d.ts.map +1 -1
- package/dist/hooks/websocket-handlers/activity.js +4 -5
- package/dist/hooks/websocket-handlers/activity.js.map +1 -1
- package/dist/hooks/websocket-handlers/chat.d.ts +1 -0
- package/dist/hooks/websocket-handlers/chat.d.ts.map +1 -1
- package/dist/hooks/websocket-handlers/chat.js +28 -6
- package/dist/hooks/websocket-handlers/chat.js.map +1 -1
- package/dist/hooks/websocket-handlers/connection.d.ts.map +1 -1
- package/dist/hooks/websocket-handlers/connection.js +4 -6
- package/dist/hooks/websocket-handlers/connection.js.map +1 -1
- package/dist/hooks/websocket-handlers/mask.d.ts +1 -1
- package/dist/hooks/websocket-handlers/mask.d.ts.map +1 -1
- package/dist/hooks/websocket-handlers/mask.js +2 -3
- package/dist/hooks/websocket-handlers/mask.js.map +1 -1
- package/dist/hooks/websocket-handlers/provider.d.ts.map +1 -1
- package/dist/hooks/websocket-handlers/provider.js +4 -6
- package/dist/hooks/websocket-handlers/provider.js.map +1 -1
- package/dist/hooks/websocket-handlers/types.d.ts +6 -2
- package/dist/hooks/websocket-handlers/types.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/api-client.d.ts +289 -0
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +243 -224
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/backend.d.ts +19 -2
- package/dist/lib/backend.d.ts.map +1 -1
- package/dist/lib/backend.js +15 -9
- package/dist/lib/backend.js.map +1 -1
- package/dist/lib/diff.d.ts +8 -10
- package/dist/lib/diff.d.ts.map +1 -1
- package/dist/lib/diff.js +26 -53
- package/dist/lib/diff.js.map +1 -1
- package/dist/lib/light-dark.d.ts +37 -0
- package/dist/lib/light-dark.d.ts.map +1 -0
- package/dist/lib/light-dark.js +83 -0
- package/dist/lib/light-dark.js.map +1 -0
- package/dist/lib/mermaid-theme.d.ts +7 -2
- package/dist/lib/mermaid-theme.d.ts.map +1 -1
- package/dist/lib/mermaid-theme.js +125 -203
- package/dist/lib/mermaid-theme.js.map +1 -1
- package/dist/lib/passkeys.d.ts +6 -3
- package/dist/lib/passkeys.d.ts.map +1 -1
- package/dist/lib/passkeys.js +10 -4
- package/dist/lib/passkeys.js.map +1 -1
- package/dist/lib/push-registration.d.ts +4 -1
- package/dist/lib/push-registration.d.ts.map +1 -1
- package/dist/lib/push-registration.js +20 -2
- package/dist/lib/push-registration.js.map +1 -1
- package/dist/lib/share-intake.d.ts +2 -1
- package/dist/lib/share-intake.d.ts.map +1 -1
- package/dist/lib/share-intake.js +3 -3
- package/dist/lib/share-intake.js.map +1 -1
- package/dist/lib/share.d.ts +4 -3
- package/dist/lib/share.d.ts.map +1 -1
- package/dist/lib/share.js +6 -7
- package/dist/lib/share.js.map +1 -1
- package/dist/lib/single-key.d.ts +30 -0
- package/dist/lib/single-key.d.ts.map +1 -0
- package/dist/lib/single-key.js +45 -0
- package/dist/lib/single-key.js.map +1 -0
- package/dist/lib/tool-names.d.ts +8 -6
- package/dist/lib/tool-names.d.ts.map +1 -1
- package/dist/lib/tool-names.js +17 -7
- package/dist/lib/tool-names.js.map +1 -1
- package/dist/root-context.d.ts +229 -0
- package/dist/root-context.d.ts.map +1 -0
- package/dist/root-context.js +33 -0
- package/dist/root-context.js.map +1 -0
- package/dist/root.d.ts +38 -0
- package/dist/root.d.ts.map +1 -0
- package/dist/root.js +47 -0
- package/dist/root.js.map +1 -0
- package/dist/stores/activity-state.d.ts +29 -0
- package/dist/stores/activity-state.d.ts.map +1 -0
- package/dist/stores/activity-state.js +282 -0
- package/dist/stores/activity-state.js.map +1 -0
- package/dist/stores/activity-store.d.ts +10 -41
- package/dist/stores/activity-store.d.ts.map +1 -1
- package/dist/stores/activity-store.js +9 -271
- package/dist/stores/activity-store.js.map +1 -1
- package/dist/stores/chat-state.d.ts +233 -0
- package/dist/stores/chat-state.d.ts.map +1 -0
- package/dist/stores/chat-state.js +477 -0
- package/dist/stores/chat-state.js.map +1 -0
- package/dist/stores/chat-store.d.ts +4 -162
- package/dist/stores/chat-store.d.ts.map +1 -1
- package/dist/stores/chat-store.js +7 -418
- package/dist/stores/chat-store.js.map +1 -1
- package/dist/stores/connection-state.d.ts +40 -0
- package/dist/stores/connection-state.d.ts.map +1 -0
- package/dist/stores/connection-state.js +30 -0
- package/dist/stores/connection-state.js.map +1 -0
- package/dist/stores/connection-store.d.ts +4 -40
- package/dist/stores/connection-store.d.ts.map +1 -1
- package/dist/stores/connection-store.js +7 -27
- package/dist/stores/connection-store.js.map +1 -1
- package/dist/stores/create-stores.d.ts +23 -0
- package/dist/stores/create-stores.d.ts.map +1 -0
- package/dist/stores/create-stores.js +28 -0
- package/dist/stores/create-stores.js.map +1 -0
- package/dist/stores/file-state.d.ts +53 -0
- package/dist/stores/file-state.d.ts.map +1 -0
- package/dist/stores/file-state.js +341 -0
- package/dist/stores/file-state.js.map +1 -0
- package/dist/stores/file-store.d.ts +4 -52
- package/dist/stores/file-store.d.ts.map +1 -1
- package/dist/stores/file-store.js +7 -336
- package/dist/stores/file-store.js.map +1 -1
- package/dist/stores/graph-state.d.ts +95 -0
- package/dist/stores/graph-state.d.ts.map +1 -0
- package/dist/stores/graph-state.js +252 -0
- package/dist/stores/graph-state.js.map +1 -0
- package/dist/stores/graph-store.d.ts +7 -83
- package/dist/stores/graph-store.d.ts.map +1 -1
- package/dist/stores/graph-store.js +8 -249
- package/dist/stores/graph-store.js.map +1 -1
- package/dist/stores/mask-state.d.ts +21 -0
- package/dist/stores/mask-state.d.ts.map +1 -0
- package/dist/stores/mask-state.js +9 -0
- package/dist/stores/mask-state.js.map +1 -0
- package/dist/stores/mask-store.d.ts +4 -21
- package/dist/stores/mask-store.d.ts.map +1 -1
- package/dist/stores/mask-store.js +7 -6
- package/dist/stores/mask-store.js.map +1 -1
- package/dist/stores/principal-state.d.ts +16 -0
- package/dist/stores/principal-state.d.ts.map +1 -0
- package/dist/stores/principal-state.js +31 -0
- package/dist/stores/principal-state.js.map +1 -0
- package/dist/stores/principal-store.d.ts +4 -15
- package/dist/stores/principal-store.d.ts.map +1 -1
- package/dist/stores/principal-store.js +7 -28
- package/dist/stores/principal-store.js.map +1 -1
- package/dist/stores/provider-state.d.ts +24 -0
- package/dist/stores/provider-state.d.ts.map +1 -0
- package/dist/stores/provider-state.js +68 -0
- package/dist/stores/provider-state.js.map +1 -0
- package/dist/stores/provider-store.d.ts +4 -23
- package/dist/stores/provider-store.d.ts.map +1 -1
- package/dist/stores/provider-store.js +7 -64
- package/dist/stores/provider-store.js.map +1 -1
- package/dist/stores/share-state.d.ts +29 -0
- package/dist/stores/share-state.d.ts.map +1 -0
- package/dist/stores/share-state.js +21 -0
- package/dist/stores/share-state.js.map +1 -0
- package/dist/stores/share-store.d.ts +4 -28
- package/dist/stores/share-store.d.ts.map +1 -1
- package/dist/stores/share-store.js +7 -18
- package/dist/stores/share-store.js.map +1 -1
- package/dist/stores/store-environment.d.ts +10 -0
- package/dist/stores/store-environment.d.ts.map +1 -0
- package/dist/stores/store-environment.js +2 -0
- package/dist/stores/store-environment.js.map +1 -0
- package/dist/stores/ui-state.d.ts +71 -0
- package/dist/stores/ui-state.d.ts.map +1 -0
- package/dist/stores/ui-state.js +58 -0
- package/dist/stores/ui-state.js.map +1 -0
- package/dist/stores/ui-store.d.ts +4 -45
- package/dist/stores/ui-store.d.ts.map +1 -1
- package/dist/stores/ui-store.js +7 -36
- package/dist/stores/ui-store.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +150 -97
- package/dist/voice/asr-clients.d.ts +2 -1
- package/dist/voice/asr-clients.d.ts.map +1 -1
- package/dist/voice/asr-clients.js +16 -17
- package/dist/voice/asr-clients.js.map +1 -1
- package/dist/voice/use-dictation.d.ts.map +1 -1
- package/dist/voice/use-dictation.js +12 -8
- package/dist/voice/use-dictation.js.map +1 -1
- package/dist/voice/voice-state.d.ts +25 -0
- package/dist/voice/voice-state.d.ts.map +1 -0
- package/dist/voice/voice-state.js +29 -0
- package/dist/voice/voice-state.js.map +1 -0
- package/dist/voice/voice-store.d.ts +4 -25
- package/dist/voice/voice-store.d.ts.map +1 -1
- package/dist/voice/voice-store.js +7 -26
- package/dist/voice/voice-store.js.map +1 -1
- package/package.json +3 -2
- package/src/components/activity/activity-page.tsx +341 -160
- package/src/components/activity/activity-run-detail.tsx +81 -47
- package/src/components/activity/activity-run-list.tsx +27 -59
- package/src/components/activity/activity-views.tsx +155 -0
- package/src/components/activity/approval-card.tsx +117 -0
- package/src/components/activity/digest-card.tsx +25 -61
- package/src/components/activity/digest-summary.tsx +52 -0
- package/src/components/activity/push-switch.tsx +62 -0
- package/src/components/activity/push-toggle.tsx +51 -81
- package/src/components/activity/span-bits.tsx +60 -7
- package/src/components/chat/ask-user-card.tsx +292 -356
- package/src/components/chat/ask-user-typed.ts +77 -0
- package/src/components/chat/brain-markdown-links.tsx +4 -4
- package/src/components/chat/brain-markdown.tsx +4 -2
- package/src/components/chat/chat-page.tsx +41 -11
- package/src/components/chat/composer-view.tsx +194 -0
- package/src/components/chat/composer.tsx +117 -296
- package/src/components/chat/markdown-content.tsx +53 -2
- package/src/components/chat/mermaid-block.tsx +13 -5
- package/src/components/chat/mermaid-share.ts +8 -7
- package/src/components/chat/mermaid-viewer.tsx +3 -1
- package/src/components/chat/message-bubble.tsx +78 -94
- package/src/components/chat/message-share.ts +7 -7
- package/src/components/chat/renderers/bind.tsx +94 -0
- package/src/components/chat/renderers/brain-ui-tools.tsx +56 -0
- package/src/components/chat/renderers/claude-tools.tsx +3 -2
- package/src/components/chat/renderers/index.ts +15 -10
- package/src/components/chat/session-drawer.tsx +41 -138
- package/src/components/chat/session-list.tsx +113 -0
- package/src/components/chat/share-block.tsx +16 -12
- package/src/components/chat/share-card.tsx +2 -2
- package/src/components/chat/subagent-view.tsx +4 -4
- package/src/components/chat/tool-call-timeline.tsx +75 -26
- package/src/components/chat/tool-cards/block-card.tsx +145 -0
- package/src/components/chat/tool-cards/image-mask-card.tsx +214 -0
- package/src/components/chat/tool-cards/location-card.tsx +159 -0
- package/src/components/chat/tool-views.tsx +30 -60
- package/src/components/chat/transcript-turn.tsx +108 -0
- package/src/components/chat/use-chat-commands.ts +14 -16
- package/src/components/chat/welcome-state.tsx +36 -91
- package/src/components/connectivity/connection-gate.tsx +32 -24
- package/src/components/connectivity/login-form.tsx +122 -0
- package/src/components/connectivity/login-screen.tsx +45 -100
- package/src/components/dev/share-harness.tsx +2 -2
- package/src/components/files/file-panel.tsx +168 -0
- package/src/components/files/file-tree-view.tsx +127 -0
- package/src/components/files/file-tree.tsx +55 -109
- package/src/components/files/file-viewer-binary.tsx +3 -2
- package/src/components/files/file-viewer-frame.tsx +113 -0
- package/src/components/files/file-viewer.tsx +40 -95
- package/src/components/files/frontmatter-chips.tsx +42 -0
- package/src/components/files/frontmatter-panel.tsx +6 -71
- package/src/components/files/staleness.ts +29 -0
- package/src/components/graph/graph-canvas.tsx +24 -1
- package/src/components/graph/graph-controls-column.tsx +92 -0
- package/src/components/graph/graph-controls.tsx +83 -127
- package/src/components/graph/graph-form.tsx +183 -0
- package/src/components/graph/graph-maintenance.tsx +9 -14
- package/src/components/graph/graph-node-rail.tsx +147 -0
- package/src/components/graph/graph-page.tsx +189 -49
- package/src/components/graph/graph-scene.tsx +200 -30
- package/src/components/graph/lib/graph-helpers.ts +65 -43
- package/src/components/graph/node-card.tsx +64 -0
- package/src/components/graph/node-popover.tsx +28 -117
- package/src/components/graph/use-graph-theme.ts +69 -32
- package/src/components/graph/use-node-actions.ts +56 -0
- package/src/components/images/image-share.ts +4 -2
- package/src/components/images/image-viewer.tsx +3 -1
- package/src/components/images/mask-editor.tsx +7 -4
- package/src/components/layout/app-shell.tsx +5 -1
- package/src/components/layout/desktop-palette.tsx +151 -0
- package/src/components/layout/key-cap.tsx +15 -0
- package/src/components/layout/mobile-tab-bar.tsx +80 -157
- package/src/components/layout/shortcut-switch.tsx +32 -0
- package/src/components/layout/side-rail.tsx +77 -150
- package/src/components/layout/slide-panel.tsx +49 -6
- package/src/components/layout/theme.tsx +67 -0
- package/src/components/quick-actions/add-form.tsx +196 -0
- package/src/components/quick-actions/add-modal.tsx +32 -153
- package/src/components/quick-actions/search-modal.tsx +15 -5
- package/src/components/quick-actions/streaming-modal.tsx +57 -72
- package/src/components/quick-actions/streaming-output.tsx +112 -0
- package/src/components/quick-actions/whatsup-modal.tsx +53 -59
- package/src/components/settings/devices-agents-tab.tsx +60 -152
- package/src/components/settings/models-list.tsx +299 -0
- package/src/components/settings/models-tab.tsx +63 -337
- package/src/components/settings/one-time-agent-credential.tsx +1 -1
- package/src/components/settings/passkey-list.tsx +201 -0
- package/src/components/settings/passkey-tab.tsx +53 -197
- package/src/components/settings/pi-accounts-list.tsx +128 -0
- package/src/components/settings/pi-accounts.tsx +71 -170
- package/src/components/settings/principal-list.tsx +172 -0
- package/src/components/settings/settings-panel.tsx +239 -25
- package/src/components/settings/skills-list.tsx +276 -0
- package/src/components/settings/skills-tab.tsx +82 -269
- package/src/components/settings/tool-permissions-list.tsx +54 -0
- package/src/components/settings/tool-permissions.tsx +27 -46
- package/src/components/settings/web-search-chain.tsx +300 -0
- package/src/components/settings/web-search-settings.tsx +58 -328
- package/src/components/share/share-menu.tsx +19 -4
- package/src/components/voice/dictation-sheet.tsx +5 -5
- package/src/components/voice/mic-button.tsx +1 -1
- package/src/components/voice/review-card.tsx +1 -1
- package/src/config.ts +21 -7
- package/src/connection.ts +443 -0
- package/src/default-root.ts +16 -0
- package/src/hooks/use-color-scheme.ts +36 -0
- package/src/hooks/use-fine-pointer.ts +15 -0
- package/src/hooks/use-hash-routes.ts +4 -2
- package/src/hooks/use-media-query.ts +35 -0
- package/src/hooks/use-share-intake.ts +32 -12
- package/src/hooks/use-vpn-status.ts +18 -17
- package/src/hooks/use-websocket.ts +12 -428
- package/src/hooks/websocket-handlers/activity.ts +4 -5
- package/src/hooks/websocket-handlers/chat.ts +28 -6
- package/src/hooks/websocket-handlers/connection.ts +4 -6
- package/src/hooks/websocket-handlers/mask.ts +2 -3
- package/src/hooks/websocket-handlers/provider.ts +4 -6
- package/src/hooks/websocket-handlers/types.ts +6 -2
- package/src/index.ts +7 -3
- package/src/lib/api-client.ts +426 -384
- package/src/lib/backend.ts +20 -10
- package/src/lib/diff.ts +28 -62
- package/src/lib/light-dark.ts +83 -0
- package/src/lib/mermaid-theme.ts +183 -214
- package/src/lib/passkeys.ts +12 -4
- package/src/lib/push-registration.ts +19 -2
- package/src/lib/share-intake.ts +6 -3
- package/src/lib/share.ts +7 -4
- package/src/lib/single-key.ts +47 -0
- package/src/lib/tool-names.ts +31 -8
- package/src/root-context.tsx +40 -0
- package/src/root.ts +83 -0
- package/src/stores/activity-state.ts +295 -0
- package/src/stores/activity-store.ts +11 -285
- package/src/stores/chat-state.ts +822 -0
- package/src/stores/chat-store.ts +11 -705
- package/src/stores/connection-state.ts +78 -0
- package/src/stores/connection-store.ts +11 -76
- package/src/stores/create-stores.ts +31 -0
- package/src/stores/file-state.ts +399 -0
- package/src/stores/file-store.ts +9 -390
- package/src/stores/graph-state.ts +368 -0
- package/src/stores/graph-store.ts +10 -355
- package/src/stores/mask-state.ts +30 -0
- package/src/stores/mask-store.ts +10 -27
- package/src/stores/principal-state.ts +42 -0
- package/src/stores/principal-store.ts +10 -37
- package/src/stores/provider-state.ts +103 -0
- package/src/stores/provider-store.ts +10 -95
- package/src/stores/share-state.ts +56 -0
- package/src/stores/share-store.ts +11 -54
- package/src/stores/store-environment.ts +10 -0
- package/src/stores/ui-state.ts +143 -0
- package/src/stores/ui-store.ts +11 -93
- package/src/styles.css +4 -1
- package/src/theme.css +150 -97
- package/src/voice/asr-clients.ts +17 -17
- package/src/voice/use-dictation.ts +11 -8
- package/src/voice/voice-state.ts +57 -0
- package/src/voice/voice-store.ts +11 -55
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mask-editor.js","sourceRoot":"","sources":["../../../src/components/images/mask-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"mask-editor.js","sourceRoot":"","sources":["../../../src/components/images/mask-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAsB1D,MAAM,UAAU,UAAU,CAAC,EACzB,QAAQ,EACR,QAAQ,GAIT;IACC,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAE3C,MAAM,SAAS,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC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E,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../src/components/layout/app-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAqB7D"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SideRail } from "./side-rail.js";
|
|
3
3
|
import { MobileTabBar } from "./mobile-tab-bar.js";
|
|
4
|
+
import { DesktopPalette } from "./desktop-palette.js";
|
|
4
5
|
import { useChatStore, activeChat } from "../../stores/chat-store.js";
|
|
5
6
|
import { cn } from "../../lib/utils.js";
|
|
6
7
|
import { OneTimeAgentCredentialDialog } from "../settings/one-time-agent-credential.js";
|
|
8
|
+
import { useApplyTheme } from "./theme.js";
|
|
7
9
|
export function AppShell({ children }) {
|
|
8
10
|
const isStreaming = useChatStore((s) => activeChat(s).isStreaming);
|
|
9
|
-
|
|
11
|
+
useApplyTheme();
|
|
12
|
+
return (_jsxs("div", { className: "flex h-[100dvh] bg-background text-foreground", children: [_jsx(SideRail, {}), _jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [_jsx("div", { className: cn("filament", isStreaming && "filament--active") }), _jsx("main", { className: "flex flex-1 flex-col overflow-hidden pb-16 tablet:pb-0", children: children })] }), _jsx(MobileTabBar, {}), _jsx(DesktopPalette, {}), _jsx(OneTimeAgentCredentialDialog, {})] }));
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=app-shell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.js","sourceRoot":"","sources":["../../../src/components/layout/app-shell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,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 -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ⌘K palette, on the kit's `CommandPalette` (D22: "SideRail + ⌘K
|
|
3
|
+
* palette" is the desktop's navigation). The kit draws the box, the real
|
|
4
|
+
* query input, the groups, the selected row and its key, and owns ↑↓,
|
|
5
|
+
* Home/End, ⏎ and esc on the rows; this file owns opening it, the query,
|
|
6
|
+
* and what the rows do.
|
|
7
|
+
*
|
|
8
|
+
* Groups are what ⏎ DOES (D37), not the app's feature areas. **Jump to**:
|
|
9
|
+
* the five destinations with their ⌘ keys printed, New chat and Sessions —
|
|
10
|
+
* they move you. **Ask**: Search the brain and Brain statistics — they
|
|
11
|
+
* answer something. **Run**: Sync (`effect: sync`, it writes the
|
|
12
|
+
* repository), the Daily briefing (a cost chip: spending is an effect even
|
|
13
|
+
* when nothing is written) and Add a note (bare — opening a form is not an
|
|
14
|
+
* effect; its submit carries the write). A command the host cannot serve
|
|
15
|
+
* right now is shown DISABLED with its reason, never omitted: dropping rows
|
|
16
|
+
* while the socket is down would teach that the palette's contents are a
|
|
17
|
+
* guess.
|
|
18
|
+
*
|
|
19
|
+
* The app has no cost estimate for the briefing, so its chip says `spends`
|
|
20
|
+
* rather than an invented figure — the design's `~$0.12` is an example.
|
|
21
|
+
*/
|
|
22
|
+
export declare function DesktopPalette(): import("react").JSX.Element | null;
|
|
23
|
+
//# sourceMappingURL=desktop-palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-palette.d.ts","sourceRoot":"","sources":["../../../src/components/layout/desktop-palette.tsx"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,uCA0H7B"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CommandPalette } from "@schlessera/brain-ui-kit";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { useUIStore } from "../../stores/ui-store.js";
|
|
5
|
+
import { useChatStore, activeChat } from "../../stores/chat-store.js";
|
|
6
|
+
import { useConnectionStore } from "../../stores/connection-store.js";
|
|
7
|
+
import { useChatCommands } from "../chat/use-chat-commands.js";
|
|
8
|
+
/**
|
|
9
|
+
* The ⌘K palette, on the kit's `CommandPalette` (D22: "SideRail + ⌘K
|
|
10
|
+
* palette" is the desktop's navigation). The kit draws the box, the real
|
|
11
|
+
* query input, the groups, the selected row and its key, and owns ↑↓,
|
|
12
|
+
* Home/End, ⏎ and esc on the rows; this file owns opening it, the query,
|
|
13
|
+
* and what the rows do.
|
|
14
|
+
*
|
|
15
|
+
* Groups are what ⏎ DOES (D37), not the app's feature areas. **Jump to**:
|
|
16
|
+
* the five destinations with their ⌘ keys printed, New chat and Sessions —
|
|
17
|
+
* they move you. **Ask**: Search the brain and Brain statistics — they
|
|
18
|
+
* answer something. **Run**: Sync (`effect: sync`, it writes the
|
|
19
|
+
* repository), the Daily briefing (a cost chip: spending is an effect even
|
|
20
|
+
* when nothing is written) and Add a note (bare — opening a form is not an
|
|
21
|
+
* effect; its submit carries the write). A command the host cannot serve
|
|
22
|
+
* right now is shown DISABLED with its reason, never omitted: dropping rows
|
|
23
|
+
* while the socket is down would teach that the palette's contents are a
|
|
24
|
+
* guess.
|
|
25
|
+
*
|
|
26
|
+
* The app has no cost estimate for the briefing, so its chip says `spends`
|
|
27
|
+
* rather than an invented figure — the design's `~$0.12` is an example.
|
|
28
|
+
*/
|
|
29
|
+
export function DesktopPalette() {
|
|
30
|
+
const [open, setOpen] = useState(false);
|
|
31
|
+
const [query, setQuery] = useState("");
|
|
32
|
+
const [selected, setSelected] = useState(0);
|
|
33
|
+
const boxRef = useRef(null);
|
|
34
|
+
const setActiveView = useUIStore((s) => s.setActiveView);
|
|
35
|
+
const toggleFilePanel = useUIStore((s) => s.toggleFilePanel);
|
|
36
|
+
const toggleSettingsPanel = useUIStore((s) => s.toggleSettingsPanel);
|
|
37
|
+
const setSessionPanelOpen = useUIStore((s) => s.setSessionPanelOpen);
|
|
38
|
+
const clearMessages = useChatStore((s) => s.clearMessages);
|
|
39
|
+
const isStreaming = useChatStore((s) => activeChat(s).isStreaming);
|
|
40
|
+
const connected = useConnectionStore((s) => s.wsStatus === "connected");
|
|
41
|
+
const runCommand = useChatCommands();
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (typeof window === "undefined")
|
|
44
|
+
return;
|
|
45
|
+
function onKey(e) {
|
|
46
|
+
if ((e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === "k") {
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
setOpen((v) => !v);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
window.addEventListener("keydown", onKey);
|
|
52
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
53
|
+
}, []);
|
|
54
|
+
function close() {
|
|
55
|
+
setOpen(false);
|
|
56
|
+
setQuery("");
|
|
57
|
+
setSelected(0);
|
|
58
|
+
}
|
|
59
|
+
function run(fn) {
|
|
60
|
+
return () => {
|
|
61
|
+
close();
|
|
62
|
+
fn();
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function inChat(fn) {
|
|
66
|
+
return run(() => {
|
|
67
|
+
setActiveView("chat");
|
|
68
|
+
fn();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// The reason a row cannot run right now, printed in the row rather than
|
|
72
|
+
// hiding it. Sync, the briefing and stats talk to the agent over the socket
|
|
73
|
+
// and need a quiet turn; search and add go over REST and always work.
|
|
74
|
+
const why = !connected ? "needs the host" : isStreaming ? "a turn is running" : undefined;
|
|
75
|
+
const jumpTo = [
|
|
76
|
+
{ icon: "brain", label: "Chat", tone: "amber", shortcut: "⌘1", onClick: run(() => setActiveView("chat")) },
|
|
77
|
+
{ icon: "resolved", label: "Actions", tone: "amber", shortcut: "⌘2", onClick: run(() => setActiveView("activity")) },
|
|
78
|
+
{ icon: "files", label: "Files", tone: "teal", shortcut: "⌘3", onClick: run(toggleFilePanel) },
|
|
79
|
+
{ icon: "graph", label: "Graph", tone: "purple", shortcut: "⌘4", onClick: run(() => setActiveView("graph")) },
|
|
80
|
+
{ icon: "settings", label: "Settings", tone: "neutral", shortcut: "⌘5", onClick: run(toggleSettingsPanel) },
|
|
81
|
+
{ icon: "compose", label: "New chat", tone: "amber", onClick: inChat(clearMessages) },
|
|
82
|
+
{ icon: "history", label: "Sessions", tone: "blue", onClick: inChat(() => setSessionPanelOpen(true)) },
|
|
83
|
+
];
|
|
84
|
+
const ask = [
|
|
85
|
+
{ icon: "search", label: "Search the brain", tone: "teal", onClick: inChat(() => runCommand("search")) },
|
|
86
|
+
{ icon: "ledger", label: "Brain statistics", tone: "neutral", why, onClick: inChat(() => runCommand("stats")) },
|
|
87
|
+
];
|
|
88
|
+
const runGroup = [
|
|
89
|
+
{ icon: "repeat", label: "Sync the brain", tone: "amber", effect: "sync", why, onClick: inChat(() => runCommand("sync")) },
|
|
90
|
+
{ icon: "sunrise", label: "Daily briefing", tone: "gold", cost: "spends", why, onClick: inChat(() => runCommand("whatsup")) },
|
|
91
|
+
{ icon: "add", label: "Add a note", tone: "teal", onClick: inChat(() => runCommand("add")) },
|
|
92
|
+
];
|
|
93
|
+
const q = query.trim().toLowerCase();
|
|
94
|
+
const groups = [
|
|
95
|
+
{ label: "Jump to", items: jumpTo },
|
|
96
|
+
{ label: "Ask", items: ask },
|
|
97
|
+
{ label: "Run", items: runGroup },
|
|
98
|
+
]
|
|
99
|
+
.map((g) => ({ ...g, items: q ? g.items.filter((it) => it.label.toLowerCase().includes(q)) : g.items }))
|
|
100
|
+
.filter((g) => g.items.length > 0);
|
|
101
|
+
const count = groups.reduce((n, g) => n + g.items.length, 0);
|
|
102
|
+
// The query input takes focus when the palette opens; ↓ from it lands on
|
|
103
|
+
// the selected row, where the kit's own keys take over.
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (!open)
|
|
106
|
+
return;
|
|
107
|
+
boxRef.current?.querySelector("input")?.focus();
|
|
108
|
+
}, [open]);
|
|
109
|
+
if (!open)
|
|
110
|
+
return null;
|
|
111
|
+
function onKeyDown(e) {
|
|
112
|
+
const target = e.target;
|
|
113
|
+
if (target.tagName !== "INPUT")
|
|
114
|
+
return;
|
|
115
|
+
if (e.key === "ArrowDown") {
|
|
116
|
+
e.preventDefault();
|
|
117
|
+
boxRef.current?.querySelector('[role="option"][tabindex="0"]')?.focus();
|
|
118
|
+
}
|
|
119
|
+
else if (e.key === "Enter") {
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
boxRef.current?.querySelector('[role="option"][tabindex="0"]')?.click();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return (_jsx("div", { className: "fixed inset-0 z-50 hidden tablet:block bg-black/60", onMouseDown: (e) => {
|
|
125
|
+
if (e.target === e.currentTarget)
|
|
126
|
+
close();
|
|
127
|
+
}, children: _jsx("div", { ref: boxRef, className: "mx-auto mt-[110px] w-[560px] max-w-[calc(100vw-2rem)]", onKeyDown: onKeyDown, children: _jsx(CommandPalette, { query: query, onQueryChange: (value) => {
|
|
128
|
+
setQuery(value);
|
|
129
|
+
setSelected(0);
|
|
130
|
+
}, groups: groups, selected: Math.min(selected, Math.max(0, count - 1)), footHint: "\u2191\u2193 move \u00B7 \u23CE run \u00B7 esc close", footMeta: count === 1 ? "1 command" : `${count} commands`, onSelect: setSelected, onClose: close }) }) }));
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=desktop-palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-palette.js","sourceRoot":"","sources":["../../../src/components/layout/desktop-palette.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAuC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAA4C,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC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;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YAC7B,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,MAAM,CAAC,OAAO,EAAE,aAAa,CAAc,+BAA+B,CAAC,EAAE,KAAK,EAAE,CAAC;QACvF,CAAC;IACH,CAAC;IAED,OAAO,CACL,cACE,SAAS,EAAC,oDAAoD,EAC9D,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;YACjB,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,aAAa;gBAAE,KAAK,EAAE,CAAC;QAC5C,CAAC,YAED,cAAK,GAAG,EAAE,MAAM,EAAE,SAAS,EAAC,uDAAuD,EAAC,SAAS,EAAE,SAAS,YACtG,KAAC,cAAc,IACb,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;oBACvB,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAChB,WAAW,CAAC,CAAC,CAAC,CAAC;gBACjB,CAAC,EACD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,EACpD,QAAQ,EAAC,sDAA6B,EACtC,QAAQ,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,WAAW,EACzD,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,KAAK,GACd,GACE,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The printed key on the button it belongs to — "every shortcut is printed
|
|
3
|
+
* where it applies, never hidden in help" (D36). Decorative to assistive
|
|
4
|
+
* tech: the key is a sighted shortcut, the button's name is the action.
|
|
5
|
+
*/
|
|
6
|
+
export declare function KeyCap({ children }: {
|
|
7
|
+
children: string;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=key-cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-cap.d.ts","sourceRoot":"","sources":["../../../src/components/layout/key-cap.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,+BASxD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The printed key on the button it belongs to — "every shortcut is printed
|
|
4
|
+
* where it applies, never hidden in help" (D36). Decorative to assistive
|
|
5
|
+
* tech: the key is a sighted shortcut, the button's name is the action.
|
|
6
|
+
*/
|
|
7
|
+
export function KeyCap({ children }) {
|
|
8
|
+
return (_jsx("span", { "aria-hidden": "true", className: "ml-0.5 rounded border border-current/30 px-1 font-[family-name:var(--font-mono)] text-[9.5px] leading-[1.4] opacity-70", children: children }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=key-cap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-cap.js","sourceRoot":"","sources":["../../../src/components/layout/key-cap.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,QAAQ,EAAwB;IACvD,OAAO,CACL,8BACc,MAAM,EAClB,SAAS,EAAC,wHAAwH,YAEjI,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The phone's bottom navigation, on the kit's `TabBar`. The five slots are
|
|
3
|
+
* the desktop rail's five destinations with Settings folded into More (D37):
|
|
4
|
+
* Chat · Actions · Files · Graph · More. Six into five does not go, and the
|
|
5
|
+
* one you live in least is the one to fold — never one of the four you live
|
|
6
|
+
* in. New chat is not a slot: a tab is a place and starting a chat is an
|
|
7
|
+
* act, so it is the Chat header's primary action and a ⌘K command.
|
|
8
|
+
*
|
|
9
|
+
* More is the kit `BottomSheet`, docked over a scrim, holding Settings and
|
|
10
|
+
* the acts — Sessions, Sync, Daily briefing, Brain statistics — as kit
|
|
11
|
+
* `ListRow`s. The sheet is a sibling of the bar rather than a child of the
|
|
12
|
+
* More slot, because a kit tab is a leaf and cannot host it.
|
|
13
|
+
*/
|
|
1
14
|
export declare function MobileTabBar(): import("react").JSX.Element;
|
|
2
15
|
//# sourceMappingURL=mobile-tab-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-tab-bar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/mobile-tab-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mobile-tab-bar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/mobile-tab-bar.tsx"],"names":[],"mappings":"AAQA;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,gCAqF3B"}
|
|
@@ -1,70 +1,81 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { BottomSheet, ListRow, TabBar } from "@schlessera/brain-ui-kit";
|
|
4
4
|
import { useUIStore } from "../../stores/ui-store.js";
|
|
5
|
-
import { useChatStore } from "../../stores/chat-store.js";
|
|
5
|
+
import { useChatStore, activeChat, pendingApprovals } from "../../stores/chat-store.js";
|
|
6
6
|
import { useActivityStore } from "../../stores/activity-store.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useConnectionStore } from "../../stores/connection-store.js";
|
|
8
|
+
import { useChatCommands } from "../chat/use-chat-commands.js";
|
|
9
|
+
/**
|
|
10
|
+
* The phone's bottom navigation, on the kit's `TabBar`. The five slots are
|
|
11
|
+
* the desktop rail's five destinations with Settings folded into More (D37):
|
|
12
|
+
* Chat · Actions · Files · Graph · More. Six into five does not go, and the
|
|
13
|
+
* one you live in least is the one to fold — never one of the four you live
|
|
14
|
+
* in. New chat is not a slot: a tab is a place and starting a chat is an
|
|
15
|
+
* act, so it is the Chat header's primary action and a ⌘K command.
|
|
16
|
+
*
|
|
17
|
+
* More is the kit `BottomSheet`, docked over a scrim, holding Settings and
|
|
18
|
+
* the acts — Sessions, Sync, Daily briefing, Brain statistics — as kit
|
|
19
|
+
* `ListRow`s. The sheet is a sibling of the bar rather than a child of the
|
|
20
|
+
* More slot, because a kit tab is a leaf and cannot host it.
|
|
21
|
+
*/
|
|
9
22
|
export function MobileTabBar() {
|
|
10
23
|
const activeView = useUIStore((s) => s.activeView);
|
|
11
24
|
const setActiveView = useUIStore((s) => s.setActiveView);
|
|
12
|
-
const toggleSessionPanel = useUIStore((s) => s.toggleSessionPanel);
|
|
13
|
-
const toggleSyncPanel = useUIStore((s) => s.toggleSyncPanel);
|
|
14
25
|
const toggleFilePanel = useUIStore((s) => s.toggleFilePanel);
|
|
15
|
-
const
|
|
16
|
-
const
|
|
26
|
+
const setSessionPanelOpen = useUIStore((s) => s.setSessionPanelOpen);
|
|
27
|
+
const setSettingsPanelOpen = useUIStore((s) => s.setSettingsPanelOpen);
|
|
17
28
|
const inboxCount = useActivityStore((s) => s.inbox.length);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
toggle();
|
|
24
|
-
};
|
|
25
|
-
}
|
|
29
|
+
const approvalCount = useChatStore((s) => pendingApprovals(s).length);
|
|
30
|
+
const isStreaming = useChatStore((s) => activeChat(s).isStreaming);
|
|
31
|
+
const connected = useConnectionStore((s) => s.wsStatus === "connected");
|
|
32
|
+
const runCommand = useChatCommands();
|
|
33
|
+
const needsYou = inboxCount + approvalCount;
|
|
26
34
|
const [moreOpen, setMoreOpen] = useState(false);
|
|
27
35
|
const moreRef = useRef(null);
|
|
28
36
|
useEffect(() => {
|
|
29
37
|
if (!moreOpen)
|
|
30
38
|
return;
|
|
31
|
-
function onDocClick(e) {
|
|
32
|
-
if (!moreRef.current?.contains(e.target))
|
|
33
|
-
setMoreOpen(false);
|
|
34
|
-
}
|
|
35
39
|
function onKey(e) {
|
|
36
40
|
if (e.key === "Escape")
|
|
37
41
|
setMoreOpen(false);
|
|
38
42
|
}
|
|
39
|
-
document.addEventListener("mousedown", onDocClick);
|
|
40
43
|
document.addEventListener("keydown", onKey);
|
|
44
|
+
// The sheet's first row takes focus; the More slot gets it back on close.
|
|
45
|
+
moreRef.current?.querySelector('[role="button"]')?.focus();
|
|
46
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
47
|
+
}, [moreOpen]);
|
|
48
|
+
/** An act from the sheet: close it, land on chat, run. */
|
|
49
|
+
function act(fn) {
|
|
41
50
|
return () => {
|
|
42
|
-
|
|
43
|
-
|
|
51
|
+
setMoreOpen(false);
|
|
52
|
+
setActiveView("chat");
|
|
53
|
+
fn();
|
|
44
54
|
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
55
|
+
}
|
|
56
|
+
const items = [
|
|
57
|
+
{ icon: "brain", label: "Chat", onClick: () => setActiveView("chat") },
|
|
58
|
+
{
|
|
59
|
+
icon: "resolved",
|
|
60
|
+
label: "Actions",
|
|
61
|
+
badge: needsYou > 0 ? (needsYou > 9 ? "9+" : String(needsYou)) : undefined,
|
|
62
|
+
onClick: () => setActiveView("activity"),
|
|
63
|
+
},
|
|
64
|
+
{ icon: "files", label: "Files", onClick: toggleFilePanel },
|
|
65
|
+
{ icon: "graph", label: "Graph", onClick: () => setActiveView("graph") },
|
|
66
|
+
{ icon: "more", label: "More", onClick: () => setMoreOpen((v) => !v) },
|
|
67
|
+
];
|
|
68
|
+
// The amber slot. -1 is "none", which the kit renders as no active item
|
|
69
|
+
// and still keeps the bar reachable (its stop falls back to the first
|
|
70
|
+
// eligible slot).
|
|
71
|
+
const active = moreOpen ? 4 : activeView === "chat" ? 0 : activeView === "activity" ? 1 : activeView === "graph" ? 3 : -1;
|
|
72
|
+
const quiet = connected && !isStreaming;
|
|
73
|
+
return (_jsxs("nav", { "aria-label": "Primary", className: "tablet:hidden fixed bottom-0 inset-x-0 z-30 pb-[env(safe-area-inset-bottom)]",
|
|
74
|
+
// The safe-area strip below the bar takes the bar's own ground, from the
|
|
75
|
+
// kit's token so it follows the theme.
|
|
76
|
+
style: { background: "var(--bk-color-surface)" }, children: [moreOpen && (_jsx("div", { className: "fixed inset-0 z-40 bg-black/60", onMouseDown: (e) => {
|
|
77
|
+
if (e.target === e.currentTarget)
|
|
78
|
+
setMoreOpen(false);
|
|
79
|
+
}, children: _jsx("div", { ref: moreRef, role: "dialog", "aria-label": "More", className: "absolute inset-x-0 bottom-0", children: _jsx(BottomSheet, { title: "More", subtitle: "Settings, and the things you run rather than visit.", docked: true, children: _jsxs("div", { className: "flex flex-col", children: [_jsx(ListRow, { variant: "group", icon: "settings", iconTone: "neutral", title: "Settings", chevron: true, onClick: () => { setMoreOpen(false); setSettingsPanelOpen(true); } }), _jsx(ListRow, { variant: "group", icon: "history", iconTone: "blue", title: "Sessions", subtitle: "Resume an earlier conversation", chevron: true, onClick: act(() => setSessionPanelOpen(true)) }), _jsx(ListRow, { variant: "group", icon: "repeat", iconTone: "amber", title: "Sync the brain", subtitle: quiet ? "Pull and push the repository" : "needs the host", value: quiet ? "sync" : undefined, valueTone: "amber", onClick: quiet ? act(() => runCommand("sync")) : undefined }), _jsx(ListRow, { variant: "group", icon: "sunrise", iconTone: "gold", title: "Daily briefing", subtitle: quiet ? "What happened since you looked" : "needs the host", onClick: quiet ? act(() => runCommand("whatsup")) : undefined }), _jsx(ListRow, { variant: "group", icon: "ledger", iconTone: "neutral", title: "Brain statistics", subtitle: quiet ? "Documents, tags and links" : "needs the host", last: true, onClick: quiet ? act(() => runCommand("stats")) : undefined })] }) }) }) })), _jsx(TabBar, { items: items, active: active })] }));
|
|
69
80
|
}
|
|
70
81
|
//# sourceMappingURL=mobile-tab-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-tab-bar.js","sourceRoot":"","sources":["../../../src/components/layout/mobile-tab-bar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"mobile-tab-bar.js","sourceRoot":"","sources":["../../../src/components/layout/mobile-tab-bar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAgB,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,a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AAG,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IACrN,GACM,GACV,GACF,CACP,EACD,KAAC,MAAM,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI,IACpC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The off switch for single-key shortcuts (D36, D37). WCAG 2.1.4 asks that
|
|
3
|
+
* a single-character shortcut can be turned off, remapped, or made active
|
|
4
|
+
* only on focus; the design chose focus scope AND an off switch, because a
|
|
5
|
+
* reader whose screen reader or speech input types letters into a focused
|
|
6
|
+
* card still needs the switch. Modifier shortcuts are not governed by it.
|
|
7
|
+
*
|
|
8
|
+
* Drawn as D5 draws it: a group row — icon, title, the mono hint as the
|
|
9
|
+
* subtitle — with the kit `Toggle` trailing, named by the row's title. The
|
|
10
|
+
* kit `ListRow`'s own toggle is decorative, so the row is composed here.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ShortcutSwitch(): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=shortcut-switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-switch.d.ts","sourceRoot":"","sources":["../../../src/components/layout/shortcut-switch.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,gCAgB7B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Icon, Toggle } from "@schlessera/brain-ui-kit";
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import { useUIStore } from "../../stores/ui-store.js";
|
|
5
|
+
/**
|
|
6
|
+
* The off switch for single-key shortcuts (D36, D37). WCAG 2.1.4 asks that
|
|
7
|
+
* a single-character shortcut can be turned off, remapped, or made active
|
|
8
|
+
* only on focus; the design chose focus scope AND an off switch, because a
|
|
9
|
+
* reader whose screen reader or speech input types letters into a focused
|
|
10
|
+
* card still needs the switch. Modifier shortcuts are not governed by it.
|
|
11
|
+
*
|
|
12
|
+
* Drawn as D5 draws it: a group row — icon, title, the mono hint as the
|
|
13
|
+
* subtitle — with the kit `Toggle` trailing, named by the row's title. The
|
|
14
|
+
* kit `ListRow`'s own toggle is decorative, so the row is composed here.
|
|
15
|
+
*/
|
|
16
|
+
export function ShortcutSwitch() {
|
|
17
|
+
const on = useUIStore((s) => s.singleKeyShortcuts);
|
|
18
|
+
const set = useUIStore((s) => s.setSingleKeyShortcuts);
|
|
19
|
+
const id = useId();
|
|
20
|
+
return (_jsxs("div", { className: "flex items-center gap-3 px-3 py-3", children: [_jsx(Icon, { icon: "capability", size: 17, color: "var(--bk-amber-ink)" }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { id: id, className: "block text-[12.5px] font-semibold text-foreground", children: "Single-key shortcuts" }), _jsx("span", { className: "mt-0.5 block font-[family-name:var(--font-mono)] text-[10px] text-muted-foreground", children: "a d on a focused approval \u00B7 j k in a list" })] }), _jsx(Toggle, { on: on, tone: "amber", labelledBy: id, onClick: () => set(!on) })] }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=shortcut-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-switch.js","sourceRoot":"","sources":["../../../src/components/layout/shortcut-switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IACnD,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IACvD,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACnB,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,qBAAqB,GAAG,EAChE,gBAAM,SAAS,EAAC,gBAAgB,aAC9B,eAAM,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,mDAAmD,qCAA4B,EACvG,eAAM,SAAS,EAAC,oFAAoF,+DAE7F,IACF,EACP,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,UAAU,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAI,IACpE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The desktop navigation, on the kit's `SideRail`. The kit owns the rail —
|
|
3
|
+
* the one roving tab stop, the amber destination, the badge, the collapsed
|
|
4
|
+
* and expanded widths; this file owns what the destinations DO, which of
|
|
5
|
+
* them is "here", and the ⌘1–⌘5 keys the design prints beside them (D36:
|
|
6
|
+
* anything global takes a modifier).
|
|
7
|
+
*
|
|
8
|
+
* The five destinations are the design's (D37): Chat · Actions · Files ·
|
|
9
|
+
* Graph · Settings, the same five and the same order as the phone bar.
|
|
10
|
+
* Activity is not among them — "what needs me" and "what has been happening"
|
|
11
|
+
* are two lenses on one queue, so the Actions pane carries a filter and the
|
|
12
|
+
* badge counts what needs you: pending approvals plus the inbox. The acts
|
|
13
|
+
* the old rail carried (New chat, Sessions, Sync, the briefing) live in the
|
|
14
|
+
* ⌘K palette and the Chat header.
|
|
15
|
+
*
|
|
16
|
+
* Widths follow D22's ladder: the phone bar to 479px, this rail collapsed
|
|
17
|
+
* to 60px from 480 (`tablet:`), expanded to 208px from 900 (`laptop:`). The
|
|
18
|
+
* rail appears at the breakpoint the phone bar disappears at, so the two
|
|
19
|
+
* never show together. Width is not a keyboard, though: a tablet in
|
|
20
|
+
* landscape crosses `tablet:` with nothing to press ⌘ on, so the caps are
|
|
21
|
+
* printed only while a fine pointer is present (#86). The bindings below
|
|
22
|
+
* stay registered either way — a paired keyboard fires them even if the
|
|
23
|
+
* query stays coarse.
|
|
24
|
+
*
|
|
25
|
+
* The connection status takes the wordmark's line: teal while live, amber
|
|
26
|
+
* while reconnecting, red when the socket is gone. No spend meter — the app
|
|
27
|
+
* tracks no spend — and the ⌘K cap is real, because the palette is.
|
|
28
|
+
*/
|
|
1
29
|
export declare function SideRail(): import("react").JSX.Element;
|
|
2
30
|
//# sourceMappingURL=side-rail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-rail.d.ts","sourceRoot":"","sources":["../../../src/components/layout/side-rail.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"side-rail.d.ts","sourceRoot":"","sources":["../../../src/components/layout/side-rail.tsx"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,QAAQ,gCA0DvB"}
|