@kortix/ui 0.15.10 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_vendor/kortix-shared.js +769 -76
- package/dist/_vendor/shared/app-config.d.ts +6 -30
- package/dist/_vendor/shared/channel-descriptors.d.ts +0 -34
- package/dist/_vendor/shared/channel-header.d.ts +2 -1
- package/dist/_vendor/shared/connector-sections.d.ts +0 -25
- package/dist/_vendor/shared/file-tags.d.ts +2 -1
- package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
- package/dist/_vendor/shared/pasted-content.d.ts +0 -4
- package/dist/_vendor/shared/pixel-mark.d.ts +0 -17
- package/dist/_vendor/shared/project-glyphs.d.ts +0 -1
- package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
- package/dist/access/access/copy-row.d.ts +7 -1
- package/dist/access/access/copy-row.js +2 -2
- package/dist/animated-copy-icon.js +2 -1
- package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
- package/dist/browser/sandbox-browser-chrome.js +1 -1
- package/dist/customize/agents/agent-cover-card.d.ts +1 -1
- package/dist/customize/agents/agent-cover-card.js +10 -2
- package/dist/customize/agents/agent-filter.js +3 -1
- package/dist/customize/agents/agent-model-view.d.ts +11 -1
- package/dist/customize/agents/agent-model-view.js +12 -1
- package/dist/customize/agents/agent-overview.d.ts +10 -0
- package/dist/customize/agents/agent-overview.js +5 -4
- package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
- package/dist/customize/agents/agent-page-chrome.js +16 -13
- package/dist/customize/agents/agent-page.js +25 -34
- package/dist/customize/agents/agent-tabs.d.ts +3 -0
- package/dist/customize/agents/agent-tabs.js +3 -0
- package/dist/customize/agents/agents-page.js +3 -3
- package/dist/customize/agents/create-agent-modal.d.ts +9 -0
- package/dist/customize/agents/create-agent-modal.js +21 -3
- package/dist/customize/agents/use-default-agent.js +2 -2
- package/dist/customize/connectors/connector-identity.d.ts +11 -2
- package/dist/customize/connectors/connector-identity.js +16 -4
- package/dist/customize/connectors/connectors-page.js +10 -6
- package/dist/customize/connectors/detail/app-page.js +2 -2
- package/dist/customize/connectors/detail/connector-triggers.js +1 -1
- package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
- package/dist/customize/connectors/install/install-dialog.js +6 -1
- package/dist/customize/connectors/use-agent-access.d.ts +2 -0
- package/dist/customize/evals/eval-compare-view.d.ts +10 -0
- package/dist/customize/evals/eval-compare-view.js +68 -0
- package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
- package/dist/customize/evals/eval-dataset-view.js +81 -0
- package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
- package/dist/customize/evals/eval-datasets-page.js +91 -0
- package/dist/customize/evals/eval-job-view.d.ts +12 -0
- package/dist/customize/evals/eval-job-view.js +360 -0
- package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
- package/dist/customize/evals/eval-jobs-page.js +69 -0
- package/dist/customize/evals/eval-meta.d.ts +97 -0
- package/dist/customize/evals/eval-meta.js +228 -0
- package/dist/customize/evals/eval-task-view.d.ts +13 -0
- package/dist/customize/evals/eval-task-view.js +123 -0
- package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
- package/dist/customize/evals/eval-tasks-page.js +56 -0
- package/dist/customize/evals/eval-ui.d.ts +97 -0
- package/dist/customize/evals/eval-ui.js +153 -0
- package/dist/customize/evals/evals-page.d.ts +10 -0
- package/dist/customize/evals/evals-page.js +56 -0
- package/dist/customize/evals/run-eval-modal.d.ts +28 -0
- package/dist/customize/evals/run-eval-modal.js +167 -0
- package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
- package/dist/customize/project-settings/project-admin-sections.js +6 -1
- package/dist/customize/providers/provider-connect.d.ts +13 -0
- package/dist/customize/providers/provider-connect.js +29 -5
- package/dist/customize/providers/provider-sheet.js +5 -4
- package/dist/customize/sections/component/teams-byo-wizard.js +4 -1
- package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
- package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
- package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
- package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
- package/dist/customize/sections/view/git-view.d.ts +19 -1
- package/dist/customize/sections/view/git-view.js +7 -3
- package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
- package/dist/customize/sections/view/manifest-issue-list.js +41 -0
- package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
- package/dist/customize/sections/view/manifest-issues-row.js +39 -0
- package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
- package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
- package/dist/customize/sections/view/secrets-view.d.ts +13 -0
- package/dist/customize/sections/view/secrets-view.js +10 -6
- package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
- package/dist/customize/sections/view/subscription-usage.js +4 -8
- package/dist/customize/settings/settings-tab-header.js +12 -3
- package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
- package/dist/customize/settings/tabs/experimental-tab.js +36 -11
- package/dist/customize/settings/tabs/general-tab.js +1 -1
- package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
- package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
- package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
- package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
- package/dist/customize/settings/tabs/workspace-keys.js +6 -3
- package/dist/customize/shared/capability-page-shell.js +9 -1
- package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
- package/dist/customize/shared/catalog/catalog-card.js +15 -5
- package/dist/customize/shared/customize-tab-bar.js +1 -1
- package/dist/customize/shared/new-entity-menu.d.ts +1 -1
- package/dist/customize/shared/new-entity-menu.js +38 -1
- package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
- package/dist/customize/triggers/runtime-triggers.js +33 -3
- package/dist/customize/triggers/schedule/event-trigger-copy.js +1 -1
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule/schedule-detail-sheet.js +5 -4
- package/dist/customize/triggers/schedule/then-fields.d.ts +5 -1
- package/dist/customize/triggers/schedule/then-fields.js +23 -3
- package/dist/customize/triggers/schedule/trigger-callouts.js +1 -1
- package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +27 -0
- package/dist/customize/triggers/schedule/trigger-composer-logic.js +51 -5
- package/dist/customize/triggers/schedule/trigger-composer.js +19 -13
- package/dist/customize/triggers/schedule/trigger-edit-logic.js +25 -5
- package/dist/customize/triggers/schedule/trigger-filter.d.ts +10 -3
- package/dist/customize/triggers/schedule/trigger-filter.js +7 -6
- package/dist/customize/triggers/schedule/trigger-readonly.js +1 -1
- package/dist/customize/triggers/schedule/trigger-runs-panel.js +1 -1
- package/dist/customize/triggers/schedule/when-event.js +1 -1
- package/dist/customize/triggers/schedule/when-schedule.d.ts +5 -1
- package/dist/customize/triggers/schedule/when-schedule.js +16 -1
- package/dist/customize/triggers/schedule-view.js +6 -3
- package/dist/files/project/components/drive-explorer.js +33 -70
- package/dist/files/project/components/drive-grid-view.d.ts +2 -31
- package/dist/files/project/components/drive-grid-view.js +12 -22
- package/dist/files/project/components/drive-list-view.d.ts +3 -30
- package/dist/files/project/components/drive-list-view.js +8 -18
- package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
- package/dist/files/project/components/drive-selection-bar.js +13 -20
- package/dist/files/project/components/explorer-listing.d.ts +48 -0
- package/dist/files/project/components/explorer-listing.js +64 -0
- package/dist/files/project/components/file-explorer-page.js +7 -204
- package/dist/files/project/components/file-thumbnail.js +3 -1
- package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
- package/dist/files/project/components/manifest-issue-mark.js +26 -0
- package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
- package/dist/files/project/hooks/use-change-requests.js +17 -0
- package/dist/files/project/manifest-annotations.d.ts +16 -0
- package/dist/files/project/manifest-annotations.js +19 -0
- package/dist/files/project/store/version-store.d.ts +1 -1
- package/dist/files/project/upload-batch.d.ts +20 -0
- package/dist/files/project/upload-batch.js +20 -0
- package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
- package/dist/files/runtime/hooks/use-file-content.js +3 -2
- package/dist/files/runtime/hooks/use-file-list.js +1 -2
- package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
- package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
- package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
- package/dist/files/tree/components/file-tree-item.js +1 -4
- package/dist/files/viewer/file-annotations.d.ts +18 -0
- package/dist/files/viewer/file-annotations.js +21 -0
- package/dist/files/viewer/file-content-renderer.js +1 -1
- package/dist/files/viewer/file-viewer.js +2 -1
- package/dist/files/viewer/index.d.ts +1 -0
- package/dist/files/viewer/index.js +1 -0
- package/dist/files/viewer/use-file-content-state.js +8 -1
- package/dist/i18n/en.d.ts +544 -46
- package/dist/i18n/en.js +593 -95
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
- package/dist/icons/caret-right-solid.d.ts +11 -0
- package/dist/icons/caret-right-solid.js +15 -0
- package/dist/internal/auth/auth-art.d.ts +12 -0
- package/dist/internal/auth/auth-art.js +118 -0
- package/dist/internal/auth/auth-card-shell.d.ts +14 -10
- package/dist/internal/auth/auth-card-shell.js +20 -31
- package/dist/internal/auth/auth-consent.d.ts +3 -1
- package/dist/internal/auth/auth-consent.js +2 -2
- package/dist/internal/auth/auth-primitives.d.ts +26 -1
- package/dist/internal/auth/auth-primitives.js +37 -8
- package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
- package/dist/internal/connector-logo/connector-logo.js +11 -2
- package/dist/internal/files/file-read-retry.d.ts +18 -2
- package/dist/internal/files/file-read-retry.js +42 -4
- package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
- package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
- package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
- package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
- package/dist/internal/hooks/use-reduced-motion.js +12 -0
- package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
- package/dist/internal/hooks/use-save-shortcut.js +28 -0
- package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
- package/dist/internal/layout/connect-mcp-modal.js +9 -4
- package/dist/internal/layout/panel-chrome.d.ts +28 -0
- package/dist/internal/layout/panel-chrome.js +27 -0
- package/dist/internal/layout/project-page-header.js +5 -1
- package/dist/internal/layout/project-settings-nav.d.ts +17 -0
- package/dist/internal/layout/project-settings-nav.js +24 -0
- package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
- package/dist/internal/lib/capability-tab-routes.d.ts +8 -0
- package/dist/internal/lib/capability-tab-routes.js +11 -0
- package/dist/internal/lib/manifest-health.d.ts +25 -1
- package/dist/internal/lib/manifest-health.js +56 -0
- package/dist/internal/lib/project-preamble.js +1 -1
- package/dist/internal/lib/web-notifications.d.ts +1 -1
- package/dist/internal/lib/web-notifications.js +3 -0
- package/dist/internal/notifications/notification-inbox.js +2 -1
- package/dist/internal/notifications/notification-rows.d.ts +1 -1
- package/dist/internal/notifications/notification-rows.js +15 -1
- package/dist/internal/selection/selection-bar.d.ts +2 -8
- package/dist/internal/selection/selection-bar.js +15 -38
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/browser-recents-store.d.ts +1 -1
- package/dist/internal/stores/composer-prefill-store.d.ts +7 -0
- package/dist/internal/stores/composer-prefill-store.js +1 -0
- package/dist/internal/stores/current-account-store.d.ts +1 -1
- package/dist/internal/stores/first-chat-store.d.ts +1 -1
- package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
- package/dist/internal/stores/session-browser-store.d.ts +1 -1
- package/dist/internal/stores/session-expanded-store.d.ts +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/session-history-view-store.d.ts +1 -1
- package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
- package/dist/internal/stores/sound-store.d.ts +1 -1
- package/dist/internal/stores/tab-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +9 -1
- package/dist/internal/stores/user-preferences-store.js +2 -0
- package/dist/internal/stores/web-notification-store.d.ts +1 -1
- package/dist/lib/base-ui-compat.js +28 -1
- package/dist/lib/dotmatrix-hooks.d.ts +1 -0
- package/dist/lib/dotmatrix-hooks.js +3 -13
- package/dist/lib/reduced-motion.d.ts +10 -0
- package/dist/lib/reduced-motion.js +104 -0
- package/dist/lib/routes.d.ts +9 -0
- package/dist/lib/routes.js +7 -4
- package/dist/markdown/artifact-link.d.ts +11 -0
- package/dist/markdown/artifact-link.js +62 -0
- package/dist/markdown/code/index.d.ts +1 -1
- package/dist/markdown/code/index.js +1 -1
- package/dist/markdown/code/inline-code.d.ts +1 -1
- package/dist/markdown/code/inline-code.js +1 -1
- package/dist/markdown/genui/components/map-canvas.js +2 -1
- package/dist/markdown/index.d.ts +3 -1
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
- package/dist/markdown/inline-code-text.d.ts +34 -0
- package/dist/markdown/inline-code-text.js +68 -0
- package/dist/markdown/setup-links/approval-decision.js +3 -3
- package/dist/markdown/soft-breaks.d.ts +21 -0
- package/dist/markdown/soft-breaks.js +33 -0
- package/dist/markdown/unified-markdown.d.ts +9 -1
- package/dist/markdown/unified-markdown.js +31 -9
- package/dist/primitives/action-bar.d.ts +50 -0
- package/dist/primitives/action-bar.js +87 -0
- package/dist/primitives/calendar.js +4 -2
- package/dist/primitives/inline-meta.js +2 -2
- package/dist/primitives/kortix-loader.js +2 -1
- package/dist/primitives/modal.d.ts +1 -1
- package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
- package/dist/primitives/paper-wallpaper-shaders.js +6 -0
- package/dist/primitives/resizable.d.ts +1 -1
- package/dist/primitives/resize-seam.d.ts +3 -2
- package/dist/primitives/resize-seam.js +4 -3
- package/dist/primitives/settings-section-header.d.ts +30 -1
- package/dist/primitives/settings-section-header.js +37 -0
- package/dist/primitives/sliding-tab-indicator.js +2 -1
- package/dist/primitives/switch.js +15 -8
- package/dist/primitives/text-shimmer.js +6 -0
- package/dist/primitives/toast-clearance.d.ts +52 -0
- package/dist/primitives/toast-clearance.js +116 -0
- package/dist/primitives/toast.d.ts +3 -1
- package/dist/primitives/toast.js +2 -0
- package/dist/primitives/typed-title.js +1 -1
- package/dist/primitives/wallpaper-shaders.js +1 -1
- package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
- package/dist/session/actions/project-session-list-helpers.js +18 -0
- package/dist/session/actions/session-label.js +2 -2
- package/dist/session/agents/agent-model.d.ts +1 -0
- package/dist/session/agents/agent-model.js +2 -1
- package/dist/session/agents/agent-strip.d.ts +10 -5
- package/dist/session/agents/agent-strip.js +49 -15
- package/dist/session/agents/held-messages.d.ts +6 -2
- package/dist/session/agents/held-messages.js +6 -3
- package/dist/session/agents/workflow-run-controls.d.ts +27 -4
- package/dist/session/agents/workflow-run-controls.js +63 -10
- package/dist/session/composer/ComposerCard.js +7 -1
- package/dist/session/composer/agent-selector.d.ts +2 -0
- package/dist/session/composer/agent-selector.js +11 -4
- package/dist/session/composer/animated-placeholder.js +2 -1
- package/dist/session/composer/attachment-tile.d.ts +2 -2
- package/dist/session/composer/attachment-tile.js +25 -3
- package/dist/session/composer/composer-agent-access.d.ts +10 -1
- package/dist/session/composer/composer-agent-access.js +18 -4
- package/dist/session/composer/composer-chat-input.d.ts +1 -0
- package/dist/session/composer/composer-chat-input.js +7 -2
- package/dist/session/composer/composer-logic.d.ts +7 -0
- package/dist/session/composer/composer-logic.js +18 -0
- package/dist/session/composer/composer-reset.d.ts +8 -14
- package/dist/session/composer/composer-toolbar.d.ts +3 -1
- package/dist/session/composer/composer-toolbar.js +3 -3
- package/dist/session/composer/composer.d.ts +9 -2
- package/dist/session/composer/composer.js +24 -9
- package/dist/session/composer/editor/composer-editor.js +6 -4
- package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
- package/dist/session/composer/hooks/use-file-search.js +71 -7
- package/dist/session/composer/menus/menu-items.js +6 -2
- package/dist/session/composer/menus/menu-shell.d.ts +3 -1
- package/dist/session/composer/menus/menu-shell.js +2 -2
- package/dist/session/composer/menus/slash-menu.d.ts +7 -0
- package/dist/session/composer/menus/slash-menu.js +48 -1
- package/dist/session/composer/use-instant-session-send.js +7 -1
- package/dist/session/header/session-reminders-indicator.js +3 -2
- package/dist/session/header/session-site-header.d.ts +3 -1
- package/dist/session/header/session-site-header.js +27 -8
- package/dist/session/media/sandbox-url-detector.js +1 -1
- package/dist/session/models/connect-model-step.d.ts +29 -0
- package/dist/session/models/connect-model-step.js +50 -0
- package/dist/session/models/model-connection-gate.js +2 -1
- package/dist/session/models/model-selector.js +1 -1
- package/dist/session/models/subscription-switcher.d.ts +7 -0
- package/dist/session/models/subscription-switcher.js +52 -10
- package/dist/session/models/subscription-windows.d.ts +2 -0
- package/dist/session/models/subscription-windows.js +2 -0
- package/dist/session/models/use-workspace-model-gate.d.ts +11 -0
- package/dist/session/models/use-workspace-model-gate.js +62 -0
- package/dist/session/models/workspace-model-gate.d.ts +46 -0
- package/dist/session/models/workspace-model-gate.js +66 -0
- package/dist/session/outcomes/session-outcomes-provider.js +14 -7
- package/dist/session/panel/action-panel.js +8 -19
- package/dist/session/panel/easy/app-preview.d.ts +4 -1
- package/dist/session/panel/easy/app-preview.js +95 -33
- package/dist/session/panel/easy/apps-card.js +6 -11
- package/dist/session/panel/easy/change-requests-card.js +1 -1
- package/dist/session/panel/easy/changes-card.d.ts +14 -0
- package/dist/session/panel/easy/changes-card.js +60 -0
- package/dist/session/panel/easy/context-card.d.ts +5 -1
- package/dist/session/panel/easy/context-card.js +13 -28
- package/dist/session/panel/easy/context-meter.d.ts +18 -0
- package/dist/session/panel/easy/context-meter.js +73 -0
- package/dist/session/panel/easy/detail-view.d.ts +1 -1
- package/dist/session/panel/easy/detail-view.js +24 -21
- package/dist/session/panel/easy/easy-panel.js +7 -5
- package/dist/session/panel/easy/file-preview.js +3 -1
- package/dist/session/panel/easy/frame-history.d.ts +91 -0
- package/dist/session/panel/easy/frame-history.js +198 -0
- package/dist/session/panel/easy/outputs-card.d.ts +10 -0
- package/dist/session/panel/easy/outputs-card.js +28 -31
- package/dist/session/panel/easy/panel-card.d.ts +1 -3
- package/dist/session/panel/easy/panel-card.js +24 -8
- package/dist/session/panel/easy/plan-card.js +2 -2
- package/dist/session/panel/easy/step-icon.d.ts +4 -1
- package/dist/session/panel/easy/step-icon.js +2 -2
- package/dist/session/panel/session-action-panel-column.d.ts +5 -0
- package/dist/session/panel/session-action-panel-column.js +198 -101
- package/dist/session/panel/session-desktop.js +5 -1
- package/dist/session/panel/session-diff-viewer.d.ts +3 -1
- package/dist/session/panel/session-diff-viewer.js +7 -4
- package/dist/session/panel/session-panel-provider.js +29 -5
- package/dist/session/panel/shared/derive-panels.js +64 -4
- package/dist/session/prompts/session-connect-card.d.ts +63 -0
- package/dist/session/prompts/{session-connect-prompt.js → session-connect-card.js} +53 -42
- package/dist/session/status/session-busy-indicator.js +2 -1
- package/dist/session/status/session-error-banner.js +1 -1
- package/dist/session/thread/chat-minimap.js +2 -1
- package/dist/session/thread/session-body.js +4 -1
- package/dist/session/thread/session-chat.js +311 -300
- package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
- package/dist/session/thread/session-turn-meta-rows.js +33 -5
- package/dist/session/thread/transcript.d.ts +3 -3
- package/dist/session/thread/transcript.js +33 -27
- package/dist/session/thread/typing-indicator.d.ts +2 -2
- package/dist/session/thread/typing-indicator.js +10 -3
- package/dist/session/tool/tool-part-renderer.js +7 -2
- package/dist/session/tool/tools/kortix-action-tool.js +10 -2
- package/dist/session/tool/tools/session-spawn-tool.js +3 -3
- package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
- package/dist/session/tool/tools/workflow-run-card.js +31 -7
- package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
- package/dist/session/tool/tools/workflow-run-cost.js +75 -0
- package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
- package/dist/session/tool/tools/workflow-tool.js +40 -15
- package/dist/session/turn/peer-message-row.js +1 -1
- package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
- package/dist/session/turn/queued-prompt-bubbles.js +1 -1
- package/dist/session/turn/throttled-markdown.js +1 -1
- package/dist/session/turn/turn-viewport.d.ts +66 -10
- package/dist/session/turn/turn-viewport.js +92 -12
- package/dist/session/turn/user-message.js +7 -5
- package/dist/styles/theme.css +68 -0
- package/dist/styles.css +1 -1
- package/dist/terminal/pty-terminal.js +1 -1
- package/dist/terminal/session-terminal-connect-bar.js +2 -1
- package/dist/test-utils/intl.d.ts +544 -46
- package/dist/workspace/admin/project-admin-dashboard.js +23 -11
- package/dist/workspace/admin/settings-search-landing.js +2 -1
- package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
- package/dist/workspace/calendar/calendar-dates.js +64 -0
- package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
- package/dist/workspace/calendar/calendar-new-item.js +47 -0
- package/dist/workspace/calendar/calendar-page.d.ts +3 -0
- package/dist/workspace/calendar/calendar-page.js +177 -0
- package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
- package/dist/workspace/calendar/calendar-panel.js +103 -0
- package/dist/workspace/calendar/calendar-people.d.ts +52 -0
- package/dist/workspace/calendar/calendar-people.js +117 -0
- package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
- package/dist/workspace/calendar/calendar-scheduled.js +118 -0
- package/dist/workspace/calendar/calendar-views.d.ts +32 -0
- package/dist/workspace/calendar/calendar-views.js +124 -0
- package/dist/workspace/calendar/calendar-when.d.ts +14 -0
- package/dist/workspace/calendar/calendar-when.js +81 -0
- package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
- package/dist/workspace/calendar/mention-textarea.js +84 -0
- package/dist/workspace/home/access-requests-bell.js +2 -1
- package/dist/workspace/home/existing-repo-setup-prompt.d.ts +5 -8
- package/dist/workspace/home/existing-repo-setup-prompt.js +16 -42
- package/dist/workspace/home/no-agent-home.d.ts +3 -1
- package/dist/workspace/home/no-agent-home.js +2 -2
- package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
- package/dist/workspace/inbox/workspace-inbox.js +1 -1
- package/dist/workspace/layout/project-files-view.js +2 -1
- package/dist/workspace/layout/project-home.js +16 -9
- package/dist/workspace/memory/memory-page-list.js +1 -1
- package/dist/workspace/new/workspace-handoff.js +2 -1
- package/dist/workspace/projects/modal/project-icon-field.js +2 -1
- package/dist/workspace/session-workspace.js +13 -12
- package/dist/workspace/setup/setup-steps.d.ts +43 -0
- package/dist/workspace/setup/setup-steps.js +38 -0
- package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
- package/dist/workspace/setup/workspace-setup-page.js +124 -0
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
- package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
- package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
- package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
- package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
- package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
- package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
- package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
- package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
- package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
- package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
- package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
- package/dist/workspace/sidebar/footer/promo-card.js +47 -0
- package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
- package/dist/workspace/sidebar/project-nav-items.js +12 -4
- package/dist/workspace/sidebar/project-session-list.js +58 -26
- package/dist/workspace/sidebar/project-sidebar.js +2 -5
- package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
- package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
- package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
- package/dist/workspace/sidebar/session-group-sections.js +121 -41
- package/dist/workspace/sidebar/session-grouping.d.ts +1 -1
- package/dist/workspace/sidebar/session-grouping.js +1 -1
- package/dist/workspace/sidebar/sidebar-drill.js +6 -0
- package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
- package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
- package/dist/workspace/sidebar/use-workspace-list.js +11 -1
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
- package/dist/workspace/space/space-tab-panels.js +1 -1
- package/dist/workspace/spaces/space-details-panel.js +2 -2
- package/dist/workspace/spaces/space-timeline.js +2 -2
- package/dist/workspace/spaces/space-triggers.js +2 -2
- package/dist/workspace/spaces/space-view.js +11 -5
- package/package.json +79 -10
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/modules.md +5 -3
- package/dist/session/prompts/session-connect-prompt.d.ts +0 -40
- package/dist/session/thread/turn-share.d.ts +0 -16
- package/dist/session/thread/turn-share.js +0 -161
- package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
- package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
- /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
// A textarea that completes `@handle` from the workspace's people. Typing
|
|
4
|
+
// `@` and a few letters lists the matches under the field; Enter or Tab
|
|
5
|
+
// inserts the handle, Escape closes the list. Plain text in, plain text out:
|
|
6
|
+
// the server resolves the mentions.
|
|
7
|
+
import { useRef, useState } from 'react';
|
|
8
|
+
import { cn } from '../../lib/utils.js';
|
|
9
|
+
import { menuRow, MENU_PANEL_STATIC } from '../../primitives/menu-recipe.js';
|
|
10
|
+
import { Textarea } from '../../primitives/textarea.js';
|
|
11
|
+
import { UserAvatar } from '../../primitives/user-avatar.js';
|
|
12
|
+
import { personName } from './calendar-people.js';
|
|
13
|
+
const MAX_MATCHES = 6;
|
|
14
|
+
/** The `@query` the caret is in, or null. */
|
|
15
|
+
export function mentionQueryAt(text, caret) {
|
|
16
|
+
const match = /(?:^|\s)@([a-z0-9._+-]*)$/i.exec(text.slice(0, caret));
|
|
17
|
+
if (!match)
|
|
18
|
+
return null;
|
|
19
|
+
return { start: caret - match[1].length - 1, query: match[1].toLowerCase() };
|
|
20
|
+
}
|
|
21
|
+
export function MentionTextarea({ value, onChange, directory, onSubmit, onBlur, placeholder, minHeight, className, autoFocus, ariaLabel, }) {
|
|
22
|
+
const ref = useRef(null);
|
|
23
|
+
const [mention, setMention] = useState(null);
|
|
24
|
+
const [active, setActive] = useState(0);
|
|
25
|
+
const matches = mention
|
|
26
|
+
? directory.people
|
|
27
|
+
.filter((p) => [p.handle, p.name ?? '', p.email ?? ''].some((s) => s.toLowerCase().includes(mention.query)))
|
|
28
|
+
.slice(0, MAX_MATCHES)
|
|
29
|
+
: [];
|
|
30
|
+
const track = (text, caret) => {
|
|
31
|
+
const next = mentionQueryAt(text, caret);
|
|
32
|
+
setMention(next);
|
|
33
|
+
if (next?.query !== mention?.query)
|
|
34
|
+
setActive(0);
|
|
35
|
+
};
|
|
36
|
+
const insert = (handle) => {
|
|
37
|
+
const area = ref.current?.textArea;
|
|
38
|
+
if (!mention || !area)
|
|
39
|
+
return;
|
|
40
|
+
const caret = area.selectionStart ?? value.length;
|
|
41
|
+
const next = `${value.slice(0, mention.start)}@${handle} ${value.slice(caret)}`;
|
|
42
|
+
onChange(next);
|
|
43
|
+
setMention(null);
|
|
44
|
+
const at = mention.start + handle.length + 2;
|
|
45
|
+
requestAnimationFrame(() => {
|
|
46
|
+
area.focus();
|
|
47
|
+
area.setSelectionRange(at, at);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
const onKeyDown = (event) => {
|
|
51
|
+
if (matches.length > 0) {
|
|
52
|
+
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
setActive((i) => (i + (event.key === 'ArrowDown' ? 1 : matches.length - 1)) % matches.length);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (event.key === 'Enter' || event.key === 'Tab') {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
insert(matches[active].handle);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (event.key === 'Escape') {
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
event.stopPropagation();
|
|
65
|
+
setMention(null);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (event.key === 'Enter' && (event.metaKey || event.ctrlKey) && onSubmit) {
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
onSubmit();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return (
|
|
75
|
+
// The matches render in flow under the field: a dialog or the side panel grows, nothing is clipped.
|
|
76
|
+
_jsxs("div", { children: [_jsx(Textarea, { ref: ref, value: value, "aria-label": ariaLabel, placeholder: placeholder, minHeight: minHeight, autoFocus: autoFocus, className: cn('text-sm', className), onChange: (event) => {
|
|
77
|
+
onChange(event.target.value);
|
|
78
|
+
track(event.target.value, event.target.selectionStart ?? event.target.value.length);
|
|
79
|
+
}, onKeyDown: onKeyDown, onClick: (event) => track(event.currentTarget.value, event.currentTarget.selectionStart ?? 0), onBlur: () => {
|
|
80
|
+
// A click on a match lands after the blur: let it run first.
|
|
81
|
+
setTimeout(() => setMention(null), 120);
|
|
82
|
+
onBlur?.();
|
|
83
|
+
} }), matches.length > 0 ? (_jsx("ul", { role: "listbox", "aria-label": ariaLabel, className: cn(MENU_PANEL_STATIC, 'mt-1'), children: matches.map((person, i) => (_jsx("li", { role: "option", "aria-selected": i === active, children: _jsxs("button", { type: "button", className: menuRow('sm', 'default', cn(i === active && 'bg-primary/10 text-foreground')), onMouseDown: (event) => event.preventDefault(), onClick: () => insert(person.handle), children: [_jsx(UserAvatar, { email: person.email ?? '', name: person.name, avatarUrl: person.avatar_url, colorKey: person.user_id, size: "xs" }), _jsx("span", { className: "truncate", children: personName(person, person.handle) }), _jsxs("span", { className: "text-muted-foreground ml-auto truncate text-xs", children: ["@", person.handle] })] }) }, person.user_id))) })) : null] }));
|
|
84
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { UserPlusIcon } from '@phosphor-icons/react';
|
|
4
|
-
import { AnimatePresence, m
|
|
4
|
+
import { AnimatePresence, m } from 'motion/react';
|
|
5
|
+
import { useReducedMotion } from '../../internal/hooks/use-reduced-motion.js';
|
|
5
6
|
import { useState } from 'react';
|
|
6
7
|
import { BellMark } from '../../internal/notifications/notification-bell.js';
|
|
7
8
|
import { HubLink } from '../../internal/account-hub/account-hub-location.js';
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
* The prompt a person copies into their own coding agent (Claude Code, Codex,
|
|
3
3
|
* Cursor) to set up a repository they linked to Kortix that has no agents.
|
|
4
4
|
*
|
|
5
|
-
* Kortix never writes to a linked repository. The person's agent
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the push lands where the project reads.
|
|
9
|
-
*
|
|
10
|
-
* English on purpose: an agent reads it, not the person. The same steps are
|
|
11
|
-
* in the docs (`developers.mdx`, "Set up an existing repository"); keep them in
|
|
12
|
-
* step.
|
|
5
|
+
* Kortix never writes to a linked repository. The person's agent follows the
|
|
6
|
+
* served setup guide (`@kortix/shared/setup-guide`, https://kortix.com/setup.md)
|
|
7
|
+
* and pushes `kortix.yaml` to the branch the workspace reads.
|
|
13
8
|
*/
|
|
14
9
|
export declare const EXISTING_REPO_DOCS_URL = "https://kortix.com/docs/developers#set-up-an-existing-repository";
|
|
15
10
|
export declare function existingRepoSetupPrompt(input: {
|
|
@@ -17,6 +12,8 @@ export declare function existingRepoSetupPrompt(input: {
|
|
|
17
12
|
repository: string | null | undefined;
|
|
18
13
|
/** The branch the project reads `kortix.yaml` from. */
|
|
19
14
|
branch: string | null | undefined;
|
|
15
|
+
/** The project's page in the web app (`dashboard_url`): its origin serves the guide this prompt names. */
|
|
16
|
+
dashboardUrl?: string | null;
|
|
20
17
|
}): string;
|
|
21
18
|
/** `owner/name` from a GitHub clone URL, else the URL without `.git`. */
|
|
22
19
|
export declare function repositoryLabel(repoUrl: string | null | undefined): string | null;
|
|
@@ -1,52 +1,26 @@
|
|
|
1
|
+
import { setupPrompt, setupTarget } from '../../_vendor/kortix-shared.js';
|
|
1
2
|
/**
|
|
2
3
|
* The prompt a person copies into their own coding agent (Claude Code, Codex,
|
|
3
4
|
* Cursor) to set up a repository they linked to Kortix that has no agents.
|
|
4
5
|
*
|
|
5
|
-
* Kortix never writes to a linked repository. The person's agent
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the push lands where the project reads.
|
|
9
|
-
*
|
|
10
|
-
* English on purpose: an agent reads it, not the person. The same steps are
|
|
11
|
-
* in the docs (`developers.mdx`, "Set up an existing repository"); keep them in
|
|
12
|
-
* step.
|
|
6
|
+
* Kortix never writes to a linked repository. The person's agent follows the
|
|
7
|
+
* served setup guide (`@kortix/shared/setup-guide`, https://kortix.com/setup.md)
|
|
8
|
+
* and pushes `kortix.yaml` to the branch the workspace reads.
|
|
13
9
|
*/
|
|
14
10
|
export const EXISTING_REPO_DOCS_URL = 'https://kortix.com/docs/developers#set-up-an-existing-repository';
|
|
15
11
|
export function existingRepoSetupPrompt(input) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
my_kortix: true
|
|
29
|
-
default_agent: mykortix
|
|
30
|
-
skills: {}
|
|
31
|
-
agents:
|
|
32
|
-
worker:
|
|
33
|
-
description: "General-purpose worker: coding, research, writing, ops and data work."
|
|
34
|
-
mode: primary
|
|
35
|
-
permission: allow
|
|
36
|
-
prompt: "Your session starts with an empty /workspace. Run \`kortix workspaces clone\` to get this repository, then read AGENTS.md or CLAUDE.md when it exists."
|
|
37
|
-
tools: "*"
|
|
38
|
-
skills: "*"
|
|
39
|
-
connectors: "*"
|
|
40
|
-
secrets: "*"
|
|
41
|
-
kortix_permissions: "*"
|
|
42
|
-
\`\`\`
|
|
43
|
-
|
|
44
|
-
3. Keep the agent setup this repository already has. Do not move, copy or edit those files.
|
|
45
|
-
- For each \`.claude/agents/<name>.md\`, add an agent \`<name>\` with \`prompt_file: .claude/agents/<name>.md\`, the \`description\` from its frontmatter, \`mode: primary\`, \`tools: "*"\` and \`kortix_permissions: [workspace.gitops.read]\`, so it can clone the repository.
|
|
46
|
-
- For each folder that holds a \`SKILL.md\` (\`.agents/skills/<name>\`, \`.claude/skills/<name>\`, \`skills/<name>\`), add \`<name>: <folder>\` under \`skills:\`. Skip a name that starts with \`kortix-\`.
|
|
47
|
-
4. Run \`kortix validate\`. Fix every error it prints and run it again until it exits 0.
|
|
48
|
-
5. Commit only \`kortix.yaml\` with the message "chore: add kortix.yaml" and push it to \`${branch}\`.
|
|
49
|
-
6. Reply with the agents and skills you declared.`;
|
|
12
|
+
return setupPrompt({ repository: input.repository, branch: input.branch }, setupTarget(webOrigin(input.dashboardUrl)));
|
|
13
|
+
}
|
|
14
|
+
/** The origin of a web-app URL; undefined when absent or not a URL (the prompt then names production). */
|
|
15
|
+
function webOrigin(url) {
|
|
16
|
+
if (!url)
|
|
17
|
+
return undefined;
|
|
18
|
+
try {
|
|
19
|
+
return new URL(url).origin;
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
50
24
|
}
|
|
51
25
|
/** `owner/name` from a GitHub clone URL, else the URL without `.git`. */
|
|
52
26
|
export function repositoryLabel(repoUrl) {
|
|
@@ -18,8 +18,10 @@ export type NoAgentReason = 'setup' | 'noAccess' | 'empty';
|
|
|
18
18
|
* `noAccess` and `empty` carry no button: the viewer cannot act here, and
|
|
19
19
|
* "New agent" already sits in the sidebar.
|
|
20
20
|
*/
|
|
21
|
-
export declare function NoAgentHome({ reason, repoUrl, branch, }: {
|
|
21
|
+
export declare function NoAgentHome({ reason, repoUrl, branch, dashboardUrl, }: {
|
|
22
22
|
reason: NoAgentReason;
|
|
23
23
|
repoUrl: string | null | undefined;
|
|
24
24
|
branch: string | null | undefined;
|
|
25
|
+
/** The project's web page (`dashboard_url`): the copied prompt names this deployment's guide. */
|
|
26
|
+
dashboardUrl?: string | null;
|
|
25
27
|
}): import("react").JSX.Element;
|
|
@@ -23,7 +23,7 @@ import { EXISTING_REPO_DOCS_URL, existingRepoSetupPrompt, repositoryLabel } from
|
|
|
23
23
|
* `noAccess` and `empty` carry no button: the viewer cannot act here, and
|
|
24
24
|
* "New agent" already sits in the sidebar.
|
|
25
25
|
*/
|
|
26
|
-
export function NoAgentHome({ reason, repoUrl, branch, }) {
|
|
26
|
+
export function NoAgentHome({ reason, repoUrl, branch, dashboardUrl, }) {
|
|
27
27
|
const t = useTranslations('noAgentHome');
|
|
28
28
|
const [copied, setCopied] = useState(false);
|
|
29
29
|
useEffect(() => {
|
|
@@ -33,7 +33,7 @@ export function NoAgentHome({ reason, repoUrl, branch, }) {
|
|
|
33
33
|
return () => clearTimeout(timer);
|
|
34
34
|
}, [copied]);
|
|
35
35
|
const copyPrompt = async () => {
|
|
36
|
-
const prompt = existingRepoSetupPrompt({ repository: repositoryLabel(repoUrl), branch });
|
|
36
|
+
const prompt = existingRepoSetupPrompt({ repository: repositoryLabel(repoUrl), branch, dashboardUrl });
|
|
37
37
|
if (await copyToClipboard(prompt))
|
|
38
38
|
setCopied(true);
|
|
39
39
|
else
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* /workspaces/[id]/
|
|
2
|
+
* /workspaces/[id]/review — this workspace's Review queue (KRTX-4799):
|
|
3
3
|
* approvals, questions and change requests to act on. `?id=` opens one item.
|
|
4
4
|
* The person's notifications are not here: they span every workspace, so a
|
|
5
5
|
* workspace page cannot scope them — they live on the person-level Inbox page
|
|
@@ -4,7 +4,7 @@ import { ReviewView } from '../../customize/sections/view/review-view.js';
|
|
|
4
4
|
import { useTranslations } from '../../i18n/index.js';
|
|
5
5
|
import { ProjectPageHeader } from '../../internal/layout/project-page-header.js';
|
|
6
6
|
/**
|
|
7
|
-
* /workspaces/[id]/
|
|
7
|
+
* /workspaces/[id]/review — this workspace's Review queue (KRTX-4799):
|
|
8
8
|
* approvals, questions and change requests to act on. `?id=` opens one item.
|
|
9
9
|
* The person's notifications are not here: they span every workspace, so a
|
|
10
10
|
* workspace page cannot scope them — they live on the person-level Inbox page
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* member can open, so it lives outside customization entirely).
|
|
8
8
|
*/
|
|
9
9
|
import { ErrorState } from '../../primitives/error-state.js';
|
|
10
|
+
import { ManifestAnnotationsProvider } from '../../files/project/manifest-annotations.js';
|
|
10
11
|
import { FileExplorerPage, FileExplorerSourceProvider, FilesStoreProvider, gitRefExplorerSource, ProjectFilesProvider, useSelectedVersion, } from '../../files/project/index.js';
|
|
11
12
|
import { getProject } from '@kortix/sdk';
|
|
12
13
|
import { contract, qk } from '@kortix/sdk/react';
|
|
@@ -50,5 +51,5 @@ export function ProjectFilesView({ projectId }) {
|
|
|
50
51
|
}
|
|
51
52
|
return _jsx(ProjectFilesSkeleton, {});
|
|
52
53
|
}
|
|
53
|
-
return (_jsx(ProjectFilesProvider, { value: { projectId, ref, defaultBranch }, children: _jsx(FileExplorerSourceProvider, { value: gitRefExplorerSource, children: _jsx(FilesStoreProvider, { children: _jsx(FileExplorerPage, {}) }) }) }));
|
|
54
|
+
return (_jsx(ProjectFilesProvider, { value: { projectId, ref, defaultBranch }, children: _jsx(FileExplorerSourceProvider, { value: gitRefExplorerSource, children: _jsx(FilesStoreProvider, { children: _jsx(ManifestAnnotationsProvider, { projectId: projectId, onDefaultBranch: !!ref && ref === defaultBranch, children: _jsx(FileExplorerPage, {}) }) }) }) }));
|
|
54
55
|
}
|
|
@@ -244,13 +244,19 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
|
|
|
244
244
|
useEffect(() => {
|
|
245
245
|
if (!pendingPrefill)
|
|
246
246
|
return;
|
|
247
|
-
|
|
247
|
+
// Apply what `consume` returns, never the render-time snapshot: the
|
|
248
|
+
// typing buffer may have dropped the entry since this render (another
|
|
249
|
+
// account signed in on the tab), and a dropped entry must not land.
|
|
250
|
+
const taken = consumePrefill(projectId);
|
|
251
|
+
if (!taken)
|
|
252
|
+
return;
|
|
248
253
|
setPrefill({
|
|
249
|
-
text:
|
|
254
|
+
text: taken.text,
|
|
250
255
|
id: Date.now(),
|
|
251
|
-
submit:
|
|
252
|
-
files:
|
|
253
|
-
options:
|
|
256
|
+
submit: taken.submit,
|
|
257
|
+
files: taken.files,
|
|
258
|
+
options: taken.options,
|
|
259
|
+
restoreDraft: taken.restoreDraft,
|
|
254
260
|
});
|
|
255
261
|
}, [pendingPrefill, projectId, consumePrefill]);
|
|
256
262
|
const handleCommand = useCallback((cmd, args, options) => {
|
|
@@ -277,9 +283,10 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
|
|
|
277
283
|
}
|
|
278
284
|
: undefined;
|
|
279
285
|
const composer = (_jsx(ComposerChatInput, { onSend: handleSend, onCommand: handleCommand, projectId: projectId, draftScope: draftScope, draftHandoffScope: onSend ? undefined : defaultSend.draftHandoffScope,
|
|
280
|
-
//
|
|
281
|
-
//
|
|
282
|
-
|
|
286
|
+
// While the create runs, the sent message stays in the composer, locked,
|
|
287
|
+
// with the spinner in the send slot. The session page then draws it as
|
|
288
|
+
// the first turn. A refused send unlocks the same text for a retry.
|
|
289
|
+
isSending: creating, disabled: creating, clearOnSend: false, autoFocus: true,
|
|
283
290
|
// Desktop: a hero composer floating mid-page has no column for a second
|
|
284
291
|
// rail to align to, so the attach/agent/context controls ride on the
|
|
285
292
|
// toolbar itself, ahead of the model selector, and the `/` menu opens
|
|
@@ -295,5 +302,5 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
|
|
|
295
302
|
return (
|
|
296
303
|
// A file dropped anywhere on the page attaches to the composer, as on a
|
|
297
304
|
// session page.
|
|
298
|
-
_jsxs(ComposerDropZone, { className: "bg-background relative flex min-h-0 flex-1 flex-col overflow-hidden lg:px-4.5", children: [_jsx(ProjectHomeWallpaper, {}), _jsx(SidebarToggle, { placement: "floating" }), _jsx(AccessRequestsBell, { requests: accessRequests.data?.requests ?? [], to: accessRequestsTo }), firstChatPending || !onboarded || noAgent || !HomeAnnouncement ? null : _jsx(HomeAnnouncement, {}), _jsx("div", { className: "relative z-10 mx-auto w-full max-w-2xl px-4 pt-14 empty:hidden", children: _jsx(SplitNoticeBanner, { workspaceId: projectId }) }), noAgentReason ? (_jsx(NoAgentHome, { reason: noAgentReason, repoUrl: projectRowQuery.data?.repo_url, branch: projectRowQuery.data?.default_branch })) : firstChat ? (_jsx(FirstChat, { projectId: projectId, composer: composer })) : (_jsx(ProjectHomeWelcomeBody, { projectId: projectId, onPickSuggestion: applySuggestion, composer: composer }))] }));
|
|
305
|
+
_jsxs(ComposerDropZone, { className: "bg-background relative flex min-h-0 flex-1 flex-col overflow-hidden lg:px-4.5", children: [_jsx(ProjectHomeWallpaper, {}), _jsx(SidebarToggle, { placement: "floating" }), _jsx(AccessRequestsBell, { requests: accessRequests.data?.requests ?? [], to: accessRequestsTo }), firstChatPending || !onboarded || noAgent || !HomeAnnouncement ? null : _jsx(HomeAnnouncement, {}), _jsx("div", { className: "relative z-10 mx-auto w-full max-w-2xl px-4 pt-14 empty:hidden", children: _jsx(SplitNoticeBanner, { workspaceId: projectId }) }), noAgentReason ? (_jsx(NoAgentHome, { reason: noAgentReason, repoUrl: projectRowQuery.data?.repo_url, branch: projectRowQuery.data?.default_branch, dashboardUrl: projectRowQuery.data?.dashboard_url })) : firstChat ? (_jsx(FirstChat, { projectId: projectId, composer: composer })) : (_jsx(ProjectHomeWelcomeBody, { projectId: projectId, onPickSuggestion: applySuggestion, composer: composer }))] }));
|
|
299
306
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useProjectMemoryPages, useProjectMemorySearch } from '@kortix/sdk/react';
|
|
4
4
|
import { CaretRightIcon, MagnifyingGlassIcon } from '@phosphor-icons/react';
|
|
5
|
-
import { useReducedMotion } from 'motion
|
|
5
|
+
import { useReducedMotion } from '../../internal/hooks/use-reduced-motion.js';
|
|
6
6
|
import { useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { useTranslations } from '../../i18n/index.js';
|
|
8
8
|
import { useDebounce } from '../../internal/hooks/use-debounced-value.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { m
|
|
3
|
+
import { m } from 'motion/react';
|
|
4
|
+
import { useReducedMotion } from '../../internal/hooks/use-reduced-motion.js';
|
|
4
5
|
import { KortixLogo } from '../../primitives/kortix-logo.js';
|
|
5
6
|
import { TextShimmer } from '../../primitives/text-shimmer.js';
|
|
6
7
|
import { TodoStatusIcon } from '../../session/tool/shared/todo-helpers.js';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslations } from '../../../i18n/index.js';
|
|
4
4
|
import { SmileyIcon } from '@phosphor-icons/react';
|
|
5
|
-
import { AnimatePresence, m
|
|
5
|
+
import { AnimatePresence, m } from 'motion/react';
|
|
6
|
+
import { useReducedMotion } from '../../../internal/hooks/use-reduced-motion.js';
|
|
6
7
|
import { useState } from 'react';
|
|
7
8
|
import { Button } from '../../../primitives/button.js';
|
|
8
9
|
import { emojiTint, emojiTintHover } from '../../../primitives/emoji-tint.js';
|
|
@@ -92,7 +92,7 @@ function useSessionPanelSplitState() {
|
|
|
92
92
|
const panelAspect = useKortixComputerStore((s) => s.panelAspect);
|
|
93
93
|
// `detailOpen` is no longer read here. It gated the resize grip while Easy
|
|
94
94
|
// mode's fixed-width card home lived in this panel; with the cards moved to
|
|
95
|
-
// the
|
|
95
|
+
// the docked cards column, an open panel is always showing a resizable detail.
|
|
96
96
|
// The store still publishes it (the provider writes it) — nothing in this
|
|
97
97
|
// layout needs to ask any more.
|
|
98
98
|
const shouldShowPanel = isSidePanelOpen;
|
|
@@ -136,14 +136,14 @@ function useSessionPanelBody({ sessionId, projectId, projectSessionId, isEasy, e
|
|
|
136
136
|
if (showBrowser && !browserActivated)
|
|
137
137
|
setBrowserActivated(true);
|
|
138
138
|
// Easy mode's body is the detail shell and nothing else — the cards moved to
|
|
139
|
-
// the
|
|
139
|
+
// the docked cards column beside the chat. The Advanced branches below are kept
|
|
140
140
|
// intact (Advanced is disabled, not deleted) and are unreachable while
|
|
141
141
|
// `isEasy` is forced true.
|
|
142
142
|
const swappableBody = showAudit ? (_jsx(SessionAuditPanel, { projectId: projectId, projectSessionId: projectSessionId })) : showExplorer ? (_jsx(SessionFilesExplorer, { chatSessionId: sessionId, projectId: projectId, projectSessionId: projectSessionId })) : (_jsx(SessionDetailPanel, {}));
|
|
143
143
|
const panelBody = (_jsxs("div", { className: "relative h-full w-full", children: [terminalActivated && (_jsx("div", { className: cn('absolute inset-0', !showTerminal && 'hidden'), children: _jsx(SessionTerminalPanel, { sessionId: sessionId, projectId: projectId, projectSessionId: projectSessionId ?? undefined, hidden: !showTerminal }) })), browserActivated && (_jsx("div", { className: cn('absolute inset-0', !showBrowser && 'hidden'), children: _jsx(BrowserPanel, { tabId: sessionPreviewTabId(sessionId), projectId: projectId, projectSessionId: projectSessionId }) })), _jsx("div", { className: cn('absolute inset-0', (showTerminal || showBrowser) && 'hidden'), children: swappableBody })] }));
|
|
144
144
|
return panelBody;
|
|
145
145
|
}
|
|
146
|
-
// The provider wraps BOTH panels. It has to: the
|
|
146
|
+
// The provider wraps BOTH panels. It has to: the docked cards column renders
|
|
147
147
|
// inside `children` (the chat, in the main resizable panel) and every detail
|
|
148
148
|
// renders in the side panel, and a card row clicked in one opens a detail in
|
|
149
149
|
// the other. See `session-panel-provider.tsx`.
|
|
@@ -205,13 +205,15 @@ function SessionPanelHandle({ panel }) {
|
|
|
205
205
|
//
|
|
206
206
|
// VISIBLE used to be stricter, hiding the grip while Easy mode showed its
|
|
207
207
|
// fixed-width card home. That home no longer lives here: with the cards moved
|
|
208
|
-
// to the
|
|
208
|
+
// to the docked cards column, an open panel is always showing a detail, which is
|
|
209
209
|
// always resizable. The two states collapse into one.
|
|
210
|
+
//
|
|
211
|
+
// No grip pill: the panel's own `border-l` IS the seam, the way a docked
|
|
212
|
+
// pane reads. The handle is a zero-width element over that rule with a 12px
|
|
213
|
+
// invisible hit strip (`after:`); hover, focus and drag light the shared
|
|
214
|
+
// resize seam (`RESIZE_SEAM_CLASS` in the primitive) and the cursor.
|
|
210
215
|
const handleEnabled = shouldShowPanel && !isExpanded;
|
|
211
|
-
|
|
212
|
-
return (_jsx(ResizableHandle, { withHandle: handleEnabled, disabled: !handleEnabled, className: cn('z-20 w-0 transition-opacity duration-(--duration-slow)', 'after:absolute after:inset-y-0 after:-left-1.5 after:w-3', handleEnabled ? '-right-3' : 'pointer-events-none', handleVisible
|
|
213
|
-
? 'opacity-100'
|
|
214
|
-
: 'opacity-0 hover:opacity-100 data-[resize-handle-active]:opacity-100') }));
|
|
216
|
+
return (_jsx(ResizableHandle, { disabled: !handleEnabled, className: cn('z-20 w-0', 'after:absolute after:inset-y-0 after:-left-1.5 after:w-3', !handleEnabled && 'pointer-events-none') }));
|
|
215
217
|
}
|
|
216
218
|
function SessionPanelSide({ panel }) {
|
|
217
219
|
const { sidePanelRef, shouldShowPanel, isAnimating, isExpanded, isEasy, effectivePanelHeader, effectivePanelBody, } = panel;
|
|
@@ -227,10 +229,9 @@ function SessionPanelSide({ panel }) {
|
|
|
227
229
|
// on top of it (`DetailLayer`) — one layer arriving, nothing resizing.
|
|
228
230
|
isExpanded &&
|
|
229
231
|
'animate-in fade-in-0 absolute inset-0 z-30 duration-(--duration-normal)'), children: _jsxs("div", { className: cn('border-border flex h-full min-h-0 w-full min-w-0 flex-col overflow-clip',
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
|
|
233
|
-
!isEasy && !isExpanded && 'border-l'), children: [effectivePanelHeader, _jsx("div", { className: "min-h-0 flex-1 overflow-clip", children: effectivePanelBody })] }) }) }));
|
|
232
|
+
// Docked: one hairline between the chat and the panel, in both
|
|
233
|
+
// modes. A full-screen layer has no neighbour to separate from.
|
|
234
|
+
!isExpanded && 'border-l'), children: [effectivePanelHeader, _jsx("div", { className: "min-h-0 flex-1 overflow-clip", children: effectivePanelBody })] }) }) }));
|
|
234
235
|
}
|
|
235
236
|
/**
|
|
236
237
|
* The whole session screen apps/web renders: the thread, and the resizable side
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type AdminConnector } from '@kortix/sdk';
|
|
2
|
+
import type { SecretRow } from '../../customize/sections/view/secrets-view.js';
|
|
3
|
+
/**
|
|
4
|
+
* One step of a workspace's setup that only a person can do: sign in to a
|
|
5
|
+
* connector, set a required secret, add Kortix to Slack. The setup page
|
|
6
|
+
* (`/workspaces/<id>/setup`) lists them; `kortix onboard --wait` polls the
|
|
7
|
+
* same three facts (`pendingSetup` in the CLI), so the page and the terminal
|
|
8
|
+
* agree on what is left.
|
|
9
|
+
*/
|
|
10
|
+
export type SetupStep = {
|
|
11
|
+
kind: 'connector';
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
done: boolean;
|
|
15
|
+
broken: boolean;
|
|
16
|
+
connector: AdminConnector;
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'secret';
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
done: boolean;
|
|
22
|
+
row: SecretRow;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'slack';
|
|
25
|
+
id: 'slack';
|
|
26
|
+
name: string;
|
|
27
|
+
done: boolean;
|
|
28
|
+
};
|
|
29
|
+
/** The workspace uses Slack: the setup asked for it (`?slack=1`), or kortix.yaml declares the Slack channel. */
|
|
30
|
+
export declare function slackNeeded(connectors: AdminConnector[], requested: boolean): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The steps, the open ones first, each group in kortix.yaml order. A connector
|
|
33
|
+
* that is switched off (`enabled: false`) is not a step: nothing uses it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function setupSteps({ connectors, secrets, slack, slackName, }: {
|
|
36
|
+
connectors: AdminConnector[];
|
|
37
|
+
secrets: SecretRow[];
|
|
38
|
+
slack: {
|
|
39
|
+
needed: boolean;
|
|
40
|
+
installed: boolean;
|
|
41
|
+
};
|
|
42
|
+
slackName: string;
|
|
43
|
+
}): SetupStep[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { connectorDerivedState, connectorDisplayName } from '@kortix/sdk';
|
|
2
|
+
/** A channel or the computer connector has no sign-in of its own here: Slack is its own step. */
|
|
3
|
+
function isSignInConnector(connector) {
|
|
4
|
+
return connector.provider !== 'channel' && connector.provider !== 'computer';
|
|
5
|
+
}
|
|
6
|
+
/** The workspace uses Slack: the setup asked for it (`?slack=1`), or kortix.yaml declares the Slack channel. */
|
|
7
|
+
export function slackNeeded(connectors, requested) {
|
|
8
|
+
return requested || connectors.some((c) => c.provider === 'channel' && c.platform === 'slack');
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The steps, the open ones first, each group in kortix.yaml order. A connector
|
|
12
|
+
* that is switched off (`enabled: false`) is not a step: nothing uses it.
|
|
13
|
+
*/
|
|
14
|
+
export function setupSteps({ connectors, secrets, slack, slackName, }) {
|
|
15
|
+
const steps = [];
|
|
16
|
+
for (const connector of connectors) {
|
|
17
|
+
if (!isSignInConnector(connector) || connector.status === 'disabled' || connector.state === 'disabled')
|
|
18
|
+
continue;
|
|
19
|
+
const state = connectorDerivedState(connector);
|
|
20
|
+
const done = state === 'connected' || (state === null && connector.status === 'active');
|
|
21
|
+
steps.push({
|
|
22
|
+
kind: 'connector',
|
|
23
|
+
id: `connector:${connector.slug}`,
|
|
24
|
+
name: connectorDisplayName(connector),
|
|
25
|
+
done,
|
|
26
|
+
broken: state === 'error',
|
|
27
|
+
connector,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
for (const row of secrets) {
|
|
31
|
+
if (row.requirement !== 'required')
|
|
32
|
+
continue;
|
|
33
|
+
steps.push({ kind: 'secret', id: `secret:${row.identifier}`, name: row.key, done: row.configured, row });
|
|
34
|
+
}
|
|
35
|
+
if (slack.needed)
|
|
36
|
+
steps.push({ kind: 'slack', id: 'slack', name: slackName, done: slack.installed });
|
|
37
|
+
return [...steps.filter((step) => !step.done), ...steps.filter((step) => step.done)];
|
|
38
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `/workspaces/<id>/setup`: every step of a workspace's setup that only a
|
|
3
|
+
* person can do, on one page. `kortix onboard` opens it in the browser instead
|
|
4
|
+
* of printing a link per step, and `kortix onboard --wait` continues when the
|
|
5
|
+
* page shows every step done. A missing model never reaches this page: the
|
|
6
|
+
* workspace shell shows "Connect a model" first (`ProjectShell`).
|
|
7
|
+
*/
|
|
8
|
+
export declare function WorkspaceSetupPage({ projectId }: {
|
|
9
|
+
projectId: string;
|
|
10
|
+
}): import("react").JSX.Element;
|