@kortix/ui 0.15.10 → 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 +769 -76
- package/dist/_vendor/shared/app-config.d.ts +6 -30
- package/dist/_vendor/shared/channel-descriptors.d.ts +0 -34
- package/dist/_vendor/shared/channel-header.d.ts +2 -1
- package/dist/_vendor/shared/connector-sections.d.ts +0 -25
- package/dist/_vendor/shared/file-tags.d.ts +2 -1
- package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
- package/dist/_vendor/shared/pasted-content.d.ts +0 -4
- package/dist/_vendor/shared/pixel-mark.d.ts +0 -17
- package/dist/_vendor/shared/project-glyphs.d.ts +0 -1
- 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-model-view.d.ts +11 -1
- package/dist/customize/agents/agent-model-view.js +12 -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 +25 -34
- package/dist/customize/agents/agent-tabs.d.ts +3 -0
- package/dist/customize/agents/agent-tabs.js +3 -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/detail/connector-triggers.js +1 -1
- 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 +2 -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/component/teams-byo-wizard.js +4 -1
- 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 +33 -3
- package/dist/customize/triggers/schedule/event-trigger-copy.js +1 -1
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule/schedule-detail-sheet.js +5 -4
- package/dist/customize/triggers/schedule/then-fields.d.ts +5 -1
- package/dist/customize/triggers/schedule/then-fields.js +23 -3
- package/dist/customize/triggers/schedule/trigger-callouts.js +1 -1
- package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +27 -0
- package/dist/customize/triggers/schedule/trigger-composer-logic.js +51 -5
- package/dist/customize/triggers/schedule/trigger-composer.js +19 -13
- package/dist/customize/triggers/schedule/trigger-edit-logic.js +25 -5
- package/dist/customize/triggers/schedule/trigger-filter.d.ts +10 -3
- package/dist/customize/triggers/schedule/trigger-filter.js +7 -6
- package/dist/customize/triggers/schedule/trigger-readonly.js +1 -1
- package/dist/customize/triggers/schedule/trigger-runs-panel.js +1 -1
- package/dist/customize/triggers/schedule/when-event.js +1 -1
- package/dist/customize/triggers/schedule/when-schedule.d.ts +5 -1
- package/dist/customize/triggers/schedule/when-schedule.js +16 -1
- package/dist/customize/triggers/schedule-view.js +6 -3
- 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 +544 -46
- package/dist/i18n/en.js +593 -95
- 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/layout/project-settings-nav.d.ts +17 -0
- package/dist/internal/layout/project-settings-nav.js +24 -0
- package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
- package/dist/internal/lib/capability-tab-routes.d.ts +8 -0
- package/dist/internal/lib/capability-tab-routes.js +11 -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/composer-prefill-store.d.ts +7 -0
- package/dist/internal/stores/composer-prefill-store.js +1 -0
- 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/actions/session-label.js +2 -2
- 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.d.ts +10 -5
- package/dist/session/agents/agent-strip.js +49 -15
- package/dist/session/agents/held-messages.d.ts +6 -2
- package/dist/session/agents/held-messages.js +6 -3
- 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 +7 -1
- package/dist/session/composer/agent-selector.d.ts +2 -0
- package/dist/session/composer/agent-selector.js +11 -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.d.ts +1 -0
- package/dist/session/composer/composer-chat-input.js +7 -2
- package/dist/session/composer/composer-logic.d.ts +7 -0
- package/dist/session/composer/composer-logic.js +18 -0
- package/dist/session/composer/composer-reset.d.ts +8 -14
- package/dist/session/composer/composer-toolbar.d.ts +3 -1
- package/dist/session/composer/composer-toolbar.js +3 -3
- package/dist/session/composer/composer.d.ts +9 -2
- package/dist/session/composer/composer.js +24 -9
- package/dist/session/composer/editor/composer-editor.js +6 -4
- 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.d.ts +3 -1
- package/dist/session/header/session-site-header.js +27 -8
- package/dist/session/media/sandbox-url-detector.js +1 -1
- package/dist/session/models/connect-model-step.d.ts +29 -0
- package/dist/session/models/connect-model-step.js +50 -0
- 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/models/use-workspace-model-gate.d.ts +11 -0
- package/dist/session/models/use-workspace-model-gate.js +62 -0
- package/dist/session/models/workspace-model-gate.d.ts +46 -0
- package/dist/session/models/workspace-model-gate.js +66 -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/prompts/session-connect-card.d.ts +63 -0
- package/dist/session/prompts/{session-connect-prompt.js → session-connect-card.js} +53 -42
- 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 +311 -300
- 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 +3 -3
- package/dist/session/thread/transcript.js +33 -27
- package/dist/session/thread/typing-indicator.d.ts +2 -2
- package/dist/session/thread/typing-indicator.js +10 -3
- package/dist/session/tool/tool-part-renderer.js +7 -2
- package/dist/session/tool/tools/kortix-action-tool.js +10 -2
- 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/session/turn/turn-viewport.d.ts +66 -10
- package/dist/session/turn/turn-viewport.js +92 -12
- package/dist/session/turn/user-message.js +7 -5
- 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 +544 -46
- package/dist/workspace/admin/project-admin-dashboard.js +23 -11
- 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/home/existing-repo-setup-prompt.d.ts +5 -8
- package/dist/workspace/home/existing-repo-setup-prompt.js +16 -42
- package/dist/workspace/home/no-agent-home.d.ts +3 -1
- package/dist/workspace/home/no-agent-home.js +2 -2
- 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/layout/project-home.js +16 -9
- 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/session-grouping.d.ts +1 -1
- package/dist/workspace/sidebar/session-grouping.js +1 -1
- 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-details-panel.js +2 -2
- package/dist/workspace/spaces/space-timeline.js +2 -2
- package/dist/workspace/spaces/space-triggers.js +2 -2
- package/dist/workspace/spaces/space-view.js +11 -5
- package/package.json +79 -10
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/modules.md +5 -3
- package/dist/session/prompts/session-connect-prompt.d.ts +0 -40
- 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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { cn } from '../lib/utils.js';
|
|
2
2
|
/**
|
|
3
|
-
* The resize seam:
|
|
4
|
-
*
|
|
3
|
+
* The resize seam: one plain 1px line in the ring blue (`--ring`) on a drag
|
|
4
|
+
* edge, drawn exactly over the hairline it replaces. No taper, no fade: a
|
|
5
|
+
* docked edge is a straight rule, and the seam is that rule lit. Drawn by
|
|
5
6
|
* `before:`, so a caller keeps `after:` for its hit strip. Hidden at rest; the
|
|
6
7
|
* caller reveals it (`before:opacity-100`) on hover, focus and drag. Opacity
|
|
7
8
|
* only: a width or position transition would animate layout on hover.
|
|
@@ -9,4 +10,4 @@ import { cn } from '../lib/utils.js';
|
|
|
9
10
|
* The sidebar rail (`sidebar-panel.tsx`) and every `ResizableHandle` draw it,
|
|
10
11
|
* so every drag-to-resize edge in the app looks the same.
|
|
11
12
|
*/
|
|
12
|
-
export const RESIZE_SEAM_CLASS = cn('before:pointer-events-none before:absolute before:inset-y-0 before:left-1/2 before:z-10 before:w-
|
|
13
|
+
export const RESIZE_SEAM_CLASS = cn('before:pointer-events-none before:absolute before:inset-y-0 before:left-1/2 before:z-10 before:w-px before:-translate-x-1/2 before:opacity-0', 'before:bg-ring before:transition-opacity before:duration-fast before:ease-out', 'motion-reduce:before:transition-none');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* The one section header used across the Settings panel: title on the left,
|
|
4
4
|
* optional description under it, one action on the right. Destructive rows use
|
|
@@ -11,3 +11,32 @@ export declare function SettingsSectionHeader({ title, description, action, clas
|
|
|
11
11
|
action?: ReactNode;
|
|
12
12
|
className?: string;
|
|
13
13
|
}): import("react").JSX.Element;
|
|
14
|
+
export declare const SettingsPageTitleProvider: import("react").Provider<string | null>;
|
|
15
|
+
export declare function useSettingsPageTitle(): string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Every Workspace settings page's column: one gutter and one top offset, left
|
|
18
|
+
* aligned, so the title sits at the same x and y on every section. A page sets
|
|
19
|
+
* only its own max width inside it (`max-w-2xl` a form, `max-w-5xl` a library,
|
|
20
|
+
* none a table).
|
|
21
|
+
*/
|
|
22
|
+
export declare const SETTINGS_PAGE_COLUMN_CLASS = "w-full px-4 pt-12 pb-20 sm:px-12";
|
|
23
|
+
/**
|
|
24
|
+
* The one page-title rung of Workspace settings: the brand's section page
|
|
25
|
+
* title (`typography.md`, Roles). `text-2xl` is the detail-view rung.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SETTINGS_PAGE_TITLE_CLASS = "text-foreground text-xl font-medium text-balance";
|
|
28
|
+
/**
|
|
29
|
+
* The page header of a Workspace settings section: the `<h1>`, one line of
|
|
30
|
+
* description under it, and the page's actions on the right. Inside Workspace
|
|
31
|
+
* settings the title is the rail row's label (`SettingsPageTitleProvider`),
|
|
32
|
+
* whatever the pane passes.
|
|
33
|
+
*/
|
|
34
|
+
export declare function SettingsPageHeader({ title, titleAccessory, description, action, className, }: {
|
|
35
|
+
title: ReactNode;
|
|
36
|
+
/** Right after the title: an info button. */
|
|
37
|
+
titleAccessory?: ReactNode;
|
|
38
|
+
description?: ReactNode;
|
|
39
|
+
/** The page's controls (search, a primary button), one group on the right. */
|
|
40
|
+
action?: ReactNode;
|
|
41
|
+
className?: string;
|
|
42
|
+
}): import("react").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { cn } from '../lib/utils.js';
|
|
4
|
+
import { createContext, useContext } from 'react';
|
|
3
5
|
/**
|
|
4
6
|
* The one section header used across the Settings panel: title on the left,
|
|
5
7
|
* optional description under it, one action on the right. Destructive rows use
|
|
@@ -9,3 +11,38 @@ import { cn } from '../lib/utils.js';
|
|
|
9
11
|
export function SettingsSectionHeader({ title, description, action, className, }) {
|
|
10
12
|
return (_jsxs("div", { className: cn('flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4', className), children: [_jsxs("div", { className: "flex min-w-0 flex-col gap-1 text-base", children: [_jsx("h2", { className: "font-regular text-foreground-strong text-base text-balance lg:text-xl", children: title }), description ? (_jsx("p", { className: "font-regular text-foreground-weak max-w-[410px] text-sm text-pretty", children: description })) : null] }), action ? (_jsx("div", { className: "flex w-full min-w-0 items-center gap-4 sm:w-auto sm:justify-end", children: action })) : null] }));
|
|
11
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* The title of the Workspace settings page on screen: its rail row's label.
|
|
16
|
+
* `ProjectAdminDashboard` provides it around the open section, so every pane
|
|
17
|
+
* that draws a page header (`SettingsPageHeader`, `SettingsTabHeader`,
|
|
18
|
+
* `CapabilityPageShell`, the account panes) shows the word the person clicked:
|
|
19
|
+
* "Git", not "Git repo"; "Sandbox", not "Sandbox templates". `null` outside
|
|
20
|
+
* Workspace settings, where each pane keeps its own title.
|
|
21
|
+
*/
|
|
22
|
+
const SettingsPageTitleContext = createContext(null);
|
|
23
|
+
export const SettingsPageTitleProvider = SettingsPageTitleContext.Provider;
|
|
24
|
+
export function useSettingsPageTitle() {
|
|
25
|
+
return useContext(SettingsPageTitleContext);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Every Workspace settings page's column: one gutter and one top offset, left
|
|
29
|
+
* aligned, so the title sits at the same x and y on every section. A page sets
|
|
30
|
+
* only its own max width inside it (`max-w-2xl` a form, `max-w-5xl` a library,
|
|
31
|
+
* none a table).
|
|
32
|
+
*/
|
|
33
|
+
export const SETTINGS_PAGE_COLUMN_CLASS = 'w-full px-4 pt-12 pb-20 sm:px-12';
|
|
34
|
+
/**
|
|
35
|
+
* The one page-title rung of Workspace settings: the brand's section page
|
|
36
|
+
* title (`typography.md`, Roles). `text-2xl` is the detail-view rung.
|
|
37
|
+
*/
|
|
38
|
+
export const SETTINGS_PAGE_TITLE_CLASS = 'text-foreground text-xl font-medium text-balance';
|
|
39
|
+
/**
|
|
40
|
+
* The page header of a Workspace settings section: the `<h1>`, one line of
|
|
41
|
+
* description under it, and the page's actions on the right. Inside Workspace
|
|
42
|
+
* settings the title is the rail row's label (`SettingsPageTitleProvider`),
|
|
43
|
+
* whatever the pane passes.
|
|
44
|
+
*/
|
|
45
|
+
export function SettingsPageHeader({ title, titleAccessory, description, action, className, }) {
|
|
46
|
+
const navTitle = useSettingsPageTitle();
|
|
47
|
+
return (_jsxs("header", { className: cn('flex min-w-0 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-4', className), children: [_jsxs("div", { className: "min-w-0 space-y-1", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-1", children: [_jsx("h1", { className: SETTINGS_PAGE_TITLE_CLASS, children: navTitle ?? title }), titleAccessory] }), description ? (_jsx("p", { className: "text-muted-foreground max-w-xl text-sm text-pretty", children: description })) : null] }), action ? _jsx("div", { className: "flex min-w-0 shrink-0 items-center gap-2", children: action }) : null] }));
|
|
48
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from '../lib/utils.js';
|
|
4
|
-
import { m
|
|
4
|
+
import { m } from 'motion/react';
|
|
5
|
+
import { useReducedMotion } from '../lib/reduced-motion.js';
|
|
5
6
|
import { useCallback, useLayoutEffect, useRef, useState, } from 'react';
|
|
6
7
|
const EMPTY_RECT = { x: 0, y: 0, width: 0, height: 0 };
|
|
7
8
|
/**
|
|
@@ -27,13 +27,16 @@ const Switch = forwardRef(({ label, checked, onCheckedChange, disabled = false,
|
|
|
27
27
|
useEffect(() => {
|
|
28
28
|
hasMounted.current = true;
|
|
29
29
|
}, []);
|
|
30
|
-
|
|
30
|
+
// A disabled switch does not move under the pointer: no hover pill, no press squash.
|
|
31
|
+
const isPressed = pressed && !disabled;
|
|
32
|
+
const isHovered = hovered && !disabled;
|
|
33
|
+
const thumbWidth = isPressed
|
|
31
34
|
? THUMB_SIZE + PRESS_EXTEND
|
|
32
|
-
:
|
|
35
|
+
: isHovered
|
|
33
36
|
? THUMB_SIZE + PILL_EXTEND
|
|
34
37
|
: THUMB_SIZE;
|
|
35
|
-
const thumbHeight =
|
|
36
|
-
const thumbY =
|
|
38
|
+
const thumbHeight = isPressed ? THUMB_SIZE - PRESS_SHRINK : THUMB_SIZE;
|
|
39
|
+
const thumbY = isPressed ? THUMB_OFFSET + PRESS_SHRINK / 2 : THUMB_OFFSET;
|
|
37
40
|
const extraWidth = thumbWidth - THUMB_SIZE;
|
|
38
41
|
const thumbX = isChecked ? THUMB_OFFSET + THUMB_TRAVEL - extraWidth : THUMB_OFFSET;
|
|
39
42
|
useEffect(() => {
|
|
@@ -102,13 +105,17 @@ const Switch = forwardRef(({ label, checked, onCheckedChange, disabled = false,
|
|
|
102
105
|
pointerStart.current = null;
|
|
103
106
|
}, [isChecked, onCheckedChange, motionX]);
|
|
104
107
|
const switchControl = (_jsx(SwitchPrimitive.Root, { ref: ref, id: id, checked: checked, disabled: disabled, tabIndex: 0, className: cn('group/switch relative h-[20px] w-[34px] shrink-0 touch-none rounded-full outline-none', // pointer comes from the global rule; disabled keeps the default cursor
|
|
105
|
-
'transition-colors duration-80',
|
|
108
|
+
'transition-colors duration-80',
|
|
109
|
+
// Disabled reads as unavailable: half opacity (a labelled switch dims
|
|
110
|
+
// its whole row below instead). The cursor stays default: globals.css
|
|
111
|
+
// forces it on every disabled control.
|
|
112
|
+
!label && 'disabled:opacity-50', 'focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:ring-1 focus-visible:ring-offset-2',
|
|
106
113
|
// Colours come from `data-state` (checked / unchecked), never from JS state.
|
|
107
114
|
// Off is translucent ink, so one class reads in both themes and on
|
|
108
115
|
// any panel. Thumb vs track (WCAG 1.4.11, 3:1), worst of page /
|
|
109
116
|
// card / muted: rest 3.13:1, hover 4.13:1. On: white thumb 3.23:1.
|
|
110
|
-
'data-[state=checked]:bg-kortix-blue', 'data-[state=unchecked]:bg-foreground/10 data-[state=unchecked]:hover:bg-foreground/15', !label && className), onPointerEnter: (e) => {
|
|
111
|
-
if (e.pointerType === 'mouse')
|
|
117
|
+
'data-[state=checked]:bg-kortix-blue', 'data-[state=unchecked]:bg-foreground/10 data-[state=unchecked]:enabled:hover:bg-foreground/15', !label && className), onPointerEnter: (e) => {
|
|
118
|
+
if (e.pointerType === 'mouse' && !disabled)
|
|
112
119
|
setHovered(true);
|
|
113
120
|
}, onPointerLeave: () => setHovered(false), onPointerDown: handlePointerDown, onPointerMove: handlePointerMove, onPointerUp: handlePointerUp, onCheckedChange: (nextChecked) => {
|
|
114
121
|
if (didDrag.current)
|
|
@@ -116,7 +123,7 @@ const Switch = forwardRef(({ label, checked, onCheckedChange, disabled = false,
|
|
|
116
123
|
onCheckedChange?.(nextChecked);
|
|
117
124
|
}, ...props, nativeButton: true, render: controlRender(checkedState), children: _jsx(SwitchPrimitive.Thumb, { render: stateRender('span', checkedState, _jsx(m.span, { className: cn('duration-fast absolute top-0 left-0 rounded-full shadow-sm transition-colors', 'data-[state=checked]:bg-white',
|
|
118
125
|
// A white thumb on the light off track would be ~1.25:1.
|
|
119
|
-
'data-[state=unchecked]:bg-foreground/45 group-hover/switch:data-[state=unchecked]:bg-foreground/55'), initial: false,
|
|
126
|
+
'data-[state=unchecked]:bg-foreground/45 group-enabled/switch:group-hover/switch:data-[state=unchecked]:bg-foreground/55'), initial: false,
|
|
120
127
|
// Motion value binding for drag, not a colour or layout style.
|
|
121
128
|
style: { x: motionX }, animate: {
|
|
122
129
|
y: thumbY,
|
|
@@ -66,6 +66,12 @@ const SHIMMER_STYLE = `
|
|
|
66
66
|
-webkit-text-fill-color: var(--base-color) !important;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
:root[data-reduce-motion] [data-kx-text-shimmer] {
|
|
70
|
+
animation: none !important;
|
|
71
|
+
background-image: none !important;
|
|
72
|
+
color: var(--base-color) !important;
|
|
73
|
+
-webkit-text-fill-color: var(--base-color) !important;
|
|
74
|
+
}
|
|
69
75
|
`;
|
|
70
76
|
function TextShimmerComponent({ children, as: Component = 'span', className, duration = 2, spread = 2, repeat = Infinity, }) {
|
|
71
77
|
const dynamicSpread = children.length * spread;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Keeps bottom-right toasts clear of a composer docked at the bottom of the
|
|
4
|
+
* window. The app's `<Toaster>` reads its bottom offset from
|
|
5
|
+
* `--toast-offset-bottom` (`apps/web/src/app/[locale]/layout.tsx`); a docked
|
|
6
|
+
* composer sets that variable to the distance from its top edge to the window
|
|
7
|
+
* bottom while it shares the toast lane. Before this, a toast covered the
|
|
8
|
+
* session composer's Send/Stop button (dev audit, 2026-11-14).
|
|
9
|
+
*/
|
|
10
|
+
export declare const TOAST_OFFSET_VAR = "--toast-offset-bottom";
|
|
11
|
+
/**
|
|
12
|
+
* The toast's right offset while it is lifted. A lifted toast aligns its right
|
|
13
|
+
* edge with the composer's right edge, so it sits flush above the composer
|
|
14
|
+
* instead of straddling whatever is docked to the composer's right (the
|
|
15
|
+
* session's side panel).
|
|
16
|
+
*/
|
|
17
|
+
export declare const TOAST_OFFSET_RIGHT_VAR = "--toast-offset-right";
|
|
18
|
+
/** The element whose resize moves a docked composer (the chat column). */
|
|
19
|
+
export declare const TOAST_ANCHOR_ATTR = "data-toast-anchor";
|
|
20
|
+
export interface ClearanceRect {
|
|
21
|
+
top: number;
|
|
22
|
+
right: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The bottom offset that puts a toast just above `rect`, or 0 when the element
|
|
28
|
+
* is hidden or not docked at the window bottom. A docked composer always
|
|
29
|
+
* hosts the toast, wherever it sits horizontally: the toast stands above it,
|
|
30
|
+
* right-aligned with it (`toastRightOffset`). Anchoring to the window corner
|
|
31
|
+
* instead left the toast straddling whatever is docked beside the composer
|
|
32
|
+
* (the session's side panel). A tall composer (long draft, attachments) still
|
|
33
|
+
* counts: only its bottom edge says whether it is docked.
|
|
34
|
+
*/
|
|
35
|
+
export declare function toastClearance(rect: ClearanceRect & {
|
|
36
|
+
bottom: number;
|
|
37
|
+
}, viewport: {
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
}): number;
|
|
41
|
+
/**
|
|
42
|
+
* The right offset that aligns a lifted toast with `rect`'s right edge, or 0
|
|
43
|
+
* (keep the default) when nothing lifts it or the viewport stacks toasts full
|
|
44
|
+
* width. Never closer to the window edge than Sonner's own 24px.
|
|
45
|
+
*/
|
|
46
|
+
export declare function toastRightOffset(rect: {
|
|
47
|
+
right: number;
|
|
48
|
+
}, viewport: {
|
|
49
|
+
width: number;
|
|
50
|
+
}, bottom: number): number;
|
|
51
|
+
/** Registers `ref`'s element as a docked composer while `active`. */
|
|
52
|
+
export declare function useToastClearance(ref: RefObject<HTMLElement | null>, active: boolean): void;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Keeps bottom-right toasts clear of a composer docked at the bottom of the
|
|
5
|
+
* window. The app's `<Toaster>` reads its bottom offset from
|
|
6
|
+
* `--toast-offset-bottom` (`apps/web/src/app/[locale]/layout.tsx`); a docked
|
|
7
|
+
* composer sets that variable to the distance from its top edge to the window
|
|
8
|
+
* bottom while it shares the toast lane. Before this, a toast covered the
|
|
9
|
+
* session composer's Send/Stop button (dev audit, 2026-11-14).
|
|
10
|
+
*/
|
|
11
|
+
export const TOAST_OFFSET_VAR = '--toast-offset-bottom';
|
|
12
|
+
/**
|
|
13
|
+
* The toast's right offset while it is lifted. A lifted toast aligns its right
|
|
14
|
+
* edge with the composer's right edge, so it sits flush above the composer
|
|
15
|
+
* instead of straddling whatever is docked to the composer's right (the
|
|
16
|
+
* session's side panel).
|
|
17
|
+
*/
|
|
18
|
+
export const TOAST_OFFSET_RIGHT_VAR = '--toast-offset-right';
|
|
19
|
+
/** Sonner's default edge offset on desktop. */
|
|
20
|
+
const EDGE_PX = 24;
|
|
21
|
+
/** Sonner's toast width. */
|
|
22
|
+
const TOAST_WIDTH_PX = 356;
|
|
23
|
+
/** The element whose resize moves a docked composer (the chat column). */
|
|
24
|
+
export const TOAST_ANCHOR_ATTR = 'data-toast-anchor';
|
|
25
|
+
/** Sonner stacks toasts full width at and below this viewport width. */
|
|
26
|
+
const MOBILE_BREAKPOINT_PX = 600;
|
|
27
|
+
/** Space between the composer's top edge and the lowest toast. */
|
|
28
|
+
const GAP_PX = 12;
|
|
29
|
+
/** A composer whose bottom edge is this close to the window bottom is docked there. */
|
|
30
|
+
const DOCKED_BOTTOM_PX = 160;
|
|
31
|
+
/**
|
|
32
|
+
* The bottom offset that puts a toast just above `rect`, or 0 when the element
|
|
33
|
+
* is hidden or not docked at the window bottom. A docked composer always
|
|
34
|
+
* hosts the toast, wherever it sits horizontally: the toast stands above it,
|
|
35
|
+
* right-aligned with it (`toastRightOffset`). Anchoring to the window corner
|
|
36
|
+
* instead left the toast straddling whatever is docked beside the composer
|
|
37
|
+
* (the session's side panel). A tall composer (long draft, attachments) still
|
|
38
|
+
* counts: only its bottom edge says whether it is docked.
|
|
39
|
+
*/
|
|
40
|
+
export function toastClearance(rect, viewport) {
|
|
41
|
+
if (rect.width === 0 || rect.height === 0)
|
|
42
|
+
return 0;
|
|
43
|
+
if (viewport.height - rect.bottom > DOCKED_BOTTOM_PX)
|
|
44
|
+
return 0;
|
|
45
|
+
return Math.max(0, Math.ceil(viewport.height - rect.top + GAP_PX));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The right offset that aligns a lifted toast with `rect`'s right edge, or 0
|
|
49
|
+
* (keep the default) when nothing lifts it or the viewport stacks toasts full
|
|
50
|
+
* width. Never closer to the window edge than Sonner's own 24px.
|
|
51
|
+
*/
|
|
52
|
+
export function toastRightOffset(rect, viewport, bottom) {
|
|
53
|
+
if (bottom <= 0 || viewport.width <= MOBILE_BREAKPOINT_PX)
|
|
54
|
+
return 0;
|
|
55
|
+
// Never past the left window edge either: a narrow window with a wide side
|
|
56
|
+
// panel leaves less than a toast's width left of the composer's right edge.
|
|
57
|
+
const max = viewport.width - TOAST_WIDTH_PX - EDGE_PX;
|
|
58
|
+
return Math.max(EDGE_PX, Math.min(max, Math.ceil(viewport.width - rect.right)));
|
|
59
|
+
}
|
|
60
|
+
// replica-local: one entry per mounted docked composer in this window.
|
|
61
|
+
const clearances = new Map();
|
|
62
|
+
function apply() {
|
|
63
|
+
if (typeof document === 'undefined')
|
|
64
|
+
return;
|
|
65
|
+
// The composer that lifts the toast highest decides both offsets.
|
|
66
|
+
let top = { bottom: 0, right: 0 };
|
|
67
|
+
for (const c of clearances.values())
|
|
68
|
+
if (c.bottom > top.bottom)
|
|
69
|
+
top = c;
|
|
70
|
+
const root = document.documentElement.style;
|
|
71
|
+
if (top.bottom > 0)
|
|
72
|
+
root.setProperty(TOAST_OFFSET_VAR, `${top.bottom}px`);
|
|
73
|
+
else
|
|
74
|
+
root.removeProperty(TOAST_OFFSET_VAR);
|
|
75
|
+
if (top.right > 0)
|
|
76
|
+
root.setProperty(TOAST_OFFSET_RIGHT_VAR, `${top.right}px`);
|
|
77
|
+
else
|
|
78
|
+
root.removeProperty(TOAST_OFFSET_RIGHT_VAR);
|
|
79
|
+
}
|
|
80
|
+
/** Registers `ref`'s element as a docked composer while `active`. */
|
|
81
|
+
export function useToastClearance(ref, active) {
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
const el = ref.current;
|
|
84
|
+
if (!active || !el || typeof window === 'undefined')
|
|
85
|
+
return;
|
|
86
|
+
const id = Symbol('toast-clearance');
|
|
87
|
+
const measure = () => {
|
|
88
|
+
const rect = el.getBoundingClientRect();
|
|
89
|
+
const viewport = { width: window.innerWidth, height: window.innerHeight };
|
|
90
|
+
const bottom = toastClearance(rect, viewport);
|
|
91
|
+
const right = toastRightOffset(rect, viewport, bottom);
|
|
92
|
+
const prev = clearances.get(id);
|
|
93
|
+
if (prev && prev.bottom === bottom && prev.right === right)
|
|
94
|
+
return;
|
|
95
|
+
clearances.set(id, { bottom, right });
|
|
96
|
+
apply();
|
|
97
|
+
};
|
|
98
|
+
measure();
|
|
99
|
+
const observer = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure);
|
|
100
|
+
observer?.observe(el);
|
|
101
|
+
// The composer is width-capped and centered, so a side panel opening
|
|
102
|
+
// MOVES it without resizing it. The column it sits in (marked with
|
|
103
|
+
// `data-toast-anchor`) does resize, so watch that too, or the right offset
|
|
104
|
+
// keeps the pre-panel position.
|
|
105
|
+
const anchor = el.closest(`[${TOAST_ANCHOR_ATTR}]`);
|
|
106
|
+
if (anchor)
|
|
107
|
+
observer?.observe(anchor);
|
|
108
|
+
window.addEventListener('resize', measure);
|
|
109
|
+
return () => {
|
|
110
|
+
observer?.disconnect();
|
|
111
|
+
window.removeEventListener('resize', measure);
|
|
112
|
+
clearances.delete(id);
|
|
113
|
+
apply();
|
|
114
|
+
};
|
|
115
|
+
}, [ref, active]);
|
|
116
|
+
}
|
|
@@ -32,7 +32,9 @@ type ToastOptions = {
|
|
|
32
32
|
button?: React.ReactNode;
|
|
33
33
|
};
|
|
34
34
|
type LoadingToastOptions<T = unknown> = ToastOptions & {
|
|
35
|
-
|
|
35
|
+
/** `false`: the loading toast closes with no success toast after it, for
|
|
36
|
+
* work whose result is already on screen (a new session opens itself). */
|
|
37
|
+
success?: string | ((data: T) => string) | false;
|
|
36
38
|
error?: string | ((error: unknown) => string);
|
|
37
39
|
showErrorToast?: boolean;
|
|
38
40
|
};
|
package/dist/primitives/toast.js
CHANGED
|
@@ -173,6 +173,8 @@ export const loadingToast = (message, promiseInput, options) => {
|
|
|
173
173
|
const toastId = renderToast(message, "progress", options, Infinity);
|
|
174
174
|
return promise.then((data) => {
|
|
175
175
|
toast.dismiss(toastId);
|
|
176
|
+
if (options?.success === false)
|
|
177
|
+
return data;
|
|
176
178
|
const successMessage = typeof options?.success === "function"
|
|
177
179
|
? options.success(data)
|
|
178
180
|
: (options?.success ?? "Completed");
|
|
@@ -18,7 +18,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
import { shouldTypeOnChange, TYPE_SPEED_MS } from './typed-title-logic.js';
|
|
19
19
|
import { TypingAnimation } from './typing-animation.js';
|
|
20
20
|
import { cn } from '../lib/utils.js';
|
|
21
|
-
import { useReducedMotion } from 'motion
|
|
21
|
+
import { useReducedMotion } from '../lib/reduced-motion.js';
|
|
22
22
|
import { useCallback, useState } from 'react';
|
|
23
23
|
export { TYPE_SPEED_MS };
|
|
24
24
|
export function useTypeOnChange(text) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useReducedMotion } from 'motion
|
|
3
|
+
import { useReducedMotion } from '../lib/reduced-motion.js';
|
|
4
4
|
import { useIsDark } from '../hooks/use-is-dark.js';
|
|
5
5
|
import { lazyClient } from '../lib/lazy-client.js';
|
|
6
6
|
import { memo } from 'react';
|
|
@@ -29,6 +29,20 @@ export declare function groupChangeRequestsBySession(changeRequests: readonly Ch
|
|
|
29
29
|
/** Whether the session list should keep polling — true while any session is
|
|
30
30
|
* still mid-provisioning (queued/branching/provisioning). */
|
|
31
31
|
export declare function shouldPollProjectSessions(sessions: ProjectSession[] | undefined): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Poll while a row works and no stream speaks for it: a session the person is
|
|
34
|
+
* not in (a workflow runner, a colleague, a second chat). On /drive a runner
|
|
35
|
+
* row said "Working" for 3+ minutes after the run ended (audit finding 04).
|
|
36
|
+
* Bounded by the condition: the moment no such row works, this stops.
|
|
37
|
+
*/
|
|
38
|
+
export declare const BACKGROUND_WORK_POLL_MS = 10000;
|
|
39
|
+
/**
|
|
40
|
+
* Does a listed session work where no stream reaches it? `working.state` is
|
|
41
|
+
* the server's verdict; the open session's stream patches its own row
|
|
42
|
+
* (`patchCachedSessionWorking`), so it does not count. A row without
|
|
43
|
+
* `working` (an older API) adds no poll.
|
|
44
|
+
*/
|
|
45
|
+
export declare function sessionsWorkingInBackground(sessions: readonly ProjectSession[] | undefined, openSessionId: string | null | undefined): boolean;
|
|
32
46
|
/**
|
|
33
47
|
* How often the sidebar refetches the session list, or false for not at all.
|
|
34
48
|
*
|
|
@@ -43,6 +57,8 @@ export declare function shouldPollProjectSessions(sessions: ProjectSession[] | u
|
|
|
43
57
|
export declare function projectSessionsRefetchInterval(params: {
|
|
44
58
|
sessions: ProjectSession[] | undefined;
|
|
45
59
|
hasOpenSession: boolean;
|
|
60
|
+
/** The open session's id: its own stream keeps its row live, so its work adds no poll. */
|
|
61
|
+
openSessionId?: string | null;
|
|
46
62
|
/** Injected so the title window below is asserted rather than raced. */
|
|
47
63
|
now?: number;
|
|
48
64
|
}): number | false;
|
|
@@ -83,6 +83,22 @@ const PENDING_TITLE_POLL_MS = 3_000;
|
|
|
83
83
|
* follow the conversation you are having, slow enough to be one cheap request
|
|
84
84
|
* a minute. */
|
|
85
85
|
const OPEN_SESSION_POLL_MS = 60_000;
|
|
86
|
+
/**
|
|
87
|
+
* Poll while a row works and no stream speaks for it: a session the person is
|
|
88
|
+
* not in (a workflow runner, a colleague, a second chat). On /drive a runner
|
|
89
|
+
* row said "Working" for 3+ minutes after the run ended (audit finding 04).
|
|
90
|
+
* Bounded by the condition: the moment no such row works, this stops.
|
|
91
|
+
*/
|
|
92
|
+
export const BACKGROUND_WORK_POLL_MS = 10_000;
|
|
93
|
+
/**
|
|
94
|
+
* Does a listed session work where no stream reaches it? `working.state` is
|
|
95
|
+
* the server's verdict; the open session's stream patches its own row
|
|
96
|
+
* (`patchCachedSessionWorking`), so it does not count. A row without
|
|
97
|
+
* `working` (an older API) adds no poll.
|
|
98
|
+
*/
|
|
99
|
+
export function sessionsWorkingInBackground(sessions, openSessionId) {
|
|
100
|
+
return (sessions ?? []).some((session) => session.working?.state === 'working' && session.session_id !== openSessionId);
|
|
101
|
+
}
|
|
86
102
|
/**
|
|
87
103
|
* How often the sidebar refetches the session list, or false for not at all.
|
|
88
104
|
*
|
|
@@ -111,6 +127,8 @@ export function projectSessionsRefetchInterval(params) {
|
|
|
111
127
|
if (hasSessionAwaitingTitle(params.sessions, params.now ?? Date.now())) {
|
|
112
128
|
return PENDING_TITLE_POLL_MS;
|
|
113
129
|
}
|
|
130
|
+
if (sessionsWorkingInBackground(params.sessions, params.openSessionId))
|
|
131
|
+
return BACKGROUND_WORK_POLL_MS;
|
|
114
132
|
return params.hasOpenSession ? OPEN_SESSION_POLL_MS : false;
|
|
115
133
|
}
|
|
116
134
|
/** Epoch ms from an ISO string or an epoch-ms number, or null. `metadata` is
|
|
@@ -40,7 +40,7 @@ export function sessionSource(session, tI18nComplete) {
|
|
|
40
40
|
if (type === 'cron')
|
|
41
41
|
return { kind: 'schedule', label: tI18nComplete.raw('text4724f344c1c0'), triggerSlug };
|
|
42
42
|
if (type === 'event')
|
|
43
|
-
return { kind: 'event', label: tI18nComplete.raw('
|
|
43
|
+
return { kind: 'event', label: tI18nComplete.raw('textca395c4d19b2'), triggerSlug };
|
|
44
44
|
return { kind: 'webhook', label: tI18nComplete.raw('text4814f62c108d'), triggerSlug };
|
|
45
45
|
}
|
|
46
46
|
return { kind: 'chat', label: tI18nComplete.raw('text460b3a7da007'), triggerSlug: null };
|
|
@@ -112,7 +112,7 @@ export const SESSION_SOURCE_FILTERS = [
|
|
|
112
112
|
{ value: 'email', label: 'Email' },
|
|
113
113
|
{ value: 'schedule', label: 'Scheduled' },
|
|
114
114
|
{ value: 'webhook', label: 'Webhook' },
|
|
115
|
-
{ value: 'event', label: '
|
|
115
|
+
{ value: 'event', label: 'Connector event' },
|
|
116
116
|
{ value: 'manual', label: 'Manual' },
|
|
117
117
|
];
|
|
118
118
|
export const SESSION_STATUS_FILTERS = [
|
|
@@ -87,6 +87,7 @@ export interface LineSummary extends StripCounts {
|
|
|
87
87
|
/** What the agents line says: `2 agents · 1 working`, `2 agents · poet done`, `1 workflow running`. */
|
|
88
88
|
export declare function lineSummary(rows: readonly AgentRow[], runs: readonly {
|
|
89
89
|
status: string;
|
|
90
|
+
awaitingApproval?: boolean;
|
|
90
91
|
}[]): LineSummary;
|
|
91
92
|
/** `12s`, `4m`, `2h`: the short elapsed time of a working row. */
|
|
92
93
|
export declare function shortElapsed(ms: number): string;
|
|
@@ -103,7 +103,8 @@ export function stripCounts(rows) {
|
|
|
103
103
|
/** What the agents line says: `2 agents · 1 working`, `2 agents · poet done`, `1 workflow running`. */
|
|
104
104
|
export function lineSummary(rows, runs) {
|
|
105
105
|
const counts = stripCounts(rows);
|
|
106
|
-
|
|
106
|
+
// A run whose approval is still open has not started: it is not running.
|
|
107
|
+
const runningRuns = runs.filter((run) => run.status === 'running' && run.awaitingApproval !== true).length;
|
|
107
108
|
let newest = null;
|
|
108
109
|
for (const row of rows)
|
|
109
110
|
if (!newest || row.activityMs > newest.activityMs)
|
|
@@ -33,11 +33,14 @@ export interface AgentsPanelProps extends Omit<AgentsLineViewProps, 'compact' |
|
|
|
33
33
|
/** The popover body: Agents, Team, Workflows, and a Tasks tab when this session leads a team. */
|
|
34
34
|
export declare function AgentsPanel({ projectId, sessionId, agents, team, runs, tasks, onOpen, onStop, stopping, live }: AgentsPanelProps): import("react").JSX.Element;
|
|
35
35
|
/**
|
|
36
|
-
* The agents of one session, read live: its children
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* The agents of one session, read live: its children, its teammates and team
|
|
37
|
+
* tasks (flag `agent_teams`) and its workflow runs; and the stop of one agent.
|
|
38
|
+
* The lists poll every 5 s while the session works (`live`) and every 30 s
|
|
39
|
+
* while it is idle.
|
|
39
40
|
*/
|
|
40
|
-
export declare function useAgentsLine(projectId: string | undefined, sessionId: string | undefined
|
|
41
|
+
export declare function useAgentsLine(projectId: string | undefined, sessionId: string | undefined, { live }?: {
|
|
42
|
+
live?: boolean;
|
|
43
|
+
}): {
|
|
41
44
|
ready: boolean;
|
|
42
45
|
agents: AgentRow[];
|
|
43
46
|
team: AgentRow[];
|
|
@@ -51,8 +54,10 @@ export declare function useAgentsLine(projectId: string | undefined, sessionId:
|
|
|
51
54
|
* (`SessionChatInputProps.underbarSlot`). Nothing renders while the session
|
|
52
55
|
* started no agent and no workflow run.
|
|
53
56
|
*/
|
|
54
|
-
export declare function AgentsLine({ projectId, sessionId, compact, }: {
|
|
57
|
+
export declare function AgentsLine({ projectId, sessionId, compact, live, }: {
|
|
55
58
|
projectId: string | undefined;
|
|
56
59
|
sessionId: string | undefined;
|
|
57
60
|
compact?: boolean;
|
|
61
|
+
/** The session works now: its agent lists poll every 5 s instead of every 30 s. */
|
|
62
|
+
live?: boolean;
|
|
58
63
|
}): import("react").JSX.Element | null;
|