@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
|
@@ -34,6 +34,110 @@ function k(n, t) {
|
|
|
34
34
|
}
|
|
35
35
|
h.minitz = h;
|
|
36
36
|
|
|
37
|
+
// ../shared/src/workspace-actions.ts
|
|
38
|
+
var WORKSPACE_ACTION_BY_LEGACY = {
|
|
39
|
+
// ── account-scoped (31) ────────────────────────────────────────────────
|
|
40
|
+
"account.read": "workspace.account.read",
|
|
41
|
+
"account.write": "workspace.account.write",
|
|
42
|
+
"account.delete": "workspace.account.delete",
|
|
43
|
+
"billing.read": "workspace.billing.read",
|
|
44
|
+
"billing.write": "workspace.billing.write",
|
|
45
|
+
"audit.read": "workspace.audit.read",
|
|
46
|
+
"member.read": "workspace.member.read",
|
|
47
|
+
"member.invite": "workspace.member.invite",
|
|
48
|
+
"member.update": "workspace.member.update",
|
|
49
|
+
"member.remove": "workspace.member.remove",
|
|
50
|
+
"member.super_admin.grant": "workspace.member.super_admin.grant",
|
|
51
|
+
"group.read": "workspace.group.read",
|
|
52
|
+
"group.create": "workspace.group.create",
|
|
53
|
+
"group.update": "workspace.group.update",
|
|
54
|
+
"group.delete": "workspace.group.delete",
|
|
55
|
+
"group.members.manage": "workspace.group.members.manage",
|
|
56
|
+
"policy.read": "workspace.policy.read",
|
|
57
|
+
"policy.create": "workspace.policy.create",
|
|
58
|
+
"policy.delete": "workspace.policy.delete",
|
|
59
|
+
"role.read": "workspace.role.read",
|
|
60
|
+
"role.create": "workspace.role.create",
|
|
61
|
+
"role.update": "workspace.role.update",
|
|
62
|
+
"role.delete": "workspace.role.delete",
|
|
63
|
+
"token.read": "workspace.token.read",
|
|
64
|
+
"token.create": "workspace.token.create",
|
|
65
|
+
"token.revoke": "workspace.token.revoke",
|
|
66
|
+
"token.personal.create": "workspace.token.personal.create",
|
|
67
|
+
"token.personal.revoke": "workspace.token.personal.revoke",
|
|
68
|
+
"project.create": "workspace.create",
|
|
69
|
+
"capture.read_all": "workspace.capture.read_all",
|
|
70
|
+
"capture.manage": "workspace.capture.manage",
|
|
71
|
+
// ── project-scoped (54) ────────────────────────────────────────────────
|
|
72
|
+
"project.read": "workspace.read",
|
|
73
|
+
"project.write": "workspace.write",
|
|
74
|
+
"project.delete": "workspace.delete",
|
|
75
|
+
"project.session.read": "workspace.session.read",
|
|
76
|
+
"project.session.start": "workspace.session.start",
|
|
77
|
+
"project.session.stop": "workspace.session.stop",
|
|
78
|
+
"project.session.bindings.write": "workspace.session.bindings.write",
|
|
79
|
+
"project.members.read": "workspace.members.read",
|
|
80
|
+
"project.members.manage": "workspace.members.manage",
|
|
81
|
+
"project.trigger.read": "workspace.trigger.read",
|
|
82
|
+
"project.trigger.create": "workspace.trigger.create",
|
|
83
|
+
"project.trigger.update": "workspace.trigger.update",
|
|
84
|
+
"project.trigger.delete": "workspace.trigger.delete",
|
|
85
|
+
"project.trigger.fire": "workspace.trigger.fire",
|
|
86
|
+
"project.gateway.logs.read": "workspace.gateway.logs.read",
|
|
87
|
+
"project.gateway.spend.read": "workspace.gateway.spend.read",
|
|
88
|
+
"project.usage.read": "workspace.usage.read",
|
|
89
|
+
"project.gateway.budget.set": "workspace.gateway.budget.set",
|
|
90
|
+
"project.gateway.keys.manage": "workspace.gateway.keys.manage",
|
|
91
|
+
"project.agent.read": "workspace.agent.read",
|
|
92
|
+
"project.agent.write": "workspace.agent.write",
|
|
93
|
+
"project.skill.read": "workspace.skill.read",
|
|
94
|
+
"project.skill.write": "workspace.skill.write",
|
|
95
|
+
"project.command.read": "workspace.command.read",
|
|
96
|
+
"project.command.write": "workspace.command.write",
|
|
97
|
+
"project.file.read": "workspace.file.read",
|
|
98
|
+
"project.file.write": "workspace.file.write",
|
|
99
|
+
"project.settings.write": "workspace.settings.write",
|
|
100
|
+
"project.sandbox.write": "workspace.sandbox.write",
|
|
101
|
+
"project.model.read": "workspace.model.read",
|
|
102
|
+
"project.model.write": "workspace.model.write",
|
|
103
|
+
"project.gitops.read": "workspace.gitops.read",
|
|
104
|
+
"project.gitops.push": "workspace.gitops.push",
|
|
105
|
+
"project.gitops.merge": "workspace.gitops.merge",
|
|
106
|
+
"project.gitops.ref.any": "workspace.gitops.ref.any",
|
|
107
|
+
"project.gitops.ref.delete": "workspace.gitops.ref.delete",
|
|
108
|
+
"project.secret.read": "workspace.secret.read",
|
|
109
|
+
"project.secret.write": "workspace.secret.write",
|
|
110
|
+
"project.connector.read": "workspace.connector.read",
|
|
111
|
+
"project.connector.connections.manage": "workspace.connector.connections.manage",
|
|
112
|
+
"project.connector.write": "workspace.connector.write",
|
|
113
|
+
"project.app.read": "workspace.app.read",
|
|
114
|
+
"project.app.write": "workspace.app.write",
|
|
115
|
+
"project.app.deploy": "workspace.app.deploy",
|
|
116
|
+
"project.app.admin": "workspace.app.admin",
|
|
117
|
+
"project.review.read": "workspace.review.read",
|
|
118
|
+
"project.review.submit": "workspace.review.submit",
|
|
119
|
+
"project.review.act": "workspace.review.act",
|
|
120
|
+
"project.artifact.read": "workspace.artifact.read",
|
|
121
|
+
"project.artifact.write": "workspace.artifact.write",
|
|
122
|
+
"project.artifact.manage": "workspace.artifact.manage",
|
|
123
|
+
"project.artifact.public": "workspace.artifact.public",
|
|
124
|
+
"project.credentials.issue": "workspace.credentials.issue"
|
|
125
|
+
};
|
|
126
|
+
Object.freeze(
|
|
127
|
+
Object.fromEntries(
|
|
128
|
+
Object.entries(WORKSPACE_ACTION_BY_LEGACY).map(([legacy, workspace]) => [workspace, legacy])
|
|
129
|
+
)
|
|
130
|
+
);
|
|
131
|
+
var HUMAN_ONLY = /* @__PURE__ */ new Set([
|
|
132
|
+
"token.create",
|
|
133
|
+
"token.personal.create",
|
|
134
|
+
"project.credentials.issue",
|
|
135
|
+
"project.gateway.keys.manage",
|
|
136
|
+
"billing.write",
|
|
137
|
+
"account.delete",
|
|
138
|
+
"project.delete"
|
|
139
|
+
]);
|
|
140
|
+
|
|
37
141
|
// ../shared/src/channel-descriptors.ts
|
|
38
142
|
var CHANNEL_PLATFORM_IDS = ["slack", "teams", "email", "telegram", "discord"];
|
|
39
143
|
var CHANNELS = {
|
|
@@ -57,7 +161,7 @@ var CHANNELS = {
|
|
|
57
161
|
email: {
|
|
58
162
|
label: "Email",
|
|
59
163
|
envelope: "Email",
|
|
60
|
-
catalog: { domain: "email.kortix", description: "Give the
|
|
164
|
+
catalog: { domain: "email.kortix", description: "Give the workspace an inbox: people email the agent and it replies." }
|
|
61
165
|
},
|
|
62
166
|
telegram: {
|
|
63
167
|
label: "Telegram",
|
|
@@ -102,6 +206,11 @@ var EVERY_GRANT_KEYS = ["tools", "skills", "subagents", "commands", "extensions"
|
|
|
102
206
|
var CHANNEL_PLATFORMS = CHANNEL_PLATFORM_IDS;
|
|
103
207
|
({
|
|
104
208
|
...Object.fromEntries(CHANNEL_PLATFORMS.map((platform) => [channelConnectorSlug(platform), "channel"]))});
|
|
209
|
+
var LEGACY_ACTIONS = Object.keys(WORKSPACE_ACTION_BY_LEGACY);
|
|
210
|
+
[
|
|
211
|
+
...LEGACY_ACTIONS.filter((a) => a.startsWith("project.") && a !== "project.create"),
|
|
212
|
+
...LEGACY_ACTIONS.filter((a) => !a.startsWith("project.") || a === "project.create")
|
|
213
|
+
].filter((a) => !HUMAN_ONLY.has(a));
|
|
105
214
|
var DEPRECATED_KORTIX_PERMISSION_ALIASES = {
|
|
106
215
|
"project.cr.open": ["project.gitops.push"],
|
|
107
216
|
"project.cr.merge": ["project.gitops.merge"],
|
|
@@ -5554,4 +5663,50 @@ function parseTriggerLines(output) {
|
|
|
5554
5663
|
});
|
|
5555
5664
|
}
|
|
5556
5665
|
|
|
5557
|
-
|
|
5666
|
+
// ../shared/src/workspace-settings.ts
|
|
5667
|
+
var WORKSPACE_SETTINGS_GROUPS = [
|
|
5668
|
+
{ id: "workspace", sections: ["general", "security", "branding", "api-keys", "capture"] },
|
|
5669
|
+
// The workspace's agents, then what they work with. Agents lives here since
|
|
5670
|
+
// 2026-11-08: Customize is this panel, one place to configure. Git
|
|
5671
|
+
// configures the repository connection; Repository browses its files
|
|
5672
|
+
// (with Drive on).
|
|
5673
|
+
{ id: "library", sections: ["agents", "models", "connectors", "secrets", "skills", "drives", "apps", "triggers", "sandbox", "git", "repo"] },
|
|
5674
|
+
{ id: "people", sections: ["members", "groups", "roles", "identity", "audit"] },
|
|
5675
|
+
{ id: "billing", sections: ["plan", "usage"] },
|
|
5676
|
+
{ id: "advanced", sections: ["feature-flags"] },
|
|
5677
|
+
{ id: "danger", sections: ["danger-zone"] },
|
|
5678
|
+
// The rail draws Help in its footer, under the groups.
|
|
5679
|
+
{ id: "support", sections: ["help"] }
|
|
5680
|
+
];
|
|
5681
|
+
var WORKSPACE_SETTINGS_SECTIONS = WORKSPACE_SETTINGS_GROUPS.flatMap(
|
|
5682
|
+
(group) => group.sections
|
|
5683
|
+
);
|
|
5684
|
+
var WORKSPACE_SETTINGS_SECTION_ALIASES = {
|
|
5685
|
+
access: "members",
|
|
5686
|
+
"access-projects": "members",
|
|
5687
|
+
settings: "security",
|
|
5688
|
+
tokens: "api-keys",
|
|
5689
|
+
billing: "plan",
|
|
5690
|
+
credits: "plan",
|
|
5691
|
+
transactions: "usage",
|
|
5692
|
+
connected: "git",
|
|
5693
|
+
loops: "triggers",
|
|
5694
|
+
flags: "feature-flags",
|
|
5695
|
+
experimental: "feature-flags",
|
|
5696
|
+
snapshots: "sandbox",
|
|
5697
|
+
repository: "repo",
|
|
5698
|
+
agent: "agents",
|
|
5699
|
+
danger: "danger-zone"
|
|
5700
|
+
};
|
|
5701
|
+
var SECTION_SET = new Set(WORKSPACE_SETTINGS_SECTIONS);
|
|
5702
|
+
function isWorkspaceSettingsSection(value) {
|
|
5703
|
+
return typeof value === "string" && SECTION_SET.has(value);
|
|
5704
|
+
}
|
|
5705
|
+
function parseWorkspaceSettingsSection(raw) {
|
|
5706
|
+
const value = raw?.trim().toLowerCase();
|
|
5707
|
+
if (!value) return null;
|
|
5708
|
+
if (isWorkspaceSettingsSection(value)) return value;
|
|
5709
|
+
return Object.prototype.hasOwnProperty.call(WORKSPACE_SETTINGS_SECTION_ALIASES, value) ? WORKSPACE_SETTINGS_SECTION_ALIASES[value] : null;
|
|
5710
|
+
}
|
|
5711
|
+
|
|
5712
|
+
export { ARTIFACT_DOC_CSS, AVATAR_INK, CARD_TEXT_RATIO, CHANNELS, CHANNEL_PLATFORM_IDS, COMMIT_CONFIRM_ATTEMPTS, COMMIT_CONFIRM_DELAY_MS, CREDITS_PER_DOLLAR, CURATED_SECTIONS, HUMAN_ONLY, KATEX_FENCE_LANGUAGES, LANGUAGE_ALIASES, MAX_PROMPT_ATTACHMENTS_BYTES, MAX_PROMPT_ATTACHMENT_BYTES, MAX_PROMPT_ATTACHMENT_FILES, MAX_PROMPT_UPLOAD_FILENAME_BYTES, MY_KORTIX_AGENT_NAME, MY_KORTIX_DISPLAY_NAME, MY_KORTIX_SANDBOX_SLUG, OTHER, PASTED_INLINE_MAX_BYTES, PIXEL_KORTIX_ROWS, POLICY_SETS_UNSUPPORTED_PROVIDERS, POPULAR_SECTION, PREVIEW_BUILDING_STATES, PREVIEW_STATE_MESSAGE, PROJECT_GLYPH_COLORS, PROJECT_GLYPH_GROUPS, SPACE_POST_SUMMARY, UNKNOWN_RATIO, UPLOAD_LIMITS, WORKSPACE_SETTINGS_GROUPS, appAdminsOnly, autoLinkUrls, avatarFill, buildWebhookSampleRequest, capitalizeWords, cardImageShape, cardListLayout, chalkColors, channelPromptTail, confirmCommitted, countInSection, dollarsToCredits, editConfigPrompt, errorCode, escapeCurrencyDollars, expandPastedContent, extractReadableHtml, fileTagBlocks, fixManifestText, fnv1a, formatFileSize, formatRelative, formatUsdAsCredits, gridApps, groupIntoSections, hasReferenceDefinitionOutsideFences, humanizeCategory, indexOfIgnoreCase, isAllowedWebPushHost, isAmbiguousCreateFailure, isChannelFileLabel, isChannelPlatform, isMermaidCode, isMyKortixAgentName, isProjectGlyphColor, isProjectGlyphName, isProjectGlyphPaletteColor, languageLabel, looksLikeMarkdown, masonryColumns, neutralizePastedTags, newConfigPrompt, newPastedContentId, normalizeLanguage, normalizeLatexDelimiters, normalizeProjectGlyphColor, openMarkdownLinkAtEnd, parseBackgroundWorkers, parseBalanceUsd, parseChannelMessage, parseGrepOutput, parseManifestText, parseMemoryEntryOutput, parseMemorySearchOutput, parsePeerMessagePrompt, parseReminderPrompt, parseSessionGetOutput, parseSessionMessagesOutput, parseSessionMetadataOutput, parseSessionSearchHits, parseTriggerEvent, parseTriggerLines, parseWorkspaceSettingsSection, passesPixelMarkGate, peerHandleLabel, pixelMarkShape, policySetNameError, prefersPreviewLink, prepareMarkdownForKatex, prepareMarkdownForMath, promptFileReferenceXml, ptyOutputBlock, ptySpawnedBody, pushTypeOf, referenceHeaders, removeSpans, replaceSpans, resolveRegisteredKey, safeHttpUrl, sandboxMediaPath, sanitizePromptUploadFilename, sectionKeyForCategory, sectionKeysForEntry, sectionTitle, selfClosingTags, serializePromptWithPastes, shouldTilePaste, skillDocumentBody, slackPlainText, slugifySlug, spaceDriveFolders, spaceSlug, splitPastedContent, stripBashMetadata, stripChatMentionMarkup, stripMarkupForToolOutput, tagBlocks, toolRegistryCandidates, trimPastedText, truncateString, utf8Bytes, withoutEdgeQuotes, xmlBlocks };
|
|
@@ -68,7 +68,7 @@ export declare const CHANNELS: {
|
|
|
68
68
|
readonly envelope: "Email";
|
|
69
69
|
readonly catalog: {
|
|
70
70
|
readonly domain: "email.kortix";
|
|
71
|
-
readonly description: "Give the
|
|
71
|
+
readonly description: "Give the workspace an inbox: people email the agent and it replies.";
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
readonly telegram: {
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE alias map between the legacy IAM action names and the workspace names.
|
|
3
|
+
*
|
|
4
|
+
* Workspaces (PR #11857, design.md §5): a workspace is one account plus its one
|
|
5
|
+
* project, so IAM has one scope. Every `account.*`, `project.*` and
|
|
6
|
+
* account-admin action (`billing.*`, `member.*`, `role.*`, …) has exactly ONE
|
|
7
|
+
* `workspace.*` name. The rename is 1:1: no two legacy names share a workspace
|
|
8
|
+
* name, so a verdict for one name is the verdict for the other by construction.
|
|
9
|
+
*
|
|
10
|
+
* Storage keeps the legacy strings permanently (`kortix.permissions`,
|
|
11
|
+
* `kortix.role_permissions`, kortix.yaml grants written before the rename):
|
|
12
|
+
* old API pods still check them during a rollout, and every published SDK and
|
|
13
|
+
* CLI still sends them. So:
|
|
14
|
+
* - every input surface ACCEPTS both names, forever (`toLegacyAction` before
|
|
15
|
+
* the engine compares);
|
|
16
|
+
* - every output surface EMITS the workspace name next to the legacy one
|
|
17
|
+
* (`toWorkspaceAction`), never instead of it.
|
|
18
|
+
*
|
|
19
|
+
* One table, imported by apps/api (`iam/actions.ts`), packages/manifest-schema
|
|
20
|
+
* (`constants.ts`) and held equal by a test in the published `@kortix/sdk`
|
|
21
|
+
* (`iam-actions.ts`), which cannot import this private package.
|
|
22
|
+
*
|
|
23
|
+
* The naming rule, so a reader can derive any row:
|
|
24
|
+
* project.create -> workspace.create
|
|
25
|
+
* project.<leaf> -> workspace.<leaf>
|
|
26
|
+
* account.<verb> -> workspace.account.<verb>
|
|
27
|
+
* <admin>.<rest> -> workspace.<admin>.<rest>
|
|
28
|
+
* (admin = billing audit member group policy role token capture)
|
|
29
|
+
* `account.write` keeps its own name (`workspace.account.write`) because
|
|
30
|
+
* `project.settings.write` already owns `workspace.settings.write`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const WORKSPACE_ACTION_BY_LEGACY: {
|
|
33
|
+
readonly 'account.read': "workspace.account.read";
|
|
34
|
+
readonly 'account.write': "workspace.account.write";
|
|
35
|
+
readonly 'account.delete': "workspace.account.delete";
|
|
36
|
+
readonly 'billing.read': "workspace.billing.read";
|
|
37
|
+
readonly 'billing.write': "workspace.billing.write";
|
|
38
|
+
readonly 'audit.read': "workspace.audit.read";
|
|
39
|
+
readonly 'member.read': "workspace.member.read";
|
|
40
|
+
readonly 'member.invite': "workspace.member.invite";
|
|
41
|
+
readonly 'member.update': "workspace.member.update";
|
|
42
|
+
readonly 'member.remove': "workspace.member.remove";
|
|
43
|
+
readonly 'member.super_admin.grant': "workspace.member.super_admin.grant";
|
|
44
|
+
readonly 'group.read': "workspace.group.read";
|
|
45
|
+
readonly 'group.create': "workspace.group.create";
|
|
46
|
+
readonly 'group.update': "workspace.group.update";
|
|
47
|
+
readonly 'group.delete': "workspace.group.delete";
|
|
48
|
+
readonly 'group.members.manage': "workspace.group.members.manage";
|
|
49
|
+
readonly 'policy.read': "workspace.policy.read";
|
|
50
|
+
readonly 'policy.create': "workspace.policy.create";
|
|
51
|
+
readonly 'policy.delete': "workspace.policy.delete";
|
|
52
|
+
readonly 'role.read': "workspace.role.read";
|
|
53
|
+
readonly 'role.create': "workspace.role.create";
|
|
54
|
+
readonly 'role.update': "workspace.role.update";
|
|
55
|
+
readonly 'role.delete': "workspace.role.delete";
|
|
56
|
+
readonly 'token.read': "workspace.token.read";
|
|
57
|
+
readonly 'token.create': "workspace.token.create";
|
|
58
|
+
readonly 'token.revoke': "workspace.token.revoke";
|
|
59
|
+
readonly 'token.personal.create': "workspace.token.personal.create";
|
|
60
|
+
readonly 'token.personal.revoke': "workspace.token.personal.revoke";
|
|
61
|
+
readonly 'project.create': "workspace.create";
|
|
62
|
+
readonly 'capture.read_all': "workspace.capture.read_all";
|
|
63
|
+
readonly 'capture.manage': "workspace.capture.manage";
|
|
64
|
+
readonly 'project.read': "workspace.read";
|
|
65
|
+
readonly 'project.write': "workspace.write";
|
|
66
|
+
readonly 'project.delete': "workspace.delete";
|
|
67
|
+
readonly 'project.session.read': "workspace.session.read";
|
|
68
|
+
readonly 'project.session.start': "workspace.session.start";
|
|
69
|
+
readonly 'project.session.stop': "workspace.session.stop";
|
|
70
|
+
readonly 'project.session.bindings.write': "workspace.session.bindings.write";
|
|
71
|
+
readonly 'project.members.read': "workspace.members.read";
|
|
72
|
+
readonly 'project.members.manage': "workspace.members.manage";
|
|
73
|
+
readonly 'project.trigger.read': "workspace.trigger.read";
|
|
74
|
+
readonly 'project.trigger.create': "workspace.trigger.create";
|
|
75
|
+
readonly 'project.trigger.update': "workspace.trigger.update";
|
|
76
|
+
readonly 'project.trigger.delete': "workspace.trigger.delete";
|
|
77
|
+
readonly 'project.trigger.fire': "workspace.trigger.fire";
|
|
78
|
+
readonly 'project.gateway.logs.read': "workspace.gateway.logs.read";
|
|
79
|
+
readonly 'project.gateway.spend.read': "workspace.gateway.spend.read";
|
|
80
|
+
readonly 'project.usage.read': "workspace.usage.read";
|
|
81
|
+
readonly 'project.gateway.budget.set': "workspace.gateway.budget.set";
|
|
82
|
+
readonly 'project.gateway.keys.manage': "workspace.gateway.keys.manage";
|
|
83
|
+
readonly 'project.agent.read': "workspace.agent.read";
|
|
84
|
+
readonly 'project.agent.write': "workspace.agent.write";
|
|
85
|
+
readonly 'project.skill.read': "workspace.skill.read";
|
|
86
|
+
readonly 'project.skill.write': "workspace.skill.write";
|
|
87
|
+
readonly 'project.command.read': "workspace.command.read";
|
|
88
|
+
readonly 'project.command.write': "workspace.command.write";
|
|
89
|
+
readonly 'project.file.read': "workspace.file.read";
|
|
90
|
+
readonly 'project.file.write': "workspace.file.write";
|
|
91
|
+
readonly 'project.settings.write': "workspace.settings.write";
|
|
92
|
+
readonly 'project.sandbox.write': "workspace.sandbox.write";
|
|
93
|
+
readonly 'project.model.read': "workspace.model.read";
|
|
94
|
+
readonly 'project.model.write': "workspace.model.write";
|
|
95
|
+
readonly 'project.gitops.read': "workspace.gitops.read";
|
|
96
|
+
readonly 'project.gitops.push': "workspace.gitops.push";
|
|
97
|
+
readonly 'project.gitops.merge': "workspace.gitops.merge";
|
|
98
|
+
readonly 'project.gitops.ref.any': "workspace.gitops.ref.any";
|
|
99
|
+
readonly 'project.gitops.ref.delete': "workspace.gitops.ref.delete";
|
|
100
|
+
readonly 'project.secret.read': "workspace.secret.read";
|
|
101
|
+
readonly 'project.secret.write': "workspace.secret.write";
|
|
102
|
+
readonly 'project.connector.read': "workspace.connector.read";
|
|
103
|
+
readonly 'project.connector.connections.manage': "workspace.connector.connections.manage";
|
|
104
|
+
readonly 'project.connector.write': "workspace.connector.write";
|
|
105
|
+
readonly 'project.app.read': "workspace.app.read";
|
|
106
|
+
readonly 'project.app.write': "workspace.app.write";
|
|
107
|
+
readonly 'project.app.deploy': "workspace.app.deploy";
|
|
108
|
+
readonly 'project.app.admin': "workspace.app.admin";
|
|
109
|
+
readonly 'project.review.read': "workspace.review.read";
|
|
110
|
+
readonly 'project.review.submit': "workspace.review.submit";
|
|
111
|
+
readonly 'project.review.act': "workspace.review.act";
|
|
112
|
+
readonly 'project.artifact.read': "workspace.artifact.read";
|
|
113
|
+
readonly 'project.artifact.write': "workspace.artifact.write";
|
|
114
|
+
readonly 'project.artifact.manage': "workspace.artifact.manage";
|
|
115
|
+
readonly 'project.artifact.public': "workspace.artifact.public";
|
|
116
|
+
readonly 'project.credentials.issue': "workspace.credentials.issue";
|
|
117
|
+
};
|
|
118
|
+
/** A legacy action name, as stored in `kortix.permissions`. */
|
|
119
|
+
export type LegacyIamAction = keyof typeof WORKSPACE_ACTION_BY_LEGACY;
|
|
120
|
+
/** The workspace name of one action, e.g. `'workspace.session.start'`. */
|
|
121
|
+
export type WorkspaceIamAction = (typeof WORKSPACE_ACTION_BY_LEGACY)[LegacyIamAction];
|
|
122
|
+
/** The reverse table: workspace name -> legacy name. */
|
|
123
|
+
export declare const LEGACY_ACTION_BY_WORKSPACE: Readonly<Record<WorkspaceIamAction, LegacyIamAction>>;
|
|
124
|
+
/** True for a known workspace name (`workspace.read`), false for anything else. */
|
|
125
|
+
export declare function isWorkspaceAction(action: string): action is WorkspaceIamAction;
|
|
126
|
+
/** True for a known legacy name (`project.read`), false for anything else. */
|
|
127
|
+
export declare function isLegacyAction(action: string): action is LegacyIamAction;
|
|
128
|
+
/**
|
|
129
|
+
* The stored (legacy) name of `action`. A workspace name maps to its legacy
|
|
130
|
+
* row; a legacy name, a retired name or a typo is returned unchanged, so the
|
|
131
|
+
* caller's own "unknown action" handling still sees the string it was sent.
|
|
132
|
+
*/
|
|
133
|
+
export declare function toLegacyAction(action: string): string;
|
|
134
|
+
/**
|
|
135
|
+
* The workspace name of `action`. A legacy name maps to its workspace name; a
|
|
136
|
+
* workspace name, a retired name or a typo is returned unchanged.
|
|
137
|
+
*/
|
|
138
|
+
export declare function toWorkspaceAction(action: string): string;
|
|
139
|
+
/**
|
|
140
|
+
* HUMAN_ONLY (design.md §3.2 C8): the actions no agent session ever holds,
|
|
141
|
+
* inherited or governed, whatever its grant, its bound role or its launcher's
|
|
142
|
+
* super-admin bit says. Legacy spelling, as stored.
|
|
143
|
+
*
|
|
144
|
+
* Two classes, and only these two:
|
|
145
|
+
* - minting credentials: a token minted by an agent carries no agent grant,
|
|
146
|
+
* so the agent would hand itself authority outside its own permissions;
|
|
147
|
+
* - moving money: checkout, payment methods, top-up approval, and deleting a
|
|
148
|
+
* workspace (which cancels its subscription and forfeits its wallet).
|
|
149
|
+
*
|
|
150
|
+
* Every other action is an ordinary workspace permission an agent can hold:
|
|
151
|
+
* "the agent either can or cannot" (Marko, 2026-11-06).
|
|
152
|
+
*/
|
|
153
|
+
export declare const HUMAN_ONLY: ReadonlySet<LegacyIamAction>;
|
|
154
|
+
/** True when `action`, in either spelling, is HUMAN_ONLY. */
|
|
155
|
+
export declare function isHumanOnlyAction(action: string): boolean;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one Settings panel of a workspace (design.md §3.2 C7).
|
|
3
|
+
*
|
|
4
|
+
* The registry every surface reads: the web panel and its rail, the CLI and
|
|
5
|
+
* the API when they print a settings link, the emails, and the My Kortix
|
|
6
|
+
* prompt's "where to click" table. A section is renamed or moved here once,
|
|
7
|
+
* and every printed link follows.
|
|
8
|
+
*
|
|
9
|
+
* The panel lives at `/workspaces/<id>/admin/<section>` (Slack's `/admin`).
|
|
10
|
+
* Preferences (the person's own settings) is a separate overlay at
|
|
11
|
+
* `/workspaces/<id>/settings/<tab>` and is not in this registry.
|
|
12
|
+
*/
|
|
13
|
+
export declare const WORKSPACE_SETTINGS_GROUPS: readonly [{
|
|
14
|
+
readonly id: "workspace";
|
|
15
|
+
readonly sections: readonly ["general", "security", "branding", "api-keys", "capture"];
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "library";
|
|
18
|
+
readonly sections: readonly ["agents", "models", "connectors", "secrets", "skills", "drives", "apps", "triggers", "sandbox", "git", "repo"];
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "people";
|
|
21
|
+
readonly sections: readonly ["members", "groups", "roles", "identity", "audit"];
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "billing";
|
|
24
|
+
readonly sections: readonly ["plan", "usage"];
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "advanced";
|
|
27
|
+
readonly sections: readonly ["feature-flags"];
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "danger";
|
|
30
|
+
readonly sections: readonly ["danger-zone"];
|
|
31
|
+
}, {
|
|
32
|
+
readonly id: "support";
|
|
33
|
+
readonly sections: readonly ["help"];
|
|
34
|
+
}];
|
|
35
|
+
export type WorkspaceSettingsGroup = (typeof WORKSPACE_SETTINGS_GROUPS)[number]['id'];
|
|
36
|
+
export type WorkspaceSettingsSection = (typeof WORKSPACE_SETTINGS_GROUPS)[number]['sections'][number];
|
|
37
|
+
/** Every section, top to bottom, in panel order. */
|
|
38
|
+
export declare const WORKSPACE_SETTINGS_SECTIONS: readonly WorkspaceSettingsSection[];
|
|
39
|
+
/** The section `/workspaces/<id>/admin` opens. */
|
|
40
|
+
export declare const WORKSPACE_SETTINGS_DEFAULT_SECTION: WorkspaceSettingsSection;
|
|
41
|
+
/** Old ids and old account-hub tabs → the section that owns them now. */
|
|
42
|
+
export declare const WORKSPACE_SETTINGS_SECTION_ALIASES: Readonly<Record<string, WorkspaceSettingsSection>>;
|
|
43
|
+
/** English labels (the en catalog uses the same words; a web test holds them equal). */
|
|
44
|
+
export declare const WORKSPACE_SETTINGS_LABELS: Readonly<Record<WorkspaceSettingsSection, string>>;
|
|
45
|
+
/** English group labels, in panel order. */
|
|
46
|
+
export declare const WORKSPACE_SETTINGS_GROUP_LABELS: Readonly<Record<WorkspaceSettingsGroup, string>>;
|
|
47
|
+
/** True when `value` is a current section id (aliases are not). */
|
|
48
|
+
export declare function isWorkspaceSettingsSection(value: unknown): value is WorkspaceSettingsSection;
|
|
49
|
+
/**
|
|
50
|
+
* A section id from a URL segment, a query value or a CLI flag. Resolves the
|
|
51
|
+
* old ids through {@link WORKSPACE_SETTINGS_SECTION_ALIASES}. `null` for an
|
|
52
|
+
* empty or unknown value.
|
|
53
|
+
*/
|
|
54
|
+
export declare function parseWorkspaceSettingsSection(raw: string | null | undefined): WorkspaceSettingsSection | null;
|
|
55
|
+
/** The group a section belongs to. */
|
|
56
|
+
export declare function workspaceSettingsGroupOf(section: WorkspaceSettingsSection): WorkspaceSettingsGroup;
|
|
57
|
+
/**
|
|
58
|
+
* The app path of a workspace's Settings panel: `/workspaces/<id>/admin/<section>`.
|
|
59
|
+
* Without a section, `/workspaces/<id>/admin` (opens `general`). Prefix the app
|
|
60
|
+
* origin for an absolute link.
|
|
61
|
+
*/
|
|
62
|
+
export declare function workspaceSettingsPath(workspaceId: string, section?: WorkspaceSettingsSection): string;
|
|
@@ -17,7 +17,7 @@ import { AgentMark } from '../../internal/components/agent-mark.js';
|
|
|
17
17
|
import { Button } from '../../primitives/button.js';
|
|
18
18
|
import { EntityAvatar } from '../../primitives/entity-avatar.js';
|
|
19
19
|
import { Field, FieldLabel } from '../../primitives/field.js';
|
|
20
|
-
import {
|
|
20
|
+
import { Alert as BannerAlert, AlertDescription as BannerAlertDescription, AlertMedia as BannerAlertMedia } from '../../primitives/alert.js';
|
|
21
21
|
import Loading from '../../primitives/loading.js';
|
|
22
22
|
import { Modal, ModalBody, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, } from '../../primitives/modal.js';
|
|
23
23
|
import { errorToast, successToast } from '../../primitives/toast.js';
|
|
@@ -120,11 +120,11 @@ export function ShareAccessBody({ open, onOpenChange, accountId, projectId, proj
|
|
|
120
120
|
})) })] }), _jsxs(Field, { className: "gap-1.5", children: [_jsx(FieldLabel, { children: t('add') }), _jsx(PrincipalPicker, { scope: { kind: 'project', projectId }, selection: "multi",
|
|
121
121
|
// A private account becomes shared through `shareConnection`,
|
|
122
122
|
// which takes people and groups; an agent joins once it is shared.
|
|
123
|
-
kinds: privateOwner ? ['member', 'group'] : ['member', 'group', 'agent'], everyone: { label: everyoneLabel }, excludeUserIds: grantedMemberIds, value: picked, onChange: setPicked, disabled: save.isPending, autoFocus: false, emptyLabel: tI18nComplete.raw('textd2600c68a9ff'), allExcludedLabel: tI18nComplete.raw('textf68d7561db3d') }), (picked.agentIds?.length ?? 0) > 0 ? (_jsx("p", { className: "text-muted-foreground text-xs", children: t('agentShareHint') })) : null] }),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
kinds: privateOwner ? ['member', 'group'] : ['member', 'group', 'agent'], everyone: { label: everyoneLabel }, excludeUserIds: grantedMemberIds, value: picked, onChange: setPicked, disabled: save.isPending, autoFocus: false, emptyLabel: tI18nComplete.raw('textd2600c68a9ff'), allExcludedLabel: tI18nComplete.raw('textf68d7561db3d') }), (picked.agentIds?.length ?? 0) > 0 ? (_jsx("p", { className: "text-muted-foreground text-xs", children: t('agentShareHint') })) : null] }), _jsxs(BannerAlert, { variant: "default", children: [_jsx(BannerAlertMedia, { children: everyoneAfter ? _jsx(UsersThreeIcon, {}) : _jsx(LockIcon, {}) }), _jsx(BannerAlertDescription, { children: _jsx("span", { "data-testid": "share-result", children: everyoneAfter
|
|
124
|
+
? t('resultEveryone', { project: projectName })
|
|
125
|
+
: privateOwner && !privatePlan
|
|
126
|
+
? t('onlyYouDescription')
|
|
127
|
+
: t('resultNarrowed') }) })] })] }), _jsxs(ModalFooter, { className: "sm:justify-between", children: [_jsx(Button, { type: "button", variant: "outline-ghost", size: "sm", disabled: save.isPending, onClick: () => onOpenChange(false), children: tI18nComplete.raw('text19766ed6ccb2') }), _jsxs(Button, { type: "button", size: "sm", className: "gap-1.5", disabled: !dirty || save.isPending, onClick: () => save.mutate(), children: [save.isPending ? _jsx(Loading, { className: "size-3.5 shrink-0" }) : null, t('save')] })] })] }) }));
|
|
128
128
|
}
|
|
129
129
|
function AudienceRow({ avatar, label, meta, removed = false, action, }) {
|
|
130
130
|
return (_jsxs("li", { className: "bg-popover flex items-center gap-2.5 rounded-md border px-3 py-2", children: [avatar, _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: cn('block truncate text-sm font-medium', removed ? 'text-muted-foreground' : 'text-foreground'), children: label }), _jsx("span", { className: "text-muted-foreground block truncate text-xs", children: meta })] }), action] }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UiTranslator } from '../../i18n/index.js';
|
|
2
2
|
import { type AccountRole, type ConnectionShare, type ProjectRole } from '@kortix/sdk';
|
|
3
|
-
import { type ReactNode } from 'react';
|
|
3
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
4
4
|
import { type ShareableObject } from './access-dialog-share.js';
|
|
5
5
|
import { type RoleValue } from './role-select.js';
|
|
6
6
|
export type AccessDialogScope = {
|
|
@@ -205,3 +205,46 @@ export declare function BlastRadiusPreview({ declares, }: {
|
|
|
205
205
|
connectors: string[] | 'all';
|
|
206
206
|
};
|
|
207
207
|
}): import("react").JSX.Element;
|
|
208
|
+
/** The expiry field: the Kortix `Calendar` in a popover, not the browser's
|
|
209
|
+
* native date input. Empty reads "Never"; past days can't be picked. */
|
|
210
|
+
export declare function ExpiryPicker({ id, value, onChange, disabled, }: {
|
|
211
|
+
id: string;
|
|
212
|
+
value: string;
|
|
213
|
+
onChange: (next: string) => void;
|
|
214
|
+
disabled?: boolean;
|
|
215
|
+
}): import("react").JSX.Element;
|
|
216
|
+
/**
|
|
217
|
+
* The two shells `PrincipalAccessDialog` renders its one body in. The modal
|
|
218
|
+
* blocks a close while a save is in flight; the sheet is the body of the
|
|
219
|
+
* account hub's `useAccountHubSheet`, which owns open and close.
|
|
220
|
+
*/
|
|
221
|
+
export interface AccessChrome {
|
|
222
|
+
Root: ComponentType<{
|
|
223
|
+
open: boolean;
|
|
224
|
+
onOpenChange: (open: boolean) => void;
|
|
225
|
+
children?: ReactNode;
|
|
226
|
+
}>;
|
|
227
|
+
Content: ComponentType<{
|
|
228
|
+
children?: ReactNode;
|
|
229
|
+
}>;
|
|
230
|
+
Header: ComponentType<{
|
|
231
|
+
children?: ReactNode;
|
|
232
|
+
}>;
|
|
233
|
+
Title: ComponentType<{
|
|
234
|
+
children?: ReactNode;
|
|
235
|
+
}>;
|
|
236
|
+
Description: ComponentType<{
|
|
237
|
+
children?: ReactNode;
|
|
238
|
+
}>;
|
|
239
|
+
Body: ComponentType<{
|
|
240
|
+
children?: ReactNode;
|
|
241
|
+
}>;
|
|
242
|
+
Footer: ComponentType<{
|
|
243
|
+
children?: ReactNode;
|
|
244
|
+
}>;
|
|
245
|
+
}
|
|
246
|
+
export declare const MODAL_CHROME: AccessChrome;
|
|
247
|
+
/** Inside the account hub's sheet: the host draws the title row and the
|
|
248
|
+
* scrolling body, so this draws only the fields and a footer that sticks to
|
|
249
|
+
* the bottom of that scroll. */
|
|
250
|
+
export declare const SHEET_CHROME: AccessChrome;
|
|
@@ -30,14 +30,14 @@ import { Checkbox } from '../../primitives/checkbox.js';
|
|
|
30
30
|
import { ConfirmDialog } from '../../primitives/confirm-dialog.js';
|
|
31
31
|
import { EntityAvatar } from '../../primitives/entity-avatar.js';
|
|
32
32
|
import { Field, FieldDescription, FieldLabel } from '../../primitives/field.js';
|
|
33
|
-
import {
|
|
33
|
+
import { Alert as BannerAlert, AlertTitle as BannerAlertTitle, AlertDescription as BannerAlertDescription, AlertActions as BannerAlertActions, AlertMedia as BannerAlertMedia } from '../../primitives/alert.js';
|
|
34
34
|
import { Calendar } from '../../primitives/calendar.js';
|
|
35
35
|
import { Popover, PopoverContent, PopoverTrigger } from '../../primitives/popover.js';
|
|
36
36
|
import { triggerVariants } from '../../primitives/trigger-variants.js';
|
|
37
37
|
import Loading from '../../primitives/loading.js';
|
|
38
38
|
import { Modal, ModalBody, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, } from '../../primitives/modal.js';
|
|
39
39
|
import { Skeleton } from '../../primitives/skeleton.js';
|
|
40
|
-
import { Tabs,
|
|
40
|
+
import { Tabs, TabsList, TabsTrigger } from '../../primitives/tabs.js';
|
|
41
41
|
import { errorToast, successToast, warningToast } from '../../primitives/toast.js';
|
|
42
42
|
import { UserAvatar } from '../../primitives/user-avatar.js';
|
|
43
43
|
import { PROJECT_ACTIONS } from '../../internal/lib/project-actions.js';
|
|
@@ -881,14 +881,14 @@ function PrincipalAccessDialog({ open, onOpenChange, accountId, scope, mode, acc
|
|
|
881
881
|
// Ownership transfer is its own flow — never a grant.
|
|
882
882
|
builtinRoles: roleScope === 'account' && mode.kind === 'grant'
|
|
883
883
|
? ['member', 'admin']
|
|
884
|
-
: undefined }), scope.kind === 'project' && principals.groupIds.length > 0 ? (_jsx(FieldDescription, { children: tI18nComplete.raw('text237f1a28cf06') })) : null] })) : null, scope.kind === 'project' && everyoneSelected ? (
|
|
884
|
+
: undefined }), scope.kind === 'project' && principals.groupIds.length > 0 ? (_jsx(FieldDescription, { children: tI18nComplete.raw('text237f1a28cf06') })) : null] })) : null, scope.kind === 'project' && everyoneSelected ? (_jsxs(BannerAlert, { variant: "default", children: [_jsx(BannerAlertMedia, { children: _jsx(UsersThreeIcon, {}) }), _jsx(BannerAlertDescription, { children: tSharing('everyoneRoleNote', { project: scope.projectName }) })] })) : null, scope.kind === 'project' && showAgentCeilingNote ? (_jsxs(BannerAlert, { variant: "default", children: [_jsx(BannerAlertMedia, { children: _jsx(RobotIcon, {}) }), _jsx(BannerAlertTitle, { children: tAgents('ceilingNoteTitle') }), _jsx(BannerAlertDescription, { children: _jsx("span", { "data-testid": "agent-ceiling-note", children: tAgents('ceilingNote') }) })] })) : null, showAgents ? (_jsxs(Field, { className: "gap-1.5", children: [_jsx(FieldLabel, { children: tI18nComplete.raw('text279b44d2ab4b') }), resourceGrantsQuery.isError ? (_jsxs(BannerAlert, { variant: "destructive", children: [_jsx(BannerAlertDescription, { children: resourceGrantsQuery.error.message }), _jsx(BannerAlertActions, { children: _jsx(Button, { size: "sm", variant: "outline", onClick: () => void resourceGrantsQuery.refetch(), children: tCommon('retry') }) })] })) : resourceGrantsQuery.isLoading ? (_jsx(Skeleton, { className: "h-6 w-full rounded-md" })) : null, _jsx(Tabs, { value: agents.mode, onValueChange: (next) => setAgents(next === 'all' ? ALL_AGENTS : { mode: 'subset', ids: agents.ids }), children: _jsxs(TabsList, { size: "xs", children: [_jsx(TabsTrigger, { value: "all", children: tI18nComplete.raw('text54c32d3e2cfa') }), _jsx(TabsTrigger, { value: "subset", children: tI18nComplete.raw('textb080141d6840') })] }) }), agents.mode === 'all' ? (_jsx(FieldDescription, { children: projectAgents.length === 0
|
|
885
885
|
? tI18nComplete.raw('text7bf9d07dcb99')
|
|
886
886
|
: tI18nComplete('textc5bb9fda9711', { value0: projectAgents.length }) })) : null, agents.mode === 'subset' ? (resourceGrantsQuery.isLoading ? (_jsx(Skeleton, { className: "h-24 w-full rounded-md" })) : projectAgents.length === 0 ? (_jsx("p", { className: "text-muted-foreground text-xs", children: tI18nComplete.raw('text7bf9d07dcb99') })) : (_jsx("div", { className: "border-border max-h-40 overflow-y-auto rounded-md border p-1", children: projectAgents.map((agent) => (_jsx(Checkbox, { label: agent.name, checked: selectedAgentIdSet.has(agent.id), disabled: pending, onCheckedChange: () => setAgents((prev) => ({
|
|
887
887
|
mode: 'subset',
|
|
888
888
|
ids: prev.ids.includes(agent.id)
|
|
889
889
|
? prev.ids.filter((x) => x !== agent.id)
|
|
890
890
|
: [...prev.ids, agent.id],
|
|
891
|
-
})) }, agent.id))) }))) : null, selectedAgentDeclares ? (_jsx(BlastRadiusPreview, { declares: selectedAgentDeclares })) : null] })) : null, showAccountAdminBanner ? (_jsx(
|
|
891
|
+
})) }, agent.id))) }))) : null, selectedAgentDeclares ? (_jsx(BlastRadiusPreview, { declares: selectedAgentDeclares })) : null] })) : null, showAccountAdminBanner ? (_jsx(BannerAlert, { variant: "default", children: _jsx(BannerAlertDescription, { children: tI18nComplete.raw('text65abb6edc2c0') }) })) : showProjectAccessSection ? (_jsx(ProjectAccessRows, { accountId: accountId, rows: projectGrants, onChange: setProjectGrants, expanded: projectAccessOpen, onExpand: () => {
|
|
892
892
|
setProjectAccessOpen(true);
|
|
893
893
|
if (projectGrants.length === 0) {
|
|
894
894
|
setProjectGrants([{ project_id: '', role: 'member' }]);
|
|
@@ -901,7 +901,7 @@ function PrincipalAccessDialog({ open, onOpenChange, accountId, scope, mode, acc
|
|
|
901
901
|
? scope.projectName
|
|
902
902
|
: scope.kind === 'group'
|
|
903
903
|
? scope.groupName
|
|
904
|
-
: (accountName ?? 'this
|
|
904
|
+
: (accountName ?? 'this workspace'),
|
|
905
905
|
inherited: inheritedFrom,
|
|
906
906
|
}, tI18nComplete) })) : null] }));
|
|
907
907
|
}
|
|
@@ -946,7 +946,7 @@ function parseDateValue(value) {
|
|
|
946
946
|
}
|
|
947
947
|
/** The expiry field: the Kortix `Calendar` in a popover, not the browser's
|
|
948
948
|
* native date input. Empty reads "Never"; past days can't be picked. */
|
|
949
|
-
function ExpiryPicker({ id, value, onChange, disabled, }) {
|
|
949
|
+
export function ExpiryPicker({ id, value, onChange, disabled, }) {
|
|
950
950
|
const tI18nComplete = useI18nTranslations('hardcodedUi.i18nComplete');
|
|
951
951
|
const [open, setOpen] = useState(false);
|
|
952
952
|
const selected = parseDateValue(value);
|
|
@@ -960,7 +960,7 @@ function ExpiryPicker({ id, value, onChange, disabled, }) {
|
|
|
960
960
|
setOpen(false);
|
|
961
961
|
}, children: tI18nComplete.raw('text83b12c2216ef') }) })) : null] })] }));
|
|
962
962
|
}
|
|
963
|
-
const MODAL_CHROME = {
|
|
963
|
+
export const MODAL_CHROME = {
|
|
964
964
|
Root: Modal,
|
|
965
965
|
Content: ({ children }) => (_jsx(ModalContent, { className: "sm:max-w-md", children: children })),
|
|
966
966
|
Header: ModalHeader,
|
|
@@ -973,7 +973,7 @@ const Passthrough = ({ children }) => _jsx(_Fragment, { children: children });
|
|
|
973
973
|
/** Inside the account hub's sheet: the host draws the title row and the
|
|
974
974
|
* scrolling body, so this draws only the fields and a footer that sticks to
|
|
975
975
|
* the bottom of that scroll. */
|
|
976
|
-
const SHEET_CHROME = {
|
|
976
|
+
export const SHEET_CHROME = {
|
|
977
977
|
Root: Passthrough,
|
|
978
978
|
// Fills the sheet body's height so `mt-auto` can push the footer to the
|
|
979
979
|
// bottom edge even when the form is short.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AgentIdentity, type IamRole, type RoleAssignment } from '@kortix/sdk';
|
|
2
|
-
/** Never an agent's, whatever its role or its `kortix_permissions` say
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
/** Never an agent's, whatever its role or its `kortix_permissions` say: the
|
|
3
|
+
* HUMAN_ONLY set the API enforces (minting credentials, moving money). None of
|
|
4
|
+
* them is in the grantable catalog, so only an explicit list can name one. */
|
|
5
5
|
export declare const HUMAN_ONLY_PERMISSIONS: readonly string[];
|
|
6
6
|
/** Every project permission `kortix_permissions` may name. */
|
|
7
7
|
export declare const GRANTABLE_PROJECT_PERMISSIONS: readonly string[];
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
// the IAM half. Enforcement is server-side (`apps/api/src/iam/authorize.ts`);
|
|
15
15
|
// nothing here decides access.
|
|
16
16
|
import { getRolePermissions, listAgentIdentities, listProjectAgentIdentities, listAssignments, listRoles, } from '@kortix/sdk';
|
|
17
|
+
import { HUMAN_ONLY } from '../../_vendor/kortix-shared.js';
|
|
17
18
|
import { useQueries, useQuery } from '@tanstack/react-query';
|
|
18
19
|
import { useMemo } from 'react';
|
|
19
20
|
import { KORTIX_PERMISSIONS_CATALOG } from '../../customize/sections/view/agent-editor-catalog.js';
|
|
20
|
-
/** Never an agent's, whatever its role or its `kortix_permissions` say
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
export const HUMAN_ONLY_PERMISSIONS = [
|
|
21
|
+
/** Never an agent's, whatever its role or its `kortix_permissions` say: the
|
|
22
|
+
* HUMAN_ONLY set the API enforces (minting credentials, moving money). None of
|
|
23
|
+
* them is in the grantable catalog, so only an explicit list can name one. */
|
|
24
|
+
export const HUMAN_ONLY_PERMISSIONS = [...HUMAN_ONLY];
|
|
24
25
|
/** Every project permission `kortix_permissions` may name. */
|
|
25
26
|
export const GRANTABLE_PROJECT_PERMISSIONS = KORTIX_PERMISSIONS_CATALOG.flatMap((group) => group.actions);
|
|
26
27
|
/** Always granted to an agent inside its own project (spec §2.1). */
|