@kortix/ui 0.15.11 → 0.16.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/dist/_vendor/kortix-shared.js +478 -179
- package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
- package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
- package/dist/access/access/copy-row.d.ts +7 -1
- package/dist/access/access/copy-row.js +2 -2
- package/dist/animated-copy-icon.js +2 -1
- package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
- package/dist/browser/sandbox-browser-chrome.js +1 -1
- package/dist/customize/agents/agent-cover-card.d.ts +1 -1
- package/dist/customize/agents/agent-cover-card.js +10 -2
- package/dist/customize/agents/agent-filter.js +3 -1
- package/dist/customize/agents/agent-overview.d.ts +10 -0
- package/dist/customize/agents/agent-overview.js +5 -4
- package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
- package/dist/customize/agents/agent-page-chrome.js +16 -13
- package/dist/customize/agents/agent-page.js +6 -28
- package/dist/customize/agents/agent-tabs.d.ts +1 -0
- package/dist/customize/agents/agent-tabs.js +1 -0
- package/dist/customize/agents/agents-page.js +3 -3
- package/dist/customize/agents/create-agent-modal.d.ts +9 -0
- package/dist/customize/agents/create-agent-modal.js +21 -3
- package/dist/customize/agents/use-default-agent.js +2 -2
- package/dist/customize/connectors/connector-identity.d.ts +11 -2
- package/dist/customize/connectors/connector-identity.js +16 -4
- package/dist/customize/connectors/connectors-page.js +10 -6
- package/dist/customize/connectors/detail/app-page.js +2 -2
- package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
- package/dist/customize/connectors/install/install-dialog.js +6 -1
- package/dist/customize/connectors/use-agent-access.d.ts +1 -0
- package/dist/customize/evals/eval-compare-view.d.ts +10 -0
- package/dist/customize/evals/eval-compare-view.js +68 -0
- package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
- package/dist/customize/evals/eval-dataset-view.js +81 -0
- package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
- package/dist/customize/evals/eval-datasets-page.js +91 -0
- package/dist/customize/evals/eval-job-view.d.ts +12 -0
- package/dist/customize/evals/eval-job-view.js +360 -0
- package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
- package/dist/customize/evals/eval-jobs-page.js +69 -0
- package/dist/customize/evals/eval-meta.d.ts +97 -0
- package/dist/customize/evals/eval-meta.js +228 -0
- package/dist/customize/evals/eval-task-view.d.ts +13 -0
- package/dist/customize/evals/eval-task-view.js +123 -0
- package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
- package/dist/customize/evals/eval-tasks-page.js +56 -0
- package/dist/customize/evals/eval-ui.d.ts +97 -0
- package/dist/customize/evals/eval-ui.js +153 -0
- package/dist/customize/evals/evals-page.d.ts +10 -0
- package/dist/customize/evals/evals-page.js +56 -0
- package/dist/customize/evals/run-eval-modal.d.ts +28 -0
- package/dist/customize/evals/run-eval-modal.js +167 -0
- package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
- package/dist/customize/project-settings/project-admin-sections.js +6 -1
- package/dist/customize/providers/provider-connect.d.ts +13 -0
- package/dist/customize/providers/provider-connect.js +29 -5
- package/dist/customize/providers/provider-sheet.js +5 -4
- package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
- package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
- package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
- package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
- package/dist/customize/sections/view/git-view.d.ts +19 -1
- package/dist/customize/sections/view/git-view.js +7 -3
- package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
- package/dist/customize/sections/view/manifest-issue-list.js +41 -0
- package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
- package/dist/customize/sections/view/manifest-issues-row.js +39 -0
- package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
- package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
- package/dist/customize/sections/view/secrets-view.d.ts +13 -0
- package/dist/customize/sections/view/secrets-view.js +10 -6
- package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
- package/dist/customize/sections/view/subscription-usage.js +4 -8
- package/dist/customize/settings/settings-tab-header.js +12 -3
- package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
- package/dist/customize/settings/tabs/experimental-tab.js +36 -11
- package/dist/customize/settings/tabs/general-tab.js +1 -1
- package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
- package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
- package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
- package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
- package/dist/customize/settings/tabs/workspace-keys.js +6 -3
- package/dist/customize/shared/capability-page-shell.js +9 -1
- package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
- package/dist/customize/shared/catalog/catalog-card.js +15 -5
- package/dist/customize/shared/customize-tab-bar.js +1 -1
- package/dist/customize/shared/new-entity-menu.d.ts +1 -1
- package/dist/customize/shared/new-entity-menu.js +38 -1
- package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
- package/dist/customize/triggers/runtime-triggers.js +21 -2
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule-view.js +2 -1
- package/dist/files/project/components/drive-explorer.js +33 -70
- package/dist/files/project/components/drive-grid-view.d.ts +2 -31
- package/dist/files/project/components/drive-grid-view.js +12 -22
- package/dist/files/project/components/drive-list-view.d.ts +3 -30
- package/dist/files/project/components/drive-list-view.js +8 -18
- package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
- package/dist/files/project/components/drive-selection-bar.js +13 -20
- package/dist/files/project/components/explorer-listing.d.ts +48 -0
- package/dist/files/project/components/explorer-listing.js +64 -0
- package/dist/files/project/components/file-explorer-page.js +7 -204
- package/dist/files/project/components/file-thumbnail.js +3 -1
- package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
- package/dist/files/project/components/manifest-issue-mark.js +26 -0
- package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
- package/dist/files/project/hooks/use-change-requests.js +17 -0
- package/dist/files/project/manifest-annotations.d.ts +16 -0
- package/dist/files/project/manifest-annotations.js +19 -0
- package/dist/files/project/store/version-store.d.ts +1 -1
- package/dist/files/project/upload-batch.d.ts +20 -0
- package/dist/files/project/upload-batch.js +20 -0
- package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
- package/dist/files/runtime/hooks/use-file-content.js +3 -2
- package/dist/files/runtime/hooks/use-file-list.js +1 -2
- package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
- package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
- package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
- package/dist/files/tree/components/file-tree-item.js +1 -4
- package/dist/files/viewer/file-annotations.d.ts +18 -0
- package/dist/files/viewer/file-annotations.js +21 -0
- package/dist/files/viewer/file-content-renderer.js +1 -1
- package/dist/files/viewer/file-viewer.js +2 -1
- package/dist/files/viewer/index.d.ts +1 -0
- package/dist/files/viewer/index.js +1 -0
- package/dist/files/viewer/use-file-content-state.js +8 -1
- package/dist/i18n/en.d.ts +495 -46
- package/dist/i18n/en.js +536 -87
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
- package/dist/icons/caret-right-solid.d.ts +11 -0
- package/dist/icons/caret-right-solid.js +15 -0
- package/dist/internal/auth/auth-art.d.ts +12 -0
- package/dist/internal/auth/auth-art.js +118 -0
- package/dist/internal/auth/auth-card-shell.d.ts +14 -10
- package/dist/internal/auth/auth-card-shell.js +20 -31
- package/dist/internal/auth/auth-consent.d.ts +3 -1
- package/dist/internal/auth/auth-consent.js +2 -2
- package/dist/internal/auth/auth-primitives.d.ts +26 -1
- package/dist/internal/auth/auth-primitives.js +37 -8
- package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
- package/dist/internal/connector-logo/connector-logo.js +11 -2
- package/dist/internal/files/file-read-retry.d.ts +18 -2
- package/dist/internal/files/file-read-retry.js +42 -4
- package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
- package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
- package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
- package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
- package/dist/internal/hooks/use-reduced-motion.js +12 -0
- package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
- package/dist/internal/hooks/use-save-shortcut.js +28 -0
- package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
- package/dist/internal/layout/connect-mcp-modal.js +9 -4
- package/dist/internal/layout/panel-chrome.d.ts +28 -0
- package/dist/internal/layout/panel-chrome.js +27 -0
- package/dist/internal/layout/project-page-header.js +5 -1
- package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
- package/dist/internal/lib/manifest-health.d.ts +25 -1
- package/dist/internal/lib/manifest-health.js +56 -0
- package/dist/internal/lib/project-preamble.js +1 -1
- package/dist/internal/lib/web-notifications.d.ts +1 -1
- package/dist/internal/lib/web-notifications.js +3 -0
- package/dist/internal/notifications/notification-inbox.js +2 -1
- package/dist/internal/notifications/notification-rows.d.ts +1 -1
- package/dist/internal/notifications/notification-rows.js +15 -1
- package/dist/internal/selection/selection-bar.d.ts +2 -8
- package/dist/internal/selection/selection-bar.js +15 -38
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/browser-recents-store.d.ts +1 -1
- package/dist/internal/stores/current-account-store.d.ts +1 -1
- package/dist/internal/stores/first-chat-store.d.ts +1 -1
- package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
- package/dist/internal/stores/session-browser-store.d.ts +1 -1
- package/dist/internal/stores/session-expanded-store.d.ts +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/session-history-view-store.d.ts +1 -1
- package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
- package/dist/internal/stores/sound-store.d.ts +1 -1
- package/dist/internal/stores/tab-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +9 -1
- package/dist/internal/stores/user-preferences-store.js +2 -0
- package/dist/internal/stores/web-notification-store.d.ts +1 -1
- package/dist/lib/base-ui-compat.js +28 -1
- package/dist/lib/dotmatrix-hooks.d.ts +1 -0
- package/dist/lib/dotmatrix-hooks.js +3 -13
- package/dist/lib/reduced-motion.d.ts +10 -0
- package/dist/lib/reduced-motion.js +104 -0
- package/dist/lib/routes.d.ts +9 -0
- package/dist/lib/routes.js +7 -4
- package/dist/markdown/artifact-link.d.ts +11 -0
- package/dist/markdown/artifact-link.js +62 -0
- package/dist/markdown/code/index.d.ts +1 -1
- package/dist/markdown/code/index.js +1 -1
- package/dist/markdown/code/inline-code.d.ts +1 -1
- package/dist/markdown/code/inline-code.js +1 -1
- package/dist/markdown/genui/components/map-canvas.js +2 -1
- package/dist/markdown/index.d.ts +3 -1
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
- package/dist/markdown/inline-code-text.d.ts +34 -0
- package/dist/markdown/inline-code-text.js +68 -0
- package/dist/markdown/setup-links/approval-decision.js +3 -3
- package/dist/markdown/soft-breaks.d.ts +21 -0
- package/dist/markdown/soft-breaks.js +33 -0
- package/dist/markdown/unified-markdown.d.ts +9 -1
- package/dist/markdown/unified-markdown.js +31 -9
- package/dist/primitives/action-bar.d.ts +50 -0
- package/dist/primitives/action-bar.js +87 -0
- package/dist/primitives/calendar.js +4 -2
- package/dist/primitives/inline-meta.js +2 -2
- package/dist/primitives/kortix-loader.js +2 -1
- package/dist/primitives/modal.d.ts +1 -1
- package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
- package/dist/primitives/paper-wallpaper-shaders.js +6 -0
- package/dist/primitives/resizable.d.ts +1 -1
- package/dist/primitives/resize-seam.d.ts +3 -2
- package/dist/primitives/resize-seam.js +4 -3
- package/dist/primitives/settings-section-header.d.ts +30 -1
- package/dist/primitives/settings-section-header.js +37 -0
- package/dist/primitives/sliding-tab-indicator.js +2 -1
- package/dist/primitives/switch.js +15 -8
- package/dist/primitives/text-shimmer.js +6 -0
- package/dist/primitives/toast-clearance.d.ts +52 -0
- package/dist/primitives/toast-clearance.js +116 -0
- package/dist/primitives/toast.d.ts +3 -1
- package/dist/primitives/toast.js +2 -0
- package/dist/primitives/typed-title.js +1 -1
- package/dist/primitives/wallpaper-shaders.js +1 -1
- package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
- package/dist/session/actions/project-session-list-helpers.js +18 -0
- package/dist/session/agents/agent-model.d.ts +1 -0
- package/dist/session/agents/agent-model.js +2 -1
- package/dist/session/agents/agent-strip.js +10 -4
- package/dist/session/agents/workflow-run-controls.d.ts +27 -4
- package/dist/session/agents/workflow-run-controls.js +63 -10
- package/dist/session/composer/ComposerCard.js +3 -0
- package/dist/session/composer/agent-selector.js +6 -4
- package/dist/session/composer/animated-placeholder.js +2 -1
- package/dist/session/composer/attachment-tile.d.ts +2 -2
- package/dist/session/composer/attachment-tile.js +25 -3
- package/dist/session/composer/composer-agent-access.d.ts +10 -1
- package/dist/session/composer/composer-agent-access.js +18 -4
- package/dist/session/composer/composer-chat-input.js +7 -2
- package/dist/session/composer/composer.d.ts +2 -2
- package/dist/session/composer/composer.js +7 -6
- package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
- package/dist/session/composer/hooks/use-file-search.js +71 -7
- package/dist/session/composer/menus/menu-items.js +6 -2
- package/dist/session/composer/menus/menu-shell.d.ts +3 -1
- package/dist/session/composer/menus/menu-shell.js +2 -2
- package/dist/session/composer/menus/slash-menu.d.ts +7 -0
- package/dist/session/composer/menus/slash-menu.js +48 -1
- package/dist/session/composer/use-instant-session-send.js +7 -1
- package/dist/session/header/session-reminders-indicator.js +3 -2
- package/dist/session/header/session-site-header.js +24 -6
- package/dist/session/media/sandbox-url-detector.js +1 -1
- package/dist/session/models/model-connection-gate.js +2 -1
- package/dist/session/models/model-selector.js +1 -1
- package/dist/session/models/subscription-switcher.d.ts +7 -0
- package/dist/session/models/subscription-switcher.js +52 -10
- package/dist/session/models/subscription-windows.d.ts +2 -0
- package/dist/session/models/subscription-windows.js +2 -0
- package/dist/session/outcomes/session-outcomes-provider.js +14 -7
- package/dist/session/panel/action-panel.js +8 -19
- package/dist/session/panel/easy/app-preview.d.ts +4 -1
- package/dist/session/panel/easy/app-preview.js +95 -33
- package/dist/session/panel/easy/apps-card.js +6 -11
- package/dist/session/panel/easy/change-requests-card.js +1 -1
- package/dist/session/panel/easy/changes-card.d.ts +14 -0
- package/dist/session/panel/easy/changes-card.js +60 -0
- package/dist/session/panel/easy/context-card.d.ts +5 -1
- package/dist/session/panel/easy/context-card.js +13 -28
- package/dist/session/panel/easy/context-meter.d.ts +18 -0
- package/dist/session/panel/easy/context-meter.js +73 -0
- package/dist/session/panel/easy/detail-view.d.ts +1 -1
- package/dist/session/panel/easy/detail-view.js +24 -21
- package/dist/session/panel/easy/easy-panel.js +7 -5
- package/dist/session/panel/easy/file-preview.js +3 -1
- package/dist/session/panel/easy/frame-history.d.ts +91 -0
- package/dist/session/panel/easy/frame-history.js +198 -0
- package/dist/session/panel/easy/outputs-card.d.ts +10 -0
- package/dist/session/panel/easy/outputs-card.js +28 -31
- package/dist/session/panel/easy/panel-card.d.ts +1 -3
- package/dist/session/panel/easy/panel-card.js +24 -8
- package/dist/session/panel/easy/plan-card.js +2 -2
- package/dist/session/panel/easy/step-icon.d.ts +4 -1
- package/dist/session/panel/easy/step-icon.js +2 -2
- package/dist/session/panel/session-action-panel-column.d.ts +5 -0
- package/dist/session/panel/session-action-panel-column.js +198 -101
- package/dist/session/panel/session-desktop.js +5 -1
- package/dist/session/panel/session-diff-viewer.d.ts +3 -1
- package/dist/session/panel/session-diff-viewer.js +7 -4
- package/dist/session/panel/session-panel-provider.js +29 -5
- package/dist/session/panel/shared/derive-panels.js +64 -4
- package/dist/session/status/session-busy-indicator.js +2 -1
- package/dist/session/status/session-error-banner.js +1 -1
- package/dist/session/thread/chat-minimap.js +2 -1
- package/dist/session/thread/session-body.js +4 -1
- package/dist/session/thread/session-chat.js +18 -3
- package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
- package/dist/session/thread/session-turn-meta-rows.js +33 -5
- package/dist/session/thread/transcript.d.ts +1 -2
- package/dist/session/thread/transcript.js +26 -24
- package/dist/session/thread/typing-indicator.d.ts +2 -2
- package/dist/session/thread/typing-indicator.js +10 -3
- package/dist/session/tool/tools/session-spawn-tool.js +3 -3
- package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
- package/dist/session/tool/tools/workflow-run-card.js +31 -7
- package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
- package/dist/session/tool/tools/workflow-run-cost.js +75 -0
- package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
- package/dist/session/tool/tools/workflow-tool.js +40 -15
- package/dist/session/turn/peer-message-row.js +1 -1
- package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
- package/dist/session/turn/queued-prompt-bubbles.js +1 -1
- package/dist/session/turn/throttled-markdown.js +1 -1
- package/dist/styles/theme.css +68 -0
- package/dist/styles.css +1 -1
- package/dist/terminal/pty-terminal.js +1 -1
- package/dist/terminal/session-terminal-connect-bar.js +2 -1
- package/dist/test-utils/intl.d.ts +495 -46
- package/dist/workspace/admin/project-admin-dashboard.js +21 -7
- package/dist/workspace/admin/settings-search-landing.js +2 -1
- package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
- package/dist/workspace/calendar/calendar-dates.js +64 -0
- package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
- package/dist/workspace/calendar/calendar-new-item.js +47 -0
- package/dist/workspace/calendar/calendar-page.d.ts +3 -0
- package/dist/workspace/calendar/calendar-page.js +177 -0
- package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
- package/dist/workspace/calendar/calendar-panel.js +103 -0
- package/dist/workspace/calendar/calendar-people.d.ts +52 -0
- package/dist/workspace/calendar/calendar-people.js +117 -0
- package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
- package/dist/workspace/calendar/calendar-scheduled.js +118 -0
- package/dist/workspace/calendar/calendar-views.d.ts +32 -0
- package/dist/workspace/calendar/calendar-views.js +124 -0
- package/dist/workspace/calendar/calendar-when.d.ts +14 -0
- package/dist/workspace/calendar/calendar-when.js +81 -0
- package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
- package/dist/workspace/calendar/mention-textarea.js +84 -0
- package/dist/workspace/home/access-requests-bell.js +2 -1
- package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
- package/dist/workspace/inbox/workspace-inbox.js +1 -1
- package/dist/workspace/layout/project-files-view.js +2 -1
- package/dist/workspace/memory/memory-page-list.js +1 -1
- package/dist/workspace/new/workspace-handoff.js +2 -1
- package/dist/workspace/projects/modal/project-icon-field.js +2 -1
- package/dist/workspace/session-workspace.js +13 -12
- package/dist/workspace/setup/setup-steps.d.ts +43 -0
- package/dist/workspace/setup/setup-steps.js +38 -0
- package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
- package/dist/workspace/setup/workspace-setup-page.js +124 -0
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
- package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
- package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
- package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
- package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
- package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
- package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
- package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
- package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
- package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
- package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
- package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
- package/dist/workspace/sidebar/footer/promo-card.js +47 -0
- package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
- package/dist/workspace/sidebar/project-nav-items.js +12 -4
- package/dist/workspace/sidebar/project-session-list.js +58 -26
- package/dist/workspace/sidebar/project-sidebar.js +2 -5
- package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
- package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
- package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
- package/dist/workspace/sidebar/session-group-sections.js +121 -41
- package/dist/workspace/sidebar/sidebar-drill.js +6 -0
- package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
- package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
- package/dist/workspace/sidebar/use-workspace-list.js +11 -1
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
- package/dist/workspace/space/space-tab-panels.js +1 -1
- package/dist/workspace/spaces/space-timeline.js +2 -2
- package/package.json +67 -10
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/modules.md +5 -3
- package/dist/session/thread/turn-share.d.ts +0 -16
- package/dist/session/thread/turn-share.js +0 -161
- package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
- package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
- /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import { formatUsdAsCredits } from '../../../_vendor/kortix-shared.js';
|
|
5
|
+
import { useSessionUsage } from '@kortix/sdk/react';
|
|
6
|
+
import Hint from '../../../primitives/hint.js';
|
|
7
|
+
import { useTranslations } from '../../../i18n/index.js';
|
|
8
|
+
/** While the run works, its spend is read again this often. */
|
|
9
|
+
const LIVE_REFRESH_MS = 30_000;
|
|
10
|
+
/** After the run ends, one more read this much later: billing rows of its last minute land late. */
|
|
11
|
+
const SETTLE_REFRESH_MS = 10_000;
|
|
12
|
+
/** What Kortix debited for one usage entry: model calls plus compute; a server before compute was added gives model calls only. */
|
|
13
|
+
function billed(totals) {
|
|
14
|
+
return totals.billed_cost ?? totals.kortix_cost;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What a workflow run cost so far, in USD, from the session usage tree
|
|
18
|
+
* (`GET …/sessions/:id/usage`): model calls and box time that Kortix billed.
|
|
19
|
+
*
|
|
20
|
+
* - A background run: its runner session and every agent session under it
|
|
21
|
+
* (`total`), which is the whole run.
|
|
22
|
+
* - A run in the calling session: only its agents' sessions and their
|
|
23
|
+
* descendants. The caller's own turns are not part of the run.
|
|
24
|
+
*
|
|
25
|
+
* Own-key (BYOK) model spend is not in it: Kortix did not bill it. Exported for tests.
|
|
26
|
+
*/
|
|
27
|
+
export function runSpentUsd(usage, agentSessionIds) {
|
|
28
|
+
if (!agentSessionIds)
|
|
29
|
+
return billed(usage.total);
|
|
30
|
+
const inRun = new Set(agentSessionIds);
|
|
31
|
+
let sum = 0;
|
|
32
|
+
// `sessions` is depth-first, so a parent is decided before its children.
|
|
33
|
+
for (const entry of usage.sessions) {
|
|
34
|
+
if (!inRun.has(entry.session_id) && !(entry.parent_session_id && inRun.has(entry.parent_session_id)))
|
|
35
|
+
continue;
|
|
36
|
+
inRun.add(entry.session_id);
|
|
37
|
+
sum += billed(entry);
|
|
38
|
+
}
|
|
39
|
+
return sum;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* "Spent N credits" for a workflow run card: the actual spend, never an
|
|
43
|
+
* estimate. Renders nothing until the read answers, and nothing for a run that
|
|
44
|
+
* has cost nothing yet. Refreshed every 30 s while the run works, and twice as
|
|
45
|
+
* it ends (at once, then 10 s later), so the final number is the final spend.
|
|
46
|
+
* Inline text for the card's status line: `separated` puts a " · " before it.
|
|
47
|
+
*/
|
|
48
|
+
export function WorkflowRunCost({ projectId, rootSessionId, agentSessionIds, live, separated = false, }) {
|
|
49
|
+
const t = useTranslations('tools.workflow');
|
|
50
|
+
const usage = useSessionUsage(projectId, rootSessionId);
|
|
51
|
+
const { refetch } = usage;
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (!live)
|
|
54
|
+
return;
|
|
55
|
+
const timer = setInterval(() => void refetch(), LIVE_REFRESH_MS);
|
|
56
|
+
return () => clearInterval(timer);
|
|
57
|
+
}, [live, refetch]);
|
|
58
|
+
// The run just ended: read the final spend, then once more for rows that land late.
|
|
59
|
+
const wasLive = useRef(live);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
const ended = wasLive.current && !live;
|
|
62
|
+
wasLive.current = live;
|
|
63
|
+
if (!ended)
|
|
64
|
+
return;
|
|
65
|
+
void refetch();
|
|
66
|
+
const timer = setTimeout(() => void refetch(), SETTLE_REFRESH_MS);
|
|
67
|
+
return () => clearTimeout(timer);
|
|
68
|
+
}, [live, refetch]);
|
|
69
|
+
if (!usage.data)
|
|
70
|
+
return null;
|
|
71
|
+
const usd = runSpentUsd(usage.data, agentSessionIds);
|
|
72
|
+
if (!(usd > 0))
|
|
73
|
+
return null;
|
|
74
|
+
return (_jsx(Hint, { label: t('spentHint'), side: "top", children: _jsxs("span", { "data-testid": "workflow-run-cost", className: "text-muted-foreground min-w-0 truncate tabular-nums", children: [separated && _jsx("span", { "aria-hidden": true, children: '\u00a0·\u00a0' }), t('spent', { credits: formatUsdAsCredits(usd) })] }) }));
|
|
75
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ToolProps } from '../shared/types.js';
|
|
2
|
-
import {
|
|
2
|
+
import type { ProjectSession } from '@kortix/sdk';
|
|
3
3
|
import { type WorkflowRun } from './workflow-run.js';
|
|
4
4
|
/**
|
|
5
5
|
* A live run read from this session's children: each `agent()` is a child session named after
|
|
@@ -16,12 +16,13 @@ import { Button } from '../../../primitives/button.js';
|
|
|
16
16
|
import { useCallback, useContext, useMemo, useState } from 'react';
|
|
17
17
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
18
18
|
import { qk, useNow, useProjectSession, useSessionChildren } from '@kortix/sdk/react';
|
|
19
|
-
import { stopProjectSession } from '@kortix/sdk';
|
|
20
19
|
import { useSessionIds } from '../../../providers/session-ids.js';
|
|
21
20
|
import { RunProgressRing } from './workflow-progress.js';
|
|
22
21
|
import { boardStateOf } from '../../agents/agent-model.js';
|
|
23
22
|
import { WorkflowRunCard } from './workflow-run-card.js';
|
|
24
|
-
import {
|
|
23
|
+
import { WorkflowRunCost } from './workflow-run-cost.js';
|
|
24
|
+
import { isLargeRun, LargeRunBadge, runNotStarted, useLiveWorkflowRun, useRestartAgent, useStopAgent, WorkflowRunControls, } from '../../agents/workflow-run-controls.js';
|
|
25
|
+
import { quietAgents } from './workflow-run-card.js';
|
|
25
26
|
import { countAgents, elapsedMs, formatElapsed, isWorkflowTool, parseWorkflowResult, parseWorkflowRun, } from './workflow-run.js';
|
|
26
27
|
/**
|
|
27
28
|
* The card of pi's `workflow` tool: one script that runs several agents, each in
|
|
@@ -111,6 +112,7 @@ export function WorkflowTool(props) {
|
|
|
111
112
|
// Live: a foreground run while its call runs, or a background run its runner still runs.
|
|
112
113
|
const live = !!run && run.status === 'running' && (fromRunner || (!settled && !run.background && running));
|
|
113
114
|
const restart = useRestartAgent(ids.projectId, controlSessionId, live ? run : null);
|
|
115
|
+
const stopWorkflowAgent = useStopAgent(ids.projectId, controlSessionId, live ? run : null);
|
|
114
116
|
const now = useNow(1_000, live);
|
|
115
117
|
const [open, setOpen] = useState(null);
|
|
116
118
|
const onOpen = useCallback((agent) => {
|
|
@@ -122,7 +124,7 @@ export function WorkflowTool(props) {
|
|
|
122
124
|
const queryClient = useQueryClient();
|
|
123
125
|
const [stopping, setStopping] = useState(() => new Set());
|
|
124
126
|
const stopAgent = useMutation({
|
|
125
|
-
mutationFn: (agent) =>
|
|
127
|
+
mutationFn: (agent) => stopWorkflowAgent(agent),
|
|
126
128
|
onSuccess: () => {
|
|
127
129
|
if (ids.projectId)
|
|
128
130
|
void queryClient.invalidateQueries({ queryKey: qk.project.sessionsScope(ids.projectId) });
|
|
@@ -169,21 +171,28 @@ export function WorkflowTool(props) {
|
|
|
169
171
|
if (run.background && !fromRunner) {
|
|
170
172
|
const runnerSession = run.background.sessionId;
|
|
171
173
|
const openRunner = () => setOpen({ sessionId: runnerSession, title });
|
|
172
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "workflow-run-link", className: "border-border bg-background mt-1.5 flex w-full min-w-0 items-start gap-2.5 rounded-lg border px-4 py-3 text-left text-xs", children: [_jsx("span", { className: "flex h-5 shrink-0 items-center", children: runnerEnded === 'done' ? (_jsx(RunProgressRing, { done: 1, failed: 0, total: 1, ended: "done" })) : runnerEnded === 'stopped' ? (_jsx(RunProgressRing, { done: 0, failed: 0, total: 1, ended: "stopped" })) : runnerEnded === 'failed' ? (_jsx(RunProgressRing, { done: 0, failed: 1, total: 1 })) : (_jsx(RunProgressRing, { done: tally.done, failed: tally.failed, total: Math.max(tally.total, 1) })) }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [_jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [_jsx("span", { className: "text-foreground min-w-0 truncate text-sm font-medium", children: title }), _jsx(RunChips, { run: run })] }),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "workflow-run-link", className: "border-border bg-background mt-1.5 flex w-full min-w-0 flex-wrap items-start gap-x-2.5 gap-y-1.5 rounded-lg border px-4 py-3 text-left text-xs", children: [_jsx("span", { className: "flex h-5 shrink-0 items-center", children: runnerEnded === 'done' ? (_jsx(RunProgressRing, { done: 1, failed: 0, total: 1, ended: "done" })) : runnerEnded === 'stopped' ? (_jsx(RunProgressRing, { done: 0, failed: 0, total: 1, ended: "stopped" })) : runnerEnded === 'failed' ? (_jsx(RunProgressRing, { done: 0, failed: 1, total: 1 })) : (_jsx(RunProgressRing, { done: tally.done, failed: tally.failed, total: Math.max(tally.total, 1) })) }), _jsxs("span", { className: "flex min-w-0 flex-1 basis-64 flex-col gap-0.5", children: [_jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [_jsx("span", { className: "text-foreground min-w-0 truncate text-sm font-medium", children: title }), _jsx(RunChips, { run: run })] }), _jsxs("span", { className: "text-muted-foreground flex min-w-0 items-center", children: [_jsx("span", { className: "max-w-full shrink-0 truncate", children: runnerEnded === 'done'
|
|
175
|
+
? t('status.done')
|
|
176
|
+
: runnerEnded === 'failed'
|
|
177
|
+
? t('didntFinish')
|
|
178
|
+
: runnerEnded === 'stopped'
|
|
179
|
+
? t('status.stopped')
|
|
180
|
+
: [t('status.running'), tally.total > 0 ? t('progress', { done: tally.done, total: tally.total }) : null].filter(Boolean).join(' · ') }), _jsx(WorkflowRunCost, { projectId: ids.projectId, rootSessionId: runnerSession, live: !runnerEnded, separated: true })] })] }), _jsxs(Button, { type: "button", variant: "secondary", size: "xs", "aria-label": t('openRunLabel'), onClick: openRunner, className: "-my-1 ml-auto shrink-0", children: [t('openRun'), _jsx(ArrowUpRightIcon, { "aria-hidden": true, className: "size-3.5 shrink-0" })] })] }), modal] }));
|
|
179
181
|
}
|
|
180
182
|
const counts = countAgents(run.agents);
|
|
181
183
|
const progress = counts.total > 0 ? t('progress', { done: counts.done, total: counts.total }) : undefined;
|
|
182
184
|
const failedPart = counts.failed > 0 ? t('failedSuffix', { count: counts.failed }) : undefined;
|
|
183
|
-
|
|
185
|
+
// Before the run exists (its approval is open) there is no run clock: the card is a question.
|
|
186
|
+
const notStarted = runNotStarted(run);
|
|
187
|
+
const runElapsed = notStarted ? undefined : elapsedMs(run, live, now);
|
|
184
188
|
const elapsed = runElapsed !== undefined && runElapsed >= 1_000 ? formatElapsed(runElapsed) : undefined;
|
|
185
189
|
const join = (...parts) => parts.filter(Boolean).join(' · ') || undefined;
|
|
186
|
-
|
|
190
|
+
// A hold stops new agents only: the ones at work go on, and the line says so.
|
|
191
|
+
// Held agents queued for a slot (`starting`, no session) are not working: only a live child counts.
|
|
192
|
+
const working = run.agents.filter((agent) => agent.status === 'running' || (agent.status === 'starting' && Boolean(agent.sessionId))).length;
|
|
193
|
+
const paused = run.paused ? (working > 0 ? t('holdingWorking', { count: working }) : tm('holding')) : undefined;
|
|
194
|
+
const quiet = live ? quietAgents(run.agents, now) : 0;
|
|
195
|
+
const quietPart = quiet > 0 ? t('quietCount', { count: quiet }) : undefined;
|
|
187
196
|
const subtitle = run.status === 'running'
|
|
188
197
|
? // A call that returned while its run goes on: the run works on without this turn.
|
|
189
198
|
settled || run.background
|
|
@@ -200,13 +209,23 @@ export function WorkflowTool(props) {
|
|
|
200
209
|
const phaseCounts = countAgents(phaseAgents);
|
|
201
210
|
const phaseLine = phase && phaseCounts.total > 0 ? t('phaseProgress', { phase: phase.title, done: phaseCounts.done, total: phaseCounts.total }) : undefined;
|
|
202
211
|
// Ended, the card is one line that says how it ended (Paper F2, F4, F5).
|
|
203
|
-
const
|
|
204
|
-
? join(paused ?? (settled || run.background ? t('background') : undefined), phaseLine ?? progress, failedPart, elapsed)
|
|
212
|
+
const runLine = run.status === 'running'
|
|
213
|
+
? join(paused ?? (settled || run.background ? t('background') : undefined), phaseLine ?? progress, failedPart, quietPart, elapsed)
|
|
205
214
|
: run.status === 'done'
|
|
206
215
|
? join(t('status.done'), counts.total > 0 ? t('agents', { count: counts.total }) : undefined, elapsed)
|
|
207
216
|
: run.status === 'failed'
|
|
208
217
|
? join(t('didntFinish'), counts.total > 0 ? progress : undefined, failedPart, elapsed)
|
|
209
218
|
: join(t('status.stopped'), counts.total > 0 ? progress : undefined, elapsed);
|
|
219
|
+
// Not a run yet, or never one: the approval is open, or the person said no to it (their choice, not a failure).
|
|
220
|
+
const cardSubtitle = run.declined
|
|
221
|
+
? run.declined === 'chat'
|
|
222
|
+
? t('answeredInChat')
|
|
223
|
+
: t('cancelled')
|
|
224
|
+
: run.status === 'running' && run.awaitingApproval
|
|
225
|
+
? t('waitingForYou')
|
|
226
|
+
: notStarted
|
|
227
|
+
? t('status.starting')
|
|
228
|
+
: runLine;
|
|
210
229
|
const callError = status === 'error' ? partError(call) : undefined;
|
|
211
230
|
const runError = run.error ?? callError;
|
|
212
231
|
const output = status === 'completed' ? partOutput(call) : '';
|
|
@@ -214,7 +233,13 @@ export function WorkflowTool(props) {
|
|
|
214
233
|
return (
|
|
215
234
|
// A failed run leads with the shared failure triangle, as every failed call does. A
|
|
216
235
|
// completed call whose run did not fail is not a failure, whatever its output says.
|
|
217
|
-
_jsxs(ToolOutcomeContext.Provider, { value: run.status === 'failed' || status === 'error' ? 'failed' : 'ok', children: [_jsx(WorkflowRunCard, { run: run, title: title, subtitle: cardSubtitle, live: live, now: now, onOpen: onOpen, stop: stop,
|
|
236
|
+
_jsxs(ToolOutcomeContext.Provider, { value: run.status === 'failed' || status === 'error' ? 'failed' : 'ok', children: [_jsx(WorkflowRunCard, { run: run, title: title, subtitle: cardSubtitle, live: live, now: now, onOpen: onOpen, stop: stop,
|
|
237
|
+
// A declined run is one muted line: nothing ran, so there are no rows to show.
|
|
238
|
+
bare: !!run.declined, chips: _jsx(RunChips, { run: run }), result: result ? _jsx(OutputBlock, { text: result.text, markdown: result.kind === 'markdown' }) : undefined, meta: _jsx(WorkflowRunCost, { projectId: ids.projectId, rootSessionId: run.background?.sessionId ?? ids.sessionId,
|
|
239
|
+
// Every attempt's session: a restart or a stall retry keeps what the earlier attempt spent.
|
|
240
|
+
agentSessionIds: run.background
|
|
241
|
+
? undefined
|
|
242
|
+
: run.agents.flatMap((agent) => [...(agent.earlierSessionIds ?? []), ...(agent.sessionId ? [agent.sessionId] : [])]), live: live, separated: !!cardSubtitle }), actions: _jsxs(_Fragment, { children: [!run.declined && (live || (!!run.runId && !run.name && !!ids.sessionId)) && (_jsx(WorkflowRunControls, { projectId: ids.projectId, controlSessionId: live ? controlSessionId : undefined, ownerSessionId: ids.sessionId, run: run, appearance: "text" })), run.background && (_jsxs(Button, { type: "button", variant: "secondary", size: "xs", "aria-label": t('openRunLabel'), onClick: () => setOpen({ sessionId: run.background.sessionId, title }), className: "ml-1", children: [t('openRun'), _jsx(ArrowUpRightIcon, { "aria-hidden": true, className: "size-3.5 shrink-0" })] }))] }) }), runError && run.status !== 'running' && !run.declined && (_jsx("div", { className: "mt-2 px-4 text-sm", children: _jsx(AgentFailure, { sentence: t('failedSentence'), raw: runError }) })), modal] }));
|
|
218
243
|
}
|
|
219
244
|
/** How a background run ended, read from its runner session; null while it still runs. */
|
|
220
245
|
function runnerOutcome(state) {
|
|
@@ -45,5 +45,5 @@ export function PeerMessageRow({ info, actions }) {
|
|
|
45
45
|
: idle
|
|
46
46
|
? t('kind.finished')
|
|
47
47
|
: t('kind.message');
|
|
48
|
-
return (_jsxs("div", { "data-testid": "peer-message-turn", "data-peer-kind": info.kind, "data-peer-message-id": info.messageId, className: "flex min-w-0 flex-col gap-1", children: [_jsx(AgentRowScope, { children: _jsx(BasicTool, { icon: _jsx(AgentFace, { handle: from }), trigger: _jsx(AgentTrigger, { title: name, subtitle: idle ? preview : info.summary?.trim() }), triggerAction: _jsx(AgentStatus, { status: idle ? 'done' : undefined, label: kindWord, opens: !!body }), defaultOpen: !idle, children: body ? (_jsx(AgentRowBody, { children: _jsx("div", { "data-slot": "peer-message-body", className: "min-w-0", children: _jsx(UnifiedMarkdown, { content: body, trust: "agent", isStreaming: false }) }) })) : undefined }) }), actions] }));
|
|
48
|
+
return (_jsxs("div", { "data-testid": "peer-message-turn", "data-peer-kind": info.kind, "data-peer-message-id": info.messageId, className: "flex min-w-0 flex-col gap-1", children: [_jsx(AgentRowScope, { children: _jsx(BasicTool, { icon: _jsx(AgentFace, { handle: from }), trigger: _jsx(AgentTrigger, { title: name, subtitle: idle ? preview : info.summary?.trim() }), triggerAction: _jsx(AgentStatus, { status: idle ? 'done' : undefined, label: kindWord, opens: !!body }), defaultOpen: !idle, children: body ? (_jsx(AgentRowBody, { children: _jsx("div", { "data-slot": "peer-message-body", className: "min-w-0", children: _jsx(UnifiedMarkdown, { content: body, trust: "agent", isStreaming: false, lineBreaks: "chat" }) }) })) : undefined }) }), actions] }));
|
|
49
49
|
}
|
|
@@ -3,14 +3,15 @@ export declare const QUEUED_BUBBLE_OPACITY_CLASS = "[&_.text-foreground]:text-mu
|
|
|
3
3
|
/** `interrupted`: the runtime holds the message but a Stop ended the turn
|
|
4
4
|
* before a step opened under it — it runs with the next send. */
|
|
5
5
|
export type QueuedPromptState = 'queued' | 'interrupted';
|
|
6
|
-
|
|
6
|
+
/** `unsent`: sent while offline; the POST waits for the network (finding 07). */
|
|
7
|
+
export type QueuedPromptStatusState = QueuedPromptState | 'failed' | 'sending' | 'held' | 'unsent';
|
|
7
8
|
/** Ring tone for a queued bubble. `pending` covers waiting and sending, so a
|
|
8
9
|
* delivery retry that flips a row between them never changes the ring. */
|
|
9
10
|
type QueuedBubbleTone = 'pending' | 'held' | 'failed';
|
|
10
11
|
export declare function queuedBubbleTone(state: QueuedPromptStatusState | null | undefined): QueuedBubbleTone | undefined;
|
|
11
12
|
/** Show delivery progress on the message itself, not only on the send button. */
|
|
12
13
|
export declare function QueuedPromptProgress({ state }: {
|
|
13
|
-
state: 'queued' | 'sending' | 'interrupted';
|
|
14
|
+
state: 'queued' | 'sending' | 'interrupted' | 'unsent';
|
|
14
15
|
}): import("react").JSX.Element;
|
|
15
16
|
/**
|
|
16
17
|
* A delivery failure retains its cause and recovery actions.
|
|
@@ -18,7 +18,7 @@ export function queuedBubbleTone(state) {
|
|
|
18
18
|
/** Show delivery progress on the message itself, not only on the send button. */
|
|
19
19
|
export function QueuedPromptProgress({ state }) {
|
|
20
20
|
const t = useTranslations('threads');
|
|
21
|
-
return (_jsx(InlineMeta, { children: _jsx("span", { role: "status", "data-queued-status": state, className: "text-muted-foreground text-xs", children: state === 'sending' ? t('sending') : t('queued') }) }));
|
|
21
|
+
return (_jsx(InlineMeta, { children: _jsx("span", { role: "status", "data-queued-status": state, className: "text-muted-foreground text-xs", children: state === 'unsent' ? t('notSentYet') : state === 'sending' ? t('sending') : t('queued') }) }));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A delivery failure retains its cause and recovery actions.
|
|
@@ -115,7 +115,7 @@ function ThrottledMarkdownImpl({ content, isStreaming, revealKey, response = fal
|
|
|
115
115
|
if (streaming && !displayContent)
|
|
116
116
|
return null;
|
|
117
117
|
// Session transcript assistant text: the one renderer (with SandboxUrlDetector) that opts in to generative UI.
|
|
118
|
-
return _jsx(UnifiedMarkdown, { content: displayContent, trust: "agent", isStreaming: streaming, genui: true });
|
|
118
|
+
return _jsx(UnifiedMarkdown, { content: displayContent, trust: "agent", isStreaming: streaming, genui: true, lineBreaks: "chat" });
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
121
|
* Every prop is a primitive, so this memo bites immediately: a settled
|
package/dist/styles/theme.css
CHANGED
|
@@ -32,6 +32,74 @@
|
|
|
32
32
|
|
|
33
33
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
34
34
|
|
|
35
|
+
/* Reduce motion (Settings ▸ Preferences). The person's switch puts
|
|
36
|
+
`data-reduce-motion` on <html>; it counts the same as the OS
|
|
37
|
+
`prefers-reduced-motion: reduce`. Both Tailwind motion variants follow it, so
|
|
38
|
+
every `motion-reduce:` / `motion-safe:` class in the app obeys the switch
|
|
39
|
+
without a second class. See `internal/hooks/use-reduced-motion.ts`. */
|
|
40
|
+
@custom-variant motion-reduce {
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
@slot;
|
|
43
|
+
}
|
|
44
|
+
&:where([data-reduce-motion] *) {
|
|
45
|
+
@slot;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@custom-variant motion-safe {
|
|
49
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
50
|
+
&:where(:root:not([data-reduce-motion]) *) {
|
|
51
|
+
@slot;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* The switch stops every CSS animation and transition: shimmer sweeps, pulses,
|
|
57
|
+
skeletons, enter/exit fades, hover fades, smooth scroll. Durations collapse to
|
|
58
|
+
0.01ms instead of `none`, so each animation still lands on its end state and
|
|
59
|
+
still fires `animationend` / `transitionend` — Radix presence and exit
|
|
60
|
+
handlers wait for those events. Infinite loops play once and stop.
|
|
61
|
+
Background-position sweeps (the shimmer) repaint every frame and never reach
|
|
62
|
+
the compositor; this rule is where the switch saves the most work. */
|
|
63
|
+
:root[data-reduce-motion] *,
|
|
64
|
+
:root[data-reduce-motion] *::before,
|
|
65
|
+
:root[data-reduce-motion] *::after {
|
|
66
|
+
animation-duration: 0.01ms !important;
|
|
67
|
+
animation-delay: 0s !important;
|
|
68
|
+
animation-iteration-count: 1 !important;
|
|
69
|
+
transition-duration: 0.01ms !important;
|
|
70
|
+
transition-delay: 0s !important;
|
|
71
|
+
scroll-behavior: auto !important;
|
|
72
|
+
}
|
|
73
|
+
:root[data-reduce-motion] {
|
|
74
|
+
scroll-behavior: auto !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* A loader still has to say "working". The spinners keep the calm,
|
|
78
|
+
constant-speed spin the OS reduced-motion rule below gives them — one
|
|
79
|
+
compositor-only rotation, no repaint. */
|
|
80
|
+
:root[data-reduce-motion] .animate-spinner-orbit,
|
|
81
|
+
:root[data-reduce-motion] .animate-spinner-spin {
|
|
82
|
+
animation: spinner-orbit 1.4s linear infinite !important;
|
|
83
|
+
}
|
|
84
|
+
:root[data-reduce-motion] .animate-spinner-dash {
|
|
85
|
+
animation: none !important;
|
|
86
|
+
stroke-dashoffset: 34;
|
|
87
|
+
transform: none;
|
|
88
|
+
}
|
|
89
|
+
:root[data-reduce-motion] .animate-spinner-spokes {
|
|
90
|
+
animation: spinner-spokes 1.4s linear infinite !important;
|
|
91
|
+
}
|
|
92
|
+
:root[data-reduce-motion] .animate-spin {
|
|
93
|
+
animation-duration: 1s !important;
|
|
94
|
+
animation-iteration-count: infinite !important;
|
|
95
|
+
}
|
|
96
|
+
/* `KortixLoader` spins through an inline `animation`; its duration rides in
|
|
97
|
+
`--kx-spin-duration` so this rule can give it back. */
|
|
98
|
+
:root[data-reduce-motion] [data-kx-spinner] {
|
|
99
|
+
animation-duration: var(--kx-spin-duration, 1s) !important;
|
|
100
|
+
animation-iteration-count: infinite !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
35
103
|
/* Host-neutral base rules. Every host gets them, so the page itself follows the
|
|
36
104
|
tokens: the body paints --background and --foreground (a white-label
|
|
37
105
|
override of either reaches the page), borders and outlines default to
|