@kortix/ui 0.14.17 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/_vendor/kortix-shared.js +993 -74
- package/dist/_vendor/shared/artifact-annotations.d.ts +85 -607
- package/dist/_vendor/shared/artifact-comments.d.ts +53 -489
- package/dist/_vendor/shared/channel-descriptors.d.ts +20 -1
- package/dist/_vendor/shared/channel-message.d.ts +1 -1
- package/dist/_vendor/shared/index.d.ts +0 -1
- package/dist/_vendor/shared/my-kortix-agent.d.ts +1 -1
- package/dist/_vendor/shared/peer-message-prompt.d.ts +7 -1
- package/dist/_vendor/shared/project-glyphs.d.ts +103 -20
- package/dist/_vendor/shared/space-slug.d.ts +3 -4
- package/dist/_vendor/shared/utils/ambiguous-write.d.ts +3 -3
- package/dist/_vendor/shared/webhook-signing.d.ts +3 -1
- package/dist/access/access/access-dialog-share.d.ts +3 -28
- package/dist/access/access/access-dialog-share.js +3 -75
- package/dist/artifacts/artifact-frame.js +26 -2
- package/dist/artifacts/artifact-session.js +6 -2
- package/dist/artifacts/frame-policy.d.ts +2 -9
- package/dist/artifacts/frame-policy.js +2 -25
- package/dist/customize/agents/agent-instructions.d.ts +8 -0
- package/dist/customize/agents/agent-instructions.js +38 -12
- package/dist/customize/agents/agent-overview.d.ts +6 -3
- package/dist/customize/agents/agent-overview.js +8 -2
- package/dist/customize/agents/agent-page-chrome.d.ts +45 -27
- package/dist/customize/agents/agent-page-chrome.js +60 -37
- package/dist/customize/agents/agent-page.js +88 -99
- package/dist/customize/agents/agent-tabs.d.ts +15 -14
- package/dist/customize/agents/agent-tabs.js +19 -16
- package/dist/customize/agents/agents-page.js +9 -7
- package/dist/customize/agents/create-agent-modal.js +1 -1
- package/dist/customize/connectors/connector-filter.d.ts +2 -1
- package/dist/customize/connectors/connector-filter.js +2 -3
- package/dist/customize/connectors/connectors-page.js +15 -24
- package/dist/customize/connectors/detail/account-info.js +1 -1
- package/dist/customize/connectors/detail/connector-status.d.ts +3 -24
- package/dist/customize/connectors/detail/connector-status.js +2 -42
- package/dist/customize/connectors/detail/use-connector-detail.d.ts +2 -6
- package/dist/customize/connectors/detail/use-connector-detail.js +3 -13
- package/dist/customize/connectors/install/install.d.ts +2 -6
- package/dist/customize/connectors/install/install.js +2 -16
- package/dist/customize/connectors/provider-label.d.ts +4 -17
- package/dist/customize/connectors/provider-label.js +4 -37
- package/dist/customize/project-settings/project-admin-sections.d.ts +6 -2
- package/dist/customize/project-settings/project-admin-sections.js +5 -3
- package/dist/customize/project-settings/project-settings-sections.js +1 -1
- package/dist/customize/providers/provider-connect.d.ts +6 -15
- package/dist/customize/providers/provider-connect.js +5 -36
- package/dist/customize/sections/component/channel-access-panel.js +16 -0
- package/dist/customize/sections/component/channel-mocks.d.ts +5 -0
- package/dist/customize/sections/component/channel-mocks.js +14 -2
- package/dist/customize/sections/component/discord-channel-row.d.ts +6 -0
- package/dist/customize/sections/component/discord-channel-row.js +48 -0
- package/dist/customize/sections/connector-connection-form.d.ts +3 -7
- package/dist/customize/sections/connector-connection-form.js +2 -33
- package/dist/customize/sections/connector-oauth2-auto.d.ts +3 -33
- package/dist/customize/sections/connector-oauth2-auto.js +2 -64
- package/dist/customize/sections/gateway-access-tab.js +1 -1
- package/dist/customize/sections/gateway-view.d.ts +6 -5
- package/dist/customize/sections/gateway-view.js +31 -13
- package/dist/customize/sections/llm-provider/constants.d.ts +1 -2
- package/dist/customize/sections/llm-provider/constants.js +1 -2
- package/dist/customize/sections/llm-provider/utils.d.ts +1 -41
- package/dist/customize/sections/llm-provider/utils.js +1 -52
- package/dist/customize/sections/view/account-secret-resources-panel.js +4 -1
- package/dist/customize/sections/view/agent-editor-catalog.js +0 -5
- package/dist/customize/sections/view/channel-settings-patch.js +1 -1
- package/dist/customize/sections/view/channels-view.js +26 -9
- package/dist/customize/sections/view/connector-connections.d.ts +5 -85
- package/dist/customize/sections/view/connector-connections.js +5 -99
- package/dist/customize/sections/view/gateway/gateway-logs.d.ts +42 -3
- package/dist/customize/sections/view/gateway/gateway-logs.js +212 -15
- package/dist/customize/sections/view/gateway/gateway-overview.js +1 -1
- package/dist/customize/sections/view/gateway/gateway-routing.d.ts +3 -3
- package/dist/customize/sections/view/gateway/gateway-routing.js +81 -200
- package/dist/customize/sections/view/gateway/routing-parts.d.ts +101 -0
- package/dist/customize/sections/view/gateway/routing-parts.js +154 -0
- package/dist/customize/sections/view/gateway/routing-sentence-layout.d.ts +2 -0
- package/dist/customize/sections/view/gateway/routing-sentence-layout.js +82 -0
- package/dist/customize/sections/view/git-view.js +2 -2
- package/dist/customize/sections/view/review-center-connected.js +17 -15
- package/dist/customize/sections/view/review-view.d.ts +7 -0
- package/dist/customize/sections/view/review-view.js +11 -0
- package/dist/customize/sections/view/secret-delivery.js +2 -2
- package/dist/customize/sections/view/secrets-view.js +1 -1
- package/dist/customize/sections/view/subscription-usage-tab.d.ts +14 -0
- package/dist/customize/sections/view/subscription-usage-tab.js +122 -0
- package/dist/customize/sections/view/subscription-usage.d.ts +34 -0
- package/dist/customize/sections/view/subscription-usage.js +98 -0
- package/dist/customize/settings/rail.js +2 -2
- package/dist/customize/settings/tabs/experimental-tab.d.ts +2 -2
- package/dist/customize/settings/tabs/experimental-tab.js +5 -5
- package/dist/customize/settings/tabs/general-tab.js +70 -14
- package/dist/customize/shared/capability-library.js +19 -22
- package/dist/customize/shared/catalog/catalog-card.d.ts +9 -4
- package/dist/customize/shared/catalog/catalog-card.js +3 -3
- package/dist/customize/shared/channels-switch-dialog.d.ts +1 -1
- package/dist/customize/shared/channels-switch-dialog.js +1 -1
- package/dist/customize/shared/customize-tab-bar.d.ts +1 -2
- package/dist/customize/shared/customize-tab-bar.js +10 -11
- package/dist/customize/shared/feature-gate-screen.js +1 -1
- package/dist/customize/triggers/schedule/post-to-field.d.ts +1 -1
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +1 -1
- package/dist/files/drives/conflict-marks.d.ts +28 -0
- package/dist/files/drives/conflict-marks.js +39 -0
- package/dist/files/drives/session-drives-chip.js +15 -10
- package/dist/files/project/components/drive-create-dialog.js +3 -3
- package/dist/files/viewer/index.d.ts +1 -1
- package/dist/files/viewer/index.js +1 -1
- package/dist/i18n/en.d.ts +502 -207
- package/dist/i18n/en.js +608 -313
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/account-hub/sections.d.ts +1 -1
- package/dist/internal/branding/branding-provider.d.ts +15 -4
- package/dist/internal/branding/branding-provider.js +12 -7
- package/dist/internal/capture/use-capture-area.d.ts +5 -1
- package/dist/internal/capture/use-capture-area.js +16 -9
- package/dist/internal/connector-logo/connector-logo.js +2 -0
- package/dist/internal/connector-logo/connector-mark-files.js +1 -0
- package/dist/internal/goals/goal-meta.d.ts +50 -3
- package/dist/internal/goals/goal-meta.js +144 -9
- package/dist/internal/hooks/channels/use-channels-installations.d.ts +7 -2
- package/dist/internal/hooks/channels/use-channels-installations.js +31 -1
- package/dist/internal/hooks/connectors/use-add-account.d.ts +3 -9
- package/dist/internal/hooks/connectors/use-add-account.js +3 -18
- package/dist/internal/hooks/connectors/use-connect-link.d.ts +3 -2
- package/dist/internal/hooks/connectors/use-connect-link.js +15 -24
- package/dist/internal/hooks/connectors/use-pipedream-connect-project.d.ts +3 -56
- package/dist/internal/hooks/connectors/use-pipedream-connect-project.js +3 -87
- package/dist/internal/hooks/projects/use-new-project-session.d.ts +9 -16
- package/dist/internal/hooks/projects/use-new-project-session.js +16 -100
- package/dist/internal/hooks/projects/use-project-can-run.d.ts +7 -0
- package/dist/internal/hooks/projects/use-project-can-run.js +12 -5
- package/dist/internal/hooks/projects/use-restart-project-session.d.ts +0 -1
- package/dist/internal/hooks/projects/use-restart-project-session.js +0 -1
- package/dist/internal/hooks/use-notification-center.d.ts +11 -8
- package/dist/internal/hooks/use-notification-center.js +22 -10
- package/dist/internal/icons/discord.d.ts +9 -0
- package/dist/internal/icons/discord.js +9 -0
- package/dist/internal/layout/connect-mcp-modal.js +1 -1
- package/dist/internal/layout/project-capability-nav.js +6 -2
- package/dist/internal/layout/project-page-header.d.ts +3 -1
- package/dist/internal/layout/project-page-header.js +2 -2
- package/dist/internal/lib/account-secret-access.d.ts +1 -41
- package/dist/internal/lib/account-secret-access.js +3 -46
- package/dist/internal/lib/browser-error-noise.d.ts +1 -1
- package/dist/internal/lib/browser-error-noise.js +1 -1
- package/dist/internal/lib/browser-noise/rules/expected-states.d.ts +2 -15
- package/dist/internal/lib/browser-noise/rules/expected-states.js +6 -56
- package/dist/internal/lib/capability-tab-routes.d.ts +3 -3
- package/dist/internal/lib/capability-tab-routes.js +11 -3
- package/dist/internal/lib/error-handler.js +1 -1
- package/dist/internal/lib/llm-providers.d.ts +4 -110
- package/dist/internal/lib/llm-providers.js +5 -102
- package/dist/internal/lib/navigation/message-link.d.ts +32 -0
- package/dist/internal/lib/navigation/message-link.js +51 -0
- package/dist/internal/lib/navigation/session-href.d.ts +11 -0
- package/dist/internal/lib/navigation/session-href.js +20 -0
- package/dist/internal/lib/navigation/session-spawn-urls.d.ts +17 -0
- package/dist/internal/lib/navigation/session-spawn-urls.js +26 -0
- package/dist/internal/lib/space-scope.d.ts +3 -3
- package/dist/internal/lib/space-scope.js +3 -3
- package/dist/internal/lib/use-project-feature-flags.js +11 -9
- package/dist/internal/lib/web-notifications.d.ts +1 -1
- package/dist/internal/lib/web-notifications.js +0 -3
- package/dist/internal/notifications/notification-bell.js +1 -3
- package/dist/internal/notifications/notification-rows.d.ts +2 -2
- package/dist/internal/notifications/notification-rows.js +2 -3
- package/dist/internal/session-types/index.d.ts +5 -7
- package/dist/internal/session-types/index.js +5 -7
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/active-space-store.js +1 -1
- package/dist/internal/stores/kortix-computer-store.d.ts +15 -0
- package/dist/internal/stores/kortix-computer-store.js +12 -0
- package/dist/lib/routes.d.ts +17 -7
- package/dist/lib/routes.js +18 -2
- package/dist/markdown/app-link-icons.d.ts +7 -0
- package/dist/markdown/app-link-icons.js +20 -0
- package/dist/markdown/app-links.d.ts +9 -0
- package/dist/markdown/app-links.js +112 -0
- package/dist/markdown/doc-editor/doc-attrs.d.ts +28 -0
- package/dist/markdown/doc-editor/doc-attrs.js +156 -0
- package/dist/markdown/doc-editor/doc-embed.d.ts +6 -0
- package/dist/markdown/doc-editor/doc-embed.js +26 -8
- package/dist/markdown/doc-editor/doc-extensions.d.ts +10 -0
- package/dist/markdown/doc-editor/doc-extensions.js +55 -8
- package/dist/markdown/doc-editor/doc-fidelity.d.ts +72 -0
- package/dist/markdown/doc-editor/doc-fidelity.js +135 -0
- package/dist/markdown/doc-editor/doc-node-view.d.ts +9 -0
- package/dist/markdown/doc-editor/doc-node-view.js +29 -0
- package/dist/markdown/doc-editor/markdown.d.ts +20 -0
- package/dist/markdown/doc-editor/markdown.js +455 -18
- package/dist/markdown/markdown-frontmatter.d.ts +0 -3
- package/dist/markdown/markdown-frontmatter.js +45 -5
- package/dist/markdown/unified-markdown.d.ts +1 -1
- package/dist/markdown/unified-markdown.js +129 -10
- package/dist/primitives/emoji-picker.js +16 -100
- package/dist/primitives/emoji-tint.js +12 -12
- package/dist/primitives/entity-avatar.js +14 -9
- package/dist/primitives/glyph-face.d.ts +19 -12
- package/dist/primitives/glyph-face.js +59 -20
- package/dist/primitives/glyph-paths-source.d.ts +7 -0
- package/dist/primitives/glyph-paths-source.js +14 -6
- package/dist/primitives/glyph-paths.generated.d.ts +1 -1
- package/dist/primitives/glyph-paths.generated.js +947 -204
- package/dist/primitives/glyph-picker.d.ts +6 -10
- package/dist/primitives/glyph-picker.js +147 -98
- package/dist/primitives/glyph-registry.js +1604 -1
- package/dist/primitives/glyph-tint.d.ts +28 -3
- package/dist/primitives/glyph-tint.js +41 -83
- package/dist/primitives/kortix-glyphs.d.ts +32 -0
- package/dist/primitives/kortix-glyphs.js +157 -0
- package/dist/primitives/project-icon-picker.d.ts +8 -1
- package/dist/primitives/project-icon-picker.js +13 -5
- package/dist/primitives/user-avatar.d.ts +8 -1
- package/dist/primitives/user-avatar.js +2 -2
- package/dist/providers/ui-provider.d.ts +1 -8
- package/dist/session/actions/project-session-list-helpers.d.ts +4 -14
- package/dist/session/actions/project-session-list-helpers.js +6 -17
- package/dist/session/actions/session-label.d.ts +5 -9
- package/dist/session/actions/session-label.js +6 -10
- package/dist/session/agents/agent-model.js +4 -0
- package/dist/session/agents/agent-state-mark.d.ts +12 -7
- package/dist/session/agents/agent-state-mark.js +37 -15
- package/dist/session/agents/agent-strip.js +8 -2
- package/dist/session/agents/agent-surface.d.ts +81 -0
- package/dist/session/agents/agent-surface.js +97 -0
- package/dist/session/agents/held-messages.js +7 -4
- package/dist/session/agents/legacy-subagent-chat.js +1 -1
- package/dist/session/agents/session-peek.js +24 -12
- package/dist/session/agents/steer-session.d.ts +2 -0
- package/dist/session/agents/steer-session.js +3 -2
- package/dist/session/agents/subagent-dialog-content.d.ts +30 -1
- package/dist/session/agents/subagent-dialog-content.js +147 -33
- package/dist/session/agents/subagent-view.d.ts +15 -5
- package/dist/session/agents/subagent-view.js +28 -6
- package/dist/session/agents/tasks-panel.js +2 -12
- package/dist/session/agents/workflow-run-controls.d.ts +3 -1
- package/dist/session/agents/workflow-run-controls.js +12 -7
- package/dist/session/composer/ComposerCard.d.ts +7 -1
- package/dist/session/composer/ComposerCard.js +74 -9
- package/dist/session/composer/agent-selector.d.ts +16 -0
- package/dist/session/composer/agent-selector.js +19 -11
- package/dist/session/composer/chat-input/chat-input-control.d.ts +64 -0
- package/dist/session/composer/chat-input/chat-input-control.js +578 -0
- package/dist/session/composer/chat-input/chat-input-overrides.d.ts +76 -0
- package/dist/session/composer/chat-input/chat-input-overrides.js +40 -0
- package/dist/session/composer/chat-input/chat-input-panes.d.ts +56 -0
- package/dist/session/composer/chat-input/chat-input-panes.js +148 -0
- package/dist/session/composer/chat-input/chat-input-summary.d.ts +67 -0
- package/dist/session/composer/chat-input/chat-input-summary.js +67 -0
- package/dist/session/composer/chat-queue-lines.d.ts +20 -0
- package/dist/session/composer/chat-queue-lines.js +20 -0
- package/dist/session/composer/composer-chat-input.d.ts +8 -1
- package/dist/session/composer/composer-chat-input.js +12 -4
- package/dist/session/composer/composer-focus-context.d.ts +7 -0
- package/dist/session/composer/composer-focus-context.js +9 -0
- package/dist/session/composer/composer-toolbar.d.ts +3 -1
- package/dist/session/composer/composer-toolbar.js +3 -3
- package/dist/session/composer/composer-underbar.d.ts +10 -1
- package/dist/session/composer/composer-underbar.js +10 -2
- package/dist/session/composer/composer.d.ts +12 -0
- package/dist/session/composer/composer.js +55 -1
- package/dist/session/composer/editor/composer-editor.d.ts +10 -2
- package/dist/session/composer/editor/composer-editor.js +22 -6
- package/dist/session/composer/editor/first-visual-line.d.ts +2 -0
- package/dist/session/composer/editor/first-visual-line.js +9 -0
- package/dist/session/composer/editor/mention-node.js +2 -0
- package/dist/session/composer/editor/serialize.js +9 -1
- package/dist/session/composer/hooks/use-file-search.d.ts +1 -1
- package/dist/session/composer/hooks/use-file-search.js +1 -1
- package/dist/session/composer/menus/mention-controller.d.ts +3 -11
- package/dist/session/composer/menus/mention-controller.js +56 -16
- package/dist/session/composer/menus/mention-menu.d.ts +7 -2
- package/dist/session/composer/menus/mention-menu.js +17 -9
- package/dist/session/composer/menus/menu-items.d.ts +9 -0
- package/dist/session/composer/menus/space-mentions.d.ts +48 -0
- package/dist/session/composer/menus/space-mentions.js +83 -0
- package/dist/session/composer/prompt-history.d.ts +9 -0
- package/dist/session/composer/prompt-history.js +45 -0
- package/dist/session/composer/queue-projection.d.ts +2 -0
- package/dist/session/composer/queue-projection.js +1 -0
- package/dist/session/composer/queued-prompt-list.js +53 -4
- package/dist/session/composer/reasoning-effort-selector.d.ts +20 -0
- package/dist/session/composer/reasoning-effort-selector.js +3 -3
- package/dist/session/composer/types.d.ts +2 -1
- package/dist/session/header/session-site-header.js +7 -3
- package/dist/session/header/subagent-hover-card.d.ts +7 -4
- package/dist/session/header/subagent-hover-card.js +62 -11
- package/dist/session/list/session-status-mark.d.ts +42 -0
- package/dist/{workspace/sidebar → session/list}/session-status-mark.js +37 -2
- package/dist/session/models/model-selector.d.ts +7 -2
- package/dist/session/models/model-selector.js +39 -31
- package/dist/session/overrides/provider-secret-pool-editor.d.ts +11 -0
- package/dist/session/overrides/provider-secret-pool-editor.js +17 -0
- package/dist/session/overrides/session-overrides-control.d.ts +5 -0
- package/dist/session/overrides/session-overrides-toolbar.js +147 -7
- package/dist/session/panel/model-switch-event.d.ts +8 -0
- package/dist/session/panel/model-switch-event.js +19 -0
- package/dist/session/panel/session-audit-panel.js +3 -2
- package/dist/session/panel/session-desktop.js +5 -1
- package/dist/session/panel/session-panel-provider.js +1 -1
- package/dist/session/panel/shared/use-panel-handoffs.d.ts +2 -2
- package/dist/session/panel/shared/use-panel-handoffs.js +21 -2
- package/dist/session/participants/session-participants.d.ts +7 -5
- package/dist/session/participants/session-participants.js +11 -7
- package/dist/session/prompts/ask-deck.d.ts +21 -0
- package/dist/session/prompts/ask-deck.js +253 -0
- package/dist/session/prompts/session-permission-prompt.d.ts +7 -1
- package/dist/session/prompts/session-permission-prompt.js +3 -3
- package/dist/session/status/provisioning-failure.d.ts +4 -5
- package/dist/session/status/provisioning-failure.js +4 -5
- package/dist/session/status/session-load-state.d.ts +0 -1
- package/dist/session/status/session-load-state.js +2 -4
- package/dist/session/thread/message-parsing.d.ts +0 -1
- package/dist/session/thread/message-parsing.js +0 -1
- package/dist/session/thread/optimistic-turn.js +11 -2
- package/dist/session/thread/session-chat.d.ts +3 -1
- package/dist/session/thread/session-chat.js +498 -301
- package/dist/session/thread/session-context-metrics.d.ts +0 -1
- package/dist/session/thread/session-context-metrics.js +1 -1
- package/dist/session/thread/session-context-sub-sessions.js +3 -1
- package/dist/session/thread/show-work.d.ts +38 -0
- package/dist/session/thread/show-work.js +115 -0
- package/dist/session/thread/thread-boot-rows.d.ts +2 -1
- package/dist/session/thread/thread-boot-rows.js +7 -3
- package/dist/session/thread/transcript-rows.d.ts +36 -0
- package/dist/session/thread/transcript.d.ts +55 -2
- package/dist/session/thread/transcript.js +264 -33
- package/dist/session/thread/typing-indicator.d.ts +21 -0
- package/dist/session/thread/typing-indicator.js +46 -0
- package/dist/session/tool/shared/infrastructure-contexts.d.ts +12 -0
- package/dist/session/tool/shared/infrastructure-contexts.js +6 -0
- package/dist/session/tool/tool-part-renderer.d.ts +2 -0
- package/dist/session/tool/tool-part-renderer.js +16 -2
- package/dist/session/tool/tools/channel-send-card.js +1 -0
- package/dist/session/tool/tools/kortix-action-tool.js +8 -1
- package/dist/session/tool/tools/multi-agent-tool-bodies.d.ts +19 -0
- package/dist/session/tool/tools/multi-agent-tool-bodies.js +34 -13
- package/dist/session/tool/tools/session-spawn-urls.d.ts +1 -16
- package/dist/session/tool/tools/session-spawn-urls.js +4 -26
- package/dist/session/tool/tools/task-tool.d.ts +5 -18
- package/dist/session/tool/tools/task-tool.js +47 -86
- package/dist/session/tool/tools/workflow-progress.d.ts +14 -18
- package/dist/session/tool/tools/workflow-progress.js +24 -179
- package/dist/session/tool/tools/workflow-result-text.d.ts +15 -0
- package/dist/session/tool/tools/workflow-result-text.js +34 -0
- package/dist/session/tool/tools/workflow-run-card.d.ts +35 -0
- package/dist/session/tool/tools/workflow-run-card.js +157 -0
- package/dist/session/tool/tools/workflow-tool.js +45 -58
- package/dist/session/turn/activity-burst.d.ts +2 -2
- package/dist/session/turn/activity-burst.js +11 -5
- package/dist/session/turn/answered-question-step.d.ts +29 -0
- package/dist/session/turn/answered-question-step.js +48 -3
- package/dist/session/turn/channel-brand.js +4 -0
- package/dist/session/turn/message-author.d.ts +13 -8
- package/dist/session/turn/message-author.js +34 -16
- package/dist/session/turn/notice-batch-group.d.ts +4 -4
- package/dist/session/turn/notice-batch-group.js +5 -8
- package/dist/session/turn/peer-message-row.d.ts +15 -0
- package/dist/session/turn/peer-message-row.js +39 -30
- package/dist/session/turn/subagent-notice-row.d.ts +16 -1
- package/dist/session/turn/subagent-notice-row.js +47 -35
- package/dist/session/turn/throttled-markdown.js +4 -1
- package/dist/session/turn/turn-work-accordion.d.ts +10 -3
- package/dist/session/turn/turn-work-accordion.js +18 -11
- package/dist/session/turn/user-message.js +17 -43
- package/dist/session/turn/voice-turn.d.ts +22 -0
- package/dist/session/turn/voice-turn.js +32 -0
- package/dist/session/voice/call-audio.d.ts +32 -0
- package/dist/session/voice/call-audio.js +146 -0
- package/dist/session/voice/call-ring.d.ts +10 -0
- package/dist/session/voice/call-ring.js +52 -0
- package/dist/session/voice/screen-share.d.ts +24 -0
- package/dist/session/voice/screen-share.js +75 -0
- package/dist/session/voice/use-voice-call.d.ts +15 -0
- package/dist/session/voice/use-voice-call.js +217 -0
- package/dist/session/voice/voice-call-card.d.ts +6 -0
- package/dist/session/voice/voice-call-card.js +113 -0
- package/dist/session/voice/voice-call-state.d.ts +99 -0
- package/dist/session/voice/voice-call-state.js +104 -0
- package/dist/session/voice/voice-call-store.d.ts +22 -0
- package/dist/session/voice/voice-call-store.js +10 -0
- package/dist/session/voice/voice-call-url.d.ts +24 -0
- package/dist/session/voice/voice-call-url.js +33 -0
- package/dist/session/voice/voice-call.d.ts +11 -0
- package/dist/session/voice/voice-call.js +51 -0
- package/dist/styles/components.css +33 -0
- package/dist/styles/theme.css +26 -0
- package/dist/styles.css +1 -1
- package/dist/workspace/admin/project-admin-dashboard.d.ts +1 -1
- package/dist/workspace/admin/project-admin-dashboard.js +21 -13
- package/dist/workspace/index.d.ts +3 -2
- package/dist/workspace/index.js +2 -1
- package/dist/workspace/layout/project-home.js +13 -14
- package/dist/workspace/layout/use-project-home-send.d.ts +2 -0
- package/dist/workspace/layout/use-project-home-send.js +5 -3
- package/dist/workspace/memory/company-memory-page.d.ts +1 -1
- package/dist/workspace/memory/company-memory-page.js +1 -1
- package/dist/workspace/new/use-creatable-accounts.js +13 -4
- package/dist/workspace/projects/modal/project-icon-field.js +49 -34
- package/dist/workspace/review/review-center.d.ts +4 -1
- package/dist/workspace/review/review-center.js +6 -3
- package/dist/workspace/sessions/project-sessions-helpers.js +1 -1
- package/dist/workspace/sessions/project-sessions-view.js +1 -1
- package/dist/workspace/sessions/session-row.js +6 -4
- package/dist/workspace/sessions/sessions-toolbar.d.ts +1 -1
- package/dist/workspace/sessions/sessions-toolbar.js +4 -4
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +1 -1
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +4 -3
- package/dist/workspace/sidebar/footer/project-memory-nav.d.ts +1 -1
- package/dist/workspace/sidebar/footer/project-memory-nav.js +1 -1
- package/dist/workspace/sidebar/project-nav-items.js +2 -5
- package/dist/workspace/sidebar/project-session-list.d.ts +7 -1
- package/dist/workspace/sidebar/project-session-list.js +64 -24
- package/dist/workspace/sidebar/project-sidebar.js +10 -7
- package/dist/workspace/sidebar/project-spaces-nav.d.ts +7 -3
- package/dist/workspace/sidebar/project-spaces-nav.js +77 -46
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +4 -2
- package/dist/workspace/sidebar/session-brief-hover-card.js +47 -28
- package/dist/workspace/sidebar/session-filter-menu.js +1 -0
- package/dist/workspace/sidebar/session-group-sections.js +12 -4
- package/dist/workspace/sidebar/session-grouping.d.ts +4 -0
- package/dist/workspace/sidebar/session-grouping.js +2 -0
- package/dist/workspace/sidebar/session-source-icons.js +2 -0
- package/dist/workspace/sidebar/sidebar-more-group.d.ts +13 -0
- package/dist/workspace/sidebar/sidebar-more-group.js +27 -0
- package/dist/workspace/space/space-blocks.d.ts +3 -1
- package/dist/workspace/space/space-blocks.js +4 -7
- package/dist/workspace/space/space-page.d.ts +4 -6
- package/dist/workspace/space/space-page.js +12 -26
- package/dist/workspace/space/space-tab-panels.d.ts +14 -1
- package/dist/workspace/space/space-tab-panels.js +12 -21
- package/dist/workspace/space/space-templates.d.ts +4 -5
- package/dist/workspace/space/space-templates.js +2 -7
- package/dist/workspace/space/use-space-filter.d.ts +1 -1
- package/dist/workspace/space/use-space-filter.js +1 -1
- package/dist/workspace/spaces/channels-onboarding.d.ts +2 -2
- package/dist/workspace/spaces/channels-onboarding.js +4 -3
- package/dist/workspace/spaces/create-channel-dialog.js +4 -2
- package/dist/workspace/spaces/principal-card.d.ts +71 -0
- package/dist/workspace/spaces/principal-card.js +246 -0
- package/dist/workspace/spaces/space-auto-open.d.ts +8 -0
- package/dist/workspace/spaces/space-auto-open.js +18 -0
- package/dist/workspace/spaces/space-avatar.d.ts +44 -0
- package/dist/workspace/spaces/space-avatar.js +41 -0
- package/dist/workspace/spaces/space-details-panel.d.ts +26 -0
- package/dist/workspace/spaces/space-details-panel.js +119 -0
- package/dist/workspace/spaces/space-identity.d.ts +49 -0
- package/dist/workspace/spaces/space-identity.js +104 -0
- package/dist/workspace/spaces/space-members.js +1 -1
- package/dist/workspace/spaces/space-mention-source.d.ts +12 -0
- package/dist/workspace/spaces/space-mention-source.js +78 -0
- package/dist/workspace/spaces/space-people.d.ts +29 -0
- package/dist/workspace/spaces/space-people.js +87 -0
- package/dist/workspace/spaces/space-roster.d.ts +3 -2
- package/dist/workspace/spaces/space-roster.js +7 -4
- package/dist/workspace/spaces/space-tab-list.d.ts +37 -0
- package/dist/workspace/spaces/space-tab-list.js +82 -0
- package/dist/workspace/spaces/space-tabs.d.ts +74 -0
- package/dist/workspace/spaces/space-tabs.js +199 -0
- package/dist/workspace/spaces/space-threads-tab.js +1 -1
- package/dist/workspace/spaces/space-timeline-view.js +126 -17
- package/dist/workspace/spaces/space-timeline.d.ts +44 -9
- package/dist/workspace/spaces/space-timeline.js +120 -12
- package/dist/workspace/spaces/space-view.d.ts +19 -12
- package/dist/workspace/spaces/space-view.js +201 -67
- package/dist/workspace/spaces/use-personal-space-name.d.ts +2 -0
- package/dist/workspace/spaces/use-personal-space-name.js +10 -0
- package/package.json +17 -13
- package/skills/kortix-ui/SKILL.md +3 -3
- package/skills/kortix-ui/references/custom-dashboard.md +3 -4
- package/skills/kortix-ui/references/modules.md +4 -4
- package/dist/_vendor/shared/room-prompt.d.ts +0 -66
- package/dist/customize/agents/agent-section-rail.d.ts +0 -21
- package/dist/customize/agents/agent-section-rail.js +0 -23
- package/dist/internal/hooks/projects/use-warm-project-session.d.ts +0 -270
- package/dist/internal/hooks/projects/use-warm-project-session.js +0 -362
- package/dist/internal/hooks/projects/warm-session-seed.d.ts +0 -66
- package/dist/internal/hooks/projects/warm-session-seed.js +0 -80
- package/dist/internal/hooks/projects/warm-session-taken-registry.d.ts +0 -61
- package/dist/internal/hooks/projects/warm-session-taken-registry.js +0 -141
- package/dist/workspace/sidebar/footer/project-rooms-nav.d.ts +0 -9
- package/dist/workspace/sidebar/footer/project-rooms-nav.js +0 -32
- package/dist/workspace/sidebar/session-status-mark.d.ts +0 -19
- package/dist/workspace/space/space-room.d.ts +0 -20
- package/dist/workspace/space/space-room.js +0 -27
- /package/dist/{workspace/sidebar → session/list}/session-list-chrome.d.ts +0 -0
- /package/dist/{workspace/sidebar → session/list}/session-list-chrome.js +0 -0
|
@@ -11,8 +11,9 @@ export function notificationInboxOn(project) {
|
|
|
11
11
|
return notificationCenterOn(project) || (project?.experimental?.artifacts === true && project.experimental.artifact_comments === true);
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* The flag for one project from the query cache: its
|
|
15
|
-
* project list that holds it. Undefined when
|
|
14
|
+
* The flag for one project from the query cache: its row, else its detail,
|
|
15
|
+
* else a cached project list that holds it. Undefined when none holds it.
|
|
16
|
+
* Sends no request.
|
|
16
17
|
*/
|
|
17
18
|
export function cachedNotificationCenterAnswer(client, projectId) {
|
|
18
19
|
return cachedFlagAnswer(client, projectId, notificationCenterOn);
|
|
@@ -20,6 +21,9 @@ export function cachedNotificationCenterAnswer(client, projectId) {
|
|
|
20
21
|
function cachedFlagAnswer(client, projectId, enabled) {
|
|
21
22
|
if (!client || !projectId)
|
|
22
23
|
return undefined;
|
|
24
|
+
const row = client.getQueryData(qk.project.summary(projectId));
|
|
25
|
+
if (row)
|
|
26
|
+
return enabled(row);
|
|
23
27
|
const detail = client.getQueryData(qk.project.detail(projectId));
|
|
24
28
|
if (detail?.project)
|
|
25
29
|
return enabled(detail.project);
|
|
@@ -41,7 +45,8 @@ export function cachedNotificationCenter(client, projectId) {
|
|
|
41
45
|
}
|
|
42
46
|
const [ROOT, LIST_SCOPE] = qk.projects.scope();
|
|
43
47
|
const [, DETAIL_SCOPE, , DETAIL] = qk.project.detail('');
|
|
44
|
-
|
|
48
|
+
const [, , , SUMMARY] = qk.project.summary('');
|
|
49
|
+
/** A project-list, project-row or project-detail entry that holds a project with the flag on. */
|
|
45
50
|
function holdsFlagOn(query, enabled) {
|
|
46
51
|
const key = query.queryKey;
|
|
47
52
|
const data = query.state.data;
|
|
@@ -52,6 +57,8 @@ function holdsFlagOn(query, enabled) {
|
|
|
52
57
|
if (key[1] === DETAIL_SCOPE && key.length === 4 && key[3] === DETAIL) {
|
|
53
58
|
return enabled(data?.project);
|
|
54
59
|
}
|
|
60
|
+
if (key[1] === DETAIL_SCOPE && key.length === 4 && key[3] === SUMMARY)
|
|
61
|
+
return enabled(data);
|
|
55
62
|
return false;
|
|
56
63
|
}
|
|
57
64
|
/** True when any project in the query cache has the flag on. */
|
|
@@ -106,23 +113,28 @@ export function useNotificationInboxEnabled(projectId) {
|
|
|
106
113
|
}
|
|
107
114
|
/**
|
|
108
115
|
* The inbox gate of `NotificationHost`, except while the
|
|
109
|
-
* project's
|
|
116
|
+
* project's row loads. Then a cached detail or project list answers, else the
|
|
110
117
|
* previous answer stays. So entering a flag-on project from `/projects` or
|
|
111
118
|
* from another flag-on project does not unmount the host and subscribe Web
|
|
112
119
|
* Push again. Only a loaded detail without the flag turns it off. A cold
|
|
113
|
-
* load of a project page starts off.
|
|
120
|
+
* load of a project page starts off. Only a loaded row (or, before it, a
|
|
121
|
+
* loaded detail) without the flag turns it off.
|
|
114
122
|
*/
|
|
115
123
|
export function useNotificationHostGate(projectId) {
|
|
116
124
|
const client = useQueryClient();
|
|
117
|
-
// The global host sits outside the access boundary. Read the shell's
|
|
118
|
-
//
|
|
125
|
+
// The global host sits outside the access boundary. Read the shell's project
|
|
126
|
+
// row from the cache (the detail when no row is cached): no request for a potentially revoked project, and no
|
|
119
127
|
// observer. An observer added a detail query without a queryFn (also for the
|
|
120
128
|
// empty id of a page outside any project), and every refetch of it logged
|
|
121
129
|
// "No queryFn was passed".
|
|
122
|
-
const
|
|
130
|
+
const subscribe = useCacheSubscription(client, !!projectId);
|
|
131
|
+
const row = useSyncExternalStore(subscribe, () => (projectId ? client.getQueryState(qk.project.summary(projectId)) : undefined), () => undefined);
|
|
132
|
+
const detail = useSyncExternalStore(subscribe, () => (projectId ? client.getQueryState(qk.project.detail(projectId)) : undefined), () => undefined);
|
|
133
|
+
const rowLoaded = !!row && row.status !== 'pending';
|
|
134
|
+
const detailLoaded = !!detail && detail.status !== 'pending';
|
|
123
135
|
const flag = {
|
|
124
|
-
isLoading: !
|
|
125
|
-
enabled: notificationInboxOn(detail?.data?.project),
|
|
136
|
+
isLoading: !rowLoaded && !detailLoaded,
|
|
137
|
+
enabled: notificationInboxOn(rowLoaded ? row?.data : detail?.data?.project),
|
|
126
138
|
};
|
|
127
139
|
const anyProject = useAnyCachedNotificationInbox(client, !projectId);
|
|
128
140
|
const [previous, setPrevious] = useState(false);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
+
/** Discord's blurple (discord.com brand guidelines). */
|
|
3
|
+
export declare const DISCORD_BLURPLE = "#5865F2";
|
|
4
|
+
/** The Discord logo's Clyde glyph in a 24 × 24 box (Simple Icons, CC0). */
|
|
5
|
+
export declare const DISCORD_PATH = "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z";
|
|
6
|
+
/** The Discord mark: Clyde in blurple. */
|
|
7
|
+
export declare const Discord: ({ className }: {
|
|
8
|
+
className?: string;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from '../lib/utils.js';
|
|
4
|
+
/** Discord's blurple (discord.com brand guidelines). */
|
|
5
|
+
export const DISCORD_BLURPLE = '#5865F2';
|
|
6
|
+
/** The Discord logo's Clyde glyph in a 24 × 24 box (Simple Icons, CC0). */
|
|
7
|
+
export const DISCORD_PATH = 'M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z';
|
|
8
|
+
/** The Discord mark: Clyde in blurple. */
|
|
9
|
+
export const Discord = ({ className }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: cn('size-4', className), "aria-hidden": "true", children: _jsx("path", { fill: DISCORD_BLURPLE, d: DISCORD_PATH }) }));
|
|
@@ -61,7 +61,7 @@ export function ConnectMcpModal({ open, onOpenChange, }) {
|
|
|
61
61
|
return (_jsx(Modal, { open: open, onOpenChange: onOpenChange, children: _jsx(ModalContent, { className: "space-y-0 lg:max-w-3xl", closeClassName: "max-sm:bg-background border-0 overflow-hidden", children: _jsxs("div", { className: "grid sm:grid-cols-5 lg:min-h-128", children: [_jsxs("div", { "aria-hidden": "true", className: "dark bg-background relative isolate flex h-48 items-center justify-center overflow-hidden rounded-t-xl border-b sm:col-span-2 sm:h-auto sm:rounded-tr-none sm:border-r sm:border-b-0 lg:rounded-bl-xl", children: [_jsx(BeamsShader, {}), _jsx("div", { className: "relative grid grid-cols-4 gap-2.5 sm:grid-cols-2", children: ART_CLIENTS.map(({ id, Logo }) => (
|
|
62
62
|
// `bg-foreground` is white under the art's `dark` scope: the marks carry their
|
|
63
63
|
// own brand colors (Codex brings its own white tile).
|
|
64
|
-
_jsx("span", { className: "bg-foreground flex size-16 items-center justify-center rounded-xl shadow-lg", children: _jsx(Logo, { className: "size-8" }) }, id))) })] }), _jsxs("div", { className: "flex min-w-0 flex-col gap-5 p-5 sm:col-span-3 lg:p-8", children: [_jsxs("header", { className: "space-y-1.5 pr-10", children: [_jsx(ModalTitle, { className: "text-lg font-medium text-balance", children: t('title') }), _jsx(ModalDescription, { className: "text-pretty", children: t('description') })] }), _jsxs("div", { className: "bg-muted flex min-w-0 items-center gap-3 rounded-md border p-3", children: [_jsx("code", { className: "min-w-0 flex-1 text-xs break-all select-text", children: url }), _jsx(ClientAction, { client: CLIENTS[0], url: url })] }), _jsx("ul", { className: "divide-border divide-y", children: CLIENTS.map((client) => (_jsxs("li", { className: "flex items-center gap-3 py-2.5", children: [_jsx("span", { className: "bg-muted flex size-9 shrink-0 items-center justify-center rounded-sm", children: _jsx(client.Logo, { className: "size-5" }) }), _jsxs("div", { className: "min-w-0 flex-1 space-y-0.5", children: [_jsx("p", { className: "text-sm font-medium", children: client.name ?? t('anyClient') }), _jsx("p", { className: "text-muted-foreground truncate text-xs", children: t(`via.${client.id}`) })] }), _jsx(ClientAction, { client: client, url: url })] }, client.id))) }), _jsxs("footer", { className: "mt-auto flex items-center justify-between pt-2", children: [_jsx(Button, { asChild: true, variant: "ghost", size: "sm", className: "text-muted-foreground gap-1", children: _jsxs(Link, { href: "/docs/
|
|
64
|
+
_jsx("span", { className: "bg-foreground flex size-16 items-center justify-center rounded-xl shadow-lg", children: _jsx(Logo, { className: "size-8" }) }, id))) })] }), _jsxs("div", { className: "flex min-w-0 flex-col gap-5 p-5 sm:col-span-3 lg:p-8", children: [_jsxs("header", { className: "space-y-1.5 pr-10", children: [_jsx(ModalTitle, { className: "text-lg font-medium text-balance", children: t('title') }), _jsx(ModalDescription, { className: "text-pretty", children: t('description') })] }), _jsxs("div", { className: "bg-muted flex min-w-0 items-center gap-3 rounded-md border p-3", children: [_jsx("code", { className: "min-w-0 flex-1 text-xs break-all select-text", children: url }), _jsx(ClientAction, { client: CLIENTS[0], url: url })] }), _jsx("ul", { className: "divide-border divide-y", children: CLIENTS.map((client) => (_jsxs("li", { className: "flex items-center gap-3 py-2.5", children: [_jsx("span", { className: "bg-muted flex size-9 shrink-0 items-center justify-center rounded-sm", children: _jsx(client.Logo, { className: "size-5" }) }), _jsxs("div", { className: "min-w-0 flex-1 space-y-0.5", children: [_jsx("p", { className: "text-sm font-medium", children: client.name ?? t('anyClient') }), _jsx("p", { className: "text-muted-foreground truncate text-xs", children: t(`via.${client.id}`) })] }), _jsx(ClientAction, { client: client, url: url })] }, client.id))) }), _jsxs("footer", { className: "mt-auto flex items-center justify-between pt-2", children: [_jsx(Button, { asChild: true, variant: "ghost", size: "sm", className: "text-muted-foreground gap-1", children: _jsxs(Link, { href: "/docs/guide#other-ai-tools-mcp", target: "_blank", children: [t('docs'), _jsx(ArrowUpRightIcon, { className: "size-3.5 shrink-0" })] }) }), _jsx(Button, { type: "button", onClick: () => onOpenChange(false), children: t('done') })] })] })] }) }) }));
|
|
65
65
|
}
|
|
66
66
|
// The secondary fill sits close to the row; a ring on hover marks the target.
|
|
67
67
|
const ACTION_CLASS = 'hover:border-ring hover:border hover:ring-ring/15 hover:ring-2 hit-area-y-3 hit-area-l-3 shrink-0 border border-transparent';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { adminPath } from '../../lib/routes.js';
|
|
4
|
-
import { useProjectConfig } from '@kortix/sdk/react';
|
|
4
|
+
import { useProjectConfig, useSessionAsks } from '@kortix/sdk/react';
|
|
5
5
|
import { CpuIcon, GearSixIcon, ListIcon, TrayIcon } from '@phosphor-icons/react';
|
|
6
6
|
import { createContext, useContext } from 'react';
|
|
7
7
|
import { useTranslations as useI18nTranslations } from '../../i18n/index.js';
|
|
@@ -50,7 +50,11 @@ export function ProjectCapabilityNav({ projectId }) {
|
|
|
50
50
|
const pathname = useUiPathname();
|
|
51
51
|
const config = useProjectConfig(projectId);
|
|
52
52
|
const access = useCapabilityAccess(projectId);
|
|
53
|
-
const
|
|
53
|
+
const reviewNeedsYou = useReviewSessionSummary(projectId, { enabled: true }).totalNeedsYou;
|
|
54
|
+
// Questions and permission asks wait in Review too (its deck). Connector
|
|
55
|
+
// approvals are already in the review summary, so they are not added twice.
|
|
56
|
+
const asks = useSessionAsks(projectId).data?.asks;
|
|
57
|
+
const needsYou = reviewNeedsYou + (asks?.filter((ask) => ask.kind !== 'approval').length ?? 0);
|
|
54
58
|
const isMobile = useIsMobile();
|
|
55
59
|
const { setOpenMobile } = useSidebar();
|
|
56
60
|
const tTabs = useI18nTranslations('agentEditor.tabs');
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
* The e2e journey `18-apps-ui` finds the page by the
|
|
12
12
|
* `<h1>`.
|
|
13
13
|
*/
|
|
14
|
-
export declare function ProjectPageHeader({ title, titleAccessory, children, }: {
|
|
14
|
+
export declare function ProjectPageHeader({ title, titleAccessory, breadcrumb, children, }: {
|
|
15
15
|
title: string;
|
|
16
|
+
/** The parent page before the title (a link and a separator): "Goals › <goal>". */
|
|
17
|
+
breadcrumb?: React.ReactNode;
|
|
16
18
|
titleAccessory?: React.ReactNode;
|
|
17
19
|
children?: React.ReactNode;
|
|
18
20
|
}): import("react").JSX.Element;
|
|
@@ -14,7 +14,7 @@ import { SidebarToggle } from './sidebar-toggle.js';
|
|
|
14
14
|
* The e2e journey `18-apps-ui` finds the page by the
|
|
15
15
|
* `<h1>`.
|
|
16
16
|
*/
|
|
17
|
-
export function ProjectPageHeader({ title, titleAccessory, children, }) {
|
|
17
|
+
export function ProjectPageHeader({ title, titleAccessory, breadcrumb, children, }) {
|
|
18
18
|
const sidebar = useOptionalSidebar();
|
|
19
|
-
return (_jsxs("div", { className: "kx-titlebar-row kx-capability-titlebar relative flex shrink-0 items-center gap-1 border-b px-2", "data-sidebar-collapsed": sidebar?.state === 'collapsed' || undefined, children: [_jsx(SidebarToggle, {}), _jsxs("div", { className: "kx-titlebar-tabs flex h-10 min-w-0 flex-1 items-center gap-1.5 px-3", children: [_jsx("h1", { className: "text-foreground truncate text-sm font-medium", children: title }), titleAccessory] }), children ? _jsx("div", { className: "flex shrink-0 items-center gap-1", children: children }) : null] }));
|
|
19
|
+
return (_jsxs("div", { className: "kx-titlebar-row kx-capability-titlebar relative flex shrink-0 items-center gap-1 border-b px-2", "data-sidebar-collapsed": sidebar?.state === 'collapsed' || undefined, children: [_jsx(SidebarToggle, {}), _jsxs("div", { className: "kx-titlebar-tabs flex h-10 min-w-0 flex-1 items-center gap-1.5 px-3", children: [breadcrumb, _jsx("h1", { className: "text-foreground truncate text-sm font-medium", children: title }), titleAccessory] }), children ? _jsx("div", { className: "flex shrink-0 items-center gap-1", children: children }) : null] }));
|
|
20
20
|
}
|
|
@@ -1,42 +1,2 @@
|
|
|
1
1
|
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Who can use a new provider connection. "Only you" shares it with nobody, so
|
|
5
|
-
* any project member may create it. "Everyone" and "Specific members" share a
|
|
6
|
-
* credential, which the API gates on `project.secret.write`.
|
|
7
|
-
*/
|
|
8
|
-
export type ConnectionAccessChoice = 'private' | 'project' | 'members';
|
|
9
|
-
/** Access fields for a new API key. The API always grants the creator. */
|
|
10
|
-
export declare function keyAccessFields(choice: ConnectionAccessChoice, memberIds: string[]): {
|
|
11
|
-
access_mode: 'project' | 'members';
|
|
12
|
-
user_ids: string[];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Sharing intent for a new ChatGPT account. Before the viewer is known, an
|
|
16
|
-
* empty member list keeps the account owner-only on the API as well.
|
|
17
|
-
*/
|
|
18
|
-
export declare function chatGptSharing(choice: ConnectionAccessChoice, memberIds: string[], viewerId: string | undefined): ConnectorSharing;
|
|
19
|
-
/** First name for a new account's default label ("ChatGPT · Ada"). */
|
|
20
|
-
export declare function labelOwnerName(user: {
|
|
21
|
-
email?: string | null;
|
|
22
|
-
user_metadata?: Record<string, unknown>;
|
|
23
|
-
} | null | undefined): string;
|
|
24
|
-
export type AccessSummary = {
|
|
25
|
-
kind: 'project';
|
|
26
|
-
} | {
|
|
27
|
-
kind: 'you';
|
|
28
|
-
} | {
|
|
29
|
-
kind: 'owner';
|
|
30
|
-
ownerId: string;
|
|
31
|
-
} | {
|
|
32
|
-
kind: 'members';
|
|
33
|
-
count: number;
|
|
34
|
-
};
|
|
35
|
-
/** The access line on a connection row. Granted to its creator alone = private. */
|
|
36
|
-
export declare function accessSummary(secret: Pick<AccountSecretResource, 'access_mode' | 'granted_user_ids' | 'created_by'>, viewerId: string | undefined): AccessSummary;
|
|
37
|
-
/**
|
|
38
|
-
* A ChatGPT account whose login stopped working: the gateway marked it
|
|
39
|
-
* (`needs_reauth_at`), or it is inactive. It stays selectable; reconnecting it
|
|
40
|
-
* clears the mark.
|
|
41
|
-
*/
|
|
42
|
-
export declare function needsReconnection(secret: Pick<AccountSecretResource, 'active' | 'needs_reauth_at'>): boolean;
|
|
2
|
+
export { type ConnectionAccessChoice, type ConnectionAccessSummary as AccessSummary, connectionAccessSummary as accessSummary, connectionLabelOwnerName as labelOwnerName, connectionNeedsReconnection as needsReconnection, connectionSharing as chatGptSharing, providerKeyAccessFields as keyAccessFields, } from '@kortix/sdk';
|
|
@@ -1,46 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return { access_mode: 'project', user_ids: [] };
|
|
5
|
-
return { access_mode: 'members', user_ids: choice === 'members' ? memberIds : [] };
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Sharing intent for a new ChatGPT account. Before the viewer is known, an
|
|
9
|
-
* empty member list keeps the account owner-only on the API as well.
|
|
10
|
-
*/
|
|
11
|
-
export function chatGptSharing(choice, memberIds, viewerId) {
|
|
12
|
-
if (choice === 'project')
|
|
13
|
-
return { mode: 'project' };
|
|
14
|
-
if (choice === 'members' && memberIds.length)
|
|
15
|
-
return { mode: 'members', memberIds };
|
|
16
|
-
return viewerId ? { mode: 'private', ownerId: viewerId } : { mode: 'members', memberIds: [] };
|
|
17
|
-
}
|
|
18
|
-
/** First name for a new account's default label ("ChatGPT · Ada"). */
|
|
19
|
-
export function labelOwnerName(user) {
|
|
20
|
-
const metadata = user?.user_metadata ?? {};
|
|
21
|
-
for (const key of ['full_name', 'name']) {
|
|
22
|
-
const value = metadata[key];
|
|
23
|
-
const first = typeof value === 'string' ? value.trim().split(/\s+/)[0] : '';
|
|
24
|
-
if (first)
|
|
25
|
-
return first;
|
|
26
|
-
}
|
|
27
|
-
return user?.email?.split('@')[0] ?? '';
|
|
28
|
-
}
|
|
29
|
-
/** The access line on a connection row. Granted to its creator alone = private. */
|
|
30
|
-
export function accessSummary(secret, viewerId) {
|
|
31
|
-
if (secret.access_mode === 'project')
|
|
32
|
-
return { kind: 'project' };
|
|
33
|
-
const grantees = secret.granted_user_ids;
|
|
34
|
-
if (grantees.length === 1 && grantees[0] === secret.created_by) {
|
|
35
|
-
return secret.created_by === viewerId ? { kind: 'you' } : { kind: 'owner', ownerId: secret.created_by };
|
|
36
|
-
}
|
|
37
|
-
return { kind: 'members', count: grantees.length };
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A ChatGPT account whose login stopped working: the gateway marked it
|
|
41
|
-
* (`needs_reauth_at`), or it is inactive. It stays selectable; reconnecting it
|
|
42
|
-
* clears the mark.
|
|
43
|
-
*/
|
|
44
|
-
export function needsReconnection(secret) {
|
|
45
|
-
return !secret.active || Boolean(secret.needs_reauth_at);
|
|
46
|
-
}
|
|
1
|
+
// The rules live in `@kortix/sdk` (core/models/provider-connections) so the TUI
|
|
2
|
+
// reads the same ones. These names stay for the web's existing imports.
|
|
3
|
+
export { connectionAccessSummary as accessSummary, connectionLabelOwnerName as labelOwnerName, connectionNeedsReconnection as needsReconnection, connectionSharing as chatGptSharing, providerKeyAccessFields as keyAccessFields, } from '@kortix/sdk';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
2
|
import type { NoiseRule, RuntimeNoiseInput, SentryNoiseEvent } from './browser-noise/evidence.js';
|
|
3
3
|
export { isEmptyMessageUnresolvedBrowserChunkNoise, isStaleWebpackRuntimeCallNoise, } from './browser-noise/rules/chunk-load.js';
|
|
4
|
-
export { isClientRequestTimeoutMessage, isExpectedBillingGateMessage,
|
|
4
|
+
export { isClientRequestTimeoutMessage, isExpectedBillingGateMessage, isGitMirrorUnavailableNoiseMessage, isModelNotServableNoise, isRuntimeNotReadyNoiseMessage, isServerDeadlineNoiseMessage, } from './browser-noise/rules/expected-states.js';
|
|
5
5
|
export { isCaptchaInterceptorNoise, isExtensionRejectedObjectNoise, isExtensionSource, isInjectedAppSource, isInjectedScriptSendMessageNoise, isInpageJsNoErrorMessageNoise, isInpageWalletStreamNoise, isTronLinkProxyNoise, isUserscriptManagerNoise, } from './browser-noise/rules/extensions.js';
|
|
6
6
|
export { isCanvasImageDataOOMNoise, isPaperShaderImageUniformNoise, isPaperShaderNullContextNoise, isPaperShaderWebGLUnsupportedNoise, isSpoofedWebGLGetParameterNoise, } from './browser-noise/rules/graphics.js';
|
|
7
7
|
export { isGoogletagUndefinedNoise, isOneTrustJsonParseNoise, isRedefineInjectedWalletNoise, isRedefineWebdriverNoise, isVercelLiveFeedbackNoise, } from './browser-noise/rules/injected-scripts.js';
|
|
@@ -26,7 +26,7 @@ import { REJECTION_RULES } from './browser-noise/rules/rejections.js';
|
|
|
26
26
|
import { STORAGE_RULES } from './browser-noise/rules/storage.js';
|
|
27
27
|
import { WEBVIEW_RULES } from './browser-noise/rules/webview.js';
|
|
28
28
|
export { isEmptyMessageUnresolvedBrowserChunkNoise, isStaleWebpackRuntimeCallNoise, } from './browser-noise/rules/chunk-load.js';
|
|
29
|
-
export { isClientRequestTimeoutMessage, isExpectedBillingGateMessage,
|
|
29
|
+
export { isClientRequestTimeoutMessage, isExpectedBillingGateMessage, isGitMirrorUnavailableNoiseMessage, isModelNotServableNoise, isRuntimeNotReadyNoiseMessage, isServerDeadlineNoiseMessage, } from './browser-noise/rules/expected-states.js';
|
|
30
30
|
export { isCaptchaInterceptorNoise, isExtensionRejectedObjectNoise, isExtensionSource, isInjectedAppSource, isInjectedScriptSendMessageNoise, isInpageJsNoErrorMessageNoise, isInpageWalletStreamNoise, isTronLinkProxyNoise, isUserscriptManagerNoise, } from './browser-noise/rules/extensions.js';
|
|
31
31
|
export { isCanvasImageDataOOMNoise, isPaperShaderImageUniformNoise, isPaperShaderNullContextNoise, isPaperShaderWebGLUnsupportedNoise, isSpoofedWebGLGetParameterNoise, } from './browser-noise/rules/graphics.js';
|
|
32
32
|
export { isGoogletagUndefinedNoise, isOneTrustJsonParseNoise, isRedefineInjectedWalletNoise, isRedefineWebdriverNoise, isVercelLiveFeedbackNoise, } from './browser-noise/rules/injected-scripts.js';
|
|
@@ -19,19 +19,6 @@ export declare function isRuntimeNotReadyNoiseMessage(message: unknown): boolean
|
|
|
19
19
|
* `ApiError` that merely contains the billing phrase is never matched.
|
|
20
20
|
*/
|
|
21
21
|
export declare function isExpectedBillingGateMessage(message: unknown): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether a message is the EXPECTED "no compaction model configured"
|
|
24
|
-
* configuration state thrown by the SDK's `useSummarizeRuntimeSession`
|
|
25
|
-
* mutation (`NoCompactionModelError`) when every model-resolution fallback
|
|
26
|
-
* tier fails. The host already surfaces it via a user-facing toast; it must
|
|
27
|
-
* never page Better Stack, but the sentinel error can leak to Sentry as an
|
|
28
|
-
* unhandled promise rejection (`void loadingToast(...)` re-throws after
|
|
29
|
-
* showing the toast → `onunhandledrejection` auto-capture). Match is exact
|
|
30
|
-
* after trimming, with only the canonical browser/Sentry wrappers we
|
|
31
|
-
* explicitly support, so a longer real error that merely mentions the wording
|
|
32
|
-
* is never matched.
|
|
33
|
-
*/
|
|
34
|
-
export declare function isExpectedCompactionNoModelMessage(message: unknown): boolean;
|
|
35
22
|
/**
|
|
36
23
|
* Whether a message is the EXPECTED "model not available for this account"
|
|
37
24
|
* UI validation state — the typed 409 `code: 'model_not_servable'` the API
|
|
@@ -50,8 +37,8 @@ export declare function isExpectedCompactionNoModelMessage(message: unknown): bo
|
|
|
50
37
|
* REGEX anchored on the EXACT API wording `Model "…" is not available for
|
|
51
38
|
* this account`, with the canonical `ApiError: ` / `Unhandled promise
|
|
52
39
|
* rejection: ` wrappers, so a longer real error that merely mentions the
|
|
53
|
-
* phrase is never matched. Sibling to `isExpectedBillingGateMessage`
|
|
54
|
-
*
|
|
40
|
+
* phrase is never matched. Sibling to `isExpectedBillingGateMessage`
|
|
41
|
+
* (also `ApiError`/Error throws that
|
|
55
42
|
* leak via `void` fire-and-forget); deliberately message-only with NO
|
|
56
43
|
* first-party frame negative guard — see `MODEL_NOT_SERVABLE_NOISE_PATTERNS`
|
|
57
44
|
* for the full rationale. See Better Stack pattern `9784f440…`.
|
|
@@ -47,32 +47,6 @@ const BILLING_GATE_EXPECTED_MESSAGES = [
|
|
|
47
47
|
// `payment_failed` — the last payment failed and the wallet is empty.
|
|
48
48
|
"Your last payment didn't go through and your wallet is empty. Update your payment method or top up to keep running.",
|
|
49
49
|
];
|
|
50
|
-
// Expected "no compaction model configured" configuration state. The SDK's
|
|
51
|
-
// `useSummarizeRuntimeSession` mutation
|
|
52
|
-
// (`packages/sdk/src/react/use-opencode-sessions/sessions.ts`) throws a
|
|
53
|
-
// sentinel-marked `NoCompactionModelError`
|
|
54
|
-
// (`packages/sdk/src/react/use-opencode-sessions/no-compaction-model-error.ts`;
|
|
55
|
-
// `apps/mobile` uses the same mutation)
|
|
56
|
-
// when every model-resolution fallback tier fails (no config default, no
|
|
57
|
-
// assistant message in the thread, no connected provider/model). It is an
|
|
58
|
-
// EXPECTED, user-facing configuration outcome — the host already surfaces it
|
|
59
|
-
// via the `loadingToast` error toast ("No model available for compaction.
|
|
60
|
-
// Please configure a model in settings.") and the global react-query mutation
|
|
61
|
-
// `onError` toast — never a code defect.
|
|
62
|
-
//
|
|
63
|
-
// It leaks to Sentry as an unhandled promise rejection: `compact-modal.tsx`
|
|
64
|
-
// fires `void loadingToast(() => summarize.mutateAsync(...))`, and
|
|
65
|
-
// `loadingToast` re-throws the error after showing the toast (toast.tsx), so
|
|
66
|
-
// the `void`-fired rejection is auto-captured by the Sentry SDK's
|
|
67
|
-
// `onunhandledrejection` integration. Drop it here at the telemetry gate so
|
|
68
|
-
// the expected config state never pages Better Stack, regardless of which
|
|
69
|
-
// capture path delivered it. A longer real mutation failure (network error,
|
|
70
|
-
// `summarize` 5xx, a genuine `TypeError`, …) keeps reporting — only an exact
|
|
71
|
-
// match for this message (plus the explicit canonical wrappers below) is
|
|
72
|
-
// suppressed.
|
|
73
|
-
const COMPACTION_NO_MODEL_EXPECTED_MESSAGES = [
|
|
74
|
-
'No model available for compaction. Please configure a model in settings.',
|
|
75
|
-
];
|
|
76
50
|
// Expected "model not available for this account" UI validation state. The API
|
|
77
51
|
// returns a TYPED 409 with `code: 'model_not_servable'`
|
|
78
52
|
// (`apps/api/src/projects/routes/models.ts` and `channel-bindings.ts:288`, both
|
|
@@ -118,18 +92,18 @@ const COMPACTION_NO_MODEL_EXPECTED_MESSAGES = [
|
|
|
118
92
|
// `handled:false`).
|
|
119
93
|
//
|
|
120
94
|
// This is the leak-path backstop for the #6082 SDK gate, sibling to
|
|
121
|
-
// `isExpectedBillingGateMessage`
|
|
95
|
+
// `isExpectedBillingGateMessage`
|
|
122
96
|
// (also `ApiError`/Error throws that leak via `void` fire-and-forget →
|
|
123
97
|
// `onunhandledrejection`). The model name varies (e.g.
|
|
124
98
|
// `openai/gpt-5.4-mini`, `nvidia/minimaxai/minimax-m3`), so — unlike the
|
|
125
|
-
// billing-gate
|
|
99
|
+
// billing-gate exact-string matchers — this is a REGEX anchored
|
|
126
100
|
// on the EXACT API wording `Model "…" is not available for this account`
|
|
127
101
|
// (the `Model "` prefix and `is not available for this account` suffix are
|
|
128
102
|
// the API's own canonical strings across all four emitting routes), with the
|
|
129
103
|
// canonical `ApiError: ` / `Unhandled promise rejection: ` wrappers stripped
|
|
130
104
|
// so all capture paths (window.onerror, onunhandledrejection, Sentry
|
|
131
105
|
// exception) classify consistently. Deliberately message-only with NO
|
|
132
|
-
// first-party frame negative guard — mirroring the billing-gate
|
|
106
|
+
// first-party frame negative guard — mirroring the billing-gate
|
|
133
107
|
// matchers — because (a) the message is the API's own canonical wording
|
|
134
108
|
// (never a coincidental app-logic phrase), (b) the SDK gate already handles
|
|
135
109
|
// the `onError` path, and (c) the unhandled-rejection stack DOES carry
|
|
@@ -165,7 +139,7 @@ const MODEL_NOT_SERVABLE_NOISE_PATTERNS = [
|
|
|
165
139
|
//
|
|
166
140
|
// This is the frontend mirror of the API's request-deadline 503
|
|
167
141
|
// (`apps/api/src/middleware/request-deadline.ts`, de-noised from Sentry by
|
|
168
|
-
// https://github.com/kortix-ai/
|
|
142
|
+
// https://github.com/kortix-ai/CompanyOS/pull/4524). The API bounds every
|
|
169
143
|
// non-streaming request to a 25s server deadline that returns a clean 503 +
|
|
170
144
|
// `Retry-After: 10`, and react-query retries background polls (the session-audit
|
|
171
145
|
// route that produced Better Stack pattern `b1db01e5…` is polled every 5–15s
|
|
@@ -266,25 +240,6 @@ export function isExpectedBillingGateMessage(message) {
|
|
|
266
240
|
normalized === `Unhandled promise rejection: ${expected}` ||
|
|
267
241
|
normalized === `Unhandled promise rejection: ApiError: ${expected}`);
|
|
268
242
|
}
|
|
269
|
-
/**
|
|
270
|
-
* Whether a message is the EXPECTED "no compaction model configured"
|
|
271
|
-
* configuration state thrown by the SDK's `useSummarizeRuntimeSession`
|
|
272
|
-
* mutation (`NoCompactionModelError`) when every model-resolution fallback
|
|
273
|
-
* tier fails. The host already surfaces it via a user-facing toast; it must
|
|
274
|
-
* never page Better Stack, but the sentinel error can leak to Sentry as an
|
|
275
|
-
* unhandled promise rejection (`void loadingToast(...)` re-throws after
|
|
276
|
-
* showing the toast → `onunhandledrejection` auto-capture). Match is exact
|
|
277
|
-
* after trimming, with only the canonical browser/Sentry wrappers we
|
|
278
|
-
* explicitly support, so a longer real error that merely mentions the wording
|
|
279
|
-
* is never matched.
|
|
280
|
-
*/
|
|
281
|
-
export function isExpectedCompactionNoModelMessage(message) {
|
|
282
|
-
const normalized = normalizeString(message).trim();
|
|
283
|
-
return COMPACTION_NO_MODEL_EXPECTED_MESSAGES.some((expected) => normalized === expected ||
|
|
284
|
-
normalized === `Error: ${expected}` ||
|
|
285
|
-
normalized === `Unhandled promise rejection: ${expected}` ||
|
|
286
|
-
normalized === `Unhandled promise rejection: Error: ${expected}`);
|
|
287
|
-
}
|
|
288
243
|
/**
|
|
289
244
|
* Whether a message is the EXPECTED "model not available for this account"
|
|
290
245
|
* UI validation state — the typed 409 `code: 'model_not_servable'` the API
|
|
@@ -303,8 +258,8 @@ export function isExpectedCompactionNoModelMessage(message) {
|
|
|
303
258
|
* REGEX anchored on the EXACT API wording `Model "…" is not available for
|
|
304
259
|
* this account`, with the canonical `ApiError: ` / `Unhandled promise
|
|
305
260
|
* rejection: ` wrappers, so a longer real error that merely mentions the
|
|
306
|
-
* phrase is never matched. Sibling to `isExpectedBillingGateMessage`
|
|
307
|
-
*
|
|
261
|
+
* phrase is never matched. Sibling to `isExpectedBillingGateMessage`
|
|
262
|
+
* (also `ApiError`/Error throws that
|
|
308
263
|
* leak via `void` fire-and-forget); deliberately message-only with NO
|
|
309
264
|
* first-party frame negative guard — see `MODEL_NOT_SERVABLE_NOISE_PATTERNS`
|
|
310
265
|
* for the full rationale. See Better Stack pattern `9784f440…`.
|
|
@@ -377,11 +332,6 @@ export const EXPECTED_STATE_RULES = [
|
|
|
377
332
|
appliesTo: 'both',
|
|
378
333
|
match: ({ message }) => isExpectedBillingGateMessage(message),
|
|
379
334
|
},
|
|
380
|
-
{
|
|
381
|
-
id: 'compaction-no-model',
|
|
382
|
-
appliesTo: 'both',
|
|
383
|
-
match: ({ message }) => isExpectedCompactionNoModelMessage(message),
|
|
384
|
-
},
|
|
385
335
|
{
|
|
386
336
|
id: 'model-not-servable',
|
|
387
337
|
appliesTo: 'both',
|
|
@@ -140,9 +140,9 @@ export declare function capabilityTabHref(projectId: string, key: CapabilityTab[
|
|
|
140
140
|
*/
|
|
141
141
|
export declare function capabilityLinkHref(projectId: string, key: CapabilityTab['key']): string | null;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* 2026-10-17, redirects
|
|
143
|
+
* Review: its own page at `/projects/<id>/review` (since 2026-11-04), or null
|
|
144
|
+
* when the host serves no Review page. `/customize/review`, its address from
|
|
145
|
+
* 2026-10-17, redirects there.
|
|
146
146
|
*/
|
|
147
147
|
export declare function reviewHref(projectId: string): string | null;
|
|
148
148
|
/**
|
|
@@ -138,6 +138,9 @@ export const ADMIN_SECTION = {
|
|
|
138
138
|
};
|
|
139
139
|
/** The tab's URL: its Project admin section, else the host's `customize` route. */
|
|
140
140
|
export function capabilityTabHref(projectId, key) {
|
|
141
|
+
// Review is its own page, outside Customize (Marko, 2026-11-04).
|
|
142
|
+
if (key === 'review')
|
|
143
|
+
return uiRoutes().review?.(projectId) ?? customizePath(projectId, CAPABILITY_SEGMENT.review);
|
|
141
144
|
const section = ADMIN_SECTION[key];
|
|
142
145
|
return section ? adminPath(projectId, section) : customizePath(projectId, CAPABILITY_SEGMENT[key]);
|
|
143
146
|
}
|
|
@@ -149,13 +152,18 @@ export function capabilityTabHref(projectId, key) {
|
|
|
149
152
|
* `capabilityTabHref` is the customize pages' own tab URL and never null.
|
|
150
153
|
*/
|
|
151
154
|
export function capabilityLinkHref(projectId, key) {
|
|
155
|
+
if (key === 'review') {
|
|
156
|
+
// A host that serves no customize pages serves no Review page either, unless it routes one.
|
|
157
|
+
const routes = uiRoutes();
|
|
158
|
+
return routes.review ? routes.review(projectId) : routes.customize(projectId, CAPABILITY_SEGMENT.review);
|
|
159
|
+
}
|
|
152
160
|
const section = ADMIN_SECTION[key];
|
|
153
161
|
return section ? uiRoutes().admin(projectId, section) : uiRoutes().customize(projectId, CAPABILITY_SEGMENT[key]);
|
|
154
162
|
}
|
|
155
163
|
/**
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* 2026-10-17, redirects
|
|
164
|
+
* Review: its own page at `/projects/<id>/review` (since 2026-11-04), or null
|
|
165
|
+
* when the host serves no Review page. `/customize/review`, its address from
|
|
166
|
+
* 2026-10-17, redirects there.
|
|
159
167
|
*/
|
|
160
168
|
export function reviewHref(projectId) {
|
|
161
169
|
return capabilityLinkHref(projectId, 'review');
|
|
@@ -135,7 +135,7 @@ export const handleApiError = (error, context, tI18nComplete) => {
|
|
|
135
135
|
// deadline — packages/sdk/src/core/http/api-client.ts) is intentionally NOT
|
|
136
136
|
// captured here. It is the frontend mirror of the API's request-deadline 503
|
|
137
137
|
// (apps/api/src/middleware/request-deadline.ts, de-noised from Sentry by
|
|
138
|
-
// https://github.com/kortix-ai/
|
|
138
|
+
// https://github.com/kortix-ai/CompanyOS/pull/4524): the API has a 25s server
|
|
139
139
|
// deadline that returns a clean 503 + Retry-After, and react-query retries
|
|
140
140
|
// background polls, so a 30s client abort is an EXPECTED, retryable
|
|
141
141
|
// degradation under momentary API saturation — not an actionable bug. The
|
|
@@ -39,120 +39,15 @@
|
|
|
39
39
|
* exactly equivalent to setting ANTHROPIC_API_KEY on the Secrets page, just
|
|
40
40
|
* with a friendlier flow.
|
|
41
41
|
*/
|
|
42
|
-
import { type
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* release_date when known (YYYY-MM-DD). Used to drive newest-first ordering.
|
|
48
|
-
* The catalog generator already pre-sorts each provider's models by this
|
|
49
|
-
* field; the field is exposed so the UI can render a "released X ago" hint.
|
|
50
|
-
* Optional to stay assignable from `@kortix/llm-catalog`'s `CatalogModel`
|
|
51
|
-
* (the live /llm-catalog/providers wire shape) — absent means unknown,
|
|
52
|
-
* exactly like null.
|
|
53
|
-
*/
|
|
54
|
-
released?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
* Capability + limit flags mirrored verbatim from models.dev — present on
|
|
57
|
-
* both the baked seed (`catalog.generated.json`) and the live
|
|
58
|
-
* `/llm-catalog/providers` fetch (see `@kortix/llm-catalog`'s
|
|
59
|
-
* `CatalogModel`, the shape both ultimately originate from). Optional
|
|
60
|
-
* because the synthetic `codex`/`kortix` provider entries built in this
|
|
61
|
-
* section (`utils.ts`'s `buildCodexProvider`, `use-connected-providers.ts`'s
|
|
62
|
-
* `kortixProvider`) only set what the opencode provider snapshot exposes.
|
|
63
|
-
*/
|
|
64
|
-
description?: string;
|
|
65
|
-
attachment?: boolean;
|
|
66
|
-
reasoning?: boolean;
|
|
67
|
-
/** Present iff the model exposes a tunable reasoning-effort knob — see
|
|
68
|
-
* `@kortix/llm-catalog`'s `generationControlCapabilities`, the single
|
|
69
|
-
* source of truth the generation-controls panel derives its
|
|
70
|
-
* show/hide + valid-values from. Never hardcode a per-model list. */
|
|
71
|
-
reasoning_options?: CatalogReasoningOption[];
|
|
72
|
-
tool_call?: boolean;
|
|
73
|
-
/** false means FIXED temperature (e.g. gpt-5.6-sol) — the generation-
|
|
74
|
-
* controls panel must hide the temperature (and top_p) slider entirely. */
|
|
75
|
-
temperature?: boolean;
|
|
76
|
-
structured_output?: boolean;
|
|
77
|
-
interleaved?: boolean | {
|
|
78
|
-
field?: string;
|
|
79
|
-
};
|
|
80
|
-
open_weights?: boolean;
|
|
81
|
-
knowledge?: string;
|
|
82
|
-
last_updated?: string;
|
|
83
|
-
family?: string;
|
|
84
|
-
modalities?: CatalogModalities;
|
|
85
|
-
limit?: {
|
|
86
|
-
context?: number;
|
|
87
|
-
input?: number;
|
|
88
|
-
output?: number;
|
|
89
|
-
};
|
|
90
|
-
cost?: CatalogCost;
|
|
91
|
-
}
|
|
92
|
-
export interface LlmProviderEntry {
|
|
93
|
-
/** Stable id (matches provider-branding logo lookup). */
|
|
94
|
-
id: string;
|
|
95
|
-
/** Display name. */
|
|
96
|
-
label: string;
|
|
97
|
-
/**
|
|
98
|
-
* Env vars the connect form collects and writes to project_secrets — the
|
|
99
|
-
* PRIMARY auth method's fields (see `authRequirement`), not necessarily
|
|
100
|
-
* the raw models.dev `env` list. Most providers have exactly one; some
|
|
101
|
-
* (Azure, Bedrock) need multiple.
|
|
102
|
-
*/
|
|
103
|
-
envVars: string[];
|
|
104
|
-
/**
|
|
105
|
-
* The full Kortix-owned auth requirement (possibly multiple independent
|
|
106
|
-
* methods — see `@kortix/llm-catalog`'s `providerAuthRequirement`).
|
|
107
|
-
* "Connected" detection must check this (any method fully satisfied), not
|
|
108
|
-
* just `envVars` — a provider can have alias methods (e.g. Google) or,
|
|
109
|
-
* in future, alternate methods (e.g. Bedrock SigV4) beyond the primary one
|
|
110
|
-
* the connect form shows.
|
|
111
|
-
*/
|
|
112
|
-
authRequirement: ProviderAuthRequirement;
|
|
113
|
-
/** Where the user gets their credentials — opens in a new tab. */
|
|
114
|
-
helpUrl: string | null;
|
|
115
|
-
/**
|
|
116
|
-
* Hostname of the provider's API base URL, lowercased — `api.openai.com`
|
|
117
|
-
* from `https://api.openai.com/v1`. Null when models.dev declares no `api`
|
|
118
|
-
* for the provider (24 of 167 today, Anthropic and OpenAI among them), and
|
|
119
|
-
* null for a malformed URL. Never guessed: the Secrets page prefills this as
|
|
120
|
-
* an approved host for a recognized model key, and a wrong host would send
|
|
121
|
-
* the credential nowhere or, worse, somewhere else.
|
|
122
|
-
*/
|
|
123
|
-
apiHost: string | null;
|
|
124
|
-
/** Short one-line tag shown in the catalog row. */
|
|
125
|
-
hint: string;
|
|
126
|
-
/** Catalog of models for this provider. */
|
|
127
|
-
models: LlmProviderModel[];
|
|
128
|
-
/** True for the curated popular set — pinned to the top of the catalog. */
|
|
129
|
-
featured: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Platform-managed provider (the Kortix gateway). Injected into every sandbox
|
|
132
|
-
* automatically — no API key, no connect/disconnect flow. Rendered as an
|
|
133
|
-
* always-connected "Managed" row rather than a BYO credential entry.
|
|
134
|
-
*/
|
|
135
|
-
managed?: boolean;
|
|
136
|
-
}
|
|
137
|
-
export interface RawProvider {
|
|
138
|
-
id: string;
|
|
139
|
-
name: string;
|
|
140
|
-
env?: string[];
|
|
141
|
-
doc?: string | null;
|
|
142
|
-
/** Base URL of the provider's API, verbatim from models.dev. Absent for the
|
|
143
|
-
* providers whose SDK hardcodes it (Anthropic, OpenAI, Google, …). */
|
|
144
|
-
api?: string | null;
|
|
145
|
-
models: LlmProviderModel[];
|
|
146
|
-
}
|
|
147
|
-
export interface RawCatalog {
|
|
42
|
+
import { type LlmProviderCatalogSource, type LlmProviderEntry, type LlmProviderModel, type LlmProviderSource, buildLlmProviderCatalog } from '@kortix/sdk';
|
|
43
|
+
export { buildLlmProviderCatalog, type LlmProviderEntry, type LlmProviderModel };
|
|
44
|
+
export type RawProvider = LlmProviderSource;
|
|
45
|
+
export interface RawCatalog extends LlmProviderCatalogSource {
|
|
148
46
|
source: string;
|
|
149
47
|
fetched_at: string;
|
|
150
48
|
provider_count: number;
|
|
151
49
|
model_count: number;
|
|
152
|
-
providers: RawProvider[];
|
|
153
50
|
}
|
|
154
|
-
/** Pure: raw catalog (baked seed OR a live `/llm-catalog/providers` fetch) → the modal's provider list, sorted. */
|
|
155
|
-
export declare function buildLlmProviderCatalog(raw: RawCatalog): LlmProviderEntry[];
|
|
156
51
|
export declare let LLM_PROVIDERS: LlmProviderEntry[];
|
|
157
52
|
/** Lookup by id. */
|
|
158
53
|
export declare let LLM_PROVIDER_BY_ID: Map<string, LlmProviderEntry>;
|
|
@@ -182,4 +77,3 @@ export declare function getLlmProviderCatalogRevision(): number;
|
|
|
182
77
|
* from the given raw catalog, never a partial merge.
|
|
183
78
|
*/
|
|
184
79
|
export declare function applyLiveLlmProviderCatalog(raw: RawCatalog): void;
|
|
185
|
-
export {};
|