@kortix/ui 0.15.11 → 0.16.1
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 +485 -187
- 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 +497 -46
- package/dist/i18n/en.js +538 -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 +497 -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/layout/project-home.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-banner.d.ts +4 -0
- package/dist/workspace/setup/setup-banner.js +57 -0
- package/dist/workspace/setup/setup-steps.d.ts +57 -0
- package/dist/workspace/setup/setup-steps.js +53 -0
- package/dist/workspace/setup/use-setup-steps.d.ts +18 -0
- package/dist/workspace/setup/use-setup-steps.js +57 -0
- package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
- package/dist/workspace/setup/workspace-setup-page.js +91 -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/footer/sandbox-health.js +1 -1
- 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
|
@@ -140,18 +140,13 @@ export function useNewProjectSession(projectId) {
|
|
|
140
140
|
const createSessionRow = makeCreateSession(projectId, opts, router, queryClient);
|
|
141
141
|
// A space thread shows up in the timeline at once, so it gets no toast.
|
|
142
142
|
const inSpace = Boolean(opts.create?.space_id);
|
|
143
|
-
// `threads
|
|
144
|
-
//
|
|
145
|
-
// "startingSession" and "sessionStarted" in en, fr, de, pt, sr and
|
|
146
|
-
// zh — the key id was written into the value slot — so the toast
|
|
147
|
-
// rendered its own key name. `threads.startingSession` /
|
|
148
|
-
// `threads.sessionStarted` are the canonical entries and are
|
|
149
|
-
// correctly translated in all nine catalogs.
|
|
143
|
+
// `threads.startingSession`, not `hardcodedUi.i18nComplete.*`: those
|
|
144
|
+
// slots held the key id as their value in six catalogs.
|
|
150
145
|
const createSession = () => inSpace
|
|
151
146
|
? createSessionRow()
|
|
152
|
-
:
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
: // No success toast: the session page opens next, and a toast for
|
|
148
|
+
// the session on screen covered its composer's Send/Stop button.
|
|
149
|
+
loadingToast(t('startingSession'), createSessionRow(), { success: false });
|
|
155
150
|
createScopedSession({
|
|
156
151
|
create: createSession,
|
|
157
152
|
draft: opts?.scope?.draft,
|
|
@@ -179,13 +179,5 @@ export function settleMotion(input) {
|
|
|
179
179
|
}
|
|
180
180
|
return 'instant';
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
export
|
|
184
|
-
if (reducedMotionQuery === undefined) {
|
|
185
|
-
reducedMotionQuery =
|
|
186
|
-
typeof window !== 'undefined' && typeof window.matchMedia === 'function'
|
|
187
|
-
? window.matchMedia('(prefers-reduced-motion: reduce)')
|
|
188
|
-
: null;
|
|
189
|
-
}
|
|
190
|
-
return reducedMotionQuery?.matches ?? false;
|
|
191
|
-
}
|
|
182
|
+
// The OS setting or the "Reduce motion" switch (`use-reduced-motion.ts`).
|
|
183
|
+
export { prefersReducedMotion } from './use-reduced-motion.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
+
export * from '../../lib/reduced-motion.js';
|
|
3
|
+
/** The switch's stored value, for the Preferences control. Legacy persisted preferences predate it: `false`. */
|
|
4
|
+
export declare function useReduceMotionSetting(): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
/**
|
|
3
|
+
* The reduced-motion hooks (`lib/reduced-motion.ts`) plus the switch's stored
|
|
4
|
+
* value. The stored value reads the preferences store, a higher layer than
|
|
5
|
+
* `primitives/` and `lib/`, so it stays here; everything else lives in `lib/`.
|
|
6
|
+
*/
|
|
7
|
+
import { useUserPreferencesStore } from '../stores/user-preferences-store.js';
|
|
8
|
+
export * from '../../lib/reduced-motion.js';
|
|
9
|
+
/** The switch's stored value, for the Preferences control. Legacy persisted preferences predate it: `false`. */
|
|
10
|
+
export function useReduceMotionSetting() {
|
|
11
|
+
return useUserPreferencesStore((s) => s.preferences.reduceMotion === true);
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
+
/**
|
|
3
|
+
* Mod+S (⌘S, Ctrl+S) calls `onSave` while `enabled` is true. With nothing to
|
|
4
|
+
* save the key keeps the browser's own behavior. A key pressed inside an open
|
|
5
|
+
* dialog belongs to that dialog, never to the page's draft. Caps Lock does not
|
|
6
|
+
* change the match.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSaveShortcut(enabled: boolean, onSave: () => void): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Mod+S (⌘S, Ctrl+S) calls `onSave` while `enabled` is true. With nothing to
|
|
4
|
+
* save the key keeps the browser's own behavior. A key pressed inside an open
|
|
5
|
+
* dialog belongs to that dialog, never to the page's draft. Caps Lock does not
|
|
6
|
+
* change the match.
|
|
7
|
+
*/
|
|
8
|
+
export function useSaveShortcut(enabled, onSave) {
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!enabled)
|
|
11
|
+
return;
|
|
12
|
+
const handler = (event) => {
|
|
13
|
+
if (event.defaultPrevented)
|
|
14
|
+
return;
|
|
15
|
+
if (!(event.metaKey || event.ctrlKey) || event.shiftKey || event.altKey)
|
|
16
|
+
return;
|
|
17
|
+
if (event.key.toLowerCase() !== 's')
|
|
18
|
+
return;
|
|
19
|
+
const target = event.target instanceof Element ? event.target : null;
|
|
20
|
+
if (target?.closest('[role="dialog"], [role="alertdialog"]'))
|
|
21
|
+
return;
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
onSave();
|
|
24
|
+
};
|
|
25
|
+
window.addEventListener('keydown', handler);
|
|
26
|
+
return () => window.removeEventListener('keydown', handler);
|
|
27
|
+
}, [enabled, onSave]);
|
|
28
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { ComponentType } from 'react';
|
|
|
3
3
|
/** The MCP endpoint: `<api origin>/v1/mcp`. */
|
|
4
4
|
export declare function mcpUrl(backendUrl: string | undefined): string;
|
|
5
5
|
export declare function cursorInstallUrl(url: string): string;
|
|
6
|
-
type ClientId = 'claude' | 'claude-code' | 'cursor' | 'codex' | 'other';
|
|
6
|
+
type ClientId = 'claude' | 'chatgpt' | 'claude-code' | 'cursor' | 'codex' | 'other';
|
|
7
7
|
export interface Client {
|
|
8
8
|
id: ClientId;
|
|
9
9
|
/** Product names are identifiers, not UI copy. `null`: the translated "Any MCP client". */
|
|
@@ -20,6 +20,7 @@ import { Claude } from '../icons/claude.js';
|
|
|
20
20
|
import { ClaudeCode } from '../icons/claude-code.js';
|
|
21
21
|
import { Codex } from '../icons/codex.js';
|
|
22
22
|
import { Cursor } from '../icons/cursor.js';
|
|
23
|
+
import { OpenAI } from '../icons/open-ai.js';
|
|
23
24
|
import { SolidCheckIcon } from '../icons/solid-check-icon.js';
|
|
24
25
|
import { useCopy } from '../hooks/use-copy.js';
|
|
25
26
|
import { useTranslations } from '../../i18n/index.js';
|
|
@@ -35,6 +36,9 @@ export function cursorInstallUrl(url) {
|
|
|
35
36
|
const OtherLogo = ({ className }) => (_jsx(LinkSimpleIcon, { className: cn('text-muted-foreground', className) }));
|
|
36
37
|
export const CLIENTS = [
|
|
37
38
|
{ id: 'claude', name: 'Claude', Logo: Claude, action: { kind: 'url' } },
|
|
39
|
+
// ChatGPT adds a remote MCP server as a custom connector in developer mode,
|
|
40
|
+
// with OAuth sign-in: the URL is all it needs.
|
|
41
|
+
{ id: 'chatgpt', name: 'ChatGPT', Logo: OpenAI, action: { kind: 'url' } },
|
|
38
42
|
{
|
|
39
43
|
id: 'claude-code',
|
|
40
44
|
name: 'Claude Code',
|
|
@@ -53,15 +57,16 @@ export const CLIENTS = [
|
|
|
53
57
|
},
|
|
54
58
|
{ id: 'other', name: null, Logo: OtherLogo, action: { kind: 'url' } },
|
|
55
59
|
];
|
|
56
|
-
/**
|
|
57
|
-
const ART_CLIENTS = CLIENTS.filter((client) => client.id !== 'other');
|
|
60
|
+
/** Four named clients, drawn on the art: the two chat apps, then the two coding tools. */
|
|
61
|
+
const ART_CLIENTS = CLIENTS.filter((client) => client.id !== 'other' && client.id !== 'claude-code');
|
|
58
62
|
export function ConnectMcpModal({ open, onOpenChange, }) {
|
|
59
63
|
const t = useTranslations('connectMcp');
|
|
60
64
|
const url = mcpUrl(platformConfig().backendUrl);
|
|
61
65
|
return (_jsx(Modal, { open: open, onOpenChange: onOpenChange, children: _jsx(ModalContent, { className: "space-y-0 lg:max-w-3xl", closeClassName: "max-sm:bg-background border-0 overflow-hidden", children: _jsxs("div", { className: "grid sm:grid-cols-5 lg:min-h-128", children: [_jsxs("div", { "aria-hidden": "true", className: "dark bg-background relative isolate flex h-48 items-center justify-center overflow-hidden rounded-t-xl border-b sm:col-span-2 sm:h-auto sm:rounded-tr-none sm:border-r sm:border-b-0 lg:rounded-bl-xl", children: [_jsx(BeamsShader, {}), _jsx("div", { className: "relative grid grid-cols-4 gap-2.5 sm:grid-cols-2", children: ART_CLIENTS.map(({ id, Logo }) => (
|
|
62
66
|
// `bg-foreground` is white under the art's `dark` scope: the marks carry their
|
|
63
|
-
// own brand colors (Codex brings its own white tile).
|
|
64
|
-
|
|
67
|
+
// own brand colors (Codex brings its own white tile). `text-background`
|
|
68
|
+
// inks the one mark drawn in `currentColor` (OpenAI) black on it.
|
|
69
|
+
_jsx("span", { className: "bg-foreground text-background flex size-16 items-center justify-center rounded-xl shadow-lg", children: _jsx(Logo, { className: "size-8" }) }, id))) })] }), _jsxs("div", { className: "flex min-w-0 flex-col gap-5 p-5 sm:col-span-3 lg:p-8", children: [_jsxs("header", { className: "space-y-1.5 pr-10", children: [_jsx(ModalTitle, { className: "text-lg font-medium text-balance", children: t('title') }), _jsx(ModalDescription, { className: "text-pretty", children: t('description') })] }), _jsxs("div", { className: "bg-muted flex min-w-0 items-center gap-3 rounded-md border p-3", children: [_jsx("code", { className: "min-w-0 flex-1 text-xs break-all select-text", children: url }), _jsx(ClientAction, { client: CLIENTS[0], url: url })] }), _jsx("ul", { className: "divide-border divide-y", children: CLIENTS.map((client) => (_jsxs("li", { className: "flex items-center gap-3 py-2.5", children: [_jsx("span", { className: "bg-muted flex size-9 shrink-0 items-center justify-center rounded-sm", children: _jsx(client.Logo, { className: "size-5" }) }), _jsxs("div", { className: "min-w-0 flex-1 space-y-0.5", children: [_jsx("p", { className: "text-sm font-medium", children: client.name ?? t('anyClient') }), _jsx("p", { className: "text-muted-foreground truncate text-xs", children: t(`via.${client.id}`) })] }), _jsx(ClientAction, { client: client, url: url })] }, client.id))) }), _jsxs("footer", { className: "mt-auto flex items-center justify-between pt-2", children: [_jsx(Button, { asChild: true, variant: "ghost", size: "sm", className: "text-muted-foreground gap-1", children: _jsxs(Link, { href: "/docs/guide#other-ai-tools-mcp", target: "_blank", children: [t('docs'), _jsx(ArrowUpRightIcon, { className: "size-3.5 shrink-0" })] }) }), _jsx(Button, { type: "button", onClick: () => onOpenChange(false), children: t('done') })] })] })] }) }) }));
|
|
65
70
|
}
|
|
66
71
|
// The secondary fill sits close to the row; a ring on hover marks the target.
|
|
67
72
|
const ACTION_CLASS = 'hover:border-ring hover:border hover:ring-ring/15 hover:ring-2 hit-area-y-3 hit-area-l-3 shrink-0 border border-transparent';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
+
/**
|
|
3
|
+
* The session screen's docked chrome — ONE definition for every bar and layer.
|
|
4
|
+
*
|
|
5
|
+
* The session screen is one frame split by hairlines: the chat on the left, the
|
|
6
|
+
* cards column and the detail panel (browser, terminal, files, a file preview)
|
|
7
|
+
* on the right. Nothing on it floats. Every top bar is the same height and
|
|
8
|
+
* draws the same bottom rule, so the rules line up into one horizontal line
|
|
9
|
+
* across every column, and every column is separated by one vertical rule.
|
|
10
|
+
*
|
|
11
|
+
* Before this file each surface picked its own bar (`py-1`, `py-2.5`, `h-10`)
|
|
12
|
+
* and the detail panel was a card inset by 12px with `shadow-md`. The brand
|
|
13
|
+
* rule is that an in-flow surface is flat: border, no shadow (`effects.md`).
|
|
14
|
+
* Import these instead of restating them, or the bars drift apart again.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* A top bar: the chat's session header, the detail panel's header, the
|
|
18
|
+
* browser's address bar, the file preview's header, the terminal's header.
|
|
19
|
+
* Callers add horizontal padding, gap and justification. `h-11` is 40.48px
|
|
20
|
+
* (`--spacing` is 0.23rem): a `size-7` control (25.76px) plus 7.36px above
|
|
21
|
+
* and below.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SESSION_BAR_CLASS = "border-border flex h-11 shrink-0 items-center border-b";
|
|
24
|
+
/**
|
|
25
|
+
* A detail layer docked in the right panel: it fills the panel edge to edge.
|
|
26
|
+
* The panel draws the vertical rule (`border-l`), so the layer draws none.
|
|
27
|
+
*/
|
|
28
|
+
export declare const DOCKED_LAYER_CLASS = "bg-background absolute inset-0 flex min-w-0 flex-col overflow-hidden";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The session screen's docked chrome — ONE definition for every bar and layer.
|
|
3
|
+
*
|
|
4
|
+
* The session screen is one frame split by hairlines: the chat on the left, the
|
|
5
|
+
* cards column and the detail panel (browser, terminal, files, a file preview)
|
|
6
|
+
* on the right. Nothing on it floats. Every top bar is the same height and
|
|
7
|
+
* draws the same bottom rule, so the rules line up into one horizontal line
|
|
8
|
+
* across every column, and every column is separated by one vertical rule.
|
|
9
|
+
*
|
|
10
|
+
* Before this file each surface picked its own bar (`py-1`, `py-2.5`, `h-10`)
|
|
11
|
+
* and the detail panel was a card inset by 12px with `shadow-md`. The brand
|
|
12
|
+
* rule is that an in-flow surface is flat: border, no shadow (`effects.md`).
|
|
13
|
+
* Import these instead of restating them, or the bars drift apart again.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* A top bar: the chat's session header, the detail panel's header, the
|
|
17
|
+
* browser's address bar, the file preview's header, the terminal's header.
|
|
18
|
+
* Callers add horizontal padding, gap and justification. `h-11` is 40.48px
|
|
19
|
+
* (`--spacing` is 0.23rem): a `size-7` control (25.76px) plus 7.36px above
|
|
20
|
+
* and below.
|
|
21
|
+
*/
|
|
22
|
+
export const SESSION_BAR_CLASS = 'border-border flex h-11 shrink-0 items-center border-b';
|
|
23
|
+
/**
|
|
24
|
+
* A detail layer docked in the right panel: it fills the panel edge to edge.
|
|
25
|
+
* The panel draws the vertical rule (`border-l`), so the layer draws none.
|
|
26
|
+
*/
|
|
27
|
+
export const DOCKED_LAYER_CLASS = 'bg-background absolute inset-0 flex min-w-0 flex-col overflow-hidden';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useSettingsPageTitle } from '../../primitives/settings-section-header.js';
|
|
3
4
|
import { useOptionalSidebar } from '../../primitives/sidebar.js';
|
|
4
5
|
import { SidebarToggle } from './sidebar-toggle.js';
|
|
5
6
|
/**
|
|
@@ -16,5 +17,8 @@ import { SidebarToggle } from './sidebar-toggle.js';
|
|
|
16
17
|
*/
|
|
17
18
|
export function ProjectPageHeader({ title, titleAccessory, breadcrumb, children, }) {
|
|
18
19
|
const sidebar = useOptionalSidebar();
|
|
19
|
-
|
|
20
|
+
// Inside Workspace settings (Repository) the settings page header above is
|
|
21
|
+
// the page's h1 and names the page: this row is only the browser's toolbar.
|
|
22
|
+
const inSettings = useSettingsPageTitle() !== null;
|
|
23
|
+
return (_jsxs("div", { className: "kx-titlebar-row kx-capability-titlebar relative flex shrink-0 items-center gap-1 border-b px-2", "data-sidebar-collapsed": sidebar?.state === 'collapsed' || undefined, children: [_jsx(SidebarToggle, {}), _jsxs("div", { className: "kx-titlebar-tabs flex h-10 min-w-0 flex-1 items-center gap-1.5 px-3", children: [breadcrumb, inSettings ? null : _jsx("h1", { className: "text-foreground truncate text-sm font-medium", children: title }), titleAccessory] }), children ? _jsx("div", { className: "flex shrink-0 items-center gap-1", children: children }) : null] }));
|
|
20
24
|
}
|
|
@@ -389,4 +389,20 @@ export const WEBVIEW_RULES = [
|
|
|
389
389
|
match: isAndroidWebViewNativeBridgePostEventNoise,
|
|
390
390
|
},
|
|
391
391
|
{ id: 'ios-webview-webkit-bridge', appliesTo: 'both', match: isIOSWebViewWebKitBridgeNoise },
|
|
392
|
+
{
|
|
393
|
+
// KRTX-4913: an XBrowser-family Android browser (`; WV` WebView UA) runs
|
|
394
|
+
// its own scripts in the page through `evaluateJavascript`
|
|
395
|
+
// (`needInjectCss`, `execute_auto_fill`), which call the app's bridge
|
|
396
|
+
// global; when the bridge is missing they throw `xbrowser is not defined`
|
|
397
|
+
// / `swbrowser is not defined`. Injected code is `<anonymous>`; Sentry's
|
|
398
|
+
// timer/listener wrapper can add one bundle frame OUTSIDE it, so the
|
|
399
|
+
// innermost frame is the throw site. Kortix never names these globals.
|
|
400
|
+
// A bundle frame at the throw site, a de-minified first-party frame
|
|
401
|
+
// anywhere, or no stack keeps reporting.
|
|
402
|
+
id: 'android-webview-host-browser-bridge',
|
|
403
|
+
appliesTo: 'sentry',
|
|
404
|
+
match: ({ message, frames }) => /^(?:sw|x)browser is not defined$/.test(stripErrorWrappers(normalizeString(message))) &&
|
|
405
|
+
normalizeString(frames.at(-1)?.filename) === '<anonymous>' &&
|
|
406
|
+
!frames.some((frame) => isFirstPartyResolvedSource(frame.filename)),
|
|
407
|
+
},
|
|
392
408
|
];
|
|
@@ -5,6 +5,30 @@
|
|
|
5
5
|
* the read is in flight, and from an API that does not serve the field yet.
|
|
6
6
|
* The server reads and validates `kortix.yaml`; a client never parses it to
|
|
7
7
|
* decide what state it is in.
|
|
8
|
+
*
|
|
9
|
+
* Every surface that shows the issues (the sidebar row, the Git tab, the
|
|
10
|
+
* Repository file card, the file viewer) filters them through
|
|
11
|
+
* `attentionHealth`, so one issue is hidden or shown the same everywhere.
|
|
8
12
|
*/
|
|
9
|
-
import { type ProjectManifestHealth } from '@kortix/sdk';
|
|
13
|
+
import { type ManifestIssue, type ProjectManifestHealth } from '@kortix/sdk';
|
|
14
|
+
import type { LspDiagnostic } from '../stores/diagnostics-store.js';
|
|
10
15
|
export declare function useProjectManifestHealth(projectId: string): ProjectManifestHealth | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The issues a person has to act on: every error, and each warning without a
|
|
18
|
+
* `fix`. A warning with a `fix` (a deprecated key, an older format) heals on
|
|
19
|
+
* the next Kortix write or `kortix validate --fix`, so the sidebar does not
|
|
20
|
+
* ask for it; `kortix validate` and the API still list it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function attentionHealth(health: ProjectManifestHealth | undefined): ProjectManifestHealth | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The attention issues that live in one repository file: the manifest's own
|
|
25
|
+
* (no `file`), or an `imports:` file's. Empty for any other file, and while
|
|
26
|
+
* the manifest has no issues.
|
|
27
|
+
*/
|
|
28
|
+
export declare function manifestIssuesForFile(health: ProjectManifestHealth | undefined, filePath: string): ManifestIssue[];
|
|
29
|
+
/**
|
|
30
|
+
* The same issues as editor diagnostics. The server's line and column are
|
|
31
|
+
* 1-indexed; `LspDiagnostic` is 0-indexed. An issue with no line (a file-wide
|
|
32
|
+
* one) marks line 1.
|
|
33
|
+
*/
|
|
34
|
+
export declare function manifestLspDiagnostics(health: ProjectManifestHealth | undefined, filePath: string): LspDiagnostic[];
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* the read is in flight, and from an API that does not serve the field yet.
|
|
6
6
|
* The server reads and validates `kortix.yaml`; a client never parses it to
|
|
7
7
|
* decide what state it is in.
|
|
8
|
+
*
|
|
9
|
+
* Every surface that shows the issues (the sidebar row, the Git tab, the
|
|
10
|
+
* Repository file card, the file viewer) filters them through
|
|
11
|
+
* `attentionHealth`, so one issue is hidden or shown the same everywhere.
|
|
8
12
|
*/
|
|
9
13
|
import { getProjectDetail } from '@kortix/sdk';
|
|
10
14
|
import { contract, qk } from '@kortix/sdk/react';
|
|
@@ -18,3 +22,55 @@ export function useProjectManifestHealth(projectId) {
|
|
|
18
22
|
...contract('config'),
|
|
19
23
|
}).data;
|
|
20
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* The issues a person has to act on: every error, and each warning without a
|
|
27
|
+
* `fix`. A warning with a `fix` (a deprecated key, an older format) heals on
|
|
28
|
+
* the next Kortix write or `kortix validate --fix`, so the sidebar does not
|
|
29
|
+
* ask for it; `kortix validate` and the API still list it.
|
|
30
|
+
*/
|
|
31
|
+
export function attentionHealth(health) {
|
|
32
|
+
if (health?.state !== 'issues')
|
|
33
|
+
return health;
|
|
34
|
+
const issues = health.issues.filter((issue) => issue.severity === 'error' || !issue.fix);
|
|
35
|
+
// The server's counts can exceed the listed issues: keep them, less the hidden warnings.
|
|
36
|
+
const warnings = Math.max(0, health.warnings - (health.issues.length - issues.length));
|
|
37
|
+
return { ...health, state: health.errors + warnings > 0 ? 'issues' : 'ok', issues, warnings };
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A repository path compared without a leading `./` or `/`, and without the
|
|
41
|
+
* `/workspace` root the Repository view's file paths carry.
|
|
42
|
+
*/
|
|
43
|
+
function repoPath(path) {
|
|
44
|
+
return path
|
|
45
|
+
.trim()
|
|
46
|
+
.replace(/^\/workspace(?=\/|$)/, '')
|
|
47
|
+
.replace(/^(\.\/|\/)+/, '');
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The attention issues that live in one repository file: the manifest's own
|
|
51
|
+
* (no `file`), or an `imports:` file's. Empty for any other file, and while
|
|
52
|
+
* the manifest has no issues.
|
|
53
|
+
*/
|
|
54
|
+
export function manifestIssuesForFile(health, filePath) {
|
|
55
|
+
const attention = attentionHealth(health);
|
|
56
|
+
if (attention?.state !== 'issues' || !filePath)
|
|
57
|
+
return [];
|
|
58
|
+
const root = attention.path ?? 'kortix.yaml';
|
|
59
|
+
const target = repoPath(filePath);
|
|
60
|
+
return attention.issues.filter((issue) => repoPath(issue.file ?? root) === target);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The same issues as editor diagnostics. The server's line and column are
|
|
64
|
+
* 1-indexed; `LspDiagnostic` is 0-indexed. An issue with no line (a file-wide
|
|
65
|
+
* one) marks line 1.
|
|
66
|
+
*/
|
|
67
|
+
export function manifestLspDiagnostics(health, filePath) {
|
|
68
|
+
return manifestIssuesForFile(health, filePath).map((issue) => ({
|
|
69
|
+
file: filePath,
|
|
70
|
+
line: Math.max(0, (issue.line ?? 1) - 1),
|
|
71
|
+
column: Math.max(0, (issue.column ?? 1) - 1),
|
|
72
|
+
severity: issue.severity === 'error' ? 1 : 2,
|
|
73
|
+
message: issue.path && issue.path !== '<yaml>' ? `${issue.path} ${issue.message}` : issue.message,
|
|
74
|
+
source: 'kortix',
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
@@ -54,7 +54,7 @@ export function buildFileRefsBlock(files) {
|
|
|
54
54
|
if (!files.length)
|
|
55
55
|
return '';
|
|
56
56
|
const refs = files.map(buildFileRef).join('\n');
|
|
57
|
-
return `Referenced files (the user has explicitly @-mentioned these — read them if relevant):\n${refs}`;
|
|
57
|
+
return `Referenced files (the user has explicitly @-mentioned these — read them if relevant; a path that is not on this computer is a workspace repo file: read it with \`kortix files cat <path>\`):\n${refs}`;
|
|
58
58
|
}
|
|
59
59
|
export function buildAgentRefsBlock(agents) {
|
|
60
60
|
if (!agents.length)
|
|
@@ -4,7 +4,7 @@ import { type TurnCompleteMsg } from './turn-broadcast.js';
|
|
|
4
4
|
import { type NotificationPreferences } from '@kortix/sdk';
|
|
5
5
|
import type { QueryClient } from '@tanstack/react-query';
|
|
6
6
|
/** The push `type` of each inbox kind (`pushTypeOf` in `@kortix/shared/notification-kinds`). */
|
|
7
|
-
export type WebNotificationType = 'completion' | 'error' | 'question' | 'permission' | 'shared' | 'automation_failed' | 'automation_recovered' | 'capture_device_down' | 'capture_device_recovered';
|
|
7
|
+
export type WebNotificationType = 'completion' | 'error' | 'question' | 'permission' | 'shared' | 'automation_failed' | 'automation_recovered' | 'capture_device_down' | 'capture_device_recovered' | 'mention';
|
|
8
8
|
export interface WebNotificationPayload {
|
|
9
9
|
/** Which category this notification belongs to */
|
|
10
10
|
type: WebNotificationType;
|
|
@@ -55,6 +55,7 @@ const TYPE_TO_KIND = {
|
|
|
55
55
|
automation_recovered: 'automation_recovered',
|
|
56
56
|
capture_device_down: 'capture_device_down',
|
|
57
57
|
capture_device_recovered: 'capture_device_recovered',
|
|
58
|
+
mention: 'mention',
|
|
58
59
|
};
|
|
59
60
|
/**
|
|
60
61
|
* The person's Push choice per kind, mirrored from the preferences query by
|
|
@@ -82,6 +83,7 @@ const TYPE_TO_SOUND = {
|
|
|
82
83
|
automation_recovered: 'completion',
|
|
83
84
|
capture_device_down: 'error',
|
|
84
85
|
capture_device_recovered: 'completion',
|
|
86
|
+
mention: 'notification',
|
|
85
87
|
};
|
|
86
88
|
// ============================================================================
|
|
87
89
|
// Core
|
|
@@ -446,6 +448,7 @@ const NOTIFICATION_TOAST_VARIANT = {
|
|
|
446
448
|
automation_recovered: 'success',
|
|
447
449
|
capture_device_down: 'error',
|
|
448
450
|
capture_device_recovered: 'success',
|
|
451
|
+
mention: 'info',
|
|
449
452
|
};
|
|
450
453
|
/** Open what the notification is about: its session, or its `href`. */
|
|
451
454
|
function openPayload(payload, forceNavigation) {
|
|
@@ -35,7 +35,7 @@ import { isNotificationSupported } from '../lib/web-notifications.js';
|
|
|
35
35
|
import { useSettingsPanelStore } from '../stores/settings-panel-store.js';
|
|
36
36
|
import { useWebNotificationStore } from '../stores/web-notification-store.js';
|
|
37
37
|
import { useNotificationInbox } from '@kortix/sdk/react';
|
|
38
|
-
import { BellIcon, ChecksIcon, GearSixIcon, QuestionIcon, ShareIcon, ShieldWarningIcon, WarningIcon, XCircleIcon, XIcon, } from '@phosphor-icons/react';
|
|
38
|
+
import { AtIcon, BellIcon, ChecksIcon, GearSixIcon, QuestionIcon, ShareIcon, ShieldWarningIcon, WarningIcon, XCircleIcon, XIcon, } from '@phosphor-icons/react';
|
|
39
39
|
import { useState } from 'react';
|
|
40
40
|
import { tabRows, tabUnreadCount, withoutNotificationParam } from './notification-rows.js';
|
|
41
41
|
import { webPushSupported } from './web-push.js';
|
|
@@ -53,6 +53,7 @@ const KIND_MARK = {
|
|
|
53
53
|
automation_recovered: { icon: SolidCheckIcon, className: 'text-kortix-green' },
|
|
54
54
|
capture_device_down: { icon: solid(WarningIcon), className: 'text-kortix-red' },
|
|
55
55
|
capture_device_recovered: { icon: SolidCheckIcon, className: 'text-kortix-green' },
|
|
56
|
+
mention: { icon: solid(AtIcon), className: 'text-muted-foreground' },
|
|
56
57
|
};
|
|
57
58
|
/**
|
|
58
59
|
* Props only: the page frame and header, the description, the All / Needs you
|
|
@@ -80,7 +80,7 @@ export declare function pollsWhileHidden(input: {
|
|
|
80
80
|
}): boolean;
|
|
81
81
|
/** The id of the newest unread row of `sessionId` in `rows` (newest first), or null. */
|
|
82
82
|
export declare function sessionUnreadRowId(rows: readonly InboxNotification[] | undefined, sessionId: string): string | null;
|
|
83
|
-
/** The Inbox page's tabs. `needs` holds the kinds that wait on the person: an answer, an approval, a failure to look at. */
|
|
83
|
+
/** The Inbox page's tabs. `needs` holds the kinds that wait on the person: an answer, an approval, a failure to look at, a mention. */
|
|
84
84
|
export type NotificationTab = 'all' | 'needs' | 'done';
|
|
85
85
|
/**
|
|
86
86
|
* The rows a tab shows: unread first, so an untouched row never sits between
|
|
@@ -116,13 +116,27 @@ const NEEDS_YOU_KINDS = new Set([
|
|
|
116
116
|
'turn_error',
|
|
117
117
|
'automation_failed',
|
|
118
118
|
'capture_device_down',
|
|
119
|
+
// Someone asked you for something on the calendar, or gave you an item.
|
|
120
|
+
'mention',
|
|
119
121
|
]);
|
|
122
|
+
/**
|
|
123
|
+
* Whether a row waits on the person: a Needs you kind, unless it is an ask a
|
|
124
|
+
* person already closed (`resolved`: answered, dismissed, decided or expired).
|
|
125
|
+
* A resolved ask is in no tab but All.
|
|
126
|
+
*/
|
|
127
|
+
function waitsOnPerson(row) {
|
|
128
|
+
return NEEDS_YOU_KINDS.has(row.kind) && row.resolved !== true;
|
|
129
|
+
}
|
|
120
130
|
/**
|
|
121
131
|
* The rows a tab shows: unread first, so an untouched row never sits between
|
|
122
132
|
* read ones. Each group keeps the inbox order (newest first; `sort` is stable).
|
|
123
133
|
*/
|
|
124
134
|
export function tabRows(rows, tab) {
|
|
125
|
-
const shown = tab === 'all'
|
|
135
|
+
const shown = tab === 'all'
|
|
136
|
+
? [...rows]
|
|
137
|
+
: tab === 'needs'
|
|
138
|
+
? rows.filter(waitsOnPerson)
|
|
139
|
+
: rows.filter((row) => !NEEDS_YOU_KINDS.has(row.kind));
|
|
126
140
|
return shown.sort((a, b) => Number(a.read) - Number(b.read));
|
|
127
141
|
}
|
|
128
142
|
export function tabUnreadCount(rows, tab) {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
label: string;
|
|
5
|
-
/** `success` for an approving verb (Approve), `destructive` for a removing one. */
|
|
6
|
-
tone?: 'default' | 'success' | 'destructive';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
onSelect: () => void;
|
|
9
|
-
}
|
|
2
|
+
import { type ActionBarAction } from '../../primitives/action-bar.js';
|
|
3
|
+
export type SelectionBarAction = ActionBarAction;
|
|
10
4
|
export declare function SelectionBar({ selectedCount, allSelected, canSelectAll, onSelectAll, onClear, onExit, actions, progress, animateIn, note, }: {
|
|
11
5
|
selectedCount: number;
|
|
12
6
|
allSelected: boolean;
|
|
@@ -1,45 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
5
|
-
*
|
|
6
|
-
* caller's actions
|
|
7
|
-
*
|
|
8
|
-
* takes the destructive text tone. While a bulk action runs, the count line
|
|
9
|
-
* reads its progress with the session dot matrix and every control disables.
|
|
10
|
-
*
|
|
11
|
-
* It enters with a short rise and fade (reduced motion keeps the fade only).
|
|
12
|
-
* It leaves at once: Esc exits select mode, and a keyboard action never
|
|
13
|
-
* animates. `animateIn={false}` skips the enter too, for a keyboard-opened bar.
|
|
4
|
+
* The select-mode bar shared by every multi-select list: an `ActionBar` whose
|
|
5
|
+
* title is the count, whose first action is Select all / Deselect all, then the
|
|
6
|
+
* caller's actions, then the exit ×. While a bulk action runs, the title reads
|
|
7
|
+
* its progress, the session dot matrix leads, and every control disables.
|
|
14
8
|
*/
|
|
15
|
-
import { XIcon } from '@phosphor-icons/react';
|
|
16
|
-
import { m, useReducedMotion } from 'motion/react';
|
|
17
9
|
import { useTranslations } from '../../i18n/index.js';
|
|
18
|
-
import {
|
|
19
|
-
import { Button } from '../../primitives/button.js';
|
|
20
|
-
import { ButtonGroup } from '../../primitives/button-group.js';
|
|
21
|
-
import { SessionDotMatrix } from '../../primitives/dot-matrix/session-dot-matrix.js';
|
|
22
|
-
import Hint from '../../primitives/hint.js';
|
|
23
|
-
const EASE_OUT = [0.23, 1, 0.32, 1];
|
|
24
|
-
// A full transform string, not `y`: it runs on the compositor while the list loads.
|
|
25
|
-
const RISE = 'translateY(8px)';
|
|
26
|
-
const REST = 'translateY(0px)';
|
|
10
|
+
import { ActionBar } from '../../primitives/action-bar.js';
|
|
27
11
|
export function SelectionBar({ selectedCount, allSelected, canSelectAll = true, onSelectAll, onClear, onExit, actions, progress = null, animateIn = true, note, }) {
|
|
28
12
|
const t = useTranslations('hardcodedUi.i18nComplete');
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
transition: { duration: 0.18, ease: EASE_OUT },
|
|
39
|
-
}, className: "bg-popover text-popover-foreground border-border flex w-full items-center gap-3 rounded-lg border p-2 pl-3.5 shadow-md", children: [_jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-2 text-sm font-medium tabular-nums", "aria-live": "polite", children: [progress ? _jsx(SessionDotMatrix, { size: 14, className: "shrink-0" }) : null, _jsx("span", { className: "truncate", children: progress ? progress.label : t('text1cc5b0d9628f', { count: selectedCount }) }), note && !progress ? (_jsx("span", { className: "text-muted-foreground truncate font-normal", children: note })) : null] }), _jsxs(ButtonGroup, { className: "shrink-0", children: [action({
|
|
40
|
-
id: 'select-all',
|
|
41
|
-
label: selectLabel,
|
|
42
|
-
disabled: !canSelectAll,
|
|
43
|
-
onSelect: allSelected ? onClear : onSelectAll,
|
|
44
|
-
}), actions.map(action)] }), _jsx(Hint, { label: t.raw('text22206bc67806'), side: "top", children: _jsx(Button, { type: "button", variant: "ghost", size: "icon", "aria-label": t.raw('text22206bc67806'), onClick: onExit, disabled: busy, className: "size-8 shrink-0", children: _jsx(XIcon, { className: "size-4 shrink-0" }) }) })] }));
|
|
13
|
+
return (_jsx(ActionBar, { title: progress ? progress.label : t('text1cc5b0d9628f', { count: selectedCount }), description: progress ? undefined : note, busy: progress !== null, animateIn: animateIn, actions: [
|
|
14
|
+
{
|
|
15
|
+
id: 'select-all',
|
|
16
|
+
label: allSelected ? t.raw('text83b12c2216ef') : t.raw('text1fc9a387654d'),
|
|
17
|
+
disabled: !canSelectAll,
|
|
18
|
+
onSelect: allSelected ? onClear : onSelectAll,
|
|
19
|
+
},
|
|
20
|
+
...actions,
|
|
21
|
+
], close: { label: t.raw('text22206bc67806'), onSelect: onExit } }));
|
|
45
22
|
}
|
|
@@ -12,7 +12,7 @@ interface ActiveSpaceState {
|
|
|
12
12
|
byProject: ActiveByProject;
|
|
13
13
|
setSpace: (projectId: string, space: string | null) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const useActiveSpaceStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ActiveSpaceState>, "
|
|
15
|
+
export declare const useActiveSpaceStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ActiveSpaceState>, "setState" | "persist"> & {
|
|
16
16
|
setState(partial: ActiveSpaceState | Partial<ActiveSpaceState> | ((state: ActiveSpaceState) => ActiveSpaceState | Partial<ActiveSpaceState>), replace?: false | undefined): unknown;
|
|
17
17
|
setState(state: ActiveSpaceState | ((state: ActiveSpaceState) => ActiveSpaceState), replace: true): unknown;
|
|
18
18
|
persist: {
|
|
@@ -20,7 +20,7 @@ interface BrowserRecentsState {
|
|
|
20
20
|
removeRecent: (url: string) => void;
|
|
21
21
|
clearRecents: () => void;
|
|
22
22
|
}
|
|
23
|
-
export declare const useBrowserRecentsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<BrowserRecentsState>, "
|
|
23
|
+
export declare const useBrowserRecentsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<BrowserRecentsState>, "setState" | "persist"> & {
|
|
24
24
|
setState(partial: BrowserRecentsState | Partial<BrowserRecentsState> | ((state: BrowserRecentsState) => BrowserRecentsState | Partial<BrowserRecentsState>), replace?: false | undefined): unknown;
|
|
25
25
|
setState(state: BrowserRecentsState | ((state: BrowserRecentsState) => BrowserRecentsState), replace: true): unknown;
|
|
26
26
|
persist: {
|
|
@@ -12,7 +12,7 @@ interface CurrentAccountState {
|
|
|
12
12
|
setSelectedAccountId: (id: string | null) => void;
|
|
13
13
|
clear: () => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const useCurrentAccountStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<CurrentAccountState>, "
|
|
15
|
+
export declare const useCurrentAccountStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<CurrentAccountState>, "setState" | "persist"> & {
|
|
16
16
|
setState(partial: CurrentAccountState | Partial<CurrentAccountState> | ((state: CurrentAccountState) => CurrentAccountState | Partial<CurrentAccountState>), replace?: false | undefined): unknown;
|
|
17
17
|
setState(state: CurrentAccountState | ((state: CurrentAccountState) => CurrentAccountState), replace: true): unknown;
|
|
18
18
|
persist: {
|
|
@@ -4,7 +4,7 @@ interface FirstChatState {
|
|
|
4
4
|
start: (projectId: string) => void;
|
|
5
5
|
finish: (projectId: string) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const useFirstChatStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FirstChatState>, "
|
|
7
|
+
export declare const useFirstChatStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FirstChatState>, "setState" | "persist"> & {
|
|
8
8
|
setState(partial: FirstChatState | Partial<FirstChatState> | ((state: FirstChatState) => FirstChatState | Partial<FirstChatState>), replace?: false | undefined): unknown;
|
|
9
9
|
setState(state: FirstChatState | ((state: FirstChatState) => FirstChatState), replace: true): unknown;
|
|
10
10
|
persist: {
|
|
@@ -3,7 +3,7 @@ interface MobileAppPromoState {
|
|
|
3
3
|
closed: boolean;
|
|
4
4
|
close: () => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const useMobileAppPromoStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<MobileAppPromoState>, "
|
|
6
|
+
export declare const useMobileAppPromoStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<MobileAppPromoState>, "setState" | "persist"> & {
|
|
7
7
|
setState(partial: MobileAppPromoState | Partial<MobileAppPromoState> | ((state: MobileAppPromoState) => MobileAppPromoState | Partial<MobileAppPromoState>), replace?: false | undefined): unknown;
|
|
8
8
|
setState(state: MobileAppPromoState | ((state: MobileAppPromoState) => MobileAppPromoState), replace: true): unknown;
|
|
9
9
|
persist: {
|
|
@@ -72,7 +72,7 @@ interface SessionBrowserState {
|
|
|
72
72
|
activeSessionId: string | null;
|
|
73
73
|
setActiveSessionId: (id: string | null) => void;
|
|
74
74
|
}
|
|
75
|
-
export declare const useSessionBrowserStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SessionBrowserState>, "
|
|
75
|
+
export declare const useSessionBrowserStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SessionBrowserState>, "setState" | "persist"> & {
|
|
76
76
|
setState(partial: SessionBrowserState | Partial<SessionBrowserState> | ((state: SessionBrowserState) => SessionBrowserState | Partial<SessionBrowserState>), replace?: false | undefined): unknown;
|
|
77
77
|
setState(state: SessionBrowserState | ((state: SessionBrowserState) => SessionBrowserState), replace: true): unknown;
|
|
78
78
|
persist: {
|