@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
|
@@ -30,7 +30,7 @@ npm i tw-animate-css tailwind-scrollbar tailwind-scrollbar-hide # Tailwind v4
|
|
|
30
30
|
|
|
31
31
|
`@kortix/ui` and `@kortix/sdk` carry the Kortix release version: install the same version of each.
|
|
32
32
|
The module entries this guide uses (`session`, `workspace`, `files`, `theme`) need 0.14.4 or later.
|
|
33
|
-
Inside `kortix-ai/
|
|
33
|
+
Inside `kortix-ai/CompanyOS`, use `"workspace:*"`.
|
|
34
34
|
Without `@openuidev/lang-core`, `vite build` fails with `Missing export` in `@kortix/sdk/dist/genui`.
|
|
35
35
|
Name `react@19 react-dom@19`: with an unversioned `react`, npm picks React 18 for `cmdk`'s peer and the install never finishes.
|
|
36
36
|
|
|
@@ -189,7 +189,7 @@ pass stable objects (module scope):
|
|
|
189
189
|
| `navigation` | full page loads; `usePathname` / `useSearchParams` read `window.location` | `{ useRouter, usePathname, useSearchParams, useParams }` of its router |
|
|
190
190
|
| `config` | `{ connectorsEnabled: true, managedModelsEnabled: false }` | `managedModelsEnabled: true` when the deployment serves its model lineup. Billing is the SDK flag `billingEnabled` of `createKortix({ backendUrl, getToken, billingEnabled })`, which every billing gate reads. It is for Kortix's own app: its upgrade actions open the Kortix plan dialog that apps/web mounts. A custom host leaves it off, so no upgrade control renders. |
|
|
191
191
|
| `resolvePreviewUrl` | the SDK preview URL, with the SDK token | an async function of the request (it returns a Promise) that resolves to the framed URL with the host's own scoped token, or to `null` to keep the SDK preview URL (a host whose origin is not the Kortix backend). `config.terminalEnabled: false` hides the Terminal when the host's proxy cannot upgrade a WebSocket. `config.cliConnectEnabled` (default true): false hides the Terminal's "Connect from your machine" bar, for a host that serves no `<origin>/install` installer and ships no Kortix CLI. `config.publicSharesEnabled` (default true): false hides every public-link control, for a host that serves no page at `share.public_path` (`/share/session/<token>`). `config.commandPaletteShortcut` / `config.settingsShortcut` (default false): true when the host opens a command palette on ⌘K or settings on ⌘,; only then does the composer hint at them. `config.providerIconBaseUrl`: where the host serves provider logos (`<base>/<icon>.svg`); without it they load from models.dev, and the Kortix provider draws `useBrand`'s icon. `config.accountApiEnabled` (default true): false for a host that fronts one operator key and blocks the account routes; then no IAM probe, billing or session-oversight request runs, billing state stays empty, and every permission gate shows its control (the server enforces each route). `config.modelPickerEnabled`, `contextMeterEnabled`, `sessionOverridesEnabled`, `runtimeSlashEnabled` (default true): false hides the model and effort pickers, the context ring, the session-overrides gear, or the runtime's skills and commands in the `/` menu. `config.offeredAgents` and `agentLabels`: the agents the composer's picker offers, and their display names. `config.takeFiles` and `attachAccept`: the host takes the composer's files itself, and the attach picker's `accept` list. |
|
|
192
|
-
| `components` | no slots: each control that opens one is hidden | `ShareSessionModal` (`@kortix/ui/workspace` exports Kortix's), `HomeAnnouncement`, `Wallpaper`, `ProjectProviderModal`, `ProviderAccountsModal`, `ConnectorConnectModal`, `ArtifactViewer` (without it, the panel shows an artifact read-only)
|
|
192
|
+
| `components` | no slots: each control that opens one is hidden | `ShareSessionModal` (`@kortix/ui/workspace` exports Kortix's), `HomeAnnouncement`, `Wallpaper`, `ProjectProviderModal`, `ProviderAccountsModal`, `ConnectorConnectModal`, `ArtifactViewer` (without it, the panel shows an artifact read-only) |
|
|
193
193
|
| `useBrand` | the Kortix marks | a hook that returns `{ app_name, logo_url, icon_url }` |
|
|
194
194
|
| `image` | a plain `<img>` | its image component |
|
|
195
195
|
| `i18n` | the bundled English catalog | `{ useTranslations, useLocale }` (next-intl signatures) or `{ locale, messages }` |
|
|
@@ -202,7 +202,7 @@ A Next.js host passes `next/link` and `{ useRouter, usePathname, useSearchParams
|
|
|
202
202
|
|
|
203
203
|
## 5. The project shell
|
|
204
204
|
|
|
205
|
-
Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/projects/<id>`, `session` `/projects/<id>/sessions/<sessionId>`, `sessions` `/projects/<id>/sessions` (`?view=archived|deleted`), `files` `/projects/<id>/files`, `drive` `/projects/<id>/drive`, `apps` `/projects/<id>/apps`, `members` `/projects/<id>/members`, `sandboxSettings` `/projects/<id>/admin/sandbox`, `customize` `/projects/<id>/customize/<page>` (agents, skills, connectors, triggers, reminders, models, secrets, review, settings), `admin` `/projects/<id>/admin/<section>` (it follows `customize` when you map only `customize`), `
|
|
205
|
+
Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/projects/<id>`, `session` `/projects/<id>/sessions/<sessionId>`, `sessions` `/projects/<id>/sessions` (`?view=archived|deleted`), `files` `/projects/<id>/files`, `drive` `/projects/<id>/drive`, `apps` `/projects/<id>/apps`, `members` `/projects/<id>/members`, `sandboxSettings` `/projects/<id>/admin/sandbox`, `customize` `/projects/<id>/customize/<page>` (agents, skills, connectors, triggers, reminders, models, secrets, review, settings), `admin` `/projects/<id>/admin/<section>` (it follows `customize` when you map only `customize`), `goals` `/projects/<id>/goals` (flag `goals`), `artifacts` `/projects/<id>/artifacts` (flag `artifacts`), and, while the project's `chat` flag is on, `space` `/projects/<id>/spaces/<slug>`, `memory` `/projects/<id>/memory`, `channel` `/projects/<id>/c/<slug>` and `dm` `/projects/<id>/dm/<agent>`. Return your own path for a page you serve elsewhere. Return `null` for a page you do not serve: every link to it is hidden. `project`, `session`, `channel` and `dm` cannot be null. This app serves the project
|
|
206
206
|
home, its files and a session (section 7), so it maps the other pages to `null`.
|
|
207
207
|
|
|
208
208
|
```tsx
|
|
@@ -377,7 +377,6 @@ setUiRoutes({
|
|
|
377
377
|
sessions: () => null,
|
|
378
378
|
drive: () => null,
|
|
379
379
|
apps: () => null,
|
|
380
|
-
rooms: () => null,
|
|
381
380
|
goals: () => null,
|
|
382
381
|
artifacts: () => null,
|
|
383
382
|
space: () => null,
|
|
@@ -187,7 +187,7 @@ Source: `src/files/viewer/index.ts`. Render any file kind (pdf, docx, xlsx, csv,
|
|
|
187
187
|
|
|
188
188
|
Mount: `FileViewer` with `content` needs no provider, no SDK client and no `QueryClientProvider`; with a `shareContext` it needs both (its Copy link reads the session). `FileContentRenderer`: inside `FileSourceProvider` (where the bytes come from).
|
|
189
189
|
|
|
190
|
-
Props: `FileViewer`: `content`, `fileName`, optional `path`, `onClose`, `refresh`, `className`. `FileContentRenderer`: `filePath`, `showHeader`, `readOnly`, `targetLine`, `onSaved`. `FileSource`: `id`, `useFileContent`, `useBinaryBlob`, `download`, `upload`, optional `save`, `bytesOnly`.
|
|
190
|
+
Props: `FileViewer`: `content`, `fileName`, optional `path`, `onClose`, `refresh`, `className`. `HTML_PREVIEW_IFRAME_CLASS` is the class list of the HTML preview's iframe, for a host that draws its own. `FileContentRenderer`: `filePath`, `showHeader`, `readOnly`, `targetLine`, `onSaved`. `FileSource`: `id`, `useFileContent`, `useBinaryBlob`, `download`, `upload`, optional `save`, `bytesOnly`.
|
|
191
191
|
|
|
192
192
|
```tsx
|
|
193
193
|
import { FileViewer } from '@kortix/ui/file-viewer';
|
|
@@ -395,11 +395,11 @@ export function Sessions({ projectId }: { projectId: string }) {
|
|
|
395
395
|
}
|
|
396
396
|
```
|
|
397
397
|
|
|
398
|
-
Goals (behind the `goals` flag): `GoalStatusBadge` (a goal's status), `GoalHealthDot` (green running, orange needs attention, grey closed), `useGoalIssueText` (one sentence per health issue), `goalProgress` (met and total criteria), `goalOpenAsks` (asks waiting on a person), `goalNeedsYou` (an open ask or a health issue), `formatGoalTime` (the reminders time format), `goalHref` (the goal's page, or null), `useGoalClock` (the current time, re-read every 30 s), `goalNeedsAttention` (a health issue no person was asked about), `goalLastWake` (when the goal last woke), `goalAssignedTo` (the goal is for this person), `useGoalPerson` (who a goal is for, by name), `useStartGoal` (starts a goal: a session that writes GOAL.md).
|
|
398
|
+
Goals (behind the `goals` flag): `GoalStatusBadge` (a goal's status), `GoalHealthDot` (green running, orange needs attention, grey closed), `useGoalIssueText` (one sentence per health issue), `goalProgress` (met and total criteria), `goalOpenAsks` (asks waiting on a person), `goalNeedsYou` (an open ask or a health issue), `formatGoalTime` (the reminders time format), `goalHref` (the goal's page, or null), `useGoalClock` (the current time, re-read every 30 s), `goalNeedsAttention` (a health issue no person was asked about), `goalLastWake` (when the goal last woke), `goalAssignedTo` (the goal is for this person), `useGoalPerson` (who a goal is for, by name), `useStartGoal` (starts a goal: a session that writes GOAL.md), `goalPaused` (the goal is paused), `useGoalStateText` (a goal state's label), `goalIconState` and `goalStatusIconState` (the `GoalIconState` of a goal or a status), `GoalStatusIcon` (that state's icon), `GoalCriteriaProgress` (met criteria, optionally as a ring), `GoalPersonChip` (the person a goal is for).
|
|
399
399
|
|
|
400
|
-
Channels and memory (behind the `
|
|
400
|
+
Channels and memory (behind the `chat` flag): `SpaceView` (`projectId`, `target`: a `SpaceTarget`, `{ kind: 'channel', slug }` or `{ kind: 'dm', agentName }`; `beforeSend`; `renderFolder` draws a `SpaceFolder`, one space's Files tab, whose entries are `SpaceFile`s; `isHtmlPath` says a tab's file opens as a page; `renderApps`) is a channel or DM page with its threads, files, memory, apps, links and triggers. `ChannelGlyph` (`visibility`) is `#` or a lock. `agentLabel` (`name`) is an agent's display name. `MemoryView` (`projectId`, `layerKey`: `company` or a space id, `place`) is one memory layer's pages; `CompanyMemoryPage` (`projectId`) is the project's Company memory. `useMemoryPageHref` (`projectId`) returns `(layer: MemoryLayerRef, pageId) => href | null`: the page's link, null when the host serves no such page.
|
|
401
401
|
|
|
402
|
-
Spaces (Work in progress, behind the `
|
|
402
|
+
Spaces (Work in progress, behind the `chat` flag; a space is a channel declared in kortix.yaml `spaces:`): `SPACES_FLAG` is that flag key. `useSpacesEnabled` (`projectId`) is true only while it is on. `spaceScope` (`items`, `config`, `enabled`, `bindingOf`) returns `{ spaces, groups, spaceOf }` for a list page; off, it offers no spaces and every item is project-wide. `useActiveSpace` (`projectId`) is the viewer's active space and its setter; off, it reads `null`. `useSpaceFilter` (`projectId`) is a list page's space filter value and setter; off, it is always `ALL_SPACES`. `SpaceFilterTabs` (`spaces`, `groups`, `value`, `onValueChange`) is the filter, and renders nothing without spaces. `spaceFilterLabel` (`value`, `spaces`, `projectWide`) names a filter value for an empty state.
|
|
403
403
|
|
|
404
404
|
Names: `SpaceView`, `SpaceViewProps`, `SpaceTarget`, `SpaceFolder`, `ChannelGlyph`, `agentLabel`, `MemoryView`, `MemoryViewProps`, `CompanyMemoryPage`, `MemoryLayerRef`, `useMemoryPageHref`, `ProjectPageHeader`, `useCapabilityAccess`, `useProjectNavRows`, `SidebarToggle`, `activeCapabilityTab`, `agentHref`, `capabilityTabHref`, `channelsHref`, `remindersHref`, `reviewHref`, `CUSTOMIZE_SECTION_ACCESS`, `CUSTOMIZE_SECTION_GATE_ACTIONS`, `PROJECT_ACTIONS`, `isCustomizeSectionVisible`, `CustomizeSection`, `ProjectAction`, `usePermission`, `usePermissions`, `usePermissionsFor`, `PROJECT_PAGE_ACTIONS`, `useProjectCan`, `useProjectCans`, `useProjectPageCans`, `CanResult`, `formatFireTime`, `nearestFire`, `reminderTitle`, `scheduleLabel`, `ProjectHomeWallpaper`, `ProjectHomeWelcomeBody`, `InstantSessionShell`, `ProjectFilesView`, `ProjectHome`, `ProjectHomeSendOptions`, `useProjectHomeSend`, `UseProjectHomeSendOptions`, `SavedSessionSkeleton`, `SessionLayout`, `SessionWorkspace`, `SessionLayoutProps`, `SessionWorkspaceProps`, `ProjectSessionsView`, `ProjectSessionList`, `ProjectSidebar`, `ShareSessionModal`
|
|
405
405
|
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The text a room message delivers into a member session (flag `agent_rooms`):
|
|
3
|
-
*
|
|
4
|
-
* [room dev · #42 · from agent session 3f2a1b9c (builder), in thread #41]
|
|
5
|
-
*
|
|
6
|
-
* <message text>
|
|
7
|
-
*
|
|
8
|
-
* ---
|
|
9
|
-
* <how to answer, and that the message carries no authority>
|
|
10
|
-
*
|
|
11
|
-
* The API writes it (`roomPromptText`); web and mobile read it back
|
|
12
|
-
* (`parseRoomPrompt`) to render the turn as a room event, not as something the
|
|
13
|
-
* person typed. One module owns both sides so they cannot drift.
|
|
14
|
-
*/
|
|
15
|
-
export interface RoomPromptInfo {
|
|
16
|
-
/** The room's name. */
|
|
17
|
-
room: string;
|
|
18
|
-
seq: number;
|
|
19
|
-
senderKind: 'member' | 'session';
|
|
20
|
-
/** The sender as the room shows them: a person's name, or `3f2a1b9c (agent) "title"`. */
|
|
21
|
-
sender: string;
|
|
22
|
-
replyTo: number | null;
|
|
23
|
-
/** The message text, without the header and the footer. */
|
|
24
|
-
text: string;
|
|
25
|
-
}
|
|
26
|
-
export declare function roomPromptText(input: RoomPromptInfo & {
|
|
27
|
-
/** Set when the member session lives in another project than the room. */
|
|
28
|
-
roomProjectId?: string | null;
|
|
29
|
-
}): string;
|
|
30
|
-
/** The room message a prompt carries, or undefined for any other text. Linear time. */
|
|
31
|
-
export declare function parseRoomPrompt(rawText: string | null | undefined): RoomPromptInfo | undefined;
|
|
32
|
-
/** One line of a room digest: a message's seq, sender and first line. */
|
|
33
|
-
export interface RoomDigestLine {
|
|
34
|
-
seq: number;
|
|
35
|
-
sender: string;
|
|
36
|
-
text: string;
|
|
37
|
-
}
|
|
38
|
-
export interface RoomDigestInfo {
|
|
39
|
-
room: string;
|
|
40
|
-
fromSeq: number;
|
|
41
|
-
toSeq: number;
|
|
42
|
-
/** Messages the digest stands for (lines shown + `more`). */
|
|
43
|
-
count: number;
|
|
44
|
-
lines: RoomDigestLine[];
|
|
45
|
-
more: number;
|
|
46
|
-
}
|
|
47
|
-
/** Lines a digest shows before it says "and N more". */
|
|
48
|
-
export declare const ROOM_DIGEST_MAX_LINES = 20;
|
|
49
|
-
/** A message's first line, cut to fit one digest line. */
|
|
50
|
-
export declare function digestLineText(text: string): string;
|
|
51
|
-
/**
|
|
52
|
-
* The batched notice a member session receives for room traffic not addressed
|
|
53
|
-
* to it: one turn for many messages, each shown by its first line, with the
|
|
54
|
-
* command that reads them in full.
|
|
55
|
-
*
|
|
56
|
-
* [room dev · #12–#14 · 3 new messages]
|
|
57
|
-
*
|
|
58
|
-
* #12 Ada: deploy at 5
|
|
59
|
-
* #13 agent session 3f2a1b9c (builder): holding until then
|
|
60
|
-
* ...
|
|
61
|
-
*/
|
|
62
|
-
export declare function roomDigestText(input: Omit<RoomDigestInfo, 'count'> & {
|
|
63
|
-
roomProjectId?: string | null;
|
|
64
|
-
}): string;
|
|
65
|
-
/** The digest a prompt carries, or undefined for any other text. Linear time. */
|
|
66
|
-
export declare function parseRoomDigest(rawText: string | null | undefined): RoomDigestInfo | undefined;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The views of a tab that holds several (Capabilities, Access) as a rail
|
|
3
|
-
* left of the content: one row per view, its glyph, its name and its grant
|
|
4
|
-
* ("All but 2", "4 of 9"). The selected row is filled. Below `md` the rail
|
|
5
|
-
* hides and the tab bar's pills take over, so a narrow window keeps the full
|
|
6
|
-
* width for the content.
|
|
7
|
-
*
|
|
8
|
-
* Tools All but 2 │ Tools [All|Specific|None]
|
|
9
|
-
* Skills 4 of 9 │ …
|
|
10
|
-
*/
|
|
11
|
-
import type { ReactNode } from 'react';
|
|
12
|
-
import { type AgentTabGroup } from './agent-page-chrome.js';
|
|
13
|
-
import type { AgentRailKey } from './agent-tabs.js';
|
|
14
|
-
/** The group a rail draws: the one holding `active`, when it has several views. */
|
|
15
|
-
export declare function railGroupOf(groups: AgentTabGroup[], active: AgentRailKey): AgentTabGroup | null;
|
|
16
|
-
export declare function AgentSectionRail({ group, active, dirty, children, }: {
|
|
17
|
-
group: AgentTabGroup | null;
|
|
18
|
-
active: AgentRailKey;
|
|
19
|
-
dirty?: readonly AgentRailKey[];
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useTranslations as useI18nTranslations } from '../../i18n/index.js';
|
|
4
|
-
import { cn } from '../../internal/lib/utils.js';
|
|
5
|
-
import { UiLink as Link } from '../../providers/ui-provider.js';
|
|
6
|
-
import { SECTION_ICON } from './agent-overview.js';
|
|
7
|
-
import { useInPageNavigate } from './agent-page-chrome.js';
|
|
8
|
-
/** The group a rail draws: the one holding `active`, when it has several views. */
|
|
9
|
-
export function railGroupOf(groups, active) {
|
|
10
|
-
const group = groups.find((g) => g.items.some((item) => item.key === active));
|
|
11
|
-
return group && group.items.length > 1 ? group : null;
|
|
12
|
-
}
|
|
13
|
-
export function AgentSectionRail({ group, active, dirty, children, }) {
|
|
14
|
-
const t = useI18nTranslations('agentEditor.tabs');
|
|
15
|
-
const go = useInPageNavigate();
|
|
16
|
-
if (!group)
|
|
17
|
-
return _jsx(_Fragment, { children: children });
|
|
18
|
-
return (_jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsx("nav", { "aria-label": group.label, className: "hidden w-56 shrink-0 flex-col gap-0.5 pt-5 pl-8 md:flex", children: group.items.map((item) => {
|
|
19
|
-
const on = item.key === active;
|
|
20
|
-
const Icon = item.key in SECTION_ICON ? SECTION_ICON[item.key] : null;
|
|
21
|
-
return (_jsxs(Link, { href: item.href, prefetch: false, onClick: (e) => go(e, item.href), "aria-current": on ? 'page' : undefined, "data-testid": `agent-rail-${item.key}`, className: cn('flex h-8 shrink-0 items-center gap-2.5 rounded-md px-2.5 text-sm transition-colors duration-fast', on ? 'bg-muted text-foreground' : 'text-muted-foreground hover:bg-hover hover:text-foreground'), children: [Icon ? _jsx(Icon, { className: "size-4 shrink-0" }) : null, _jsx("span", { className: "min-w-0 flex-1 truncate", children: item.label }), dirty?.includes(item.key) ? (_jsx("span", { role: "img", "aria-label": t('unsavedTab'), className: "bg-foreground size-1.5 shrink-0 rounded-full" })) : null, item.count !== undefined ? (_jsx("span", { className: "text-muted-foreground shrink-0 text-xs tabular-nums", children: item.count })) : null] }, item.key));
|
|
22
|
-
}) }), _jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col md:pl-3", children: children })] }));
|
|
23
|
-
}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
import { claimWarmProjectSession, getProjectSession, type PendingSessionPrompt, type ProjectSession, type SessionConnectorBindingsInput } from '@kortix/sdk';
|
|
3
|
-
import { type WarmTakenRegistry } from './warm-session-taken-registry.js';
|
|
4
|
-
/**
|
|
5
|
-
* Warm sessions — presence-driven.
|
|
6
|
-
*
|
|
7
|
-
* A session started from a project pays the whole sandbox boot AFTER the user
|
|
8
|
-
* presses Enter. So while a logged-in user is present on a project — a project
|
|
9
|
-
* route mounted AND the tab visible — keep one session already created for them.
|
|
10
|
-
*
|
|
11
|
-
* A warm session is NOT a species of session. It is an ORDINARY session, created
|
|
12
|
-
* by the same server path the New Session button uses, that the user has not
|
|
13
|
-
* typed into yet. The send path therefore does not "claim" anything: it navigates
|
|
14
|
-
* to the session it already has and prompts it. No claim call, no 409
|
|
15
|
-
* vocabulary, no claim PROTOCOL state — `WarmSession` caches the server row
|
|
16
|
-
* itself (JAY-599/T21) purely so the taker can seed a cache with it, not as
|
|
17
|
-
* negotiation state of any kind.
|
|
18
|
-
*
|
|
19
|
-
* CREATES at exactly three moments, no timers: on mount (or project change), on
|
|
20
|
-
* regaining visibility, and to replenish after one is used. Holding an id
|
|
21
|
-
* short-circuits all three, so refocusing a tab costs nothing, and a hidden tab
|
|
22
|
-
* never starts billed compute.
|
|
23
|
-
*
|
|
24
|
-
* ABANDON, NEVER ADAPT. A warm session is born with the project's default agent
|
|
25
|
-
* and sandbox. If the user picks something else before sending, the client drops
|
|
26
|
-
* it and the ordinary create path runs; the abandoned box is hidden and reaped
|
|
27
|
-
* like any other idle session. One wasted box, bounded — in exchange for deleting
|
|
28
|
-
* every line of compatibility matching the alternative needs.
|
|
29
|
-
*
|
|
30
|
-
* `metadata.warm` hides the row from the `visible` session list until its first
|
|
31
|
-
* prompt lands (`apps/api/src/projects/lib/session-inventory.ts`).
|
|
32
|
-
*
|
|
33
|
-
* COST. Gated by the `warm_sessions` project flag; the server enforces it (403
|
|
34
|
-
* `feature_disabled`) and `enabled` is only the client short-circuit.
|
|
35
|
-
*
|
|
36
|
-
* ARCHITECTURE RULE: the browser
|
|
37
|
-
* must never hand-roll speculative session creation. `ensureWarmProjectSession`
|
|
38
|
-
* may be referenced from THIS FILE ONLY.
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* The create-time overrides a send can carry. Structurally the same object as
|
|
42
|
-
* `NewProjectSessionOpts['create']`; declared here so the warm module does not
|
|
43
|
-
* import from its own caller.
|
|
44
|
-
*/
|
|
45
|
-
export interface WarmSendCreateInput {
|
|
46
|
-
sandbox_slug?: string;
|
|
47
|
-
agent_name?: string;
|
|
48
|
-
connector_bindings?: SessionConnectorBindingsInput;
|
|
49
|
-
provider_secret_pools?: Record<string, string[]>;
|
|
50
|
-
inherit_unbound?: boolean;
|
|
51
|
-
}
|
|
52
|
-
/** What was actually created, so a send can tell whether it fits. */
|
|
53
|
-
export interface WarmSession {
|
|
54
|
-
sessionId: string;
|
|
55
|
-
/** RESOLVED, as the server stored it — never the `default` sentinel. */
|
|
56
|
-
agentName: string | null;
|
|
57
|
-
sandboxSlug: string;
|
|
58
|
-
/**
|
|
59
|
-
* The full server row `ensureWarmProjectSession` returned when this session
|
|
60
|
-
* was created. Carried so `takeWarmSessionEntry`'s caller (`use-new-project-
|
|
61
|
-
* session.ts`) can seed the sessions-list cache with it at adoption time,
|
|
62
|
-
* without a second fetch — see `warm-session-seed.ts`. Still shows
|
|
63
|
-
* `metadata.warm: true` at this point; the server only drops that once
|
|
64
|
-
* THIS take's own `/start` call lands (`apps/api/.../routes/session-runtime.ts`).
|
|
65
|
-
*/
|
|
66
|
-
session: ProjectSession;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Can this warm session serve this send?
|
|
70
|
-
*
|
|
71
|
-
* It was created with the project's defaults and nothing else, so a send naming a
|
|
72
|
-
* different agent or sandbox, or carrying per-session connector wiring, needs a
|
|
73
|
-
* session that does not exist yet.
|
|
74
|
-
*
|
|
75
|
-
* Both sides carry RESOLVED names — the server resolves the warm session's agent
|
|
76
|
-
* against the project manifest and the composer sends the name it displays — so
|
|
77
|
-
* they are directly comparable. An undefined override means "the project
|
|
78
|
-
* default", which is exactly what the warm session has.
|
|
79
|
-
*/
|
|
80
|
-
export declare function warmSessionFitsSend(warm: WarmSession, create: WarmSendCreateInput | undefined): boolean;
|
|
81
|
-
interface WarmSessionState {
|
|
82
|
-
/** Projects whose create POST is in flight. */
|
|
83
|
-
creating: Record<string, true>;
|
|
84
|
-
/** The created, still-unused session per project. */
|
|
85
|
-
ready: Record<string, WarmSession>;
|
|
86
|
-
/**
|
|
87
|
-
* Every session id THIS TAB has taken via `takeReady`. Defense in depth for
|
|
88
|
-
* JAY-596 / T20: the server's own warm marker only drops on the first
|
|
89
|
-
* prompt, seconds after a take, so a replenish racing that window can get
|
|
90
|
-
* the just-taken session back. `excludeSessionId` (see `createWarmSession`)
|
|
91
|
-
* stops a FIXED server from offering it; this set stops a server WITHOUT
|
|
92
|
-
* the fix (or any other race) from ever landing it back in `ready`, no
|
|
93
|
-
* matter how it got produced.
|
|
94
|
-
*/
|
|
95
|
-
takenSessionIds: Record<string, true>;
|
|
96
|
-
/** Reserve the create slot. False when one is in flight or one is ready. */
|
|
97
|
-
beginCreate: (projectId: string) => boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Release the create slot, recording the session it produced — UNLESS that
|
|
100
|
-
* session id was already taken this tab, in which case it is dropped on the
|
|
101
|
-
* floor. Returns whether the session was actually filed as ready, so the
|
|
102
|
-
* caller (`createWarmSession`) knows whether to retry.
|
|
103
|
-
*/
|
|
104
|
-
settleCreate: (projectId: string, session: WarmSession | null) => boolean;
|
|
105
|
-
/** Read AND consume the ready session, so it is handed out once. */
|
|
106
|
-
takeReady: (projectId: string) => WarmSession | null;
|
|
107
|
-
/**
|
|
108
|
-
* Drop a held ready entry by SESSION id, marking it taken. Fired when the
|
|
109
|
-
* cross-tab registry reports another tab took the session this tab holds
|
|
110
|
-
* (`subscribeToExternalWarmTakes`). Returns the project that lost its
|
|
111
|
-
* entry — the caller replenishes exactly that project — or null.
|
|
112
|
-
*/
|
|
113
|
-
dropReadyBySessionId: (sessionId: string) => string | null;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Module state, not a ref: the project shell mounts hooks more than once and
|
|
117
|
-
* React Strict Mode double-invokes effects in development. All of them must
|
|
118
|
-
* share ONE in-flight create per project — same reasoning as
|
|
119
|
-
* `new-session-guard.ts`.
|
|
120
|
-
*/
|
|
121
|
-
export declare const useWarmSessionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<WarmSessionState>>;
|
|
122
|
-
/**
|
|
123
|
-
* The one network call this module makes, injectable so its orchestration is
|
|
124
|
-
* unit-tested with a plain fake instead of `mock.module('@kortix/sdk', ...)`,
|
|
125
|
-
* which is process-wide in this monorepo and a hazard for sibling suites.
|
|
126
|
-
*/
|
|
127
|
-
export type WarmSessionClient = {
|
|
128
|
-
create: (projectId: string, excludeSessionId?: string) => Promise<WarmSession>;
|
|
129
|
-
};
|
|
130
|
-
export interface CreateWarmSessionOptions {
|
|
131
|
-
/** Forwarded to the client — see `ensureWarmProjectSession`'s option of the
|
|
132
|
-
* same name. Set by a take's replenish to the id it just took. */
|
|
133
|
-
excludeSessionId?: string;
|
|
134
|
-
/**
|
|
135
|
-
* Retries left after the store rejects a produced session as already-taken
|
|
136
|
-
* (see `WarmSessionState.settleCreate`). Internal — callers never set this;
|
|
137
|
-
* it bounds the loop to exactly one retry per take so a server that keeps
|
|
138
|
-
* echoing the excluded id cannot spin forever.
|
|
139
|
-
*/
|
|
140
|
-
retriesLeft?: number;
|
|
141
|
-
/** Cross-tab taken registry — injectable for tests, the shared app-wide
|
|
142
|
-
* instance otherwise. See `warm-session-taken-registry.ts`. */
|
|
143
|
-
registry?: WarmTakenRegistry;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Create this project's warm session unless it already has one.
|
|
147
|
-
*
|
|
148
|
-
* Non-blocking and failure-silent by contract: nothing about the composer waits
|
|
149
|
-
* on it, and a failure leaves the user on the ordinary create path with no
|
|
150
|
-
* visible difference.
|
|
151
|
-
*
|
|
152
|
-
* If the produced session is one this tab already took (the store's
|
|
153
|
-
* `settleCreate` refuses to file it), this retries EXACTLY ONCE — a server
|
|
154
|
-
* without the exclusion fix, or a race, can otherwise echo the same id back
|
|
155
|
-
* forever and this must not become a busy loop.
|
|
156
|
-
*/
|
|
157
|
-
export declare function createWarmSession(projectId: string, client?: WarmSessionClient, options?: CreateWarmSessionOptions): Promise<void>;
|
|
158
|
-
export interface TakeWarmSessionOptions {
|
|
159
|
-
create?: WarmSendCreateInput;
|
|
160
|
-
/**
|
|
161
|
-
* Create a replacement, so a second "New session" is instant too. Defaults to
|
|
162
|
-
* true; still subject to the tab being visible.
|
|
163
|
-
*/
|
|
164
|
-
replenish?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* The presence check for the replenish above. Injectable so tests never have
|
|
167
|
-
* to install a process-wide `document` — bun runs one process for the whole
|
|
168
|
-
* suite, and a fake global there breaks unrelated files that expect a real
|
|
169
|
-
* DOM.
|
|
170
|
-
*/
|
|
171
|
-
isPresent?: () => boolean;
|
|
172
|
-
client?: WarmSessionClient;
|
|
173
|
-
/** Cross-tab taken registry — injectable for tests, the shared app-wide
|
|
174
|
-
* instance otherwise. See `warm-session-taken-registry.ts`. */
|
|
175
|
-
registry?: WarmTakenRegistry;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Take this project's warm session for a send, or null to create normally —
|
|
179
|
-
* the FULL entry (id, agent, sandbox, and the server row itself). Synchronous
|
|
180
|
-
* and network-free — the session already exists. Null covers both "none ready",
|
|
181
|
-
* "the one we have cannot serve this send" and "another tab took it already";
|
|
182
|
-
* either way the caller falls back to the ordinary create path, which
|
|
183
|
-
* re-evaluates every gate and surfaces the same outcome the user would have
|
|
184
|
-
* seen regardless.
|
|
185
|
-
*
|
|
186
|
-
* A warm session that does not fit is CONSUMED, not kept: the user changed
|
|
187
|
-
* their mind about the agent, so it will not fit the next send either.
|
|
188
|
-
*
|
|
189
|
-
* `use-new-project-session.ts` calls this one so it can seed the sessions-list
|
|
190
|
-
* cache with `.session` at adoption time (`warm-session-seed.ts`) — see
|
|
191
|
-
* JAY-599 / T21.
|
|
192
|
-
*/
|
|
193
|
-
export declare function takeWarmSessionEntry(projectId: string, options?: TakeWarmSessionOptions): WarmSession | null;
|
|
194
|
-
/**
|
|
195
|
-
* A session this browser NAVIGATES TO is a session in use. Publish every
|
|
196
|
-
* visited session id to the cross-tab registry and drop any held warm entry
|
|
197
|
-
* that matches, returning the project that lost its hold (so the caller can
|
|
198
|
-
* replenish). This closes the adoption paths that never go through
|
|
199
|
-
* `takeWarmSessionEntry`: the manager inventory lists warm rows without a
|
|
200
|
-
* badge, and a direct URL opens one — either way the FIRST `/start` adopts it
|
|
201
|
-
* server-side while every holding tab still files it as ready. Recording ids
|
|
202
|
-
* that were never warm costs one idempotent registry write and protects
|
|
203
|
-
* nothing less: an id this browser has opened must never be a warm candidate.
|
|
204
|
-
*/
|
|
205
|
-
export declare function recordSessionNavigation(sessionId: string | null | undefined, registry?: WarmTakenRegistry): string | null;
|
|
206
|
-
/** The one session read revalidation makes, injectable for tests. */
|
|
207
|
-
export type WarmSessionRowFetch = (projectId: string, sessionId: string) => Promise<{
|
|
208
|
-
metadata?: unknown;
|
|
209
|
-
} | null>;
|
|
210
|
-
/**
|
|
211
|
-
* Re-check a HELD warm entry against the server, dropping it when its warm
|
|
212
|
-
* marker is gone — i.e. someone adopted it from a scope this browser's
|
|
213
|
-
* registry cannot see (another browser, profile, incognito window, or
|
|
214
|
-
* device; localStorage does not cross any of those). Fired on visibility
|
|
215
|
-
* regain, the moment a parked surface becomes able to send again.
|
|
216
|
-
*
|
|
217
|
-
* Fail-open on a fetch error: a network blip must not discard a good warm
|
|
218
|
-
* session. Take-safe: the drop only lands if the SAME session is still held
|
|
219
|
-
* after the fetch — a take that raced the fetch already consumed (and
|
|
220
|
-
* published) it, and its own send is protected by the take-time checks.
|
|
221
|
-
* Returns whether a stale hold was dropped, so the caller replenishes.
|
|
222
|
-
*/
|
|
223
|
-
export declare function revalidateHeldWarmSession(projectId: string, options?: {
|
|
224
|
-
registry?: WarmTakenRegistry;
|
|
225
|
-
fetchSession?: WarmSessionRowFetch;
|
|
226
|
-
}): Promise<boolean>;
|
|
227
|
-
/** Is the user actually looking at this tab right now? */
|
|
228
|
-
export declare function tabIsVisible(): boolean;
|
|
229
|
-
/**
|
|
230
|
-
* Keep one warm session ready while the user is present on this project.
|
|
231
|
-
*
|
|
232
|
-
* `enabled` carries the two reasons never to spend a box: the `warm_sessions`
|
|
233
|
-
* flag is off for the project, or the account cannot run at all.
|
|
234
|
-
*
|
|
235
|
-
* `activeSessionId` is the session the current route shows (the shell's
|
|
236
|
-
* `params.sessionId`). Navigating to a session is USING it, whatever surface
|
|
237
|
-
* navigated — see `recordSessionNavigation`.
|
|
238
|
-
*/
|
|
239
|
-
export declare function useWarmProjectSession(projectId: string | undefined, enabled: boolean, activeSessionId?: string | null): void;
|
|
240
|
-
/**
|
|
241
|
-
* Hand a TAKEN warm session its first prompt, durably, before navigating.
|
|
242
|
-
*
|
|
243
|
-
* The first prompt of a session is a server-side inbox row, never a
|
|
244
|
-
* client-side replay. The ordinary path gets that row from
|
|
245
|
-
* `create.pending_prompt` inside the create transaction; a warm session was
|
|
246
|
-
* created seconds ago with an EMPTY body, so the local `takeWarmSessionEntry`
|
|
247
|
-
* alone navigates into a session that has never heard the prompt — the "my
|
|
248
|
-
* first message disappears" bug, on the warm path. The server's claim route
|
|
249
|
-
* is the one call that does the whole hand-off in one transaction: inserts
|
|
250
|
-
* the row (`convertPendingPromptToInboxRow`, re-minted at delivery), drops the
|
|
251
|
-
* warm marker, and kicks the drain so the box answers now.
|
|
252
|
-
*
|
|
253
|
-
* Returns false when the claim was REFUSED (another tab took the session, the
|
|
254
|
-
* marker is already gone) — the caller falls back to the ordinary create,
|
|
255
|
-
* which carries the same prompt. Never throws.
|
|
256
|
-
*
|
|
257
|
-
* This is the ONE place in `apps/web` that calls the SDK's claim.
|
|
258
|
-
*/
|
|
259
|
-
export declare function primeTakenWarmSession(projectId: string, warm: WarmSession, input: {
|
|
260
|
-
pending_prompt: PendingSessionPrompt;
|
|
261
|
-
agent_name?: string;
|
|
262
|
-
sandbox_slug?: string;
|
|
263
|
-
},
|
|
264
|
-
/** Injected in tests; the SDK's claim otherwise. */
|
|
265
|
-
claim?: typeof claimWarmProjectSession,
|
|
266
|
-
/** Injected in tests; the SDK's session read otherwise. */
|
|
267
|
-
read?: typeof getProjectSession,
|
|
268
|
-
/** Injected in tests; a real timer otherwise. */
|
|
269
|
-
sleep?: (ms: number) => Promise<void>): Promise<boolean>;
|
|
270
|
-
export {};
|