@kortix/ui 0.15.2 → 0.15.3
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 +157 -2
- package/dist/_vendor/shared/channel-descriptors.d.ts +1 -1
- package/dist/_vendor/shared/index.d.ts +1 -0
- package/dist/_vendor/shared/workspace-actions.d.ts +155 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +62 -0
- package/dist/access/access/access-dialog-share.js +6 -6
- package/dist/access/access/access-dialog.d.ts +44 -1
- package/dist/access/access/access-dialog.js +8 -8
- package/dist/access/access/agent-principals.d.ts +3 -3
- package/dist/access/access/agent-principals.js +5 -4
- package/dist/access/access/invite-people-dialog.d.ts +37 -0
- package/dist/access/access/invite-people-dialog.js +140 -0
- package/dist/access/access/principal-picker.js +3 -2
- package/dist/access/access/project-select.js +2 -2
- package/dist/access/access/role-select.d.ts +9 -8
- package/dist/access/access/role-select.js +22 -25
- package/dist/access/access/workspace-role-dialog.d.ts +27 -0
- package/dist/access/access/workspace-role-dialog.js +48 -0
- package/dist/access/iam/add-github-account-dialog.d.ts +1 -1
- package/dist/access/iam/add-github-account-dialog.js +1 -1
- package/dist/access/iam/api-key-expiry.d.ts +18 -0
- package/dist/access/iam/api-key-expiry.js +47 -0
- package/dist/access/iam/api-key-rows.d.ts +6 -0
- package/dist/access/iam/api-key-rows.js +3 -0
- package/dist/access/iam/workspace-key-acts-as.d.ts +41 -0
- package/dist/access/iam/workspace-key-acts-as.js +48 -0
- package/dist/access/sharing-intent.js +1 -1
- package/dist/access/sharing-picker.js +1 -1
- package/dist/animated-copy-icon.d.ts +2 -2
- package/dist/animated-copy-icon.js +7 -4
- package/dist/apps/app-shared.js +2 -2
- package/dist/artifacts/artifact-session.js +1 -1
- package/dist/customize/agents/agent-drives-section.js +2 -2
- package/dist/customize/agents/agent-page-chrome.js +1 -1
- package/dist/customize/agents/agent-page.js +4 -5
- package/dist/customize/agents/agents-page.js +2 -3
- package/dist/customize/connectors/connector-identity.d.ts +1 -1
- package/dist/customize/connectors/connector-identity.js +1 -1
- package/dist/customize/connectors/connector-moves-banner.js +2 -2
- package/dist/customize/connectors/connectors-page.d.ts +2 -2
- package/dist/customize/connectors/connectors-page.js +4 -4
- package/dist/customize/connectors/detail/app-page.js +1 -1
- package/dist/customize/connectors/detail/connector-page.d.ts +1 -1
- package/dist/customize/connectors/detail/connector-page.js +1 -1
- package/dist/customize/connectors/detail/connector-policy-sets.js +2 -2
- package/dist/customize/connectors/detail/connector-tools.js +7 -7
- package/dist/customize/connectors/detail/connector-triggers.js +2 -3
- package/dist/customize/connectors/detail/email-inboxes.js +2 -2
- package/dist/customize/models/models-page.d.ts +1 -1
- package/dist/customize/models/models-page.js +1 -1
- package/dist/customize/project-settings/project-admin-sections.d.ts +53 -17
- package/dist/customize/project-settings/project-admin-sections.js +80 -31
- package/dist/customize/project-settings/project-settings-page.d.ts +2 -2
- package/dist/customize/project-settings/project-settings-page.js +6 -4
- package/dist/customize/project-settings/project-settings-sections.d.ts +2 -3
- package/dist/customize/project-settings/project-settings-sections.js +9 -4
- package/dist/customize/providers/provider-accordion.d.ts +3 -1
- package/dist/customize/providers/provider-accordion.js +2 -2
- package/dist/customize/secrets/secrets-page.d.ts +1 -1
- package/dist/customize/secrets/secrets-page.js +1 -1
- package/dist/customize/sections/component/email-connect-form.js +2 -2
- package/dist/customize/sections/component/slack-byo-wizard.js +3 -3
- package/dist/customize/sections/connectors-view.js +17 -17
- package/dist/customize/sections/gateway-view.d.ts +7 -5
- package/dist/customize/sections/gateway-view.js +28 -17
- package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.js +2 -2
- package/dist/customize/sections/llm-provider/custom-provider-form.js +2 -2
- package/dist/customize/sections/llm-provider/llm-provider-modal.d.ts +1 -1
- package/dist/customize/sections/llm-provider/llm-provider-modal.js +4 -4
- package/dist/customize/sections/llm-provider/models-tab-row.js +5 -3
- package/dist/customize/sections/llm-provider/types.d.ts +2 -0
- package/dist/customize/sections/view/agent-editor-catalog.d.ts +5 -6
- package/dist/customize/sections/view/agent-editor-catalog.js +33 -14
- package/dist/customize/sections/view/agent-editor.js +1 -1
- package/dist/customize/sections/view/channels-view.js +13 -13
- package/dist/customize/sections/view/gateway/gateway-budgets.js +12 -10
- package/dist/customize/sections/view/gateway/gateway-logs.d.ts +1 -1
- package/dist/customize/sections/view/gateway/gateway-logs.js +3 -3
- package/dist/customize/sections/view/gateway/gateway-overview.js +1 -1
- package/dist/customize/sections/view/gateway/gateway-routing.js +1 -1
- package/dist/customize/sections/view/git-view.js +3 -3
- package/dist/customize/sections/view/grant-mode-field.js +2 -2
- package/dist/customize/sections/view/review-center-connected.js +1 -1
- package/dist/customize/sections/view/review-view.d.ts +0 -15
- package/dist/customize/sections/view/review-view.js +1 -23
- package/dist/customize/sections/view/secret-delivery.js +2 -2
- package/dist/customize/sections/view/secrets-view.js +16 -16
- package/dist/customize/sections/view/subscription-usage-tab.d.ts +12 -1
- package/dist/customize/sections/view/subscription-usage-tab.js +71 -72
- package/dist/customize/settings/rail-copy-context.js +1 -1
- package/dist/customize/settings/rail.d.ts +1 -1
- package/dist/customize/settings/rail.js +11 -18
- package/dist/customize/settings/settings-tab-header.d.ts +1 -1
- package/dist/customize/settings/settings-tab-header.js +1 -1
- package/dist/customize/settings/settings-tabs.d.ts +5 -12
- package/dist/customize/settings/settings-tabs.js +31 -44
- package/dist/customize/settings/tabs/experimental-tab.js +4 -4
- package/dist/customize/settings/tabs/general-tab.d.ts +29 -11
- package/dist/customize/settings/tabs/general-tab.js +55 -25
- package/dist/customize/settings/tabs/project-edit-patch.d.ts +0 -13
- package/dist/customize/settings/tabs/project-edit-patch.js +0 -28
- package/dist/customize/settings/tabs/sandbox-tab.js +2 -2
- package/dist/customize/settings/tabs/tokens-tab.d.ts +32 -2
- package/dist/customize/settings/tabs/tokens-tab.js +157 -32
- package/dist/customize/settings/tabs/workspace-keys.d.ts +6 -0
- package/dist/customize/settings/tabs/workspace-keys.js +240 -0
- package/dist/customize/shared/capability-library.js +3 -1
- package/dist/customize/shared/catalog/catalog-space-tabs.js +2 -2
- package/dist/customize/shared/customize-tab-bar.d.ts +6 -2
- package/dist/customize/shared/customize-tab-bar.js +36 -35
- package/dist/customize/shared/standalone-settings-nav.js +2 -2
- package/dist/customize/triggers/schedule/schedule-copy.d.ts +1 -1
- package/dist/customize/triggers/schedule/trigger-composer.js +5 -6
- package/dist/customize/triggers/schedule/trigger-list.js +2 -2
- package/dist/customize/triggers/schedule/trigger-session-access-copy.d.ts +6 -6
- package/dist/customize/triggers/schedule/trigger-session-access-copy.js +3 -3
- package/dist/customize/triggers/schedule/when-event.js +4 -4
- package/dist/customize/triggers/schedule/when-webhook-address.js +2 -2
- package/dist/customize/triggers/schedule/when-webhook.js +2 -2
- package/dist/customize/triggers/schedule-view.js +4 -5
- package/dist/customize/triggers/triggers-page.d.ts +1 -1
- package/dist/customize/triggers/triggers-page.js +1 -1
- package/dist/files/drives/drive-storage.d.ts +2 -2
- package/dist/files/drives/drive-storage.js +13 -6
- package/dist/files/project/components/change-request-detail-dialog.js +6 -6
- package/dist/files/project/components/change-requests-panel.js +2 -2
- package/dist/files/project/components/diff-preview-banner.d.ts +1 -1
- package/dist/files/project/components/diff-preview-banner.js +1 -1
- package/dist/files/project/components/drive-grid-view.js +1 -1
- package/dist/files/project/components/drive-list-view.js +1 -1
- package/dist/files/project/context.d.ts +1 -1
- package/dist/files/project/context.js +1 -1
- package/dist/files/renderers/image-renderer.js +1 -1
- package/dist/files/runtime/hooks/use-binary-blob.js +12 -2
- package/dist/files/runtime/hooks/use-file-content.js +18 -2
- package/dist/files/viewer/file-content-renderer.js +2 -2
- package/dist/files/viewer/preview-fit.d.ts +1 -1
- package/dist/files/viewer/preview-fit.js +1 -1
- package/dist/i18n/en.d.ts +304 -25
- package/dist/i18n/en.js +867 -588
- package/dist/i18n/ui-catalog/account-hub-translation-keys.generated.js +9 -9
- package/dist/i18n/ui-catalog/app-registry-translation-keys.generated.js +12 -6
- package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.js +5 -5
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +67 -60
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +1 -0
- package/dist/icons/solid-right-arrow.d.ts +8 -0
- package/dist/icons/solid-right-arrow.js +11 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/account-hub/account-hub-entry.js +9 -8
- package/dist/internal/account-hub/account-hub-location.d.ts +20 -3
- package/dist/internal/account-hub/account-hub-location.js +16 -7
- package/dist/internal/account-hub/hub-sheet.d.ts +1 -1
- package/dist/internal/account-hub/hub-sheet.js +1 -1
- package/dist/internal/account-hub/sections.d.ts +2 -2
- package/dist/internal/account-hub/sections.js +10 -10
- package/dist/internal/account-hub/use-account-hub-access.d.ts +2 -0
- package/dist/internal/account-hub/use-account-hub-access.js +13 -5
- package/dist/internal/account-hub/workspace-settings-route.d.ts +27 -0
- package/dist/internal/account-hub/workspace-settings-route.js +51 -0
- package/dist/internal/components/nav-rail.d.ts +3 -1
- package/dist/internal/components/nav-rail.js +2 -0
- package/dist/internal/components/repository-disconnected.js +2 -2
- package/dist/internal/desktop/desktop-back-button.d.ts +1 -1
- package/dist/internal/files/file-read-retry.d.ts +13 -0
- package/dist/internal/files/file-read-retry.js +53 -1
- package/dist/internal/goals/goal-meta.d.ts +2 -1
- package/dist/internal/goals/goal-meta.js +4 -2
- package/dist/internal/hooks/account/use-accounts-list.d.ts +2 -12
- package/dist/internal/hooks/account/use-accounts-list.js +1 -14
- package/dist/internal/hooks/account/use-my-invites.d.ts +1 -1
- package/dist/internal/hooks/account/use-my-invites.js +1 -1
- package/dist/internal/hooks/use-review-session-summary.d.ts +7 -0
- package/dist/internal/hooks/use-review-session-summary.js +12 -1
- package/dist/internal/layout/project-capability-nav.d.ts +6 -17
- package/dist/internal/layout/project-capability-nav.js +7 -79
- package/dist/internal/layout/project-settings-nav.d.ts +2 -2
- package/dist/internal/layout/project-settings-nav.js +3 -3
- package/dist/internal/lib/billing/billing-gate-state.d.ts +11 -0
- package/dist/internal/lib/billing/billing-gate-state.js +18 -0
- package/dist/internal/lib/browser-noise/rules/expected-states.js +2 -3
- package/dist/internal/lib/browser-noise/rules/extensions.js +18 -0
- package/dist/internal/lib/browser-noise/rules/injected-scripts.js +55 -5
- package/dist/internal/lib/capability-tab-routes.d.ts +16 -40
- package/dist/internal/lib/capability-tab-routes.js +25 -54
- package/dist/internal/lib/desktop.d.ts +1 -1
- package/dist/internal/lib/desktop.js +1 -1
- package/dist/internal/lib/github-installations.d.ts +1 -1
- package/dist/internal/lib/github-installations.js +1 -1
- package/dist/internal/lib/model-pricing.js +1 -1
- package/dist/internal/lib/navigation/session-href.d.ts +1 -1
- package/dist/internal/lib/navigation/session-href.js +1 -1
- package/dist/internal/lib/onboarding/landing-destination.d.ts +12 -4
- package/dist/internal/lib/onboarding/landing-destination.js +17 -5
- package/dist/internal/lib/onboarding/last-project-cookie.d.ts +1 -1
- package/dist/internal/lib/onboarding/last-project-cookie.js +1 -1
- package/dist/internal/lib/project-actions.d.ts +1 -4
- package/dist/internal/lib/project-actions.js +2 -5
- package/dist/internal/lib/provider-branding.js +11 -3
- package/dist/internal/lib/use-project-can.d.ts +1 -3
- package/dist/internal/lib/use-project-can.js +0 -5
- package/dist/internal/lib/web-notifications.js +5 -5
- package/dist/internal/notifications/notification-inbox.d.ts +8 -2
- package/dist/internal/notifications/notification-inbox.js +8 -5
- package/dist/internal/notifications/use-inbox-summary.d.ts +8 -4
- package/dist/internal/notifications/use-inbox-summary.js +12 -6
- package/dist/internal/reminders/use-refetch-after-fire.d.ts +0 -2
- package/dist/internal/reminders/use-refetch-after-fire.js +1 -10
- package/dist/internal/stores/account-panel-store.d.ts +17 -1
- package/dist/internal/stores/account-panel-store.js +19 -2
- package/dist/internal/stores/project-switch-store.d.ts +2 -2
- package/dist/internal/stores/project-switch-store.js +4 -4
- package/dist/internal/stores/settings-panel-store.d.ts +6 -0
- package/dist/internal/stores/settings-panel-store.js +4 -1
- package/dist/internal/stores/workspace-settings-rail-store.d.ts +67 -0
- package/dist/internal/stores/workspace-settings-rail-store.js +11 -0
- package/dist/lib/routes.js +19 -18
- package/dist/lib/z-stack.d.ts +7 -0
- package/dist/lib/z-stack.js +13 -0
- package/dist/markdown/copy-button.d.ts +2 -2
- package/dist/markdown/copy-button.js +22 -20
- package/dist/markdown/setup-links/setup-link-button.js +1 -1
- package/dist/primitives/emoji-tint.d.ts +1 -1
- package/dist/primitives/emoji-tint.js +1 -1
- package/dist/primitives/error-state.js +8 -1
- package/dist/primitives/inline-meta.d.ts +12 -1
- package/dist/primitives/inline-meta.js +38 -5
- package/dist/primitives/page-search-bar.js +6 -6
- package/dist/primitives/section.d.ts +3 -3
- package/dist/primitives/section.js +9 -9
- package/dist/primitives/status.d.ts +5 -5
- package/dist/primitives/status.js +33 -33
- package/dist/primitives/tabs.d.ts +14 -26
- package/dist/primitives/tabs.js +103 -105
- package/dist/primitives/tag.d.ts +1 -1
- package/dist/primitives/toast.d.ts +6 -6
- package/dist/primitives/toast.js +55 -48
- package/dist/providers/session-ids.d.ts +1 -1
- package/dist/providers/ui-provider.d.ts +2 -0
- package/dist/session/agents/agent-strip.js +6 -6
- package/dist/session/agents/subagent-dialog-content.js +3 -4
- package/dist/session/agents/workflow-run-controls.d.ts +0 -2
- package/dist/session/agents/workflow-run-controls.js +1 -12
- package/dist/session/composer/ComposerCard.js +1 -1
- package/dist/session/composer/animated-placeholder.js +1 -1
- package/dist/session/composer/chat-input/chat-input-control.js +1 -8
- package/dist/session/composer/composer-toolbar.d.ts +18 -16
- package/dist/session/composer/composer-toolbar.js +10 -1
- package/dist/session/composer/composer.js +5 -13
- package/dist/session/composer/reasoning-effort-selector.d.ts +21 -0
- package/dist/session/composer/reasoning-effort-selector.js +46 -1
- package/dist/session/header/session-goal-indicator.js +2 -3
- package/dist/session/header/session-reminders-indicator.js +3 -3
- package/dist/session/header/session-site-header.js +1 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/models/model-availability.d.ts +11 -0
- package/dist/session/models/model-availability.js +12 -0
- package/dist/session/models/model-connection-gate.d.ts +11 -26
- package/dist/session/models/model-connection-gate.js +22 -35
- package/dist/session/models/model-grouping.d.ts +30 -0
- package/dist/session/models/model-grouping.js +46 -0
- package/dist/session/models/model-picker-panel.d.ts +62 -0
- package/dist/session/models/model-picker-panel.js +181 -0
- package/dist/session/models/model-selector.d.ts +28 -4
- package/dist/session/models/model-selector.js +59 -15
- package/dist/session/models/model-tags.d.ts +4 -8
- package/dist/session/models/model-tags.js +20 -13
- package/dist/session/models/subscription-offer.d.ts +35 -0
- package/dist/session/models/subscription-offer.js +91 -0
- package/dist/session/models/use-model-connection-gate.d.ts +3 -3
- package/dist/session/models/use-model-connection-gate.js +8 -6
- package/dist/session/overrides/session-overrides-toolbar.js +8 -5
- package/dist/session/panel/open-session-quick-view.js +1 -1
- package/dist/session/panel/session-detail-panel.js +5 -1
- package/dist/session/panel/session-panel-provider.js +2 -2
- package/dist/session/panel/session-reminders-panel.js +2 -2
- package/dist/session/panel/shared/use-panel-derivations.d.ts +1 -0
- package/dist/session/panel/shared/use-panel-derivations.js +1 -1
- package/dist/session/panel/shared/use-panel-handoffs.d.ts +2 -2
- package/dist/session/panel/shared/use-panel-handoffs.js +22 -3
- package/dist/session/panel/use-session-panel-state.js +1 -1
- package/dist/session/prompts/ask-deck.d.ts +5 -3
- package/dist/session/prompts/ask-deck.js +30 -10
- package/dist/session/prompts/session-access-prompt.d.ts +61 -0
- package/dist/session/prompts/session-access-prompt.js +88 -0
- package/dist/session/prompts/session-permission-prompt.js +1 -1
- package/dist/session/scope/session-scope-control.js +2 -2
- package/dist/session/status/session-notice-banner.js +3 -3
- package/dist/session/status/session-route-prefetch.d.ts +2 -2
- package/dist/session/thread/optimistic-turn.js +1 -1
- package/dist/session/thread/session-chat.js +40 -18
- package/dist/session/thread/session-context-message-explorer.js +2 -2
- package/dist/session/thread/session-history.js +3 -3
- package/dist/session/tool/render-static.d.ts +11 -0
- package/dist/session/tool/render-static.js +16 -0
- package/dist/session/tool/shared/session-helpers.js +2 -2
- package/dist/session/tool/tool-part-renderer.d.ts +6 -1
- package/dist/session/tool/tool-part-renderer.js +9 -5
- package/dist/session/tool/tools/kortix-action-tool.js +4 -25
- package/dist/session/tool/tools/task-tool.js +9 -2
- package/dist/session/tool/tools/workflow-run-card.js +5 -1
- package/dist/session/tool/tools/workflow-tool.js +3 -14
- package/dist/session/turn/user-message.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +10096 -0
- package/dist/test-utils/intl.js +27 -0
- package/dist/test-utils/strip-tags.d.ts +24 -0
- package/dist/test-utils/strip-tags.js +32 -0
- package/dist/workspace/admin/project-admin-dashboard.d.ts +51 -33
- package/dist/workspace/admin/project-admin-dashboard.js +269 -81
- package/dist/workspace/admin/settings-search-landing.d.ts +11 -0
- package/dist/workspace/admin/settings-search-landing.js +103 -0
- package/dist/workspace/admin/settings-search.d.ts +69 -0
- package/dist/workspace/admin/settings-search.js +393 -0
- package/dist/workspace/home/existing-repo-setup-prompt.d.ts +22 -0
- package/dist/workspace/home/existing-repo-setup-prompt.js +58 -0
- package/dist/workspace/home/no-agent-home.d.ts +25 -0
- package/dist/workspace/home/no-agent-home.js +44 -0
- package/dist/workspace/home/welcome-body.js +2 -1
- package/dist/workspace/inbox/workspace-inbox.d.ts +21 -0
- package/dist/workspace/inbox/workspace-inbox.js +52 -0
- package/dist/workspace/layout/project-files-view.js +1 -1
- package/dist/workspace/layout/project-home.js +60 -9
- package/dist/workspace/memory/memory-body.js +2 -2
- package/dist/workspace/new/account-param.d.ts +1 -1
- package/dist/workspace/new/account-param.js +4 -4
- package/dist/workspace/new/advanced-fields.js +3 -3
- package/dist/workspace/new/clone-param.d.ts +1 -1
- package/dist/workspace/new/clone-param.js +1 -1
- package/dist/workspace/new/create-workspace-key.js +1 -1
- package/dist/workspace/new/github-source.d.ts +6 -6
- package/dist/workspace/new/github-source.js +6 -6
- package/dist/workspace/new/new-workspace-form.d.ts +11 -141
- package/dist/workspace/new/new-workspace-form.js +9 -195
- package/dist/workspace/new/provision-new-workspace.d.ts +14 -0
- package/dist/workspace/new/provision-new-workspace.js +14 -0
- package/dist/workspace/new/repository-options.d.ts +2 -2
- package/dist/workspace/new/repository-options.js +2 -2
- package/dist/workspace/new/source-param.d.ts +2 -2
- package/dist/workspace/new/source-param.js +2 -2
- package/dist/workspace/new/use-create-workspace.d.ts +43 -102
- package/dist/workspace/new/use-create-workspace.js +77 -136
- package/dist/workspace/new/use-project-quota.d.ts +1 -1
- package/dist/workspace/new/use-project-quota.js +1 -1
- package/dist/workspace/new/workspace-handoff.d.ts +2 -2
- package/dist/workspace/new/workspace-handoff.js +2 -2
- package/dist/workspace/new/workspace-name.d.ts +1 -1
- package/dist/workspace/new/workspace-name.js +1 -1
- package/dist/workspace/project-selector/project-selector-model.d.ts +115 -57
- package/dist/workspace/project-selector/project-selector-model.js +157 -111
- package/dist/workspace/projects/modal/project-icon-field.d.ts +5 -5
- package/dist/workspace/projects/modal/project-icon-field.js +4 -4
- package/dist/workspace/projects/policies-panel.js +3 -3
- package/dist/workspace/sessions/board-grouping.js +1 -1
- package/dist/workspace/sessions/project-sessions-view.js +2 -2
- package/dist/workspace/sessions/session-detail.js +2 -2
- package/dist/workspace/sessions/sessions-board.d.ts +1 -1
- package/dist/workspace/sessions/sessions-board.js +1 -1
- package/dist/workspace/settings/split-notice-banner.d.ts +13 -0
- package/dist/workspace/settings/split-notice-banner.js +59 -0
- package/dist/workspace/settings/use-leave-workspace.d.ts +16 -0
- package/dist/workspace/settings/use-leave-workspace.js +60 -0
- package/dist/workspace/sidebar/footer/project-files-nav.js +2 -2
- package/dist/workspace/sidebar/footer/sandbox-health.js +1 -1
- package/dist/workspace/sidebar/invitations-menu-group.d.ts +2 -2
- package/dist/workspace/sidebar/invitations-menu-group.js +4 -4
- package/dist/workspace/sidebar/modal/session-embed-section.js +1 -1
- package/dist/workspace/sidebar/modal/share-session-access.js +1 -1
- package/dist/workspace/sidebar/modal/share-session-modal.js +3 -3
- package/dist/workspace/sidebar/project-nav-items.js +14 -25
- package/dist/workspace/sidebar/project-sidebar.js +17 -2
- package/dist/workspace/sidebar/project-spaces-nav.js +6 -15
- package/dist/workspace/sidebar/sidebar-drill.d.ts +37 -0
- package/dist/workspace/sidebar/sidebar-drill.js +110 -0
- package/dist/workspace/sidebar/use-workspace-directory.d.ts +24 -0
- package/dist/workspace/sidebar/use-workspace-directory.js +24 -0
- package/dist/workspace/sidebar/use-workspace-list.d.ts +37 -0
- package/dist/workspace/sidebar/use-workspace-list.js +71 -0
- package/dist/workspace/sidebar/workspace-grouping.d.ts +6 -67
- package/dist/workspace/sidebar/workspace-grouping.js +4 -107
- package/dist/workspace/sidebar/workspace-menu-model.d.ts +30 -12
- package/dist/workspace/sidebar/workspace-menu-model.js +13 -107
- package/dist/workspace/sidebar/workspace-menu-section.d.ts +7 -1
- package/dist/workspace/sidebar/workspace-menu-section.js +65 -100
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +34 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +282 -0
- package/dist/workspace/space/space-filter-tabs.js +2 -2
- package/dist/workspace/space/space-page.d.ts +1 -1
- package/dist/workspace/space/space-page.js +1 -1
- package/package.json +51 -47
- package/skills/kortix-ui/SKILL.md +66 -66
- package/skills/kortix-ui/references/custom-dashboard.md +15 -15
- package/skills/kortix-ui/references/modules.md +15 -15
- package/dist/customize/agents/agent-pin-button.d.ts +0 -10
- package/dist/customize/agents/agent-pin-button.js +0 -20
- package/dist/customize/settings/tabs/transfer-workspace-dialog.d.ts +0 -4
- package/dist/customize/settings/tabs/transfer-workspace-dialog.js +0 -82
- package/dist/internal/account-hub/account-settings-shell.d.ts +0 -7
- package/dist/internal/account-hub/account-settings-shell.js +0 -87
- package/dist/internal/account-hub/account-settings-sidebar.d.ts +0 -2
- package/dist/internal/account-hub/account-settings-sidebar.js +0 -169
- package/dist/internal/lib/use-project-feature-flags.d.ts +0 -28
- package/dist/internal/lib/use-project-feature-flags.js +0 -76
- package/dist/internal/stores/pinned-agents-store.d.ts +0 -26
- package/dist/internal/stores/pinned-agents-store.js +0 -20
- package/dist/primitives/info-banner.d.ts +0 -14
- package/dist/primitives/info-banner.js +0 -72
- package/dist/workspace/new/account-picker.d.ts +0 -71
- package/dist/workspace/new/account-picker.js +0 -92
- package/dist/workspace/new/use-creatable-accounts.d.ts +0 -8
- package/dist/workspace/new/use-creatable-accounts.js +0 -33
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kortix/ui",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"description": "Kortix UI: the shared React component library for apps/web, Kortix Apps and SDK hosts. Tailwind v4 classes, themed by CSS variables.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Elastic-2.0",
|
|
@@ -44,22 +44,22 @@
|
|
|
44
44
|
"types": "./dist/access/access/index.d.ts",
|
|
45
45
|
"import": "./dist/access/access/index.js"
|
|
46
46
|
},
|
|
47
|
+
"./access/access/invite-people-dialog": {
|
|
48
|
+
"types": "./dist/access/access/invite-people-dialog.d.ts",
|
|
49
|
+
"import": "./dist/access/access/invite-people-dialog.js"
|
|
50
|
+
},
|
|
47
51
|
"./access/access/principal-picker": {
|
|
48
52
|
"types": "./dist/access/access/principal-picker.d.ts",
|
|
49
53
|
"import": "./dist/access/access/principal-picker.js"
|
|
50
54
|
},
|
|
55
|
+
"./access/access/workspace-role-dialog": {
|
|
56
|
+
"types": "./dist/access/access/workspace-role-dialog.d.ts",
|
|
57
|
+
"import": "./dist/access/access/workspace-role-dialog.js"
|
|
58
|
+
},
|
|
51
59
|
"./access/iam/add-github-account-dialog": {
|
|
52
60
|
"types": "./dist/access/iam/add-github-account-dialog.d.ts",
|
|
53
61
|
"import": "./dist/access/iam/add-github-account-dialog.js"
|
|
54
62
|
},
|
|
55
|
-
"./access/iam/api-key-expiry": {
|
|
56
|
-
"types": "./dist/access/iam/api-key-expiry.d.ts",
|
|
57
|
-
"import": "./dist/access/iam/api-key-expiry.js"
|
|
58
|
-
},
|
|
59
|
-
"./access/iam/api-key-rows": {
|
|
60
|
-
"types": "./dist/access/iam/api-key-rows.d.ts",
|
|
61
|
-
"import": "./dist/access/iam/api-key-rows.js"
|
|
62
|
-
},
|
|
63
63
|
"./access/iam/managed-git-notice": {
|
|
64
64
|
"types": "./dist/access/iam/managed-git-notice.d.ts",
|
|
65
65
|
"import": "./dist/access/iam/managed-git-notice.js"
|
|
@@ -193,10 +193,6 @@
|
|
|
193
193
|
"types": "./dist/customize/agents/agent-page.d.ts",
|
|
194
194
|
"import": "./dist/customize/agents/agent-page.js"
|
|
195
195
|
},
|
|
196
|
-
"./customize/agents/agents-page": {
|
|
197
|
-
"types": "./dist/customize/agents/agents-page.d.ts",
|
|
198
|
-
"import": "./dist/customize/agents/agents-page.js"
|
|
199
|
-
},
|
|
200
196
|
"./customize/connectors/connector-routes": {
|
|
201
197
|
"types": "./dist/customize/connectors/connector-routes.d.ts",
|
|
202
198
|
"import": "./dist/customize/connectors/connector-routes.js"
|
|
@@ -309,10 +305,6 @@
|
|
|
309
305
|
"types": "./dist/customize/sections/view/gateway/gateway-routing.d.ts",
|
|
310
306
|
"import": "./dist/customize/sections/view/gateway/gateway-routing.js"
|
|
311
307
|
},
|
|
312
|
-
"./customize/sections/view/review-view": {
|
|
313
|
-
"types": "./dist/customize/sections/view/review-view.d.ts",
|
|
314
|
-
"import": "./dist/customize/sections/view/review-view.js"
|
|
315
|
-
},
|
|
316
308
|
"./customize/sections/view/sandbox-provider-coverage": {
|
|
317
309
|
"types": "./dist/customize/sections/view/sandbox-provider-coverage.d.ts",
|
|
318
310
|
"import": "./dist/customize/sections/view/sandbox-provider-coverage.js"
|
|
@@ -361,6 +353,10 @@
|
|
|
361
353
|
"types": "./dist/customize/settings/tabs/tokens-tab.d.ts",
|
|
362
354
|
"import": "./dist/customize/settings/tabs/tokens-tab.js"
|
|
363
355
|
},
|
|
356
|
+
"./customize/settings/tabs/workspace-keys": {
|
|
357
|
+
"types": "./dist/customize/settings/tabs/workspace-keys.d.ts",
|
|
358
|
+
"import": "./dist/customize/settings/tabs/workspace-keys.js"
|
|
359
|
+
},
|
|
364
360
|
"./customize/settings/type": {
|
|
365
361
|
"types": "./dist/customize/settings/type.d.ts",
|
|
366
362
|
"import": "./dist/customize/settings/type.js"
|
|
@@ -799,10 +795,6 @@
|
|
|
799
795
|
"types": "./dist/icons/index.d.ts",
|
|
800
796
|
"import": "./dist/icons/index.js"
|
|
801
797
|
},
|
|
802
|
-
"./info-banner": {
|
|
803
|
-
"types": "./dist/primitives/info-banner.d.ts",
|
|
804
|
-
"import": "./dist/primitives/info-banner.js"
|
|
805
|
-
},
|
|
806
798
|
"./inline-meta": {
|
|
807
799
|
"types": "./dist/primitives/inline-meta.d.ts",
|
|
808
800
|
"import": "./dist/primitives/inline-meta.js"
|
|
@@ -823,10 +815,6 @@
|
|
|
823
815
|
"types": "./dist/internal/account-hub/account-hub-location.d.ts",
|
|
824
816
|
"import": "./dist/internal/account-hub/account-hub-location.js"
|
|
825
817
|
},
|
|
826
|
-
"./internal/account-hub/account-settings-shell": {
|
|
827
|
-
"types": "./dist/internal/account-hub/account-settings-shell.d.ts",
|
|
828
|
-
"import": "./dist/internal/account-hub/account-settings-shell.js"
|
|
829
|
-
},
|
|
830
818
|
"./internal/account-hub/hub-sheet": {
|
|
831
819
|
"types": "./dist/internal/account-hub/hub-sheet.d.ts",
|
|
832
820
|
"import": "./dist/internal/account-hub/hub-sheet.js"
|
|
@@ -847,6 +835,10 @@
|
|
|
847
835
|
"types": "./dist/internal/account-hub/use-account-members.d.ts",
|
|
848
836
|
"import": "./dist/internal/account-hub/use-account-members.js"
|
|
849
837
|
},
|
|
838
|
+
"./internal/account-hub/workspace-settings-route": {
|
|
839
|
+
"types": "./dist/internal/account-hub/workspace-settings-route.d.ts",
|
|
840
|
+
"import": "./dist/internal/account-hub/workspace-settings-route.js"
|
|
841
|
+
},
|
|
850
842
|
"./internal/auth/auth-card-shell": {
|
|
851
843
|
"types": "./dist/internal/auth/auth-card-shell.d.ts",
|
|
852
844
|
"import": "./dist/internal/auth/auth-card-shell.js"
|
|
@@ -919,6 +911,10 @@
|
|
|
919
911
|
"types": "./dist/internal/components/mobile-store-qr.d.ts",
|
|
920
912
|
"import": "./dist/internal/components/mobile-store-qr.js"
|
|
921
913
|
},
|
|
914
|
+
"./internal/components/nav-rail": {
|
|
915
|
+
"types": "./dist/internal/components/nav-rail.d.ts",
|
|
916
|
+
"import": "./dist/internal/components/nav-rail.js"
|
|
917
|
+
},
|
|
922
918
|
"./internal/desktop/desktop-back-button": {
|
|
923
919
|
"types": "./dist/internal/desktop/desktop-back-button.d.ts",
|
|
924
920
|
"import": "./dist/internal/desktop/desktop-back-button.js"
|
|
@@ -1059,6 +1055,10 @@
|
|
|
1059
1055
|
"types": "./dist/internal/layout/open-command-palette.d.ts",
|
|
1060
1056
|
"import": "./dist/internal/layout/open-command-palette.js"
|
|
1061
1057
|
},
|
|
1058
|
+
"./internal/layout/project-settings-nav": {
|
|
1059
|
+
"types": "./dist/internal/layout/project-settings-nav.d.ts",
|
|
1060
|
+
"import": "./dist/internal/layout/project-settings-nav.js"
|
|
1061
|
+
},
|
|
1062
1062
|
"./internal/layout/settings-nav-context": {
|
|
1063
1063
|
"types": "./dist/internal/layout/settings-nav-context.d.ts",
|
|
1064
1064
|
"import": "./dist/internal/layout/settings-nav-context.js"
|
|
@@ -1227,10 +1227,6 @@
|
|
|
1227
1227
|
"types": "./dist/internal/lib/use-project-can.d.ts",
|
|
1228
1228
|
"import": "./dist/internal/lib/use-project-can.js"
|
|
1229
1229
|
},
|
|
1230
|
-
"./internal/lib/use-project-feature-flags": {
|
|
1231
|
-
"types": "./dist/internal/lib/use-project-feature-flags.d.ts",
|
|
1232
|
-
"import": "./dist/internal/lib/use-project-feature-flags.js"
|
|
1233
|
-
},
|
|
1234
1230
|
"./internal/lib/utils/clipboard": {
|
|
1235
1231
|
"types": "./dist/internal/lib/utils/clipboard.d.ts",
|
|
1236
1232
|
"import": "./dist/internal/lib/utils/clipboard.js"
|
|
@@ -1773,14 +1769,6 @@
|
|
|
1773
1769
|
"types": "./dist/session/tool/foreign-tool-calls.d.ts",
|
|
1774
1770
|
"import": "./dist/session/tool/foreign-tool-calls.js"
|
|
1775
1771
|
},
|
|
1776
|
-
"./session/tool/shared/file-list": {
|
|
1777
|
-
"types": "./dist/session/tool/shared/file-list.d.ts",
|
|
1778
|
-
"import": "./dist/session/tool/shared/file-list.js"
|
|
1779
|
-
},
|
|
1780
|
-
"./session/tool/shared/patch-helpers": {
|
|
1781
|
-
"types": "./dist/session/tool/shared/patch-helpers.d.ts",
|
|
1782
|
-
"import": "./dist/session/tool/shared/patch-helpers.js"
|
|
1783
|
-
},
|
|
1784
1772
|
"./session/tool/shared/show-helpers": {
|
|
1785
1773
|
"types": "./dist/session/tool/shared/show-helpers.d.ts",
|
|
1786
1774
|
"import": "./dist/session/tool/shared/show-helpers.js"
|
|
@@ -1997,6 +1985,10 @@
|
|
|
1997
1985
|
"types": "./dist/workspace/home/welcome-body.d.ts",
|
|
1998
1986
|
"import": "./dist/workspace/home/welcome-body.js"
|
|
1999
1987
|
},
|
|
1988
|
+
"./workspace/inbox/workspace-inbox": {
|
|
1989
|
+
"types": "./dist/workspace/inbox/workspace-inbox.d.ts",
|
|
1990
|
+
"import": "./dist/workspace/inbox/workspace-inbox.js"
|
|
1991
|
+
},
|
|
2000
1992
|
"./workspace/layout/project-files-skeleton": {
|
|
2001
1993
|
"types": "./dist/workspace/layout/project-files-skeleton.d.ts",
|
|
2002
1994
|
"import": "./dist/workspace/layout/project-files-skeleton.js"
|
|
@@ -2013,10 +2005,6 @@
|
|
|
2013
2005
|
"types": "./dist/workspace/new/account-param.d.ts",
|
|
2014
2006
|
"import": "./dist/workspace/new/account-param.js"
|
|
2015
2007
|
},
|
|
2016
|
-
"./workspace/new/account-picker": {
|
|
2017
|
-
"types": "./dist/workspace/new/account-picker.d.ts",
|
|
2018
|
-
"import": "./dist/workspace/new/account-picker.js"
|
|
2019
|
-
},
|
|
2020
2008
|
"./workspace/new/advanced-fields": {
|
|
2021
2009
|
"types": "./dist/workspace/new/advanced-fields.d.ts",
|
|
2022
2010
|
"import": "./dist/workspace/new/advanced-fields.js"
|
|
@@ -2029,14 +2017,14 @@
|
|
|
2029
2017
|
"types": "./dist/workspace/new/new-workspace-form.d.ts",
|
|
2030
2018
|
"import": "./dist/workspace/new/new-workspace-form.js"
|
|
2031
2019
|
},
|
|
2020
|
+
"./workspace/new/provision-new-workspace": {
|
|
2021
|
+
"types": "./dist/workspace/new/provision-new-workspace.d.ts",
|
|
2022
|
+
"import": "./dist/workspace/new/provision-new-workspace.js"
|
|
2023
|
+
},
|
|
2032
2024
|
"./workspace/new/source-param": {
|
|
2033
2025
|
"types": "./dist/workspace/new/source-param.d.ts",
|
|
2034
2026
|
"import": "./dist/workspace/new/source-param.js"
|
|
2035
2027
|
},
|
|
2036
|
-
"./workspace/new/use-creatable-accounts": {
|
|
2037
|
-
"types": "./dist/workspace/new/use-creatable-accounts.d.ts",
|
|
2038
|
-
"import": "./dist/workspace/new/use-creatable-accounts.js"
|
|
2039
|
-
},
|
|
2040
2028
|
"./workspace/new/use-create-workspace": {
|
|
2041
2029
|
"types": "./dist/workspace/new/use-create-workspace.d.ts",
|
|
2042
2030
|
"import": "./dist/workspace/new/use-create-workspace.js"
|
|
@@ -2089,6 +2077,10 @@
|
|
|
2089
2077
|
"types": "./dist/workspace/review/types.d.ts",
|
|
2090
2078
|
"import": "./dist/workspace/review/types.js"
|
|
2091
2079
|
},
|
|
2080
|
+
"./workspace/settings/use-leave-workspace": {
|
|
2081
|
+
"types": "./dist/workspace/settings/use-leave-workspace.d.ts",
|
|
2082
|
+
"import": "./dist/workspace/settings/use-leave-workspace.js"
|
|
2083
|
+
},
|
|
2092
2084
|
"./workspace/sidebar/footer/project-apps-nav": {
|
|
2093
2085
|
"types": "./dist/workspace/sidebar/footer/project-apps-nav.d.ts",
|
|
2094
2086
|
"import": "./dist/workspace/sidebar/footer/project-apps-nav.js"
|
|
@@ -2145,10 +2137,22 @@
|
|
|
2145
2137
|
"types": "./dist/workspace/sidebar/session-source-icons.d.ts",
|
|
2146
2138
|
"import": "./dist/workspace/sidebar/session-source-icons.js"
|
|
2147
2139
|
},
|
|
2140
|
+
"./workspace/sidebar/use-workspace-directory": {
|
|
2141
|
+
"types": "./dist/workspace/sidebar/use-workspace-directory.d.ts",
|
|
2142
|
+
"import": "./dist/workspace/sidebar/use-workspace-directory.js"
|
|
2143
|
+
},
|
|
2144
|
+
"./workspace/sidebar/use-workspace-list": {
|
|
2145
|
+
"types": "./dist/workspace/sidebar/use-workspace-list.d.ts",
|
|
2146
|
+
"import": "./dist/workspace/sidebar/use-workspace-list.js"
|
|
2147
|
+
},
|
|
2148
2148
|
"./workspace/sidebar/workspace-grouping": {
|
|
2149
2149
|
"types": "./dist/workspace/sidebar/workspace-grouping.d.ts",
|
|
2150
2150
|
"import": "./dist/workspace/sidebar/workspace-grouping.js"
|
|
2151
2151
|
},
|
|
2152
|
+
"./workspace/sidebar/workspace-menu-model": {
|
|
2153
|
+
"types": "./dist/workspace/sidebar/workspace-menu-model.d.ts",
|
|
2154
|
+
"import": "./dist/workspace/sidebar/workspace-menu-model.js"
|
|
2155
|
+
},
|
|
2152
2156
|
"./workspace/sidebar/workspace-menu-section": {
|
|
2153
2157
|
"types": "./dist/workspace/sidebar/workspace-menu-section.d.ts",
|
|
2154
2158
|
"import": "./dist/workspace/sidebar/workspace-menu-section.js"
|
|
@@ -2193,7 +2197,7 @@
|
|
|
2193
2197
|
"@extend-ai/react-docx": "^0.7.5",
|
|
2194
2198
|
"@extend-ai/react-xlsx": "0.13.4",
|
|
2195
2199
|
"@glideapps/glide-data-grid": "6.0.4-alpha24",
|
|
2196
|
-
"@kortix/llm-catalog": "0.15.
|
|
2200
|
+
"@kortix/llm-catalog": "0.15.3",
|
|
2197
2201
|
"@lezer/highlight": "1.2.3",
|
|
2198
2202
|
"@paper-design/shaders-react": "^0.0.76",
|
|
2199
2203
|
"@phosphor-icons/react": "2.1.10",
|
|
@@ -2292,7 +2296,7 @@
|
|
|
2292
2296
|
"yaml": "^2.8.2"
|
|
2293
2297
|
},
|
|
2294
2298
|
"peerDependencies": {
|
|
2295
|
-
"@kortix/sdk": "^0.15.
|
|
2299
|
+
"@kortix/sdk": "^0.15.3",
|
|
2296
2300
|
"@tanstack/react-query": "^5.75.2",
|
|
2297
2301
|
"@types/react": ">=18",
|
|
2298
2302
|
"react": ">=19",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kortix-ui
|
|
3
|
-
description: "Build React UI with @kortix/ui, the Kortix component library and the whole Kortix session experience as modules (session workspace, thread, composer, side panel, files, file viewer, terminal,
|
|
3
|
+
description: "Build React UI with @kortix/ui, the Kortix component library and the whole Kortix session experience as modules (session workspace, thread, composer, side panel, files, file viewer, terminal, workspace sidebar and home, customize pages): Kortix Apps, white-label hosts, custom dashboards on @kortix/sdk and apps/web. Load before you write a component, a page, a chat or session view, a custom dashboard or App, or a className in a React host that renders Kortix UI, or when you theme Kortix components for another brand. Covers setup, the module map, which component to compose, banned primitives, tokens, the dashboard guide, white-label theming and the verify steps."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @kortix/ui
|
|
@@ -14,64 +14,60 @@ Module entries and `@kortix/ui/theme` need 0.14.4+. Inside `kortix-ai/CompanyOS`
|
|
|
14
14
|
|
|
15
15
|
## 1. Set up once
|
|
16
16
|
|
|
17
|
-
1. Styles. A Tailwind v4 host: `@import 'tailwindcss'; @import '@kortix/ui/tailwind.css';` in its main CSS,
|
|
18
|
-
plus the optional peers `tw-animate-css`, `tailwind-scrollbar`, `tailwind-scrollbar-hide`.
|
|
19
|
-
A host without Tailwind imports `@kortix/ui/styles.css` once: every class the package uses, none of yours.
|
|
17
|
+
1. Styles. A Tailwind v4 host: `@import 'tailwindcss'; @import '@kortix/ui/tailwind.css';` in its main CSS, plus the optional peers `tw-animate-css`, `tailwind-scrollbar`, `tailwind-scrollbar-hide`. A host without Tailwind imports `@kortix/ui/styles.css` once: every class the package uses, none of yours.
|
|
20
18
|
2. Fonts. `@kortix/ui/fonts.css` (Roobert) is for Kortix-owned surfaces only. A white-label host never imports it.
|
|
21
|
-
3. Mount once at the root: `QueryClientProvider`, `UiProvider` (`link`, `navigation`: your router, `observesHistory: true` under Next.js; `components`:
|
|
22
|
-
|
|
23
|
-
marks; `i18n`, `strings`, `image`, `useViewerId`: without it no sender name or "Stopped by" shows), `IconProvider` (`@kortix/ui/icon-provider`), one `<Toaster />`
|
|
24
|
-
(`@kortix/ui/toast`). `setUiTelemetry` (`@kortix/ui`) once at module load. Dark mode is `dark` on `<html>`. SDK `billingEnabled` stays off (Kortix's app only).
|
|
25
|
-
4. Ids, never route params. `SessionThread`, `SessionWorkspace` and `ProjectHome` mount `SessionIdsProvider` and the
|
|
26
|
-
SDK project scope themselves. A block outside them: `KortixProjectProvider` (`@kortix/sdk/react`) and
|
|
27
|
-
`SessionIdsProvider` (`projectId`, `sessionId`) around it. Links follow `setUiRoutes` (`@kortix/ui`): map each page you do not serve to `null`.
|
|
19
|
+
3. Mount once at the root: `QueryClientProvider`, `UiProvider` (`link`, `navigation`: your router, `observesHistory: true` under Next.js; `components`: host slots, a missing slot hides its control; `config`: `managedModelsEnabled`, `connectorsEnabled`, `terminalEnabled`, `cliConnectEnabled`, `publicSharesEnabled`, `commandPaletteShortcut`, `settingsShortcut`, `accountApiEnabled`; `resolvePreviewUrl`; `useBrand`: your marks; `i18n`, `strings`, `image`, `useViewerId`: without it no sender name or "Stopped by" shows), `IconProvider` (`@kortix/ui/icon-provider`), one `<Toaster />` (`@kortix/ui/toast`). `setUiTelemetry` (`@kortix/ui`) once at module load. Dark mode is `dark` on `<html>`. SDK `billingEnabled` stays off (Kortix's app only).
|
|
20
|
+
4. Ids, never route params. `SessionThread`, `SessionWorkspace` and `ProjectHome` mount `SessionIdsProvider` and the SDK workspace scope themselves. A block outside them: `KortixProjectProvider` (`@kortix/sdk/react`) and `SessionIdsProvider` (`projectId`, `sessionId`) around it. Links follow `setUiRoutes` (`@kortix/ui`): map each page you do not serve to `null`.
|
|
28
21
|
5. Import by subpath: `import { Modal } from '@kortix/ui/modal'`. The root `@kortix/ui` (section 7) needs no `@kortix/sdk`.
|
|
29
22
|
|
|
30
23
|
## 2. Compose before you create
|
|
31
24
|
|
|
32
|
-
| Job
|
|
33
|
-
|
|
|
34
|
-
| Dialog or sheet
|
|
35
|
-
| Destructive action
|
|
36
|
-
| Tooltip on an icon button
|
|
37
|
-
| Toast after a mutation
|
|
38
|
-
| Status chip; count beside a label | `Badge size="sm"`; `CountBadge` (`waiting`, `reminder`, `conflict`, `neutral`)
|
|
39
|
-
| Inline alert
|
|
40
|
-
| Pending spinner
|
|
41
|
-
| Expand and collapse
|
|
42
|
-
| Form field; search field
|
|
43
|
-
| Panel; buttons side by side
|
|
44
|
-
| Tabs and filters
|
|
45
|
-
| Menu, picker, palette
|
|
46
|
-
| Table and empty list
|
|
25
|
+
| Job | Compose | Subpath |
|
|
26
|
+
| --------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
|
|
27
|
+
| Dialog or sheet | `Modal`, `ModalContent`, `ModalHeader`, `ModalTitle`, `ModalBody`, `ModalFooter` | `modal` |
|
|
28
|
+
| Destructive action | `ConfirmDialog` before the mutation, never a single click | `confirm-dialog` |
|
|
29
|
+
| Tooltip on an icon button | `Hint label="…"` | `hint` |
|
|
30
|
+
| Toast after a mutation | `successToast`, `errorToast`, `infoToast`, `warningToast`, `loadingToast` | `toast` |
|
|
31
|
+
| Status chip; count beside a label | `Badge size="sm"`; `CountBadge` (`waiting`, `reminder`, `conflict`, `neutral`) | `badge`, `count-badge` |
|
|
32
|
+
| Inline alert | `Alert` + `AlertTitle` + `AlertDescription` | `alert` |
|
|
33
|
+
| Pending spinner | `Loading` (default export) | `loading` |
|
|
34
|
+
| Expand and collapse | `Disclosure`, `DisclosureTrigger`, `DisclosureContent` | `disclosure` |
|
|
35
|
+
| Form field; search field | `Field`, `FieldLabel`, `FieldGroup`, `FieldDescription` with `Input`, `Textarea`, `Select`; `InputGroupSearch` | `field`, `input-group` |
|
|
36
|
+
| Panel; buttons side by side | `Card` and its slots, or `bg-popover rounded-md border px-4 py-5`; `ButtonGroup` | `card`, `button-group` |
|
|
37
|
+
| Tabs and filters | `Tabs`, `TabsList size="xs"`, `TabsTrigger` | `tabs` |
|
|
38
|
+
| Menu, picker, palette | `DropdownMenu`, `Popover`, `Command` | `dropdown-menu`, `popover`, `command` |
|
|
39
|
+
| Table and empty list | `Table`; `Empty` with one muted line | `table`, `empty` |
|
|
47
40
|
|
|
48
41
|
A new primitive is the last step: tokens only, a small API, and a section on `/design-system`.
|
|
42
|
+
|
|
49
43
|
## 3. Banned
|
|
50
44
|
|
|
51
|
-
| Never
|
|
52
|
-
|
|
|
53
|
-
| `Dialog` / `DialogContent` in feature code
|
|
54
|
-
| `Tooltip` primitives in feature code
|
|
55
|
-
| `toast()` from `sonner`, `toast.success()`
|
|
56
|
-
| An icon with `animate-spin`, `CircleNotchIcon`, `SpinnerIcon` | `Loading`
|
|
57
|
-
| A hand-rolled chip `<span>` or a colored banner
|
|
58
|
-
| `SectionCard`, `List` / `ListRow`
|
|
59
|
-
| `lucide-react` or another icon set
|
|
60
|
-
| A fork or a restyled copy of a component
|
|
45
|
+
| Never | Use |
|
|
46
|
+
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
47
|
+
| `Dialog` / `DialogContent` in feature code | `Modal` |
|
|
48
|
+
| `Tooltip` primitives in feature code | `Hint` |
|
|
49
|
+
| `toast()` from `sonner`, `toast.success()` | the toast helpers and `<Toaster />`, all from `@kortix/ui/toast`; a host needs no `sonner` import |
|
|
50
|
+
| An icon with `animate-spin`, `CircleNotchIcon`, `SpinnerIcon` | `Loading` |
|
|
51
|
+
| A hand-rolled chip `<span>` or a colored banner | `Badge`, `Alert` |
|
|
52
|
+
| `SectionCard`, `List` / `ListRow` | `Card`, `<ul className="space-y-2">` rows |
|
|
53
|
+
| `lucide-react` or another icon set | `@phosphor-icons/react`, `*Icon` names, no `weight` prop (only `weight="fill"` for solid status glyphs) |
|
|
54
|
+
| A fork or a restyled copy of a component | the component as it ships; theme with tokens (section 6) |
|
|
61
55
|
|
|
62
56
|
## 4. Tokens only
|
|
63
57
|
|
|
64
|
-
- Colors are semantic utilities (`bg-background`, `bg-card`, `bg-muted`, `text-muted-foreground`, `border-border`,
|
|
65
|
-
`bg-primary`, `text-destructive`). Never a hex, `rgb()`, `oklch()` or a palette class (`text-emerald-600`).
|
|
58
|
+
- Colors are semantic utilities (`bg-background`, `bg-card`, `bg-muted`, `text-muted-foreground`, `border-border`, `bg-primary`, `text-destructive`). Never a hex, `rgb()`, `oklch()` or a palette class (`text-emerald-600`).
|
|
66
59
|
- `--spacing` is `0.23rem`, 8% tighter than stock Tailwind: a 16px mockup gap is `gap-4`, never `gap-[16px]`.
|
|
67
60
|
- `rounded-md` for panels and fields; elevation only on overlays. Hover is `transition-colors duration-fast`; no motion over 300 ms.
|
|
68
61
|
|
|
69
62
|
## 5. Status tones
|
|
70
63
|
|
|
71
64
|
One meaning per hue. `StatusTone` (`@kortix/ui/status`): `success`, `warning`, `destructive`, `info`, `neutral`, for
|
|
72
|
-
`
|
|
65
|
+
`StatusBadge` and `STATUS_DOT`; `Badge` variants map the same, `muted` for neutral.
|
|
66
|
+
`Alert` accepts only `default`, `success`, `warning`, and `destructive`. Map info and neutral notices to `variant="default"`. Tinted icon tile:
|
|
73
67
|
`bg-kortix-green/15` (or `-orange`, `-blue`) with the icon in the full hue.
|
|
74
68
|
|
|
69
|
+
Example: `<Alert variant="default"><AlertTitle>…</AlertTitle><AlertDescription>…</AlertDescription></Alert>` from `@kortix/ui/alert`. Never pass `title` to `Alert`: it is a native tooltip attribute, not visible content.
|
|
70
|
+
|
|
75
71
|
## 6. White-label
|
|
76
72
|
|
|
77
73
|
Theme with `@kortix/ui/theme`, never by forking a component: `themeToCss(theme)` in a `<style>` for the app,
|
|
@@ -82,21 +78,20 @@ Theme with `@kortix/ui/theme`, never by forking a component: `themeToCss(theme)`
|
|
|
82
78
|
|
|
83
79
|
## 7. Components
|
|
84
80
|
|
|
85
|
-
| Import from
|
|
86
|
-
|
|
|
87
|
-
| `@kortix/ui` (adapters)
|
|
88
|
-
| `@kortix/ui` (actions, display)
|
|
89
|
-
| `@kortix/ui` (forms)
|
|
90
|
-
| `@kortix/ui` (overlays)
|
|
91
|
-
| `@kortix/ui` (primitives, not for feature code: section 3) | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`, `Tooltip`, `TooltipContent`, `TooltipProvider`, `TooltipTrigger`
|
|
92
|
-
| `@kortix/ui` (navigation)
|
|
93
|
-
| `@kortix/ui` (conversation)
|
|
94
|
-
| `@kortix/ui` (hooks, helpers)
|
|
95
|
-
| `@kortix/ui/theme`
|
|
96
|
-
| `@kortix/ui/session` (whole thread)
|
|
97
|
-
| `@kortix/ui/session` (blocks)
|
|
98
|
-
| `@kortix/ui/session` (tool rows, pickers)
|
|
99
|
-
|
|
81
|
+
| Import from | Names |
|
|
82
|
+
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
83
|
+
| `@kortix/ui` (adapters) | `cn`, `UiProvider`, `defaultUiStrings`, `useUiStrings`, `useUiLink`, `useUiImage`, `useUiBrand`, `UiStrings`, `UiStringsInput`, `UiLinkProps`, `UiLinkComponent`, `UiImageProps`, `UiImageComponent`, `UiBrand`, `UseUiBrand`, `useIsDark`, `useUiRouter`, `useUiShallowNavigate`, `UiShallowNavigate`, `useUiPathname`, `useUiSearchParams`, `useUiParams`, `defaultUiNavigation`, `UiNavigation`, `UiRouter`, `UiRouteParams`, `UiSearchParams`, `useUiViewerId`, `useUiHostConfig`, `defaultUiHostConfig`, `UiHostConfig`, `UiSlashAction`, `SessionIdsProvider`, `useSessionIds`, `UiSessionIds` |
|
|
84
|
+
| `@kortix/ui` (actions, display) | `Button`, `buttonVariants`, `ButtonProps`, `Badge`, `badgeVariants`, `Card`, `CardAction`, `CardButton`, `CardContent`, `CardDescription`, `CardEyebrow`, `CardFeature`, `CardFooter`, `CardGroup`, `CardHeader`, `CardImage`, `CardMedia`, `CardTitle`, `CardButtonProps`, `CardButtonSize`, `CardButtonVariant`, `CardGroupProps`, `CardLogo`, `CardProps`, `Separator`, `Skeleton` |
|
|
85
|
+
| `@kortix/ui` (forms) | `Input`, `inputFocusClasses`, `inputInvalidClasses`, `inputSurfaceClasses`, `inputTransitionClasses`, `InputProps`, `useAutosizeTextArea`, `Textarea`, `AutosizeTextAreaRef`, `AutosizeTextAreaProps`, `Label`, `Checkbox`, `CheckboxProps`, `CheckboxVariant`, `Switch`, `SwitchProps`, `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectScrollDownButton`, `SelectScrollUpButton`, `SelectSeparator`, `SelectTrigger`, `SelectValue`, `SelectTriggerProps` |
|
|
86
|
+
| `@kortix/ui` (overlays) | `Modal`, `ModalBody`, `ModalClose`, `ModalContent`, `ModalContentInner`, `ModalDescription`, `ModalFooter`, `ModalHeader`, `ModalOverlay`, `ModalPortal`, `ModalTitle`, `ModalTrigger`, `Hint`, `HintProps`, `Popover`, `PopoverAnchor`, `PopoverContent`, `PopoverTrigger`, `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger` |
|
|
87
|
+
| `@kortix/ui` (primitives, not for feature code: section 3) | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`, `Tooltip`, `TooltipContent`, `TooltipProvider`, `TooltipTrigger` |
|
|
88
|
+
| `@kortix/ui` (navigation) | `FilterBar`, `FilterBarItem`, `Tabs`, `TabsContent`, `TabsList`, `TabsTrigger`, `tabsTriggerHeightVariants`, `tabsTriggerPaddingVariants`, `tabsTriggerTextVariants`, `TabsListType`, `TabsSize`, `TabsTriggerSize`, `TabsTriggerVariant`, `TabsUnderlineSize` |
|
|
89
|
+
| `@kortix/ui` (conversation) | `Bubble`, `BubbleContent`, `BubbleGroup`, `BubbleReactions`, `bubbleVariants`, `Message`, `MessageAvatar`, `MessageContent`, `MessageFooter`, `MessageGroup`, `MessageHeader`, `Marker`, `MarkerContent`, `MarkerIcon`, `markerVariants` |
|
|
90
|
+
| `@kortix/ui` (hooks, helpers) | `UiLink`, `UiImage`, `useUiViewer`, `UiViewer`, `UiHostComponents`, `UiPreviewUrlResolver`, `UiPreviewRequest`, `useDebounce`, `useIsMobile`, `useMediaQuery`, `useSlashFocus`, `lazyClient`, `spring`, `floatingZ`, `dialogContentZ`, `dialogOverlayZ`, `useDialogDepth`, `hasOpenFloatingLayer`, `hasOpenNestedDialog`, `DEFAULT_ICON_WEIGHT`, `ICON_WEIGHTS`, `SHIPPED_ICON_WEIGHTS`, `faviconUrlForHostname`, `setUiTelemetry`, `setUiHostEnv`, `setUiRoutes`, `uiRoutes`, `newSessionHref`, `isNewSessionRequested`, `defaultUiRoutes`, `decodeSpaceSegment`, `UiRoutes` |
|
|
91
|
+
| `@kortix/ui/theme` | `KortixTheme`, `themeToCss`, `themeToCssVars`, `ThemeScope`, `ThemeScopeProps`, `THEME_COLOR_VARS`, `ThemeColor`, `ThemeColors`, `ThemeCssVars`, `ThemeTextStep`, `ThemeShadowStep`, `ThemeDurationStep`, `ThemeEasing`, `WALLPAPERS`, `DEFAULT_WALLPAPER_ID`, `getWallpaperById`, `Wallpaper` |
|
|
92
|
+
| `@kortix/ui/session` (whole thread) | `SessionThread`, `SessionThreadProps` |
|
|
93
|
+
| `@kortix/ui/session` (blocks) | `UserMessage`, `ThrottledMarkdown`, `UnifiedMarkdown`, `UnifiedMarkdownProps`, `ToolPartRenderer`, `SessionChatInput`, `SessionChatInputProps`, `AgentSelector`, `ModelSelector`, `ModelSelectorProps`, `SessionPermissionPrompt`, `QuestionPrompt`, `QuestionPromptHandle`, `TurnErrorDisplay`, `SessionBusyIndicator`, `SessionStartingLoader` |
|
|
94
|
+
| `@kortix/ui/session` (tool rows, pickers) | `ToolRegistry`, `ToolProps`, `ToolComponent`, `BasicTool`, `BasicToolProps`, `GenericTool`; for a form outside a session: `ModelSelector`, `AgentSelector` |
|
|
100
95
|
|
|
101
96
|
Every other primitive is one subpath per file: `@kortix/ui/<file name>` (`@kortix/ui/dot-matrix/<name>` for the dot matrices).
|
|
102
97
|
Also: `lib/telemetry` (`UiTelemetryRegister`: declaration-merge `event`), `error-boundary` (`ErrorBoundary`, `ErrorBoundaryFallback`).
|
|
@@ -107,17 +102,17 @@ One entry per module. Its curated names are the public API (semver). Every name,
|
|
|
107
102
|
|
|
108
103
|
| Entry | What it is | Minimal mount |
|
|
109
104
|
| --- | --- | --- |
|
|
110
|
-
| `@kortix/ui/workspace` |
|
|
105
|
+
| `@kortix/ui/workspace` | Workspace screens: `SessionWorkspace` (thread + side panel), `ProjectHome`, `ProjectSessionList`, `ProjectFilesView` | `<SessionWorkspace session={useSession(p, s)} />`; the list inside `SidebarProvider` |
|
|
111
106
|
| `@kortix/ui/session` | The conversation: `SessionThread`, turns, `ToolRegistry`, prompts, pickers | `<SessionThread session={useSession(p, s)} />` |
|
|
112
|
-
| `@kortix/ui/composer` | The composer, its chrome, the send pipeline | `<ComposerChatInput projectId onSend />` in the
|
|
107
|
+
| `@kortix/ui/composer` | The composer, its chrome, the send pipeline | `<ComposerChatInput projectId onSend />` in the workspace scope |
|
|
113
108
|
| `@kortix/ui/session-panel` | The side panel: `ActionPanel`, `SessionFiles`, `SessionChanges`, `SessionAudit` | `SessionPanelProvider` (runtime `sessionId`, `projectId`, `projectSessionId`) |
|
|
114
|
-
| `@kortix/ui/files` |
|
|
109
|
+
| `@kortix/ui/files` | Workspace files (git repo), sandbox files, `FilePreviewHost` | `ProjectFilesView` (workspace); `<FilePreviewHost />` once on a page without a side panel |
|
|
115
110
|
| `@kortix/ui/file-viewer` | Any file kind: pdf, docx, xlsx, csv, pptx, zip, images, code | `<FileViewer content fileName />`; `FileContentRenderer` in `FileSourceProvider` |
|
|
116
111
|
| `@kortix/ui/terminal`, `@kortix/ui/browser` | The session shell; the sandbox browser | the runtime ids of a mounted `useSession` |
|
|
117
112
|
| `@kortix/ui/markdown`, `@kortix/ui/genui` | Markdown with code, math, links; GenUI blocks | `<UnifiedMarkdown content trust="agent" />`; `genui` renders GenUI fences |
|
|
118
113
|
| `@kortix/ui/diff`, `@kortix/ui/changes` | One diff; a change list | `<DiffView before after />` |
|
|
119
114
|
| `@kortix/ui/apps`, `@kortix/ui/artifacts` | App frames, the frame pool, the App view model; artifact frames and session cards | none |
|
|
120
|
-
| `@kortix/ui/access`, `@kortix/ui/customize` | Sharing and roles;
|
|
115
|
+
| `@kortix/ui/access`, `@kortix/ui/customize` | Sharing and roles; workspace configuration pages | `<ConnectorsPage projectId />` |
|
|
121
116
|
| `@kortix/ui/theme`, `@kortix/ui/i18n`, `@kortix/ui/icons` | Theme; `useTranslations`, `useLocale` (next-intl signatures); glyphs | none |
|
|
122
117
|
|
|
123
118
|
Deep paths (`@kortix/ui/internal/*`, `@kortix/ui/<module>/<path>`) have no semver: only Kortix's own apps import them (`scripts/deep-exports.json`).
|
|
@@ -125,26 +120,31 @@ Deep paths (`@kortix/ui/internal/*`, `@kortix/ui/<module>/<path>`) have no semve
|
|
|
125
120
|
## 9. Recipes
|
|
126
121
|
|
|
127
122
|
```tsx
|
|
128
|
-
import { useSession } from
|
|
129
|
-
import { SessionWorkspace } from
|
|
123
|
+
import { useSession } from "@kortix/sdk/react";
|
|
124
|
+
import { SessionWorkspace } from "@kortix/ui/workspace";
|
|
130
125
|
export function Session({ projectId, sessionId }: { projectId: string; sessionId: string }) {
|
|
131
126
|
return <SessionWorkspace session={useSession(projectId, sessionId)} />;
|
|
132
127
|
}
|
|
133
128
|
```
|
|
134
129
|
|
|
135
|
-
- The parent sets the height (also of `ProjectFilesView`). Install `@tanstack/react-query`, `@openuidev/lang-core@0.3.1` and `zod` with it.
|
|
136
|
-
`SessionThread` (`@kortix/ui/session`) is the thread alone; with no side panel, file and preview opens show in a dialog.
|
|
130
|
+
- The parent sets the height (also of `ProjectFilesView`). Install `@tanstack/react-query`, `@openuidev/lang-core@0.3.1` and `zod` with it. `SessionThread` (`@kortix/ui/session`) is the thread alone; with no side panel, file and preview opens show in a dialog.
|
|
137
131
|
- A custom tool row: `ToolRegistry.register('<tool name>', Row)`; `Row` gets `ToolProps`, draws `BasicTool`.
|
|
138
|
-
- A whole dashboard or App (client, router adapters, sidebar,
|
|
139
|
-
sign-in): `references/custom-dashboard.md`. Never a raw `fetch`: the SDK has the call, or gets it.
|
|
132
|
+
- A whole dashboard or App (client, router adapters, sidebar, workspace home, session, files, theme, tool row, App sign-in): `references/custom-dashboard.md`. Never a raw `fetch`: the SDK has the call, or gets it.
|
|
140
133
|
|
|
141
134
|
## 10. Verify
|
|
142
135
|
|
|
143
136
|
1. `tsc --noEmit` adds no error. Run the page in light and dark, at 720 × 480 and a phone width; click every control.
|
|
144
|
-
2. Your diff has no hex, `rgb(`, `-[` spacing bracket, `lucide-react`, `toast(` or `animate-spin`. Kortix-internal:
|
|
145
|
-
`.agents/skills/kortix-brand/scripts/audit.sh <paths>` is clean. White-label: a new `--kortix-blue` reaches a checked `Switch`.
|
|
137
|
+
2. Your diff has no hex, `rgb(`, `-[` spacing bracket, `lucide-react`, `toast(` or `animate-spin`. Kortix-internal: `.agents/skills/kortix-brand/scripts/audit.sh <paths>` is clean. White-label: a new `--kortix-blue` reaches a checked `Switch`.
|
|
146
138
|
|
|
147
139
|
## 11. Kortix-internal work
|
|
148
140
|
|
|
149
141
|
In `kortix-ai/CompanyOS`, `kortix-brand` (values, voice) and `kortix-design-system` (which component) in `.agents/skills/` win
|
|
150
142
|
over this file. `apps/web` imports `@kortix/ui` like any host and keeps no re-export shims: edit the component in `packages/ui/src/`.
|
|
143
|
+
|
|
144
|
+
## Copy and completion icons
|
|
145
|
+
|
|
146
|
+
- Every copy action uses `CopyButton` from `@kortix/ui/markdown/copy-button`: text, links, code, tokens, and IDs.
|
|
147
|
+
- It uses `Copy` from `@kortix/ui/icons` (`packages/ui/src/icons/copy.tsx`) and swaps in `SolidCheckIcon` from `@kortix/ui/internal/icons/solid-check-icon` after clipboard success. Keep one fixed icon box. Reduced motion swaps immediately.
|
|
148
|
+
- Within `packages/ui`, custom copy controls reuse `AnimatedCopyIcon` with those same two icons. Hosts compose `CopyButton`. Preserve clipboard error handling and an accessible label. Never use Phosphor CopyIcon or a local copy timer.
|
|
149
|
+
- Completion and success use `SolidCheckIcon`. Never use a square filled CheckIcon as a completion symbol. A checkbox is for an editable selection only.
|
|
150
|
+
- Avoid crowded cards. Use one heading, short facts, and one primary action. Put secondary explanation in an info hover card. Keep space between header, body, and actions. Do not stack a description under every fact.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Build a custom dashboard or App on @kortix/sdk + @kortix/ui
|
|
2
2
|
|
|
3
|
-
A React host with your own chrome around Kortix's whole session experience: a
|
|
4
|
-
sidebar with Kortix's session list, the
|
|
5
|
-
side panel with files, viewer, terminal, browser), a
|
|
3
|
+
A React host with your own chrome around Kortix's whole session experience: a workspace list, a
|
|
4
|
+
sidebar with Kortix's session list, the workspace home composer, the session workspace (thread plus
|
|
5
|
+
side panel with files, viewer, terminal, browser), a workspace Files page, a company theme and a custom
|
|
6
6
|
tool row. Every sample below is a file of one Vite 8 + React 19 + react-router 7 app that installed
|
|
7
7
|
`@kortix/sdk` and `@kortix/ui` from their packed tarballs. It passed `tsc --noEmit` and `vite build`,
|
|
8
|
-
and ran against a live Kortix API:
|
|
8
|
+
and ran against a live Kortix API: workspace list, a prompt from the home composer, the session opening,
|
|
9
9
|
the tool rows (the custom one included), the reply, the file in the side panel, the Files page and its
|
|
10
10
|
viewer, 0 console errors.
|
|
11
11
|
|
|
@@ -200,9 +200,9 @@ pass stable objects (module scope):
|
|
|
200
200
|
A Next.js host passes `next/link` and `{ useRouter, usePathname, useSearchParams, useParams }` from
|
|
201
201
|
`next/navigation` unchanged.
|
|
202
202
|
|
|
203
|
-
## 5. The
|
|
203
|
+
## 5. The workspace shell
|
|
204
204
|
|
|
205
|
-
Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/
|
|
205
|
+
Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/workspaces/<id>`, `session` `/workspaces/<id>/sessions/<sessionId>`, `sessions` `/workspaces/<id>/sessions` (`?view=archived|deleted`), `files` `/workspaces/<id>/files`, `drive` `/workspaces/<id>/drive`, `apps` `/workspaces/<id>/apps`, `members` `/workspaces/<id>/members`, `sandboxSettings` `/workspaces/<id>/admin/sandbox`, `customize` `/workspaces/<id>/customize/<page>` (agents, skills, connectors, triggers, reminders, models, secrets, review, settings), `admin` `/workspaces/<id>/admin/<section>` (it follows `customize` when you map only `customize`), `goals` `/workspaces/<id>/goals` (flag `goals`), `artifacts` `/workspaces/<id>/artifacts`, `review` `/workspaces/<id>/review`, and, while the workspace's `chat` flag is on, `space` `/workspaces/<id>/spaces/<slug>`, `memory` `/workspaces/<id>/memory`, `channel` `/workspaces/<id>/c/<slug>` and `dm` `/workspaces/<id>/dm/<agent>`. Return your own path for a page you serve elsewhere. Return `null` for a page you do not serve: every link to it is hidden. `project`, `session`, `channel` and `dm` cannot be null. This app serves the workspace
|
|
206
206
|
home, its files and a session (section 7), so it maps the other pages to `null`.
|
|
207
207
|
|
|
208
208
|
```tsx
|
|
@@ -224,14 +224,14 @@ import { ProjectSessionList } from '@kortix/ui/workspace';
|
|
|
224
224
|
import { FolderSimpleIcon, NavigationArrowIcon, SquaresFourIcon } from '@phosphor-icons/react';
|
|
225
225
|
import { Link, Outlet, useLocation, useParams } from 'react-router-dom';
|
|
226
226
|
|
|
227
|
-
// Every
|
|
227
|
+
// Every workspace page: your sidebar chrome around Kortix's session list.
|
|
228
228
|
export function ProjectShell() {
|
|
229
229
|
const { projectId = '', sessionId } = useParams();
|
|
230
230
|
const { pathname } = useLocation();
|
|
231
231
|
const nav = [
|
|
232
|
-
{ to: `/
|
|
233
|
-
{ to: `/
|
|
234
|
-
{ to: '/', label: 'All
|
|
232
|
+
{ to: `/workspaces/${projectId}`, label: 'New session', icon: NavigationArrowIcon },
|
|
233
|
+
{ to: `/workspaces/${projectId}/files`, label: 'Files', icon: FolderSimpleIcon },
|
|
234
|
+
{ to: '/', label: 'All workspaces', icon: SquaresFourIcon },
|
|
235
235
|
];
|
|
236
236
|
return (
|
|
237
237
|
<SessionIdsProvider projectId={projectId} sessionId={sessionId}>
|
|
@@ -295,7 +295,7 @@ export function ProjectsPage() {
|
|
|
295
295
|
<CardContent className="flex flex-col gap-1">
|
|
296
296
|
{projects.isLoading && <Loading />}
|
|
297
297
|
{projects.data?.map((project) => (
|
|
298
|
-
<Link key={project.project_id} to={`/
|
|
298
|
+
<Link key={project.project_id} to={`/workspaces/${project.project_id}`} className="hover:bg-accent rounded-md px-2 py-1.5">
|
|
299
299
|
{project.name}
|
|
300
300
|
</Link>
|
|
301
301
|
))}
|
|
@@ -329,7 +329,7 @@ export function FilesPage() {
|
|
|
329
329
|
`beforeSend` gates the send (throw to refuse); `onSend` replaces it.
|
|
330
330
|
- `SessionWorkspace` is the thread plus the resizable side panel. Tool rows, clickable paths and the
|
|
331
331
|
header's Files, Terminal and Browser buttons open in the panel. `key={sessionId}` remounts it per session.
|
|
332
|
-
- `ProjectFilesView` is the
|
|
332
|
+
- `ProjectFilesView` is the workspace's git-backed files: folders, files, history, and a viewer for
|
|
333
333
|
any file kind. A live session's own workspace is the panel's Files view.
|
|
334
334
|
- The parent sets the height of each screen (`SidebarInset className="h-dvh min-h-0"`).
|
|
335
335
|
|
|
@@ -396,7 +396,7 @@ const router = createBrowserRouter([
|
|
|
396
396
|
children: [
|
|
397
397
|
{ path: '/', element: <ProjectsPage /> },
|
|
398
398
|
{
|
|
399
|
-
path: '/
|
|
399
|
+
path: '/workspaces/:projectId',
|
|
400
400
|
element: <ProjectShell />,
|
|
401
401
|
children: [
|
|
402
402
|
{ index: true, element: <HomePage /> },
|
|
@@ -459,7 +459,7 @@ The modules compose at any depth (`modules.md` has every entry with its props an
|
|
|
459
459
|
`SessionTerminal` (`@kortix/ui/terminal`) with the session's `runtimeSessionId`.
|
|
460
460
|
- Blocks (`ComposerChatInput`, `ModelSelector`, `UserMessage`, `ToolPartRenderer`, …) outside the
|
|
461
461
|
composed screens need the two scopes those screens mount: `KortixProjectProvider` (`@kortix/sdk/react`)
|
|
462
|
-
and `SessionIdsProvider` (`@kortix/ui`) with the
|
|
462
|
+
and `SessionIdsProvider` (`@kortix/ui`) with the workspace and session ids.
|
|
463
463
|
- To draw every part yourself: `useChatTurns` and `renderParts` from `@kortix/sdk/react`
|
|
464
464
|
(https://kortix.com/docs/developers#react).
|
|
465
465
|
- Other data for a dashboard: `useProjectApps`, `useProjectTriggers`, `useChangeRequests`,
|
|
@@ -468,7 +468,7 @@ The modules compose at any depth (`modules.md` has every entry with its props an
|
|
|
468
468
|
## 10. Verify
|
|
469
469
|
|
|
470
470
|
1. `tsc --noEmit` and the production build pass.
|
|
471
|
-
2. In a browser: the
|
|
471
|
+
2. In a browser: the workspace list renders; a prompt from the home opens the session; the tool rows and
|
|
472
472
|
your row draw; the reply streams; a file opens in the side panel; the Files page opens a file;
|
|
473
473
|
0 console errors.
|
|
474
474
|
3. The theme computes: `getComputedStyle(document.documentElement).getPropertyValue('--radius')`
|