@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
|
@@ -48,6 +48,7 @@ import { probePreviewPort } from '@kortix/sdk';
|
|
|
48
48
|
import { useHasSessionDesktop } from '@kortix/sdk/react';
|
|
49
49
|
import { ArrowSquareOutIcon, MonitorIcon } from '@phosphor-icons/react';
|
|
50
50
|
import { useEffect, useRef, useState, useSyncExternalStore } from 'react';
|
|
51
|
+
import { SESSION_BAR_CLASS } from '../../internal/layout/panel-chrome.js';
|
|
51
52
|
export const DESKTOP_URL = 'http://localhost:6901/';
|
|
52
53
|
/** How often the panel asks again until the desktop answers. */
|
|
53
54
|
const PROBE_INTERVAL_MS = 3_000;
|
|
@@ -104,7 +105,10 @@ export function SessionDesktop({ projectId, projectSessionId, onClose, }) {
|
|
|
104
105
|
setControl(true);
|
|
105
106
|
frameRef.current?.focus();
|
|
106
107
|
};
|
|
107
|
-
return (
|
|
108
|
+
return (
|
|
109
|
+
// `@container/desktop`: the control status text hides when the panel is
|
|
110
|
+
// narrow, so the header never wraps; the button alone still says it.
|
|
111
|
+
_jsxs("div", { className: "bg-background @container/desktop flex h-full min-h-0 min-w-0 flex-col", children: [_jsxs("div", { className: cn(SESSION_BAR_CLASS, 'gap-1 px-2'), children: [_jsx(DetailSidebarToggle, { className: "size-7" }), _jsx(MonitorIcon, { className: "text-muted-foreground ml-1 size-3.5 shrink-0" }), _jsx("span", { className: "truncate text-sm font-medium", children: t('title') }), _jsx("div", { className: "flex-1" }), live && (_jsxs("div", { className: "flex shrink-0 items-center gap-2 pr-1", children: [_jsx("span", { className: "text-muted-foreground hidden truncate text-xs @md/desktop:inline", children: control ? t('userControl') : t('agentControl') }), _jsx(Button, { variant: control ? 'secondary' : 'default', size: "xs", "aria-pressed": control, onClick: control ? () => setControl(false) : takeOver, children: control ? t('returnControl') : t('takeOver') })] })), _jsxs(ButtonGroup, { className: "shrink-0", children: [_jsx(Button, { variant: "secondary", size: "icon", className: "size-7", disabled: !live, "aria-label": t('openTab'), onClick: () => src && window.open(src, '_blank', 'noopener,noreferrer'), children: _jsx(ArrowSquareOutIcon, { className: "size-3.5" }) }), _jsx(PanelWidthButton, { isMobile: isMobile }), _jsx(CloseButton, { onClose: onClose })] })] }), _jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: _jsx("div", { "data-slot": "desktop-screen", "data-control": control ? 'user' : 'agent', className: cn('bg-muted relative min-h-0 flex-1 overflow-hidden', control && 'ring-primary ring-2 ring-inset'), children: hasDesktop === false ? (_jsx(DesktopNotice, { title: t('noDesktop'), hint: t('noDesktopHint') })) : probe === 'unreachable' ? (_jsx(DesktopNotice, { title: t('offline'), hint: _jsxs(_Fragment, { children: [t('start'), " ", _jsx("code", { children: "kortix-desktop start" }), "."] }), children: _jsx(Button, { variant: "secondary", size: "sm", onClick: () => setAttempt((n) => n + 1), children: t('retry') }) })) : !hasDesktop || !src || !visible ? (_jsx("div", { className: "flex h-full items-center justify-center", children: _jsx(Loading, { className: "size-4" }) })) : (_jsxs(_Fragment, { children: [_jsx("iframe", { ref: frameRef, src: src, title: t('title'), className: cn('h-full w-full border-0', !live && 'invisible'), sandbox: framePolicy('app', src).sandbox, allow: "clipboard-read; clipboard-write; autoplay; fullscreen", tabIndex: control ? 0 : -1 }, live ? 'live' : 'waiting'), !live && (_jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: _jsx(Loading, { className: "size-4" }) })), live && !control && (_jsx("button", { type: "button", "aria-label": t('takeOver'), "data-slot": "desktop-shield", className: "absolute inset-0 cursor-pointer", onClick: takeOver }))] })) }) })] }));
|
|
108
112
|
}
|
|
109
113
|
function DesktopNotice({ title, hint, children }) {
|
|
110
114
|
return (_jsxs("div", { className: "text-muted-foreground flex h-full flex-col items-center justify-center gap-3 px-6 text-center text-sm", children: [_jsx(MonitorIcon, { className: "size-10 opacity-20" }), _jsx("p", { children: title }), _jsx("p", { className: "text-xs", children: hint }), children] }));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
interface SessionDiffViewerProps {
|
|
2
|
+
/** A Changes-section row opens one exact file; other mounts keep the full comparison. */
|
|
3
|
+
filePath?: string;
|
|
2
4
|
isFullscreen?: boolean;
|
|
3
5
|
onToggleFullscreen?: () => void;
|
|
4
6
|
/**
|
|
@@ -8,5 +10,5 @@ interface SessionDiffViewerProps {
|
|
|
8
10
|
*/
|
|
9
11
|
reserveCloseGutter?: boolean;
|
|
10
12
|
}
|
|
11
|
-
export declare function SessionDiffViewer({ isFullscreen, onToggleFullscreen, reserveCloseGutter, }: SessionDiffViewerProps): import("react").JSX.Element;
|
|
13
|
+
export declare function SessionDiffViewer({ filePath, isFullscreen, onToggleFullscreen, reserveCloseGutter, }: SessionDiffViewerProps): import("react").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -33,13 +33,13 @@ import { useSessionChanges } from './session-changes-shared.js';
|
|
|
33
33
|
import { cn } from '../../lib/utils.js';
|
|
34
34
|
import { ArrowsInSimpleIcon, ArrowsOutSimpleIcon, FileDashedIcon } from '@phosphor-icons/react';
|
|
35
35
|
import { useMemo, useState } from 'react';
|
|
36
|
-
export function SessionDiffViewer({ isFullscreen, onToggleFullscreen, reserveCloseGutter, }) {
|
|
36
|
+
export function SessionDiffViewer({ filePath, isFullscreen, onToggleFullscreen, reserveCloseGutter, }) {
|
|
37
37
|
const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
|
|
38
38
|
// The SAME query the tab badge and the header chip count. One array, one key
|
|
39
39
|
// — the body can no longer say "no changes" under a badge reading 32.
|
|
40
40
|
const { files, isPending, error, refetch } = useSessionChanges();
|
|
41
41
|
const [layout, setLayout] = useState('unified');
|
|
42
|
-
const entries = useMemo(() => files.map(entryFromVcsFile), [files]);
|
|
42
|
+
const entries = useMemo(() => files.filter((file) => !filePath || file.file === filePath).map(entryFromVcsFile), [files, filePath]);
|
|
43
43
|
const { expanded, setRow, allExpanded, toggleAll } = useChangeExpansion(entries);
|
|
44
44
|
// A DISABLED query is not an empty result. While the sandbox boots, nothing
|
|
45
45
|
// has been asked yet, so the honest state is "loading", not "no changes yet".
|
|
@@ -53,8 +53,11 @@ export function SessionDiffViewer({ isFullscreen, onToggleFullscreen, reserveClo
|
|
|
53
53
|
return (_jsx(ErrorState, { size: "sm", className: "h-full", title: tI18nComplete.raw('texte65f8a02d565'), action: _jsx(Button, { variant: "outline", size: "sm", onClick: () => void refetch(), children: tI18nComplete.raw('textd8b8392e2c54') }) }));
|
|
54
54
|
}
|
|
55
55
|
if (entries.length === 0) {
|
|
56
|
-
return (_jsx(EmptyState, { icon: FileDashedIcon, size: "sm", className: "h-full", title: tI18nComplete.raw('text0b348466332c'),
|
|
56
|
+
return (_jsx(EmptyState, { icon: FileDashedIcon, size: "sm", className: "h-full", title: tI18nComplete.raw('text0b348466332c'),
|
|
57
|
+
// One file opened from the Changes section: say it is THIS file that
|
|
58
|
+
// has nothing left, not that the session changed nothing.
|
|
59
|
+
description: tI18nComplete.raw(filePath ? 'textcc6d004b577f' : 'textc88aaafcef61') }));
|
|
57
60
|
}
|
|
58
61
|
const fullscreenLabel = isFullscreen ? 'Exit fullscreen' : 'Fullscreen';
|
|
59
|
-
return (_jsx(ScrollArea, { className: "h-full", children: _jsxs("div", { className: "space-y-2 p-2", children: [_jsxs("div", { className: cn('flex items-center gap-1.5', reserveCloseGutter && 'pr-11'), children: [_jsx(ChangeSummary, { entries: entries, className: "min-w-0 flex-1" }), _jsx(ExpandAllButton, { allExpanded: allExpanded, onToggle: toggleAll }), _jsx(DiffLayoutToggle, { layout: layout, onChange: setLayout }), onToggleFullscreen && (_jsx(Hint, { label: fullscreenLabel, side: "bottom", children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": fullscreenLabel, "aria-pressed": !!isFullscreen, onClick: onToggleFullscreen, className: "text-muted-foreground/70 hover:text-foreground active:scale-[0.96]", children: isFullscreen ? (_jsx(ArrowsInSimpleIcon, { className: "size-3.5" })) : (_jsx(ArrowsOutSimpleIcon, { className: "size-3.5" })) }) }))] }), _jsx(ChangeList, { entries: entries, layout: layout, expanded: expanded, onRowOpenChange: setRow })] }) }));
|
|
62
|
+
return (_jsx(ScrollArea, { className: "h-full", children: _jsxs("div", { className: "space-y-2 p-2", children: [_jsxs("div", { className: cn('flex items-center gap-1.5', reserveCloseGutter && 'pr-11'), children: [_jsx(ChangeSummary, { entries: entries, className: "min-w-0 flex-1" }), !filePath && _jsx(ExpandAllButton, { allExpanded: allExpanded, onToggle: toggleAll }), _jsx(DiffLayoutToggle, { layout: layout, onChange: setLayout }), onToggleFullscreen && (_jsx(Hint, { label: fullscreenLabel, side: "bottom", children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": fullscreenLabel, "aria-pressed": !!isFullscreen, onClick: onToggleFullscreen, className: "text-muted-foreground/70 hover:text-foreground active:scale-[0.96]", children: isFullscreen ? (_jsx(ArrowsInSimpleIcon, { className: "size-3.5" })) : (_jsx(ArrowsOutSimpleIcon, { className: "size-3.5" })) }) }))] }), _jsx(ChangeList, { entries: entries, layout: layout, expanded: expanded, onRowOpenChange: setRow })] }) }));
|
|
60
63
|
}
|
|
@@ -45,10 +45,11 @@ import { panelToRestore, rememberedPanelOf, useSessionPanelMemoryStore, } from '
|
|
|
45
45
|
import { useUserPreferencesStore } from '../../internal/stores/user-preferences-store.js';
|
|
46
46
|
import { getProjectSession, SANDBOX_PORTS } from '@kortix/sdk';
|
|
47
47
|
import { FileTextIcon as FileText } from '@phosphor-icons/react';
|
|
48
|
-
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from 'react';
|
|
48
|
+
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, } from 'react';
|
|
49
49
|
import { AppPreview, AppPreviewBooting } from './easy/app-preview.js';
|
|
50
50
|
import { isWideDeliverable, neighborOutputs, outputKey, quickBrowserOutput, } from './easy/easy-panel-logic.js';
|
|
51
51
|
import { FilePreview, reportsIntrinsicSize } from './easy/file-preview.js';
|
|
52
|
+
import { forgetFrameHistory, noteBrowserApps, resumableFrameHistory } from './easy/frame-history.js';
|
|
52
53
|
import { usePanelDerivations } from './shared/use-panel-derivations.js';
|
|
53
54
|
import { usePanelHandoffs } from './shared/use-panel-handoffs.js';
|
|
54
55
|
import { useDeliverableReadiness } from './shared/use-deliverable-readiness.js';
|
|
@@ -188,12 +189,19 @@ export function SessionPanelProvider({ sessionId, isSessionBusy = false, project
|
|
|
188
189
|
setDetail((current) => (current ? null : current));
|
|
189
190
|
setTerminalOpen((open) => (open ? false : open));
|
|
190
191
|
}, [activeSessionId]);
|
|
192
|
+
// The Browser's page and Back/Forward end with the detail (frame-history.ts).
|
|
193
|
+
useEffect(() => {
|
|
194
|
+
forgetFrameHistory(sessionId);
|
|
195
|
+
}, [activeSessionId, sessionId]);
|
|
191
196
|
// Forget the session when its provider goes away: an unmounted provider has
|
|
192
197
|
// dropped its detail state, so a `true` left behind would promise ⌘I content
|
|
193
198
|
// that no longer exists and reopen an empty panel. Read through `getState()`
|
|
194
199
|
// so the teardown cannot capture a stale action, and so it runs on unmount
|
|
195
200
|
// ONLY, never on a content change.
|
|
196
|
-
useEffect(() => () =>
|
|
201
|
+
useEffect(() => () => {
|
|
202
|
+
useKortixComputerStore.getState().setDetailContent(sessionId, null);
|
|
203
|
+
forgetFrameHistory(sessionId);
|
|
204
|
+
}, [sessionId]);
|
|
197
205
|
// Mutual exclusion: the terminal layer and a `detail` never show at once —
|
|
198
206
|
// opening one closes the other, and the toggle records HOW (`terminalSwap`):
|
|
199
207
|
// over a detail it's a crossfade, from home it's the arrival slide.
|
|
@@ -298,10 +306,18 @@ export function SessionPanelProvider({ sessionId, isSessionBusy = false, project
|
|
|
298
306
|
*
|
|
299
307
|
* `source` is telemetry-only (W5) — see `OpenSource`.
|
|
300
308
|
*/
|
|
309
|
+
// The latest app list for `handleOpenOutput`, without making it a dependency.
|
|
310
|
+
const appsRef = useRef(apps);
|
|
311
|
+
useLayoutEffect(() => {
|
|
312
|
+
appsRef.current = apps;
|
|
313
|
+
}, [apps]);
|
|
301
314
|
const handleOpenOutput = useCallback((output, siblings, source = 'row') => {
|
|
302
315
|
// The human title, when the output carries one (W3) — never the raw
|
|
303
316
|
// filename in a spot the user reads as the thing's name.
|
|
304
317
|
const displayName = output.title ?? output.name;
|
|
318
|
+
// Any Browser open records the app list it saw (`resumableFrameHistory`).
|
|
319
|
+
if (output.kind === 'app')
|
|
320
|
+
noteBrowserApps(sessionId, appsRef.current.map((app) => app.url ?? ''));
|
|
305
321
|
// Wide split (Marko's feedback): a presentation deliverable grows the
|
|
306
322
|
// panel to its widest split with the glide — see `isWideDeliverable`.
|
|
307
323
|
// Set AFTER `openDetail` below, whose own generic default
|
|
@@ -345,7 +361,7 @@ export function SessionPanelProvider({ sessionId, isSessionBusy = false, project
|
|
|
345
361
|
hideHeader: true,
|
|
346
362
|
padded: false,
|
|
347
363
|
nav,
|
|
348
|
-
body: (_jsx(SessionBootGate, { boot: _jsx(AppPreviewBooting, { onClose: closeDetail, children: _jsx(SessionBootStatus, { projectId: projectId, sessionId: projectSessionId }) }), children: _jsx(AppPreview, { url: output.url ?? '', name: displayName, projectId: projectId, shareContext: projectId && projectSessionId
|
|
364
|
+
body: (_jsx(SessionBootGate, { boot: _jsx(AppPreviewBooting, { onClose: closeDetail, children: _jsx(SessionBootStatus, { projectId: projectId, sessionId: projectSessionId }) }), children: _jsx(AppPreview, { url: output.url ?? '', name: displayName, historyKey: sessionId, projectId: projectId, shareContext: projectId && projectSessionId
|
|
349
365
|
? { projectId, sessionId: projectSessionId }
|
|
350
366
|
: undefined, onClose: closeDetail, onSendToAgent: () => sendAppToAgent(output) }) })),
|
|
351
367
|
});
|
|
@@ -389,6 +405,7 @@ export function SessionPanelProvider({ sessionId, isSessionBusy = false, project
|
|
|
389
405
|
projectId,
|
|
390
406
|
projectSessionId,
|
|
391
407
|
sendAppToAgent,
|
|
408
|
+
sessionId,
|
|
392
409
|
]);
|
|
393
410
|
// W1/W9 — announce finished deliverables and blocked-on-you states while the
|
|
394
411
|
// panel is closed. Headless: writes the ready chip; the header renders it.
|
|
@@ -459,8 +476,15 @@ export function SessionPanelProvider({ sessionId, isSessionBusy = false, project
|
|
|
459
476
|
// A targeted request (a `show` preview button, a localhost link in chat)
|
|
460
477
|
// names the exact page it wants. Without honoring it the browser would
|
|
461
478
|
// open on the first running app instead — right surface, wrong page.
|
|
462
|
-
|
|
463
|
-
|
|
479
|
+
const output = quickBrowserOutput(apps, target);
|
|
480
|
+
// An untargeted open (the header's Browser, the palette) returns to the
|
|
481
|
+
// page this session's Browser was last on, with its Back/Forward — the
|
|
482
|
+
// same way the Terminal keeps its shell across a switch (D-06).
|
|
483
|
+
const resumed = target?.url
|
|
484
|
+
? undefined
|
|
485
|
+
: resumableFrameHistory(sessionId, apps.map((app) => app.url ?? ''));
|
|
486
|
+
handleOpenOutput(resumed && output.kind === 'app' ? { ...output, url: resumed.entries[resumed.index] ?? '' } : output, undefined, 'quick');
|
|
487
|
+
}, [apps, handleOpenOutput, sessionId]);
|
|
464
488
|
const { outputsDefaultOpen, pendingQuickView } = usePanelHandoffs({
|
|
465
489
|
sessionId, projectId, projectSessionId, isRunning, outcome, apps, files, steps, calls,
|
|
466
490
|
detail, handleOpenOutput, openDetail, closeDetail, openTerminal, openAudit, openReminders, openDesktop, openBrowser, openFiles,
|
|
@@ -372,7 +372,8 @@ function titleFromFetchOutput(call) {
|
|
|
372
372
|
* The real-world pages a `web`-family call is "about" — the identities
|
|
373
373
|
* `deriveContext` dedups on and the truthful labels it shows.
|
|
374
374
|
*
|
|
375
|
-
* - `web_fetch
|
|
375
|
+
* - `web_fetch` targets one URL (`input.url`); `scrape_webpage` targets one or
|
|
376
|
+
* more (`input.urls`, comma-separated). Each URL is one page.
|
|
376
377
|
* - `web_search`-style calls have no URL of their own; their OUTPUT is the
|
|
377
378
|
* search-results payload, and EVERY parsed result is a page the search
|
|
378
379
|
* surfaced — returning only the first is how "searched 10 sources" used to
|
|
@@ -402,10 +403,69 @@ function webSourcesOf(call) {
|
|
|
402
403
|
// web_fetch / webfetch / scrape_webpage / scrapewebpage — identified by
|
|
403
404
|
// the page it targeted. The label is the real page title when the fetch's
|
|
404
405
|
// own output is parseable HTML; otherwise the domain — never the raw URL.
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
406
|
+
const urls = fetchUrlsOf(input);
|
|
407
|
+
if (urls.length === 0)
|
|
407
408
|
return [];
|
|
408
|
-
|
|
409
|
+
if (urls.length === 1) {
|
|
410
|
+
const url = urls[0];
|
|
411
|
+
return [{ url, label: titleFromFetchOutput(call) || scrapeTitlesOf(call).get(url) || wsDomain(url) }];
|
|
412
|
+
}
|
|
413
|
+
const titles = scrapeTitlesOf(call);
|
|
414
|
+
return urls.map((url) => ({ url, label: titles.get(url) || wsDomain(url) }));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* The pages a fetch-style call targeted. `web_fetch` takes one `url`;
|
|
418
|
+
* `scrape_webpage` takes `urls`, a comma-separated string
|
|
419
|
+
* (`apps/kortix-sandbox-agent-server/src/services/tools/kortix/scrape_webpage.ts`).
|
|
420
|
+
* An array is accepted too: an ejected copy of the tool may change the schema.
|
|
421
|
+
*/
|
|
422
|
+
function fetchUrlsOf(input) {
|
|
423
|
+
const raw = [];
|
|
424
|
+
if (typeof input.url === 'string')
|
|
425
|
+
raw.push(input.url);
|
|
426
|
+
if (typeof input.urls === 'string')
|
|
427
|
+
raw.push(...input.urls.split(','));
|
|
428
|
+
else if (Array.isArray(input.urls))
|
|
429
|
+
raw.push(...input.urls);
|
|
430
|
+
const out = [];
|
|
431
|
+
for (const value of raw) {
|
|
432
|
+
if (typeof value !== 'string')
|
|
433
|
+
continue;
|
|
434
|
+
const url = value.trim();
|
|
435
|
+
if (url && !out.includes(url))
|
|
436
|
+
out.push(url);
|
|
437
|
+
}
|
|
438
|
+
return out;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Page titles from `scrape_webpage` JSON output: one result object, or
|
|
442
|
+
* `{ results: [...] }` for several URLs. Keyed by the URL the tool echoes.
|
|
443
|
+
*/
|
|
444
|
+
function scrapeTitlesOf(call) {
|
|
445
|
+
const titles = new Map();
|
|
446
|
+
const output = rawOutputOf(call);
|
|
447
|
+
if (!output || !output.trimStart().startsWith('{'))
|
|
448
|
+
return titles;
|
|
449
|
+
let parsed;
|
|
450
|
+
try {
|
|
451
|
+
parsed = JSON.parse(output);
|
|
452
|
+
}
|
|
453
|
+
catch {
|
|
454
|
+
return titles;
|
|
455
|
+
}
|
|
456
|
+
if (!parsed || typeof parsed !== 'object')
|
|
457
|
+
return titles;
|
|
458
|
+
const record = parsed;
|
|
459
|
+
const results = Array.isArray(record.results) ? record.results : [record];
|
|
460
|
+
for (const result of results) {
|
|
461
|
+
if (!result || typeof result !== 'object')
|
|
462
|
+
continue;
|
|
463
|
+
const { url, title } = result;
|
|
464
|
+
if (typeof url === 'string' && typeof title === 'string' && title.trim()) {
|
|
465
|
+
titles.set(url.trim(), title.trim());
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
return titles;
|
|
409
469
|
}
|
|
410
470
|
export function deriveContext(calls) {
|
|
411
471
|
const files = [];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Connect card of a connector sign-in the agent started, drawn in the
|
|
3
|
+
* transcript under the call that started it: `kortix connectors connect <app>`
|
|
4
|
+
* in the shell, or the `kortix_connectors` tool's `connect` (the SDK reads
|
|
5
|
+
* both, `connectorSignInCalls`). The SDK keeps that call out of every fold, so
|
|
6
|
+
* the card stays in view the way a pasted `/connect/<token>` link did.
|
|
7
|
+
*
|
|
8
|
+
* #12500 (2026-11-12) docked this card above the composer. A sign-in the
|
|
9
|
+
* person never finished stayed docked for the life of the session: a person
|
|
10
|
+
* who connected the app another way (the native Supabase connector instead of
|
|
11
|
+
* the Composio toolkit the agent picked) kept the card over the input, with
|
|
12
|
+
* nothing to dismiss it (2026-11-13). In the transcript it stays where the
|
|
13
|
+
* agent asked, scrolls away with its turn, and reads "Connected as …" once done.
|
|
14
|
+
*
|
|
15
|
+
* The API records which session asked on the account row
|
|
16
|
+
* (`requesting_session_id`). `SessionConnectRequestsProvider` reads those rows
|
|
17
|
+
* once per session (`listSessionConnectRequests`); each card picks the ones its
|
|
18
|
+
* call names (`connectorSignInRequests`) and finishes each through
|
|
19
|
+
* `connectionSignInSteps`: the window opens inside the click, the first request
|
|
20
|
+
* records a sign-in that already finished at the provider, and only an
|
|
21
|
+
* unfinished one goes to a new sign-in page. Finalize tells the session that
|
|
22
|
+
* asked, so the agent continues on its own.
|
|
23
|
+
*/
|
|
24
|
+
import { type ConnectorSignInCall, type SessionConnectRequest } from '@kortix/sdk';
|
|
25
|
+
import { type ReactNode } from 'react';
|
|
26
|
+
/** Stable id of one request: its account row, or the connector on an older server. */
|
|
27
|
+
export declare function sessionConnectRequestKey(request: SessionConnectRequest): string;
|
|
28
|
+
interface SessionConnectRequests {
|
|
29
|
+
projectId: string;
|
|
30
|
+
requests: readonly SessionConnectRequest[];
|
|
31
|
+
refetch: () => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The session's connect requests, read once for every card in its transcript.
|
|
35
|
+
* Without a project and session (a read-only view) it provides nothing, and no
|
|
36
|
+
* call draws a card.
|
|
37
|
+
*/
|
|
38
|
+
export declare function SessionConnectRequestsProvider({ projectId, sessionId, busy, children, }: {
|
|
39
|
+
projectId: string | null | undefined;
|
|
40
|
+
sessionId: string | null | undefined;
|
|
41
|
+
/** The agent is running: poll faster, and read again when it stops. */
|
|
42
|
+
busy: boolean;
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
}): import("react").JSX.Element;
|
|
45
|
+
/** The session's connect requests, or null outside a session that can finish them. */
|
|
46
|
+
export declare function useSessionConnectRequests(): SessionConnectRequests | null;
|
|
47
|
+
/**
|
|
48
|
+
* The Connect card under a call that started connector sign-ins: one row per
|
|
49
|
+
* request the call names. Nothing when the session holds no such request
|
|
50
|
+
* (another member's private sign-in, an account removed since).
|
|
51
|
+
*/
|
|
52
|
+
export declare function SessionConnectCard({ calls, className, }: {
|
|
53
|
+
calls: readonly ConnectorSignInCall[];
|
|
54
|
+
className?: string;
|
|
55
|
+
}): import("react").JSX.Element | null;
|
|
56
|
+
/** The card itself: a headline, then one row per request. */
|
|
57
|
+
export declare function SessionConnectNotice({ requests, projectId, onSettled, className, }: {
|
|
58
|
+
requests: readonly SessionConnectRequest[];
|
|
59
|
+
projectId: string;
|
|
60
|
+
onSettled: () => void;
|
|
61
|
+
className?: string;
|
|
62
|
+
}): import("react").JSX.Element;
|
|
63
|
+
export {};
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* `
|
|
4
|
+
* The Connect card of a connector sign-in the agent started, drawn in the
|
|
5
|
+
* transcript under the call that started it: `kortix connectors connect <app>`
|
|
6
|
+
* in the shell, or the `kortix_connectors` tool's `connect` (the SDK reads
|
|
7
|
+
* both, `connectorSignInCalls`). The SDK keeps that call out of every fold, so
|
|
8
|
+
* the card stays in view the way a pasted `/connect/<token>` link did.
|
|
6
9
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* #12500 (2026-11-12) docked this card above the composer. A sign-in the
|
|
11
|
+
* person never finished stayed docked for the life of the session: a person
|
|
12
|
+
* who connected the app another way (the native Supabase connector instead of
|
|
13
|
+
* the Composio toolkit the agent picked) kept the card over the input, with
|
|
14
|
+
* nothing to dismiss it (2026-11-13). In the transcript it stays where the
|
|
15
|
+
* agent asked, scrolls away with its turn, and reads "Connected as …" once done.
|
|
16
|
+
*
|
|
17
|
+
* The API records which session asked on the account row
|
|
18
|
+
* (`requesting_session_id`). `SessionConnectRequestsProvider` reads those rows
|
|
19
|
+
* once per session (`listSessionConnectRequests`); each card picks the ones its
|
|
20
|
+
* call names (`connectorSignInRequests`) and finishes each through
|
|
12
21
|
* `connectionSignInSteps`: the window opens inside the click, the first request
|
|
13
22
|
* records a sign-in that already finished at the provider, and only an
|
|
14
23
|
* unfinished one goes to a new sign-in page. Finalize tells the session that
|
|
15
24
|
* asked, so the agent continues on its own.
|
|
16
|
-
*
|
|
17
|
-
* Shown: every request still to sign in, and each one that connected while
|
|
18
|
-
* this page was open ("Connected as …"). A request that was connected before
|
|
19
|
-
* the page loaded is history and stays hidden.
|
|
20
25
|
*/
|
|
21
|
-
import { connectionSignInSteps, listSessionConnectRequests, } from '@kortix/sdk';
|
|
26
|
+
import { connectionSignInSteps, connectorSignInRequests, listSessionConnectRequests, } from '@kortix/sdk';
|
|
22
27
|
import { CheckIcon, PlugsConnectedIcon } from '@phosphor-icons/react';
|
|
23
28
|
import { useQuery } from '@tanstack/react-query';
|
|
24
|
-
import { useEffect, useRef, useState } from 'react';
|
|
29
|
+
import { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
25
30
|
import { useTranslations } from '../../i18n/index.js';
|
|
26
31
|
import { cn } from '../../lib/utils.js';
|
|
27
32
|
import { runConnectLinkFlow } from '../../internal/hooks/connectors/use-connect-link.js';
|
|
@@ -33,23 +38,23 @@ import { errorToast } from '../../primitives/toast.js';
|
|
|
33
38
|
const BUSY_POLL_MS = 8_000;
|
|
34
39
|
/** A card whose sign-in the person may finish in another tab. */
|
|
35
40
|
const PENDING_POLL_MS = 10_000;
|
|
41
|
+
const NO_REQUESTS = Object.freeze([]);
|
|
36
42
|
/** Stable id of one request: its account row, or the connector on an older server. */
|
|
37
43
|
export function sessionConnectRequestKey(request) {
|
|
38
44
|
return request.connection_id ?? request.slug;
|
|
39
45
|
}
|
|
46
|
+
const SessionConnectRequestsContext = createContext(null);
|
|
40
47
|
/**
|
|
41
|
-
* The
|
|
42
|
-
*
|
|
48
|
+
* The session's connect requests, read once for every card in its transcript.
|
|
49
|
+
* Without a project and session (a read-only view) it provides nothing, and no
|
|
50
|
+
* call draws a card.
|
|
43
51
|
*/
|
|
44
|
-
export function
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
export function SessionConnectPrompt({ projectId, sessionId, busy, onDockedChange, }) {
|
|
48
|
-
const seenPending = useRef(new Set());
|
|
52
|
+
export function SessionConnectRequestsProvider({ projectId, sessionId, busy, children, }) {
|
|
53
|
+
const enabled = Boolean(projectId && sessionId);
|
|
49
54
|
const query = useQuery({
|
|
50
55
|
queryKey: ['session-connect-requests', projectId, sessionId],
|
|
51
56
|
queryFn: () => listSessionConnectRequests(projectId, sessionId),
|
|
52
|
-
enabled
|
|
57
|
+
enabled,
|
|
53
58
|
staleTime: 2_000,
|
|
54
59
|
retry: false,
|
|
55
60
|
refetchOnWindowFocus: true,
|
|
@@ -59,36 +64,42 @@ export function SessionConnectPrompt({ projectId, sessionId, busy, onDockedChang
|
|
|
59
64
|
? PENDING_POLL_MS
|
|
60
65
|
: false,
|
|
61
66
|
});
|
|
62
|
-
const { refetch } = query;
|
|
67
|
+
const { refetch, data } = query;
|
|
63
68
|
// The agent stops right after it starts a sign-in: read once more then.
|
|
64
69
|
const wasBusy = useRef(busy);
|
|
65
70
|
useEffect(() => {
|
|
66
|
-
if (wasBusy.current && !busy)
|
|
71
|
+
if (enabled && wasBusy.current && !busy)
|
|
67
72
|
void refetch();
|
|
68
73
|
wasBusy.current = busy;
|
|
69
|
-
}, [busy, refetch]);
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
}, [busy, enabled, refetch]);
|
|
75
|
+
const value = useMemo(() => enabled && projectId
|
|
76
|
+
? { projectId, requests: data ?? NO_REQUESTS, refetch: () => void refetch() }
|
|
77
|
+
: null, [enabled, projectId, data, refetch]);
|
|
78
|
+
return _jsx(SessionConnectRequestsContext.Provider, { value: value, children: children });
|
|
79
|
+
}
|
|
80
|
+
/** The session's connect requests, or null outside a session that can finish them. */
|
|
81
|
+
export function useSessionConnectRequests() {
|
|
82
|
+
return useContext(SessionConnectRequestsContext);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The Connect card under a call that started connector sign-ins: one row per
|
|
86
|
+
* request the call names. Nothing when the session holds no such request
|
|
87
|
+
* (another member's private sign-in, an account removed since).
|
|
88
|
+
*/
|
|
89
|
+
export function SessionConnectCard({ calls, className, }) {
|
|
90
|
+
const context = useSessionConnectRequests();
|
|
91
|
+
if (!context || calls.length === 0)
|
|
92
|
+
return null;
|
|
93
|
+
const requests = connectorSignInRequests(context.requests, calls);
|
|
94
|
+
if (requests.length === 0)
|
|
82
95
|
return null;
|
|
83
|
-
return (_jsx(SessionConnectNotice, { requests:
|
|
96
|
+
return (_jsx(SessionConnectNotice, { requests: requests, projectId: context.projectId, onSettled: context.refetch, className: className }));
|
|
84
97
|
}
|
|
85
|
-
/** The card itself: one row per request. */
|
|
86
|
-
export function SessionConnectNotice({ requests, projectId, onSettled, }) {
|
|
98
|
+
/** The card itself: a headline, then one row per request. */
|
|
99
|
+
export function SessionConnectNotice({ requests, projectId, onSettled, className, }) {
|
|
87
100
|
const t = useTranslations('connectSignIn');
|
|
88
101
|
const allConnected = requests.every((request) => request.connected);
|
|
89
|
-
return (
|
|
90
|
-
// `w-full`, or the composer's `items-center` strip shrinks this to its content width.
|
|
91
|
-
_jsxs("div", { className: "relative isolate z-10 w-full", "data-testid": "session-connect-prompt", children: [_jsxs("div", { className: "text-muted-foreground flex min-h-6 items-center gap-1.5 px-3 py-1 text-xs", children: [_jsx(PlugsConnectedIcon, { className: cn('size-3.5 shrink-0', allConnected ? 'text-kortix-green' : 'text-kortix-orange') }), _jsx("span", { className: "min-w-0 truncate", children: allConnected ? t('signInFinished') : t('cardHeadline') })] }), _jsx("ul", { className: "flex flex-col gap-1 px-3 pt-0.5 pb-2.5", children: requests.map((request) => (_jsx(SessionConnectRow, { request: request, projectId: projectId, onSettled: onSettled }, sessionConnectRequestKey(request)))) })] }));
|
|
102
|
+
return (_jsxs("div", { className: cn('w-full', className), "data-testid": "session-connect-card", children: [_jsxs("div", { className: "text-muted-foreground flex min-h-6 items-center gap-1.5 py-1 text-xs", children: [_jsx(PlugsConnectedIcon, { className: cn('size-3.5 shrink-0', allConnected ? 'text-kortix-green' : 'text-kortix-orange') }), _jsx("span", { className: "min-w-0 truncate", children: allConnected ? t('signInFinished') : t('cardHeadline') })] }), _jsx("ul", { className: "flex flex-col gap-1 pt-0.5", children: requests.map((request) => (_jsx(SessionConnectRow, { request: request, projectId: projectId, onSettled: onSettled }, sessionConnectRequestKey(request)))) })] }));
|
|
92
103
|
}
|
|
93
104
|
function SessionConnectRow({ request, projectId, onSettled, }) {
|
|
94
105
|
const t = useTranslations('connectSignIn');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { AnimatePresence, m
|
|
3
|
+
import { AnimatePresence, m } from 'motion/react';
|
|
4
|
+
import { useReducedMotion } from '../../internal/hooks/use-reduced-motion.js';
|
|
4
5
|
import { useEffect, useState } from 'react';
|
|
5
6
|
import { SessionDotMatrix } from '../../primitives/dot-matrix/session-dot-matrix.js';
|
|
6
7
|
import { TextShimmer } from '../../primitives/text-shimmer.js';
|
|
@@ -210,7 +210,7 @@ function TurnErrorCheckpoint({ text, gateway, raw, defaultOpen, action, modelOpt
|
|
|
210
210
|
const suggestion = actionableSuggestion(gateway?.suggestion && gateway.suggestion !== text ? gateway.suggestion : undefined, modelOptions);
|
|
211
211
|
const failures = gateway?.attemptFailures ?? [];
|
|
212
212
|
const canOpen = describeTurnErrorRow({ text, gateway, raw }).expandable;
|
|
213
|
-
const row = (_jsxs("div", { className: "
|
|
213
|
+
const row = (_jsxs("div", { className: "w-full text-left text-sm", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(WarningCircleIcon, { className: "text-kortix-red size-4 flex-none" }), _jsx("span", { className: "text-foreground flex-none font-medium", children: tI18nComplete.raw('text1a4f630ac1b6') }), canOpen ? (_jsx(CaretRightIcon, { className: cn('text-muted-foreground size-3.5 flex-none', 'transition-transform group-data-[state=open]/step:rotate-90') })) : null] }), _jsx("p", { className: cn('text-muted-foreground mt-1 pl-7 wrap-anywhere', canOpen && 'group-hover/trigger:text-foreground duration-fast transition-colors'), children: text })] }));
|
|
214
214
|
const hint = suggestion ? (_jsx("p", { className: "text-muted-foreground mt-1 pl-7 text-xs text-pretty wrap-anywhere", children: suggestion })) : null;
|
|
215
215
|
if (!canOpen) {
|
|
216
216
|
return (_jsxs("div", { role: "alert", className: className, children: [row, hint, action] }));
|
|
@@ -7,6 +7,7 @@ import { cn } from '../../lib/utils.js';
|
|
|
7
7
|
import { useIsSidePanelOpen } from '../../internal/stores/kortix-computer-store.js';
|
|
8
8
|
import { MENU_PANEL } from '../../primitives/menu-recipe.js';
|
|
9
9
|
import { DASH_ROW_HEIGHT, DASH_THICKNESS, RAIL_WIDTH, dashCenterY, dashOpacity, dashWidth, downsampleDashes, extractMinimapItem, nearestDashRow, } from './chat-minimap-items.js';
|
|
10
|
+
import { prefersReducedMotion } from '../../internal/hooks/use-reduced-motion.js';
|
|
10
11
|
function MinimapCard({ item }) {
|
|
11
12
|
const hasBody = item.segments.length > 0;
|
|
12
13
|
return (_jsx("div", { className: cn(MENU_PANEL, 'w-64 rounded-md border px-3 py-2.5'), children: hasBody && (_jsx("p", { className: "text-muted-foreground line-clamp-3 text-xs leading-5", children: item.segments.map((segment, i) => segment.mention ? (_jsxs("span", { className: "text-foreground font-medium", children: [segment.mention === 'agent' ? (_jsx(CubeIcon, { className: "mr-1 inline size-3 align-[-0.15em]" })) : null, segment.text] }, i)) : (_jsx("span", { children: segment.text }, i))) })) }));
|
|
@@ -107,7 +108,7 @@ export function ChatMinimap({ turns, scrollRef, contentRef }) {
|
|
|
107
108
|
scrollEl.getBoundingClientRect().top +
|
|
108
109
|
scrollEl.scrollTop -
|
|
109
110
|
24;
|
|
110
|
-
const reduceMotion =
|
|
111
|
+
const reduceMotion = prefersReducedMotion();
|
|
111
112
|
scrollEl.scrollTo({ top: Math.max(0, offset), behavior: reduceMotion ? 'auto' : 'smooth' });
|
|
112
113
|
}, [contentRef, scrollRef]);
|
|
113
114
|
if (items.length < 3 || sidePanelOpen)
|
|
@@ -46,5 +46,8 @@ export { SESSION_TRANSCRIPT_CLASS } from './session-transcript-class.js';
|
|
|
46
46
|
* true, because that thread is what crossfades into `SessionChat`.
|
|
47
47
|
*/
|
|
48
48
|
export function SessionBodyRow({ children, actionPanel = true, transient = false, }) {
|
|
49
|
-
return (
|
|
49
|
+
return (
|
|
50
|
+
// `@container/session-body`: the action panel caps its width at half of
|
|
51
|
+
// this row (`50cqw`), so the chat always keeps the other half.
|
|
52
|
+
_jsxs("div", { className: "@container/session-body flex min-h-0 flex-1 overflow-hidden", children: [_jsx("div", { className: "relative flex min-w-0 flex-1 flex-col", "data-toast-anchor": "", children: children }), actionPanel && _jsx(SessionActionPanelColumn, { hotkey: !transient })] }));
|
|
50
53
|
}
|