@kortix/ui 0.15.1 → 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 -2
- 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-frame.d.ts +0 -1
- package/dist/artifacts/artifact-frame.js +4 -10
- package/dist/artifacts/artifact-session.js +3 -7
- package/dist/artifacts/frame-policy.d.ts +1 -1
- package/dist/artifacts/frame-policy.js +2 -2
- 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 -19
- 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.d.ts +2 -2
- package/dist/customize/triggers/schedule/trigger-list.js +12 -18
- 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 +312 -210
- package/dist/i18n/en.js +880 -778
- 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/agent-mark.js +6 -0
- package/dist/internal/components/clickable-path.d.ts +3 -0
- package/dist/internal/components/clickable-path.js +4 -1
- 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 +66 -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/trigger-clock.d.ts +5 -0
- package/dist/internal/lib/trigger-clock.js +15 -0
- package/dist/internal/lib/turn-broadcast.d.ts +0 -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.d.ts +1 -8
- package/dist/internal/lib/web-notifications.js +17 -58
- package/dist/internal/notifications/notification-bell.d.ts +13 -33
- package/dist/internal/notifications/notification-bell.js +14 -117
- package/dist/internal/notifications/notification-inbox.d.ts +51 -0
- package/dist/internal/notifications/notification-inbox.js +122 -0
- package/dist/internal/notifications/notification-rows.d.ts +3 -4
- package/dist/internal/notifications/notification-rows.js +1 -4
- package/dist/internal/notifications/use-inbox-summary.d.ts +17 -0
- package/dist/internal/notifications/use-inbox-summary.js +28 -0
- package/dist/internal/notifications/web-push.d.ts +9 -10
- package/dist/internal/notifications/web-push.js +9 -10
- 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/web-notification-store.d.ts +6 -9
- package/dist/internal/stores/web-notification-store.js +0 -4
- 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.d.ts +8 -0
- package/dist/lib/routes.js +22 -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/doc-editor/doc-menus.d.ts +1 -10
- package/dist/markdown/doc-editor/doc-menus.js +6 -69
- package/dist/markdown/file-links.js +21 -0
- package/dist/markdown/setup-links/setup-link-button.js +1 -1
- package/dist/primitives/button.d.ts +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/reminder-parts.d.ts +1 -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 +3 -7
- 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 +6 -17
- 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/session-spawn-tool.js +7 -4
- package/dist/session/tool/tools/task-tool.js +27 -6
- 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/access-requests-bell.d.ts +6 -9
- package/dist/workspace/home/access-requests-bell.js +8 -10
- 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 -10
- 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 +18 -7
- 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 +59 -51
- 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/_vendor/shared/artifact-annotations.d.ts +0 -311
- package/dist/_vendor/shared/artifact-comments.d.ts +0 -155
- 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/hooks/use-notification-center.d.ts +0 -50
- package/dist/internal/hooks/use-notification-center.js +0 -151
- package/dist/internal/lib/use-project-feature-flags.d.ts +0 -26
- package/dist/internal/lib/use-project-feature-flags.js +0 -78
- 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
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ARTIFACT_ANNOTATION_LIMITS: {
|
|
3
|
-
readonly messageBytes: 65536;
|
|
4
|
-
readonly captureBytes: 2097152;
|
|
5
|
-
readonly captureChunkChars: 49152;
|
|
6
|
-
readonly captureChunkBytes: 36864;
|
|
7
|
-
readonly captureChunks: 57;
|
|
8
|
-
readonly captureEdge: 2048;
|
|
9
|
-
readonly capturePixels: 4194304;
|
|
10
|
-
readonly captureSvgBytes: 8388608;
|
|
11
|
-
readonly captureTimeout: 10000;
|
|
12
|
-
readonly chunkItems: 64;
|
|
13
|
-
readonly chunks: 256;
|
|
14
|
-
readonly elements: 8192;
|
|
15
|
-
readonly texts: 8192;
|
|
16
|
-
readonly textUnits: 524288;
|
|
17
|
-
readonly pins: 1000;
|
|
18
|
-
readonly pinLabel: 64;
|
|
19
|
-
readonly ranges: 64;
|
|
20
|
-
readonly rects: 64;
|
|
21
|
-
readonly coordinate: 10000000;
|
|
22
|
-
readonly viewport: 100000;
|
|
23
|
-
};
|
|
24
|
-
declare const rectSchema: z.ZodObject<{
|
|
25
|
-
x: z.ZodNumber;
|
|
26
|
-
y: z.ZodNumber;
|
|
27
|
-
width: z.ZodNumber;
|
|
28
|
-
height: z.ZodNumber;
|
|
29
|
-
}, z.core.$strict>;
|
|
30
|
-
declare const viewportSchema: z.ZodObject<{
|
|
31
|
-
width: z.ZodNumber;
|
|
32
|
-
height: z.ZodNumber;
|
|
33
|
-
scroll: z.ZodObject<{
|
|
34
|
-
x: z.ZodNumber;
|
|
35
|
-
y: z.ZodNumber;
|
|
36
|
-
}, z.core.$strict>;
|
|
37
|
-
}, z.core.$strict>;
|
|
38
|
-
export type ArtifactAnnotationRect = z.infer<typeof rectSchema>;
|
|
39
|
-
export type ArtifactAnnotationViewport = z.infer<typeof viewportSchema>;
|
|
40
|
-
export declare const artifactAnnotationCaptureFailureSchema: z.ZodEnum<{
|
|
41
|
-
stale: "stale";
|
|
42
|
-
unavailable: "unavailable";
|
|
43
|
-
tainted: "tainted";
|
|
44
|
-
too_large: "too_large";
|
|
45
|
-
cancelled: "cancelled";
|
|
46
|
-
timeout: "timeout";
|
|
47
|
-
}>;
|
|
48
|
-
export type ArtifactAnnotationCaptureFailure = z.infer<typeof artifactAnnotationCaptureFailureSchema>;
|
|
49
|
-
declare const candidateSchema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
50
|
-
type: "text";
|
|
51
|
-
quote: string;
|
|
52
|
-
prefix: string;
|
|
53
|
-
suffix: string;
|
|
54
|
-
} | {
|
|
55
|
-
offset: {
|
|
56
|
-
x: number;
|
|
57
|
-
y: number;
|
|
58
|
-
};
|
|
59
|
-
selector: string;
|
|
60
|
-
snippet: string;
|
|
61
|
-
viewport_width: number;
|
|
62
|
-
scroll: {
|
|
63
|
-
x: number;
|
|
64
|
-
y: number;
|
|
65
|
-
};
|
|
66
|
-
type: "point";
|
|
67
|
-
} | {
|
|
68
|
-
offset: {
|
|
69
|
-
x: number;
|
|
70
|
-
y: number;
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
|
-
};
|
|
74
|
-
selector: string;
|
|
75
|
-
snippet: string;
|
|
76
|
-
viewport_width: number;
|
|
77
|
-
scroll: {
|
|
78
|
-
x: number;
|
|
79
|
-
y: number;
|
|
80
|
-
};
|
|
81
|
-
type: "region";
|
|
82
|
-
}, unknown>>;
|
|
83
|
-
export declare const artifactAnnotationFrameMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
-
type: z.ZodLiteral<"ready">;
|
|
85
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
86
|
-
v: z.ZodLiteral<1>;
|
|
87
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
-
type: z.ZodLiteral<"layout">;
|
|
89
|
-
revision: z.ZodNumber;
|
|
90
|
-
chunk: z.ZodNumber;
|
|
91
|
-
final: z.ZodBoolean;
|
|
92
|
-
complete: z.ZodBoolean;
|
|
93
|
-
viewport: z.ZodObject<{
|
|
94
|
-
width: z.ZodNumber;
|
|
95
|
-
height: z.ZodNumber;
|
|
96
|
-
scroll: z.ZodObject<{
|
|
97
|
-
x: z.ZodNumber;
|
|
98
|
-
y: z.ZodNumber;
|
|
99
|
-
}, z.core.$strict>;
|
|
100
|
-
}, z.core.$strict>;
|
|
101
|
-
elements: z.ZodArray<z.ZodObject<{
|
|
102
|
-
n: z.ZodNumber;
|
|
103
|
-
selector: z.ZodString;
|
|
104
|
-
snippet: z.ZodString;
|
|
105
|
-
rect: z.ZodObject<{
|
|
106
|
-
x: z.ZodNumber;
|
|
107
|
-
y: z.ZodNumber;
|
|
108
|
-
width: z.ZodNumber;
|
|
109
|
-
height: z.ZodNumber;
|
|
110
|
-
}, z.core.$strict>;
|
|
111
|
-
}, z.core.$strict>>;
|
|
112
|
-
texts: z.ZodArray<z.ZodObject<{
|
|
113
|
-
n: z.ZodNumber;
|
|
114
|
-
offset: z.ZodNumber;
|
|
115
|
-
text: z.ZodString;
|
|
116
|
-
}, z.core.$strict>>;
|
|
117
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
118
|
-
v: z.ZodLiteral<1>;
|
|
119
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
-
type: z.ZodLiteral<"candidate">;
|
|
121
|
-
revision: z.ZodNumber;
|
|
122
|
-
anchor: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
123
|
-
type: "text";
|
|
124
|
-
quote: string;
|
|
125
|
-
prefix: string;
|
|
126
|
-
suffix: string;
|
|
127
|
-
} | {
|
|
128
|
-
offset: {
|
|
129
|
-
x: number;
|
|
130
|
-
y: number;
|
|
131
|
-
};
|
|
132
|
-
selector: string;
|
|
133
|
-
snippet: string;
|
|
134
|
-
viewport_width: number;
|
|
135
|
-
scroll: {
|
|
136
|
-
x: number;
|
|
137
|
-
y: number;
|
|
138
|
-
};
|
|
139
|
-
type: "point";
|
|
140
|
-
} | {
|
|
141
|
-
offset: {
|
|
142
|
-
x: number;
|
|
143
|
-
y: number;
|
|
144
|
-
width: number;
|
|
145
|
-
height: number;
|
|
146
|
-
};
|
|
147
|
-
selector: string;
|
|
148
|
-
snippet: string;
|
|
149
|
-
viewport_width: number;
|
|
150
|
-
scroll: {
|
|
151
|
-
x: number;
|
|
152
|
-
y: number;
|
|
153
|
-
};
|
|
154
|
-
type: "region";
|
|
155
|
-
}, unknown>>;
|
|
156
|
-
rect: z.ZodOptional<z.ZodObject<{
|
|
157
|
-
x: z.ZodNumber;
|
|
158
|
-
y: z.ZodNumber;
|
|
159
|
-
width: z.ZodNumber;
|
|
160
|
-
height: z.ZodNumber;
|
|
161
|
-
}, z.core.$strict>>;
|
|
162
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
163
|
-
v: z.ZodLiteral<1>;
|
|
164
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
-
type: z.ZodLiteral<"selection">;
|
|
166
|
-
state: z.ZodEnum<{
|
|
167
|
-
none: "none";
|
|
168
|
-
too_long: "too_long";
|
|
169
|
-
}>;
|
|
170
|
-
rect: z.ZodOptional<z.ZodObject<{
|
|
171
|
-
x: z.ZodNumber;
|
|
172
|
-
y: z.ZodNumber;
|
|
173
|
-
width: z.ZodNumber;
|
|
174
|
-
height: z.ZodNumber;
|
|
175
|
-
}, z.core.$strict>>;
|
|
176
|
-
moved: z.ZodOptional<z.ZodLiteral<true>>;
|
|
177
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
178
|
-
v: z.ZodLiteral<1>;
|
|
179
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
-
type: z.ZodLiteral<"key">;
|
|
181
|
-
key: z.ZodEnum<{
|
|
182
|
-
escape: "escape";
|
|
183
|
-
comment: "comment";
|
|
184
|
-
}>;
|
|
185
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
186
|
-
v: z.ZodLiteral<1>;
|
|
187
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
188
|
-
type: z.ZodLiteral<"focus">;
|
|
189
|
-
n: z.ZodNumber;
|
|
190
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
191
|
-
v: z.ZodLiteral<1>;
|
|
192
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
-
type: z.ZodLiteral<"pointer">;
|
|
194
|
-
revision: z.ZodNumber;
|
|
195
|
-
at: z.ZodNullable<z.ZodObject<{
|
|
196
|
-
n: z.ZodNumber;
|
|
197
|
-
x: z.ZodNumber;
|
|
198
|
-
y: z.ZodNumber;
|
|
199
|
-
}, z.core.$strict>>;
|
|
200
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
201
|
-
v: z.ZodLiteral<1>;
|
|
202
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
203
|
-
type: z.ZodLiteral<"capture_start">;
|
|
204
|
-
mime: z.ZodLiteral<"image/png">;
|
|
205
|
-
width: z.ZodNumber;
|
|
206
|
-
height: z.ZodNumber;
|
|
207
|
-
bytes: z.ZodNumber;
|
|
208
|
-
chunks: z.ZodNumber;
|
|
209
|
-
request: z.ZodNumber;
|
|
210
|
-
revision: z.ZodNumber;
|
|
211
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
212
|
-
v: z.ZodLiteral<1>;
|
|
213
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
-
type: z.ZodLiteral<"capture_chunk">;
|
|
215
|
-
index: z.ZodNumber;
|
|
216
|
-
data: z.ZodString;
|
|
217
|
-
request: z.ZodNumber;
|
|
218
|
-
revision: z.ZodNumber;
|
|
219
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
220
|
-
v: z.ZodLiteral<1>;
|
|
221
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
222
|
-
type: z.ZodLiteral<"capture_complete">;
|
|
223
|
-
request: z.ZodNumber;
|
|
224
|
-
revision: z.ZodNumber;
|
|
225
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
226
|
-
v: z.ZodLiteral<1>;
|
|
227
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
228
|
-
type: z.ZodLiteral<"capture_error">;
|
|
229
|
-
reason: z.ZodEnum<{
|
|
230
|
-
stale: "stale";
|
|
231
|
-
unavailable: "unavailable";
|
|
232
|
-
tainted: "tainted";
|
|
233
|
-
too_large: "too_large";
|
|
234
|
-
cancelled: "cancelled";
|
|
235
|
-
timeout: "timeout";
|
|
236
|
-
}>;
|
|
237
|
-
request: z.ZodNumber;
|
|
238
|
-
revision: z.ZodNumber;
|
|
239
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
240
|
-
v: z.ZodLiteral<1>;
|
|
241
|
-
}, z.core.$strict>], "type">;
|
|
242
|
-
export declare const artifactAnnotationHostMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
-
type: z.ZodLiteral<"mode">;
|
|
244
|
-
mode: z.ZodEnum<{
|
|
245
|
-
off: "off";
|
|
246
|
-
text: "text";
|
|
247
|
-
comment: "comment";
|
|
248
|
-
}>;
|
|
249
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
250
|
-
v: z.ZodLiteral<1>;
|
|
251
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
252
|
-
type: z.ZodLiteral<"request_layout">;
|
|
253
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
254
|
-
v: z.ZodLiteral<1>;
|
|
255
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
256
|
-
type: z.ZodLiteral<"track">;
|
|
257
|
-
pointer: z.ZodBoolean;
|
|
258
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
259
|
-
v: z.ZodLiteral<1>;
|
|
260
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
261
|
-
type: z.ZodLiteral<"capture">;
|
|
262
|
-
rect: z.ZodObject<{
|
|
263
|
-
x: z.ZodNumber;
|
|
264
|
-
y: z.ZodNumber;
|
|
265
|
-
width: z.ZodNumber;
|
|
266
|
-
height: z.ZodNumber;
|
|
267
|
-
}, z.core.$strict>;
|
|
268
|
-
request: z.ZodNumber;
|
|
269
|
-
revision: z.ZodNumber;
|
|
270
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
271
|
-
v: z.ZodLiteral<1>;
|
|
272
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
273
|
-
type: z.ZodLiteral<"cancel_capture">;
|
|
274
|
-
request: z.ZodNumber;
|
|
275
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
276
|
-
v: z.ZodLiteral<1>;
|
|
277
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
278
|
-
type: z.ZodLiteral<"draw">;
|
|
279
|
-
revision: z.ZodNumber;
|
|
280
|
-
pins: z.ZodArray<z.ZodObject<{
|
|
281
|
-
n: z.ZodNumber;
|
|
282
|
-
rects: z.ZodArray<z.ZodObject<{
|
|
283
|
-
x: z.ZodNumber;
|
|
284
|
-
y: z.ZodNumber;
|
|
285
|
-
width: z.ZodNumber;
|
|
286
|
-
height: z.ZodNumber;
|
|
287
|
-
}, z.core.$strict>>;
|
|
288
|
-
ranges: z.ZodArray<z.ZodObject<{
|
|
289
|
-
n: z.ZodNumber;
|
|
290
|
-
start: z.ZodNumber;
|
|
291
|
-
end: z.ZodNumber;
|
|
292
|
-
}, z.core.$strict>>;
|
|
293
|
-
label: z.ZodOptional<z.ZodString>;
|
|
294
|
-
}, z.core.$strict>>;
|
|
295
|
-
active: z.ZodNullable<z.ZodNumber>;
|
|
296
|
-
focus: z.ZodBoolean;
|
|
297
|
-
kortix: z.ZodLiteral<"annotate">;
|
|
298
|
-
v: z.ZodLiteral<1>;
|
|
299
|
-
}, z.core.$strict>], "type">;
|
|
300
|
-
export type ArtifactAnnotationCandidate = z.infer<typeof candidateSchema>;
|
|
301
|
-
export type ArtifactAnnotationFrameMessage = z.infer<typeof artifactAnnotationFrameMessageSchema>;
|
|
302
|
-
export type ArtifactAnnotationHostMessage = z.infer<typeof artifactAnnotationHostMessageSchema>;
|
|
303
|
-
export type ArtifactAnnotationLayout = Extract<ArtifactAnnotationFrameMessage, {
|
|
304
|
-
type: "layout";
|
|
305
|
-
}>;
|
|
306
|
-
export type ArtifactAnnotationPin = Extract<ArtifactAnnotationHostMessage, {
|
|
307
|
-
type: "draw";
|
|
308
|
-
}>["pins"][number];
|
|
309
|
-
export declare function parseArtifactAnnotationFrameMessage(value: unknown): ArtifactAnnotationFrameMessage | null;
|
|
310
|
-
export declare function parseArtifactAnnotationHostMessage(value: unknown): ArtifactAnnotationHostMessage | null;
|
|
311
|
-
export {};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** The longest text quote, in UTF-16 code units: a paragraph. A longer selection is refused, never cut. */
|
|
3
|
-
export declare const ARTIFACT_TEXT_QUOTE_MAX = 500;
|
|
4
|
-
/** The longest prefix and suffix, in UTF-16 code units. */
|
|
5
|
-
export declare const ARTIFACT_TEXT_CONTEXT_MAX = 32;
|
|
6
|
-
export declare const artifactCommentAnchorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
-
type: z.ZodLiteral<"text">;
|
|
8
|
-
version: z.ZodString;
|
|
9
|
-
quote: z.ZodString;
|
|
10
|
-
prefix: z.ZodString;
|
|
11
|
-
suffix: z.ZodString;
|
|
12
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
-
offset: z.ZodObject<{
|
|
14
|
-
x: z.ZodNumber;
|
|
15
|
-
y: z.ZodNumber;
|
|
16
|
-
}, z.core.$strict>;
|
|
17
|
-
version: z.ZodString;
|
|
18
|
-
selector: z.ZodString;
|
|
19
|
-
snippet: z.ZodString;
|
|
20
|
-
viewport_width: z.ZodNumber;
|
|
21
|
-
scroll: z.ZodObject<{
|
|
22
|
-
x: z.ZodNumber;
|
|
23
|
-
y: z.ZodNumber;
|
|
24
|
-
}, z.core.$strict>;
|
|
25
|
-
type: z.ZodLiteral<"point">;
|
|
26
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
-
offset: z.ZodObject<{
|
|
28
|
-
x: z.ZodNumber;
|
|
29
|
-
y: z.ZodNumber;
|
|
30
|
-
width: z.ZodNumber;
|
|
31
|
-
height: z.ZodNumber;
|
|
32
|
-
}, z.core.$strict>;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
selector: z.ZodString;
|
|
35
|
-
snippet: z.ZodString;
|
|
36
|
-
viewport_width: z.ZodNumber;
|
|
37
|
-
scroll: z.ZodObject<{
|
|
38
|
-
x: z.ZodNumber;
|
|
39
|
-
y: z.ZodNumber;
|
|
40
|
-
}, z.core.$strict>;
|
|
41
|
-
type: z.ZodLiteral<"region">;
|
|
42
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
43
|
-
type: z.ZodLiteral<"none">;
|
|
44
|
-
version: z.ZodString;
|
|
45
|
-
}, z.core.$strict>], "type">;
|
|
46
|
-
export declare const artifactCommentMarkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
-
points: z.ZodArray<z.ZodObject<{
|
|
48
|
-
x: z.ZodNumber;
|
|
49
|
-
y: z.ZodNumber;
|
|
50
|
-
}, z.core.$strict>>;
|
|
51
|
-
color: z.ZodEnum<{
|
|
52
|
-
red: "red";
|
|
53
|
-
blue: "blue";
|
|
54
|
-
black: "black";
|
|
55
|
-
}>;
|
|
56
|
-
width: z.ZodNumber;
|
|
57
|
-
tool: z.ZodLiteral<"pen">;
|
|
58
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
59
|
-
points: z.ZodArray<z.ZodObject<{
|
|
60
|
-
x: z.ZodNumber;
|
|
61
|
-
y: z.ZodNumber;
|
|
62
|
-
}, z.core.$strict>>;
|
|
63
|
-
color: z.ZodEnum<{
|
|
64
|
-
red: "red";
|
|
65
|
-
blue: "blue";
|
|
66
|
-
black: "black";
|
|
67
|
-
}>;
|
|
68
|
-
width: z.ZodNumber;
|
|
69
|
-
tool: z.ZodLiteral<"arrow">;
|
|
70
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
-
points: z.ZodArray<z.ZodObject<{
|
|
72
|
-
x: z.ZodNumber;
|
|
73
|
-
y: z.ZodNumber;
|
|
74
|
-
}, z.core.$strict>>;
|
|
75
|
-
color: z.ZodEnum<{
|
|
76
|
-
red: "red";
|
|
77
|
-
blue: "blue";
|
|
78
|
-
black: "black";
|
|
79
|
-
}>;
|
|
80
|
-
width: z.ZodNumber;
|
|
81
|
-
tool: z.ZodLiteral<"rectangle">;
|
|
82
|
-
}, z.core.$strict>], "tool">;
|
|
83
|
-
export declare const artifactCommentMarksSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
-
points: z.ZodArray<z.ZodObject<{
|
|
85
|
-
x: z.ZodNumber;
|
|
86
|
-
y: z.ZodNumber;
|
|
87
|
-
}, z.core.$strict>>;
|
|
88
|
-
color: z.ZodEnum<{
|
|
89
|
-
red: "red";
|
|
90
|
-
blue: "blue";
|
|
91
|
-
black: "black";
|
|
92
|
-
}>;
|
|
93
|
-
width: z.ZodNumber;
|
|
94
|
-
tool: z.ZodLiteral<"pen">;
|
|
95
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
96
|
-
points: z.ZodArray<z.ZodObject<{
|
|
97
|
-
x: z.ZodNumber;
|
|
98
|
-
y: z.ZodNumber;
|
|
99
|
-
}, z.core.$strict>>;
|
|
100
|
-
color: z.ZodEnum<{
|
|
101
|
-
red: "red";
|
|
102
|
-
blue: "blue";
|
|
103
|
-
black: "black";
|
|
104
|
-
}>;
|
|
105
|
-
width: z.ZodNumber;
|
|
106
|
-
tool: z.ZodLiteral<"arrow">;
|
|
107
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
-
points: z.ZodArray<z.ZodObject<{
|
|
109
|
-
x: z.ZodNumber;
|
|
110
|
-
y: z.ZodNumber;
|
|
111
|
-
}, z.core.$strict>>;
|
|
112
|
-
color: z.ZodEnum<{
|
|
113
|
-
red: "red";
|
|
114
|
-
blue: "blue";
|
|
115
|
-
black: "black";
|
|
116
|
-
}>;
|
|
117
|
-
width: z.ZodNumber;
|
|
118
|
-
tool: z.ZodLiteral<"rectangle">;
|
|
119
|
-
}, z.core.$strict>], "tool">>;
|
|
120
|
-
export type ArtifactCommentMark = z.infer<typeof artifactCommentMarkSchema>;
|
|
121
|
-
export type ArtifactCommentAnchor = z.infer<typeof artifactCommentAnchorSchema>;
|
|
122
|
-
export type ArtifactTextAnchor = Extract<ArtifactCommentAnchor, {
|
|
123
|
-
type: 'text';
|
|
124
|
-
}>;
|
|
125
|
-
export type ArtifactTextPosition = {
|
|
126
|
-
start: number | null;
|
|
127
|
-
end: number | null;
|
|
128
|
-
outdated: boolean;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* The re-anchoring work one read may spend across all its threads (about 100 ms):
|
|
132
|
-
* fuzzy-scanned code units plus alignment cells, and an eighth of a code unit
|
|
133
|
-
* per natively exact-scanned one. A list re-anchors every stored thread, and a
|
|
134
|
-
* commenter can store many unmatched quotes, so the cost of one read must not
|
|
135
|
-
* grow with the thread count. A thread past the budget is outdated for that read.
|
|
136
|
-
*/
|
|
137
|
-
export declare const ARTIFACT_REANCHOR_READ_UNITS: number;
|
|
138
|
-
export interface ArtifactReanchorBudget {
|
|
139
|
-
remaining: number;
|
|
140
|
-
}
|
|
141
|
-
/** One budget per read: pass the same object to every reanchorArtifactText call of that read. */
|
|
142
|
-
export declare function createArtifactReanchorBudget(): ArtifactReanchorBudget;
|
|
143
|
-
/**
|
|
144
|
-
* The read budget split into equal shares, one per thread author (a person or an
|
|
145
|
-
* agent session). A commenter whose quotes match nothing spends only their own
|
|
146
|
-
* share, so other people's threads still re-anchor; the read's total stays at
|
|
147
|
-
* ARTIFACT_REANCHOR_READ_UNITS. Name every author of the read up front.
|
|
148
|
-
*/
|
|
149
|
-
export declare function createArtifactReanchorBudgets(authors: Iterable<string>): (author: string) => ArtifactReanchorBudget;
|
|
150
|
-
/**
|
|
151
|
-
* Where a text anchor sits in `text` now. Every scan spends `budget`; a caller
|
|
152
|
-
* that re-anchors many threads in one read passes one shared budget
|
|
153
|
-
* (createArtifactReanchorBudget), so the read's cost is bounded.
|
|
154
|
-
*/
|
|
155
|
-
export declare function reanchorArtifactText(text: string, anchor: ArtifactTextAnchor, budget?: ArtifactReanchorBudget): ArtifactTextPosition;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pins an agent to the sidebar's Customize, or unpins it: on the agent's
|
|
3
|
-
* page header, and on its card in All agents. `onCard` shows it on the card's
|
|
4
|
-
* hover only, and always once pinned so the state is visible.
|
|
5
|
-
*/
|
|
6
|
-
export declare function AgentPinButton({ projectId, agent, onCard, }: {
|
|
7
|
-
projectId: string;
|
|
8
|
-
agent: string;
|
|
9
|
-
onCard?: boolean;
|
|
10
|
-
}): import("react").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { PushPinIcon, PushPinSlashIcon } from '@phosphor-icons/react';
|
|
4
|
-
import { useTranslations } from '../../i18n/index.js';
|
|
5
|
-
import { usePinnedAgents, usePinnedAgentsStore } from '../../internal/stores/pinned-agents-store.js';
|
|
6
|
-
import { cn } from '../../internal/lib/utils.js';
|
|
7
|
-
import { Button } from '../../primitives/button.js';
|
|
8
|
-
import Hint from '../../primitives/hint.js';
|
|
9
|
-
/**
|
|
10
|
-
* Pins an agent to the sidebar's Customize, or unpins it: on the agent's
|
|
11
|
-
* page header, and on its card in All agents. `onCard` shows it on the card's
|
|
12
|
-
* hover only, and always once pinned so the state is visible.
|
|
13
|
-
*/
|
|
14
|
-
export function AgentPinButton({ projectId, agent, onCard = false, }) {
|
|
15
|
-
const t = useTranslations('agentEditor.tabs');
|
|
16
|
-
const pinned = usePinnedAgents(projectId).includes(agent);
|
|
17
|
-
const togglePinned = usePinnedAgentsStore((state) => state.togglePinned);
|
|
18
|
-
const label = pinned ? t('unpinFromSidebar') : t('pinToSidebar');
|
|
19
|
-
return (_jsx(Hint, { side: "top", label: label, children: _jsx(Button, { type: "button", variant: "secondary", size: onCard ? 'icon-xs' : 'icon-base', "aria-label": label, "aria-pressed": pinned, className: cn('transition-opacity focus-visible:opacity-100', onCard && !pinned && 'md:opacity-0 md:group-hover/card:opacity-100'), onClick: () => togglePinned(projectId, agent), children: pinned ? _jsx(PushPinSlashIcon, { className: "size-4" }) : _jsx(PushPinIcon, { className: "size-4" }) }) }));
|
|
20
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
/**
|
|
4
|
-
* Transfer-workspace entry point — the settings row and its dialog.
|
|
5
|
-
*
|
|
6
|
-
* The API (POST /v1/projects/:id/transfer) refuses a caller who holds the
|
|
7
|
-
* destructive tier on the project but no rights on the TARGET organization,
|
|
8
|
-
* and answers with the target's project cap when the move would exceed its
|
|
9
|
-
* plan — so this dialog only has to pick a target and say plainly what
|
|
10
|
-
* moves: sessions, files, settings and member grants follow the project;
|
|
11
|
-
* the usage ledger stays with the organization that consumed it.
|
|
12
|
-
*
|
|
13
|
-
* The project may land in an organization the mover cannot see afterwards
|
|
14
|
-
* (they are not a member there) — the same outcome the Delete flow produces,
|
|
15
|
-
* so success leaves the project the same way: forget the remembered landing
|
|
16
|
-
* target, close the settings overlay, replace into the landing door.
|
|
17
|
-
*/
|
|
18
|
-
import { useMemo, useState } from 'react';
|
|
19
|
-
import { Button } from '../../../primitives/button.js';
|
|
20
|
-
import { ConfirmDialog } from '../../../primitives/confirm-dialog.js';
|
|
21
|
-
import { SettingsRow } from '../../../primitives/settings-row.js';
|
|
22
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../../primitives/select.js';
|
|
23
|
-
import { errorToast, successToast } from '../../../primitives/toast.js';
|
|
24
|
-
import { useSettingsPanelStore } from '../../../internal/stores/settings-panel-store.js';
|
|
25
|
-
import { useUiRouter, useUiViewerId } from '../../../providers/ui-provider.js';
|
|
26
|
-
import { useAccountsList } from '../../../internal/hooks/account/use-accounts-list.js';
|
|
27
|
-
import { PROJECT_LANDING_PATH } from '../../../internal/lib/onboarding/landing-destination.js';
|
|
28
|
-
import { forgetLastProjectId } from '../../../internal/lib/onboarding/last-project-cookie.js';
|
|
29
|
-
import { transferProject } from '@kortix/sdk';
|
|
30
|
-
import { qk } from '@kortix/sdk/react';
|
|
31
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
32
|
-
import { useTranslations } from '../../../i18n/index.js';
|
|
33
|
-
export function TransferWorkspaceEntry({ projectId, currentAccountId, }) {
|
|
34
|
-
const t = useTranslations('settings.workspace');
|
|
35
|
-
const [open, setOpen] = useState(false);
|
|
36
|
-
return (_jsxs(_Fragment, { children: [_jsx(SettingsRow, { label: t('transferWorkspace'), description: t('transferDescription'), children: _jsx(Button, { variant: "ghost", size: "sm", className: "text-destructive hover:bg-destructive/10 hover:text-destructive", onClick: () => setOpen(true), children: t('transferWorkspace') }) }), _jsx(TransferWorkspaceDialog, { projectId: projectId, currentAccountId: currentAccountId, open: open, onOpenChange: setOpen })] }));
|
|
37
|
-
}
|
|
38
|
-
function TransferWorkspaceDialog({ projectId, currentAccountId, open, onOpenChange, }) {
|
|
39
|
-
const t = useTranslations('settings.workspace');
|
|
40
|
-
const queryClient = useQueryClient();
|
|
41
|
-
const router = useUiRouter();
|
|
42
|
-
const viewerId = useUiViewerId();
|
|
43
|
-
const [targetId, setTargetId] = useState('');
|
|
44
|
-
// Same freshness contract as every other account-list reader: fetch only
|
|
45
|
-
// while the dialog is open.
|
|
46
|
-
const accountsQuery = useAccountsList({ enabled: open });
|
|
47
|
-
// The target cannot be the account the project already lives in — the API
|
|
48
|
-
// refuses that anyway — and a stale `currentAccountId` (project query still
|
|
49
|
-
// in flight) is harmless: the API re-checks.
|
|
50
|
-
const targetOptions = useMemo(() => (accountsQuery.data ?? []).filter((account) => account.account_id !== currentAccountId), [accountsQuery.data, currentAccountId]);
|
|
51
|
-
const transferMutation = useMutation({
|
|
52
|
-
mutationFn: () => transferProject(projectId, targetId),
|
|
53
|
-
onSuccess: () => {
|
|
54
|
-
successToast(t('transferSuccess'));
|
|
55
|
-
// Same leave-the-project flow as Delete: the moved project must stop
|
|
56
|
-
// being the remembered landing target, the global overlay must close
|
|
57
|
-
// before the navigation lands, and Back must not return to a project
|
|
58
|
-
// the viewer may no longer see.
|
|
59
|
-
forgetLastProjectId(viewerId, projectId);
|
|
60
|
-
useSettingsPanelStore.getState().close();
|
|
61
|
-
// qk.projects.scope(): lists across every account plus the accountless
|
|
62
|
-
// slot — the project just changed accounts, so every list form is
|
|
63
|
-
// stale at once. The moved project's own caches are unreachable after
|
|
64
|
-
// the replace below (the old id's entries gcTime out).
|
|
65
|
-
queryClient.invalidateQueries({ queryKey: qk.projects.scope() });
|
|
66
|
-
onOpenChange(false);
|
|
67
|
-
router.replace(PROJECT_LANDING_PATH);
|
|
68
|
-
},
|
|
69
|
-
onError: (error) => errorToast(error.message || t('transferFailed')),
|
|
70
|
-
});
|
|
71
|
-
const targetName = targetOptions.find((account) => account.account_id === targetId)?.name;
|
|
72
|
-
const changeOpen = (next) => {
|
|
73
|
-
if (transferMutation.isPending)
|
|
74
|
-
return;
|
|
75
|
-
if (!next) {
|
|
76
|
-
setTargetId('');
|
|
77
|
-
transferMutation.reset();
|
|
78
|
-
}
|
|
79
|
-
onOpenChange(next);
|
|
80
|
-
};
|
|
81
|
-
return (_jsx(ConfirmDialog, { open: open, onOpenChange: changeOpen, title: t('transferTitle'), description: _jsxs("div", { className: "space-y-4", children: [_jsx("p", { children: t('transferDialog') }), accountsQuery.isLoading ? (_jsx("p", { children: t('transferLoadingTargets') })) : accountsQuery.isError ? (_jsx(Button, { variant: "outline", onClick: () => accountsQuery.refetch(), children: t('retry') })) : targetOptions.length === 0 ? (_jsx("p", { children: t('transferNoTargets') })) : (_jsxs(Select, { value: targetId, onValueChange: setTargetId, children: [_jsx(SelectTrigger, { className: "w-full", "aria-label": t('transferTargetLabel'), children: _jsx(SelectValue, { placeholder: t('transferTargetPlaceholder') }) }), _jsx(SelectContent, { children: targetOptions.map((account) => (_jsx(SelectItem, { value: account.account_id, children: account.name }, account.account_id))) })] }))] }), cancelLabel: t('keepWorkspace'), confirmLabel: targetName ? t('transferMoveTo', { name: targetName }) : t('transferMove'), confirmVariant: "destructive", confirmDisabled: !targetName || accountsQuery.isError, isPending: transferMutation.isPending, onConfirm: () => transferMutation.mutate() }));
|
|
82
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
/** `--container-sidebar` in the design: 300px, not the project sidebar's 320. */
|
|
4
|
-
export declare const SETTINGS_SIDEBAR_WIDTH_PX = 300;
|
|
5
|
-
export declare function AccountSettingsShell({ children }: {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}): import("react").JSX.Element;
|