@schlessera/brain-ui-react 0.35.0 → 0.36.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 +144 -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 +11 -0
- package/dist/components/activity/approval-card.d.ts.map +1 -0
- package/dist/components/activity/approval-card.js +46 -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.map +1 -1
- package/dist/components/activity/span-bits.js +9 -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 +24 -9
- 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 +37 -12
- 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 +13 -2
- package/dist/components/chat/tool-views.d.ts.map +1 -1
- package/dist/components/chat/tool-views.js +20 -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 +24 -0
- package/dist/components/layout/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail.js +65 -27
- package/dist/components/layout/side-rail.js.map +1 -1
- package/dist/components/layout/slide-panel.d.ts +12 -2
- package/dist/components/layout/slide-panel.d.ts.map +1 -1
- package/dist/components/layout/slide-panel.js +11 -2
- 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 +30 -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 +4 -3
- 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 +39 -17
- 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 +36 -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 +69 -8
- 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-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 +7 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +34 -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 +27 -5
- 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 +212 -0
- package/dist/stores/chat-state.d.ts.map +1 -0
- package/dist/stores/chat-state.js +466 -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 +334 -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 +80 -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 +8 -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 +38 -9
- 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 +59 -22
- 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 +21 -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 +70 -150
- package/src/components/layout/slide-panel.tsx +29 -2
- package/src/components/layout/theme.tsx +67 -0
- package/src/components/quick-actions/add-form.tsx +188 -0
- package/src/components/quick-actions/add-modal.tsx +32 -153
- package/src/components/quick-actions/search-modal.tsx +5 -3
- package/src/components/quick-actions/streaming-modal.tsx +42 -71
- package/src/components/quick-actions/streaming-output.tsx +112 -0
- package/src/components/quick-actions/whatsup-modal.tsx +38 -60
- 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 +232 -21
- 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-hash-routes.ts +4 -2
- package/src/hooks/use-media-query.ts +32 -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 +26 -5
- 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 +795 -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":"graph-controls.js","sourceRoot":"","sources":["../../../src/components/graph/graph-controls.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,E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AAQ,CAAC,EAAE,CAAC,CAAC;wBACf,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;4BACX,+DAA+D;4BAC/D,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;wBAC3C,CAAC,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,8JAA8J,EACxK,YAAY,EAAC,KAAK,EAClB,UAAU,EAAE,KAAK,GACjB,EACD,OAAO,IAAI,KAAC,OAAO,IAAC,SAAS,EAAC,gDAAgD,GAAG,IAC5E,EACP,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAChC,cAAK,SAAS,EAAC,8HAA8H,YAC1I,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,kBAEE,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACtC,OAAO,EAAE,GAAG,EAAE;wBACZ,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;wBACjB,UAAU,CAAC,KAAK,CAAC,CAAC;oBACpB,CAAC,EACD,SAAS,EAAC,oFAAoF,aAE9F,eAAM,SAAS,EAAC,kCAAkC,YAC/C,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,IAAI,GACjB,EACP,eAAM,SAAS,EAAC,yDAAyD,YACtE,GAAG,CAAC,IAAI,GACJ,KAbF,GAAG,CAAC,IAAI,CAcN,CACV,CAAC,GACE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"graph-controls.js","sourceRoot":"","sources":["../../../src/components/graph/graph-controls.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,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B,QAAQ,CAAC,EAAE,CAAC,CAAC;wBACf,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;4BACX,+DAA+D;4BAC/D,SAAS,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;wBAC/D,CAAC,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,8JAA8J,EACxK,YAAY,EAAC,KAAK,EAClB,UAAU,EAAE,KAAK,GACjB,EACD,OAAO,IAAI,KAAC,OAAO,IAAC,SAAS,EAAC,gDAAgD,GAAG,IAC5E,EACP,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAChC,cAAK,SAAS,EAAC,8HAA8H,YAC1I,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,kBAEE,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACtC,OAAO,EAAE,GAAG,EAAE;wBACZ,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;wBACjB,UAAU,CAAC,KAAK,CAAC,CAAC;oBACpB,CAAC,EACD,SAAS,EAAC,oFAAoF,aAE9F,eAAM,SAAS,EAAC,kCAAkC,YAC/C,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,IAAI,GACjB,EACP,eAAM,SAAS,EAAC,yDAAyD,YACtE,GAAG,CAAC,IAAI,GACJ,KAbF,GAAG,CAAC,IAAI,CAcN,CACV,CAAC,GACE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The graph options form's primitives, on the kit (S7, the `graph`
|
|
4
|
+
* directory). `GraphControls` stays the container — every option reads and
|
|
5
|
+
* writes the graph store — and composes these. The canvas itself is WebGL
|
|
6
|
+
* and has no kit counterpart; the kit's `GraphView` is a static
|
|
7
|
+
* neighbourhood drawing for a chat answer, not a scene.
|
|
8
|
+
*
|
|
9
|
+
* A segmented choice is the kit `FilterRow`: one tab stop, ←→ and Home/End
|
|
10
|
+
* inside, activation following focus — which is what a mode switch is. A
|
|
11
|
+
* switch is the kit `Toggle`, named by the visible text beside it.
|
|
12
|
+
*
|
|
13
|
+
* D6 draws the depth and the switches as a `Surface pad={0}` of group
|
|
14
|
+
* `ListRow`s (`Rows`, `ToggleRow`, `ValueRow`): the row carries the handler
|
|
15
|
+
* and its own title names it, the same shape D5's Settings groups use.
|
|
16
|
+
*/
|
|
17
|
+
export declare function Field({ label, children }: {
|
|
18
|
+
label: string;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export declare function Segmented({ options, value, onChange, }: {
|
|
22
|
+
options: {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
value: string;
|
|
27
|
+
onChange: (value: string) => void;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export declare function SwitchRow({ checked, onChange, label, }: {
|
|
30
|
+
checked: boolean;
|
|
31
|
+
onChange: (checked: boolean) => void;
|
|
32
|
+
label: string;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
/** A `Surface pad={0}` of group `ListRow`s — D6's depth and switch block. */
|
|
35
|
+
export declare function Rows({ children }: {
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* A switch row inside `Rows`. The kit `ListRow`'s toggle is decorative and
|
|
40
|
+
* the row is the button, named by its title (the D5 pattern).
|
|
41
|
+
*/
|
|
42
|
+
export declare function ToggleRow({ checked, onChange, label, subtitle, tone, last, }: {
|
|
43
|
+
checked: boolean;
|
|
44
|
+
onChange: (checked: boolean) => void;
|
|
45
|
+
label: string;
|
|
46
|
+
subtitle?: string;
|
|
47
|
+
tone?: "amber" | "teal" | "purple";
|
|
48
|
+
last?: boolean;
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* A switch the host cannot serve yet, drawn anyway (the sixth pass, §3b:
|
|
52
|
+
* "until that exists the control is drawn but disabled with its reason, the
|
|
53
|
+
* same rule the palette follows"). The reason prints in mono where the
|
|
54
|
+
* subtitle would go, and the switch is the kit `Toggle` in its disabled
|
|
55
|
+
* state — `aria-disabled`, out of the tab order, dimmed by the kit's own
|
|
56
|
+
* rule, never a bare opacity on the row. It keeps its role and its name,
|
|
57
|
+
* because a control the reader is told about should also be one a screen
|
|
58
|
+
* reader can find. The no-op handler is what gives it the role: the kit
|
|
59
|
+
* gates every operable trait on a handler, and "disabled" is a state of an
|
|
60
|
+
* operable switch, not the absence of one.
|
|
61
|
+
*/
|
|
62
|
+
export declare function DisabledToggleRow({ label, reason, tone, last, }: {
|
|
63
|
+
label: string;
|
|
64
|
+
/** Mono, printed under the title: "needs provenance". */
|
|
65
|
+
reason: string;
|
|
66
|
+
tone?: "amber" | "teal" | "purple";
|
|
67
|
+
last?: boolean;
|
|
68
|
+
}): import("react").JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
* A row whose trailing mono value is the current choice and whose click
|
|
71
|
+
* steps to the next one — D6's `Depth · 2 hops`. The subtitle spells the
|
|
72
|
+
* ring so the step is not a surprise.
|
|
73
|
+
*/
|
|
74
|
+
export declare function ValueRow<T extends string | number>({ label, options, value, format, onChange, last, }: {
|
|
75
|
+
label: string;
|
|
76
|
+
options: readonly T[];
|
|
77
|
+
value: T;
|
|
78
|
+
format: (value: T) => string;
|
|
79
|
+
onChange: (value: T) => void;
|
|
80
|
+
last?: boolean;
|
|
81
|
+
}): import("react").JSX.Element;
|
|
82
|
+
//# sourceMappingURL=graph-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|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AAI,CAAC,EAAE,OAAO,CAAC;CAChB,+BAYA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,MAAM,EACN,IAAc,EACd,IAAY,GACb,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,+BAmBA;AAID;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAClD,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAY,GACb,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,+BAaA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FilterRow, Label, ListRow, Surface, Toggle } from "@schlessera/brain-ui-kit";
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
/**
|
|
6
|
+
* The graph options form's primitives, on the kit (S7, the `graph`
|
|
7
|
+
* directory). `GraphControls` stays the container — every option reads and
|
|
8
|
+
* writes the graph store — and composes these. The canvas itself is WebGL
|
|
9
|
+
* and has no kit counterpart; the kit's `GraphView` is a static
|
|
10
|
+
* neighbourhood drawing for a chat answer, not a scene.
|
|
11
|
+
*
|
|
12
|
+
* A segmented choice is the kit `FilterRow`: one tab stop, ←→ and Home/End
|
|
13
|
+
* inside, activation following focus — which is what a mode switch is. A
|
|
14
|
+
* switch is the kit `Toggle`, named by the visible text beside it.
|
|
15
|
+
*
|
|
16
|
+
* D6 draws the depth and the switches as a `Surface pad={0}` of group
|
|
17
|
+
* `ListRow`s (`Rows`, `ToggleRow`, `ValueRow`): the row carries the handler
|
|
18
|
+
* and its own title names it, the same shape D5's Settings groups use.
|
|
19
|
+
*/
|
|
20
|
+
export function Field({ label, children }) {
|
|
21
|
+
return (_jsxs("div", { children: [_jsx("div", { className: "mb-1.5", children: _jsx(Label, { text: label }) }), children] }));
|
|
22
|
+
}
|
|
23
|
+
export function Segmented({ options, value, onChange, }) {
|
|
24
|
+
const active = Math.max(0, options.findIndex((o) => o.value === value));
|
|
25
|
+
return (_jsx(FilterRow, { items: options.map((o) => ({ label: o.label, onClick: () => onChange(o.value) })), active: active, mono: false }));
|
|
26
|
+
}
|
|
27
|
+
export function SwitchRow({ checked, onChange, label, }) {
|
|
28
|
+
const id = useId();
|
|
29
|
+
return (_jsxs("div", { className: "flex min-h-11 w-full items-center justify-between gap-3 text-xs text-foreground", children: [_jsx("span", { id: id, children: label }), _jsx(Toggle, { on: checked, tone: "amber", labelledBy: id, onClick: () => onChange(!checked) })] }));
|
|
30
|
+
}
|
|
31
|
+
/** A `Surface pad={0}` of group `ListRow`s — D6's depth and switch block. */
|
|
32
|
+
export function Rows({ children }) {
|
|
33
|
+
return _jsx(Surface, { pad: 0, children: children });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A switch row inside `Rows`. The kit `ListRow`'s toggle is decorative and
|
|
37
|
+
* the row is the button, named by its title (the D5 pattern).
|
|
38
|
+
*/
|
|
39
|
+
export function ToggleRow({ checked, onChange, label, subtitle, tone = "amber", last = false, }) {
|
|
40
|
+
return (_jsx(ListRow, { title: label, subtitle: subtitle, subMono: subtitle !== undefined, toggle: checked, toggleTone: tone, last: last, onClick: () => onChange(!checked) }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A switch the host cannot serve yet, drawn anyway (the sixth pass, §3b:
|
|
44
|
+
* "until that exists the control is drawn but disabled with its reason, the
|
|
45
|
+
* same rule the palette follows"). The reason prints in mono where the
|
|
46
|
+
* subtitle would go, and the switch is the kit `Toggle` in its disabled
|
|
47
|
+
* state — `aria-disabled`, out of the tab order, dimmed by the kit's own
|
|
48
|
+
* rule, never a bare opacity on the row. It keeps its role and its name,
|
|
49
|
+
* because a control the reader is told about should also be one a screen
|
|
50
|
+
* reader can find. The no-op handler is what gives it the role: the kit
|
|
51
|
+
* gates every operable trait on a handler, and "disabled" is a state of an
|
|
52
|
+
* operable switch, not the absence of one.
|
|
53
|
+
*/
|
|
54
|
+
export function DisabledToggleRow({ label, reason, tone = "amber", last = false, }) {
|
|
55
|
+
const id = useId();
|
|
56
|
+
return (_jsxs("div", { className: cn("flex min-h-14 w-full items-center justify-between gap-3 px-3.5 py-2.5", !last && "border-b border-border"), "data-disabled-row": "", children: [_jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [_jsx("span", { id: id, className: "text-[13px] text-foreground", children: label }), _jsx("span", { className: "font-[family-name:var(--font-mono)] text-[10px] text-muted-foreground", children: reason })] }), _jsx(Toggle, { on: false, tone: tone, labelledBy: id, disabled: true, onClick: noop })] }));
|
|
57
|
+
}
|
|
58
|
+
function noop() { }
|
|
59
|
+
/**
|
|
60
|
+
* A row whose trailing mono value is the current choice and whose click
|
|
61
|
+
* steps to the next one — D6's `Depth · 2 hops`. The subtitle spells the
|
|
62
|
+
* ring so the step is not a surprise.
|
|
63
|
+
*/
|
|
64
|
+
export function ValueRow({ label, options, value, format, onChange, last = false, }) {
|
|
65
|
+
const index = Math.max(0, options.indexOf(value));
|
|
66
|
+
const next = options[(index + 1) % options.length];
|
|
67
|
+
return (_jsx(ListRow, { title: label, subtitle: options.map(format).join(" · "), subMono: true, value: format(value), last: last, onClick: () => onChange(next) }));
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=graph-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-form.js","sourceRoot":"","sources":["../../../src/components/graph/graph-form.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,KAAK,EAAkB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,EAA0C;IAC/E,OAAO,CACL,0BACE,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,GAAI,GAClB,EACL,QAAQ,IACL,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EACxB,OAAO,EACP,KAAK,EACL,QAAQ,GAKT;IACC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC;IACxE,OAAO,CACL,KAAC,SAAS,IACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EACjF,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,KAAK,GACX,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EACxB,OAAO,EACP,QAAQ,EACR,KAAK,GAKN;IACC,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACnB,OAAO,CACL,e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AAM,SAAS,EAAC,uEAAuE,YAAE,MAAM,GAAQ,IACnG,EACN,KAAC,MAAM,IAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,QAAC,OAAO,EAAE,IAAI,GAAI,IACrE,CACP,CAAC;AACJ,CAAC;AAED,SAAS,IAAI,KAAI,CAAC;AAElB;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAA4B,EAClD,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAI,GAAG,KAAK,GAQb;IACC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAE,CAAC;IACpD,OAAO,CACL,KAAC,OAAO,IACN,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACzC,OAAO,QACP,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,GAC7B,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-maintenance.d.ts","sourceRoot":"","sources":["../../../src/components/graph/graph-maintenance.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph-maintenance.d.ts","sourceRoot":"","sources":["../../../src/components/graph/graph-maintenance.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,gCAgK9B"}
|
|
@@ -9,15 +9,8 @@ import { GraphEmptyState } from "./graph-empty-state.js";
|
|
|
9
9
|
import { GraphCanvas } from "./graph-canvas-lazy.js";
|
|
10
10
|
import { CenteredSpinner } from "./graph-spinner.js";
|
|
11
11
|
import { matchScene } from "./lib/graph-helpers.js";
|
|
12
|
+
import { useGraphTheme } from "./use-graph-theme.js";
|
|
12
13
|
import { cn } from "../../lib/utils.js";
|
|
13
|
-
/** Finding-type colors: dataviz status palette (warning/serious/critical) plus
|
|
14
|
-
* the light end of the distance ramp for "stale" — checked against #0c0e12. */
|
|
15
|
-
const FINDING_COLORS = {
|
|
16
|
-
orphan: "#fab219",
|
|
17
|
-
unreachable: "#ec835a",
|
|
18
|
-
broken: "#d03b3b",
|
|
19
|
-
stale: "#86b6ef",
|
|
20
|
-
};
|
|
21
14
|
/**
|
|
22
15
|
* Maintenance: findings list ⇄ canvas, linked both ways. The canvas is a
|
|
23
16
|
* type-grouped radial scene (one ring per finding kind — these nodes have no
|
|
@@ -37,6 +30,9 @@ export function MaintenanceBody() {
|
|
|
37
30
|
const openFile = useFileStore((s) => s.openFile);
|
|
38
31
|
const setFilePanelOpen = useUIStore((s) => s.setFilePanelOpen);
|
|
39
32
|
const listRef = useRef(null);
|
|
33
|
+
// The four lenses: the kit's `--bk-canvas-lens-*`, resolved for the scheme
|
|
34
|
+
// in force, so the list's headings and the canvas agree in both themes.
|
|
35
|
+
const lens = useGraphTheme().palette.lens;
|
|
40
36
|
// One node per document, first matching section wins (a stale orphan is an
|
|
41
37
|
// orphan); ring index encodes the finding kind.
|
|
42
38
|
const scene = useMemo(() => {
|
|
@@ -85,12 +81,12 @@ export function MaintenanceBody() {
|
|
|
85
81
|
const totalShown = scene.nodes.length + (filters.broken ? findings.brokenLinks.length : 0);
|
|
86
82
|
return (_jsxs("div", { className: "flex h-full flex-col md:flex-row", children: [_jsxs("div", { className: "relative h-56 shrink-0 border-b border-border md:h-auto md:flex-1 md:border-b-0 md:border-r", children: [scene.nodes.length === 0 ? (_jsx("div", { className: "flex h-full items-center justify-center px-6 text-center text-xs text-muted-foreground", children: totalShown === 0
|
|
87
83
|
? "Nothing to show — this brain is clean."
|
|
88
|
-
: "Only broken links match — they live in the list." })) : (_jsx(Suspense, { fallback: _jsx(CenteredSpinner, {}), children: _jsx(GraphCanvas, { data: scene.subgraph, layout: "radial", selectedId: selectedId, hoveredId: hoveredId, matchIds: matchIds, nodeColor: (node) =>
|
|
84
|
+
: "Only broken links match — they live in the list." })) : (_jsx(Suspense, { fallback: _jsx(CenteredSpinner, {}), children: _jsx(GraphCanvas, { data: scene.subgraph, layout: "radial", selectedId: selectedId, hoveredId: hoveredId, matchIds: matchIds, nodeColor: (node) => lens[node.finding ?? "stale"], onSelect: select, onHover: hover }) })), _jsx(GraphControls, {}), selectedNode && _jsx(NodePopover, { node: selectedNode })] }), _jsx("div", { ref: listRef, className: "flex-1 overflow-y-auto px-4 py-4 md:w-96 md:flex-none md:px-5", children: _jsxs("div", { className: "flex flex-col gap-5 pb-16", children: [filters.orphans && (_jsx(FindingSection, { title: `Orphans (${findings.orphans.length})`, hint: "No links in or out.", color: lens.orphan, nodes: findings.orphans, selectedId: selectedId, onSelect: select, onOpen: openNote })), filters.unreachable && (_jsx(FindingSection, { title: `Unreachable from root (${findings.unreachable.length})`, hint: "No link path from the graph root reaches these.", color: lens.unreachable, nodes: findings.unreachable, selectedId: selectedId, onSelect: select, onOpen: openNote })), filters.broken && (_jsxs("section", { children: [_jsx(SectionHeading, { title: `Broken links (${findings.brokenLinks.length})`, hint: "Wiki links whose target resolves to nothing.", color: lens.broken }), _jsx(FindingRows, { empty: findings.brokenLinks.length === 0, rows: findings.brokenLinks.map((b, i) => ({
|
|
89
85
|
key: `b${i}`,
|
|
90
86
|
title: `[[${b.target}]]`,
|
|
91
87
|
sub: `in ${b.sourcePath}`,
|
|
92
88
|
onClick: () => openNote(b.sourcePath),
|
|
93
|
-
})) })] })), filters.stale && (_jsx(FindingSection, { title: `Stale notes (${findings.stale.length})`, hint: `Untouched for over ${findings.staleDays} days.`, color:
|
|
89
|
+
})) })] })), filters.stale && (_jsx(FindingSection, { title: `Stale notes (${findings.stale.length})`, hint: `Untouched for over ${findings.staleDays} days.`, color: lens.stale, nodes: findings.stale, subOf: (n) => `${n.updated} · ${n.path}`, selectedId: selectedId, onSelect: select, onOpen: openNote }))] }) })] }));
|
|
94
90
|
}
|
|
95
91
|
function SectionHeading({ title, hint, color, }) {
|
|
96
92
|
return (_jsxs(_Fragment, { children: [_jsxs("h2", { className: "flex items-center gap-2 text-sm font-medium text-foreground", children: [_jsx("span", { className: "h-2.5 w-2.5 rounded-full", style: { backgroundColor: color } }), title] }), _jsx("p", { className: "mb-2 text-[11px] text-muted-foreground", children: hint })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-maintenance.js","sourceRoot":"","sources":["../../../src/components/graph/graph-maintenance.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"graph-maintenance.js","sourceRoot":"","sources":["../../../src/components/graph/graph-maintenance.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OA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AE;oBACf,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI;oBAC9B,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI;oBACpC,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,UAAU;oBAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;oBAChC,aAAa,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;iBACvC,CAAC,CAAC,GACH,IACM,CACX,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,EACnB,IAAI,EACJ,KAAK,GAYN;IACC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,CACL,YAAG,SAAS,EAAC,2FAA2F,4CAEpG,CACL,CAAC;IACJ,CAAC;IACD,OAAO,CACL,cAAK,SAAS,EAAC,sFAAsF,YAClG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,kCAEgB,GAAG,CAAC,MAAM,EACxB,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,aAAa,EAAE,GAAG,CAAC,aAAa,EAChC,SAAS,EAAE,EAAE,CACX,oFAAoF,EACpF,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,4BAA4B,CAChE,aAED,eAAM,SAAS,EAAC,kCAAkC,YAAE,GAAG,CAAC,KAAK,GAAQ,EACrE,eAAM,SAAS,EAAC,yDAAyD,YACtE,GAAG,CAAC,GAAG,GACH,KAZF,GAAG,CAAC,GAAG,CAaL,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D6's 340px right rail, from `wide:` only: `Label "Selected node"` + the
|
|
3
|
+
* node as a kit `ContactCard` ("a graph node and a chat entity are the same
|
|
4
|
+
* object"), then `Label "Edges"` + the node's neighbours in the scene as a
|
|
5
|
+
* `RelatedFiles` list. Below `wide:` the floating `NodePopover` draws the
|
|
6
|
+
* node instead.
|
|
7
|
+
*
|
|
8
|
+
* The neighbours come from `subgraph.edges` — the scene's edges, not the
|
|
9
|
+
* corpus's — so the count is "edges drawn", and a truncated scene may hold
|
|
10
|
+
* fewer than the node's degree. The card's facts carry the true degrees.
|
|
11
|
+
*/
|
|
12
|
+
export declare function GraphNodeRail(): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=graph-node-rail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-node-rail.d.ts","sourceRoot":"","sources":["../../../src/components/graph/graph-node-rail.tsx"],"names":[],"mappings":"AAeA;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,gCA2B5B"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { ContactCard, Label, RelatedFiles, } from "@schlessera/brain-ui-kit";
|
|
4
|
+
import { useGraphStore } from "../../stores/graph-store.js";
|
|
5
|
+
import { hopsLabel, useNodeActions } from "./use-node-actions.js";
|
|
6
|
+
/**
|
|
7
|
+
* D6's 340px right rail, from `wide:` only: `Label "Selected node"` + the
|
|
8
|
+
* node as a kit `ContactCard` ("a graph node and a chat entity are the same
|
|
9
|
+
* object"), then `Label "Edges"` + the node's neighbours in the scene as a
|
|
10
|
+
* `RelatedFiles` list. Below `wide:` the floating `NodePopover` draws the
|
|
11
|
+
* node instead.
|
|
12
|
+
*
|
|
13
|
+
* The neighbours come from `subgraph.edges` — the scene's edges, not the
|
|
14
|
+
* corpus's — so the count is "edges drawn", and a truncated scene may hold
|
|
15
|
+
* fewer than the node's degree. The card's facts carry the true degrees.
|
|
16
|
+
*/
|
|
17
|
+
export function GraphNodeRail() {
|
|
18
|
+
const subgraph = useGraphStore((s) => s.subgraph);
|
|
19
|
+
const selectedId = useGraphStore((s) => s.selectedId);
|
|
20
|
+
const node = useMemo(() => selectedId === null || !subgraph
|
|
21
|
+
? null
|
|
22
|
+
: (subgraph.nodes.find((n) => n.id === selectedId) ?? null), [selectedId, subgraph]);
|
|
23
|
+
return (_jsxs("aside", { "aria-label": "Selected node", className: "flex w-[340px] shrink-0 flex-col gap-4 overflow-y-auto border-l border-border bg-surface px-4 py-4", children: [_jsx(Label, { text: "Selected node", icon: "capability" }), node ? (_jsx(SelectedNode, { node: node })) : (_jsx("p", { className: "font-mono text-[10px] text-muted-foreground", children: "click a node on the canvas" }))] }));
|
|
24
|
+
}
|
|
25
|
+
function SelectedNode({ node }) {
|
|
26
|
+
const subgraph = useGraphStore((s) => s.subgraph);
|
|
27
|
+
const meta = useGraphStore((s) => s.meta);
|
|
28
|
+
const select = useGraphStore((s) => s.select);
|
|
29
|
+
const actions = useNodeActions(node);
|
|
30
|
+
const isVirtual = node.virtual === true;
|
|
31
|
+
const kindLabel = isVirtual ? "root" : node.type;
|
|
32
|
+
const topic = node.community !== undefined
|
|
33
|
+
? (meta?.communities.find((c) => c.community === node.community)?.label ?? null)
|
|
34
|
+
: null;
|
|
35
|
+
const facts = [
|
|
36
|
+
{ k: "in-degree", v: String(node.inDegree) },
|
|
37
|
+
{ k: "out-degree", v: String(node.outDegree) },
|
|
38
|
+
];
|
|
39
|
+
const hops = hopsLabel(node.distance);
|
|
40
|
+
if (hops)
|
|
41
|
+
facts.push({ k: "hops", v: hops });
|
|
42
|
+
if (topic)
|
|
43
|
+
facts.push({ k: "topic", v: topic, tone: "purple" });
|
|
44
|
+
const cardActions = [];
|
|
45
|
+
if (actions.canOpen)
|
|
46
|
+
cardActions.push({ label: "Open note", icon: "file", tone: "primary", onClick: actions.open });
|
|
47
|
+
if (actions.canFocus)
|
|
48
|
+
cardActions.push({ label: "Focus here", icon: "graph", tone: "ghost", onClick: actions.focus });
|
|
49
|
+
if (actions.canExpand)
|
|
50
|
+
cardActions.push({ label: "Expand", icon: "expand", tone: "ghost", onClick: actions.expand });
|
|
51
|
+
const neighbours = useMemo(() => {
|
|
52
|
+
const byId = new Map(subgraph.nodes.map((n) => [n.id, n]));
|
|
53
|
+
const out = [];
|
|
54
|
+
const seen = new Set();
|
|
55
|
+
for (const edge of subgraph.edges) {
|
|
56
|
+
const otherId = edge.source === node.id ? edge.target : edge.target === node.id ? edge.source : null;
|
|
57
|
+
if (otherId === null || seen.has(otherId))
|
|
58
|
+
continue;
|
|
59
|
+
const other = byId.get(otherId);
|
|
60
|
+
if (!other)
|
|
61
|
+
continue;
|
|
62
|
+
seen.add(otherId);
|
|
63
|
+
out.push({ node: other, direction: edge.source === node.id ? "out" : "in" });
|
|
64
|
+
}
|
|
65
|
+
return out;
|
|
66
|
+
}, [subgraph, node.id]);
|
|
67
|
+
const entity = entityShape(node.type);
|
|
68
|
+
return (_jsxs(_Fragment, { children: [_jsx(ContactCard, { label: node.title || node.path, role: `${kindLabel} · ${node.path}`, kind: entity.kind, tone: entity.tone, facts: facts, actions: cardActions, keyWidth: 72 }), neighbours.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Label, { text: "Edges", icon: "files", tone: "teal", meta: `${neighbours.length} drawn` }), _jsx(RelatedFiles, { label: "", meta: "", items: neighbours.map(({ node: other, direction }) => ({
|
|
69
|
+
path: other.title || other.path,
|
|
70
|
+
reason: direction === "out" ? `links to · ${other.path}` : `linked from · ${other.path}`,
|
|
71
|
+
icon: other.virtual ? "graph" : "file",
|
|
72
|
+
tone: direction === "out" ? "teal" : "blue",
|
|
73
|
+
onClick: () => select(other.id),
|
|
74
|
+
})) })] }))] }));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The card's avatar follows the entity language (teal person, blue company,
|
|
78
|
+
* purple project). A document type outside that vocabulary is drawn as a
|
|
79
|
+
* neutral rounded square — the kit has no "note" kind, and a circle would
|
|
80
|
+
* claim it is a person.
|
|
81
|
+
*/
|
|
82
|
+
function entityShape(type) {
|
|
83
|
+
const t = type.toLowerCase();
|
|
84
|
+
if (t === "person" || t === "people" || t === "contact")
|
|
85
|
+
return { kind: "person", tone: "teal" };
|
|
86
|
+
if (t === "company" || t === "organization" || t === "organisation" || t === "org")
|
|
87
|
+
return { kind: "company", tone: "blue" };
|
|
88
|
+
if (t === "project")
|
|
89
|
+
return { kind: "project", tone: "purple" };
|
|
90
|
+
return { kind: "project", tone: "neutral" };
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=graph-node-rail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-node-rail.js","sourceRoot":"","sources":["../../../src/components/graph/graph-node-rail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EACL,WAAW,EACX,KAAK,EACL,YAAY,GAKb,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAElE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAEtD,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE,CACH,UAAU,KAAK,IAAI,IAAI,CAAC,QAAQ;QAC9B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC,IAAI,IAAI,CAAC,EAC/D,CAAC,UA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AC,KAAK,SAAS,IAAI,CAAC,KAAK,cAAc,IAAI,CAAC,KAAK,cAAc,IAAI,CAAC,KAAK,KAAK;QAChF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3C,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAChE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* Full-screen knowledge-graph view — a sibling of ChatPage inside the
|
|
3
3
|
* AppShell. Mounts its own FilePanel/SettingsPanel copies because the chat
|
|
4
4
|
* page (which normally hosts them) is hidden while this view is active.
|
|
5
|
+
*
|
|
6
|
+
* D6 (the fifth drop): from `laptop:` a 264px controls column on the left
|
|
7
|
+
* and the canvas under a kit `ScreenHeader nav`; from `wide:` a 340px right
|
|
8
|
+
* rail with the selected node. Below `laptop:` the mode tabs stay in the
|
|
9
|
+
* header, the options in the phone sheet, the selected node in the floating
|
|
10
|
+
* popover. The pane widths key on the same ladder the rail uses, read as a
|
|
11
|
+
* media query rather than a class so only one copy of the form is mounted.
|
|
5
12
|
*/
|
|
6
13
|
export declare function GraphPage(): import("react").JSX.Element;
|
|
7
14
|
//# sourceMappingURL=graph-page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-page.d.ts","sourceRoot":"","sources":["../../../src/components/graph/graph-page.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph-page.d.ts","sourceRoot":"","sources":["../../../src/components/graph/graph-page.tsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,gCAuGxB"}
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { TriangleAlert } from "lucide-react";
|
|
4
|
+
import { EmptyState, ScreenHeader } from "@schlessera/brain-ui-kit";
|
|
4
5
|
import { useGraphStore } from "../../stores/graph-store.js";
|
|
5
6
|
import { useUIStore } from "../../stores/ui-store.js";
|
|
7
|
+
import { useMediaQuery } from "../../hooks/use-media-query.js";
|
|
6
8
|
import { FilePanel } from "../files/file-panel.js";
|
|
7
9
|
import { SettingsPanel } from "../settings/settings-panel.js";
|
|
8
|
-
import { GraphControls } from "./graph-controls.js";
|
|
10
|
+
import { GraphControls, LAPTOP_QUERY, WIDE_QUERY } from "./graph-controls.js";
|
|
11
|
+
import { GraphControlsColumn, MODES } from "./graph-controls-column.js";
|
|
9
12
|
import { GraphEmptyState, Mono } from "./graph-empty-state.js";
|
|
10
13
|
import { MaintenanceBody } from "./graph-maintenance.js";
|
|
14
|
+
import { GraphNodeRail } from "./graph-node-rail.js";
|
|
11
15
|
import { DiscoveryStart, SceneBody } from "./graph-scene.js";
|
|
12
16
|
import { CenteredSpinner } from "./graph-spinner.js";
|
|
13
17
|
import { cn } from "../../lib/utils.js";
|
|
14
|
-
const MODES = [
|
|
15
|
-
{ value: "clusters", label: "Clusters" },
|
|
16
|
-
{ value: "discovery", label: "Discovery" },
|
|
17
|
-
{ value: "local", label: "Local" },
|
|
18
|
-
{ value: "maintenance", label: "Maintenance" },
|
|
19
|
-
];
|
|
20
18
|
/**
|
|
21
19
|
* Full-screen knowledge-graph view — a sibling of ChatPage inside the
|
|
22
20
|
* AppShell. Mounts its own FilePanel/SettingsPanel copies because the chat
|
|
23
21
|
* page (which normally hosts them) is hidden while this view is active.
|
|
22
|
+
*
|
|
23
|
+
* D6 (the fifth drop): from `laptop:` a 264px controls column on the left
|
|
24
|
+
* and the canvas under a kit `ScreenHeader nav`; from `wide:` a 340px right
|
|
25
|
+
* rail with the selected node. Below `laptop:` the mode tabs stay in the
|
|
26
|
+
* header, the options in the phone sheet, the selected node in the floating
|
|
27
|
+
* popover. The pane widths key on the same ladder the rail uses, read as a
|
|
28
|
+
* media query rather than a class so only one copy of the form is mounted.
|
|
24
29
|
*/
|
|
25
30
|
export function GraphPage() {
|
|
26
31
|
const mode = useGraphStore((s) => s.mode);
|
|
@@ -35,6 +40,8 @@ export function GraphPage() {
|
|
|
35
40
|
const setFilePanelOpen = useUIStore((s) => s.setFilePanelOpen);
|
|
36
41
|
const settingsPanelOpen = useUIStore((s) => s.settingsPanelOpen);
|
|
37
42
|
const setSettingsPanelOpen = useUIStore((s) => s.setSettingsPanelOpen);
|
|
43
|
+
const laptop = useMediaQuery(LAPTOP_QUERY);
|
|
44
|
+
const wide = useMediaQuery(WIDE_QUERY);
|
|
38
45
|
useEffect(() => {
|
|
39
46
|
let active = true;
|
|
40
47
|
// Always refetch meta on mount (the view unmounts when hidden, so this
|
|
@@ -51,9 +58,89 @@ export function GraphPage() {
|
|
|
51
58
|
active = false;
|
|
52
59
|
};
|
|
53
60
|
}, [fetchMeta, fetchScene]);
|
|
54
|
-
return (_jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [_jsx(FilePanel, { open: filePanelOpen, onClose: () => setFilePanelOpen(false) }), _jsx(SettingsPanel, { open: settingsPanelOpen, onClose: () => setSettingsPanelOpen(false) }), _jsxs("header", { className: "flex items-center gap-2 border-b border-border px-3 py-2 md:px-4", children: [_jsx("h1", { className: "hidden font-display text-base text-foreground md:block", children: "Graph" }), _jsx("nav", { "aria-label": "Graph modes", className: "flex flex-1 justify-center gap-1 md:justify-start md:pl-4", children: MODES.map((m) => (_jsx("button", { onClick: () => setMode(m.value), "aria-current": mode === m.value ? "page" : undefined, className: cn("min-h-9 rounded-lg px-3 py-1.5 text-xs font-medium transition-colors", mode === m.value
|
|
61
|
+
return (_jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [_jsx(FilePanel, { open: filePanelOpen, onClose: () => setFilePanelOpen(false) }), _jsx(SettingsPanel, { open: settingsPanelOpen, onClose: () => setSettingsPanelOpen(false) }), !laptop && (_jsxs("header", { className: "flex items-center gap-2 border-b border-border px-3 py-2 md:px-4", children: [_jsx("h1", { className: "hidden font-display text-base text-foreground md:block", children: "Graph" }), _jsx("nav", { "aria-label": "Graph modes", className: "flex flex-1 justify-center gap-1 md:justify-start md:pl-4", children: MODES.map((m) => (_jsx("button", { onClick: () => setMode(m.value), "aria-current": mode === m.value ? "page" : undefined, className: cn("min-h-9 rounded-lg px-3 py-1.5 text-xs font-medium transition-colors", mode === m.value
|
|
55
62
|
? "bg-surface-raised text-foreground"
|
|
56
|
-
: "text-muted-foreground hover:text-foreground"), children: m.label }, m.value))) }), subgraph?.truncated && (_jsxs("span", { className: "hidden shrink-0 items-center gap-1 rounded-full border border-border bg-surface-raised px-2 py-0.5 text-[10px] text-muted-foreground md:flex", title: "The server capped this scene; the lowest-ranked notes were dropped.", children: [_jsx(TriangleAlert, { className: "h-3 w-3" }), "truncated"] }))] }), stale && metaState === "done" && (_jsxs("div", { className: "flex items-center gap-2 border-b border-border bg-surface-raised/50 px-4 py-1.5 text-[11px] text-muted-foreground", children: [_jsx(TriangleAlert, { className: "h-3 w-3 shrink-0 text-primary" }), "Graph predates the latest index run \u2014 run ", _jsx(Mono, { children: "brain sync" }), " to refresh it."] })), _jsx("div", { className: "relative flex-1 overflow-hidden bg-background", children: _jsx(GraphBody, { modeState: { mode, metaState, dataState } }) })] }));
|
|
63
|
+
: "text-muted-foreground hover:text-foreground"), children: m.label }, m.value))) }), subgraph?.truncated && (_jsxs("span", { className: "hidden shrink-0 items-center gap-1 rounded-full border border-border bg-surface-raised px-2 py-0.5 text-[10px] text-muted-foreground md:flex", title: "The server capped this scene; the lowest-ranked notes were dropped.", children: [_jsx(TriangleAlert, { className: "h-3 w-3" }), "truncated"] }))] })), stale && metaState === "done" && (_jsxs("div", { className: "flex items-center gap-2 border-b border-border bg-surface-raised/50 px-4 py-1.5 text-[11px] text-muted-foreground", children: [_jsx(TriangleAlert, { className: "h-3 w-3 shrink-0 text-primary" }), "Graph predates the latest index run \u2014 run ", _jsx(Mono, { children: "brain sync" }), " to refresh it."] })), _jsxs("div", { className: "flex min-h-0 flex-1", children: [laptop && _jsx(GraphControlsColumn, {}), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [laptop && _jsx(SceneHeader, {}), _jsx("div", { className: "relative flex-1 overflow-hidden bg-background", children: _jsx(GraphBody, { modeState: { mode, metaState, dataState } }) }), laptop && _jsx(CanvasCaption, {})] }), wide && _jsx(GraphNodeRail, {})] })] }));
|
|
64
|
+
}
|
|
65
|
+
const MODE_LABEL = {
|
|
66
|
+
clusters: "Clusters",
|
|
67
|
+
discovery: "Discovery",
|
|
68
|
+
local: "Local",
|
|
69
|
+
maintenance: "Maintenance",
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* The kit `ScreenHeader nav` above the canvas: the focus node when the scene
|
|
73
|
+
* has one (Local's centre, Discovery's root), else the mode; the subtitle is
|
|
74
|
+
* the counts the store holds and stays empty until a scene has landed.
|
|
75
|
+
*/
|
|
76
|
+
function SceneHeader() {
|
|
77
|
+
const mode = useGraphStore((s) => s.mode);
|
|
78
|
+
const subgraph = useGraphStore((s) => s.subgraph);
|
|
79
|
+
const findings = useGraphStore((s) => s.findings);
|
|
80
|
+
const local = useGraphStore((s) => s.local);
|
|
81
|
+
const discoveryRoot = useGraphStore((s) => s.discovery.root);
|
|
82
|
+
const staleDays = useGraphStore((s) => s.maintenance.staleDays);
|
|
83
|
+
const focus = subgraph && (mode === "local" || mode === "discovery")
|
|
84
|
+
? (subgraph.nodes.find((n) => n.distance === 0) ?? null)
|
|
85
|
+
: null;
|
|
86
|
+
const focusPath = mode === "local" ? local.center : mode === "discovery" ? discoveryRoot : null;
|
|
87
|
+
const focusTitle = focus ? focus.title || focus.path : focusPath;
|
|
88
|
+
const title = focusTitle ? `Around ${focusTitle}` : MODE_LABEL[mode];
|
|
89
|
+
let subtitle;
|
|
90
|
+
if (mode === "maintenance") {
|
|
91
|
+
if (findings) {
|
|
92
|
+
const count = findings.orphans.length +
|
|
93
|
+
findings.unreachable.length +
|
|
94
|
+
findings.brokenLinks.length +
|
|
95
|
+
findings.stale.length;
|
|
96
|
+
subtitle = `${count.toLocaleString()} findings · stale after ${staleDays} days`;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else if (subgraph) {
|
|
100
|
+
const parts = [];
|
|
101
|
+
if (focus)
|
|
102
|
+
parts.push(focus.virtual ? "root" : focus.type);
|
|
103
|
+
parts.push(`${subgraph.nodes.length.toLocaleString()} nodes`);
|
|
104
|
+
parts.push(`${subgraph.edges.length.toLocaleString()} edges`);
|
|
105
|
+
if (mode === "local")
|
|
106
|
+
parts.push(`${local.depth} hop${local.depth === 1 ? "" : "s"}`);
|
|
107
|
+
if (subgraph.truncated)
|
|
108
|
+
parts.push("truncated");
|
|
109
|
+
subtitle = parts.join(" · ");
|
|
110
|
+
}
|
|
111
|
+
return (_jsx(ScreenHeader, { variant: "nav", title: title, subtitle: subtitle, subTone: subgraph?.truncated ? "red" : "neutral", back: false }));
|
|
112
|
+
}
|
|
113
|
+
const RULE_LABEL = {
|
|
114
|
+
topic: "topic",
|
|
115
|
+
distance: "distance",
|
|
116
|
+
folder: "folder",
|
|
117
|
+
entity: "entity type",
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* The mono line under the canvas names the ACTIVE colouring rule (sixth
|
|
121
|
+
* pass §7: "a caption bound to a constant while the control says otherwise
|
|
122
|
+
* is a lie in a legend"). Read from the same state the scene colours by —
|
|
123
|
+
* the Colour control in Discovery and Local, topic in Clusters (uniform
|
|
124
|
+
* when no topics were computed) — so the caption never claims a rule the
|
|
125
|
+
* scene does not follow.
|
|
126
|
+
*/
|
|
127
|
+
function CanvasCaption() {
|
|
128
|
+
const mode = useGraphStore((s) => s.mode);
|
|
129
|
+
const colorBy = useGraphStore((s) => s.discoveryColorBy);
|
|
130
|
+
const hasTopics = useGraphStore((s) => (s.meta?.communities.length ?? 0) > 0);
|
|
131
|
+
if (mode === "maintenance")
|
|
132
|
+
return null;
|
|
133
|
+
const rule = mode === "discovery" || mode === "local" ? RULE_LABEL[colorBy] : hasTopics ? "topic" : "uniform";
|
|
134
|
+
return (_jsxs("p", { className: "border-t border-border px-4 py-2 font-mono text-[10px] text-muted-foreground", children: ["canvas is app-drawn \u00B7 colour = ", rule, " \u00B7 click a node to load its card"] }));
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* An orphan note in Local mode: the centre has no edges in either direction
|
|
138
|
+
* at this depth. "Emptiness is a finding" — the kit `EmptyState no-results`
|
|
139
|
+
* with the design's copy and the store's own count, no reassurance.
|
|
140
|
+
*/
|
|
141
|
+
function OrphanEmptyState() {
|
|
142
|
+
const setActiveView = useUIStore((s) => s.setActiveView);
|
|
143
|
+
return (_jsx("div", { className: "flex h-full items-center justify-center p-6", children: _jsx("div", { className: "w-full max-w-[520px]", children: _jsx(EmptyState, { variant: "no-results", title: "Nothing links to this yet", body: "This note has no edges in either direction. Ask a question that mentions it and the graph fills in as the answer cites things.", meta: "0 edges", primaryLabel: "Ask about it", primaryIcon: "ask", primaryTone: "primary", pad: 22, minHeight: 0, onPrimary: () => setActiveView("chat") }) }) }));
|
|
57
144
|
}
|
|
58
145
|
function GraphBody({ modeState, }) {
|
|
59
146
|
const { mode, metaState, dataState } = modeState;
|
|
@@ -95,10 +182,13 @@ function GraphBody({ modeState, }) {
|
|
|
95
182
|
if (dataState === "loading" || !subgraph) {
|
|
96
183
|
return _jsx(CenteredSpinner, {});
|
|
97
184
|
}
|
|
185
|
+
// Local's centre with nothing around it is the orphan case, whether the
|
|
186
|
+
// server returned the lone centre or nothing at all.
|
|
187
|
+
if (mode === "local" && subgraph.edges.length === 0) {
|
|
188
|
+
return (_jsxs(_Fragment, { children: [_jsx(OrphanEmptyState, {}), _jsx(GraphControls, {})] }));
|
|
189
|
+
}
|
|
98
190
|
if (subgraph.nodes.length === 0) {
|
|
99
|
-
return (_jsxs(_Fragment, { children: [_jsx(GraphEmptyState, { title: "Nothing to show", children:
|
|
100
|
-
? "This note has no links in or out at this depth."
|
|
101
|
-
: "No notes matched this scene." }), _jsx(GraphControls, {})] }));
|
|
191
|
+
return (_jsxs(_Fragment, { children: [_jsx(GraphEmptyState, { title: "Nothing to show", children: "No notes matched this scene." }), _jsx(GraphControls, {})] }));
|
|
102
192
|
}
|
|
103
193
|
return _jsx(SceneBody, {});
|
|
104
194
|
}
|