@adea-ai/ui 0.152.3 → 0.153.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 +469 -580
- package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +37 -13
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +2 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +92 -66
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +33 -37
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
- package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
- package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +1 -1
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +7 -3
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +1 -3
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/inline-citation/citation.d.ts +1 -1
- package/dist/components/composites/inline-citation/citation.js +1 -1
- package/dist/components/composites/inline-citation/citation.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +22 -22
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -0
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +75 -83
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +4 -4
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/model-selector/models.d.ts +2 -2
- package/dist/components/composites/model-selector/models.js +1 -1
- package/dist/components/composites/model-selector/models.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +17 -15
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +5 -7
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
- package/dist/components/composites/reasoning/reasoning.js +4 -4
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +63 -14
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +32 -32
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/source.d.ts +1 -1
- package/dist/components/composites/sources/source.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +2 -2
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
- package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +14 -16
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +6 -4
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/ansi.d.ts +3 -3
- package/dist/components/composites/terminal/ansi.js.map +1 -1
- package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
- package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal-model.js +1 -1
- package/dist/components/composites/terminal/terminal-model.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +24 -11
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
- package/dist/components/composites/test-results/test-results-model.js +2 -2
- package/dist/components/composites/test-results/test-results-model.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +4 -4
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +1 -1
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +25 -18
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +14 -19
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/index.d.ts +1 -1
- package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +4 -5
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +18 -20
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.js +3 -3
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +2 -4
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +6 -5
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.js +3 -7
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +32 -38
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +79 -73
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
- package/dist/components/conversation/scroll-follow-core.js +4 -4
- package/dist/components/conversation/scroll-follow-core.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +19 -4
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +23 -23
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +2 -2
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.js +1 -1
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +4 -6
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +17 -17
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.js +2 -4
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +35 -34
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +2 -2
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
- package/dist/components/layout/status-bar/status-bar.js +1 -1
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +7 -7
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/motion/presence.d.ts +2 -2
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +5 -5
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
- package/dist/components/theme/theme-catalogue-source.js +2 -2
- package/dist/components/theme/theme-catalogue-source.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +2 -2
- package/dist/components/theme/theme-context.js +3 -3
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-document.d.ts.map +1 -1
- package/dist/components/theme/theme-document.js +14 -9
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +5 -5
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +0 -6
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +9 -3
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-script.d.ts +14 -0
- package/dist/components/theme/theme-script.d.ts.map +1 -1
- package/dist/components/theme/theme-script.js +1 -0
- package/dist/components/theme/theme-script.js.map +1 -1
- package/dist/components/theme/theme-state.d.ts +7 -7
- package/dist/components/theme/theme-state.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +1 -1
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +4 -3
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/badge/badge.js +2 -2
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +10 -6
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +6 -4
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.js +2 -2
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.js +1 -1
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +6 -6
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +4 -4
- package/dist/components/ui/callout/callout.js +4 -4
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +2 -2
- package/dist/components/ui/card/card.js +2 -2
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +4 -4
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +7 -7
- package/dist/components/ui/chart/chart-options.js +9 -9
- package/dist/components/ui/chart/chart-options.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +16 -7
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +8 -6
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +8 -6
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +4 -4
- package/dist/components/ui/command/command.js +4 -4
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +13 -13
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +17 -1
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +4 -3
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
- package/dist/components/ui/diff-block/diff-block.js +3 -3
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +3 -3
- package/dist/components/ui/drawer/drawer.js +2 -2
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
- package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +33 -36
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +1 -1
- package/dist/components/ui/empty/empty.js +1 -1
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +7 -7
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +15 -15
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.js +1 -1
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +26 -26
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +2 -2
- package/dist/components/ui/kbd/kbd.js +2 -2
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
- package/dist/components/ui/kbd/platform-modifier.js +3 -3
- package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.js +1 -1
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +17 -19
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +2 -2
- package/dist/components/ui/menubar/menubar.js +1 -1
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +16 -18
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +1 -1
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.js +2 -4
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +11 -4
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +6 -8
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +73 -73
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +12 -6
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +2 -2
- package/dist/components/ui/resizable/resizable.js +3 -3
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +3 -3
- package/dist/components/ui/select/select.js +1 -1
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +4 -3
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton/skeleton.js +1 -1
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/spinner/spinner.js +1 -1
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +11 -11
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +8 -6
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +4 -4
- package/dist/components/ui/tabs/tabs.js +4 -4
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.js +1 -1
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +13 -15
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.js +1 -1
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -1
- package/dist/components/ui/tooltip/index.js +3 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +6 -5
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +17 -17
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +3 -3
- package/dist/components/ui/typography/typography.js +5 -5
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/lib/accent-presets.d.ts +1 -1
- package/dist/lib/accent-presets.js.map +1 -1
- package/dist/lib/accent-roles.d.ts +2 -2
- package/dist/lib/accent-roles.js +2 -2
- package/dist/lib/accent-roles.js.map +1 -1
- package/dist/lib/appearance-font-settings.d.ts.map +1 -1
- package/dist/lib/appearance-font-settings.js +15 -7
- package/dist/lib/appearance-font-settings.js.map +1 -1
- package/dist/lib/create-poll.d.ts +39 -0
- package/dist/lib/create-poll.d.ts.map +1 -0
- package/dist/lib/create-poll.js +116 -0
- package/dist/lib/create-poll.js.map +1 -0
- package/dist/lib/font-zoom.d.ts +1 -1
- package/dist/lib/font-zoom.js +1 -1
- package/dist/lib/font-zoom.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts +2 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +3 -2
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +5 -5
- package/dist/lib/overlay.js +5 -5
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/preference-store.d.ts +2 -2
- package/dist/lib/preference-store.js +2 -2
- package/dist/lib/preference-store.js.map +1 -1
- package/dist/lib/safe-script.d.ts +2 -2
- package/dist/lib/safe-script.js +2 -2
- package/dist/lib/safe-script.js.map +1 -1
- package/dist/lib/scroll-geometry.d.ts +1 -1
- package/dist/lib/scroll-geometry.js +1 -1
- package/dist/lib/scroll-geometry.js.map +1 -1
- package/dist/lib/text.d.ts +1 -1
- package/dist/lib/text.js +1 -1
- package/dist/lib/text.js.map +1 -1
- package/dist/lib/theme-accents.js +3 -3
- package/dist/lib/theme-accents.js.map +1 -1
- package/dist/lib/theme-css.js.map +1 -1
- package/dist/lib/theme-defaults.d.ts +4 -4
- package/dist/lib/theme-defaults.js +4 -4
- package/dist/lib/theme-defaults.js.map +1 -1
- package/dist/lib/theme-engine-light.js.map +1 -1
- package/dist/lib/theme-engine.d.ts +2 -2
- package/dist/lib/theme-engine.js +2 -2
- package/dist/lib/theme-engine.js.map +1 -1
- package/dist/lib/theme-projection.d.ts +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-projection.js.map +1 -1
- package/dist/lib/theme-records.d.ts +2 -2
- package/dist/lib/theme-records.js +2 -2
- package/dist/lib/theme-records.js.map +1 -1
- package/dist/lib/theme-types.d.ts +1 -1
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/lib/themes.d.ts +13 -13
- package/dist/lib/themes.js +13 -13
- package/dist/lib/themes.js.map +1 -1
- package/dist/lib/tokens.d.ts +2 -2
- package/dist/lib/tokens.js +1 -1
- package/dist/lib/tokens.js.map +1 -1
- package/dist/lib/tooltip-focus-gate.d.ts +2 -2
- package/dist/lib/tooltip-focus-gate.js +2 -2
- package/dist/lib/tooltip-focus-gate.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/variants.d.ts +4 -4
- package/dist/lib/variants.js +1 -1
- package/dist/lib/variants.js.map +1 -1
- package/dist/lib/version-notes.d.ts +4 -4
- package/dist/lib/version-notes.js +4 -4
- package/dist/lib/version-notes.js.map +1 -1
- package/dist/lint.js.map +1 -1
- package/dist/r/account-menu.json +1 -0
- package/dist/r/lib.json +5 -0
- package/dist/r/registry.json +11 -0
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/dist/r/src/components/composites/chat/chat.tsx +15 -9
- package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/dist/r/src/components/composites/context/context.tsx +2 -2
- package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +4 -4
- package/dist/r/src/components/composites/model-selector/models.ts +2 -2
- package/dist/r/src/components/composites/plan/plan.tsx +19 -11
- package/dist/r/src/components/composites/queue/queue.tsx +5 -3
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/dist/r/src/components/composites/settings/settings.tsx +14 -6
- package/dist/r/src/components/composites/sources/source.ts +1 -1
- package/dist/r/src/components/composites/sources/sources.tsx +2 -2
- package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/dist/r/src/components/composites/stat/stat.tsx +20 -16
- package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
- package/dist/r/src/components/composites/task/task.tsx +1 -1
- package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
- package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
- package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
- package/dist/r/src/components/composites/tool/tool.tsx +4 -4
- package/dist/r/src/components/composites/tree/tree.tsx +31 -15
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
- package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
- package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
- package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/dist/r/src/components/conversation/message-composer.tsx +4 -6
- package/dist/r/src/components/conversation/message-row.tsx +34 -26
- package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
- package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
- package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
- package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/dist/r/src/components/layout/page/page.tsx +15 -11
- package/dist/r/src/components/layout/panel/panel.tsx +1 -1
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +38 -22
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +8 -6
- package/dist/r/src/components/motion/presence.tsx +2 -2
- package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
- package/dist/r/src/components/theme/lazy.ts +1 -1
- package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
- package/dist/r/src/components/theme/theme-context.ts +3 -3
- package/dist/r/src/components/theme/theme-document.ts +22 -11
- package/dist/r/src/components/theme/theme-picker.tsx +5 -5
- package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
- package/dist/r/src/components/theme/theme-script.ts +20 -0
- package/dist/r/src/components/theme/theme-state.ts +7 -7
- package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
- package/dist/r/src/components/ui/alert/alert.tsx +4 -3
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/dist/r/src/components/ui/badge/badge.tsx +2 -2
- package/dist/r/src/components/ui/board/board.tsx +17 -5
- package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
- package/dist/r/src/components/ui/button/button.tsx +2 -2
- package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
- package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
- package/dist/r/src/components/ui/callout/callout.tsx +4 -4
- package/dist/r/src/components/ui/card/card.tsx +2 -2
- package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
- package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
- package/dist/r/src/components/ui/chart/chart.tsx +14 -1
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
- package/dist/r/src/components/ui/command/command.tsx +7 -7
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +27 -1
- package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
- package/dist/r/src/components/ui/empty/empty.tsx +1 -1
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/dist/r/src/components/ui/field/field.tsx +15 -7
- package/dist/r/src/components/ui/field/number-field.tsx +1 -1
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/dist/r/src/components/ui/item/item.tsx +24 -18
- package/dist/r/src/components/ui/kbd/kbd.tsx +2 -2
- package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/dist/r/src/components/ui/label/label.tsx +1 -1
- package/dist/r/src/components/ui/marker/marker.tsx +9 -5
- package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
- package/dist/r/src/components/ui/message/message.tsx +14 -13
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
- package/dist/r/src/components/ui/popover/popover.tsx +4 -2
- package/dist/r/src/components/ui/progress/progress.tsx +5 -3
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
- package/dist/r/src/components/ui/select/select.tsx +4 -4
- package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/dist/r/src/components/ui/slider/slider.tsx +1 -1
- package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/dist/r/src/components/ui/switch/switch.tsx +9 -6
- package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
- package/dist/r/src/components/ui/toast/toast.tsx +6 -4
- package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/dist/r/src/components/ui/tooltip/index.ts +1 -0
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/dist/r/src/components/ui/trace/trace.tsx +13 -9
- package/dist/r/src/components/ui/typography/typography.tsx +5 -5
- package/dist/r/src/lib/accent-presets.ts +1 -1
- package/dist/r/src/lib/accent-roles.ts +2 -2
- package/dist/r/src/lib/appearance-font-settings.ts +18 -7
- package/dist/r/src/lib/create-poll.ts +150 -0
- package/dist/r/src/lib/font-zoom.ts +3 -3
- package/dist/r/src/lib/keyed-rows.ts +3 -2
- package/dist/r/src/lib/overlay.ts +5 -5
- package/dist/r/src/lib/preference-store.ts +2 -2
- package/dist/r/src/lib/safe-script.ts +2 -2
- package/dist/r/src/lib/scroll-geometry.ts +1 -1
- package/dist/r/src/lib/text.ts +1 -1
- package/dist/r/src/lib/theme-accents.ts +3 -3
- package/dist/r/src/lib/theme-css.ts +2 -2
- package/dist/r/src/lib/theme-defaults.ts +4 -4
- package/dist/r/src/lib/theme-engine-light.ts +2 -2
- package/dist/r/src/lib/theme-engine.ts +2 -2
- package/dist/r/src/lib/theme-projection.ts +2 -2
- package/dist/r/src/lib/theme-records.ts +2 -2
- package/dist/r/src/lib/theme-types.ts +1 -1
- package/dist/r/src/lib/themes.ts +14 -14
- package/dist/r/src/lib/tokens.ts +2 -2
- package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
- package/dist/r/src/lib/utils.ts +1 -1
- package/dist/r/src/lib/variants.ts +4 -4
- package/dist/r/src/lib/version-notes.ts +4 -4
- package/dist/r/src/styles/base.css +12 -43
- package/dist/r/src/styles/fonts.css +1 -1
- package/dist/r/src/styles/theme.css +35 -35
- package/dist/r/tooltip.json +5 -0
- package/package.json +2 -1
- package/registry.json +11 -0
- package/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/src/components/composites/action-button/action-button.tsx +124 -78
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/src/components/composites/chat/chat.tsx +15 -9
- package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/src/components/composites/context/context.tsx +2 -2
- package/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/src/components/composites/inline-citation/citation.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/src/components/composites/list-row/list-row.tsx +69 -73
- package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/src/components/composites/model-selector/model-selector.tsx +4 -4
- package/src/components/composites/model-selector/models.ts +2 -2
- package/src/components/composites/plan/plan.tsx +19 -11
- package/src/components/composites/queue/queue.tsx +5 -3
- package/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/src/components/composites/settings/settings.tsx +14 -6
- package/src/components/composites/sources/source.ts +1 -1
- package/src/components/composites/sources/sources.tsx +2 -2
- package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/src/components/composites/stat/stat.tsx +20 -16
- package/src/components/composites/subagent/subagent.tsx +6 -4
- package/src/components/composites/task/task.tsx +1 -1
- package/src/components/composites/terminal/ansi.ts +3 -3
- package/src/components/composites/terminal/terminal-model.ts +3 -3
- package/src/components/composites/terminal/terminal.tsx +24 -12
- package/src/components/composites/test-results/test-results-model.ts +4 -4
- package/src/components/composites/test-results/test-results.tsx +1 -1
- package/src/components/composites/tool/tool.tsx +4 -4
- package/src/components/composites/tree/tree.tsx +31 -15
- package/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/src/components/composites/update-dialog/index.ts +1 -0
- package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/src/components/conversation/busy-send-button.tsx +6 -2
- package/src/components/conversation/composer-menu.tsx +3 -3
- package/src/components/conversation/conversation-avatar.tsx +1 -1
- package/src/components/conversation/conversation-pane.tsx +8 -5
- package/src/components/conversation/conversation-surface.tsx +2 -2
- package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/src/components/conversation/message-composer.tsx +4 -6
- package/src/components/conversation/message-row.tsx +34 -26
- package/src/components/conversation/scroll-follow-core.ts +8 -8
- package/src/components/conversation/scroll-follow.ts +24 -8
- package/src/components/conversation/thread-panel.tsx +7 -3
- package/src/components/conversation/transcript-composition.tsx +4 -2
- package/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/src/components/layout/page/page.tsx +15 -11
- package/src/components/layout/panel/panel.tsx +1 -1
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/src/components/layout/side-rail/side-rail.tsx +38 -22
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/src/components/layout/top-bar/top-bar.tsx +8 -6
- package/src/components/motion/presence.tsx +2 -2
- package/src/components/theme/appearance-panel.tsx +5 -5
- package/src/components/theme/lazy.ts +1 -1
- package/src/components/theme/theme-catalogue-source.ts +2 -2
- package/src/components/theme/theme-context.ts +3 -3
- package/src/components/theme/theme-document.ts +22 -11
- package/src/components/theme/theme-picker.tsx +5 -5
- package/src/components/theme/theme-provider-value.ts +15 -3
- package/src/components/theme/theme-script.ts +20 -0
- package/src/components/theme/theme-state.ts +7 -7
- package/src/components/theme/theme-toggle.tsx +1 -1
- package/src/components/ui/alert/alert.tsx +4 -3
- package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/src/components/ui/badge/badge.tsx +2 -2
- package/src/components/ui/board/board.tsx +17 -5
- package/src/components/ui/bubble/bubble.tsx +6 -4
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/button-group/button-group.tsx +1 -1
- package/src/components/ui/calendar/calendar.tsx +2 -2
- package/src/components/ui/callout/callout.tsx +4 -4
- package/src/components/ui/card/card.tsx +2 -2
- package/src/components/ui/carousel/carousel.tsx +6 -6
- package/src/components/ui/chart/chart-options.ts +9 -9
- package/src/components/ui/chart/chart.tsx +14 -1
- package/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/src/components/ui/code-block/code-block.tsx +14 -7
- package/src/components/ui/command/command.tsx +7 -7
- package/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/src/components/ui/dialog/dialog-layer.tsx +27 -1
- package/src/components/ui/dialog/dialog.tsx +4 -3
- package/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/src/components/ui/drawer/drawer.tsx +3 -3
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/src/components/ui/empty/empty-state.tsx +23 -18
- package/src/components/ui/empty/empty.tsx +1 -1
- package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/src/components/ui/field/field.tsx +15 -7
- package/src/components/ui/field/number-field.tsx +1 -1
- package/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/src/components/ui/input-group/input-group.tsx +1 -1
- package/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/src/components/ui/item/item.tsx +24 -18
- package/src/components/ui/kbd/kbd.tsx +2 -2
- package/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/src/components/ui/label/label.tsx +1 -1
- package/src/components/ui/marker/marker.tsx +9 -5
- package/src/components/ui/menubar/menubar.tsx +2 -2
- package/src/components/ui/message/message.tsx +14 -13
- package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/src/components/ui/native-select/native-select.tsx +1 -1
- package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/src/components/ui/pagination/pagination.tsx +1 -1
- package/src/components/ui/popover/popover.tsx +4 -2
- package/src/components/ui/progress/progress.tsx +5 -3
- package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/src/components/ui/resizable/resizable.tsx +5 -5
- package/src/components/ui/select/select.tsx +4 -4
- package/src/components/ui/sheet/sheet.tsx +4 -3
- package/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/src/components/ui/slider/slider.tsx +1 -1
- package/src/components/ui/spinner/spinner.tsx +1 -1
- package/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/src/components/ui/switch/switch.tsx +9 -6
- package/src/components/ui/tabs/tabs.tsx +4 -4
- package/src/components/ui/textarea/textarea.tsx +1 -1
- package/src/components/ui/toast/toast.tsx +6 -4
- package/src/components/ui/toggle/toggle.tsx +1 -1
- package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/src/components/ui/tooltip/index.ts +1 -0
- package/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/src/components/ui/trace/trace.tsx +13 -9
- package/src/components/ui/typography/typography.tsx +5 -5
- package/src/index.ts +1 -0
- package/src/lib/accent-presets.ts +1 -1
- package/src/lib/accent-roles.ts +2 -2
- package/src/lib/appearance-font-settings.ts +18 -7
- package/src/lib/create-poll.ts +150 -0
- package/src/lib/font-zoom.ts +3 -3
- package/src/lib/keyed-rows.ts +3 -2
- package/src/lib/overlay.ts +5 -5
- package/src/lib/preference-store.ts +2 -2
- package/src/lib/safe-script.ts +2 -2
- package/src/lib/scroll-geometry.ts +1 -1
- package/src/lib/text.ts +1 -1
- package/src/lib/theme-accents.ts +3 -3
- package/src/lib/theme-css.ts +2 -2
- package/src/lib/theme-defaults.ts +4 -4
- package/src/lib/theme-engine-light.ts +2 -2
- package/src/lib/theme-engine.ts +2 -2
- package/src/lib/theme-projection.ts +2 -2
- package/src/lib/theme-records.ts +2 -2
- package/src/lib/theme-types.ts +1 -1
- package/src/lib/themes.ts +14 -14
- package/src/lib/tokens.ts +2 -2
- package/src/lib/tooltip-focus-gate.ts +11 -11
- package/src/lib/utils.ts +1 -1
- package/src/lib/variants.ts +4 -4
- package/src/lib/version-notes.ts +4 -4
- package/src/lint/index.ts +1 -1
- package/src/styles/base.css +12 -43
- package/src/styles/fonts.css +1 -1
- package/src/styles/theme.css +35 -35
- package/src/styles/themes/aardvark-blue.css +98 -0
- package/src/styles/themes/aardvark-ink.css +98 -0
- package/src/styles/themes/adea-dark-colorblind.css +98 -0
- package/src/styles/themes/adea-dark-high-contrast.css +98 -0
- package/src/styles/themes/adea-dark.css +47 -0
- package/src/styles/themes/adea-light-colorblind.css +141 -0
- package/src/styles/themes/adea-light-high-contrast.css +141 -0
- package/src/styles/themes/adea-light.css +47 -0
- package/src/styles/themes/ayu-light.css +141 -0
- package/src/styles/themes/ayu-mirage.css +98 -0
- package/src/styles/themes/ayu.css +98 -0
- package/src/styles/themes/catppuccin-frappe.css +98 -0
- package/src/styles/themes/catppuccin-latte.css +141 -0
- package/src/styles/themes/catppuccin-macchiato.css +98 -0
- package/src/styles/themes/catppuccin-mocha.css +98 -0
- package/src/styles/themes/dracula.css +98 -0
- package/src/styles/themes/everforest-dark.css +98 -0
- package/src/styles/themes/everforest-light.css +141 -0
- package/src/styles/themes/gruvbox-dark.css +98 -0
- package/src/styles/themes/gruvbox-light.css +141 -0
- package/src/styles/themes/kanagawa.css +98 -0
- package/src/styles/themes/monokai.css +98 -0
- package/src/styles/themes/nord-light.css +141 -0
- package/src/styles/themes/nord.css +98 -0
- package/src/styles/themes/one-dark.css +98 -0
- package/src/styles/themes/rosepine-dawn.css +141 -0
- package/src/styles/themes/rosepine-moon.css +98 -0
- package/src/styles/themes/rosepine.css +98 -0
- package/src/styles/themes/solarized-dark.css +98 -0
- package/src/styles/themes/solarized-light.css +141 -0
- package/src/styles/themes/tokyonight-day.css +141 -0
- package/src/styles/themes/tokyonight-night.css +98 -0
- package/src/styles/themes/tokyonight-storm.css +98 -0
- package/src/styles/themes/vesper.css +98 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PolymorphicProps } from '@kobalte/core/polymorphic'
|
|
2
2
|
import type { ComponentProps, ValidComponent } from 'solid-js'
|
|
3
3
|
import { createSignal, createUniqueId, Show, splitProps } from 'solid-js'
|
|
4
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
4
|
+
import { createDeferredTooltip, Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
5
5
|
import { Text } from '../../ui/typography'
|
|
6
6
|
import { cn } from '#lib/utils'
|
|
7
7
|
import { ListRowControl, type ListRowControlProps } from './list-row-control'
|
|
@@ -18,79 +18,71 @@ export type ListRowProps<T extends ValidComponent = 'div'> = PolymorphicProps<
|
|
|
18
18
|
}
|
|
19
19
|
>
|
|
20
20
|
|
|
21
|
-
type ListRowTooltipTargetProps<T extends ValidComponent = 'div'> = Omit<ListRowProps<T>, 'as'> & {
|
|
22
|
-
rowAs?: T
|
|
23
|
-
externalDescribedBy?: string
|
|
24
|
-
tooltipId?: string
|
|
25
|
-
tooltipOpen?: () => boolean
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** Adapts TooltipTrigger's polymorphic target to ListRow's semantic element. */
|
|
29
|
-
function ListRowTooltipTarget<T extends ValidComponent = 'div'>(
|
|
30
|
-
props: ListRowTooltipTargetProps<T>
|
|
31
|
-
) {
|
|
32
|
-
const [local, rest] = splitProps(props as ListRowTooltipTargetProps, [
|
|
33
|
-
'rowAs',
|
|
34
|
-
'externalDescribedBy',
|
|
35
|
-
'tooltipId',
|
|
36
|
-
'tooltipOpen',
|
|
37
|
-
])
|
|
38
|
-
const describedBy = () => {
|
|
39
|
-
const ids = [
|
|
40
|
-
rest['aria-describedby'],
|
|
41
|
-
local.externalDescribedBy,
|
|
42
|
-
local.tooltipOpen?.() ? local.tooltipId : undefined,
|
|
43
|
-
]
|
|
44
|
-
.flatMap((value) => value?.split(/\s+/) ?? [])
|
|
45
|
-
.filter(Boolean)
|
|
46
|
-
return [...new Set(ids)].join(' ') || undefined
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<ListRowControl
|
|
51
|
-
as={local.rowAs}
|
|
52
|
-
{...(rest as unknown as ListRowControlProps<T>)}
|
|
53
|
-
aria-describedby={describedBy()}
|
|
54
|
-
/>
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
21
|
/**
|
|
59
22
|
* Rich row composition with optional hover and keyboard tooltip behavior.
|
|
60
23
|
* Import ListRowControl when the tooltip API is not needed and the consumer
|
|
61
24
|
* wants the plain renderer to tree-shake independently.
|
|
25
|
+
*
|
|
26
|
+
* The tooltip is mounted on demand: a list of tooltip rows renders plain rows,
|
|
27
|
+
* and a row builds its tooltip the first time a pointer enters it or keyboard
|
|
28
|
+
* focus reaches it. The event that armed it is replayed to the new trigger, so
|
|
29
|
+
* the tip opens on the same timing as an eagerly mounted one.
|
|
62
30
|
*/
|
|
63
31
|
export function ListRow<T extends ValidComponent = 'div'>(props: ListRowProps<T>) {
|
|
64
|
-
|
|
32
|
+
// Typed as the button form so the row's event props and ref are visible to
|
|
33
|
+
// splitProps; the element type itself still comes from `as`.
|
|
34
|
+
const [local, rest] = splitProps(props as unknown as ListRowProps<'button'> & { as?: T }, [
|
|
35
|
+
'as',
|
|
36
|
+
'tooltip',
|
|
37
|
+
'aria-describedby',
|
|
38
|
+
'ref',
|
|
39
|
+
'onPointerEnter',
|
|
40
|
+
'onFocus',
|
|
41
|
+
])
|
|
65
42
|
const [tooltipOpen, setTooltipOpen] = createSignal(false)
|
|
66
43
|
const tooltipId = `list-row-tooltip-${createUniqueId()}`
|
|
67
|
-
const hasClickHandler = () =>
|
|
44
|
+
const hasClickHandler = () =>
|
|
45
|
+
Boolean(rest.onClick || (rest as Record<string, unknown>)['on:click'])
|
|
68
46
|
const rowAs = () => (local.as ?? (hasClickHandler() ? 'button' : 'div')) as T
|
|
69
47
|
const rowType = () => (rowAs() === 'button' ? (rest.type ?? 'button') : rest.type)
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
48
|
+
const describedBy = () => {
|
|
49
|
+
const external = local['aria-describedby']
|
|
50
|
+
if (!tooltipOpen() || !local.tooltip) return external
|
|
51
|
+
const ids = new Set([...(external?.split(/\s+/) ?? []), tooltipId].filter(Boolean))
|
|
52
|
+
return [...ids].join(' ')
|
|
53
|
+
}
|
|
54
|
+
const deferred = createDeferredTooltip({
|
|
55
|
+
enabled: () => !!local.tooltip,
|
|
56
|
+
onPointerEnter: () => local.onPointerEnter,
|
|
57
|
+
onFocus: () => local.onFocus,
|
|
58
|
+
})
|
|
59
|
+
// Spread `rest` itself, never a function's result: a spread call compiles to a memo
|
|
60
|
+
// that reads every prop getter (children, leading, trailing), so each row would
|
|
61
|
+
// rebuild its content whenever any value it reads changed, such as a list's selection.
|
|
77
62
|
return (
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
63
|
+
<>
|
|
64
|
+
<ListRowControl
|
|
65
|
+
as={rowAs()}
|
|
66
|
+
{...(rest as unknown as ListRowControlProps<T>)}
|
|
67
|
+
ref={(element: HTMLElement) => {
|
|
68
|
+
deferred.ref(element)
|
|
69
|
+
const forwarded = local.ref as unknown
|
|
70
|
+
if (typeof forwarded === 'function') forwarded(element)
|
|
71
|
+
}}
|
|
72
|
+
type={rowType()}
|
|
73
|
+
aria-describedby={describedBy()}
|
|
74
|
+
onPointerEnter={deferred.onPointerEnter}
|
|
75
|
+
onFocus={deferred.onFocus}
|
|
76
|
+
/>
|
|
77
|
+
<Show when={deferred.armed() && local.tooltip}>
|
|
78
|
+
{(tooltipSlot) => (
|
|
79
|
+
<Tooltip open={tooltipOpen()} onOpenChange={setTooltipOpen}>
|
|
80
|
+
<TooltipTrigger as={deferred.Target} />
|
|
81
|
+
<TooltipContent id={tooltipId}>{tooltipSlot()}</TooltipContent>
|
|
82
|
+
</Tooltip>
|
|
83
|
+
)}
|
|
84
|
+
</Show>
|
|
85
|
+
</>
|
|
94
86
|
)
|
|
95
87
|
}
|
|
96
88
|
|
|
@@ -106,16 +98,20 @@ export function ListGroup(
|
|
|
106
98
|
return (
|
|
107
99
|
<div data-slot="list-group" class={cn('flex flex-col gap-0.5', local.class)} {...rest}>
|
|
108
100
|
<Show when={local.label}>
|
|
109
|
-
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<
|
|
115
|
-
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
101
|
+
{(labelSlot) => (
|
|
102
|
+
<div class="group/list-header flex items-center gap-1 px-2 py-1">
|
|
103
|
+
<Text variant="overline" class="min-w-0 flex-1 truncate">
|
|
104
|
+
{labelSlot()}
|
|
105
|
+
</Text>
|
|
106
|
+
<Show when={local.action}>
|
|
107
|
+
{(actionSlot) => (
|
|
108
|
+
<span class="shrink-0 opacity-0 transition-opacity ease-out group-hover/list-header:opacity-100 focus-within:opacity-100">
|
|
109
|
+
{actionSlot()}
|
|
110
|
+
</span>
|
|
111
|
+
)}
|
|
112
|
+
</Show>
|
|
113
|
+
</div>
|
|
114
|
+
)}
|
|
119
115
|
</Show>
|
|
120
116
|
<div class="flex flex-col gap-0.5">{local.children}</div>
|
|
121
117
|
</div>
|
|
@@ -22,7 +22,7 @@ import { anchorIds, captureAnchor, restoreAnchor, type ScrollAnchor } from './sc
|
|
|
22
22
|
* by exactly their height; here the first visible turn (found by
|
|
23
23
|
* `data-anchor-id`, which `Message` sets from `anchorId`) is measured before
|
|
24
24
|
* the load and put back to the same offset after it, on every layout change
|
|
25
|
-
* until the load settles
|
|
25
|
+
* until the load settles, so images and code blocks that size themselves
|
|
26
26
|
* late do not jolt the view either. A "Load earlier" button is always present
|
|
27
27
|
* while there is more, because the scroll trigger alone is unreachable to a
|
|
28
28
|
* keyboard or switch user and fires nothing in a short pane.
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
* ModelSelector.
|
|
44
44
|
*
|
|
45
45
|
* Two controls in one group beside the composer: *which model*, and *how hard it
|
|
46
|
-
* thinks*. They are one component because the second depends on the first
|
|
46
|
+
* thinks*. They are one component because the second depends on the first, an
|
|
47
47
|
* effort level belongs to a model, and switching model can make the chosen effort
|
|
48
|
-
* meaningless
|
|
48
|
+
* meaningless, so a host should not have to keep two menus consistent by hand.
|
|
49
49
|
*
|
|
50
50
|
* ## What it takes and what it will not decide
|
|
51
51
|
*
|
|
@@ -56,8 +56,8 @@ import {
|
|
|
56
56
|
*
|
|
57
57
|
* - **An unavailable model stays in the list**, disabled, with the host's reason
|
|
58
58
|
* beside it in words. Hiding it would leave the person guessing where it went.
|
|
59
|
-
* - **No `onChange`, no menu.** The model is then plain text
|
|
60
|
-
* statement of what is running
|
|
59
|
+
* - **No `onChange`, no menu.** The model is then plain text, a read-only
|
|
60
|
+
* statement of what is running, not a button that does nothing. The same holds
|
|
61
61
|
* for effort and `onEffortChange`.
|
|
62
62
|
* - **Effort renders only when the selected model advertises `efforts`.** A model
|
|
63
63
|
* that does not has no effort control, and a stored `effort` the model does not
|
|
@@ -3,7 +3,7 @@ import { boundText } from '#lib/text'
|
|
|
3
3
|
/**
|
|
4
4
|
* An effort level a model supports: just its id (`'high'`), or an id with the
|
|
5
5
|
* words to show. A bare id is labelled by capitalising it, which is right for
|
|
6
|
-
* `low` / `medium` / `high` and wrong for anything else
|
|
6
|
+
* `low` / `medium` / `high` and wrong for anything else, pass a label then.
|
|
7
7
|
*/
|
|
8
8
|
export type ModelEffort = string | Readonly<{ id: string; label?: string; description?: string }>
|
|
9
9
|
|
|
@@ -96,7 +96,7 @@ export function needsSearch(count: number, threshold = MODEL_SEARCH_THRESHOLD):
|
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* What the search matches against: everything a person might type to find a model
|
|
99
|
-
*
|
|
99
|
+
* its name, its provider, its id, and its description.
|
|
100
100
|
*/
|
|
101
101
|
export function modelSearchValue(model: ModelOption): string {
|
|
102
102
|
return [model.label, model.provider, model.id, model.description ?? ''].join(' ')
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { ListTodo } from 'lucide-solid'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
children as resolveChildren,
|
|
4
|
+
createMemo,
|
|
5
|
+
Index,
|
|
6
|
+
Show,
|
|
7
|
+
splitProps,
|
|
8
|
+
type JSX,
|
|
9
|
+
} from 'solid-js'
|
|
3
10
|
import { Progress } from '../../ui/progress'
|
|
4
11
|
import { TraceDetail, TraceLine, type TraceLineProps } from '../../ui/trace'
|
|
5
12
|
import {
|
|
@@ -89,16 +96,15 @@ export function Plan(props: PlanProps) {
|
|
|
89
96
|
const value = progress()
|
|
90
97
|
return value ? taskProgressLabel(value) : undefined
|
|
91
98
|
}
|
|
99
|
+
const description = resolveChildren(() => local.description)
|
|
100
|
+
const actions = resolveChildren(() => local.actions)
|
|
92
101
|
const hasDetail = () =>
|
|
93
|
-
local.steps.length > 0 ||
|
|
94
|
-
local.description !== undefined ||
|
|
95
|
-
local.actions !== undefined ||
|
|
96
|
-
local.streaming === true
|
|
102
|
+
local.steps.length > 0 || description() != null || actions() != null || local.streaming === true
|
|
97
103
|
|
|
98
104
|
const detail = () => (
|
|
99
105
|
<TraceDetail class="flex flex-col gap-2">
|
|
100
|
-
<Show when={
|
|
101
|
-
<div class="text-sm text-muted-foreground">{
|
|
106
|
+
<Show when={description()}>
|
|
107
|
+
{(descriptionSlot) => <div class="text-sm text-muted-foreground">{descriptionSlot()}</div>}
|
|
102
108
|
</Show>
|
|
103
109
|
<Show when={progress()}>
|
|
104
110
|
{(value) => (
|
|
@@ -129,10 +135,12 @@ export function Plan(props: PlanProps) {
|
|
|
129
135
|
<Show when={local.streaming}>
|
|
130
136
|
<span class="streaming-caret" aria-hidden="true" />
|
|
131
137
|
</Show>
|
|
132
|
-
<Show when={
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
138
|
+
<Show when={actions()}>
|
|
139
|
+
{(actionsSlot) => (
|
|
140
|
+
<div data-slot="plan-actions" class="flex flex-wrap items-center gap-2 pt-1">
|
|
141
|
+
{actionsSlot()}
|
|
142
|
+
</div>
|
|
143
|
+
)}
|
|
136
144
|
</Show>
|
|
137
145
|
</TraceDetail>
|
|
138
146
|
)
|
|
@@ -106,9 +106,11 @@ export function Queue(props: QueueProps) {
|
|
|
106
106
|
when={local.items.length > 0}
|
|
107
107
|
fallback={
|
|
108
108
|
<Show when={local.empty}>
|
|
109
|
-
|
|
110
|
-
<
|
|
111
|
-
|
|
109
|
+
{(emptySlot) => (
|
|
110
|
+
<Trace aria-label="Queue" {...rest}>
|
|
111
|
+
<TraceLine title={emptySlot()} />
|
|
112
|
+
</Trace>
|
|
113
|
+
)}
|
|
112
114
|
</Show>
|
|
113
115
|
}
|
|
114
116
|
>
|
|
@@ -17,7 +17,7 @@ export { formatDuration }
|
|
|
17
17
|
*
|
|
18
18
|
* ## It shows what it is given, and nothing else
|
|
19
19
|
*
|
|
20
|
-
* `text` is whatever the host has decided is user-visible
|
|
20
|
+
* `text` is whatever the host has decided is user-visible, a provider's reasoning
|
|
21
21
|
* summary, a model's visible scratchpad. This component never implies there is
|
|
22
22
|
* more behind it: no "show full reasoning" control, no placeholder body, no
|
|
23
23
|
* ellipsis standing in for hidden content. With no `text` and no `streaming` the
|
|
@@ -26,9 +26,9 @@ export { formatDuration }
|
|
|
26
26
|
*
|
|
27
27
|
* ## The title is the state
|
|
28
28
|
*
|
|
29
|
-
* - `streaming
|
|
30
|
-
* - finished with a `duration` (seconds)
|
|
31
|
-
* - finished without one
|
|
29
|
+
* - `streaming`: "Thinking…", with the running mark and shimmer.
|
|
30
|
+
* - finished with a `duration` (seconds): "Thought for 4s".
|
|
31
|
+
* - finished without one: "Reasoning". A duration the host did not measure is
|
|
32
32
|
* not invented.
|
|
33
33
|
*
|
|
34
34
|
* ## Open while it is arriving, closed once it is done
|
|
@@ -64,30 +64,58 @@ export type SettingsNavigationProps = Omit<
|
|
|
64
64
|
* `revealSelected={false}` when the surrounding layout does not use an internal
|
|
65
65
|
* scrolling viewport.
|
|
66
66
|
*/
|
|
67
|
+
function scrollsOn(value: string): boolean {
|
|
68
|
+
return value === 'auto' || value === 'scroll'
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** The nearest-edge delta that brings `[start, end]` inside `[min, max]`. */
|
|
72
|
+
function nearestDelta(start: number, end: number, min: number, max: number): number {
|
|
73
|
+
if (start < min) return start - min
|
|
74
|
+
if (end > max) return end - max
|
|
75
|
+
return 0
|
|
76
|
+
}
|
|
77
|
+
|
|
67
78
|
/**
|
|
68
79
|
* Reveal by scrolling only the ancestors that expose a scroll affordance
|
|
69
80
|
* (`auto` or `scroll`), by the exact nearest-edge delta. `scrollIntoView` also
|
|
70
81
|
* pans `overflow: hidden` ancestors, which are programmatically scrollable but
|
|
71
82
|
* give the user no way back, so one over-pan left earlier rows permanently
|
|
72
83
|
* clipped outside the viewport with no scroll to recover them (#182).
|
|
84
|
+
*
|
|
85
|
+
* All reads happen before any write. Reading a box after a `scrollTop` write
|
|
86
|
+
* forces a fresh layout, and walking the ancestors that way laid the page out
|
|
87
|
+
* once per ancestor on every open (52 ms of forced layout at 4x CPU in the
|
|
88
|
+
* Cortana audit). The row box is read once and shifted by each inner scroll,
|
|
89
|
+
* which is exactly where the browser would report it after that write.
|
|
73
90
|
*/
|
|
74
|
-
function scrollContainerNearest(container: HTMLElement, row: HTMLElement): void {
|
|
75
|
-
const style = window.getComputedStyle(container)
|
|
76
|
-
const box = container.getBoundingClientRect()
|
|
77
|
-
const rowBox = row.getBoundingClientRect()
|
|
78
|
-
if (style.overflowX === 'auto' || style.overflowX === 'scroll') {
|
|
79
|
-
if (rowBox.left < box.left) container.scrollLeft += rowBox.left - box.left
|
|
80
|
-
else if (rowBox.right > box.right) container.scrollLeft += rowBox.right - box.right
|
|
81
|
-
}
|
|
82
|
-
if (style.overflowY === 'auto' || style.overflowY === 'scroll') {
|
|
83
|
-
if (rowBox.top < box.top) container.scrollTop += rowBox.top - box.top
|
|
84
|
-
else if (rowBox.bottom > box.bottom) container.scrollTop += rowBox.bottom - box.bottom
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
91
|
function revealNearest(row: HTMLElement): void {
|
|
92
|
+
const scrollers: { container: HTMLElement; x: boolean; y: boolean; box: DOMRect }[] = []
|
|
89
93
|
for (let container = row.parentElement; container; container = container.parentElement) {
|
|
90
|
-
|
|
94
|
+
const style = window.getComputedStyle(container)
|
|
95
|
+
const x = scrollsOn(style.overflowX)
|
|
96
|
+
const y = scrollsOn(style.overflowY)
|
|
97
|
+
if (x || y) scrollers.push({ container, x, y, box: container.getBoundingClientRect() })
|
|
98
|
+
}
|
|
99
|
+
if (scrollers.length === 0) return
|
|
100
|
+
const rowBox = row.getBoundingClientRect()
|
|
101
|
+
let left = rowBox.left
|
|
102
|
+
let right = rowBox.right
|
|
103
|
+
let top = rowBox.top
|
|
104
|
+
let bottom = rowBox.bottom
|
|
105
|
+
const writes: { container: HTMLElement; dx: number; dy: number }[] = []
|
|
106
|
+
for (const { container, x, y, box } of scrollers) {
|
|
107
|
+
const dx = x ? nearestDelta(left, right, box.left, box.right) : 0
|
|
108
|
+
const dy = y ? nearestDelta(top, bottom, box.top, box.bottom) : 0
|
|
109
|
+
if (dx === 0 && dy === 0) continue
|
|
110
|
+
writes.push({ container, dx, dy })
|
|
111
|
+
left -= dx
|
|
112
|
+
right -= dx
|
|
113
|
+
top -= dy
|
|
114
|
+
bottom -= dy
|
|
115
|
+
}
|
|
116
|
+
for (const { container, dx, dy } of writes) {
|
|
117
|
+
if (dx !== 0) container.scrollLeft += dx
|
|
118
|
+
if (dy !== 0) container.scrollTop += dy
|
|
91
119
|
}
|
|
92
120
|
}
|
|
93
121
|
|
|
@@ -119,8 +147,20 @@ export function SettingsNavigation(props: SettingsNavigationProps) {
|
|
|
119
147
|
}
|
|
120
148
|
|
|
121
149
|
revealCurrent()
|
|
122
|
-
window
|
|
123
|
-
|
|
150
|
+
// A window drag fires resize per pointer move; one reveal per frame is enough.
|
|
151
|
+
let frame = 0
|
|
152
|
+
const onResize = () => {
|
|
153
|
+
if (frame) return
|
|
154
|
+
frame = requestAnimationFrame(() => {
|
|
155
|
+
frame = 0
|
|
156
|
+
revealCurrent()
|
|
157
|
+
})
|
|
158
|
+
}
|
|
159
|
+
window.addEventListener('resize', onResize)
|
|
160
|
+
onCleanup(() => {
|
|
161
|
+
window.removeEventListener('resize', onResize)
|
|
162
|
+
if (frame) cancelAnimationFrame(frame)
|
|
163
|
+
})
|
|
124
164
|
})
|
|
125
165
|
|
|
126
166
|
return (
|
|
@@ -74,11 +74,15 @@ export function SettingsSection(
|
|
|
74
74
|
<Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>
|
|
75
75
|
</div>
|
|
76
76
|
<Show when={local.description}>
|
|
77
|
-
|
|
77
|
+
{(descriptionSlot) => (
|
|
78
|
+
<p class="max-w-prose text-sm text-muted-foreground text-pretty">
|
|
79
|
+
{descriptionSlot()}
|
|
80
|
+
</p>
|
|
81
|
+
)}
|
|
78
82
|
</Show>
|
|
79
83
|
</div>
|
|
80
84
|
<Show when={local.action}>
|
|
81
|
-
<div class="flex shrink-0 items-center gap-2">{
|
|
85
|
+
{(actionSlot) => <div class="flex shrink-0 items-center gap-2">{actionSlot()}</div>}
|
|
82
86
|
</Show>
|
|
83
87
|
</div>
|
|
84
88
|
<div
|
|
@@ -171,9 +175,11 @@ export function SettingsRow(
|
|
|
171
175
|
<Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>
|
|
172
176
|
</div>
|
|
173
177
|
<Show when={local.description}>
|
|
174
|
-
|
|
175
|
-
{
|
|
176
|
-
|
|
178
|
+
{(descriptionSlot) => (
|
|
179
|
+
<p id={descriptionId} class="max-w-prose text-sm text-muted-foreground text-pretty">
|
|
180
|
+
{descriptionSlot()}
|
|
181
|
+
</p>
|
|
182
|
+
)}
|
|
177
183
|
</Show>
|
|
178
184
|
</div>
|
|
179
185
|
<div
|
|
@@ -200,7 +206,9 @@ export function SettingsField(
|
|
|
200
206
|
{local.label}
|
|
201
207
|
</label>
|
|
202
208
|
<Show when={local.description}>
|
|
203
|
-
|
|
209
|
+
{(descriptionSlot) => (
|
|
210
|
+
<p class="max-w-prose text-sm text-muted-foreground text-pretty">{descriptionSlot()}</p>
|
|
211
|
+
)}
|
|
204
212
|
</Show>
|
|
205
213
|
</div>
|
|
206
214
|
<div>{local.children}</div>
|
|
@@ -9,7 +9,7 @@ export { boundText }
|
|
|
9
9
|
* Every field except `title` is optional because a source is only as much as the
|
|
10
10
|
* host knew: a search result has a snippet, a file has no URL, a tool result has
|
|
11
11
|
* neither. Nothing is inferred from what is missing, and two entries that share a
|
|
12
|
-
* URL stay two entries
|
|
12
|
+
* URL stay two entries, the host may have cited two passages of one page, and a
|
|
13
13
|
* list that quietly merged them would also renumber every citation after it.
|
|
14
14
|
*/
|
|
15
15
|
export type Source = Readonly<{
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
/**
|
|
17
17
|
* Sources.
|
|
18
18
|
*
|
|
19
|
-
* The links a reply used, as one `Trace` line
|
|
19
|
+
* The links a reply used, as one `Trace` line, "Used 4 sources", that expands
|
|
20
20
|
* into the list. It lives under the answer with the rest of the agent's activity
|
|
21
21
|
* rather than as a card of its own, because a reader who wants to check a claim
|
|
22
22
|
* will open it and one who does not should not have to scroll past it. For a
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
* claim about an answer that may simply not have been grounded.
|
|
30
30
|
* - **A row is a link only with a safe address.** `http:`, `https:` and `mailto:`
|
|
31
31
|
* without embedded credentials (`safeSourceUrl`). Any other address is not
|
|
32
|
-
* linked and not printed
|
|
32
|
+
* linked and not printed, the row says the address was not linked, so the
|
|
33
33
|
* reader knows something was withheld instead of finding a dead title.
|
|
34
34
|
* - **The host is read from the parsed URL**, never from the title, so a title
|
|
35
35
|
* that reads "docs.example.com" cannot make a link to somewhere else look like it.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Stack traces, read without being trusted or trimmed.
|
|
3
3
|
*
|
|
4
4
|
* A trace is text a runtime wrote about itself, and every language writes it
|
|
5
|
-
* differently. This parses the three a coding agent meets most
|
|
5
|
+
* differently. This parses the three a coding agent meets most: V8/Node
|
|
6
6
|
* (`at fn (file:line:col)`), Python (`File "x", line N, in fn`) and Rust panic
|
|
7
|
-
* backtraces (` 0: symbol` then `at file:line:col`)
|
|
7
|
+
* backtraces (` 0: symbol` then `at file:line:col`), into frames, and does
|
|
8
8
|
* three things a formatter would not:
|
|
9
9
|
*
|
|
10
10
|
* - **It never hides a line.** Every input line ends up in `entries`, as a frame
|
|
@@ -103,7 +103,7 @@ export function splitLocation(location: string): { file: string; line?: number;
|
|
|
103
103
|
/**
|
|
104
104
|
* Split the pre-1.78 Rust panic suffix `'message', location`. The message may
|
|
105
105
|
* contain `', ` itself, and the greedy pattern this replaces took the last
|
|
106
|
-
* occurrence with a non-space behind it
|
|
106
|
+
* occurrence with a non-space behind it, this scan keeps that last-wins
|
|
107
107
|
* answer, in one pass, so a message repeating the marker stays linear.
|
|
108
108
|
*/
|
|
109
109
|
function splitRustOldPanic(after: string): { message: string; location: string } | undefined {
|
|
@@ -193,8 +193,8 @@ function isDigit(code: number): boolean {
|
|
|
193
193
|
*
|
|
194
194
|
* Scanned, not matched. A line repeating the frame shape many times must still
|
|
195
195
|
* cost one pass, so the closing `", line ` is found by walking its candidates
|
|
196
|
-
* left to right. The last valid candidate wins
|
|
197
|
-
* replaces would have settled on
|
|
196
|
+
* left to right. The last valid candidate wins, what the greedy pattern this
|
|
197
|
+
* replaces would have settled on, so a file path containing a quote still
|
|
198
198
|
* parses exactly as it always did.
|
|
199
199
|
*/
|
|
200
200
|
function parsePython(trimmed: string): Draft | undefined {
|
|
@@ -439,7 +439,7 @@ function liftHeader(entries: StackEntry[], format: StackTraceFormat): StackTrace
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
// V8: the block of non-blank lines directly above the first frame. Anything
|
|
442
|
-
// above a blank line
|
|
442
|
+
// above a blank line, Node prints the source line that threw, stays as text.
|
|
443
443
|
if (firstFrame <= 0) return undefined
|
|
444
444
|
let start = firstFrame
|
|
445
445
|
while (start > 0 && entries[start - 1]!.type === 'text' && !isBlank(entries[start - 1]!))
|
|
@@ -467,7 +467,7 @@ export type StackBlock =
|
|
|
467
467
|
* Fold runs of dependency and runtime frames into groups, so a trace reads as
|
|
468
468
|
* the code the reader owns with the framework's frames one click away.
|
|
469
469
|
*
|
|
470
|
-
* A run of one stays a frame
|
|
470
|
+
* A run of one stays a frame, a disclosure around a single line costs more than
|
|
471
471
|
* it saves. When there is no first-party frame at all nothing is grouped:
|
|
472
472
|
* collapsing everything would hide the entire trace behind a button, which is the
|
|
473
473
|
* opposite of what a reader who owns none of the frames needs.
|
|
@@ -46,8 +46,8 @@ import {
|
|
|
46
46
|
*
|
|
47
47
|
* ## It never hides a line
|
|
48
48
|
*
|
|
49
|
-
* Every line of `text` is on screen in order
|
|
50
|
-
* muted text
|
|
49
|
+
* Every line of `text` is on screen in order, as a frame, as a header, or as
|
|
50
|
+
* muted text, and a trace in a format this does not know is shown whole in a
|
|
51
51
|
* `CodeBlock`, which also copies it. Copy writes `text` exactly as given, not a
|
|
52
52
|
* reformatted version of what was parsed.
|
|
53
53
|
*
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
* A frame is a button only when `onOpenFrame` is supplied, and only when the
|
|
57
57
|
* frame names a file; without it frames are plain text, because a control that
|
|
58
58
|
* does nothing is a tab stop with no purpose. The component never builds a path
|
|
59
|
-
* or tries to open one
|
|
59
|
+
* or tries to open one, the trace is untrusted text, and what a path in it means
|
|
60
60
|
* on this machine is the host's call.
|
|
61
61
|
*
|
|
62
62
|
* Text is text throughout: frames, messages and source lines are rendered as text
|
|
@@ -58,25 +58,29 @@ export function Stat(props: StatProps) {
|
|
|
58
58
|
{local.value}
|
|
59
59
|
</Heading>
|
|
60
60
|
<Show when={local.unit}>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
{(unitSlot) => (
|
|
62
|
+
<Text variant="caption" tone="muted">
|
|
63
|
+
{unitSlot()}
|
|
64
|
+
</Text>
|
|
65
|
+
)}
|
|
64
66
|
</Show>
|
|
65
67
|
</div>
|
|
66
68
|
<Show when={local.delta}>
|
|
67
|
-
|
|
68
|
-
<
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
'
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
{(deltaSlot) => (
|
|
70
|
+
<div class="text-foreground flex items-center gap-1 text-xs">
|
|
71
|
+
<Show when={local.deltaTone === 'up' || local.deltaTone === 'down'}>
|
|
72
|
+
<Dynamic
|
|
73
|
+
component={local.deltaTone === 'down' ? ArrowDownRight : ArrowUpRight}
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
class={cn('size-3', {
|
|
76
|
+
'text-success': local.deltaTone === 'up',
|
|
77
|
+
'text-destructive': local.deltaTone === 'down',
|
|
78
|
+
})}
|
|
79
|
+
/>
|
|
80
|
+
</Show>
|
|
81
|
+
<span class="tabular-nums">{deltaSlot()}</span>
|
|
82
|
+
</div>
|
|
83
|
+
)}
|
|
80
84
|
</Show>
|
|
81
85
|
{local.children}
|
|
82
86
|
</div>
|
|
@@ -90,7 +90,8 @@ export function Subagent(props: SubagentProps) {
|
|
|
90
90
|
const steps = resolveChildren(() => local.children)
|
|
91
91
|
const count = () => local.stepCount ?? steps.toArray().length
|
|
92
92
|
const hasError = () => local.errorText !== undefined && local.errorText !== ''
|
|
93
|
-
const
|
|
93
|
+
const result = resolveChildren(() => local.result)
|
|
94
|
+
const hasResult = () => result() != null
|
|
94
95
|
const hasDetail = () => steps.toArray().length > 0 || hasResult() || hasError()
|
|
95
96
|
|
|
96
97
|
const summary = () => {
|
|
@@ -103,13 +104,14 @@ export function Subagent(props: SubagentProps) {
|
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
// A model label is host text and may be long; it must not widen the line.
|
|
107
|
+
const hostMeta = resolveChildren(() => local.meta)
|
|
106
108
|
const meta = () =>
|
|
107
|
-
summary() ||
|
|
109
|
+
summary() || hostMeta() ? (
|
|
108
110
|
<>
|
|
109
111
|
<Show when={summary()}>
|
|
110
112
|
<span class="inline-block max-w-72 truncate align-bottom">{summary()}</span>
|
|
111
113
|
</Show>
|
|
112
|
-
{
|
|
114
|
+
{hostMeta()}
|
|
113
115
|
</>
|
|
114
116
|
) : undefined
|
|
115
117
|
|
|
@@ -127,7 +129,7 @@ export function Subagent(props: SubagentProps) {
|
|
|
127
129
|
<div class="flex min-w-0 flex-col gap-1">
|
|
128
130
|
<p class="m-0 font-medium text-foreground">Result</p>
|
|
129
131
|
<ScrollArea role="region" aria-label={`${local.name} result`} class="max-h-72">
|
|
130
|
-
{
|
|
132
|
+
{result()}
|
|
131
133
|
</ScrollArea>
|
|
132
134
|
</div>
|
|
133
135
|
</Show>
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
* status, and optionally the files it touched. Reach for `Plan` when the list is
|
|
31
31
|
* a proposal the person approves, for `Queue` when it is the agent's running
|
|
32
32
|
* todo list, and for a `Trace` of tool calls when the items are things that
|
|
33
|
-
* *ran
|
|
33
|
+
* *ran*, a Task item is a statement about work, not a record of a call.
|
|
34
34
|
*
|
|
35
35
|
* ## Items wrap; lines do not
|
|
36
36
|
*
|