@kortix/ui 0.14.19 → 0.15.1
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 +1 -1
- package/dist/_vendor/kortix-shared.js +1188 -202
- package/dist/_vendor/shared/artifact-annotations.d.ts +85 -607
- package/dist/_vendor/shared/artifact-comments.d.ts +53 -489
- package/dist/_vendor/shared/code-language.d.ts +2 -2
- package/dist/_vendor/shared/html.d.ts +7 -0
- package/dist/_vendor/shared/index.d.ts +1 -1
- package/dist/_vendor/shared/peer-message-prompt.d.ts +7 -1
- package/dist/_vendor/shared/pixel-mark.d.ts +28 -0
- package/dist/_vendor/shared/project-glyphs.d.ts +103 -20
- package/dist/_vendor/shared/runtime-versions.d.ts +2 -6
- package/dist/_vendor/shared/tool-output/media-path.d.ts +1 -6
- package/dist/_vendor/shared/tool-output/scan.d.ts +2 -0
- package/dist/_vendor/shared/utils/string.d.ts +6 -0
- 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 +8 -3
- package/dist/artifacts/frame-policy.d.ts +2 -9
- package/dist/artifacts/frame-policy.js +2 -25
- package/dist/customize/agents/agent-page.js +5 -5
- package/dist/customize/agents/agent-status.js +1 -1
- package/dist/customize/agents/agents-page.js +4 -4
- 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/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/connectors/use-agent-access.d.ts +3 -3
- package/dist/customize/providers/provider-connect.d.ts +6 -15
- package/dist/customize/providers/provider-connect.js +5 -36
- 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/connectors-view.js +50 -37
- 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/chatgpt-subscription-connect.js +21 -18
- 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/device-grant.d.ts +15 -0
- package/dist/customize/sections/llm-provider/device-grant.js +27 -0
- 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/agent-editor.d.ts +2 -2
- package/dist/customize/sections/view/agent-editor.js +2 -2
- package/dist/customize/sections/view/channel-settings-patch.js +1 -1
- package/dist/customize/sections/view/channels-view.js +8 -8
- 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/review-center-connected.js +54 -21
- 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.d.ts +4 -5
- package/dist/customize/sections/view/secret-delivery.js +6 -5
- 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/tabs/experimental-tab.js +3 -3
- package/dist/customize/settings/tabs/general-tab.js +65 -10
- 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/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/customize/triggers/schedule/trigger-runs-logic.d.ts +6 -0
- package/dist/customize/triggers/schedule/trigger-runs-logic.js +13 -0
- package/dist/customize/triggers/schedule/trigger-runs-panel.js +9 -2
- 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/api/runtime-files.d.ts +2 -2
- package/dist/files/project/api/runtime-files.js +2 -2
- package/dist/files/project/components/drive-explorer.js +1 -1
- package/dist/files/project/components/drive-grid-view.js +0 -1
- package/dist/files/project/components/drive-list-view.js +0 -1
- package/dist/files/project/components/file-explorer-page.js +1 -1
- package/dist/files/project/hooks/index.d.ts +1 -1
- package/dist/files/project/hooks/index.js +1 -1
- package/dist/files/project/hooks/use-server-health.d.ts +1 -1
- package/dist/files/project/hooks/use-server-health.js +1 -1
- package/dist/files/project/search/workspace-search-service.d.ts +1 -1
- package/dist/files/project/search/workspace-search-service.js +1 -1
- package/dist/files/runtime/hooks/index.d.ts +1 -1
- package/dist/files/runtime/hooks/index.js +1 -1
- package/dist/files/runtime/hooks/server-health-state.d.ts +2 -2
- package/dist/files/runtime/hooks/server-health-state.js +2 -2
- package/dist/files/runtime/hooks/system-dir.js +2 -2
- package/dist/files/runtime/hooks/use-file-content.d.ts +1 -1
- package/dist/files/runtime/hooks/use-file-content.js +1 -1
- package/dist/files/runtime/hooks/use-file-list.d.ts +1 -1
- package/dist/files/runtime/hooks/use-file-list.js +3 -3
- package/dist/files/runtime/hooks/use-server-health.d.ts +2 -2
- package/dist/files/runtime/hooks/use-server-health.js +3 -3
- package/dist/files/runtime/hooks/use-workspace-search.d.ts +1 -2
- package/dist/files/runtime/hooks/use-workspace-search.js +0 -1
- package/dist/files/runtime/index.d.ts +2 -2
- package/dist/files/runtime/index.js +2 -2
- package/dist/files/runtime/path-utils.d.ts +1 -1
- package/dist/files/runtime/path-utils.js +1 -1
- package/dist/files/runtime/sandbox-explorer-source.d.ts +1 -1
- package/dist/files/runtime/sandbox-explorer-source.js +1 -1
- package/dist/files/runtime/sandbox-file-explorer.d.ts +1 -1
- package/dist/files/runtime/sandbox-file-explorer.js +2 -2
- package/dist/files/tree/components/file-tree-item.js +0 -1
- package/dist/files/tree/hooks/use-file-events.d.ts +1 -1
- package/dist/files/tree/hooks/use-file-events.js +1 -1
- package/dist/files/viewer/index.d.ts +1 -1
- package/dist/files/viewer/index.js +1 -1
- package/dist/i18n/en.d.ts +513 -203
- package/dist/i18n/en.js +610 -300
- 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/capture/use-capture-area.d.ts +5 -1
- package/dist/internal/capture/use-capture-area.js +16 -9
- package/dist/internal/files/file-read-retry.js +1 -1
- package/dist/internal/files/types.d.ts +2 -2
- package/dist/internal/files/types.js +2 -2
- package/dist/internal/goals/goal-meta.d.ts +76 -10
- package/dist/internal/goals/goal-meta.js +191 -14
- 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 +3 -2
- package/dist/internal/hooks/projects/use-new-project-session.js +4 -3
- 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/layout/nav-hover-card.d.ts +1 -1
- package/dist/internal/layout/nav-hover-card.js +1 -1
- package/dist/internal/layout/project-capability-nav.d.ts +1 -1
- package/dist/internal/layout/project-capability-nav.js +7 -3
- 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 +2 -2
- package/dist/internal/lib/browser-error-noise.js +2 -2
- 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/browser-noise/rules/injected-scripts.js +18 -0
- package/dist/internal/lib/browser-noise/rules/old-browsers.d.ts +1 -0
- package/dist/internal/lib/browser-noise/rules/old-browsers.js +1 -1
- package/dist/internal/lib/browser-noise/rules/rejections.d.ts +0 -9
- package/dist/internal/lib/browser-noise/rules/rejections.js +0 -14
- 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/delivered-but-disconnected.js +3 -5
- package/dist/internal/lib/error-handler.js +8 -3
- 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/pixel-mark.d.ts +4 -17
- package/dist/internal/lib/pixel-mark.js +5 -148
- package/dist/internal/lib/sounds.d.ts +4 -4
- package/dist/internal/lib/sounds.js +4 -4
- 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 +9 -7
- 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/composer-prefill-store.js +4 -1
- package/dist/internal/stores/kortix-computer-store.d.ts +15 -0
- package/dist/internal/stores/kortix-computer-store.js +12 -0
- package/dist/internal/stores/sound-store.d.ts +4 -4
- package/dist/internal/stores/sound-store.js +10 -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/code/shiki-highlighter.js +14 -5
- 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/file-links.js +12 -3
- package/dist/markdown/markdown-frontmatter.d.ts +6 -6
- package/dist/markdown/markdown-frontmatter.js +3 -3
- package/dist/markdown/unified-markdown.d.ts +1 -1
- package/dist/markdown/unified-markdown.js +129 -10
- package/dist/primitives/button.js +2 -1
- 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.js +1 -1
- 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.d.ts +1 -5
- package/dist/session/agents/held-messages.js +8 -25
- 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/ComposerAboveCard.d.ts +4 -1
- package/dist/session/composer/ComposerAboveCard.js +2 -2
- 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 +9 -2
- package/dist/session/composer/composer-chat-input.js +14 -6
- 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 +71 -2
- 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 +16 -16
- package/dist/session/composer/hooks/use-file-search.js +17 -17
- package/dist/session/composer/menus/mention-controller.d.ts +3 -11
- package/dist/session/composer/menus/mention-controller.js +54 -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 +58 -0
- package/dist/session/composer/menus/space-mentions.js +99 -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/composer/use-instant-session-send.js +2 -2
- package/dist/session/header/session-goal-indicator.js +4 -4
- 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/easy/plan-card.d.ts +2 -2
- package/dist/session/panel/easy/plan-card.js +2 -2
- 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 +11 -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/panel/use-session-panel-state.js +2 -2
- 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/sandbox-loading-boundary.js +2 -2
- package/dist/session/status/session-load-state.d.ts +0 -1
- package/dist/session/status/session-load-state.js +2 -4
- package/dist/session/status/session-terminal-state.d.ts +47 -0
- package/dist/session/status/session-terminal-state.js +56 -0
- package/dist/session/thread/message-parsing.d.ts +0 -1
- package/dist/session/thread/message-parsing.js +0 -1
- package/dist/session/thread/plan-surface.d.ts +1 -1
- package/dist/session/thread/plan-surface.js +1 -1
- package/dist/session/thread/session-chat.d.ts +4 -2
- package/dist/session/thread/session-chat.js +547 -409
- 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/stop-sequence.d.ts +51 -0
- package/dist/session/thread/stop-sequence.js +55 -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 +48 -4
- package/dist/session/thread/transcript.js +228 -36
- 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/apply-patch-tool.d.ts +1 -1
- package/dist/session/tool/tools/apply-patch-tool.js +1 -1
- 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 +35 -14
- package/dist/session/tool/tools/multi-agent-tools.js +1 -1
- package/dist/session/tool/tools/pty-kill-tool.d.ts +1 -1
- package/dist/session/tool/tools/pty-kill-tool.js +1 -1
- package/dist/session/tool/tools/pty-read-tool.d.ts +2 -2
- package/dist/session/tool/tools/pty-read-tool.js +2 -2
- package/dist/session/tool/tools/pty-spawn-tool.d.ts +1 -1
- package/dist/session/tool/tools/pty-spawn-tool.js +1 -1
- package/dist/session/tool/tools/pty-write-tool.d.ts +1 -1
- package/dist/session/tool/tools/pty-write-tool.js +1 -1
- 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/todo-write-tool.d.ts +1 -1
- package/dist/session/tool/tools/todo-write-tool.js +1 -1
- 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/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 +14 -8
- package/dist/session/turn/peer-message-row.js +38 -64
- package/dist/session/turn/plan-anchor.d.ts +3 -3
- package/dist/session/turn/plan-anchor.js +3 -3
- package/dist/session/turn/plan-card.d.ts +7 -7
- package/dist/session/turn/plan-card.js +7 -7
- 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 +16 -42
- package/dist/session/turn/voice-turn.d.ts +22 -0
- package/dist/session/turn/voice-turn.js +32 -0
- package/dist/session/voice/call-ring.d.ts +10 -0
- package/dist/session/voice/call-ring.js +52 -0
- package/dist/session/voice/use-voice-call.d.ts +4 -4
- package/dist/session/voice/use-voice-call.js +6 -9
- 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 +3 -0
- package/dist/session/voice/voice-call-state.js +2 -1
- package/dist/session/voice/voice-call-store.d.ts +16 -6
- package/dist/session/voice/voice-call-store.js +5 -5
- package/dist/session/voice/voice-call.d.ts +4 -8
- package/dist/session/voice/voice-call.js +33 -36
- package/dist/styles/components.css +33 -0
- package/dist/styles/theme.css +26 -0
- package/dist/styles.css +1 -1
- package/dist/terminal/terminal-card-gate.d.ts +6 -3
- package/dist/terminal/terminal-card-gate.js +21 -4
- package/dist/workspace/admin/project-admin-dashboard.d.ts +1 -1
- package/dist/workspace/admin/project-admin-dashboard.js +12 -9
- package/dist/workspace/index.d.ts +3 -2
- package/dist/workspace/index.js +2 -1
- 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 +12 -3
- package/dist/workspace/review/review-center.js +50 -16
- package/dist/workspace/review/review-reducer.d.ts +7 -0
- package/dist/workspace/review/review-reducer.js +11 -0
- 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-artifacts-nav.d.ts +6 -1
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +47 -4
- 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 +13 -17
- package/dist/workspace/sidebar/project-session-list.d.ts +7 -1
- package/dist/workspace/sidebar/project-session-list.js +63 -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-group-sections.js +12 -4
- 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 +10 -24
- 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 +73 -0
- package/dist/workspace/spaces/principal-card.js +246 -0
- package/dist/workspace/spaces/space-agent-ask.d.ts +14 -0
- package/dist/workspace/spaces/space-agent-ask.js +36 -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-dialog.js +1 -1
- package/dist/workspace/spaces/space-details-panel.d.ts +27 -0
- package/dist/workspace/spaces/space-details-panel.js +173 -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 +13 -0
- package/dist/workspace/spaces/space-mention-source.js +71 -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 +203 -68
- 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 +11 -7
- package/skills/kortix-ui/SKILL.md +1 -1
- package/skills/kortix-ui/references/custom-dashboard.md +2 -3
- package/skills/kortix-ui/references/modules.md +4 -4
- package/dist/_vendor/shared/room-prompt.d.ts +0 -66
- package/dist/session/tool/tools/multi-agent-tool-data.d.ts +0 -63
- package/dist/session/tool/tools/multi-agent-tool-data.js +0 -118
- package/dist/session/voice/voice-call-bar.d.ts +0 -4
- package/dist/session/voice/voice-call-bar.js +0 -39
- 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
|
@@ -48,6 +48,6 @@ export function getSessionContextMetrics(thread, providers, pricingLookup) {
|
|
|
48
48
|
* its last reply. A sub-agent's runtime (not the row's root) keeps its own time.
|
|
49
49
|
*/
|
|
50
50
|
export function sessionStartedAt(runtime, row) {
|
|
51
|
-
const own = row && (!runtime ||
|
|
51
|
+
const own = row && (!runtime || row.runtime_session_id === runtime.id);
|
|
52
52
|
return own ? Date.parse(row.created_at) : runtime?.time.created;
|
|
53
53
|
}
|
|
@@ -46,7 +46,9 @@ function WithThreadMetrics({ source, ids, pricingLookup, acc = {}, children, })
|
|
|
46
46
|
}
|
|
47
47
|
function WithOneThread({ source, id, rest, pricingLookup, acc, children, }) {
|
|
48
48
|
const thread = useSessionLogThread(source, id);
|
|
49
|
-
|
|
49
|
+
// A sub-agent's thread starts with its prompt, so a thread the log names with no message yet
|
|
50
|
+
// has not been read (or its read failed): not loaded, never a false "0 messages".
|
|
51
|
+
const metrics = useMemo(() => (thread && thread.messages.length > 0 ? threadMetrics(thread, pricingLookup) : null), [thread, pricingLookup]);
|
|
50
52
|
const next = useMemo(() => ({ ...acc, [id]: metrics }), [acc, id, metrics]);
|
|
51
53
|
return (_jsx(WithThreadMetrics, { source: source, ids: rest, pricingLookup: pricingLookup, acc: next, children: children }));
|
|
52
54
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type SessionLogBlock } from '@kortix/sdk';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The sessions that did the work behind one message of a talk-only thread
|
|
5
|
+
* (`TranscriptRows.front`): the child of every `agent` call of the turn, and
|
|
6
|
+
* the session of every report the turn answers (the worker's run-end notice).
|
|
7
|
+
* In first-seen order, each once.
|
|
8
|
+
*/
|
|
9
|
+
export declare function messageWorkerIds(blocks: readonly SessionLogBlock[], reportSessionIds: readonly (string | null | undefined)[]): string[];
|
|
10
|
+
/**
|
|
11
|
+
* "Show work" under an agent's message in a messages-only thread: the work
|
|
12
|
+
* behind it, inline and closed until the person opens it. Hidden until the
|
|
13
|
+
* row is hovered or focused on a pointer screen, always visible on touch
|
|
14
|
+
* (`max-md`), and always visible while open. The work mounts on the first open.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ShowWork({ defaultOpen, children }: {
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* The worker sessions of a talk-only thread's message, each as its own
|
|
22
|
+
* read-only transcript (`SessionPeek`), at most ~24rem tall and scrolled to
|
|
23
|
+
* its newest step. The peek draws the session's own turns (bubbles, steps,
|
|
24
|
+
* "Worked for"), never this thread's message rows.
|
|
25
|
+
*/
|
|
26
|
+
export declare function WorkerTranscripts({ sessionIds }: {
|
|
27
|
+
sessionIds: readonly string[];
|
|
28
|
+
}): import("react").JSX.Element | null;
|
|
29
|
+
/**
|
|
30
|
+
* A router thread's live status while its hidden workers run: one row per
|
|
31
|
+
* busy worker, its mark and "<Agent> is working · 0:42", under the message
|
|
32
|
+
* that started it. A row leaves when its worker goes idle (its report then
|
|
33
|
+
* reaches the router, which replies). Reads the same worker ids as "Show work"
|
|
34
|
+
* and the same busy state as `WorkerTranscript`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function WorkerStatusRows({ sessionIds }: {
|
|
37
|
+
sessionIds: readonly string[];
|
|
38
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { getChildSessionId } from '@kortix/sdk';
|
|
4
|
+
import { useProjectSession, useSessionStateStore } from '@kortix/sdk/react';
|
|
5
|
+
import { CaretRightIcon } from '@phosphor-icons/react';
|
|
6
|
+
import { useContext, useId, useState } from 'react';
|
|
7
|
+
import { useTranslations } from '../../i18n/index.js';
|
|
8
|
+
import { lazyClient } from '../../lib/lazy-client.js';
|
|
9
|
+
import { cn } from '../../lib/utils.js';
|
|
10
|
+
import { Skeleton } from '../../primitives/skeleton.js';
|
|
11
|
+
import { useSessionIds } from '../../providers/session-ids.js';
|
|
12
|
+
import { AfterFirstPromptContext } from './after-first-prompt.js';
|
|
13
|
+
import { AgentMark, agentDisplayName } from '../../internal/components/agent-mark.js';
|
|
14
|
+
import { formatDuration } from '../../internal/session-types/index.js';
|
|
15
|
+
import { useElapsedLabel } from './typing-indicator.js';
|
|
16
|
+
import { sessionDisplayLabel } from '../actions/session-label.js';
|
|
17
|
+
import { TranscriptRowsContext } from './transcript-rows.js';
|
|
18
|
+
// Lazy: `SessionPeek` renders `SessionTurn`, which renders this file.
|
|
19
|
+
const SessionPeek = lazyClient(() => import('../agents/session-peek.js').then((mod) => mod.SessionPeek), {
|
|
20
|
+
fallback: _jsx(Skeleton, { className: "h-24 w-full rounded-lg" }),
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* The sessions that did the work behind one message of a talk-only thread
|
|
24
|
+
* (`TranscriptRows.front`): the child of every `agent` call of the turn, and
|
|
25
|
+
* the session of every report the turn answers (the worker's run-end notice).
|
|
26
|
+
* In first-seen order, each once.
|
|
27
|
+
*/
|
|
28
|
+
export function messageWorkerIds(blocks, reportSessionIds) {
|
|
29
|
+
const ids = new Set();
|
|
30
|
+
for (const block of blocks) {
|
|
31
|
+
if (block.type !== 'tool_call')
|
|
32
|
+
continue;
|
|
33
|
+
const child = getChildSessionId(block);
|
|
34
|
+
if (child)
|
|
35
|
+
ids.add(child);
|
|
36
|
+
}
|
|
37
|
+
for (const id of reportSessionIds)
|
|
38
|
+
if (id)
|
|
39
|
+
ids.add(id);
|
|
40
|
+
return [...ids];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* "Show work" under an agent's message in a messages-only thread: the work
|
|
44
|
+
* behind it, inline and closed until the person opens it. Hidden until the
|
|
45
|
+
* row is hovered or focused on a pointer screen, always visible on touch
|
|
46
|
+
* (`max-md`), and always visible while open. The work mounts on the first open.
|
|
47
|
+
*/
|
|
48
|
+
export function ShowWork({ defaultOpen = false, children }) {
|
|
49
|
+
const t = useTranslations('sessionUi.turn');
|
|
50
|
+
const [open, setOpen] = useState(defaultOpen);
|
|
51
|
+
const contentId = useId();
|
|
52
|
+
return (_jsxs("div", { "data-slot": "show-work", className: "min-w-0", children: [_jsxs("button", { type: "button", "aria-expanded": open, "aria-controls": open ? contentId : undefined, onClick: () => setOpen((value) => !value), className: cn('text-muted-foreground hover:text-foreground focus-visible:ring-ring/50 -ml-1 inline-flex items-center gap-1 rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2', !open && 'md:opacity-0 md:group-focus-within/message:opacity-100 md:group-hover/message:opacity-100'), children: [_jsx(CaretRightIcon, { "aria-hidden": true, weight: "bold", className: cn('size-3 shrink-0 motion-safe:transition-transform motion-safe:duration-fast', open && 'rotate-90') }), open ? t('hideWork') : t('showWork')] }), open ? (_jsx("div", { id: contentId, "data-slot": "show-work-content", className: "mt-1.5 min-w-0", children: children })) : null] }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The worker sessions of a talk-only thread's message, each as its own
|
|
56
|
+
* read-only transcript (`SessionPeek`), at most ~24rem tall and scrolled to
|
|
57
|
+
* its newest step. The peek draws the session's own turns (bubbles, steps,
|
|
58
|
+
* "Worked for"), never this thread's message rows.
|
|
59
|
+
*/
|
|
60
|
+
export function WorkerTranscripts({ sessionIds }) {
|
|
61
|
+
const ids = useSessionIds();
|
|
62
|
+
const projectId = ids.projectId;
|
|
63
|
+
// The thread's author card, read before the peeks reset the rows context.
|
|
64
|
+
const author = useContext(TranscriptRowsContext)?.author;
|
|
65
|
+
if (!projectId)
|
|
66
|
+
return null;
|
|
67
|
+
return (_jsx(TranscriptRowsContext.Provider, { value: null, children: _jsx(AfterFirstPromptContext.Provider, { value: null, children: _jsx("div", { className: "flex flex-col gap-2", children: sessionIds.map((sessionId) => (_jsx(WorkerTranscript, { projectId: projectId, sessionId: sessionId, author: author }, sessionId))) }) }) }));
|
|
68
|
+
}
|
|
69
|
+
function WorkerTranscript({ projectId, sessionId, author, }) {
|
|
70
|
+
// The worker's agent heads its work: its mark and name, which open its card.
|
|
71
|
+
const agentName = useProjectSession(projectId, sessionId).data?.agent_name ?? null;
|
|
72
|
+
const working = useSessionStateStore((s) => {
|
|
73
|
+
const type = s.sessionStatus[sessionId]?.type;
|
|
74
|
+
return type === 'busy' || type === 'retry';
|
|
75
|
+
});
|
|
76
|
+
return (_jsxs("div", { "data-worker-session": sessionId, className: "bg-background flex max-h-96 min-h-0 flex-col overflow-hidden rounded-lg border", children: [agentName ? (_jsx("div", { className: "flex shrink-0 items-center gap-2 border-b px-3 py-1.5 text-xs font-medium", children: author ? (author({ kind: 'agent', name: agentName }, _jsxs("span", { className: "inline-flex min-w-0 items-center gap-2", children: [_jsx(AgentMark, { slug: agentName, size: 14 }), _jsx("span", { className: "truncate", children: agentDisplayName(agentName) })] }), 'name')) : (_jsxs(_Fragment, { children: [_jsx(AgentMark, { slug: agentName, size: 14 }), _jsx("span", { className: "truncate", children: agentDisplayName(agentName) })] })) })) : null, _jsx(SessionPeek, { projectId: projectId, sessionId: sessionId, working: working, density: "compact" })] }));
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A router thread's live status while its hidden workers run: one row per
|
|
80
|
+
* busy worker, its mark and "<Agent> is working · 0:42", under the message
|
|
81
|
+
* that started it. A row leaves when its worker goes idle (its report then
|
|
82
|
+
* reaches the router, which replies). Reads the same worker ids as "Show work"
|
|
83
|
+
* and the same busy state as `WorkerTranscript`.
|
|
84
|
+
*/
|
|
85
|
+
export function WorkerStatusRows({ sessionIds }) {
|
|
86
|
+
const ids = useSessionIds();
|
|
87
|
+
const author = useContext(TranscriptRowsContext)?.author;
|
|
88
|
+
if (!ids.projectId || sessionIds.length === 0)
|
|
89
|
+
return null;
|
|
90
|
+
return (_jsx("div", { className: "flex flex-col gap-1", children: sessionIds.map((sessionId) => (_jsx(WorkerStatusRow, { projectId: ids.projectId, sessionId: sessionId, author: author }, sessionId))) }));
|
|
91
|
+
}
|
|
92
|
+
function WorkerStatusRow({ projectId, sessionId, author }) {
|
|
93
|
+
const t = useTranslations('sessionUi.turn');
|
|
94
|
+
const row = useProjectSession(projectId, sessionId).data;
|
|
95
|
+
const busy = useSessionStateStore((s) => {
|
|
96
|
+
const type = s.sessionStatus[sessionId]?.type;
|
|
97
|
+
return type === 'busy' || type === 'retry';
|
|
98
|
+
});
|
|
99
|
+
const working = busy || row?.working?.state === 'working';
|
|
100
|
+
const elapsed = useElapsedLabel(working ? (row?.working?.since ?? row?.created_at ?? null) : null, formatDuration);
|
|
101
|
+
if (!working || !row?.agent_name)
|
|
102
|
+
return null;
|
|
103
|
+
const agent = row.agent_name;
|
|
104
|
+
const label = sessionDisplayLabel(row).trim();
|
|
105
|
+
// An untitled worker falls back to an id or branch: no task to name then.
|
|
106
|
+
const task = label && !row.session_id.startsWith(label) && label !== row.branch_name?.slice(0, 14) ? label : null;
|
|
107
|
+
const face = (_jsxs("span", { className: "inline-flex items-center gap-1.5", children: [_jsx(AgentMark, { slug: agent, size: 14 }), _jsx("span", { className: "text-foreground font-medium", children: agentDisplayName(agent) })] }));
|
|
108
|
+
return (_jsxs("div", { role: "status", "aria-live": "polite", className: "text-muted-foreground flex min-w-0 items-center gap-1.5 text-xs tabular-nums", children: [author ? author({ kind: 'agent', name: agent }, face, 'name') : face, _jsx("span", { className: "min-w-0 truncate", title: task ?? undefined, children: task
|
|
109
|
+
? elapsed
|
|
110
|
+
? t('agentWorkingOnFor', { task, time: elapsed })
|
|
111
|
+
: t('agentWorkingOn', { task })
|
|
112
|
+
: elapsed
|
|
113
|
+
? t('agentWorkingFor', { time: elapsed })
|
|
114
|
+
: t('agentWorking') })] }));
|
|
115
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { AbortSettlement } from '@kortix/sdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* The order of one Stop, as data, so a test can count the requests.
|
|
4
|
+
*
|
|
5
|
+
* One Stop sends ONE inbox hold and ONE abort.
|
|
6
|
+
*
|
|
7
|
+
* - With a mounted `useSession` (`sdkCancel`), the SDK owns the whole stop:
|
|
8
|
+
* `cancelSessionTurn` → `stopWithReceipt` holds the inbox (bounded), paints
|
|
9
|
+
* the optimistic abort, and then aborts. The host must not hold first: that
|
|
10
|
+
* was a second hold request and up to 2 × 1.5 s before the abort left.
|
|
11
|
+
* - Without it (a child-session mount), the host does the same pairing
|
|
12
|
+
* itself: hold, bounded by `holdDeadlineMs`, then the raw abort.
|
|
13
|
+
*
|
|
14
|
+
* A refused hold (the viewer may not stop this turn) sends no abort: the abort
|
|
15
|
+
* would be refused for the same reason.
|
|
16
|
+
*/
|
|
17
|
+
export type StopOutcome = {
|
|
18
|
+
kind: 'cancelled';
|
|
19
|
+
settlement: AbortSettlement;
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'refused';
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
export interface StopSequenceDeps {
|
|
25
|
+
/** `useSession().cancel` when the session hook is mounted. */
|
|
26
|
+
sdkCancel?: () => Promise<AbortSettlement>;
|
|
27
|
+
/** Fallback path only: hold the server-side prompt inbox. */
|
|
28
|
+
holdInbox: () => Promise<unknown>;
|
|
29
|
+
/** Fallback path only: the raw abort, settled (never rejects). */
|
|
30
|
+
fallbackCancel: () => Promise<AbortSettlement>;
|
|
31
|
+
/** Fallback path only: paint "Interrupted" and clear the send receipt. */
|
|
32
|
+
paintOptimisticAbort: () => void;
|
|
33
|
+
/** The refusal text for a hold error, or null when it is not a refusal. */
|
|
34
|
+
refusalOf: (error: unknown) => string | null;
|
|
35
|
+
/** A hold that failed for any other reason: the queue is not paused. */
|
|
36
|
+
onHoldFailed: (error: unknown) => void;
|
|
37
|
+
holdDeadlineMs: number;
|
|
38
|
+
}
|
|
39
|
+
export declare function runStopSequence(deps: StopSequenceDeps): Promise<StopOutcome>;
|
|
40
|
+
/**
|
|
41
|
+
* A synchronous latch: the second Stop while the first is still settling does
|
|
42
|
+
* nothing. A ref, not React Query's `isPending`: `isPending` turns true only
|
|
43
|
+
* after a re-render, and the SDK path never touched the host mutation at all,
|
|
44
|
+
* so Stop → Esc×3 → Stop sent three stops.
|
|
45
|
+
*/
|
|
46
|
+
export declare function createStopLatch(): {
|
|
47
|
+
readonly inFlight: boolean;
|
|
48
|
+
run<T>(fn: () => Promise<T>): Promise<T | undefined>;
|
|
49
|
+
};
|
|
50
|
+
/** A stop the server did not confirm: the turn may still be running. */
|
|
51
|
+
export declare function stopLeftTurnRunning(outcome: StopOutcome | undefined): boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export async function runStopSequence(deps) {
|
|
2
|
+
if (deps.sdkCancel) {
|
|
3
|
+
return { kind: 'cancelled', settlement: await deps.sdkCancel() };
|
|
4
|
+
}
|
|
5
|
+
deps.paintOptimisticAbort();
|
|
6
|
+
let refusal = null;
|
|
7
|
+
let timer;
|
|
8
|
+
await Promise.race([
|
|
9
|
+
deps.holdInbox().catch((error) => {
|
|
10
|
+
refusal = deps.refusalOf(error);
|
|
11
|
+
if (!refusal)
|
|
12
|
+
deps.onHoldFailed(error);
|
|
13
|
+
}),
|
|
14
|
+
new Promise((resolve) => {
|
|
15
|
+
timer = setTimeout(resolve, deps.holdDeadlineMs);
|
|
16
|
+
}),
|
|
17
|
+
]);
|
|
18
|
+
clearTimeout(timer);
|
|
19
|
+
if (refusal)
|
|
20
|
+
return { kind: 'refused', message: refusal };
|
|
21
|
+
return { kind: 'cancelled', settlement: await deps.fallbackCancel() };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A synchronous latch: the second Stop while the first is still settling does
|
|
25
|
+
* nothing. A ref, not React Query's `isPending`: `isPending` turns true only
|
|
26
|
+
* after a re-render, and the SDK path never touched the host mutation at all,
|
|
27
|
+
* so Stop → Esc×3 → Stop sent three stops.
|
|
28
|
+
*/
|
|
29
|
+
export function createStopLatch() {
|
|
30
|
+
let inFlight = false;
|
|
31
|
+
return {
|
|
32
|
+
get inFlight() {
|
|
33
|
+
return inFlight;
|
|
34
|
+
},
|
|
35
|
+
async run(fn) {
|
|
36
|
+
if (inFlight)
|
|
37
|
+
return undefined;
|
|
38
|
+
inFlight = true;
|
|
39
|
+
try {
|
|
40
|
+
return await fn();
|
|
41
|
+
}
|
|
42
|
+
finally {
|
|
43
|
+
inFlight = false;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** A stop the server did not confirm: the turn may still be running. */
|
|
49
|
+
export function stopLeftTurnRunning(outcome) {
|
|
50
|
+
if (!outcome)
|
|
51
|
+
return false;
|
|
52
|
+
if (outcome.kind === 'refused')
|
|
53
|
+
return true;
|
|
54
|
+
return outcome.settlement.status === 'timed-out' || outcome.settlement.status === 'failed';
|
|
55
|
+
}
|
|
@@ -13,7 +13,8 @@ export declare function PendingPromptRows({ text, author, sessionId, busy, }: {
|
|
|
13
13
|
}): import("react").JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* The agent's answer row while it has drawn nothing yet: its pixel mark, its
|
|
16
|
-
* name and the Thinking line
|
|
16
|
+
* name and the Thinking line ("Kortix is typing…" in a messages-only thread),
|
|
17
|
+
* where a working turn's answer row draws them
|
|
17
18
|
* (`SessionTurn` in rows mode: the body opens `mt-0.5`). Every waiting row of
|
|
18
19
|
* a channel thread is this row, so none sits outside the row grid. Null
|
|
19
20
|
* outside a channel thread.
|
|
@@ -16,6 +16,8 @@ import { SessionBusyIndicator } from '../status/session-busy-indicator.js';
|
|
|
16
16
|
import { MESSAGE_TEXT_CLASS, MessageRow } from '../turn/message-row.js';
|
|
17
17
|
import { parseAgentMentionReferences, parseFileMentionReferences, parseFileReferences, parseSessionReferences, stripReplyContexts, } from './message-parsing.js';
|
|
18
18
|
import { TranscriptRowsContext } from './transcript-rows.js';
|
|
19
|
+
import { TypingIndicator } from './typing-indicator.js';
|
|
20
|
+
import { useTranslations } from '../../i18n/index.js';
|
|
19
21
|
/** The sentence a person typed, without the ref blocks the composer folds in. */
|
|
20
22
|
function promptSentence(text) {
|
|
21
23
|
let clean = parseFileReferences(text).cleanText;
|
|
@@ -33,20 +35,22 @@ function promptSentence(text) {
|
|
|
33
35
|
export function PendingPromptRows({ text, author, sessionId, busy = true, }) {
|
|
34
36
|
const rows = useContext(TranscriptRowsContext);
|
|
35
37
|
const name = author ? participantLabel(author) : '';
|
|
36
|
-
return (_jsxs(_Fragment, { children: [_jsx(MessageRow, { avatar: _jsx(UserAvatar, { email: author?.email ?? '', name: name, avatarUrl: author?.avatarUrl, size: "lg" }), name: name || rows?.unknownAuthor, children: _jsx("p", { className: cn(MESSAGE_TEXT_CLASS, 'text-pretty whitespace-pre-wrap wrap-anywhere'), children: promptSentence(text) }) }), busy ? _jsx(AgentBusyRow, { sessionId: sessionId }) : null] }));
|
|
38
|
+
return (_jsxs(_Fragment, { children: [_jsx(MessageRow, { avatar: _jsx(UserAvatar, { email: author?.email ?? '', name: name, avatarUrl: author?.avatarUrl, colorKey: author?.id, size: "lg" }), name: name || rows?.unknownAuthor, children: _jsx("p", { className: cn(MESSAGE_TEXT_CLASS, 'text-pretty whitespace-pre-wrap wrap-anywhere'), children: promptSentence(text) }) }), busy ? _jsx(AgentBusyRow, { sessionId: sessionId }) : null] }));
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* The agent's answer row while it has drawn nothing yet: its pixel mark, its
|
|
40
|
-
* name and the Thinking line
|
|
42
|
+
* name and the Thinking line ("Kortix is typing…" in a messages-only thread),
|
|
43
|
+
* where a working turn's answer row draws them
|
|
41
44
|
* (`SessionTurn` in rows mode: the body opens `mt-0.5`). Every waiting row of
|
|
42
45
|
* a channel thread is this row, so none sits outside the row grid. Null
|
|
43
46
|
* outside a channel thread.
|
|
44
47
|
*/
|
|
45
48
|
export function AgentBusyRow({ sessionId }) {
|
|
46
49
|
const rows = useContext(TranscriptRowsContext);
|
|
50
|
+
const tTurn = useTranslations('sessionUi.turn');
|
|
47
51
|
if (!rows)
|
|
48
52
|
return null;
|
|
49
|
-
return (_jsx(MessageRow, { avatar: _jsx(AgentMark, { slug: rows.agentSlug ?? 'kortix', size: 28, tile: 36, label: rows.agent }), name: rows.agent, children: _jsx("div", { className: "mt-0.5", children: _jsx(SessionBusyIndicator, { sessionId: sessionId }) }) }));
|
|
53
|
+
return (_jsx(MessageRow, { avatar: _jsx(AgentMark, { slug: rows.agentSlug ?? 'kortix', size: 28, tile: 36, label: rows.agent }), name: rows.agent, children: _jsx("div", { className: "mt-0.5", children: rows.messagesOnly ? (_jsx(TypingIndicator, { name: rows.agent, detail: tTurn('starting'), detailDelayMs: 2000 })) : (_jsx(SessionBusyIndicator, { sessionId: sessionId })) }) }));
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* A channel thread whose computer is still coming up (no runtime session yet).
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import type { SESSION_NOTICE } from '@kortix/sdk';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
/** Who wrote a row: an agent by name, or a person (by user id when known). */
|
|
4
|
+
export type TranscriptAuthor = {
|
|
5
|
+
kind: 'agent';
|
|
6
|
+
name: string;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'person';
|
|
9
|
+
userId: string | null;
|
|
10
|
+
name: string;
|
|
11
|
+
email: string | null;
|
|
12
|
+
avatarUrl: string | null;
|
|
13
|
+
};
|
|
2
14
|
/**
|
|
3
15
|
* Set, the transcript draws every turn as message rows (avatar, name, time,
|
|
4
16
|
* body), the way a channel thread reads: the prompt as its author's row, the
|
|
@@ -12,10 +24,16 @@ export interface TranscriptRows {
|
|
|
12
24
|
agentSlug?: string;
|
|
13
25
|
/** The thread's starter: the author of a prompt with no recorded author. */
|
|
14
26
|
owner: {
|
|
27
|
+
id?: string | null;
|
|
15
28
|
name: string | null;
|
|
16
29
|
email: string | null;
|
|
17
30
|
avatarUrl: string | null;
|
|
18
31
|
} | null;
|
|
32
|
+
/**
|
|
33
|
+
* Wraps a row's avatar and its name, once each (the space view's person
|
|
34
|
+
* and agent card). Unset: they render bare.
|
|
35
|
+
*/
|
|
36
|
+
author?: (who: TranscriptAuthor, node: ReactNode, part: 'avatar' | 'name') => ReactNode;
|
|
19
37
|
/** The name of a prompt whose author nobody recorded and with no owner ("Someone"). */
|
|
20
38
|
unknownAuthor: string;
|
|
21
39
|
/**
|
|
@@ -23,6 +41,24 @@ export interface TranscriptRows {
|
|
|
23
41
|
* key: a channel thread says "this thread's computer", not "session".
|
|
24
42
|
*/
|
|
25
43
|
notices?: Partial<Record<keyof typeof SESSION_NOTICE, string>>;
|
|
44
|
+
/**
|
|
45
|
+
* Only messages: the person's prompts and the agent's words, plus the
|
|
46
|
+
* deliverables it shows on purpose (`show`, `image_gen`). No "Worked for"
|
|
47
|
+
* row, no tool, thinking or sub-agent rows, no notice or peer-message rows,
|
|
48
|
+
* and no agent row for a settled turn that said nothing. While the turn
|
|
49
|
+
* works, its row is "Kortix is typing…" (`TypingIndicator`). Each agent
|
|
50
|
+
* message with work behind it carries "Show work", which opens that work
|
|
51
|
+
* inline. A space's thread panel sets it with the `chat` flag on; the full
|
|
52
|
+
* session still shows every step.
|
|
53
|
+
*/
|
|
54
|
+
messagesOnly?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* A talk-only thread (`chat_front`, session metadata `kortix_front`): its
|
|
57
|
+
* agent only talks and hands the work to worker sessions. "Show work"
|
|
58
|
+
* opens the workers the message's turn started or answers, as read-only
|
|
59
|
+
* transcripts, not the turn's own hand-off calls.
|
|
60
|
+
*/
|
|
61
|
+
front?: boolean;
|
|
26
62
|
/** The stuck-boot restart button in the host's terms ("Restart thread"). */
|
|
27
63
|
labels?: {
|
|
28
64
|
restart: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { useTranslations } from '../../i18n/index.js';
|
|
2
|
-
import { type SessionLogBlock, type SessionLogMessage, type SessionLogTurn, type SessionMessageAuthor, type SessionPrompt, type SessionPromptViewer, type TextBlock, type ToolCallBlock, type SessionLogReferencedText } from '@kortix/sdk';
|
|
2
|
+
import { type SessionLogBlock, type SessionLogMessage, type SessionLogSegment, type SessionLogTurn, type SessionMessageAuthor, type SessionPrompt, type SessionPromptViewer, type TextBlock, type ToolCallBlock, type SessionLogReferencedText } from '@kortix/sdk';
|
|
3
3
|
import type { AttachmentUploadStatus, NormalizedAttachment } from '../turn/user-message.js';
|
|
4
4
|
import type { TurnServedModel } from '../turn/served-model.js';
|
|
5
|
+
import { type ConversationDensity } from '../../internal/stores/user-preferences-store.js';
|
|
5
6
|
import { type NoticeBatchItem, type SubagentNotice } from '../turn/subagent-notice.js';
|
|
7
|
+
import { type ParkedQuestionAnswer } from '../turn/answered-question-step.js';
|
|
6
8
|
import { type PeerMessagePromptInfo } from '../../_vendor/shared/index.js';
|
|
7
9
|
import { type SentAttachment } from '../composer/sent-attachment-previews.js';
|
|
8
10
|
import { type KortixSystemMessage, type SessionReport } from '../../internal/lib/utils/kortix-system-tags.js';
|
|
@@ -104,7 +106,7 @@ interface SessionTurnProps {
|
|
|
104
106
|
sessionWorking: boolean;
|
|
105
107
|
/**
|
|
106
108
|
* This turn is the one the agent is on — see `resolveWorkingTurn`. It used
|
|
107
|
-
* to be `isLast` by definition; a prompt queued mid-turn broke that:
|
|
109
|
+
* to be `isLast` by definition; a prompt queued mid-turn broke that: the runtime
|
|
108
110
|
* persists it as the last user message while the agent is still streaming
|
|
109
111
|
* the turn before, so the shimmer sat under a bubble nobody had started and
|
|
110
112
|
* the live turn looked settled.
|
|
@@ -135,7 +137,7 @@ interface SessionTurnProps {
|
|
|
135
137
|
/**
|
|
136
138
|
* A user message the agent has not reached yet — after the working turn,
|
|
137
139
|
* with no assistant content. Drawn dimmed, like a queued prompt (it IS one:
|
|
138
|
-
* the server forwarded it and
|
|
140
|
+
* the server forwarded it and the runtime holds it until the next step), and
|
|
139
141
|
* it fades up to full opacity the moment the agent takes it.
|
|
140
142
|
*/
|
|
141
143
|
pending: boolean;
|
|
@@ -226,6 +228,7 @@ export declare function resolveTurnError(turn: SessionLogTurn): string | undefin
|
|
|
226
228
|
type TurnModelState = ReturnType<typeof useTurnModelState>;
|
|
227
229
|
type TurnAnsweredState = ReturnType<typeof useAnsweredQuestionState>;
|
|
228
230
|
type TurnUserContentState = ReturnType<typeof useTurnUserContent>;
|
|
231
|
+
type TurnSegments = ReturnType<typeof useTurnSegments>;
|
|
229
232
|
/** Content derivations for one turn: the part lists, the streaming text and
|
|
230
233
|
* the response string every section below reads — plus the two working
|
|
231
234
|
* flags the sections branch on. */
|
|
@@ -301,6 +304,7 @@ declare function useTurnUserContent({ turn, commandMessages, commands, }: Pick<S
|
|
|
301
304
|
noticeBatch: NoticeBatchItem[] | null;
|
|
302
305
|
subagentNotice: SubagentNotice | null;
|
|
303
306
|
peerMessage: PeerMessagePromptInfo | null;
|
|
307
|
+
parkedAnswer: ParkedQuestionAnswer | null;
|
|
304
308
|
systemMessages: KortixSystemMessage[];
|
|
305
309
|
hasVisibleUserContent: boolean;
|
|
306
310
|
userMessageText: string;
|
|
@@ -313,6 +317,46 @@ declare function useTurnUserContent({ turn, commandMessages, commands, }: Pick<S
|
|
|
313
317
|
args?: string;
|
|
314
318
|
} | undefined;
|
|
315
319
|
};
|
|
320
|
+
/** The turn's blocks, segmented into bursts / standalone tools / text for the
|
|
321
|
+
* steps section. */
|
|
322
|
+
declare function useTurnSegments({ blocks, answeredQuestionCallsById, shouldUseInlineContent, permissions, sessionId, }: {
|
|
323
|
+
blocks: TurnModelState['blocks'];
|
|
324
|
+
answeredQuestionCallsById: TurnAnsweredState['answeredQuestionCallsById'];
|
|
325
|
+
shouldUseInlineContent: boolean;
|
|
326
|
+
permissions: PermissionRequest[];
|
|
327
|
+
sessionId: string;
|
|
328
|
+
}): SessionLogSegment[];
|
|
329
|
+
/**
|
|
330
|
+
* The segments a messages-only thread (`TranscriptRows.messagesOnly`) draws:
|
|
331
|
+
* the agent's words and the deliverables it showed on purpose (`show`,
|
|
332
|
+
* `image_gen`), plus a call that waits on the person's permission. Never a
|
|
333
|
+
* burst (tools, thinking) or another standalone call (a sub-agent card).
|
|
334
|
+
* Settled, the interim sentences are work too: only the deliverables and the
|
|
335
|
+
* final text stay, the rule of the "Worked for" fold (`splitSessionLogTurnWork`).
|
|
336
|
+
* Exported for its test.
|
|
337
|
+
*/
|
|
338
|
+
export declare function messageOnlySegments(segments: TurnSegments, options: {
|
|
339
|
+
working: boolean;
|
|
340
|
+
permissions: readonly PermissionRequest[];
|
|
341
|
+
}): TurnSegments;
|
|
342
|
+
/**
|
|
343
|
+
* "Show work" under a messages-only thread's agent message, and the work it
|
|
344
|
+
* opens. A thread: the turn's segments the message does not show (its tools,
|
|
345
|
+
* thinking, sub-agent rows and interim sentences), the "Worked for" fold's
|
|
346
|
+
* content. A talk-only thread (`TranscriptRows.front`): the worker sessions
|
|
347
|
+
* the turn started (`agent` calls) or whose report it answers, each as a
|
|
348
|
+
* read-only transcript. Nothing to open: no control. Exported for its test.
|
|
349
|
+
*/
|
|
350
|
+
export declare function TurnMessageWork(props: Pick<SessionTurnProps, 'turn' | 'sessionId' | 'permissions' | 'onPermissionReply' | 'disableToolNavigation' | 'isLast'> & {
|
|
351
|
+
model: TurnModelState;
|
|
352
|
+
segments: TurnSegments;
|
|
353
|
+
/** The segments the message itself draws (`messageOnlySegments`). */
|
|
354
|
+
shown: TurnSegments;
|
|
355
|
+
userContent: Pick<TurnUserContentState, 'sessionReport' | 'noticeBatch' | 'subagentNotice'>;
|
|
356
|
+
conversationDensity: ConversationDensity;
|
|
357
|
+
front: boolean;
|
|
358
|
+
defaultOpen?: boolean;
|
|
359
|
+
}): import("react").JSX.Element | null;
|
|
316
360
|
/** What the turn says: the completion announce, the streaming text, and
|
|
317
361
|
* either the inline text-and-questions flow or the settled response. Exported for its test. */
|
|
318
362
|
export declare function TurnAssistantBlock(props: Pick<SessionTurnProps, 'turn'> & {
|
|
@@ -321,7 +365,7 @@ export declare function TurnAssistantBlock(props: Pick<SessionTurnProps, 'turn'>
|
|
|
321
365
|
userContent: TurnUserContentState;
|
|
322
366
|
tHardcodedUi: ReturnType<typeof useTranslations>;
|
|
323
367
|
}): import("react").JSX.Element;
|
|
324
|
-
declare function SessionTurnImpl(props: SessionTurnProps): import("react").JSX.Element;
|
|
368
|
+
declare function SessionTurnImpl(props: SessionTurnProps): import("react").JSX.Element | null;
|
|
325
369
|
/**
|
|
326
370
|
* The boundary that stops the transcript re-rendering with the stream.
|
|
327
371
|
*
|