@kortix/ui 0.15.11 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_vendor/kortix-shared.js +478 -179
- package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
- package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
- package/dist/access/access/copy-row.d.ts +7 -1
- package/dist/access/access/copy-row.js +2 -2
- package/dist/animated-copy-icon.js +2 -1
- package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
- package/dist/browser/sandbox-browser-chrome.js +1 -1
- package/dist/customize/agents/agent-cover-card.d.ts +1 -1
- package/dist/customize/agents/agent-cover-card.js +10 -2
- package/dist/customize/agents/agent-filter.js +3 -1
- package/dist/customize/agents/agent-overview.d.ts +10 -0
- package/dist/customize/agents/agent-overview.js +5 -4
- package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
- package/dist/customize/agents/agent-page-chrome.js +16 -13
- package/dist/customize/agents/agent-page.js +6 -28
- package/dist/customize/agents/agent-tabs.d.ts +1 -0
- package/dist/customize/agents/agent-tabs.js +1 -0
- package/dist/customize/agents/agents-page.js +3 -3
- package/dist/customize/agents/create-agent-modal.d.ts +9 -0
- package/dist/customize/agents/create-agent-modal.js +21 -3
- package/dist/customize/agents/use-default-agent.js +2 -2
- package/dist/customize/connectors/connector-identity.d.ts +11 -2
- package/dist/customize/connectors/connector-identity.js +16 -4
- package/dist/customize/connectors/connectors-page.js +10 -6
- package/dist/customize/connectors/detail/app-page.js +2 -2
- package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
- package/dist/customize/connectors/install/install-dialog.js +6 -1
- package/dist/customize/connectors/use-agent-access.d.ts +1 -0
- package/dist/customize/evals/eval-compare-view.d.ts +10 -0
- package/dist/customize/evals/eval-compare-view.js +68 -0
- package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
- package/dist/customize/evals/eval-dataset-view.js +81 -0
- package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
- package/dist/customize/evals/eval-datasets-page.js +91 -0
- package/dist/customize/evals/eval-job-view.d.ts +12 -0
- package/dist/customize/evals/eval-job-view.js +360 -0
- package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
- package/dist/customize/evals/eval-jobs-page.js +69 -0
- package/dist/customize/evals/eval-meta.d.ts +97 -0
- package/dist/customize/evals/eval-meta.js +228 -0
- package/dist/customize/evals/eval-task-view.d.ts +13 -0
- package/dist/customize/evals/eval-task-view.js +123 -0
- package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
- package/dist/customize/evals/eval-tasks-page.js +56 -0
- package/dist/customize/evals/eval-ui.d.ts +97 -0
- package/dist/customize/evals/eval-ui.js +153 -0
- package/dist/customize/evals/evals-page.d.ts +10 -0
- package/dist/customize/evals/evals-page.js +56 -0
- package/dist/customize/evals/run-eval-modal.d.ts +28 -0
- package/dist/customize/evals/run-eval-modal.js +167 -0
- package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
- package/dist/customize/project-settings/project-admin-sections.js +6 -1
- package/dist/customize/providers/provider-connect.d.ts +13 -0
- package/dist/customize/providers/provider-connect.js +29 -5
- package/dist/customize/providers/provider-sheet.js +5 -4
- package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
- package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
- package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
- package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
- package/dist/customize/sections/view/git-view.d.ts +19 -1
- package/dist/customize/sections/view/git-view.js +7 -3
- package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
- package/dist/customize/sections/view/manifest-issue-list.js +41 -0
- package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
- package/dist/customize/sections/view/manifest-issues-row.js +39 -0
- package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
- package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
- package/dist/customize/sections/view/secrets-view.d.ts +13 -0
- package/dist/customize/sections/view/secrets-view.js +10 -6
- package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
- package/dist/customize/sections/view/subscription-usage.js +4 -8
- package/dist/customize/settings/settings-tab-header.js +12 -3
- package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
- package/dist/customize/settings/tabs/experimental-tab.js +36 -11
- package/dist/customize/settings/tabs/general-tab.js +1 -1
- package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
- package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
- package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
- package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
- package/dist/customize/settings/tabs/workspace-keys.js +6 -3
- package/dist/customize/shared/capability-page-shell.js +9 -1
- package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
- package/dist/customize/shared/catalog/catalog-card.js +15 -5
- package/dist/customize/shared/customize-tab-bar.js +1 -1
- package/dist/customize/shared/new-entity-menu.d.ts +1 -1
- package/dist/customize/shared/new-entity-menu.js +38 -1
- package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
- package/dist/customize/triggers/runtime-triggers.js +21 -2
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule-view.js +2 -1
- package/dist/files/project/components/drive-explorer.js +33 -70
- package/dist/files/project/components/drive-grid-view.d.ts +2 -31
- package/dist/files/project/components/drive-grid-view.js +12 -22
- package/dist/files/project/components/drive-list-view.d.ts +3 -30
- package/dist/files/project/components/drive-list-view.js +8 -18
- package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
- package/dist/files/project/components/drive-selection-bar.js +13 -20
- package/dist/files/project/components/explorer-listing.d.ts +48 -0
- package/dist/files/project/components/explorer-listing.js +64 -0
- package/dist/files/project/components/file-explorer-page.js +7 -204
- package/dist/files/project/components/file-thumbnail.js +3 -1
- package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
- package/dist/files/project/components/manifest-issue-mark.js +26 -0
- package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
- package/dist/files/project/hooks/use-change-requests.js +17 -0
- package/dist/files/project/manifest-annotations.d.ts +16 -0
- package/dist/files/project/manifest-annotations.js +19 -0
- package/dist/files/project/store/version-store.d.ts +1 -1
- package/dist/files/project/upload-batch.d.ts +20 -0
- package/dist/files/project/upload-batch.js +20 -0
- package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
- package/dist/files/runtime/hooks/use-file-content.js +3 -2
- package/dist/files/runtime/hooks/use-file-list.js +1 -2
- package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
- package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
- package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
- package/dist/files/tree/components/file-tree-item.js +1 -4
- package/dist/files/viewer/file-annotations.d.ts +18 -0
- package/dist/files/viewer/file-annotations.js +21 -0
- package/dist/files/viewer/file-content-renderer.js +1 -1
- package/dist/files/viewer/file-viewer.js +2 -1
- package/dist/files/viewer/index.d.ts +1 -0
- package/dist/files/viewer/index.js +1 -0
- package/dist/files/viewer/use-file-content-state.js +8 -1
- package/dist/i18n/en.d.ts +495 -46
- package/dist/i18n/en.js +536 -87
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
- package/dist/icons/caret-right-solid.d.ts +11 -0
- package/dist/icons/caret-right-solid.js +15 -0
- package/dist/internal/auth/auth-art.d.ts +12 -0
- package/dist/internal/auth/auth-art.js +118 -0
- package/dist/internal/auth/auth-card-shell.d.ts +14 -10
- package/dist/internal/auth/auth-card-shell.js +20 -31
- package/dist/internal/auth/auth-consent.d.ts +3 -1
- package/dist/internal/auth/auth-consent.js +2 -2
- package/dist/internal/auth/auth-primitives.d.ts +26 -1
- package/dist/internal/auth/auth-primitives.js +37 -8
- package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
- package/dist/internal/connector-logo/connector-logo.js +11 -2
- package/dist/internal/files/file-read-retry.d.ts +18 -2
- package/dist/internal/files/file-read-retry.js +42 -4
- package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
- package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
- package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
- package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
- package/dist/internal/hooks/use-reduced-motion.js +12 -0
- package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
- package/dist/internal/hooks/use-save-shortcut.js +28 -0
- package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
- package/dist/internal/layout/connect-mcp-modal.js +9 -4
- package/dist/internal/layout/panel-chrome.d.ts +28 -0
- package/dist/internal/layout/panel-chrome.js +27 -0
- package/dist/internal/layout/project-page-header.js +5 -1
- package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
- package/dist/internal/lib/manifest-health.d.ts +25 -1
- package/dist/internal/lib/manifest-health.js +56 -0
- package/dist/internal/lib/project-preamble.js +1 -1
- package/dist/internal/lib/web-notifications.d.ts +1 -1
- package/dist/internal/lib/web-notifications.js +3 -0
- package/dist/internal/notifications/notification-inbox.js +2 -1
- package/dist/internal/notifications/notification-rows.d.ts +1 -1
- package/dist/internal/notifications/notification-rows.js +15 -1
- package/dist/internal/selection/selection-bar.d.ts +2 -8
- package/dist/internal/selection/selection-bar.js +15 -38
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/browser-recents-store.d.ts +1 -1
- package/dist/internal/stores/current-account-store.d.ts +1 -1
- package/dist/internal/stores/first-chat-store.d.ts +1 -1
- package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
- package/dist/internal/stores/session-browser-store.d.ts +1 -1
- package/dist/internal/stores/session-expanded-store.d.ts +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/session-history-view-store.d.ts +1 -1
- package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
- package/dist/internal/stores/sound-store.d.ts +1 -1
- package/dist/internal/stores/tab-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +9 -1
- package/dist/internal/stores/user-preferences-store.js +2 -0
- package/dist/internal/stores/web-notification-store.d.ts +1 -1
- package/dist/lib/base-ui-compat.js +28 -1
- package/dist/lib/dotmatrix-hooks.d.ts +1 -0
- package/dist/lib/dotmatrix-hooks.js +3 -13
- package/dist/lib/reduced-motion.d.ts +10 -0
- package/dist/lib/reduced-motion.js +104 -0
- package/dist/lib/routes.d.ts +9 -0
- package/dist/lib/routes.js +7 -4
- package/dist/markdown/artifact-link.d.ts +11 -0
- package/dist/markdown/artifact-link.js +62 -0
- package/dist/markdown/code/index.d.ts +1 -1
- package/dist/markdown/code/index.js +1 -1
- package/dist/markdown/code/inline-code.d.ts +1 -1
- package/dist/markdown/code/inline-code.js +1 -1
- package/dist/markdown/genui/components/map-canvas.js +2 -1
- package/dist/markdown/index.d.ts +3 -1
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
- package/dist/markdown/inline-code-text.d.ts +34 -0
- package/dist/markdown/inline-code-text.js +68 -0
- package/dist/markdown/setup-links/approval-decision.js +3 -3
- package/dist/markdown/soft-breaks.d.ts +21 -0
- package/dist/markdown/soft-breaks.js +33 -0
- package/dist/markdown/unified-markdown.d.ts +9 -1
- package/dist/markdown/unified-markdown.js +31 -9
- package/dist/primitives/action-bar.d.ts +50 -0
- package/dist/primitives/action-bar.js +87 -0
- package/dist/primitives/calendar.js +4 -2
- package/dist/primitives/inline-meta.js +2 -2
- package/dist/primitives/kortix-loader.js +2 -1
- package/dist/primitives/modal.d.ts +1 -1
- package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
- package/dist/primitives/paper-wallpaper-shaders.js +6 -0
- package/dist/primitives/resizable.d.ts +1 -1
- package/dist/primitives/resize-seam.d.ts +3 -2
- package/dist/primitives/resize-seam.js +4 -3
- package/dist/primitives/settings-section-header.d.ts +30 -1
- package/dist/primitives/settings-section-header.js +37 -0
- package/dist/primitives/sliding-tab-indicator.js +2 -1
- package/dist/primitives/switch.js +15 -8
- package/dist/primitives/text-shimmer.js +6 -0
- package/dist/primitives/toast-clearance.d.ts +52 -0
- package/dist/primitives/toast-clearance.js +116 -0
- package/dist/primitives/toast.d.ts +3 -1
- package/dist/primitives/toast.js +2 -0
- package/dist/primitives/typed-title.js +1 -1
- package/dist/primitives/wallpaper-shaders.js +1 -1
- package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
- package/dist/session/actions/project-session-list-helpers.js +18 -0
- package/dist/session/agents/agent-model.d.ts +1 -0
- package/dist/session/agents/agent-model.js +2 -1
- package/dist/session/agents/agent-strip.js +10 -4
- package/dist/session/agents/workflow-run-controls.d.ts +27 -4
- package/dist/session/agents/workflow-run-controls.js +63 -10
- package/dist/session/composer/ComposerCard.js +3 -0
- package/dist/session/composer/agent-selector.js +6 -4
- package/dist/session/composer/animated-placeholder.js +2 -1
- package/dist/session/composer/attachment-tile.d.ts +2 -2
- package/dist/session/composer/attachment-tile.js +25 -3
- package/dist/session/composer/composer-agent-access.d.ts +10 -1
- package/dist/session/composer/composer-agent-access.js +18 -4
- package/dist/session/composer/composer-chat-input.js +7 -2
- package/dist/session/composer/composer.d.ts +2 -2
- package/dist/session/composer/composer.js +7 -6
- package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
- package/dist/session/composer/hooks/use-file-search.js +71 -7
- package/dist/session/composer/menus/menu-items.js +6 -2
- package/dist/session/composer/menus/menu-shell.d.ts +3 -1
- package/dist/session/composer/menus/menu-shell.js +2 -2
- package/dist/session/composer/menus/slash-menu.d.ts +7 -0
- package/dist/session/composer/menus/slash-menu.js +48 -1
- package/dist/session/composer/use-instant-session-send.js +7 -1
- package/dist/session/header/session-reminders-indicator.js +3 -2
- package/dist/session/header/session-site-header.js +24 -6
- package/dist/session/media/sandbox-url-detector.js +1 -1
- package/dist/session/models/model-connection-gate.js +2 -1
- package/dist/session/models/model-selector.js +1 -1
- package/dist/session/models/subscription-switcher.d.ts +7 -0
- package/dist/session/models/subscription-switcher.js +52 -10
- package/dist/session/models/subscription-windows.d.ts +2 -0
- package/dist/session/models/subscription-windows.js +2 -0
- package/dist/session/outcomes/session-outcomes-provider.js +14 -7
- package/dist/session/panel/action-panel.js +8 -19
- package/dist/session/panel/easy/app-preview.d.ts +4 -1
- package/dist/session/panel/easy/app-preview.js +95 -33
- package/dist/session/panel/easy/apps-card.js +6 -11
- package/dist/session/panel/easy/change-requests-card.js +1 -1
- package/dist/session/panel/easy/changes-card.d.ts +14 -0
- package/dist/session/panel/easy/changes-card.js +60 -0
- package/dist/session/panel/easy/context-card.d.ts +5 -1
- package/dist/session/panel/easy/context-card.js +13 -28
- package/dist/session/panel/easy/context-meter.d.ts +18 -0
- package/dist/session/panel/easy/context-meter.js +73 -0
- package/dist/session/panel/easy/detail-view.d.ts +1 -1
- package/dist/session/panel/easy/detail-view.js +24 -21
- package/dist/session/panel/easy/easy-panel.js +7 -5
- package/dist/session/panel/easy/file-preview.js +3 -1
- package/dist/session/panel/easy/frame-history.d.ts +91 -0
- package/dist/session/panel/easy/frame-history.js +198 -0
- package/dist/session/panel/easy/outputs-card.d.ts +10 -0
- package/dist/session/panel/easy/outputs-card.js +28 -31
- package/dist/session/panel/easy/panel-card.d.ts +1 -3
- package/dist/session/panel/easy/panel-card.js +24 -8
- package/dist/session/panel/easy/plan-card.js +2 -2
- package/dist/session/panel/easy/step-icon.d.ts +4 -1
- package/dist/session/panel/easy/step-icon.js +2 -2
- package/dist/session/panel/session-action-panel-column.d.ts +5 -0
- package/dist/session/panel/session-action-panel-column.js +198 -101
- package/dist/session/panel/session-desktop.js +5 -1
- package/dist/session/panel/session-diff-viewer.d.ts +3 -1
- package/dist/session/panel/session-diff-viewer.js +7 -4
- package/dist/session/panel/session-panel-provider.js +29 -5
- package/dist/session/panel/shared/derive-panels.js +64 -4
- package/dist/session/status/session-busy-indicator.js +2 -1
- package/dist/session/status/session-error-banner.js +1 -1
- package/dist/session/thread/chat-minimap.js +2 -1
- package/dist/session/thread/session-body.js +4 -1
- package/dist/session/thread/session-chat.js +18 -3
- package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
- package/dist/session/thread/session-turn-meta-rows.js +33 -5
- package/dist/session/thread/transcript.d.ts +1 -2
- package/dist/session/thread/transcript.js +26 -24
- package/dist/session/thread/typing-indicator.d.ts +2 -2
- package/dist/session/thread/typing-indicator.js +10 -3
- package/dist/session/tool/tools/session-spawn-tool.js +3 -3
- package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
- package/dist/session/tool/tools/workflow-run-card.js +31 -7
- package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
- package/dist/session/tool/tools/workflow-run-cost.js +75 -0
- package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
- package/dist/session/tool/tools/workflow-tool.js +40 -15
- package/dist/session/turn/peer-message-row.js +1 -1
- package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
- package/dist/session/turn/queued-prompt-bubbles.js +1 -1
- package/dist/session/turn/throttled-markdown.js +1 -1
- package/dist/styles/theme.css +68 -0
- package/dist/styles.css +1 -1
- package/dist/terminal/pty-terminal.js +1 -1
- package/dist/terminal/session-terminal-connect-bar.js +2 -1
- package/dist/test-utils/intl.d.ts +495 -46
- package/dist/workspace/admin/project-admin-dashboard.js +21 -7
- package/dist/workspace/admin/settings-search-landing.js +2 -1
- package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
- package/dist/workspace/calendar/calendar-dates.js +64 -0
- package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
- package/dist/workspace/calendar/calendar-new-item.js +47 -0
- package/dist/workspace/calendar/calendar-page.d.ts +3 -0
- package/dist/workspace/calendar/calendar-page.js +177 -0
- package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
- package/dist/workspace/calendar/calendar-panel.js +103 -0
- package/dist/workspace/calendar/calendar-people.d.ts +52 -0
- package/dist/workspace/calendar/calendar-people.js +117 -0
- package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
- package/dist/workspace/calendar/calendar-scheduled.js +118 -0
- package/dist/workspace/calendar/calendar-views.d.ts +32 -0
- package/dist/workspace/calendar/calendar-views.js +124 -0
- package/dist/workspace/calendar/calendar-when.d.ts +14 -0
- package/dist/workspace/calendar/calendar-when.js +81 -0
- package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
- package/dist/workspace/calendar/mention-textarea.js +84 -0
- package/dist/workspace/home/access-requests-bell.js +2 -1
- package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
- package/dist/workspace/inbox/workspace-inbox.js +1 -1
- package/dist/workspace/layout/project-files-view.js +2 -1
- package/dist/workspace/memory/memory-page-list.js +1 -1
- package/dist/workspace/new/workspace-handoff.js +2 -1
- package/dist/workspace/projects/modal/project-icon-field.js +2 -1
- package/dist/workspace/session-workspace.js +13 -12
- package/dist/workspace/setup/setup-steps.d.ts +43 -0
- package/dist/workspace/setup/setup-steps.js +38 -0
- package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
- package/dist/workspace/setup/workspace-setup-page.js +124 -0
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
- package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
- package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
- package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
- package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
- package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
- package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
- package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
- package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
- package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
- package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
- package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
- package/dist/workspace/sidebar/footer/promo-card.js +47 -0
- package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
- package/dist/workspace/sidebar/project-nav-items.js +12 -4
- package/dist/workspace/sidebar/project-session-list.js +58 -26
- package/dist/workspace/sidebar/project-sidebar.js +2 -5
- package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
- package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
- package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
- package/dist/workspace/sidebar/session-group-sections.js +121 -41
- package/dist/workspace/sidebar/sidebar-drill.js +6 -0
- package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
- package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
- package/dist/workspace/sidebar/use-workspace-list.js +11 -1
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
- package/dist/workspace/space/space-tab-panels.js +1 -1
- package/dist/workspace/spaces/space-timeline.js +2 -2
- package/package.json +67 -10
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/modules.md +5 -3
- package/dist/session/thread/turn-share.d.ts +0 -16
- package/dist/session/thread/turn-share.js +0 -161
- package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
- package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
- /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Browser panel's history model (`AppPreview`).
|
|
3
|
+
*
|
|
4
|
+
* The frame is cross-origin, so the panel cannot read its address. The preview
|
|
5
|
+
* proxy adds a bridge to framed pages (`apps/api/src/sandbox-proxy/preview-bridge.ts`)
|
|
6
|
+
* that posts `{ type: PREVIEW_LOCATION_MESSAGE, path }` to the panel. These
|
|
7
|
+
* functions turn those reports into the address bar and Back/Forward (D-05).
|
|
8
|
+
*
|
|
9
|
+
* The history also outlives the `AppPreview` that built it, per session, so a
|
|
10
|
+
* switch to Terminal and back reopens the same page with the same Back/Forward
|
|
11
|
+
* (D-06). The session-change effect in `session-panel-provider.tsx` forgets it.
|
|
12
|
+
*/
|
|
13
|
+
import { parseLocalhostUrl, toInternalUrl } from '@kortix/sdk';
|
|
14
|
+
/** Same string as `PREVIEW_LOCATION_MESSAGE` in the API's preview-bridge.ts. */
|
|
15
|
+
export const PREVIEW_LOCATION_MESSAGE = 'kortix:preview-location';
|
|
16
|
+
export function currentEntry(history) {
|
|
17
|
+
return history.entries[history.index] ?? '';
|
|
18
|
+
}
|
|
19
|
+
/** A new page opened by the panel itself: drops the forward entries. */
|
|
20
|
+
export function pushEntry(history, url) {
|
|
21
|
+
return { entries: [...history.entries.slice(0, history.index + 1), url], index: history.index + 1 };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The internal URL a bridge message reports, on the port of the page the frame
|
|
25
|
+
* loaded, or null when the message is not a location report.
|
|
26
|
+
*/
|
|
27
|
+
export function reportedFrameUrl(data, frameUrl) {
|
|
28
|
+
if (!data || typeof data !== 'object')
|
|
29
|
+
return null;
|
|
30
|
+
const { type, path } = data;
|
|
31
|
+
if (type !== PREVIEW_LOCATION_MESSAGE || typeof path !== 'string' || !path.startsWith('/'))
|
|
32
|
+
return null;
|
|
33
|
+
const port = parseLocalhostUrl(frameUrl)?.port;
|
|
34
|
+
return port ? toInternalUrl(port, path) : null;
|
|
35
|
+
}
|
|
36
|
+
/** A number field of a bridge message (`length`, `index`), when present. */
|
|
37
|
+
function reportedNumber(data, key) {
|
|
38
|
+
const value = data && typeof data === 'object' ? data[key] : undefined;
|
|
39
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : null;
|
|
40
|
+
}
|
|
41
|
+
export function frameReportOf(data, url, settling) {
|
|
42
|
+
const index = reportedNumber(data, 'index');
|
|
43
|
+
const key = data && typeof data === 'object' ? data.key : undefined;
|
|
44
|
+
return {
|
|
45
|
+
url,
|
|
46
|
+
settling,
|
|
47
|
+
index: index !== null && index >= 0 ? index : null,
|
|
48
|
+
length: reportedNumber(data, 'length'),
|
|
49
|
+
key: typeof key === 'string' && key ? key : null,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export const NEW_FRAME_TRACKER = { base: null, length: null, keys: {} };
|
|
53
|
+
function replaceCurrent(history, url) {
|
|
54
|
+
if (url === currentEntry(history))
|
|
55
|
+
return history;
|
|
56
|
+
const entries = history.entries.slice();
|
|
57
|
+
entries[history.index] = url;
|
|
58
|
+
return { entries, index: history.index };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Apply one report, the way a browser moves through its own history.
|
|
62
|
+
*
|
|
63
|
+
* - The first report after a load replaces the entry the panel opened (a
|
|
64
|
+
* server redirect lands here) and maps the frame's position to it.
|
|
65
|
+
* - With the Navigation API the frame says WHERE in its own history it is,
|
|
66
|
+
* and which slot (`key`): the same position is a `replaceState` (an auth
|
|
67
|
+
* redirect `/login` -> `/dashboard`); a position whose slot key the panel
|
|
68
|
+
* saw there is a traversal (`history.back()`, the tab's Back); anything else
|
|
69
|
+
* is a push, which drops the entries after it, as a browser does. A push to
|
|
70
|
+
* a URL equal to the old forward entry is still a push: the key differs.
|
|
71
|
+
* A frame without keys falls back to URL equality.
|
|
72
|
+
* - Without it, `history.length` is the signal: growth is a push; no growth is
|
|
73
|
+
* a step to a neighbor entry with this URL, else a replace. A push that
|
|
74
|
+
* drops forward entries keeps the length, so this fallback can misread it.
|
|
75
|
+
* - A report with neither (no Navigation API and no `length`) pushes.
|
|
76
|
+
*/
|
|
77
|
+
export function reduceFrameReport(history, tracker, report) {
|
|
78
|
+
const { url, settling, index, length } = report;
|
|
79
|
+
const { key } = report;
|
|
80
|
+
if (settling) {
|
|
81
|
+
return {
|
|
82
|
+
history: replaceCurrent(history, url),
|
|
83
|
+
tracker: {
|
|
84
|
+
base: index === null ? null : { panel: history.index, frame: index },
|
|
85
|
+
length,
|
|
86
|
+
keys: key ? { [history.index]: key } : {},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const next = { base: tracker.base, length, keys: tracker.keys };
|
|
91
|
+
if (index !== null && tracker.base) {
|
|
92
|
+
const target = Math.max(0, Math.min(history.entries.length, tracker.base.panel + index - tracker.base.frame));
|
|
93
|
+
const keys = (upTo) => {
|
|
94
|
+
const kept = {};
|
|
95
|
+
for (const [at, k] of Object.entries(tracker.keys))
|
|
96
|
+
if (Number(at) < upTo)
|
|
97
|
+
kept[Number(at)] = k;
|
|
98
|
+
if (key)
|
|
99
|
+
kept[target] = key;
|
|
100
|
+
return kept;
|
|
101
|
+
};
|
|
102
|
+
if (target === history.index) {
|
|
103
|
+
return { history: replaceCurrent(history, url), tracker: { ...next, keys: { ...tracker.keys, ...(key ? { [target]: key } : {}) } } };
|
|
104
|
+
}
|
|
105
|
+
const seen = tracker.keys[target];
|
|
106
|
+
const traversal = key && seen ? seen === key : !key && history.entries[target] === url;
|
|
107
|
+
if (traversal) {
|
|
108
|
+
return { history: replaceCurrent({ entries: history.entries, index: target }, url), tracker: next };
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
history: { entries: [...history.entries.slice(0, target), url], index: target },
|
|
112
|
+
tracker: { ...next, keys: keys(target) },
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
if (url === currentEntry(history))
|
|
116
|
+
return { history, tracker: next };
|
|
117
|
+
if (tracker.length !== null && length !== null && length <= tracker.length) {
|
|
118
|
+
for (const neighbor of [history.index - 1, history.index + 1]) {
|
|
119
|
+
if (history.entries[neighbor] === url)
|
|
120
|
+
return { history: { entries: history.entries, index: neighbor }, tracker: next };
|
|
121
|
+
}
|
|
122
|
+
return { history: replaceCurrent(history, url), tracker: next };
|
|
123
|
+
}
|
|
124
|
+
return { history: pushEntry(history, url), tracker: next };
|
|
125
|
+
}
|
|
126
|
+
// Per-session memory. Module scope because the `AppPreview` that owns the
|
|
127
|
+
// history unmounts on every switch to Terminal; keyed by the provider's
|
|
128
|
+
// session id, so two sessions never share a page.
|
|
129
|
+
const remembered = new Map();
|
|
130
|
+
export function rememberFrameHistory(key, history) {
|
|
131
|
+
remembered.set(key, history);
|
|
132
|
+
}
|
|
133
|
+
export function recallFrameHistory(key) {
|
|
134
|
+
return remembered.get(key);
|
|
135
|
+
}
|
|
136
|
+
export function forgetFrameHistory(key) {
|
|
137
|
+
remembered.delete(key);
|
|
138
|
+
appsAtOpen.delete(key);
|
|
139
|
+
}
|
|
140
|
+
// The session's app list (as one string) when its Browser last opened.
|
|
141
|
+
const appsAtOpen = new Map();
|
|
142
|
+
/** Records the session's app list when its Browser opens, by any route (the
|
|
143
|
+
* header, a chat link, an app card, an Outputs row). */
|
|
144
|
+
export function noteBrowserApps(key, apps) {
|
|
145
|
+
appsAtOpen.set(key, apps.join('\n'));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The history an untargeted Browser open (the header, the palette) resumes,
|
|
149
|
+
* or undefined to open the first app as before. It resumes only a real page,
|
|
150
|
+
* never the empty landing, and only while no app appeared since the Browser
|
|
151
|
+
* last opened (`noteBrowserApps`): a new app the agent started is what the
|
|
152
|
+
* user wants to see. `apps` is the session's app URLs in panel order.
|
|
153
|
+
*/
|
|
154
|
+
export function resumableFrameHistory(key, apps) {
|
|
155
|
+
const resumed = remembered.get(key);
|
|
156
|
+
if (!resumed || !currentEntry(resumed))
|
|
157
|
+
return undefined;
|
|
158
|
+
const seen = appsAtOpen.get(key);
|
|
159
|
+
if (seen !== undefined && seen !== apps.join('\n'))
|
|
160
|
+
return undefined;
|
|
161
|
+
return resumed;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The history an `AppPreview` opened on `url` starts from: the session's
|
|
165
|
+
* remembered history when its current page IS `url` (the panel is resuming),
|
|
166
|
+
* else a fresh one-entry history.
|
|
167
|
+
*/
|
|
168
|
+
export function initialFrameHistory(key, url) {
|
|
169
|
+
const resumed = key ? remembered.get(key) : undefined;
|
|
170
|
+
return resumed && currentEntry(resumed) === url ? resumed : { entries: [url], index: 0 };
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* The authenticated preview URL for the page on screen. `previewUrl` was
|
|
174
|
+
* minted for `frameUrl`, the page the frame loaded; after a navigation inside
|
|
175
|
+
* the frame, `currentUrl` differs. Swap the app path and query, keep the
|
|
176
|
+
* proxy prefix and the access parameters the URL carries.
|
|
177
|
+
*/
|
|
178
|
+
export function retargetPreviewUrl(previewUrl, frameUrl, currentUrl) {
|
|
179
|
+
if (!previewUrl || !currentUrl || currentUrl === frameUrl)
|
|
180
|
+
return previewUrl;
|
|
181
|
+
try {
|
|
182
|
+
const out = new URL(previewUrl);
|
|
183
|
+
const from = new URL(frameUrl);
|
|
184
|
+
const to = new URL(currentUrl);
|
|
185
|
+
if (from.port !== to.port || !out.pathname.endsWith(from.pathname))
|
|
186
|
+
return previewUrl;
|
|
187
|
+
out.pathname = out.pathname.slice(0, out.pathname.length - from.pathname.length) + to.pathname;
|
|
188
|
+
for (const key of new Set(from.searchParams.keys()))
|
|
189
|
+
out.searchParams.delete(key);
|
|
190
|
+
for (const [key, value] of to.searchParams)
|
|
191
|
+
out.searchParams.append(key, value);
|
|
192
|
+
out.hash = to.hash;
|
|
193
|
+
return out.toString();
|
|
194
|
+
}
|
|
195
|
+
catch {
|
|
196
|
+
return previewUrl;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import type { OutputItem } from '../shared/derive-panels.js';
|
|
2
|
+
/** The chalk key: a file's extension, else its kind. */
|
|
3
|
+
export declare function chalkLabel(output: {
|
|
4
|
+
kind: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}): string;
|
|
7
|
+
/** A 24px chalk tile, fill only (no border); the glyph takes the chalk ink, whatever its own color class. */
|
|
8
|
+
export declare function ChalkTile({ label, children }: {
|
|
9
|
+
label: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
2
12
|
export declare function OutputRows({ outputs, onOpenOutput, initialShowAll, }: {
|
|
3
13
|
outputs: OutputItem[];
|
|
4
14
|
/** Only called for outputs that are actually openable — see `isOpenable`. */
|
|
@@ -23,6 +23,7 @@ import { ObjectUrlCache } from '../../../internal/lib/object-url-cache.js';
|
|
|
23
23
|
import { track } from '../../../lib/telemetry.js';
|
|
24
24
|
import { cn } from '../../../lib/utils.js';
|
|
25
25
|
import { AppWindowIcon as AppWindow, CaretDownIcon as ChevronDown, FileTextIcon as FileText, ImageIcon, PresentationIcon, VideoIcon, } from '@phosphor-icons/react';
|
|
26
|
+
import { chalkColors } from '../../../_vendor/kortix-shared.js';
|
|
26
27
|
import { useEffect, useState } from 'react';
|
|
27
28
|
import { deliverableKindLabel, isScaffoldingOutput } from '../shared/output-priority.js';
|
|
28
29
|
import { groupOutputsByKind, outputKey } from './easy-panel-logic.js';
|
|
@@ -80,11 +81,11 @@ function ImageThumb({ path, callID, name }) {
|
|
|
80
81
|
// `size-4`, like every other leading glyph in this list — the fallback
|
|
81
82
|
// stands where the thumbnail will, so it must not be a smaller mark.
|
|
82
83
|
const Ico = KIND_ICON.image;
|
|
83
|
-
return _jsx(Ico, { className: "text-
|
|
84
|
+
return _jsx(Ico, { className: "text-foreground size-4" });
|
|
84
85
|
}
|
|
85
86
|
return (
|
|
86
87
|
// eslint-disable-next-line @next/next/no-img-element
|
|
87
|
-
_jsx("img", { src: src, alt: name, className: "size-
|
|
88
|
+
_jsx("img", { src: src, alt: name, className: "size-6 rounded-sm object-cover outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10" }));
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
90
91
|
* A file gets its real per-extension glyph (the `.md` tile, the `.png` tile) —
|
|
@@ -94,21 +95,27 @@ function ImageThumb({ path, callID, name }) {
|
|
|
94
95
|
* thumbnail (W13): the icon says "picture," the thumb shows which one.
|
|
95
96
|
*/
|
|
96
97
|
function OutputIcon({ output }) {
|
|
97
|
-
const tile = 'flex size-
|
|
98
|
-
/** A quiet ground under the glyph, the same treatment the Context card's
|
|
99
|
-
* `FileList` tiles carry. Without it the leading mark floats and the list
|
|
100
|
-
* loses the left edge the eye reads down. A real thumbnail is its own
|
|
101
|
-
* anchor and fills the whole tile, so it stays bare — a ground under a
|
|
102
|
-
* transparent PNG would read as a backing colour the image doesn't have. */
|
|
103
|
-
const groundedTile = `${tile} bg-muted/70`;
|
|
104
|
-
if (output.kind === 'file') {
|
|
105
|
-
return (_jsx("span", { className: groundedTile, children: getFileIcon(output.name, { className: 'size-4', variant: 'monochrome' }) }));
|
|
106
|
-
}
|
|
98
|
+
const tile = 'flex size-6 shrink-0 items-center justify-center rounded-sm';
|
|
107
99
|
if (output.kind === 'image' && output.path) {
|
|
108
100
|
return (_jsx("span", { className: tile, children: _jsx(ImageThumb, { path: output.path, callID: output.callID, name: output.name }) }));
|
|
109
101
|
}
|
|
102
|
+
// The chalk tile Drive uses for a file type: one stable color per extension
|
|
103
|
+
// (or per kind, for an app or generated media), the glyph in its ink. A list
|
|
104
|
+
// of eight outputs reads by color before a single name is read.
|
|
110
105
|
const Ico = KIND_ICON[output.kind];
|
|
111
|
-
return (_jsx(
|
|
106
|
+
return (_jsx(ChalkTile, { label: chalkLabel(output), children: output.kind === 'file' ? (getFileIcon(output.name, { className: 'size-3.5', variant: 'monochrome' })) : (_jsx(Ico, { className: "size-3.5" })) }));
|
|
107
|
+
}
|
|
108
|
+
/** The chalk key: a file's extension, else its kind. */
|
|
109
|
+
export function chalkLabel(output) {
|
|
110
|
+
if (output.kind === 'file' && output.name.includes('.')) {
|
|
111
|
+
return output.name.slice(output.name.lastIndexOf('.') + 1).toUpperCase();
|
|
112
|
+
}
|
|
113
|
+
return output.kind.toUpperCase();
|
|
114
|
+
}
|
|
115
|
+
/** A 24px chalk tile, fill only (no border); the glyph takes the chalk ink, whatever its own color class. */
|
|
116
|
+
export function ChalkTile({ label, children }) {
|
|
117
|
+
const chalk = chalkColors(label);
|
|
118
|
+
return (_jsx("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm [&_svg]:text-current!", style: { backgroundColor: chalk.background, color: chalk.foreground }, "aria-hidden": true, children: children }));
|
|
112
119
|
}
|
|
113
120
|
/** An output leads somewhere only if there's something to open: a file has a
|
|
114
121
|
* path, a running app has a URL. Media the agent generated may have neither. */
|
|
@@ -132,11 +139,12 @@ const VISIBLE_LIMIT = 8;
|
|
|
132
139
|
* branches render the identical row markup instead of two copies drifting
|
|
133
140
|
* apart. */
|
|
134
141
|
function OutputRow({ output, onOpenOutput, }) {
|
|
142
|
+
const t = useTranslations('sessionUi.panel');
|
|
135
143
|
return (_jsx("li", { className: "flex items-center", children: _jsxs("button", { type: "button", disabled: !isOpenable(output), onClick: () => isOpenable(output) && onOpenOutput(output),
|
|
136
|
-
//
|
|
137
|
-
//
|
|
138
|
-
//
|
|
139
|
-
className: "hover:bg-accent
|
|
144
|
+
// Compact (~34px): a run can make dozens of outputs, and the chalk
|
|
145
|
+
// tile carries the type, so a row is the tile, the name and at most
|
|
146
|
+
// one state word. The kind label repeated what the tile already says.
|
|
147
|
+
title: `${output.title ?? output.name} · ${deliverableKindLabel(output)}`, className: "hover:bg-accent flex w-full items-center gap-2.5 px-4 py-1.5 text-left transition-[background-color,transform] active:scale-[0.998] disabled:cursor-default", children: [_jsx(OutputIcon, { output: output }), _jsx("span", { className: "text-foreground min-w-0 flex-1 truncate text-sm", children: output.title ?? output.name }), output.fresh === 'new' && (_jsx("span", { className: "text-kortix-green shrink-0 text-xs font-medium", children: t('outputNew') })), output.fresh === 'updated' && (_jsx("span", { className: "text-muted-foreground shrink-0 text-xs", children: t('outputUpdated') }))] }) }));
|
|
140
148
|
}
|
|
141
149
|
export function OutputRows({ outputs, onOpenOutput, initialShowAll, }) {
|
|
142
150
|
const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
|
|
@@ -154,12 +162,12 @@ export function OutputRows({ outputs, onOpenOutput, initialShowAll, }) {
|
|
|
154
162
|
// `groupOutputsByKind`'s own doc comment) — the collapsed, pre-fold slice
|
|
155
163
|
// stays a flat list, so this is `null` whenever `showAll` is false.
|
|
156
164
|
const groups = showAll ? groupOutputsByKind(visible) : null;
|
|
157
|
-
return (_jsxs(FadedScrollArea, { fadeColor: "from-pane", rootClassName: "h-auto min-h-0 flex-1", className: "overscroll-contain", children: [groups ? (_jsx("div", { className: "flex flex-col gap-0", children: groups.map((group, i) => (_jsxs("div", { children: [_jsx("p", { className: cn('text-muted-foreground px-
|
|
165
|
+
return (_jsxs(FadedScrollArea, { fadeColor: "from-pane", rootClassName: "h-auto min-h-0 flex-1", className: "overscroll-contain", children: [groups ? (_jsx("div", { className: "flex flex-col gap-0", children: groups.map((group, i) => (_jsxs("div", { children: [_jsx("p", { className: cn('text-muted-foreground px-4 pb-1 text-xs font-medium', i > 0 && 'pt-2'), children: group.label }), _jsx("ul", { className: "flex flex-col gap-0", children: group.items.map((o) => (_jsx(OutputRow, { output: o, onOpenOutput: onOpenOutput }, outputKey(o)))) })] }, group.kind))) })) : (_jsx("ul", { className: "flex flex-col gap-0", children: visible.map((o) => (_jsx(OutputRow, { output: o, onOpenOutput: onOpenOutput }, outputKey(o)))) })), hidden > 0 && !showAll && (_jsxs("button", { type: "button", onClick: () => setShowAll(true),
|
|
158
166
|
// Same rhythm and press feedback as the rows above it. `color` rides
|
|
159
167
|
// along in the transition list because this row also lightens its
|
|
160
168
|
// label on hover — `transition-colors` would have swept in
|
|
161
169
|
// border-color and fill with it.
|
|
162
|
-
className: "text-muted-foreground hover:text-foreground hover:bg-accent
|
|
170
|
+
className: "text-muted-foreground hover:text-foreground hover:bg-accent mt-0.5 flex w-full cursor-pointer items-center gap-2.5 px-4 py-1.5 text-left text-sm transition-[background-color,color,transform] active:scale-[0.998]", children: [_jsx("span", { className: "flex size-6 shrink-0 items-center justify-center", children: _jsx(ChevronDown, { className: "size-3.5" }) }), _jsxs("span", { className: "truncate tabular-nums", children: [hidden, " ", tI18nComplete.raw('text187897ce0afc'), " ", hiddenNoun] })] }))] }));
|
|
163
171
|
}
|
|
164
172
|
/**
|
|
165
173
|
* The card header's "download all" affordance (W15). Only worth offering once
|
|
@@ -196,16 +204,5 @@ function DownloadAllAction({ outputs }) {
|
|
|
196
204
|
}
|
|
197
205
|
export function OutputsCard({ outputs, defaultExpanded, onOpenOutput, fill = true, }) {
|
|
198
206
|
const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
|
|
199
|
-
return (_jsx(PanelCard, { title: tI18nComplete.raw('texte7ce99764a2d'), count: outputs.length, isEmpty: outputs.length === 0, defaultExpanded: defaultExpanded,
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Soft placeholder art — a stacked-document glyph, matching the reference.
|
|
203
|
-
*
|
|
204
|
-
* Full-alpha `border-border` and `bg-muted/50` for the same reason
|
|
205
|
-
* `ContextArt` (context-card.tsx) carries them: on dark, `--border` at 60%
|
|
206
|
-
* and `--muted` at 30% both resolve to within ~0.03 L of `--card`, which left
|
|
207
|
-
* the frame invisible in exactly the state whose whole job is to be seen.
|
|
208
|
-
*/
|
|
209
|
-
function OutputsArt() {
|
|
210
|
-
return (_jsxs("div", { "aria-hidden": true, className: "border-border bg-muted/50 flex h-16 w-20 items-end justify-center gap-1 rounded-md border p-3", children: [_jsx("span", { className: "bg-muted-foreground/30 h-4 w-1.5 rounded-sm" }), _jsx("span", { className: "bg-muted-foreground/30 h-7 w-1.5 rounded-sm" }), _jsx("span", { className: "bg-muted-foreground/30 h-5 w-1.5 rounded-sm" })] }));
|
|
207
|
+
return (_jsx(PanelCard, { title: tI18nComplete.raw('texte7ce99764a2d'), count: outputs.length, isEmpty: outputs.length === 0, defaultExpanded: defaultExpanded, emptyText: tI18nComplete.raw('textd5f2ad00f99b'), contentClassName: cn('flex min-h-0 flex-col pb-2', !fill && 'max-h-40 overflow-y-auto'), fill: fill, headerAction: _jsx(DownloadAllAction, { outputs: outputs }), children: _jsx(OutputRows, { outputs: outputs, onOpenOutput: onOpenOutput }) }));
|
|
211
208
|
}
|
|
@@ -49,9 +49,7 @@ export interface PanelCardProps {
|
|
|
49
49
|
* card, the rest fixed, is what keeps Context and Preview on screen while
|
|
50
50
|
* Outputs holds two hundred files.
|
|
51
51
|
*
|
|
52
|
-
*
|
|
53
|
-
* container, so a `fill` card's `contentClassName` carries padding only —
|
|
54
|
-
* pass no `border-t` or the card draws two.
|
|
52
|
+
* A `fill` card's `contentClassName` carries padding and scrolling only.
|
|
55
53
|
*/
|
|
56
54
|
fill?: boolean;
|
|
57
55
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
|
-
* `PanelCard` — the reusable Easy-mode
|
|
4
|
+
* `PanelCard` — the reusable Easy-mode section shell (a flat section of the
|
|
5
|
+
* docked cards column; the name predates the flat design). Outputs, Context, Preview
|
|
5
6
|
* and Plan are all this component with different contents.
|
|
6
7
|
*
|
|
7
8
|
* Collapsed and empty, a card is a *promise*: a title, soft placeholder art,
|
|
@@ -16,15 +17,19 @@ import { CountBadge } from '../../../primitives/count-badge.js';
|
|
|
16
17
|
import { Disclosure, DisclosureContent, DisclosureTrigger } from '../../../primitives/disclosure.js';
|
|
17
18
|
import { Empty, EmptyContent, EmptyDescription, EmptyMedia } from '../../../primitives/empty.js';
|
|
18
19
|
import { cn } from '../../../lib/utils.js';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
20
|
+
import { m } from 'motion/react';
|
|
21
|
+
import { useReducedMotion } from '../../../internal/hooks/use-reduced-motion.js';
|
|
21
22
|
import { useState } from 'react';
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
import { CaretRightSolidIcon } from '../../../icons/caret-right-solid.js';
|
|
24
|
+
/** Full-width section header. A flat row, not a card lid: hover is color
|
|
25
|
+
* only. `px-4` is the column's one left edge: the rows below use it too. */
|
|
26
|
+
const HEADER_CLASS = cn('flex min-h-11 w-full items-center justify-between gap-2 px-4 py-2 text-left', 'transition-colors duration-(--duration-fast) ease-out',
|
|
27
|
+
// The same hover fill as the rows below: one hover token per column.
|
|
28
|
+
'hover:bg-accent');
|
|
24
29
|
function CardTitleRow({ title, count, indicator, subtitle, chevron, }) {
|
|
25
30
|
return (_jsxs(_Fragment, { children: [_jsxs("span", { className: "flex min-w-0 flex-col gap-0.5", children: [_jsxs("span", { className: "flex min-w-0 items-baseline gap-1.5", children: [_jsx("span", { className: "text-foreground truncate text-sm font-semibold", children: title }), typeof count === 'number' && count > 0 && (_jsx(CountBadge, { count: count })), indicator && _jsx("span", { className: "flex shrink-0 self-center", children: indicator })] }), subtitle] }), chevron] }));
|
|
26
31
|
}
|
|
27
|
-
export function PanelCard({ title, count, indicator, subtitle, children, emptyArt, emptyText, emptyActions, isEmpty, defaultExpanded = false, contentClassName = '
|
|
32
|
+
export function PanelCard({ title, count, indicator, subtitle, children, emptyArt, emptyText, emptyActions, isEmpty, defaultExpanded = false, contentClassName = 'px-4 pb-4', headerAction, fill = false, }) {
|
|
28
33
|
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
29
34
|
const reduce = useReducedMotion();
|
|
30
35
|
const transition = reduce ? { duration: 0 } : { duration: 0.2, ease: 'easeOut' };
|
|
@@ -37,10 +42,21 @@ export function PanelCard({ title, count, indicator, subtitle, children, emptyAr
|
|
|
37
42
|
if (defaultExpanded)
|
|
38
43
|
setExpanded(true);
|
|
39
44
|
}
|
|
40
|
-
return (
|
|
45
|
+
return (
|
|
46
|
+
// A section of the docked column, not a card: no fill, no radius, no box.
|
|
47
|
+
// Sections divide with one hairline under each, the way the column itself
|
|
48
|
+
// is divided from the chat by one hairline (`panel-chrome.ts`).
|
|
49
|
+
_jsxs(Disclosure, { open: expanded, onOpenChange: setExpanded, className: cn(
|
|
50
|
+
// `last:border-b-0`: dividers sit BETWEEN sections, no stray rule
|
|
51
|
+
// under the last one.
|
|
52
|
+
'text-foreground border-border border-b last:border-b-0', fill ? 'flex min-h-0 flex-col' : 'shrink-0'), transition: transition, children: [_jsx(DisclosureTrigger, { children: _jsx("div", { className: cn(HEADER_CLASS, 'cursor-pointer'), children: _jsx(CardTitleRow, { title: title, count: count, indicator: indicator, subtitle: subtitle, chevron: _jsxs("span", { className: "flex shrink-0 items-center gap-0.5", children: [headerAction && (
|
|
41
53
|
// Isolated from the toggle on both input paths: `stopPropagation`
|
|
42
54
|
// on click covers the mouse/tap case, and on keydown stops the
|
|
43
55
|
// Enter/Space that activates the nested button from *also*
|
|
44
56
|
// bubbling up into the trigger's own Enter/Space handler.
|
|
45
|
-
_jsx("span", { onClick: (e) => e.stopPropagation(), onKeyDown: (e) => e.stopPropagation(), children: headerAction })), _jsx(m.span, { animate: { rotate: expanded ? 90 : 0 }, transition: transition, className: "text-muted-foreground shrink-0", children: _jsx(
|
|
57
|
+
_jsx("span", { onClick: (e) => e.stopPropagation(), onKeyDown: (e) => e.stopPropagation(), children: headerAction })), _jsx(m.span, { animate: { rotate: expanded ? 90 : 0 }, transition: transition, className: "text-muted-foreground shrink-0", children: _jsx(CaretRightSolidIcon, { className: "size-4" }) })] }) }) }) }), _jsx(DisclosureContent, { className: cn(fill && 'flex min-h-0 flex-col'), contentClassName: contentClassName, children: isEmpty && !emptyArt ? (
|
|
58
|
+
// Compact empty: one line in the section's own left edge, plus its
|
|
59
|
+
// action. The illustrated `Empty` below stays for callers that pass
|
|
60
|
+
// art; the session column's sections pass none.
|
|
61
|
+
_jsxs("div", { className: "flex flex-col items-start gap-2 px-4", children: [emptyText && _jsx("p", { className: "text-muted-foreground text-sm text-pretty", children: emptyText }), emptyActions] })) : isEmpty ? (_jsxs(Empty, { className: "flex-none gap-3 rounded-none border-none p-0 text-center", children: [emptyArt && _jsx(EmptyMedia, { className: "mb-0", children: emptyArt }), emptyText && _jsx(EmptyDescription, { className: "text-pretty", children: emptyText }), emptyActions && (_jsx(EmptyContent, { className: "w-full max-w-none", children: emptyActions }))] })) : (children) })] }));
|
|
46
62
|
}
|
|
@@ -104,7 +104,7 @@ export function PlanPanelCard({ sessionId }) {
|
|
|
104
104
|
// `block`, not a bare span: `truncate` needs a block box to
|
|
105
105
|
// clip against, and the header column already caps the width.
|
|
106
106
|
'block truncate text-xs', complete ? 'text-muted-foreground' : 'text-foreground/70'), children: label })) : undefined,
|
|
107
|
-
// `px-
|
|
107
|
+
// `px-4` matches the header's own inset, so a step's glyph sits on the
|
|
108
108
|
// same left edge as the title above it.
|
|
109
|
-
contentClassName: "
|
|
109
|
+
contentClassName: "px-4 pb-3", defaultExpanded: true, children: _jsx(PlanSteps, { rows: rows }) }));
|
|
110
110
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Step } from '@kortix/sdk';
|
|
2
2
|
import type { StepFamily } from '@kortix/sdk';
|
|
3
|
-
export declare function StepIcon({ family, status }: {
|
|
3
|
+
export declare function StepIcon({ family, status, tone, }: {
|
|
4
4
|
family: StepFamily;
|
|
5
5
|
status: Step['status'];
|
|
6
|
+
/** A done step's color: muted in the stepper, foreground in the session
|
|
7
|
+
* panel's Context list, where every glyph is foreground. Failed stays red. */
|
|
8
|
+
tone?: 'muted' | 'foreground';
|
|
6
9
|
}): import("react").JSX.Element;
|
|
@@ -37,12 +37,12 @@ const FAMILY_ICON = {
|
|
|
37
37
|
retired: Archive,
|
|
38
38
|
other: Wrench,
|
|
39
39
|
};
|
|
40
|
-
export function StepIcon({ family, status }) {
|
|
40
|
+
export function StepIcon({ family, status, tone = 'muted', }) {
|
|
41
41
|
const Glyph = FAMILY_ICON[family] ?? Wrench;
|
|
42
42
|
// A running step is the one thing the eye must find without reading. Keep the
|
|
43
43
|
// pulse it had as a dot, now wrapped around the glyph itself.
|
|
44
44
|
if (status === 'running') {
|
|
45
45
|
return (_jsxs("span", { className: "relative flex size-4 shrink-0 items-center justify-center", children: [_jsx("span", { className: "bg-kortix-green/25 absolute inline-flex size-4 animate-ping rounded-full motion-reduce:animate-none" }), _jsx(Glyph, { className: "text-kortix-green relative size-4" })] }));
|
|
46
46
|
}
|
|
47
|
-
return (_jsx(Glyph, { className: cn('size-4 shrink-0', status === 'error' ? 'text-kortix-red' : 'text-muted-foreground') }));
|
|
47
|
+
return (_jsx(Glyph, { className: cn('size-4 shrink-0', status === 'error' ? 'text-kortix-red' : tone === 'foreground' ? 'text-foreground' : 'text-muted-foreground') }));
|
|
48
48
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/** Width bounds, in px. The chat keeps at least the rest of the row. */
|
|
2
|
+
export declare const ACTION_PANEL_DEFAULT_WIDTH = 340;
|
|
3
|
+
export declare const ACTION_PANEL_MIN_WIDTH = 280;
|
|
4
|
+
export declare const ACTION_PANEL_MAX_WIDTH = 560;
|
|
5
|
+
export declare function clampActionPanelWidth(width: number, max?: number): number;
|
|
1
6
|
export declare function SessionActionPanelColumn({
|
|
2
7
|
/**
|
|
3
8
|
* Own the ⌘I / Ctrl+I binding. False for the instant boot shell: it and the
|