@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":"activity-run-detail.js","sourceRoot":"","sources":["../../../src/components/activity/activity-run-detail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAqB,MAAM,mCAAmC,CAAC;AAExF,OAAO,EAAE,GAAG,EAA0B,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,QAAQ,GACT,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,aAAa,GACd,MAAM,gBAAgB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAyC;IAChF,MAAM,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACxE,MAAM,aAAa,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IAC/D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAC1D,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P,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,IAAkB,EAAE,GAAmB;IACtD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAA6B,IAAI,CAAC;IAC7C,OAAO,OAAO,EAAE,YAAY,EAAE,CAAC;QAC7B,KAAK,IAAI,CAAC,CAAC;QACX,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,OAAQ,CAAC,YAAY,CAAC,CAAC;QAC9D,IAAI,KAAK,GAAG,CAAC;YAAE,MAAM;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"activity-run-detail.js","sourceRoot":"","sources":["../../../src/components/activity/activity-run-detail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAqB,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAkB,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,QAAQ,GACT,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAA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sdk/protocol";
|
|
2
2
|
import type { ActivityRunSummary } from "../../lib/api-client.js";
|
|
3
|
+
/**
|
|
4
|
+
* The containers (S7) for the Activity index's rows: `LiveRow` subscribes to
|
|
5
|
+
* a running run's child spans and renders a `LiveRunCard`; `RunRow` is a
|
|
6
|
+
* recorded run rendered as a `HistoryRow`. The views are in
|
|
7
|
+
* `activity-views.tsx`.
|
|
8
|
+
*/
|
|
3
9
|
export declare function LiveRow({ span, onOpen, }: {
|
|
4
10
|
span: ActivitySpan;
|
|
5
11
|
onOpen: (row: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-run-list.d.ts","sourceRoot":"","sources":["../../../src/components/activity/activity-run-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activity-run-list.d.ts","sourceRoot":"","sources":["../../../src/components/activity/activity-run-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOlE;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,MAAM,GACP,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,IAAI,CAAC;CACrF,+BAiBA;AAED,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,MAAM,GACP,EAAE;IACD,GAAG,EAAE,kBAAkB,CAAC;IACxB,MAAM,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC3C,+BAiBA"}
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import { AlertTriangle, Bot, Clock, Timer } from "lucide-react";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import { useShallow } from "zustand/react/shallow";
|
|
4
|
-
import { isFailureOutcome } from "@schlessera/brain-ui-sdk/protocol";
|
|
5
3
|
import { useNow } from "../../hooks/use-now.js";
|
|
6
4
|
import { useActivityStore } from "../../stores/activity-store.js";
|
|
7
|
-
import { cn } from "../../lib/utils.js";
|
|
8
5
|
import { formatDuration, formatRelativeTime } from "../chat/tool-views.js";
|
|
6
|
+
import { HistoryRow, LiveRunCard, toolState } from "./activity-views.js";
|
|
9
7
|
import { runCostText, spanToolLabel } from "./span-bits.js";
|
|
8
|
+
/**
|
|
9
|
+
* The containers (S7) for the Activity index's rows: `LiveRow` subscribes to
|
|
10
|
+
* a running run's child spans and renders a `LiveRunCard`; `RunRow` is a
|
|
11
|
+
* recorded run rendered as a `HistoryRow`. The views are in
|
|
12
|
+
* `activity-views.tsx`.
|
|
13
|
+
*/
|
|
10
14
|
export function LiveRow({ span, onOpen, }) {
|
|
11
15
|
const children = useActivityStore(useShallow((s) => Object.values(s.spans[span.runId] ?? {}).filter((x) => x.parentSpanId)));
|
|
12
16
|
const now = useNow();
|
|
13
17
|
const current = children.filter((c) => c.outcome === undefined).at(-1);
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
return (_jsx(LiveRunCard, { name: span.jobName ?? span.name,
|
|
19
|
+
// A span-only run (plain cron job) has no current step — name+elapsed
|
|
20
|
+
// is its whole live story.
|
|
21
|
+
current: current ? spanToolLabel(current) : null, elapsed: formatDuration(now - span.startedAt), tools: children.map((c) => ({ label: spanToolLabel(c), state: toolState(c.outcome) })), onOpen: () => onOpen({ runId: span.runId, origin: span.origin, sessionId: span.sessionId }) }));
|
|
16
22
|
}
|
|
17
23
|
export function RunRow({ run, onOpen, }) {
|
|
18
|
-
const failed = isFailureOutcome(run.outcome);
|
|
19
24
|
// Effective cost only — list price lives on the Spend card and the detail
|
|
20
25
|
// view. "—" is unknown, never $0.00 (AE3); a pre-pricing server that never
|
|
21
26
|
// sent the field keeps the original list-cost span instead (see runCostText).
|
|
22
27
|
const cost = runCostText(run);
|
|
23
|
-
|
|
28
|
+
const meta = [cost, run.durationMs !== null ? formatDuration(run.durationMs) : null, formatRelativeTime(run.startedAt)]
|
|
29
|
+
.filter((s) => Boolean(s))
|
|
30
|
+
.join(" · ");
|
|
31
|
+
return (_jsx(HistoryRow, { name: run.jobName ?? run.name, cron: run.origin === "cron", outcome: run.outcome, meta: meta, onOpen: () => onOpen(run) }));
|
|
24
32
|
}
|
|
25
33
|
//# sourceMappingURL=activity-run-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-run-list.js","sourceRoot":"","sources":["../../../src/components/activity/activity-run-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"activity-run-list.js","sourceRoot":"","sources":["../../../src/components/activity/activity-run-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAInD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,EACtB,IAAI,EACJ,MAAM,GAIP;IACC,MAAM,QAAQ,GAAG,gBAAgB,CAC/B,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,E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AAE,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;SACpH,MAAM,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SACtC,IAAI,CAAC,KAAK,CAAC,CAAC;IACf,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,IAAI,EAC7B,IAAI,EAAE,GAAG,CAAC,MAAM,KAAK,MAAM,EAC3B,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GACzB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { AgentRunTool, RunToolState } from "@schlessera/brain-ui-kit";
|
|
2
|
+
import { type ActivityIntent, type ActivitySpanOutcome } from "@schlessera/brain-ui-sdk/protocol";
|
|
3
|
+
/**
|
|
4
|
+
* The Activity surface's rows, rendered from props (S7, the `activity`
|
|
5
|
+
* directory). The design's `1c` screen draws a running run as an
|
|
6
|
+
* `AgentRunCard` (the tool strip is "the shortest honest answer to 'is real
|
|
7
|
+
* work happening?'") and the day's history as plain `ListRow`s; `1c`/`2a`
|
|
8
|
+
* draw a thing that needs you as an `ActionCard`. The containers in
|
|
9
|
+
* `activity-run-list.tsx`, `activity-page.tsx` and `activity-run-detail.tsx`
|
|
10
|
+
* read the store and the API; these decide how a row looks.
|
|
11
|
+
*/
|
|
12
|
+
/** A child span's outcome as the kit's tool-strip state. */
|
|
13
|
+
export declare function toolState(outcome: ActivitySpanOutcome | undefined | null): RunToolState;
|
|
14
|
+
export interface LiveRunCardProps {
|
|
15
|
+
name: string;
|
|
16
|
+
/** The step in flight, if the run has steps at all (a plain cron job has none). */
|
|
17
|
+
current: string | null;
|
|
18
|
+
elapsed: string;
|
|
19
|
+
tools: AgentRunTool[];
|
|
20
|
+
onOpen: () => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A running run. The kit card carries no handler of its own — the design
|
|
24
|
+
* draws it as a monitor — so the row is a native button around it, named
|
|
25
|
+
* for what opening it does.
|
|
26
|
+
*/
|
|
27
|
+
export declare function LiveRunCard(p: LiveRunCardProps): import("react").JSX.Element;
|
|
28
|
+
export interface HistoryRowProps {
|
|
29
|
+
name: string;
|
|
30
|
+
cron: boolean;
|
|
31
|
+
/** The run's outcome, or null while unknown. */
|
|
32
|
+
outcome: ActivitySpanOutcome | null;
|
|
33
|
+
/** Cost, duration and when — already formatted, joined with a middle dot. */
|
|
34
|
+
meta: string;
|
|
35
|
+
onOpen: () => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function HistoryRow(p: HistoryRowProps): import("react").JSX.Element;
|
|
38
|
+
export interface IntentCardProps {
|
|
39
|
+
intent: ActivityIntent;
|
|
40
|
+
/** When it was raised, already formatted. */
|
|
41
|
+
when: string;
|
|
42
|
+
onOpen: () => void;
|
|
43
|
+
onDismiss: () => void;
|
|
44
|
+
/** Print `d` on Dismiss: the list binds it while the card holds focus (D36). */
|
|
45
|
+
keyHint?: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** A thing that needs attention: failure, stuck, or a completion to note. */
|
|
48
|
+
export declare function IntentCard(p: IntentCardProps): import("react").JSX.Element;
|
|
49
|
+
export interface RunRollupReceiptProps {
|
|
50
|
+
origin: string;
|
|
51
|
+
outcome: ActivitySpanOutcome | null;
|
|
52
|
+
when: string;
|
|
53
|
+
duration: string | null;
|
|
54
|
+
listCost: string;
|
|
55
|
+
effectiveCost: string;
|
|
56
|
+
billing: string | null;
|
|
57
|
+
estimated: boolean;
|
|
58
|
+
usage: string | null;
|
|
59
|
+
failureReason: string | null;
|
|
60
|
+
}
|
|
61
|
+
/** The rollup header of a run's detail: machine facts, key/value, as a `Receipt`. */
|
|
62
|
+
export declare function RunRollupReceipt(p: RunRollupReceiptProps): import("react").JSX.Element;
|
|
63
|
+
//# sourceMappingURL=activity-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-views.d.ts","sourceRoot":"","sources":["../../../src/components/activity/activity-views.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAc,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEpH;;;;;;;;GAQG;AAEH,4DAA4D;AAC5D,wBAAgB,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GAAG,IAAI,GAAG,YAAY,CAIvF;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,gBAAgB,+BAkB9C;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,gDAAgD;IAChD,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACpC,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,eAAe,+BAe5C;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,cAAc,CAAC;IACvB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,CAAC,EAAE,eAAe,+BAoB5C;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,qFAAqF;AACrF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,qBAAqB,+BAyBxD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ActionCard, AgentRunCard, Button, ListRow, Receipt } from "@schlessera/brain-ui-kit";
|
|
3
|
+
import { isFailureOutcome } from "@schlessera/brain-ui-sdk/protocol";
|
|
4
|
+
/**
|
|
5
|
+
* The Activity surface's rows, rendered from props (S7, the `activity`
|
|
6
|
+
* directory). The design's `1c` screen draws a running run as an
|
|
7
|
+
* `AgentRunCard` (the tool strip is "the shortest honest answer to 'is real
|
|
8
|
+
* work happening?'") and the day's history as plain `ListRow`s; `1c`/`2a`
|
|
9
|
+
* draw a thing that needs you as an `ActionCard`. The containers in
|
|
10
|
+
* `activity-run-list.tsx`, `activity-page.tsx` and `activity-run-detail.tsx`
|
|
11
|
+
* read the store and the API; these decide how a row looks.
|
|
12
|
+
*/
|
|
13
|
+
/** A child span's outcome as the kit's tool-strip state. */
|
|
14
|
+
export function toolState(outcome) {
|
|
15
|
+
if (outcome === undefined || outcome === null)
|
|
16
|
+
return "active";
|
|
17
|
+
if (outcome === "success")
|
|
18
|
+
return "done";
|
|
19
|
+
return isFailureOutcome(outcome) ? "failed" : "idle";
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A running run. The kit card carries no handler of its own — the design
|
|
23
|
+
* draws it as a monitor — so the row is a native button around it, named
|
|
24
|
+
* for what opening it does.
|
|
25
|
+
*/
|
|
26
|
+
export function LiveRunCard(p) {
|
|
27
|
+
return (_jsx("button", { type: "button", onClick: p.onOpen, "aria-label": `Open run ${p.name}`, className: "block w-full rounded-[13px] text-left transition-[filter] hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--bk-focus-ring)]", children: _jsx(AgentRunCard, { agent: p.name, state: "running", meta: p.elapsed, task: p.current ? `▸ ${p.current}` : undefined, progress: null, tools: p.tools.length ? p.tools : undefined }) }));
|
|
28
|
+
}
|
|
29
|
+
export function HistoryRow(p) {
|
|
30
|
+
const failed = isFailureOutcome(p.outcome);
|
|
31
|
+
return (_jsx(ListRow, { variant: "plain", icon: p.cron ? "repeat" : "agent", iconTone: failed ? "red" : "neutral", title: p.name, subtitle: p.outcome && p.outcome !== "success" ? p.outcome : undefined, subMono: true, value: p.meta, valueTone: failed ? "red" : "neutral", onClick: p.onOpen }));
|
|
32
|
+
}
|
|
33
|
+
/** A thing that needs attention: failure, stuck, or a completion to note. */
|
|
34
|
+
export function IntentCard(p) {
|
|
35
|
+
const kind = p.intent.kind;
|
|
36
|
+
return (_jsx(ActionCard, { kind: kind === "failure" ? "dead-letter" : "fyi", icon: kind === "stuck" ? "deadline" : undefined, kindLabel: kind === "failure" ? "Failed" : kind === "stuck" ? "Stuck" : "Completed", title: p.intent.title, body: p.intent.body || undefined, footMeta: p.when, footDot: kind === "failure" ? "red" : kind === "stuck" ? "amber" : "teal", footPulse: kind === "stuck", chevron: false, onClick: p.onOpen, children: _jsx("div", { className: "mt-2 flex justify-end", onClick: (e) => e.stopPropagation(), children: _jsx(Button, { label: p.keyHint ? "Dismiss · d" : "Dismiss", tone: "quiet", size: "sm", block: false, onClick: p.onDismiss }) }) }));
|
|
37
|
+
}
|
|
38
|
+
/** The rollup header of a run's detail: machine facts, key/value, as a `Receipt`. */
|
|
39
|
+
export function RunRollupReceipt(p) {
|
|
40
|
+
const failed = isFailureOutcome(p.outcome);
|
|
41
|
+
const rows = [
|
|
42
|
+
{ k: "origin", v: p.origin },
|
|
43
|
+
...(p.outcome ? [{ k: "outcome", v: p.outcome, tone: failed ? "red" : "teal" }] : []),
|
|
44
|
+
{ k: "started", v: p.when },
|
|
45
|
+
...(p.duration ? [{ k: "took", v: p.duration }] : []),
|
|
46
|
+
{ k: "list", v: p.listCost },
|
|
47
|
+
{ k: "effective", v: `${p.effectiveCost}${p.billing ? ` · ${p.billing}` : ""}${p.estimated ? " · ~ estimated rates" : ""}` },
|
|
48
|
+
...(p.usage ? [{ k: "usage", v: p.usage }] : []),
|
|
49
|
+
];
|
|
50
|
+
return (_jsx("div", { className: "mb-2", children: _jsx(Receipt, { title: "This run", titleIcon: "ledger", titleTone: failed ? "red" : "teal", rows: rows, footnote: p.failureReason ?? "", footIcon: p.failureReason ? "failed" : undefined, footTone: p.failureReason ? "red" : undefined, keyWidth: 66 }) }));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=activity-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-views.js","sourceRoot":"","sources":["../../../src/components/activity/activity-views.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAiD,MAAM,mCAAmC,CAAC;AAEpH;;;;;;;;GAQG;AAEH,4DAA4D;AAC5D,MAAM,UAAU,SAAS,CAAC,OAA+C;IACvE,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC;IAC/D,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,MAAM,CAA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,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACjD,CAAC;IACF,OAAO,CACL,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,OAAO,IACN,KAAK,EAAC,UAAU,EAChB,SAAS,EAAC,QAAQ,EAClB,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAClC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,CAAC,aAAa,IAAI,EAAE,EAC/B,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAChD,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAC7C,QAAQ,EAAE,EAAE,GACZ,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ClientMessage } from "@schlessera/brain-ui-sdk/protocol";
|
|
2
|
+
import { type ToolCall } from "../../stores/chat-store.js";
|
|
3
|
+
export interface ApprovalCardProps {
|
|
4
|
+
tool: ToolCall;
|
|
5
|
+
/** Where it came from, for the foot line. */
|
|
6
|
+
origin: string;
|
|
7
|
+
keys: boolean;
|
|
8
|
+
onDecide: (approved: boolean, always?: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const APPROVAL_CARD = "[data-approval-card]";
|
|
11
|
+
/**
|
|
12
|
+
* What a decision on an Actions card prints and sends. The receipt follows
|
|
13
|
+
* what the card was allowed to offer, not the click (#147): "Always allowed"
|
|
14
|
+
* claims a policy write, and the host refuses one the card did not offer —
|
|
15
|
+
* so an `always` the card could not have offered is neither printed nor
|
|
16
|
+
* sent. A card no longer in the list (`tool` undefined) offered nothing.
|
|
17
|
+
*/
|
|
18
|
+
export declare function approvalOutcome(tool: ToolCall | undefined, toolUseId: string, approved: boolean, asked?: boolean): {
|
|
19
|
+
receipt: {
|
|
20
|
+
text: string;
|
|
21
|
+
target: string;
|
|
22
|
+
effect: string;
|
|
23
|
+
};
|
|
24
|
+
frame: Extract<ClientMessage, {
|
|
25
|
+
type: "tool_approval" | "tool_denial";
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export declare function ApprovalCard(p: ApprovalCardProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=approval-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-card.d.ts","sourceRoot":"","sources":["../../../src/components/activity/approval-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAyB9E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,aAAa,yBAAyB,CAAC;AAEpD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,GAAG,SAAS,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,OAAO,EACjB,KAAK,CAAC,EAAE,OAAO,GACd;IACD,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE;QAAE,IAAI,EAAE,eAAe,GAAG,aAAa,CAAA;KAAE,CAAC,CAAC;CAC1E,CAaA;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,iBAAiB,+BAgDhD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ActionCard, Button } from "@schlessera/brain-ui-kit";
|
|
3
|
+
import { offersAlwaysAllow } from "../../stores/chat-store.js";
|
|
4
|
+
import { focusAfterDecision, singleKey } from "../../lib/single-key.js";
|
|
5
|
+
import { effectOf, getToolLabel, getToolSummary } from "../chat/tool-views.js";
|
|
6
|
+
import { KeyCap } from "../layout/key-cap.js";
|
|
7
|
+
import { useFinePointer } from "../../hooks/use-fine-pointer.js";
|
|
8
|
+
/**
|
|
9
|
+
* A pending tool approval as an Actions-pane card (D37): the transcript copy
|
|
10
|
+
* and this row are the same item in two places, and deciding either
|
|
11
|
+
* resolves both. The kit `ActionCard kind="approval"` carries the bold
|
|
12
|
+
* border that says "a run is stopped on this"; the buttons are the same
|
|
13
|
+
* three the transcript draws, with the same keys — `a` / `d` while the card
|
|
14
|
+
* holds focus, printed on the buttons, and "Always allow" deliberately
|
|
15
|
+
* without one, carrying its `write_policy` effect chip instead. The hint
|
|
16
|
+
* is printed only while a fine pointer is present (#86); the letters follow
|
|
17
|
+
* `keys` alone, so a paired keyboard works even if the pointer query stays coarse.
|
|
18
|
+
*
|
|
19
|
+
* The buttons follow the kit `ApprovalCard`'s rule (seventh drop, ruling 10):
|
|
20
|
+
* Allow takes the remaining width, Deny is content-sized with a 96 x 44 floor
|
|
21
|
+
* so it can never become a sliver, and no even split claims the two answers
|
|
22
|
+
* are equally likely. The title — the tool and its target — is the kit
|
|
23
|
+
* `ActionCard`'s, which wraps; the target is the record and never truncates.
|
|
24
|
+
*/
|
|
25
|
+
const ALLOW_MOUNT = { flex: "1 1 auto", minWidth: 0, width: "auto" };
|
|
26
|
+
const DENY_MOUNT = { flex: "0 0 auto", minWidth: 96, minHeight: 44, width: "auto" };
|
|
27
|
+
export const APPROVAL_CARD = "[data-approval-card]";
|
|
28
|
+
/**
|
|
29
|
+
* What a decision on an Actions card prints and sends. The receipt follows
|
|
30
|
+
* what the card was allowed to offer, not the click (#147): "Always allowed"
|
|
31
|
+
* claims a policy write, and the host refuses one the card did not offer —
|
|
32
|
+
* so an `always` the card could not have offered is neither printed nor
|
|
33
|
+
* sent. A card no longer in the list (`tool` undefined) offered nothing.
|
|
34
|
+
*/
|
|
35
|
+
export function approvalOutcome(tool, toolUseId, approved, asked) {
|
|
36
|
+
const always = approved && asked === true && tool !== undefined && offersAlwaysAllow(tool);
|
|
37
|
+
return {
|
|
38
|
+
receipt: {
|
|
39
|
+
text: approved ? (always ? "Always allowed" : "Allowed") : "Denied",
|
|
40
|
+
target: tool ? tool.name : toolUseId,
|
|
41
|
+
effect: always ? "write_policy" : approved ? "tool_approval" : "tool_denial",
|
|
42
|
+
},
|
|
43
|
+
// Every decision on this surface is made on the card (#113).
|
|
44
|
+
frame: approved
|
|
45
|
+
? { type: "tool_approval", toolUseId, ...(always ? { always: true } : {}), channel: "card" }
|
|
46
|
+
: { type: "tool_denial", toolUseId, message: "Denied by user", channel: "card" },
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ApprovalCard(p) {
|
|
50
|
+
const label = getToolLabel(p.tool.name);
|
|
51
|
+
const summary = getToolSummary(p.tool);
|
|
52
|
+
const finePointer = useFinePointer();
|
|
53
|
+
const printKeys = p.keys && finePointer;
|
|
54
|
+
function decide(card, approved, always) {
|
|
55
|
+
if (card)
|
|
56
|
+
focusAfterDecision(card, APPROVAL_CARD, "[data-needs-you-heading]");
|
|
57
|
+
p.onDecide(approved, always);
|
|
58
|
+
}
|
|
59
|
+
function onKeyDown(event) {
|
|
60
|
+
if (!p.keys)
|
|
61
|
+
return;
|
|
62
|
+
const key = singleKey(event);
|
|
63
|
+
if (key !== "a" && key !== "d")
|
|
64
|
+
return;
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
decide(event.currentTarget, key === "a");
|
|
67
|
+
}
|
|
68
|
+
return (_jsx("div", { "data-approval-card": "", role: "group", "aria-label": `Approval: ${label}`, tabIndex: 0, onKeyDown: onKeyDown, className: "rounded-[14px] outline-none focus-visible:ring-2 focus-visible:ring-primary/50", children: _jsx(ActionCard, { kind: "approval", title: summary ? `${label} · ${summary}` : label, rightMeta: "blocks a run", rightMetaTone: "red", ...(effectOf(p.tool) ? { body: effectOf(p.tool) } : {}), footMeta: p.origin, footDot: "amber", footPulse: true, chevron: false, children: _jsxs("div", { className: "mt-2 flex flex-wrap gap-2", children: [_jsx(Button, { label: "Allow", icon: "confirm", tone: "primary", size: "sm", center: true, block: false, style: ALLOW_MOUNT, onClick: () => decide(cardOf(), true) }), offersAlwaysAllow(p.tool) && (_jsx(Button, { label: "Always allow", effect: "write_policy", tone: "ghost", size: "sm", block: false, onClick: () => decide(cardOf(), true, true) })), _jsx(Button, { label: "Deny", icon: "deny", tone: "danger", size: "sm", center: true, block: false, style: DENY_MOUNT, onClick: () => decide(cardOf(), false) }), printKeys && (_jsxs("span", { className: "ml-auto flex items-center gap-2 text-[10px] text-muted-foreground", "aria-hidden": "true", children: [_jsxs("span", { children: ["allow ", _jsx(KeyCap, { children: "a" })] }), _jsxs("span", { children: ["deny ", _jsx(KeyCap, { children: "d" })] })] }))] }) }) }));
|
|
69
|
+
function cardOf() {
|
|
70
|
+
return document.activeElement?.closest(APPROVAL_CARD) ?? null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=approval-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-card.js","sourceRoot":"","sources":["../../../src/components/activity/approval-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAiB,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC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AAa,MAAM,aACpG,qCAAY,KAAC,MAAM,oBAAW,IAAO,EACrC,oCAAW,KAAC,MAAM,oBAAW,IAAO,IAC/B,CACR,IACG,GACK,GACT,CACP,CAAC;IACF,SAAS,MAAM;QACb,OAAQ,QAAQ,CAAC,aAAoC,EAAE,OAAO,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC;IACxF,CAAC;AACH,CAAC"}
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* dismissing persists server-side, so a phone and a laptop don't each nag.
|
|
6
6
|
* An empty window stays quiet — no card for "nothing happened". The window
|
|
7
7
|
* is labeled: the card says what period it covers, never implies "now".
|
|
8
|
+
*
|
|
9
|
+
* This is the container (S7): the fetch, the once-per-digest rule and the
|
|
10
|
+
* dismissal live here; `DigestSummary` draws the kit `DigestCard`.
|
|
8
11
|
*/
|
|
9
12
|
export declare function DigestCard(): import("react").JSX.Element | null;
|
|
10
13
|
//# sourceMappingURL=digest-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest-card.d.ts","sourceRoot":"","sources":["../../../src/components/activity/digest-card.tsx"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"digest-card.d.ts","sourceRoot":"","sources":["../../../src/components/activity/digest-card.tsx"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,uCA6CzB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { api } from "../../lib/api-client.js";
|
|
3
|
+
import { useBrainApi } from "../../root-context.js";
|
|
5
4
|
import { useUIStore } from "../../stores/ui-store.js";
|
|
6
|
-
import {
|
|
5
|
+
import { DigestSummary } from "./digest-summary.js";
|
|
7
6
|
import { digestCostClause } from "./span-bits.js";
|
|
8
7
|
/**
|
|
9
8
|
* The while-you-were-away card: presented PROACTIVELY on app open when a
|
|
@@ -12,16 +11,23 @@ import { digestCostClause } from "./span-bits.js";
|
|
|
12
11
|
* dismissing persists server-side, so a phone and a laptop don't each nag.
|
|
13
12
|
* An empty window stays quiet — no card for "nothing happened". The window
|
|
14
13
|
* is labeled: the card says what period it covers, never implies "now".
|
|
14
|
+
*
|
|
15
|
+
* This is the container (S7): the fetch, the once-per-digest rule and the
|
|
16
|
+
* dismissal live here; `DigestSummary` draws the kit `DigestCard`.
|
|
15
17
|
*/
|
|
16
18
|
export function DigestCard() {
|
|
19
|
+
const api = useBrainApi();
|
|
17
20
|
const [digest, setDigest] = useState(null);
|
|
18
21
|
const [visible, setVisible] = useState(false);
|
|
19
22
|
const setActiveView = useUIStore((s) => s.setActiveView);
|
|
20
23
|
useEffect(() => {
|
|
24
|
+
let active = true;
|
|
25
|
+
setDigest(null);
|
|
26
|
+
setVisible(false);
|
|
21
27
|
void api
|
|
22
28
|
.activityDigest()
|
|
23
29
|
.then(({ digest, dismissedAt }) => {
|
|
24
|
-
if (!digest || digest.runs === 0)
|
|
30
|
+
if (!active || !digest || digest.runs === 0)
|
|
25
31
|
return;
|
|
26
32
|
if (digest.generatedAt <= dismissedAt)
|
|
27
33
|
return;
|
|
@@ -31,23 +37,21 @@ export function DigestCard() {
|
|
|
31
37
|
.catch(() => {
|
|
32
38
|
// No digest is a quiet state, never an error surface.
|
|
33
39
|
});
|
|
34
|
-
|
|
40
|
+
return () => { active = false; };
|
|
41
|
+
}, [api]);
|
|
35
42
|
if (!visible || !digest)
|
|
36
43
|
return null;
|
|
37
44
|
function dismiss() {
|
|
38
45
|
setVisible(false);
|
|
39
46
|
void api.activityDigestDismiss().catch(() => { });
|
|
40
47
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
dismiss();
|
|
49
|
-
setActiveView("activity");
|
|
50
|
-
}, className: "mt-2 text-[11px] font-medium text-primary hover:underline", children: "Open Activity" })] }));
|
|
48
|
+
return (_jsx(DigestSummary, { digest: digest, windowLabel: `${formatDay(digest.windowStart)} – ${formatDay(digest.windowEnd)}`,
|
|
49
|
+
// Effective-only spend clause; a digest persisted before pricing shipped
|
|
50
|
+
// falls back to its old list-cost clause inside the helper.
|
|
51
|
+
costClause: digestCostClause(digest), onDismiss: dismiss, onOpen: () => {
|
|
52
|
+
dismiss();
|
|
53
|
+
setActiveView("activity");
|
|
54
|
+
} }));
|
|
51
55
|
}
|
|
52
56
|
function formatDay(ms) {
|
|
53
57
|
return new Date(ms).toLocaleDateString(undefined, { month: "short", day: "numeric" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest-card.js","sourceRoot":"","sources":["../../../src/components/activity/digest-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"digest-card.js","sourceRoot":"","sources":["../../../src/components/activity/digest-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU;IACxB,MAAM,GAAG,GAAG,WAAW,EAAE,CAAC;IAC1B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAwB,IAAI,CAAC,CAAC;IAClE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,EAA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AE,CAAC;YACV,aAAa,CAAC,UAAU,CAAC,CAAC;QAC5B,CAAC,GACD,CACH,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,EAAU;IAC3B,OAAO,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ActivityDigest } from "../../lib/api-client.js";
|
|
2
|
+
/**
|
|
3
|
+
* The while-you-were-away card as the design draws it: the kit `DigestCard`
|
|
4
|
+
* — "the briefing as one chat block, ordered settled → needs-you so it can
|
|
5
|
+
* be abandoned halfway" — with the app's two actions under it. Rendered from
|
|
6
|
+
* props (S7); `DigestCard` in `digest-card.tsx` is the container.
|
|
7
|
+
*
|
|
8
|
+
* The kit card does no arithmetic, so the counts arrive as strings; the
|
|
9
|
+
* notable runs (failures, at most three) are the one group that needs you.
|
|
10
|
+
*/
|
|
11
|
+
export interface DigestSummaryProps {
|
|
12
|
+
digest: ActivityDigest;
|
|
13
|
+
windowLabel: string;
|
|
14
|
+
costClause: string | null;
|
|
15
|
+
onDismiss: () => void;
|
|
16
|
+
onOpen: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function DigestSummary(p: DigestSummaryProps): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=digest-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digest-summary.d.ts","sourceRoot":"","sources":["../../../src/components/activity/digest-summary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,cAAc,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,kBAAkB,+BA8BlD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, DigestCard } from "@schlessera/brain-ui-kit";
|
|
3
|
+
export function DigestSummary(p) {
|
|
4
|
+
const d = p.digest;
|
|
5
|
+
const runs = `${d.runs} run${d.runs === 1 ? "" : "s"}`;
|
|
6
|
+
const groups = [
|
|
7
|
+
{ label: "Ran", icon: "agent", tone: "teal", count: String(d.runs), items: [{ text: p.windowLabel, meta: p.costClause ?? undefined }] },
|
|
8
|
+
];
|
|
9
|
+
if (d.failures > 0) {
|
|
10
|
+
groups.push({
|
|
11
|
+
label: "Failed",
|
|
12
|
+
icon: "failed",
|
|
13
|
+
tone: "red",
|
|
14
|
+
count: String(d.failures),
|
|
15
|
+
items: d.notable.slice(0, 3).map((n) => ({ text: n.jobName ?? n.name, meta: n.outcome ?? undefined })),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return (_jsxs("div", { className: "mx-auto mb-3 w-full max-w-2xl", children: [_jsx(DigestCard, { title: "While you were away", subtitle: `${p.windowLabel} · ${runs}${d.failures > 0 ? ` · ${d.failures} failed` : ""}`, spend: p.costClause ?? "", groups: groups, footnote: "" }), _jsxs("div", { className: "mt-2 flex justify-end gap-2", children: [_jsx(Button, { label: "Dismiss", tone: "quiet", size: "sm", block: false, onClick: p.onDismiss }), _jsx(Button, { label: "Open Actions", icon: "resolved", tone: "primary", size: "sm", block: false, onClick: p.onOpen })] })] }));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=digest-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digest-summary.js","sourceRoot":"","sources":["../../../src/components/activity/digest-summary.tsx"],"names":[],"m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AAI,GAAG,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,EACxF,KAAK,EAAE,CAAC,CAAC,UAAU,IAAI,EAAE,EACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAC,EAAE,GACX,EACF,eAAK,SAAS,EAAC,6BAA6B,aAC1C,KAAC,MAAM,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,SAAS,GAAI,EACrF,KAAC,MAAM,IAAC,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,GAAI,IACrG,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What push looks like — nothing about how it is obtained. `PushToggle` is
|
|
3
|
+
* the container that owns the browser permission, the service worker, the
|
|
4
|
+
* server binding and every cancellation guard; this is the S6 split of its
|
|
5
|
+
* presentation into a view that renders from props alone.
|
|
6
|
+
*
|
|
7
|
+
* The permission model is THREE-state, not a bare switch: once the browser
|
|
8
|
+
* prompt is denied, Chrome silently ignores every further in-page request,
|
|
9
|
+
* so `blocked` says where the real switch lives instead of drawing one that
|
|
10
|
+
* does nothing. Where the platform has no push at all (an in-browser iOS
|
|
11
|
+
* tab), `unsupported` explains rather than hides.
|
|
12
|
+
*
|
|
13
|
+
* The switch is the kit's `Toggle`, named "Push notifications" — the name is
|
|
14
|
+
* what it switches, `aria-checked` is its state, and `disabled` is the
|
|
15
|
+
* subscription mid-flight (the design's fourth state, kept as a named switch
|
|
16
|
+
* rather than a vanished one).
|
|
17
|
+
*/
|
|
18
|
+
export type PushState = "unsupported" | "not-asked" | "blocked" | "subscribed" | "unsubscribed";
|
|
19
|
+
export interface PushSwitchProps {
|
|
20
|
+
state: PushState;
|
|
21
|
+
busy: boolean;
|
|
22
|
+
onToggle: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function PushSwitch({ state, busy, onToggle }: PushSwitchProps): import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=push-switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-switch.d.ts","sourceRoot":"","sources":["../../../src/components/activity/push-switch.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,YAAY,GAAG,cAAc,CAAC;AAEhG,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,eAAe,+BAiCpE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Toggle } from "@schlessera/brain-ui-kit";
|
|
3
|
+
import { BellOff } from "lucide-react";
|
|
4
|
+
export function PushSwitch({ state, busy, onToggle }) {
|
|
5
|
+
if (state === "unsupported") {
|
|
6
|
+
return (_jsxs("div", { className: "flex items-center gap-1.5 text-[11px] text-muted-foreground/60", title: "This browser has no web push. On iOS, install the app to the home screen (iOS 16.4+).", children: [_jsx(BellOff, { className: "h-3.5 w-3.5" }), "No push here"] }));
|
|
7
|
+
}
|
|
8
|
+
if (state === "blocked") {
|
|
9
|
+
return (_jsxs("div", { className: "flex items-center gap-1.5 text-[11px] text-muted-foreground", title: "Notifications are blocked at the browser level. Allow them in this site's browser settings, then reload.", children: [_jsx(BellOff, { className: "h-3.5 w-3.5 text-destructive" }), "Blocked in browser settings"] }));
|
|
10
|
+
}
|
|
11
|
+
const on = state === "subscribed";
|
|
12
|
+
return (_jsxs("label", { className: "flex items-center gap-2 text-[11px] text-muted-foreground", title: on ? "Push notifications are on for this device" : "Get a push notification when background work fails", children: [_jsx("span", { children: on ? "Push on" : "Push" }), _jsx(Toggle, { on: on, tone: "amber", label: "Push notifications", disabled: busy, onClick: onToggle })] }));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=push-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-switch.js","sourceRoot":"","sources":["../../../src/components/activity/push-switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA2BvC,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAmB;IACnE,IAAI,KAAK,KAAK,aAAa,EAAE,CAAC;QAC5B,OAAO,CACL,eACE,SAAS,EAAC,gEAAgE,EAC1E,KAAK,EAAC,uFAAuF,aAE7F,KAAC,OAAO,IAAC,SAAS,EAAC,aAAa,GAAG,oBAE/B,CACP,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,CACL,eACE,SAAS,EAAC,6DAA6D,EACvE,KAAK,EAAC,0GAA0G,aAEhH,KAAC,OAAO,IAAC,SAAS,EAAC,8BAA8B,GAAG,mCAEhD,CACP,CAAC;IACJ,CAAC;IACD,MAAM,EAAE,GAAG,KAAK,KAAK,YAAY,CAAC;IAClC,OAAO,CACL,iBACE,SAAS,EAAC,2DAA2D,EACrE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,2CAA2C,CAAC,CAAC,CAAC,oDAAoD,aAE9G,yBAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,GAAQ,EACtC,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,oBAAoB,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,GAAI,IACvF,CACT,CAAC;AACJ,CAAC"}
|