glirastes 0.3.2 → 0.5.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/CHANGELOG.md +386 -1
- package/README.md +304 -853
- package/adapter/nextjs/package.json +5 -0
- package/ai-sdk/package.json +5 -0
- package/browser/package.json +5 -0
- package/contracts/package.json +5 -0
- package/dist/agent/git.d.ts +65 -0
- package/dist/agent/git.js +122 -0
- package/dist/agent/git.js.map +1 -0
- package/dist/agent/openrouter.d.ts +56 -0
- package/dist/agent/openrouter.js +74 -0
- package/dist/agent/openrouter.js.map +1 -0
- package/dist/agent/platform-jobs.d.ts +102 -0
- package/dist/agent/platform-jobs.js +122 -0
- package/dist/agent/platform-jobs.js.map +1 -0
- package/dist/agent/runner.d.ts +150 -0
- package/dist/agent/runner.js +250 -0
- package/dist/agent/runner.js.map +1 -0
- package/dist/agent/workspace.d.ts +65 -0
- package/dist/agent/workspace.js +264 -0
- package/dist/agent/workspace.js.map +1 -0
- package/dist/browser/client-actions.d.ts +26 -0
- package/dist/browser/client-actions.js +42 -0
- package/dist/browser/client-actions.js.map +1 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.js +5 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/navigation.d.ts +32 -0
- package/dist/browser/navigation.js +79 -0
- package/dist/browser/navigation.js.map +1 -0
- package/dist/browser/query-filters.d.ts +30 -0
- package/dist/browser/query-filters.js +85 -0
- package/dist/browser/query-filters.js.map +1 -0
- package/dist/browser/ui-action-bus.d.ts +26 -0
- package/dist/browser/ui-action-bus.js +66 -0
- package/dist/browser/ui-action-bus.js.map +1 -0
- package/dist/cjs/browser/client-actions.d.ts +26 -0
- package/dist/cjs/browser/client-actions.js +45 -0
- package/dist/cjs/browser/index.d.ts +4 -0
- package/dist/cjs/browser/index.js +16 -0
- package/dist/cjs/browser/navigation.d.ts +32 -0
- package/dist/cjs/browser/navigation.js +84 -0
- package/dist/cjs/browser/query-filters.d.ts +30 -0
- package/dist/cjs/browser/query-filters.js +87 -0
- package/dist/cjs/browser/ui-action-bus.d.ts +26 -0
- package/dist/cjs/browser/ui-action-bus.js +70 -0
- package/dist/cjs/codegen/execution-inventory.d.ts +63 -0
- package/dist/cjs/codegen/execution-inventory.js +312 -0
- package/dist/cjs/codegen/index.d.ts +4 -13
- package/dist/cjs/codegen/index.js +13 -31
- package/dist/cjs/codegen/inventory-generation.d.ts +104 -0
- package/dist/cjs/codegen/inventory-generation.js +122 -0
- package/dist/cjs/codegen/next-source-generation.d.ts +17 -0
- package/dist/cjs/codegen/next-source-generation.js +51 -0
- package/dist/cjs/codegen/openapi-document.d.ts +53 -0
- package/dist/cjs/codegen/openapi-document.js +127 -0
- package/dist/cjs/codegen/route-exports.d.ts +13 -0
- package/dist/cjs/codegen/route-exports.js +122 -0
- package/dist/cjs/codegen/route-fingerprint.d.ts +2 -0
- package/dist/cjs/codegen/route-fingerprint.js +11 -0
- package/dist/cjs/codegen/route-scanner.d.ts +57 -0
- package/dist/cjs/codegen/route-scanner.js +239 -0
- package/dist/cjs/codegen/tools/canonical.d.ts +12 -0
- package/dist/cjs/codegen/tools/canonical.js +49 -0
- package/dist/cjs/codegen/tools/sources/nest-decorators.d.ts +27 -0
- package/dist/cjs/codegen/tools/sources/nest-decorators.js +73 -0
- package/dist/cjs/contracts/app-setup.d.ts +346 -0
- package/dist/cjs/contracts/app-setup.js +208 -0
- package/dist/cjs/contracts/chat-command.d.ts +65 -0
- package/dist/cjs/contracts/chat-command.js +128 -0
- package/dist/cjs/contracts/chat-interactions.d.ts +126 -0
- package/dist/cjs/contracts/chat-interactions.js +439 -0
- package/dist/cjs/contracts/clarification.d.ts +53 -0
- package/dist/cjs/contracts/clarification.js +91 -0
- package/dist/cjs/contracts/content-boundary.d.ts +3 -0
- package/dist/cjs/contracts/content-boundary.js +95 -0
- package/dist/cjs/contracts/events.d.ts +273 -0
- package/dist/cjs/contracts/events.js +229 -0
- package/dist/cjs/contracts/index.d.ts +18 -0
- package/dist/cjs/contracts/index.js +83 -0
- package/dist/cjs/contracts/plan.d.ts +20 -0
- package/dist/cjs/contracts/plan.js +38 -0
- package/dist/cjs/contracts/platform-connection.d.ts +44 -0
- package/dist/cjs/contracts/platform-connection.js +66 -0
- package/dist/cjs/contracts/platform-prompt-revision.d.ts +27 -0
- package/dist/cjs/contracts/platform-prompt-revision.js +46 -0
- package/dist/cjs/contracts/prompt-bundle.d.ts +46 -0
- package/dist/cjs/contracts/prompt-bundle.js +74 -0
- package/dist/cjs/contracts/revisions.d.ts +716 -0
- package/dist/cjs/contracts/revisions.js +301 -0
- package/dist/cjs/contracts/runtime.d.ts +55 -0
- package/dist/cjs/contracts/runtime.js +67 -0
- package/dist/cjs/contracts/semantic-change.d.ts +27 -0
- package/dist/cjs/contracts/semantic-change.js +103 -0
- package/dist/cjs/contracts/tool-exclude-pattern.d.ts +12 -0
- package/dist/cjs/contracts/tool-exclude-pattern.js +29 -0
- package/dist/cjs/contracts/tool-policy-entry.d.ts +107 -0
- package/dist/cjs/contracts/tool-policy-entry.js +42 -0
- package/dist/cjs/contracts/tool-policy.d.ts +198 -0
- package/dist/cjs/contracts/tool-policy.js +500 -0
- package/dist/cjs/contracts/url.d.ts +2 -0
- package/dist/cjs/contracts/url.js +10 -0
- package/dist/cjs/diagnostics/foundation-diagnostic.d.ts +34 -0
- package/dist/cjs/diagnostics/foundation-diagnostic.js +52 -0
- package/dist/cjs/diagnostics/index.d.ts +2 -0
- package/dist/cjs/diagnostics/index.js +7 -0
- package/dist/cjs/embed/chat-styles.generated.d.ts +1 -0
- package/dist/cjs/embed/chat-styles.generated.js +6 -0
- package/dist/cjs/embed/glirastes-chat-element.d.ts +67 -0
- package/dist/cjs/embed/glirastes-chat-element.js +282 -0
- package/dist/cjs/embed/index.d.ts +4 -0
- package/dist/cjs/embed/index.js +20 -0
- package/dist/cjs/embed/theme.d.ts +10 -0
- package/dist/cjs/embed/theme.js +45 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/react/assistant/assistant-layout.d.ts +55 -0
- package/dist/cjs/react/assistant/assistant-layout.js +107 -0
- package/dist/cjs/react/assistant/assistant-shell.d.ts +132 -0
- package/dist/cjs/react/assistant/assistant-shell.js +267 -0
- package/dist/cjs/react/assistant/assistant-shortcut-list.d.ts +24 -0
- package/dist/cjs/react/assistant/assistant-shortcut-list.js +35 -0
- package/dist/cjs/react/assistant/assistant-workspace.d.ts +31 -0
- package/dist/cjs/react/assistant/assistant-workspace.js +33 -0
- package/dist/cjs/react/completions/completion-search.d.ts +21 -0
- package/dist/cjs/react/completions/completion-search.js +111 -0
- package/dist/cjs/react/completions/ui-tool-command-provider.d.ts +15 -0
- package/dist/cjs/react/completions/ui-tool-command-provider.js +84 -0
- package/dist/cjs/react/components/activity-log.d.ts +17 -0
- package/dist/cjs/react/components/activity-log.js +70 -0
- package/dist/cjs/react/components/ai-chat-panel.js +13 -6
- package/dist/cjs/react/components/ai-trigger-button.d.ts +1 -1
- package/dist/cjs/react/components/ai-trigger-button.js +11 -66
- package/dist/cjs/react/components/chat-input.js +6 -4
- package/dist/cjs/react/components/chat-window-visibility.d.ts +3 -0
- package/dist/cjs/react/components/chat-window-visibility.js +7 -0
- package/dist/cjs/react/components/chat-window.d.ts +1 -1
- package/dist/cjs/react/components/chat-window.js +124 -57
- package/dist/cjs/react/components/clarification-card.d.ts +10 -0
- package/dist/cjs/react/components/clarification-card.js +35 -0
- package/dist/cjs/react/components/command-arguments-form.d.ts +10 -0
- package/dist/cjs/react/components/command-arguments-form.js +153 -0
- package/dist/cjs/react/components/confirm-dialog.js +1 -1
- package/dist/cjs/react/components/floating-chat-ui.d.ts +3 -3
- package/dist/cjs/react/components/floating-chat-ui.js +30 -4
- package/dist/cjs/react/components/mention-input.d.ts +5 -4
- package/dist/cjs/react/components/mention-input.js +64 -7
- package/dist/cjs/react/components/message-bubble.js +90 -14
- package/dist/cjs/react/components/plan-checklist.d.ts +14 -0
- package/dist/cjs/react/components/plan-checklist.js +20 -0
- package/dist/cjs/react/components/recording-bar.js +44 -58
- package/dist/cjs/react/components/rich-mention-input.js +197 -45
- package/dist/cjs/react/components/session-switcher.d.ts +3 -1
- package/dist/cjs/react/components/session-switcher.js +26 -11
- package/dist/cjs/react/components/status-icon.d.ts +8 -0
- package/dist/cjs/react/components/status-icon.js +11 -0
- package/dist/cjs/react/components/stream-waveform.d.ts +4 -0
- package/dist/cjs/react/components/stream-waveform.js +49 -0
- package/dist/cjs/react/components/voice-input-addon.d.ts +16 -1
- package/dist/cjs/react/components/voice-input-addon.js +255 -18
- package/dist/cjs/react/components/voice-input-button.js +1 -1
- package/dist/cjs/react/hooks/use-chat-shortcuts.d.ts +33 -0
- package/dist/cjs/react/hooks/use-chat-shortcuts.js +139 -0
- package/dist/cjs/react/hooks/use-deepgram-transcription.d.ts +4 -0
- package/dist/cjs/react/hooks/use-deepgram-transcription.js +31 -321
- package/dist/cjs/react/hooks/use-drag-resize-panel.d.ts +1 -0
- package/dist/cjs/react/hooks/use-drag-resize-panel.js +246 -121
- package/dist/cjs/react/hooks/use-floating-panel.d.ts +57 -0
- package/dist/cjs/react/hooks/use-floating-panel.js +217 -0
- package/dist/cjs/react/hooks/use-keyboard-shortcut.js +2 -1
- package/dist/cjs/react/hooks/use-push-to-talk-hotkey.d.ts +24 -0
- package/dist/cjs/react/hooks/use-push-to-talk-hotkey.js +116 -0
- package/dist/cjs/react/hooks/use-sidebar-resize.d.ts +19 -0
- package/dist/cjs/react/hooks/use-sidebar-resize.js +109 -0
- package/dist/cjs/react/index.d.ts +30 -1
- package/dist/cjs/react/index.js +91 -1
- package/dist/cjs/react/interactions/definitions.d.ts +67 -0
- package/dist/cjs/react/interactions/definitions.js +83 -0
- package/dist/cjs/react/interactions/registry.d.ts +74 -0
- package/dist/cjs/react/interactions/registry.js +250 -0
- package/dist/cjs/react/interactions/use-chat-interactions-data.d.ts +15 -0
- package/dist/cjs/react/interactions/use-chat-interactions-data.js +43 -0
- package/dist/cjs/react/locale-de.d.ts +3 -0
- package/dist/cjs/react/locale-de.js +66 -0
- package/dist/cjs/react/provider/ai-chat-provider.d.ts +1 -1
- package/dist/cjs/react/provider/ai-chat-provider.js +407 -106
- package/dist/cjs/react/provider/chat-context.d.ts +52 -1
- package/dist/cjs/react/stt/controller.d.ts +60 -0
- package/dist/cjs/react/stt/controller.js +268 -0
- package/dist/cjs/react/stt/deepgram.d.ts +30 -0
- package/dist/cjs/react/stt/deepgram.js +204 -0
- package/dist/cjs/react/stt/recorded.d.ts +29 -0
- package/dist/cjs/react/stt/recorded.js +115 -0
- package/dist/cjs/react/stt/segments.d.ts +18 -0
- package/dist/cjs/react/stt/segments.js +32 -0
- package/dist/cjs/react/stt/use-stt.d.ts +17 -0
- package/dist/cjs/react/stt/use-stt.js +41 -0
- package/dist/cjs/react/stt/waveform.d.ts +5 -0
- package/dist/cjs/react/stt/waveform.js +31 -0
- package/dist/cjs/react/styles.css +1529 -0
- package/dist/cjs/react/tool-renderers/registry.d.ts +31 -0
- package/dist/cjs/react/tool-renderers/registry.js +50 -0
- package/dist/cjs/react/tool-renderers/renderer-boundary.d.ts +18 -0
- package/dist/cjs/react/tool-renderers/renderer-boundary.js +15 -0
- package/dist/cjs/react/transports/vercel/vercel-ai-chat.d.ts +1 -1
- package/dist/cjs/react/transports/vercel/vercel-ai-chat.js +2 -2
- package/dist/cjs/react/transports/vercel.d.ts +6 -0
- package/dist/cjs/react/transports/vercel.js +12 -6
- package/dist/cjs/react/types.d.ts +264 -6
- package/dist/cjs/react/ui.d.ts +18 -17
- package/dist/cjs/react/ui.js +50 -45
- package/dist/cjs/react/unstyled.d.ts +7 -0
- package/dist/cjs/react/unstyled.js +10 -0
- package/dist/cjs/react/utils/activity.d.ts +16 -0
- package/dist/cjs/react/utils/activity.js +80 -0
- package/dist/cjs/react/utils/clarification.d.ts +31 -0
- package/dist/cjs/react/utils/clarification.js +104 -0
- package/dist/cjs/react/utils/create-approval-description.d.ts +6 -0
- package/dist/cjs/react/utils/create-approval-description.js +32 -3
- package/dist/cjs/react/utils/create-tool-result-handler.d.ts +1 -1
- package/dist/cjs/react/utils/create-tool-result-handler.js +1 -1
- package/dist/cjs/react/utils/entity-names.d.ts +6 -0
- package/dist/cjs/react/utils/entity-names.js +57 -0
- package/dist/cjs/react/utils/followup-suggestions.d.ts +11 -0
- package/dist/cjs/react/utils/followup-suggestions.js +39 -0
- package/dist/cjs/react/utils/local-session-store.d.ts +30 -0
- package/dist/cjs/react/utils/local-session-store.js +165 -0
- package/dist/cjs/react/utils/mention-markup.d.ts +44 -1
- package/dist/cjs/react/utils/mention-markup.js +144 -10
- package/dist/cjs/react/utils/tool-presentation.d.ts +23 -0
- package/dist/cjs/react/utils/tool-presentation.js +46 -0
- package/dist/cjs/react/utils/tool-result-config.d.ts +10 -0
- package/dist/cjs/react/utils/tool-result-config.js +14 -0
- package/dist/cjs/runtime/ai-sdk/engine.d.ts +66 -0
- package/dist/cjs/runtime/ai-sdk/engine.js +192 -0
- package/dist/cjs/runtime/ai-sdk/index.d.ts +1 -0
- package/dist/cjs/runtime/ai-sdk/index.js +5 -0
- package/dist/cjs/runtime/authorization.d.ts +16 -0
- package/dist/cjs/runtime/authorization.js +35 -0
- package/dist/cjs/runtime/budget.d.ts +39 -0
- package/dist/cjs/runtime/budget.js +100 -0
- package/dist/cjs/runtime/contract-bindings.d.ts +52 -0
- package/dist/cjs/runtime/contract-bindings.js +95 -0
- package/dist/cjs/runtime/engine.d.ts +52 -0
- package/dist/cjs/runtime/engine.js +2 -0
- package/dist/cjs/runtime/fingerprint.d.ts +6 -0
- package/dist/cjs/runtime/fingerprint.js +31 -0
- package/dist/cjs/runtime/glirastes.d.ts +112 -0
- package/dist/cjs/runtime/glirastes.js +287 -0
- package/dist/cjs/runtime/index.d.ts +23 -0
- package/dist/cjs/runtime/index.js +71 -0
- package/dist/cjs/runtime/json-schema.d.ts +13 -0
- package/dist/cjs/runtime/json-schema.js +46 -0
- package/dist/cjs/runtime/local-runtime-source.d.ts +76 -0
- package/dist/cjs/runtime/local-runtime-source.js +0 -0
- package/dist/cjs/runtime/local-signer.d.ts +17 -0
- package/dist/cjs/runtime/local-signer.js +34 -0
- package/dist/cjs/runtime/local-tool-bindings.d.ts +57 -0
- package/dist/cjs/runtime/local-tool-bindings.js +197 -0
- package/dist/cjs/runtime/managed-turn.d.ts +29 -0
- package/dist/cjs/runtime/managed-turn.js +99 -0
- package/dist/cjs/runtime/metrics/cost.d.ts +64 -0
- package/dist/cjs/runtime/metrics/cost.js +98 -0
- package/dist/cjs/runtime/metrics/sink.d.ts +56 -0
- package/dist/cjs/runtime/metrics/sink.js +217 -0
- package/dist/cjs/runtime/metrics/turn-recorder.d.ts +62 -0
- package/dist/cjs/runtime/metrics/turn-recorder.js +172 -0
- package/dist/cjs/runtime/offline-execution-lease.d.ts +27 -0
- package/dist/cjs/runtime/offline-execution-lease.js +49 -0
- package/dist/cjs/runtime/policy-overlay.d.ts +86 -0
- package/dist/cjs/runtime/policy-overlay.js +122 -0
- package/dist/cjs/runtime/postgres-store.d.ts +111 -0
- package/dist/cjs/runtime/postgres-store.js +368 -0
- package/dist/cjs/runtime/prompt-bundle-store.d.ts +58 -0
- package/dist/cjs/runtime/prompt-bundle-store.js +123 -0
- package/dist/cjs/runtime/runtime-mode.d.ts +23 -0
- package/dist/cjs/runtime/runtime-mode.js +46 -0
- package/dist/cjs/runtime/tool-discovery.d.ts +51 -0
- package/dist/cjs/runtime/tool-discovery.js +141 -0
- package/dist/cjs/runtime/tool-search.d.ts +31 -0
- package/dist/cjs/runtime/tool-search.js +149 -0
- package/dist/cjs/runtime/turn-snapshot.d.ts +44 -0
- package/dist/cjs/runtime/turn-snapshot.js +112 -0
- package/dist/cjs/server/adapters/nextjs/approval-binding.d.ts +334 -0
- package/dist/cjs/server/adapters/nextjs/approval-binding.js +724 -0
- package/dist/cjs/server/adapters/nextjs/chat-interactions-handler.d.ts +26 -0
- package/dist/cjs/server/adapters/nextjs/chat-interactions-handler.js +67 -0
- package/dist/cjs/server/adapters/nextjs/clarification-resume.d.ts +21 -0
- package/dist/cjs/server/adapters/nextjs/clarification-resume.js +112 -0
- package/dist/cjs/server/adapters/nextjs/context-helpers.d.ts +49 -8
- package/dist/cjs/server/adapters/nextjs/context-helpers.js +76 -21
- package/dist/cjs/server/adapters/nextjs/create-ai-chat-handler.d.ts +59 -1
- package/dist/cjs/server/adapters/nextjs/create-ai-chat-handler.js +648 -94
- package/dist/cjs/server/adapters/nextjs/direct-command.d.ts +75 -0
- package/dist/cjs/server/adapters/nextjs/direct-command.js +322 -0
- package/dist/cjs/server/adapters/nextjs/index.d.ts +10 -2
- package/dist/cjs/server/adapters/nextjs/index.js +24 -1
- package/dist/cjs/server/adapters/nextjs/prepare-model-messages.d.ts +2 -1
- package/dist/cjs/server/adapters/nextjs/prepare-model-messages.js +6 -14
- package/dist/cjs/server/adapters/nextjs/recording-transcription-handler.d.ts +31 -0
- package/dist/cjs/server/adapters/nextjs/recording-transcription-handler.js +58 -0
- package/dist/cjs/server/adapters/nextjs/request-guards.d.ts +41 -0
- package/dist/cjs/server/adapters/nextjs/request-guards.js +112 -0
- package/dist/cjs/server/adapters/nextjs/sanitize-model-messages.js +12 -6
- package/dist/cjs/server/adapters/nextjs/scope-pipeline-tools.d.ts +17 -0
- package/dist/cjs/server/adapters/nextjs/scope-pipeline-tools.js +28 -0
- package/dist/cjs/server/adapters/nextjs/tool-discovery.d.ts +39 -0
- package/dist/cjs/server/adapters/nextjs/tool-discovery.js +50 -0
- package/dist/cjs/server/adapters/nextjs/tool-presentation.d.ts +26 -0
- package/dist/cjs/server/adapters/nextjs/tool-presentation.js +21 -0
- package/dist/cjs/server/adapters/nextjs/types.d.ts +229 -13
- package/dist/cjs/server/adapters/nextjs/with-ai-tool.d.ts +2 -2
- package/dist/cjs/server/core/adaptive-fast-path.d.ts +3 -0
- package/dist/cjs/server/core/adaptive-fast-path.js +188 -0
- package/dist/cjs/server/core/clarification-tool.d.ts +29 -0
- package/dist/cjs/server/core/clarification-tool.js +64 -0
- package/dist/cjs/server/core/generated-ui-tool.d.ts +31 -0
- package/dist/cjs/server/core/generated-ui-tool.js +89 -0
- package/dist/cjs/server/core/index.d.ts +49 -8
- package/dist/cjs/server/core/index.js +208 -17
- package/dist/cjs/server/core/local-guardrails.d.ts +6 -0
- package/dist/cjs/server/core/local-guardrails.js +70 -0
- package/dist/cjs/server/core/module-router.d.ts +3 -1
- package/dist/cjs/server/core/module-router.js +22 -2
- package/dist/cjs/server/core/plan-tool.d.ts +23 -0
- package/dist/cjs/server/core/plan-tool.js +35 -0
- package/dist/cjs/server/core/zod-compact.d.ts +3 -3
- package/dist/cjs/server/core/zod-compact.js +126 -54
- package/dist/cjs/server/index.d.ts +2 -4
- package/dist/cjs/server/index.js +4 -5
- package/dist/cjs/server/local-pipeline.d.ts +14 -0
- package/dist/cjs/server/local-pipeline.js +154 -0
- package/dist/cjs/server/pii-shield/index.d.ts +1 -0
- package/dist/cjs/server/pii-shield/index.js +3 -1
- package/dist/cjs/server/pii-shield/regex-detector.d.ts +13 -0
- package/dist/cjs/server/pii-shield/regex-detector.js +111 -0
- package/dist/cjs/server/testing/edge-cases.js +52 -101
- package/dist/cjs/server/testing/guardrails.js +2 -66
- package/dist/cjs/server/testing/helpers.js +1 -62
- package/dist/cjs/server/testing/index.d.ts +1 -0
- package/dist/cjs/server/testing/index.js +3 -1
- package/dist/cjs/server/testing/registry-parity.d.ts +18 -0
- package/dist/cjs/server/testing/registry-parity.js +40 -0
- package/dist/cjs/server/testing/schema-consistency.js +5 -26
- package/dist/cjs/server/testing/smoke.d.ts +2 -1
- package/dist/cjs/server/testing/smoke.js +7 -3
- package/dist/cjs/server/testing/types.d.ts +1 -1
- package/dist/cjs/server/testing/zod-introspect.d.ts +38 -0
- package/dist/cjs/server/testing/zod-introspect.js +297 -0
- package/dist/cjs/stt/index.d.ts +5 -0
- package/dist/cjs/stt/index.js +16 -0
- package/dist/cjs/sync/app-setup-client.d.ts +46 -0
- package/dist/cjs/sync/app-setup-client.js +140 -0
- package/dist/cjs/sync/capability-report.d.ts +41 -0
- package/dist/cjs/sync/capability-report.js +52 -0
- package/dist/cjs/sync/connection-lookup.d.ts +19 -0
- package/dist/cjs/sync/connection-lookup.js +58 -0
- package/dist/cjs/sync/control-plane-client.d.ts +69 -0
- package/dist/cjs/sync/control-plane-client.js +186 -0
- package/dist/cjs/sync/deployment-selector.d.ts +9 -0
- package/dist/cjs/sync/deployment-selector.js +29 -0
- package/dist/cjs/sync/fetch-sse-push.d.ts +6 -0
- package/dist/cjs/sync/fetch-sse-push.js +45 -0
- package/dist/cjs/sync/index.d.ts +26 -0
- package/dist/cjs/sync/index.js +43 -0
- package/dist/cjs/sync/jwks-provider.d.ts +14 -0
- package/dist/cjs/sync/jwks-provider.js +56 -0
- package/dist/cjs/sync/local-deployment-validator.d.ts +30 -0
- package/dist/cjs/sync/local-deployment-validator.js +62 -0
- package/dist/cjs/sync/managed-sync.d.ts +40 -0
- package/dist/cjs/sync/managed-sync.js +96 -0
- package/dist/cjs/sync/materialize-deployment.d.ts +7 -0
- package/dist/cjs/sync/materialize-deployment.js +65 -0
- package/dist/cjs/sync/runtime-connect-client.d.ts +23 -0
- package/dist/cjs/sync/runtime-connect-client.js +185 -0
- package/dist/cjs/sync/runtime-setup-client.d.ts +62 -0
- package/dist/cjs/sync/runtime-setup-client.js +157 -0
- package/dist/cjs/sync/signature-verifier.d.ts +39 -0
- package/dist/cjs/sync/signature-verifier.js +102 -0
- package/dist/cjs/sync/state-store.d.ts +24 -0
- package/dist/cjs/sync/state-store.js +51 -0
- package/dist/cjs/sync/sync-manager.d.ts +27 -0
- package/dist/cjs/sync/sync-manager.js +173 -0
- package/dist/cjs/types.d.ts +68 -16
- package/dist/cjs/types.js +31 -3
- package/dist/cli/bin.js +34 -23
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/agent-setup.d.ts +27 -0
- package/dist/cli/commands/agent-setup.js +149 -0
- package/dist/cli/commands/agent-setup.js.map +1 -0
- package/dist/cli/commands/apply-setup-plan.d.ts +21 -0
- package/dist/cli/commands/apply-setup-plan.js +100 -0
- package/dist/cli/commands/apply-setup-plan.js.map +1 -0
- package/dist/cli/commands/atomic-artifact-write.d.ts +19 -0
- package/dist/cli/commands/atomic-artifact-write.js +106 -0
- package/dist/cli/commands/atomic-artifact-write.js.map +1 -0
- package/dist/cli/commands/ci-workflow.d.ts +48 -0
- package/dist/cli/commands/ci-workflow.js +209 -0
- package/dist/cli/commands/ci-workflow.js.map +1 -0
- package/dist/cli/commands/connect.d.ts +47 -0
- package/dist/cli/commands/connect.js +216 -0
- package/dist/cli/commands/connect.js.map +1 -0
- package/dist/cli/commands/connection-descriptor.d.ts +4 -0
- package/dist/cli/commands/connection-descriptor.js +47 -0
- package/dist/cli/commands/connection-descriptor.js.map +1 -0
- package/dist/cli/commands/connection-environment.d.ts +25 -0
- package/dist/cli/commands/connection-environment.js +151 -0
- package/dist/cli/commands/connection-environment.js.map +1 -0
- package/dist/cli/commands/current-setup-manifests.d.ts +7 -0
- package/dist/cli/commands/current-setup-manifests.js +16 -0
- package/dist/cli/commands/current-setup-manifests.js.map +1 -0
- package/dist/cli/commands/doctor-presentation.d.ts +5 -0
- package/dist/cli/commands/doctor-presentation.js +86 -0
- package/dist/cli/commands/doctor-presentation.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +27 -0
- package/dist/cli/commands/doctor.js +220 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/init-scaffold.d.ts +25 -0
- package/dist/cli/commands/init-scaffold.js +214 -0
- package/dist/cli/commands/init-scaffold.js.map +1 -0
- package/dist/cli/commands/install-skills.d.ts +26 -4
- package/dist/cli/commands/install-skills.js +165 -80
- package/dist/cli/commands/install-skills.js.map +1 -1
- package/dist/cli/commands/installed-skills-manifest.d.ts +87 -0
- package/dist/cli/commands/installed-skills-manifest.js +124 -0
- package/dist/cli/commands/installed-skills-manifest.js.map +1 -0
- package/dist/cli/commands/installer-parts.d.ts +31 -0
- package/dist/cli/commands/installer-parts.js +94 -0
- package/dist/cli/commands/installer-parts.js.map +1 -0
- package/dist/cli/commands/project-inspection.d.ts +35 -0
- package/dist/cli/commands/project-inspection.js +199 -0
- package/dist/cli/commands/project-inspection.js.map +1 -0
- package/dist/cli/commands/setup-plan.d.ts +65 -0
- package/dist/cli/commands/setup-plan.js +234 -0
- package/dist/cli/commands/setup-plan.js.map +1 -0
- package/dist/cli/commands/setup-profile.d.ts +28 -0
- package/dist/cli/commands/setup-profile.js +152 -0
- package/dist/cli/commands/setup-profile.js.map +1 -0
- package/dist/cli/commands/setup-wizard.d.ts +66 -0
- package/dist/cli/commands/setup-wizard.js +241 -0
- package/dist/cli/commands/setup-wizard.js.map +1 -0
- package/dist/cli/commands/sync.d.ts +58 -0
- package/dist/cli/commands/sync.js +233 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/commands/tools/args.d.ts +14 -0
- package/dist/cli/commands/tools/args.js +33 -0
- package/dist/cli/commands/tools/args.js.map +1 -0
- package/dist/cli/commands/tools/check.d.ts +7 -0
- package/dist/cli/commands/tools/check.js +35 -0
- package/dist/cli/commands/tools/check.js.map +1 -0
- package/dist/cli/commands/tools/describe.d.ts +12 -0
- package/dist/cli/commands/tools/describe.js +43 -0
- package/dist/cli/commands/tools/describe.js.map +1 -0
- package/dist/cli/commands/tools/enrich.d.ts +50 -0
- package/dist/cli/commands/tools/enrich.js +597 -0
- package/dist/cli/commands/tools/enrich.js.map +1 -0
- package/dist/cli/commands/tools/eval.d.ts +13 -0
- package/dist/cli/commands/tools/eval.js +49 -0
- package/dist/cli/commands/tools/eval.js.map +1 -0
- package/dist/cli/commands/tools/format.d.ts +42 -0
- package/dist/cli/commands/tools/format.js +155 -0
- package/dist/cli/commands/tools/format.js.map +1 -0
- package/dist/cli/commands/tools/index.d.ts +26 -0
- package/dist/cli/commands/tools/index.js +107 -0
- package/dist/cli/commands/tools/index.js.map +1 -0
- package/dist/cli/commands/tools/policy.d.ts +11 -0
- package/dist/cli/commands/tools/policy.js +355 -0
- package/dist/cli/commands/tools/policy.js.map +1 -0
- package/dist/cli/commands/tools/refresh.d.ts +6 -0
- package/dist/cli/commands/tools/refresh.js +87 -0
- package/dist/cli/commands/tools/refresh.js.map +1 -0
- package/dist/cli/commands/tools/resolve.d.ts +10 -0
- package/dist/cli/commands/tools/resolve.js +19 -0
- package/dist/cli/commands/tools/resolve.js.map +1 -0
- package/dist/cli/commands/tools/status.d.ts +11 -0
- package/dist/cli/commands/tools/status.js +76 -0
- package/dist/cli/commands/tools/status.js.map +1 -0
- package/dist/cli/commands/tools/verify.d.ts +13 -0
- package/dist/cli/commands/tools/verify.js +168 -0
- package/dist/cli/commands/tools/verify.js.map +1 -0
- package/dist/cli/commands/tools/watch.d.ts +27 -0
- package/dist/cli/commands/tools/watch.js +148 -0
- package/dist/cli/commands/tools/watch.js.map +1 -0
- package/dist/cli/commands/validate-build.d.ts +88 -0
- package/dist/cli/commands/validate-build.js +213 -0
- package/dist/cli/commands/validate-build.js.map +1 -0
- package/dist/cli/commands/workspace-sources.d.ts +27 -0
- package/dist/cli/commands/workspace-sources.js +159 -0
- package/dist/cli/commands/workspace-sources.js.map +1 -0
- package/dist/cli/environment-loading.d.ts +6 -0
- package/dist/cli/environment-loading.js +18 -0
- package/dist/cli/environment-loading.js.map +1 -0
- package/dist/cli/index.d.ts +14 -1
- package/dist/cli/index.js +558 -574
- package/dist/cli/index.js.map +1 -1
- package/dist/codegen/execution-inventory.d.ts +63 -0
- package/dist/codegen/execution-inventory.js +306 -0
- package/dist/codegen/execution-inventory.js.map +1 -0
- package/dist/codegen/index.d.ts +4 -13
- package/dist/codegen/index.js +4 -12
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/inventory-generation.d.ts +104 -0
- package/dist/codegen/inventory-generation.js +119 -0
- package/dist/codegen/inventory-generation.js.map +1 -0
- package/dist/codegen/next-source-generation.d.ts +17 -0
- package/dist/codegen/next-source-generation.js +49 -0
- package/dist/codegen/next-source-generation.js.map +1 -0
- package/dist/codegen/openapi-document.d.ts +53 -0
- package/dist/codegen/openapi-document.js +120 -0
- package/dist/codegen/openapi-document.js.map +1 -0
- package/dist/codegen/route-exports.d.ts +13 -0
- package/dist/codegen/route-exports.js +117 -0
- package/dist/codegen/route-exports.js.map +1 -0
- package/dist/codegen/route-fingerprint.d.ts +2 -0
- package/dist/codegen/route-fingerprint.js +9 -0
- package/dist/codegen/route-fingerprint.js.map +1 -0
- package/dist/codegen/route-scanner.d.ts +57 -0
- package/dist/codegen/route-scanner.js +233 -0
- package/dist/codegen/route-scanner.js.map +1 -0
- package/dist/codegen/tools/agentic.d.ts +31 -0
- package/dist/codegen/tools/agentic.js +110 -0
- package/dist/codegen/tools/agentic.js.map +1 -0
- package/dist/codegen/tools/artifact.d.ts +139 -0
- package/dist/codegen/tools/artifact.js +199 -0
- package/dist/codegen/tools/artifact.js.map +1 -0
- package/dist/codegen/tools/canonical.d.ts +12 -0
- package/dist/codegen/tools/canonical.js +41 -0
- package/dist/codegen/tools/canonical.js.map +1 -0
- package/dist/codegen/tools/chat-interactions.d.ts +27 -0
- package/dist/codegen/tools/chat-interactions.js +377 -0
- package/dist/codegen/tools/chat-interactions.js.map +1 -0
- package/dist/codegen/tools/config.d.ts +116 -0
- package/dist/codegen/tools/config.js +172 -0
- package/dist/codegen/tools/config.js.map +1 -0
- package/dist/codegen/tools/contract-tiers.d.ts +64 -0
- package/dist/codegen/tools/contract-tiers.js +518 -0
- package/dist/codegen/tools/contract-tiers.js.map +1 -0
- package/dist/codegen/tools/emit-module.d.ts +13 -0
- package/dist/codegen/tools/emit-module.js +182 -0
- package/dist/codegen/tools/emit-module.js.map +1 -0
- package/dist/codegen/tools/evidence.d.ts +13 -0
- package/dist/codegen/tools/evidence.js +138 -0
- package/dist/codegen/tools/evidence.js.map +1 -0
- package/dist/codegen/tools/exclusions.d.ts +30 -0
- package/dist/codegen/tools/exclusions.js +95 -0
- package/dist/codegen/tools/exclusions.js.map +1 -0
- package/dist/codegen/tools/files.d.ts +195 -0
- package/dist/codegen/tools/files.js +119 -0
- package/dist/codegen/tools/files.js.map +1 -0
- package/dist/codegen/tools/findings.d.ts +7 -0
- package/dist/codegen/tools/findings.js +106 -0
- package/dist/codegen/tools/findings.js.map +1 -0
- package/dist/codegen/tools/handler-analysis.d.ts +49 -0
- package/dist/codegen/tools/handler-analysis.js +375 -0
- package/dist/codegen/tools/handler-analysis.js.map +1 -0
- package/dist/codegen/tools/handler-locator.d.ts +21 -0
- package/dist/codegen/tools/handler-locator.js +152 -0
- package/dist/codegen/tools/handler-locator.js.map +1 -0
- package/dist/codegen/tools/identity.d.ts +18 -0
- package/dist/codegen/tools/identity.js +100 -0
- package/dist/codegen/tools/identity.js.map +1 -0
- package/dist/codegen/tools/input-roles.d.ts +32 -0
- package/dist/codegen/tools/input-roles.js +283 -0
- package/dist/codegen/tools/input-roles.js.map +1 -0
- package/dist/codegen/tools/inputs.d.ts +33 -0
- package/dist/codegen/tools/inputs.js +101 -0
- package/dist/codegen/tools/inputs.js.map +1 -0
- package/dist/codegen/tools/interface-digest.d.ts +14 -0
- package/dist/codegen/tools/interface-digest.js +24 -0
- package/dist/codegen/tools/interface-digest.js.map +1 -0
- package/dist/codegen/tools/mcp-names.d.ts +23 -0
- package/dist/codegen/tools/mcp-names.js +59 -0
- package/dist/codegen/tools/mcp-names.js.map +1 -0
- package/dist/codegen/tools/mode.d.ts +7 -0
- package/dist/codegen/tools/mode.js +27 -0
- package/dist/codegen/tools/mode.js.map +1 -0
- package/dist/codegen/tools/output-inference.d.ts +6 -0
- package/dist/codegen/tools/output-inference.js +99 -0
- package/dist/codegen/tools/output-inference.js.map +1 -0
- package/dist/codegen/tools/pipeline.d.ts +85 -0
- package/dist/codegen/tools/pipeline.js +733 -0
- package/dist/codegen/tools/pipeline.js.map +1 -0
- package/dist/codegen/tools/probe-child.mjs +155 -0
- package/dist/codegen/tools/probe-loader.mjs +105 -0
- package/dist/codegen/tools/program.d.ts +16 -0
- package/dist/codegen/tools/program.js +80 -0
- package/dist/codegen/tools/program.js.map +1 -0
- package/dist/codegen/tools/prose.d.ts +42 -0
- package/dist/codegen/tools/prose.js +211 -0
- package/dist/codegen/tools/prose.js.map +1 -0
- package/dist/codegen/tools/resolutions.d.ts +117 -0
- package/dist/codegen/tools/resolutions.js +195 -0
- package/dist/codegen/tools/resolutions.js.map +1 -0
- package/dist/codegen/tools/routing-eval.d.ts +50 -0
- package/dist/codegen/tools/routing-eval.js +81 -0
- package/dist/codegen/tools/routing-eval.js.map +1 -0
- package/dist/codegen/tools/schema-probe.d.ts +62 -0
- package/dist/codegen/tools/schema-probe.js +209 -0
- package/dist/codegen/tools/schema-probe.js.map +1 -0
- package/dist/codegen/tools/semantics.d.ts +134 -0
- package/dist/codegen/tools/semantics.js +206 -0
- package/dist/codegen/tools/semantics.js.map +1 -0
- package/dist/codegen/tools/sources/app-files.d.ts +35 -0
- package/dist/codegen/tools/sources/app-files.js +109 -0
- package/dist/codegen/tools/sources/app-files.js.map +1 -0
- package/dist/codegen/tools/sources/fastapi-routes.py +177 -0
- package/dist/codegen/tools/sources/nest-decorators.d.ts +27 -0
- package/dist/codegen/tools/sources/nest-decorators.js +65 -0
- package/dist/codegen/tools/sources/nest-decorators.js.map +1 -0
- package/dist/codegen/tools/sources/nest-endpoints.d.ts +10 -0
- package/dist/codegen/tools/sources/nest-endpoints.js +522 -0
- package/dist/codegen/tools/sources/nest-endpoints.js.map +1 -0
- package/dist/codegen/tools/sources/next-endpoints.d.ts +5 -0
- package/dist/codegen/tools/sources/next-endpoints.js +389 -0
- package/dist/codegen/tools/sources/next-endpoints.js.map +1 -0
- package/dist/codegen/tools/sources/next-pages.d.ts +18 -0
- package/dist/codegen/tools/sources/next-pages.js +88 -0
- package/dist/codegen/tools/sources/next-pages.js.map +1 -0
- package/dist/codegen/tools/sources/openapi-endpoints.d.ts +17 -0
- package/dist/codegen/tools/sources/openapi-endpoints.js +395 -0
- package/dist/codegen/tools/sources/openapi-endpoints.js.map +1 -0
- package/dist/codegen/tools/sources/page-tree.d.ts +49 -0
- package/dist/codegen/tools/sources/page-tree.js +152 -0
- package/dist/codegen/tools/sources/page-tree.js.map +1 -0
- package/dist/codegen/tools/sources/react-actions.d.ts +12 -0
- package/dist/codegen/tools/sources/react-actions.js +341 -0
- package/dist/codegen/tools/sources/react-actions.js.map +1 -0
- package/dist/codegen/tools/sources/route-config.d.ts +49 -0
- package/dist/codegen/tools/sources/route-config.js +427 -0
- package/dist/codegen/tools/sources/route-config.js.map +1 -0
- package/dist/codegen/tools/sources/ui-controls.d.ts +41 -0
- package/dist/codegen/tools/sources/ui-controls.js +360 -0
- package/dist/codegen/tools/sources/ui-controls.js.map +1 -0
- package/dist/codegen/tools/sources/ui-tools.d.ts +79 -0
- package/dist/codegen/tools/sources/ui-tools.js +207 -0
- package/dist/codegen/tools/sources/ui-tools.js.map +1 -0
- package/dist/codegen/tools/sources/url-filters.d.ts +41 -0
- package/dist/codegen/tools/sources/url-filters.js +813 -0
- package/dist/codegen/tools/sources/url-filters.js.map +1 -0
- package/dist/codegen/tools/sources/vue-sfc.d.ts +22 -0
- package/dist/codegen/tools/sources/vue-sfc.js +65 -0
- package/dist/codegen/tools/sources/vue-sfc.js.map +1 -0
- package/dist/codegen/tools/state.d.ts +37 -0
- package/dist/codegen/tools/state.js +249 -0
- package/dist/codegen/tools/state.js.map +1 -0
- package/dist/codegen/tools/types.d.ts +137 -0
- package/dist/codegen/tools/types.js +2 -0
- package/dist/codegen/tools/types.js.map +1 -0
- package/dist/codegen/tools/worklist.d.ts +157 -0
- package/dist/codegen/tools/worklist.js +406 -0
- package/dist/codegen/tools/worklist.js.map +1 -0
- package/dist/contracts/app-setup.d.ts +346 -0
- package/dist/contracts/app-setup.js +205 -0
- package/dist/contracts/app-setup.js.map +1 -0
- package/dist/contracts/chat-command.d.ts +65 -0
- package/dist/contracts/chat-command.js +121 -0
- package/dist/contracts/chat-command.js.map +1 -0
- package/dist/contracts/chat-interactions.d.ts +126 -0
- package/dist/contracts/chat-interactions.js +431 -0
- package/dist/contracts/chat-interactions.js.map +1 -0
- package/dist/contracts/clarification.d.ts +53 -0
- package/dist/contracts/clarification.js +86 -0
- package/dist/contracts/clarification.js.map +1 -0
- package/dist/contracts/content-boundary.d.ts +3 -0
- package/dist/contracts/content-boundary.js +91 -0
- package/dist/contracts/content-boundary.js.map +1 -0
- package/dist/contracts/events.d.ts +273 -0
- package/dist/contracts/events.js +227 -0
- package/dist/contracts/events.js.map +1 -0
- package/dist/contracts/index.d.ts +18 -0
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/plan.d.ts +20 -0
- package/dist/contracts/plan.js +35 -0
- package/dist/contracts/plan.js.map +1 -0
- package/dist/contracts/platform-connection.d.ts +44 -0
- package/dist/contracts/platform-connection.js +64 -0
- package/dist/contracts/platform-connection.js.map +1 -0
- package/dist/contracts/platform-prompt-revision.d.ts +27 -0
- package/dist/contracts/platform-prompt-revision.js +44 -0
- package/dist/contracts/platform-prompt-revision.js.map +1 -0
- package/dist/contracts/prompt-bundle.d.ts +46 -0
- package/dist/contracts/prompt-bundle.js +70 -0
- package/dist/contracts/prompt-bundle.js.map +1 -0
- package/dist/contracts/revisions.d.ts +716 -0
- package/dist/contracts/revisions.js +298 -0
- package/dist/contracts/revisions.js.map +1 -0
- package/dist/contracts/runtime.d.ts +55 -0
- package/dist/contracts/runtime.js +65 -0
- package/dist/contracts/runtime.js.map +1 -0
- package/dist/contracts/semantic-change.d.ts +27 -0
- package/dist/contracts/semantic-change.js +101 -0
- package/dist/contracts/semantic-change.js.map +1 -0
- package/dist/contracts/tool-exclude-pattern.d.ts +12 -0
- package/dist/contracts/tool-exclude-pattern.js +27 -0
- package/dist/contracts/tool-exclude-pattern.js.map +1 -0
- package/dist/contracts/tool-policy-entry.d.ts +107 -0
- package/dist/contracts/tool-policy-entry.js +40 -0
- package/dist/contracts/tool-policy-entry.js.map +1 -0
- package/dist/contracts/tool-policy.d.ts +198 -0
- package/dist/contracts/tool-policy.js +485 -0
- package/dist/contracts/tool-policy.js.map +1 -0
- package/dist/contracts/url.d.ts +2 -0
- package/dist/contracts/url.js +8 -0
- package/dist/contracts/url.js.map +1 -0
- package/dist/diagnostics/foundation-diagnostic.d.ts +34 -0
- package/dist/diagnostics/foundation-diagnostic.js +47 -0
- package/dist/diagnostics/foundation-diagnostic.js.map +1 -0
- package/dist/diagnostics/index.d.ts +2 -0
- package/dist/diagnostics/index.js +2 -0
- package/dist/diagnostics/index.js.map +1 -0
- package/dist/embed/chat-styles.generated.d.ts +1 -0
- package/dist/embed/chat-styles.generated.js +4 -0
- package/dist/embed/chat-styles.generated.js.map +1 -0
- package/dist/embed/glirastes-chat-element.d.ts +67 -0
- package/dist/embed/glirastes-chat-element.js +278 -0
- package/dist/embed/glirastes-chat-element.js.map +1 -0
- package/dist/embed/index.d.ts +4 -0
- package/dist/embed/index.js +11 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/embed/theme.d.ts +10 -0
- package/dist/embed/theme.js +41 -0
- package/dist/embed/theme.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/assistant/assistant-layout.d.ts +55 -0
- package/dist/react/assistant/assistant-layout.js +99 -0
- package/dist/react/assistant/assistant-layout.js.map +1 -0
- package/dist/react/assistant/assistant-shell.d.ts +132 -0
- package/dist/react/assistant/assistant-shell.js +262 -0
- package/dist/react/assistant/assistant-shell.js.map +1 -0
- package/dist/react/assistant/assistant-shortcut-list.d.ts +24 -0
- package/dist/react/assistant/assistant-shortcut-list.js +32 -0
- package/dist/react/assistant/assistant-shortcut-list.js.map +1 -0
- package/dist/react/assistant/assistant-workspace.d.ts +31 -0
- package/dist/react/assistant/assistant-workspace.js +31 -0
- package/dist/react/assistant/assistant-workspace.js.map +1 -0
- package/dist/react/completions/completion-search.d.ts +21 -0
- package/dist/react/completions/completion-search.js +109 -0
- package/dist/react/completions/completion-search.js.map +1 -0
- package/dist/react/completions/ui-tool-command-provider.d.ts +15 -0
- package/dist/react/completions/ui-tool-command-provider.js +82 -0
- package/dist/react/completions/ui-tool-command-provider.js.map +1 -0
- package/dist/react/components/activity-log.d.ts +17 -0
- package/dist/react/components/activity-log.js +68 -0
- package/dist/react/components/activity-log.js.map +1 -0
- package/dist/react/components/ai-chat-panel.js +13 -6
- package/dist/react/components/ai-chat-panel.js.map +1 -1
- package/dist/react/components/ai-trigger-button.d.ts +1 -1
- package/dist/react/components/ai-trigger-button.js +13 -68
- package/dist/react/components/ai-trigger-button.js.map +1 -1
- package/dist/react/components/chat-input.js +7 -5
- package/dist/react/components/chat-input.js.map +1 -1
- package/dist/react/components/chat-window-visibility.d.ts +3 -0
- package/dist/react/components/chat-window-visibility.js +5 -0
- package/dist/react/components/chat-window-visibility.js.map +1 -0
- package/dist/react/components/chat-window.d.ts +1 -1
- package/dist/react/components/chat-window.js +124 -57
- package/dist/react/components/chat-window.js.map +1 -1
- package/dist/react/components/clarification-card.d.ts +10 -0
- package/dist/react/components/clarification-card.js +33 -0
- package/dist/react/components/clarification-card.js.map +1 -0
- package/dist/react/components/command-arguments-form.d.ts +10 -0
- package/dist/react/components/command-arguments-form.js +151 -0
- package/dist/react/components/command-arguments-form.js.map +1 -0
- package/dist/react/components/confirm-dialog.js +1 -1
- package/dist/react/components/confirm-dialog.js.map +1 -1
- package/dist/react/components/floating-chat-ui.d.ts +3 -3
- package/dist/react/components/floating-chat-ui.js +31 -5
- package/dist/react/components/floating-chat-ui.js.map +1 -1
- package/dist/react/components/mention-input.d.ts +5 -4
- package/dist/react/components/mention-input.js +65 -8
- package/dist/react/components/mention-input.js.map +1 -1
- package/dist/react/components/message-bubble.js +90 -14
- package/dist/react/components/message-bubble.js.map +1 -1
- package/dist/react/components/plan-checklist.d.ts +14 -0
- package/dist/react/components/plan-checklist.js +18 -0
- package/dist/react/components/plan-checklist.js.map +1 -0
- package/dist/react/components/recording-bar.js +45 -59
- package/dist/react/components/recording-bar.js.map +1 -1
- package/dist/react/components/rich-mention-input.js +199 -47
- package/dist/react/components/rich-mention-input.js.map +1 -1
- package/dist/react/components/session-switcher.d.ts +3 -1
- package/dist/react/components/session-switcher.js +27 -12
- package/dist/react/components/session-switcher.js.map +1 -1
- package/dist/react/components/status-icon.d.ts +8 -0
- package/dist/react/components/status-icon.js +9 -0
- package/dist/react/components/status-icon.js.map +1 -0
- package/dist/react/components/stream-waveform.d.ts +4 -0
- package/dist/react/components/stream-waveform.js +47 -0
- package/dist/react/components/stream-waveform.js.map +1 -0
- package/dist/react/components/voice-input-addon.d.ts +16 -1
- package/dist/react/components/voice-input-addon.js +256 -19
- package/dist/react/components/voice-input-addon.js.map +1 -1
- package/dist/react/components/voice-input-button.js +1 -1
- package/dist/react/components/voice-input-button.js.map +1 -1
- package/dist/react/hooks/use-chat-shortcuts.d.ts +33 -0
- package/dist/react/hooks/use-chat-shortcuts.js +133 -0
- package/dist/react/hooks/use-chat-shortcuts.js.map +1 -0
- package/dist/react/hooks/use-deepgram-transcription.d.ts +4 -0
- package/dist/react/hooks/use-deepgram-transcription.js +32 -322
- package/dist/react/hooks/use-deepgram-transcription.js.map +1 -1
- package/dist/react/hooks/use-drag-resize-panel.d.ts +1 -0
- package/dist/react/hooks/use-drag-resize-panel.js +246 -121
- package/dist/react/hooks/use-drag-resize-panel.js.map +1 -1
- package/dist/react/hooks/use-floating-panel.d.ts +57 -0
- package/dist/react/hooks/use-floating-panel.js +215 -0
- package/dist/react/hooks/use-floating-panel.js.map +1 -0
- package/dist/react/hooks/use-keyboard-shortcut.js +2 -1
- package/dist/react/hooks/use-keyboard-shortcut.js.map +1 -1
- package/dist/react/hooks/use-push-to-talk-hotkey.d.ts +24 -0
- package/dist/react/hooks/use-push-to-talk-hotkey.js +112 -0
- package/dist/react/hooks/use-push-to-talk-hotkey.js.map +1 -0
- package/dist/react/hooks/use-sidebar-resize.d.ts +19 -0
- package/dist/react/hooks/use-sidebar-resize.js +107 -0
- package/dist/react/hooks/use-sidebar-resize.js.map +1 -0
- package/dist/react/index.d.ts +30 -1
- package/dist/react/index.js +31 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/interactions/definitions.d.ts +67 -0
- package/dist/react/interactions/definitions.js +78 -0
- package/dist/react/interactions/definitions.js.map +1 -0
- package/dist/react/interactions/registry.d.ts +74 -0
- package/dist/react/interactions/registry.js +248 -0
- package/dist/react/interactions/registry.js.map +1 -0
- package/dist/react/interactions/use-chat-interactions-data.d.ts +15 -0
- package/dist/react/interactions/use-chat-interactions-data.js +41 -0
- package/dist/react/interactions/use-chat-interactions-data.js.map +1 -0
- package/dist/react/locale-de.d.ts +3 -0
- package/dist/react/locale-de.js +64 -0
- package/dist/react/locale-de.js.map +1 -0
- package/dist/react/provider/ai-chat-provider.d.ts +1 -1
- package/dist/react/provider/ai-chat-provider.js +408 -107
- package/dist/react/provider/ai-chat-provider.js.map +1 -1
- package/dist/react/provider/chat-context.d.ts +52 -1
- package/dist/react/provider/chat-context.js.map +1 -1
- package/dist/react/stt/controller.d.ts +60 -0
- package/dist/react/stt/controller.js +265 -0
- package/dist/react/stt/controller.js.map +1 -0
- package/dist/react/stt/deepgram.d.ts +30 -0
- package/dist/react/stt/deepgram.js +199 -0
- package/dist/react/stt/deepgram.js.map +1 -0
- package/dist/react/stt/recorded.d.ts +29 -0
- package/dist/react/stt/recorded.js +111 -0
- package/dist/react/stt/recorded.js.map +1 -0
- package/dist/react/stt/segments.d.ts +18 -0
- package/dist/react/stt/segments.js +29 -0
- package/dist/react/stt/segments.js.map +1 -0
- package/dist/react/stt/use-stt.d.ts +17 -0
- package/dist/react/stt/use-stt.js +39 -0
- package/dist/react/stt/use-stt.js.map +1 -0
- package/dist/react/stt/waveform.d.ts +5 -0
- package/dist/react/stt/waveform.js +29 -0
- package/dist/react/stt/waveform.js.map +1 -0
- package/dist/react/styles.css +758 -126
- package/dist/react/tool-renderers/registry.d.ts +31 -0
- package/dist/react/tool-renderers/registry.js +47 -0
- package/dist/react/tool-renderers/registry.js.map +1 -0
- package/dist/react/tool-renderers/renderer-boundary.d.ts +18 -0
- package/dist/react/tool-renderers/renderer-boundary.js +12 -0
- package/dist/react/tool-renderers/renderer-boundary.js.map +1 -0
- package/dist/react/transports/vercel/vercel-ai-chat.d.ts +1 -1
- package/dist/react/transports/vercel/vercel-ai-chat.js +2 -2
- package/dist/react/transports/vercel/vercel-ai-chat.js.map +1 -1
- package/dist/react/transports/vercel.d.ts +6 -0
- package/dist/react/transports/vercel.js +11 -6
- package/dist/react/transports/vercel.js.map +1 -1
- package/dist/react/types.d.ts +264 -6
- package/dist/react/ui.d.ts +18 -17
- package/dist/react/ui.js +46 -43
- package/dist/react/ui.js.map +1 -1
- package/dist/react/unstyled.d.ts +7 -0
- package/dist/react/unstyled.js +8 -0
- package/dist/react/unstyled.js.map +1 -0
- package/dist/react/utils/activity.d.ts +16 -0
- package/dist/react/utils/activity.js +77 -0
- package/dist/react/utils/activity.js.map +1 -0
- package/dist/react/utils/clarification.d.ts +31 -0
- package/dist/react/utils/clarification.js +99 -0
- package/dist/react/utils/clarification.js.map +1 -0
- package/dist/react/utils/create-approval-description.d.ts +6 -0
- package/dist/react/utils/create-approval-description.js +32 -3
- package/dist/react/utils/create-approval-description.js.map +1 -1
- package/dist/react/utils/create-tool-result-handler.d.ts +1 -1
- package/dist/react/utils/create-tool-result-handler.js +1 -1
- package/dist/react/utils/create-tool-result-handler.js.map +1 -1
- package/dist/react/utils/entity-names.d.ts +6 -0
- package/dist/react/utils/entity-names.js +55 -0
- package/dist/react/utils/entity-names.js.map +1 -0
- package/dist/react/utils/followup-suggestions.d.ts +11 -0
- package/dist/react/utils/followup-suggestions.js +37 -0
- package/dist/react/utils/followup-suggestions.js.map +1 -0
- package/dist/react/utils/local-session-store.d.ts +30 -0
- package/dist/react/utils/local-session-store.js +163 -0
- package/dist/react/utils/local-session-store.js.map +1 -0
- package/dist/react/utils/mention-markup.d.ts +44 -1
- package/dist/react/utils/mention-markup.js +140 -10
- package/dist/react/utils/mention-markup.js.map +1 -1
- package/dist/react/utils/tool-presentation.d.ts +23 -0
- package/dist/react/utils/tool-presentation.js +41 -0
- package/dist/react/utils/tool-presentation.js.map +1 -0
- package/dist/react/utils/tool-result-config.d.ts +10 -0
- package/dist/react/utils/tool-result-config.js +12 -0
- package/dist/react/utils/tool-result-config.js.map +1 -0
- package/dist/runtime/ai-sdk/engine.d.ts +66 -0
- package/dist/runtime/ai-sdk/engine.js +188 -0
- package/dist/runtime/ai-sdk/engine.js.map +1 -0
- package/dist/runtime/ai-sdk/index.d.ts +1 -0
- package/dist/runtime/ai-sdk/index.js +2 -0
- package/dist/runtime/ai-sdk/index.js.map +1 -0
- package/dist/runtime/authorization.d.ts +16 -0
- package/dist/runtime/authorization.js +33 -0
- package/dist/runtime/authorization.js.map +1 -0
- package/dist/runtime/budget.d.ts +39 -0
- package/dist/runtime/budget.js +97 -0
- package/dist/runtime/budget.js.map +1 -0
- package/dist/runtime/contract-bindings.d.ts +52 -0
- package/dist/runtime/contract-bindings.js +92 -0
- package/dist/runtime/contract-bindings.js.map +1 -0
- package/dist/runtime/engine.d.ts +52 -0
- package/dist/runtime/engine.js +2 -0
- package/dist/runtime/engine.js.map +1 -0
- package/dist/runtime/fingerprint.d.ts +6 -0
- package/dist/runtime/fingerprint.js +29 -0
- package/dist/runtime/fingerprint.js.map +1 -0
- package/dist/runtime/glirastes.d.ts +112 -0
- package/dist/runtime/glirastes.js +285 -0
- package/dist/runtime/glirastes.js.map +1 -0
- package/dist/runtime/index.d.ts +23 -0
- package/dist/runtime/index.js +23 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/json-schema.d.ts +13 -0
- package/dist/runtime/json-schema.js +41 -0
- package/dist/runtime/json-schema.js.map +1 -0
- package/dist/runtime/local-runtime-source.d.ts +76 -0
- package/dist/runtime/local-runtime-source.js +0 -0
- package/dist/runtime/local-runtime-source.js.map +1 -0
- package/dist/runtime/local-signer.d.ts +17 -0
- package/dist/runtime/local-signer.js +32 -0
- package/dist/runtime/local-signer.js.map +1 -0
- package/dist/runtime/local-tool-bindings.d.ts +57 -0
- package/dist/runtime/local-tool-bindings.js +190 -0
- package/dist/runtime/local-tool-bindings.js.map +1 -0
- package/dist/runtime/managed-turn.d.ts +29 -0
- package/dist/runtime/managed-turn.js +97 -0
- package/dist/runtime/managed-turn.js.map +1 -0
- package/dist/runtime/metrics/cost.d.ts +64 -0
- package/dist/runtime/metrics/cost.js +92 -0
- package/dist/runtime/metrics/cost.js.map +1 -0
- package/dist/runtime/metrics/sink.d.ts +56 -0
- package/dist/runtime/metrics/sink.js +214 -0
- package/dist/runtime/metrics/sink.js.map +1 -0
- package/dist/runtime/metrics/turn-recorder.d.ts +62 -0
- package/dist/runtime/metrics/turn-recorder.js +170 -0
- package/dist/runtime/metrics/turn-recorder.js.map +1 -0
- package/dist/runtime/offline-execution-lease.d.ts +27 -0
- package/dist/runtime/offline-execution-lease.js +46 -0
- package/dist/runtime/offline-execution-lease.js.map +1 -0
- package/dist/runtime/policy-overlay.d.ts +86 -0
- package/dist/runtime/policy-overlay.js +117 -0
- package/dist/runtime/policy-overlay.js.map +1 -0
- package/dist/runtime/postgres-store.d.ts +111 -0
- package/dist/runtime/postgres-store.js +363 -0
- package/dist/runtime/postgres-store.js.map +1 -0
- package/dist/runtime/prompt-bundle-store.d.ts +58 -0
- package/dist/runtime/prompt-bundle-store.js +120 -0
- package/dist/runtime/prompt-bundle-store.js.map +1 -0
- package/dist/runtime/runtime-mode.d.ts +23 -0
- package/dist/runtime/runtime-mode.js +42 -0
- package/dist/runtime/runtime-mode.js.map +1 -0
- package/dist/runtime/tool-discovery.d.ts +51 -0
- package/dist/runtime/tool-discovery.js +138 -0
- package/dist/runtime/tool-discovery.js.map +1 -0
- package/dist/runtime/tool-search.d.ts +31 -0
- package/dist/runtime/tool-search.js +145 -0
- package/dist/runtime/tool-search.js.map +1 -0
- package/dist/runtime/turn-snapshot.d.ts +44 -0
- package/dist/runtime/turn-snapshot.js +108 -0
- package/dist/runtime/turn-snapshot.js.map +1 -0
- package/dist/server/adapters/nextjs/approval-binding.d.ts +334 -0
- package/dist/server/adapters/nextjs/approval-binding.js +707 -0
- package/dist/server/adapters/nextjs/approval-binding.js.map +1 -0
- package/dist/server/adapters/nextjs/chat-interactions-handler.d.ts +26 -0
- package/dist/server/adapters/nextjs/chat-interactions-handler.js +65 -0
- package/dist/server/adapters/nextjs/chat-interactions-handler.js.map +1 -0
- package/dist/server/adapters/nextjs/clarification-resume.d.ts +21 -0
- package/dist/server/adapters/nextjs/clarification-resume.js +109 -0
- package/dist/server/adapters/nextjs/clarification-resume.js.map +1 -0
- package/dist/server/adapters/nextjs/context-helpers.d.ts +49 -8
- package/dist/server/adapters/nextjs/context-helpers.js +75 -21
- package/dist/server/adapters/nextjs/context-helpers.js.map +1 -1
- package/dist/server/adapters/nextjs/create-ai-chat-handler.d.ts +59 -1
- package/dist/server/adapters/nextjs/create-ai-chat-handler.js +647 -95
- package/dist/server/adapters/nextjs/create-ai-chat-handler.js.map +1 -1
- package/dist/server/adapters/nextjs/direct-command.d.ts +75 -0
- package/dist/server/adapters/nextjs/direct-command.js +316 -0
- package/dist/server/adapters/nextjs/direct-command.js.map +1 -0
- package/dist/server/adapters/nextjs/index.d.ts +10 -2
- package/dist/server/adapters/nextjs/index.js +7 -0
- package/dist/server/adapters/nextjs/index.js.map +1 -1
- package/dist/server/adapters/nextjs/prepare-model-messages.d.ts +2 -1
- package/dist/server/adapters/nextjs/prepare-model-messages.js +7 -15
- package/dist/server/adapters/nextjs/prepare-model-messages.js.map +1 -1
- package/dist/server/adapters/nextjs/recording-transcription-handler.d.ts +31 -0
- package/dist/server/adapters/nextjs/recording-transcription-handler.js +55 -0
- package/dist/server/adapters/nextjs/recording-transcription-handler.js.map +1 -0
- package/dist/server/adapters/nextjs/request-guards.d.ts +41 -0
- package/dist/server/adapters/nextjs/request-guards.js +108 -0
- package/dist/server/adapters/nextjs/request-guards.js.map +1 -0
- package/dist/server/adapters/nextjs/sanitize-model-messages.js +12 -6
- package/dist/server/adapters/nextjs/sanitize-model-messages.js.map +1 -1
- package/dist/server/adapters/nextjs/scope-pipeline-tools.d.ts +17 -0
- package/dist/server/adapters/nextjs/scope-pipeline-tools.js +26 -0
- package/dist/server/adapters/nextjs/scope-pipeline-tools.js.map +1 -0
- package/dist/server/adapters/nextjs/tool-discovery.d.ts +39 -0
- package/dist/server/adapters/nextjs/tool-discovery.js +47 -0
- package/dist/server/adapters/nextjs/tool-discovery.js.map +1 -0
- package/dist/server/adapters/nextjs/tool-presentation.d.ts +26 -0
- package/dist/server/adapters/nextjs/tool-presentation.js +19 -0
- package/dist/server/adapters/nextjs/tool-presentation.js.map +1 -0
- package/dist/server/adapters/nextjs/types.d.ts +229 -13
- package/dist/server/adapters/nextjs/with-ai-tool.d.ts +2 -2
- package/dist/server/core/adaptive-fast-path.d.ts +3 -0
- package/dist/server/core/adaptive-fast-path.js +185 -0
- package/dist/server/core/adaptive-fast-path.js.map +1 -0
- package/dist/server/core/clarification-tool.d.ts +29 -0
- package/dist/server/core/clarification-tool.js +61 -0
- package/dist/server/core/clarification-tool.js.map +1 -0
- package/dist/server/core/generated-ui-tool.d.ts +31 -0
- package/dist/server/core/generated-ui-tool.js +87 -0
- package/dist/server/core/generated-ui-tool.js.map +1 -0
- package/dist/server/core/index.d.ts +49 -8
- package/dist/server/core/index.js +198 -16
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/core/local-guardrails.d.ts +6 -0
- package/dist/server/core/local-guardrails.js +68 -0
- package/dist/server/core/local-guardrails.js.map +1 -0
- package/dist/server/core/module-router.d.ts +3 -1
- package/dist/server/core/module-router.js +22 -2
- package/dist/server/core/module-router.js.map +1 -1
- package/dist/server/core/plan-tool.d.ts +23 -0
- package/dist/server/core/plan-tool.js +32 -0
- package/dist/server/core/plan-tool.js.map +1 -0
- package/dist/server/core/zod-compact.d.ts +3 -3
- package/dist/server/core/zod-compact.js +126 -54
- package/dist/server/core/zod-compact.js.map +1 -1
- package/dist/server/index.d.ts +2 -4
- package/dist/server/index.js +2 -4
- package/dist/server/index.js.map +1 -1
- package/dist/server/local-pipeline.d.ts +14 -0
- package/dist/server/local-pipeline.js +152 -0
- package/dist/server/local-pipeline.js.map +1 -0
- package/dist/server/pii-shield/index.d.ts +1 -0
- package/dist/server/pii-shield/index.js +1 -0
- package/dist/server/pii-shield/index.js.map +1 -1
- package/dist/server/pii-shield/regex-detector.d.ts +13 -0
- package/dist/server/pii-shield/regex-detector.js +109 -0
- package/dist/server/pii-shield/regex-detector.js.map +1 -0
- package/dist/server/testing/edge-cases.js +46 -95
- package/dist/server/testing/edge-cases.js.map +1 -1
- package/dist/server/testing/guardrails.js +1 -65
- package/dist/server/testing/guardrails.js.map +1 -1
- package/dist/server/testing/helpers.js +1 -62
- package/dist/server/testing/helpers.js.map +1 -1
- package/dist/server/testing/index.d.ts +1 -0
- package/dist/server/testing/index.js +1 -0
- package/dist/server/testing/index.js.map +1 -1
- package/dist/server/testing/registry-parity.d.ts +18 -0
- package/dist/server/testing/registry-parity.js +38 -0
- package/dist/server/testing/registry-parity.js.map +1 -0
- package/dist/server/testing/schema-consistency.js +5 -26
- package/dist/server/testing/schema-consistency.js.map +1 -1
- package/dist/server/testing/smoke.d.ts +2 -1
- package/dist/server/testing/smoke.js +5 -3
- package/dist/server/testing/smoke.js.map +1 -1
- package/dist/server/testing/types.d.ts +1 -1
- package/dist/server/testing/zod-introspect.d.ts +38 -0
- package/dist/server/testing/zod-introspect.js +286 -0
- package/dist/server/testing/zod-introspect.js.map +1 -0
- package/dist/stt/index.d.ts +5 -0
- package/dist/stt/index.js +6 -0
- package/dist/stt/index.js.map +1 -0
- package/dist/sync/app-setup-client.d.ts +46 -0
- package/dist/sync/app-setup-client.js +137 -0
- package/dist/sync/app-setup-client.js.map +1 -0
- package/dist/sync/capability-report.d.ts +41 -0
- package/dist/sync/capability-report.js +48 -0
- package/dist/sync/capability-report.js.map +1 -0
- package/dist/sync/connection-lookup.d.ts +19 -0
- package/dist/sync/connection-lookup.js +56 -0
- package/dist/sync/connection-lookup.js.map +1 -0
- package/dist/sync/control-plane-client.d.ts +69 -0
- package/dist/sync/control-plane-client.js +182 -0
- package/dist/sync/control-plane-client.js.map +1 -0
- package/dist/sync/deployment-selector.d.ts +9 -0
- package/dist/sync/deployment-selector.js +26 -0
- package/dist/sync/deployment-selector.js.map +1 -0
- package/dist/sync/fetch-sse-push.d.ts +6 -0
- package/dist/sync/fetch-sse-push.js +42 -0
- package/dist/sync/fetch-sse-push.js.map +1 -0
- package/dist/sync/index.d.ts +26 -0
- package/dist/sync/index.js +17 -0
- package/dist/sync/index.js.map +1 -0
- package/dist/sync/jwks-provider.d.ts +14 -0
- package/dist/sync/jwks-provider.js +53 -0
- package/dist/sync/jwks-provider.js.map +1 -0
- package/dist/sync/local-deployment-validator.d.ts +30 -0
- package/dist/sync/local-deployment-validator.js +60 -0
- package/dist/sync/local-deployment-validator.js.map +1 -0
- package/dist/sync/managed-sync.d.ts +40 -0
- package/dist/sync/managed-sync.js +94 -0
- package/dist/sync/managed-sync.js.map +1 -0
- package/dist/sync/materialize-deployment.d.ts +7 -0
- package/dist/sync/materialize-deployment.js +63 -0
- package/dist/sync/materialize-deployment.js.map +1 -0
- package/dist/sync/runtime-connect-client.d.ts +23 -0
- package/dist/sync/runtime-connect-client.js +182 -0
- package/dist/sync/runtime-connect-client.js.map +1 -0
- package/dist/sync/runtime-setup-client.d.ts +62 -0
- package/dist/sync/runtime-setup-client.js +153 -0
- package/dist/sync/runtime-setup-client.js.map +1 -0
- package/dist/sync/signature-verifier.d.ts +39 -0
- package/dist/sync/signature-verifier.js +97 -0
- package/dist/sync/signature-verifier.js.map +1 -0
- package/dist/sync/state-store.d.ts +24 -0
- package/dist/sync/state-store.js +47 -0
- package/dist/sync/state-store.js.map +1 -0
- package/dist/sync/sync-manager.d.ts +27 -0
- package/dist/sync/sync-manager.js +170 -0
- package/dist/sync/sync-manager.js.map +1 -0
- package/dist/types.d.ts +68 -16
- package/dist/types.js +31 -3
- package/dist/types.js.map +1 -1
- package/embed/package.json +5 -0
- package/package.json +188 -47
- package/runtime/ai-sdk/package.json +5 -0
- package/runtime/package.json +5 -0
- package/skills/README.md +26 -92
- package/skills/building-glirastes-chat-ui/SKILL.md +358 -343
- package/skills/describing-glirastes-tools/SKILL.md +180 -0
- package/skills/integrating-glirastes-nextjs/SKILL.md +149 -302
- package/skills/integrating-glirastes-web/SKILL.md +165 -0
- package/skills/maintaining-glirastes-tools/SKILL.md +133 -461
- package/skills/migrating-to-glirastes/SKILL.md +112 -0
- package/skills/setting-up-glirastes/SKILL.md +158 -0
- package/skills/setting-up-glirastes/agents/openai.yaml +4 -0
- package/skills/setting-up-glirastes/references/artifact-contract.md +40 -0
- package/skills/setting-up-glirastes/scripts/validate-artifact.ts +23 -0
- package/skills/setting-up-glirastes/templates/interview.md +19 -0
- package/stt/package.json +5 -0
- package/dist/cjs/codegen/asset-sync.d.ts +0 -20
- package/dist/cjs/codegen/asset-sync.js +0 -28
- package/dist/cjs/codegen/coverage.d.ts +0 -66
- package/dist/cjs/codegen/coverage.js +0 -408
- package/dist/cjs/codegen/endpoint-scanner.d.ts +0 -16
- package/dist/cjs/codegen/endpoint-scanner.js +0 -197
- package/dist/cjs/codegen/mcp-generator.d.ts +0 -50
- package/dist/cjs/codegen/mcp-generator.js +0 -803
- package/dist/cjs/codegen/module-generator.d.ts +0 -11
- package/dist/cjs/codegen/module-generator.js +0 -353
- package/dist/cjs/codegen/nestjs-scanner.d.ts +0 -43
- package/dist/cjs/codegen/nestjs-scanner.js +0 -241
- package/dist/cjs/codegen/output-recommender.d.ts +0 -23
- package/dist/cjs/codegen/output-recommender.js +0 -33
- package/dist/cjs/codegen/scaffolder.d.ts +0 -36
- package/dist/cjs/codegen/scaffolder.js +0 -262
- package/dist/cjs/codegen/skill-generator.d.ts +0 -49
- package/dist/cjs/codegen/skill-generator.js +0 -967
- package/dist/cjs/codegen/ui-scanner.d.ts +0 -24
- package/dist/cjs/codegen/ui-scanner.js +0 -202
- package/dist/cjs/codegen/validator.d.ts +0 -35
- package/dist/cjs/codegen/validator.js +0 -292
- package/dist/cjs/openapi/index.d.ts +0 -78
- package/dist/cjs/openapi/index.js +0 -347
- package/dist/cjs/react/components/wavesurfer-loader.d.ts +0 -5
- package/dist/cjs/react/components/wavesurfer-loader.js +0 -36
- package/dist/cjs/react/transports/langgraph/index.d.ts +0 -2
- package/dist/cjs/react/transports/langgraph/index.js +0 -8
- package/dist/cjs/react/transports/langgraph/langgraph-ai-chat.d.ts +0 -62
- package/dist/cjs/react/transports/langgraph/langgraph-ai-chat.js +0 -94
- package/dist/cjs/react/transports/langgraph.d.ts +0 -71
- package/dist/cjs/react/transports/langgraph.js +0 -369
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat-auth.guard.d.ts +0 -10
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat-auth.guard.js +0 -42
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat-module-options.interface.d.ts +0 -32
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat-module-options.interface.js +0 -4
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat.controller.d.ts +0 -11
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat.controller.js +0 -80
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat.module.d.ts +0 -9
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat.module.js +0 -119
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat.service.d.ts +0 -13
- package/dist/cjs/server/adapters/nestjs/chat/ai-chat.service.js +0 -131
- package/dist/cjs/server/adapters/nestjs/chat/dto/ai-chat-request.dto.d.ts +0 -7
- package/dist/cjs/server/adapters/nestjs/chat/dto/ai-chat-request.dto.js +0 -52
- package/dist/cjs/server/adapters/nestjs/chat/dto/chat-message-part.dto.d.ts +0 -19
- package/dist/cjs/server/adapters/nestjs/chat/dto/chat-message-part.dto.js +0 -108
- package/dist/cjs/server/adapters/nestjs/chat/dto/chat-message.dto.d.ts +0 -8
- package/dist/cjs/server/adapters/nestjs/chat/dto/chat-message.dto.js +0 -59
- package/dist/cjs/server/adapters/nestjs/chat/dto/index.d.ts +0 -3
- package/dist/cjs/server/adapters/nestjs/chat/dto/index.js +0 -9
- package/dist/cjs/server/adapters/nestjs/chat/index.d.ts +0 -3
- package/dist/cjs/server/adapters/nestjs/chat/index.js +0 -9
- package/dist/cjs/server/adapters/nestjs/chat/speech-stream.gateway.d.ts +0 -4
- package/dist/cjs/server/adapters/nestjs/chat/speech-stream.gateway.js +0 -73
- package/dist/cjs/server/adapters/nestjs/chat/ws-loader.d.ts +0 -5
- package/dist/cjs/server/adapters/nestjs/chat/ws-loader.js +0 -72
- package/dist/cjs/server/adapters/nestjs/decorators/ai-module.decorator.d.ts +0 -6
- package/dist/cjs/server/adapters/nestjs/decorators/ai-module.decorator.js +0 -13
- package/dist/cjs/server/adapters/nestjs/decorators/ai-param.decorator.d.ts +0 -5
- package/dist/cjs/server/adapters/nestjs/decorators/ai-param.decorator.js +0 -15
- package/dist/cjs/server/adapters/nestjs/decorators/ai-tool.decorator.d.ts +0 -6
- package/dist/cjs/server/adapters/nestjs/decorators/ai-tool.decorator.js +0 -22
- package/dist/cjs/server/adapters/nestjs/decorators/constants.d.ts +0 -4
- package/dist/cjs/server/adapters/nestjs/decorators/constants.js +0 -7
- package/dist/cjs/server/adapters/nestjs/index.d.ts +0 -14
- package/dist/cjs/server/adapters/nestjs/index.js +0 -42
- package/dist/cjs/server/adapters/nestjs/metadata.d.ts +0 -39
- package/dist/cjs/server/adapters/nestjs/metadata.js +0 -36
- package/dist/cjs/server/adapters/nestjs/module/ai-tools-explorer.service.d.ts +0 -36
- package/dist/cjs/server/adapters/nestjs/module/ai-tools-explorer.service.js +0 -159
- package/dist/cjs/server/adapters/nestjs/module/ai-tools.module.d.ts +0 -37
- package/dist/cjs/server/adapters/nestjs/module/ai-tools.module.js +0 -44
- package/dist/cjs/server/adapters/nestjs/module/ai-tools.service.d.ts +0 -28
- package/dist/cjs/server/adapters/nestjs/module/ai-tools.service.js +0 -41
- package/dist/cjs/server/adapters/nestjs/scanner/nestjs-scanner.d.ts +0 -16
- package/dist/cjs/server/adapters/nestjs/scanner/nestjs-scanner.js +0 -117
- package/dist/cjs/server/adapters/nestjs/scanner/schema-builder.d.ts +0 -26
- package/dist/cjs/server/adapters/nestjs/scanner/schema-builder.js +0 -259
- package/dist/cjs/server/adapters/nestjs/swagger.d.ts +0 -7
- package/dist/cjs/server/adapters/nestjs/swagger.js +0 -39
- package/dist/cli/commands/check-upgrade.d.ts +0 -15
- package/dist/cli/commands/check-upgrade.js +0 -138
- package/dist/cli/commands/check-upgrade.js.map +0 -1
- package/dist/cli/commands/test.d.ts +0 -8
- package/dist/cli/commands/test.js +0 -76
- package/dist/cli/commands/test.js.map +0 -1
- package/dist/cli/utils/changelog-parser.d.ts +0 -13
- package/dist/cli/utils/changelog-parser.js +0 -89
- package/dist/cli/utils/changelog-parser.js.map +0 -1
- package/dist/cli/utils/commit-parser.d.ts +0 -8
- package/dist/cli/utils/commit-parser.js +0 -23
- package/dist/cli/utils/commit-parser.js.map +0 -1
- package/dist/cli/utils/gap-detector.d.ts +0 -14
- package/dist/cli/utils/gap-detector.js +0 -65
- package/dist/cli/utils/gap-detector.js.map +0 -1
- package/dist/cli/utils/get-cli-version.d.ts +0 -2
- package/dist/cli/utils/get-cli-version.js +0 -10
- package/dist/cli/utils/get-cli-version.js.map +0 -1
- package/dist/codegen/asset-sync.d.ts +0 -20
- package/dist/codegen/asset-sync.js +0 -26
- package/dist/codegen/asset-sync.js.map +0 -1
- package/dist/codegen/coverage.d.ts +0 -66
- package/dist/codegen/coverage.js +0 -372
- package/dist/codegen/coverage.js.map +0 -1
- package/dist/codegen/endpoint-scanner.d.ts +0 -16
- package/dist/codegen/endpoint-scanner.js +0 -161
- package/dist/codegen/endpoint-scanner.js.map +0 -1
- package/dist/codegen/mcp-generator.d.ts +0 -50
- package/dist/codegen/mcp-generator.js +0 -801
- package/dist/codegen/mcp-generator.js.map +0 -1
- package/dist/codegen/module-generator.d.ts +0 -11
- package/dist/codegen/module-generator.js +0 -351
- package/dist/codegen/module-generator.js.map +0 -1
- package/dist/codegen/nestjs-scanner.d.ts +0 -43
- package/dist/codegen/nestjs-scanner.js +0 -239
- package/dist/codegen/nestjs-scanner.js.map +0 -1
- package/dist/codegen/output-recommender.d.ts +0 -23
- package/dist/codegen/output-recommender.js +0 -31
- package/dist/codegen/output-recommender.js.map +0 -1
- package/dist/codegen/scaffolder.d.ts +0 -36
- package/dist/codegen/scaffolder.js +0 -259
- package/dist/codegen/scaffolder.js.map +0 -1
- package/dist/codegen/skill-generator.d.ts +0 -49
- package/dist/codegen/skill-generator.js +0 -965
- package/dist/codegen/skill-generator.js.map +0 -1
- package/dist/codegen/ui-scanner.d.ts +0 -24
- package/dist/codegen/ui-scanner.js +0 -197
- package/dist/codegen/ui-scanner.js.map +0 -1
- package/dist/codegen/validator.d.ts +0 -35
- package/dist/codegen/validator.js +0 -256
- package/dist/codegen/validator.js.map +0 -1
- package/dist/openapi/demo-generate.d.ts +0 -1
- package/dist/openapi/demo-generate.js +0 -15
- package/dist/openapi/demo-generate.js.map +0 -1
- package/dist/openapi/index.d.ts +0 -78
- package/dist/openapi/index.js +0 -341
- package/dist/openapi/index.js.map +0 -1
- package/dist/react/components/wavesurfer-loader.d.ts +0 -5
- package/dist/react/components/wavesurfer-loader.js +0 -34
- package/dist/react/components/wavesurfer-loader.js.map +0 -1
- package/dist/react/transports/langgraph/index.d.ts +0 -2
- package/dist/react/transports/langgraph/index.js +0 -3
- package/dist/react/transports/langgraph/index.js.map +0 -1
- package/dist/react/transports/langgraph/langgraph-ai-chat.d.ts +0 -62
- package/dist/react/transports/langgraph/langgraph-ai-chat.js +0 -92
- package/dist/react/transports/langgraph/langgraph-ai-chat.js.map +0 -1
- package/dist/react/transports/langgraph.d.ts +0 -71
- package/dist/react/transports/langgraph.js +0 -366
- package/dist/react/transports/langgraph.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/ai-chat-auth.guard.d.ts +0 -10
- package/dist/server/adapters/nestjs/chat/ai-chat-auth.guard.js +0 -40
- package/dist/server/adapters/nestjs/chat/ai-chat-auth.guard.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/ai-chat-module-options.interface.d.ts +0 -32
- package/dist/server/adapters/nestjs/chat/ai-chat-module-options.interface.js +0 -2
- package/dist/server/adapters/nestjs/chat/ai-chat-module-options.interface.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/ai-chat.controller.d.ts +0 -11
- package/dist/server/adapters/nestjs/chat/ai-chat.controller.js +0 -78
- package/dist/server/adapters/nestjs/chat/ai-chat.controller.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/ai-chat.module.d.ts +0 -9
- package/dist/server/adapters/nestjs/chat/ai-chat.module.js +0 -117
- package/dist/server/adapters/nestjs/chat/ai-chat.module.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/ai-chat.service.d.ts +0 -13
- package/dist/server/adapters/nestjs/chat/ai-chat.service.js +0 -129
- package/dist/server/adapters/nestjs/chat/ai-chat.service.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/dto/ai-chat-request.dto.d.ts +0 -7
- package/dist/server/adapters/nestjs/chat/dto/ai-chat-request.dto.js +0 -49
- package/dist/server/adapters/nestjs/chat/dto/ai-chat-request.dto.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/dto/chat-message-part.dto.d.ts +0 -19
- package/dist/server/adapters/nestjs/chat/dto/chat-message-part.dto.js +0 -105
- package/dist/server/adapters/nestjs/chat/dto/chat-message-part.dto.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/dto/chat-message.dto.d.ts +0 -8
- package/dist/server/adapters/nestjs/chat/dto/chat-message.dto.js +0 -56
- package/dist/server/adapters/nestjs/chat/dto/chat-message.dto.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/dto/index.d.ts +0 -3
- package/dist/server/adapters/nestjs/chat/dto/index.js +0 -4
- package/dist/server/adapters/nestjs/chat/dto/index.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/index.d.ts +0 -3
- package/dist/server/adapters/nestjs/chat/index.js +0 -3
- package/dist/server/adapters/nestjs/chat/index.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/speech-stream.gateway.d.ts +0 -4
- package/dist/server/adapters/nestjs/chat/speech-stream.gateway.js +0 -71
- package/dist/server/adapters/nestjs/chat/speech-stream.gateway.js.map +0 -1
- package/dist/server/adapters/nestjs/chat/ws-loader.d.ts +0 -5
- package/dist/server/adapters/nestjs/chat/ws-loader.js +0 -37
- package/dist/server/adapters/nestjs/chat/ws-loader.js.map +0 -1
- package/dist/server/adapters/nestjs/decorators/ai-module.decorator.d.ts +0 -6
- package/dist/server/adapters/nestjs/decorators/ai-module.decorator.js +0 -11
- package/dist/server/adapters/nestjs/decorators/ai-module.decorator.js.map +0 -1
- package/dist/server/adapters/nestjs/decorators/ai-param.decorator.d.ts +0 -5
- package/dist/server/adapters/nestjs/decorators/ai-param.decorator.js +0 -13
- package/dist/server/adapters/nestjs/decorators/ai-param.decorator.js.map +0 -1
- package/dist/server/adapters/nestjs/decorators/ai-tool.decorator.d.ts +0 -6
- package/dist/server/adapters/nestjs/decorators/ai-tool.decorator.js +0 -20
- package/dist/server/adapters/nestjs/decorators/ai-tool.decorator.js.map +0 -1
- package/dist/server/adapters/nestjs/decorators/constants.d.ts +0 -4
- package/dist/server/adapters/nestjs/decorators/constants.js +0 -5
- package/dist/server/adapters/nestjs/decorators/constants.js.map +0 -1
- package/dist/server/adapters/nestjs/index.d.ts +0 -14
- package/dist/server/adapters/nestjs/index.js +0 -20
- package/dist/server/adapters/nestjs/index.js.map +0 -1
- package/dist/server/adapters/nestjs/metadata.d.ts +0 -39
- package/dist/server/adapters/nestjs/metadata.js +0 -30
- package/dist/server/adapters/nestjs/metadata.js.map +0 -1
- package/dist/server/adapters/nestjs/module/ai-tools-explorer.service.d.ts +0 -36
- package/dist/server/adapters/nestjs/module/ai-tools-explorer.service.js +0 -156
- package/dist/server/adapters/nestjs/module/ai-tools-explorer.service.js.map +0 -1
- package/dist/server/adapters/nestjs/module/ai-tools.module.d.ts +0 -37
- package/dist/server/adapters/nestjs/module/ai-tools.module.js +0 -42
- package/dist/server/adapters/nestjs/module/ai-tools.module.js.map +0 -1
- package/dist/server/adapters/nestjs/module/ai-tools.service.d.ts +0 -28
- package/dist/server/adapters/nestjs/module/ai-tools.service.js +0 -38
- package/dist/server/adapters/nestjs/module/ai-tools.service.js.map +0 -1
- package/dist/server/adapters/nestjs/scanner/nestjs-scanner.d.ts +0 -16
- package/dist/server/adapters/nestjs/scanner/nestjs-scanner.js +0 -115
- package/dist/server/adapters/nestjs/scanner/nestjs-scanner.js.map +0 -1
- package/dist/server/adapters/nestjs/scanner/schema-builder.d.ts +0 -26
- package/dist/server/adapters/nestjs/scanner/schema-builder.js +0 -255
- package/dist/server/adapters/nestjs/scanner/schema-builder.js.map +0 -1
- package/dist/server/adapters/nestjs/swagger.d.ts +0 -7
- package/dist/server/adapters/nestjs/swagger.js +0 -37
- package/dist/server/adapters/nestjs/swagger.js.map +0 -1
- package/openapi/package.json +0 -5
- package/react/langgraph/package.json +0 -5
- package/server/nestjs/package.json +0 -5
- package/skills/integrating-glirastes-nestjs/SKILL.md +0 -346
- package/skills/integrating-glirastes-nextjs-with-nestjs-backend/SKILL.md +0 -359
|
@@ -8,6 +8,19 @@ const themes_js_1 = require("../themes.js");
|
|
|
8
8
|
const chat_context_js_1 = require("./chat-context.js");
|
|
9
9
|
const mention_markup_js_1 = require("../utils/mention-markup.js");
|
|
10
10
|
const merge_pipeline_steps_js_1 = require("../utils/merge-pipeline-steps.js");
|
|
11
|
+
const entity_names_js_1 = require("../utils/entity-names.js");
|
|
12
|
+
const create_approval_description_js_1 = require("../utils/create-approval-description.js");
|
|
13
|
+
const tool_presentation_js_1 = require("../utils/tool-presentation.js");
|
|
14
|
+
const tool_result_config_js_1 = require("../utils/tool-result-config.js");
|
|
15
|
+
const followup_suggestions_js_1 = require("../utils/followup-suggestions.js");
|
|
16
|
+
const clarification_js_1 = require("../utils/clarification.js");
|
|
17
|
+
const completion_search_js_1 = require("../completions/completion-search.js");
|
|
18
|
+
const definitions_js_1 = require("../interactions/definitions.js");
|
|
19
|
+
const registry_js_1 = require("../interactions/registry.js");
|
|
20
|
+
const registry_js_2 = require("../tool-renderers/registry.js");
|
|
21
|
+
const client_actions_js_1 = require("../../browser/client-actions.js");
|
|
22
|
+
const ui_action_bus_js_1 = require("../../browser/ui-action-bus.js");
|
|
23
|
+
const clarification_js_2 = require("../../contracts/clarification.js");
|
|
11
24
|
exports.DEFAULT_LOCALE = {
|
|
12
25
|
placeholder: 'Type a message...',
|
|
13
26
|
sendButton: 'Send',
|
|
@@ -24,6 +37,7 @@ exports.DEFAULT_LOCALE = {
|
|
|
24
37
|
dismissButton: 'Dismiss',
|
|
25
38
|
cancelButton: 'Cancel',
|
|
26
39
|
confirmButton: 'Confirm',
|
|
40
|
+
approvalPendingHint: 'Please approve or reject the open request first.',
|
|
27
41
|
moreItemsLabel: 'more',
|
|
28
42
|
allCountLabel: 'All {count}',
|
|
29
43
|
pipelineTitle: 'Pipeline',
|
|
@@ -34,6 +48,12 @@ exports.DEFAULT_LOCALE = {
|
|
|
34
48
|
pipelineErrorLabel: 'Error',
|
|
35
49
|
pipelineStepLabel: 'Step',
|
|
36
50
|
pipelineApprovalPendingLabel: 'Approval pending',
|
|
51
|
+
activityWorkingLabel: 'Working',
|
|
52
|
+
activityWaitingLabel: 'Waiting for approval',
|
|
53
|
+
activityDoneLabel: '{count} steps done',
|
|
54
|
+
activityDoneOneLabel: '1 step done',
|
|
55
|
+
activityFailedLabel: '{count} failed',
|
|
56
|
+
planTitle: 'Plan',
|
|
37
57
|
chatTitle: 'AI Assistant',
|
|
38
58
|
closeChatAriaLabel: 'Close chat',
|
|
39
59
|
clearChatAriaLabel: 'Clear conversation',
|
|
@@ -45,10 +65,23 @@ exports.DEFAULT_LOCALE = {
|
|
|
45
65
|
newChatLabel: 'New chat',
|
|
46
66
|
noSessionsLabel: 'No conversations yet',
|
|
47
67
|
sessionsLoadingLabel: 'Loading…',
|
|
68
|
+
untitledSessionLabel: 'Untitled',
|
|
48
69
|
deleteSessionAriaLabel: 'Delete conversation',
|
|
49
70
|
confirmDeleteSessionPrompt: 'Delete this conversation?',
|
|
71
|
+
sessionArchiveMessage: '"{title}" will be archived.',
|
|
50
72
|
renameSessionAriaLabel: 'Rename conversation',
|
|
51
73
|
renameSessionPlaceholder: 'Conversation title',
|
|
74
|
+
clarificationInputLabel: 'Your answer',
|
|
75
|
+
clarificationSubmitButton: 'Answer',
|
|
76
|
+
retryRecordingAriaLabel: 'Retry recording',
|
|
77
|
+
completionListLabel: 'Suggestions',
|
|
78
|
+
completionResultsLabel: '{count} suggestions',
|
|
79
|
+
commandArgumentsLabel: 'Details for {command}',
|
|
80
|
+
commandArgumentsSubmit: 'Run',
|
|
81
|
+
commandArgumentsInvalid: 'These values are too long.',
|
|
82
|
+
commandArgumentsIncomplete: 'Please complete: {fields}',
|
|
83
|
+
commandArgumentsAnyOption: 'Any',
|
|
84
|
+
commandArgumentsNoMatches: 'No matches',
|
|
52
85
|
};
|
|
53
86
|
// ============================================================================
|
|
54
87
|
// Helpers
|
|
@@ -95,16 +128,6 @@ function getMentionTypesForTrigger(types, trigger) {
|
|
|
95
128
|
}
|
|
96
129
|
return types;
|
|
97
130
|
}
|
|
98
|
-
/** Default approval description — returns raw tool name and JSON args */
|
|
99
|
-
function defaultApprovalDescription(toolName, approvalId, args) {
|
|
100
|
-
return {
|
|
101
|
-
id: approvalId,
|
|
102
|
-
toolName,
|
|
103
|
-
args: isRecord(args) ? args : {},
|
|
104
|
-
messageId: '',
|
|
105
|
-
description: toolName,
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
131
|
/**
|
|
109
132
|
* Remove orphaned tool calls (approval-requested without response)
|
|
110
133
|
* from message history to prevent AI_MissingToolResultsError.
|
|
@@ -233,7 +256,8 @@ function normalizePipelineState(data) {
|
|
|
233
256
|
}
|
|
234
257
|
if (data.stepLimitSource !== 'explicit' &&
|
|
235
258
|
data.stepLimitSource !== 'module' &&
|
|
236
|
-
data.stepLimitSource !== 'safety'
|
|
259
|
+
data.stepLimitSource !== 'safety' &&
|
|
260
|
+
data.stepLimitSource !== 'runtime-budget') {
|
|
237
261
|
return null;
|
|
238
262
|
}
|
|
239
263
|
return {
|
|
@@ -277,28 +301,69 @@ function normalizePipelineState(data) {
|
|
|
277
301
|
* }
|
|
278
302
|
* ```
|
|
279
303
|
*/
|
|
280
|
-
function AiChatProvider({ transport, mentions, toolResults: userToolResults, voice: userVoice, session, classNames: userClassNames, components: userComponents, suggestions: userSuggestions, locale: userLocale, theme: userTheme, onToolResult, onBeforeSend, approvalDescription: userApprovalDescription, continueMessage = 'Please continue.', toolLabels: userToolLabels, pipelineMessageTranslator, stepSummaryFormatter, children, }) {
|
|
281
|
-
//
|
|
282
|
-
|
|
304
|
+
function AiChatProvider({ transport, mentions, completionProviders, completionContext, onCompletionProviderError, chatInteractions, toolRenderers, toolResults: userToolResults, voice: userVoice, session, classNames: userClassNames, components: userComponents, suggestions: userSuggestions, locale: userLocale, theme: userTheme, themeScope = 'inline', unstyled = false, onToolResult, uiActionBus, onBeforeSend, approvalDescription: userApprovalDescription, continueMessage = 'Please continue.', toolLabels: userToolLabels, pipelineMessageTranslator, stepSummaryFormatter, children, }) {
|
|
305
|
+
// What the chat turn says about its tools (label per model name, app
|
|
306
|
+
// language) and the language of the page: the defaults of a chat that
|
|
307
|
+
// configures neither `locale`, `toolLabels` nor `approvalDescription`.
|
|
308
|
+
const [toolPresentation, setToolPresentation] = (0, react_1.useState)(null);
|
|
309
|
+
const pageLanguage = (0, tool_presentation_js_1.usePageLanguage)();
|
|
310
|
+
const language = toolPresentation?.locale ?? pageLanguage;
|
|
311
|
+
// English defaults, then the built-in texts of the app's language, then the caller's overrides.
|
|
312
|
+
const locale = (0, react_1.useMemo)(() => ({ ...exports.DEFAULT_LOCALE, ...(0, tool_presentation_js_1.languageLocale)(language), ...(userLocale ?? {}) }), [userLocale, language]);
|
|
283
313
|
// Resolve `theme` prop → CSS variables spread onto widget roots.
|
|
284
|
-
const themeVars = (0, react_1.useMemo)(() => (0, themes_js_1.getThemeVars)(userTheme), [userTheme]);
|
|
314
|
+
const themeVars = (0, react_1.useMemo)(() => (themeScope === 'inherit' || unstyled ? {} : (0, themes_js_1.getThemeVars)(userTheme)), [userTheme, themeScope, unstyled]);
|
|
285
315
|
const themeEffect = (0, react_1.useMemo)(() => (0, themes_js_1.getThemeEffect)(userTheme), [userTheme]);
|
|
286
316
|
const classNames = (0, react_1.useMemo)(() => userClassNames ?? {}, [userClassNames]);
|
|
287
317
|
const components = (0, react_1.useMemo)(() => userComponents ?? {}, [userComponents]);
|
|
288
318
|
const suggestionsConfig = (0, react_1.useMemo)(() => ({ enabled: true, count: 3, autoSuggest: true, ...userSuggestions }), [userSuggestions]);
|
|
289
|
-
const toolResultConfig = (0, react_1.useMemo)(() => (
|
|
319
|
+
const toolResultConfig = (0, react_1.useMemo)(() => (0, tool_result_config_js_1.resolveToolResultConfig)(userToolResults, Boolean(toolRenderers && toolRenderers.length > 0)), [userToolResults, toolRenderers]);
|
|
320
|
+
const toolRendererRegistry = (0, react_1.useMemo)(() => (toolRenderers && toolRenderers.length > 0
|
|
321
|
+
? (0, registry_js_2.createToolResultRendererRegistry)(toolRenderers)
|
|
322
|
+
: undefined), [toolRenderers]);
|
|
290
323
|
const voiceConfig = (0, react_1.useMemo)(() => ({
|
|
291
324
|
enabled: false,
|
|
292
325
|
language: 'de',
|
|
293
326
|
recordingBar: { enabled: true, variant: 'inline', ...(userVoice?.recordingBar ?? {}) },
|
|
294
327
|
...userVoice,
|
|
295
328
|
}), [userVoice]);
|
|
296
|
-
|
|
297
|
-
const
|
|
329
|
+
// The labels of the turn's tools, each used for one call and for several; the caller's labels win.
|
|
330
|
+
const toolLabels = (0, react_1.useMemo)(() => ({
|
|
331
|
+
labels: {
|
|
332
|
+
...Object.fromEntries(Object.entries(toolPresentation?.labels ?? {})
|
|
333
|
+
.map(([name, label]) => [name, { singular: label, plural: label }])),
|
|
334
|
+
...(userToolLabels?.labels ?? {}),
|
|
335
|
+
},
|
|
336
|
+
}), [toolPresentation, userToolLabels]);
|
|
337
|
+
// Without the app's own description, an approval names the action by its
|
|
338
|
+
// label and lists what the call states, instead of the raw tool name alone.
|
|
339
|
+
const derivedApprovalDescription = (0, react_1.useMemo)(() => {
|
|
340
|
+
const actions = Object.fromEntries(Object.entries(toolLabels.labels ?? {})
|
|
341
|
+
.map(([name, label]) => [name, label.singular]));
|
|
342
|
+
const describe = (0, create_approval_description_js_1.createApprovalDescriptionGenerator)({ toolLabels: actions, dateLocale: language ?? 'en-US' });
|
|
343
|
+
return (toolName, approvalId, args, context) => {
|
|
344
|
+
const pending = describe(toolName, approvalId, args, context);
|
|
345
|
+
return actions[toolName] ? pending : { ...pending, description: toolName };
|
|
346
|
+
};
|
|
347
|
+
}, [toolLabels, language]);
|
|
348
|
+
const approvalDescriptionFn = userApprovalDescription ?? derivedApprovalDescription;
|
|
298
349
|
// Approvals state (Map for O(1) lookup)
|
|
299
350
|
const [pendingApprovalsMap, setPendingApprovalsMap] = (0, react_1.useState)(new Map());
|
|
300
|
-
|
|
351
|
+
// Set when the user sends while an approval waits; cleared once none waits.
|
|
352
|
+
const [approvalReminder, setApprovalReminder] = (0, react_1.useState)(false);
|
|
353
|
+
(0, react_1.useEffect)(() => {
|
|
354
|
+
if (pendingApprovalsMap.size === 0)
|
|
355
|
+
setApprovalReminder(false);
|
|
356
|
+
}, [pendingApprovalsMap]);
|
|
357
|
+
const [processingApprovalIds, setProcessingApprovalIds] = (0, react_1.useState)(new Set());
|
|
358
|
+
const [approvalError, setApprovalError] = (0, react_1.useState)(null);
|
|
301
359
|
const [isInitialized, setIsInitialized] = (0, react_1.useState)(false);
|
|
360
|
+
// A completed load belongs to one session, not to the provider forever.
|
|
361
|
+
// Otherwise a render with a new id can persist the previous session's rows.
|
|
362
|
+
const [loadedSessionId, setLoadedSessionId] = (0, react_1.useState)(null);
|
|
363
|
+
const [sessionLoadFailure, setSessionLoadFailure] = (0, react_1.useState)(null);
|
|
364
|
+
const [sessionRestoreAttempt, setSessionRestoreAttempt] = (0, react_1.useState)(0);
|
|
365
|
+
const [isSessionMutating, setIsSessionMutating] = (0, react_1.useState)(false);
|
|
366
|
+
const sessionMutationRef = (0, react_1.useRef)(false);
|
|
302
367
|
// ---------------------------------------------------------------------------
|
|
303
368
|
// Multi-session state
|
|
304
369
|
//
|
|
@@ -310,6 +375,9 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
310
375
|
const [uncontrolledActiveId, setUncontrolledActiveId] = (0, react_1.useState)(() => session?.activeId ?? session?.defaultActiveId ?? 'default');
|
|
311
376
|
const activeSessionId = session?.activeId ?? uncontrolledActiveId;
|
|
312
377
|
const [sessions, setSessions] = (0, react_1.useState)([]);
|
|
378
|
+
const isBootstrapSentinel = activeSessionId === 'default'
|
|
379
|
+
&& session?.list !== undefined && session.defaultActiveId === undefined
|
|
380
|
+
&& session.activeId === undefined && !sessions.some((entry) => entry.id === 'default');
|
|
313
381
|
const [isSessionsLoading, setIsSessionsLoading] = (0, react_1.useState)(false);
|
|
314
382
|
const sessionsSupported = Boolean(session && session.list && session.create && session.remove);
|
|
315
383
|
// Keep a ref so callbacks inside effects read the current session config
|
|
@@ -331,16 +399,40 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
331
399
|
const [mentionResults, setMentionResults] = (0, react_1.useState)([]);
|
|
332
400
|
const [activeMentions, setActiveMentions] = (0, react_1.useState)([]);
|
|
333
401
|
const [isMentionSearching, setIsMentionSearching] = (0, react_1.useState)(false);
|
|
402
|
+
const onCompletionProviderErrorRef = (0, react_1.useRef)(onCompletionProviderError);
|
|
403
|
+
onCompletionProviderErrorRef.current = onCompletionProviderError;
|
|
404
|
+
// Declarative `@` entities and `/` commands join the app's own providers.
|
|
405
|
+
const interactionRegistry = (0, react_1.useMemo)(() => (chatInteractions
|
|
406
|
+
? (0, registry_js_1.createChatInteractionRegistry)({ ...chatInteractions, context: completionContext })
|
|
407
|
+
: undefined), [chatInteractions, completionContext]);
|
|
408
|
+
const allCompletionProviders = (0, react_1.useMemo)(() => [...(completionProviders ?? []), ...(interactionRegistry?.providers ?? [])], [completionProviders, interactionRegistry]);
|
|
409
|
+
const completionSearch = (0, react_1.useMemo)(() => (allCompletionProviders.length > 0
|
|
410
|
+
? (0, completion_search_js_1.createCompletionSearch)(allCompletionProviders, {
|
|
411
|
+
context: completionContext,
|
|
412
|
+
onProviderError: (providerId, error) => onCompletionProviderErrorRef.current?.(providerId, error),
|
|
413
|
+
})
|
|
414
|
+
: undefined), [allCompletionProviders, completionContext]);
|
|
415
|
+
const [pendingCommand, setPendingCommand] = (0, react_1.useState)(null);
|
|
416
|
+
const [composerMentions, setComposerMentions] = (0, react_1.useState)([]);
|
|
334
417
|
// Refs for deduplication
|
|
335
418
|
const processedToolCallsRef = (0, react_1.useRef)(new Set());
|
|
336
419
|
const handledApprovalIdsRef = (0, react_1.useRef)(new Set());
|
|
337
420
|
// Stable refs for callbacks to avoid re-creating transport
|
|
338
421
|
const onToolResultRef = (0, react_1.useRef)(onToolResult);
|
|
339
422
|
onToolResultRef.current = onToolResult;
|
|
423
|
+
const uiActionBusRef = (0, react_1.useRef)(uiActionBus);
|
|
424
|
+
uiActionBusRef.current = uiActionBus;
|
|
340
425
|
const approvalDescriptionRef = (0, react_1.useRef)(approvalDescriptionFn);
|
|
341
426
|
approvalDescriptionRef.current = approvalDescriptionFn;
|
|
342
427
|
// Data part handler — processes pipeline and truncation events from any transport
|
|
343
428
|
const handleDataPart = (0, react_1.useCallback)((dataPart) => {
|
|
429
|
+
if (dataPart.type === 'data-tool-presentation') {
|
|
430
|
+
const next = (0, tool_presentation_js_1.parseToolPresentation)(dataPart.data);
|
|
431
|
+
// Every turn sends it again; keep the object while its content is the same.
|
|
432
|
+
if (next)
|
|
433
|
+
setToolPresentation((current) => (JSON.stringify(current) === JSON.stringify(next) ? current : next));
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
344
436
|
if (dataPart.type === 'data-truncation') {
|
|
345
437
|
const data = dataPart.data;
|
|
346
438
|
setTruncation({
|
|
@@ -374,8 +466,12 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
374
466
|
(0, react_1.useEffect)(() => {
|
|
375
467
|
return resolvedTransport.subscribeToData?.(handleDataPart);
|
|
376
468
|
}, [resolvedTransport, handleDataPart]);
|
|
377
|
-
const { messages: rawMessages, sendMessage, status, error, stop: transportStop, setMessages, addToolApprovalResponse, } = resolvedTransport;
|
|
469
|
+
const { messages: rawMessages, sendMessage, status, error: transportError, stop: transportStop, setMessages, addToolApprovalResponse, } = resolvedTransport;
|
|
378
470
|
const isLoading = status === 'submitted' || status === 'streaming';
|
|
471
|
+
const streamActiveRef = (0, react_1.useRef)(isLoading);
|
|
472
|
+
streamActiveRef.current = isLoading;
|
|
473
|
+
const sessionNotReady = Boolean(session?.load && loadedSessionId !== activeSessionId);
|
|
474
|
+
const error = transportError ?? (sessionLoadFailure?.id === activeSessionId ? sessionLoadFailure.error : null);
|
|
379
475
|
(0, react_1.useEffect)(() => {
|
|
380
476
|
if (!error)
|
|
381
477
|
return;
|
|
@@ -386,7 +482,7 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
386
482
|
maxSteps: prev?.maxSteps ?? 1,
|
|
387
483
|
stepLimitSource: prev?.stepLimitSource ?? 'safety',
|
|
388
484
|
updatedAt: new Date().toISOString(),
|
|
389
|
-
message:
|
|
485
|
+
message: 'Pipeline failed.',
|
|
390
486
|
}));
|
|
391
487
|
}, [error, pipelineSteps.length]);
|
|
392
488
|
// Mark stored messages as already processed (prevents re-dispatching tool results)
|
|
@@ -415,11 +511,21 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
415
511
|
}
|
|
416
512
|
}
|
|
417
513
|
}, []);
|
|
514
|
+
// An open approval belongs to the chat that asked for it. A host that owns
|
|
515
|
+
// the active id switches chats without switchSession(), so drop it here.
|
|
516
|
+
const approvalSessionRef = (0, react_1.useRef)(activeSessionId);
|
|
517
|
+
(0, react_1.useEffect)(() => {
|
|
518
|
+
if (approvalSessionRef.current === activeSessionId)
|
|
519
|
+
return;
|
|
520
|
+
approvalSessionRef.current = activeSessionId;
|
|
521
|
+
setPendingApprovalsMap(new Map());
|
|
522
|
+
}, [activeSessionId]);
|
|
418
523
|
// Load messages from session whenever the active session changes.
|
|
419
524
|
// Runs on mount and on every switchSession() call.
|
|
420
525
|
(0, react_1.useEffect)(() => {
|
|
421
526
|
const cfg = sessionRef.current;
|
|
422
527
|
if (!cfg?.load) {
|
|
528
|
+
setLoadedSessionId(activeSessionId);
|
|
423
529
|
if (!isInitialized)
|
|
424
530
|
setIsInitialized(true);
|
|
425
531
|
return;
|
|
@@ -428,15 +534,15 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
428
534
|
// active — `'default'` is unlikely to be a valid session id in the
|
|
429
535
|
// consumer's backend, and the auto-select effect (below) will switch
|
|
430
536
|
// us to the first real session as soon as `list()` resolves.
|
|
431
|
-
const isBootstrapSentinel = activeSessionId === 'default' &&
|
|
432
|
-
cfg.list !== undefined &&
|
|
433
|
-
cfg.activeId === undefined;
|
|
434
537
|
if (isBootstrapSentinel) {
|
|
435
538
|
if (!isInitialized)
|
|
436
539
|
setIsInitialized(true);
|
|
437
540
|
return;
|
|
438
541
|
}
|
|
439
542
|
let cancelled = false;
|
|
543
|
+
setLoadedSessionId(null);
|
|
544
|
+
setSessionLoadFailure(null);
|
|
545
|
+
setMessages([]);
|
|
440
546
|
(async () => {
|
|
441
547
|
try {
|
|
442
548
|
const loaded = await Promise.resolve(cfg.load(activeSessionId));
|
|
@@ -444,6 +550,9 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
444
550
|
return;
|
|
445
551
|
processedToolCallsRef.current.clear();
|
|
446
552
|
handledApprovalIdsRef.current.clear();
|
|
553
|
+
// The transport may still have held the previous chat's messages
|
|
554
|
+
// until now; an approval read from them is not this chat's.
|
|
555
|
+
setPendingApprovalsMap(new Map());
|
|
447
556
|
// Coerce wire-shape rows (with `content: string`) into SDK
|
|
448
557
|
// messages (with `parts: [...]`) so bridges don't have to.
|
|
449
558
|
const coerced = loaded ? coerceLoadedMessages(loaded) : [];
|
|
@@ -455,11 +564,13 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
455
564
|
else {
|
|
456
565
|
setMessages([]);
|
|
457
566
|
}
|
|
567
|
+
setLoadedSessionId(activeSessionId);
|
|
458
568
|
}
|
|
459
|
-
catch
|
|
569
|
+
catch {
|
|
460
570
|
if (cancelled)
|
|
461
571
|
return;
|
|
462
|
-
console.warn(
|
|
572
|
+
console.warn('[AiChatProvider] session.load failed');
|
|
573
|
+
setSessionLoadFailure({ id: activeSessionId, error: new Error('Chat history could not be loaded. Reopen this chat to retry.') });
|
|
463
574
|
setMessages([]);
|
|
464
575
|
}
|
|
465
576
|
finally {
|
|
@@ -472,18 +583,20 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
472
583
|
};
|
|
473
584
|
// rawMessages intentionally excluded — we only re-load on session switch.
|
|
474
585
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
475
|
-
}, [activeSessionId, setMessages, markStoredMessagesAsProcessed]);
|
|
586
|
+
}, [activeSessionId, setMessages, markStoredMessagesAsProcessed, sessionRestoreAttempt, isBootstrapSentinel]);
|
|
476
587
|
// Save messages to session on change (scoped to the active session).
|
|
477
588
|
(0, react_1.useEffect)(() => {
|
|
478
589
|
if (!isInitialized)
|
|
479
590
|
return;
|
|
591
|
+
if (loadedSessionId !== activeSessionId)
|
|
592
|
+
return;
|
|
480
593
|
if (rawMessages.length === 0)
|
|
481
594
|
return;
|
|
482
595
|
const cfg = sessionRef.current;
|
|
483
596
|
if (!cfg?.save)
|
|
484
597
|
return;
|
|
485
598
|
void Promise.resolve(cfg.save(activeSessionId, rawMessages));
|
|
486
|
-
}, [rawMessages, isInitialized, activeSessionId]);
|
|
599
|
+
}, [rawMessages, isInitialized, activeSessionId, loadedSessionId]);
|
|
487
600
|
// Process tool results and approvals from streaming messages
|
|
488
601
|
(0, react_1.useEffect)(() => {
|
|
489
602
|
if (rawMessages.length === 0)
|
|
@@ -503,7 +616,7 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
503
616
|
toolPart.approval?.id &&
|
|
504
617
|
!handledApprovalIdsRef.current.has(toolPart.approval.id)) {
|
|
505
618
|
handledApprovalIdsRef.current.add(toolPart.approval.id);
|
|
506
|
-
const pending = approvalDescriptionRef.current(toolName, toolPart.approval.id, toolPart.input);
|
|
619
|
+
const pending = approvalDescriptionRef.current(toolName, toolPart.approval.id, toolPart.input, { names: (0, entity_names_js_1.collectEntityNames)(rawMessages) });
|
|
507
620
|
setPendingApprovalsMap(prev => new Map(prev).set(toolPart.approval.id, pending));
|
|
508
621
|
}
|
|
509
622
|
// Tool result available — call onToolResult
|
|
@@ -512,12 +625,17 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
512
625
|
if (!processedToolCallsRef.current.has(toolCallId)) {
|
|
513
626
|
processedToolCallsRef.current.add(toolCallId);
|
|
514
627
|
onToolResultRef.current?.(toolName, toolPart.output);
|
|
628
|
+
// Generated UI tools run in the browser through the app's bridge.
|
|
629
|
+
void (0, client_actions_js_1.dispatchToolResultUiActions)(toolPart.output, uiActionBusRef.current ?? (0, ui_action_bus_js_1.getDefaultUiActionBus)()).catch(() => {
|
|
630
|
+
console.warn('[glirastes] A generated UI action failed');
|
|
631
|
+
});
|
|
515
632
|
}
|
|
516
633
|
}
|
|
517
634
|
}
|
|
518
635
|
}
|
|
519
636
|
}, [rawMessages]);
|
|
520
|
-
// Extract suggestions from suggest_followups tool
|
|
637
|
+
// Extract suggestions from suggest_followups tool, with a strict text
|
|
638
|
+
// fallback for models that append a trailing Markdown suggestion section.
|
|
521
639
|
(0, react_1.useEffect)(() => {
|
|
522
640
|
if (rawMessages.length === 0)
|
|
523
641
|
return;
|
|
@@ -527,6 +645,7 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
527
645
|
const message = rawMessages[messageIndex];
|
|
528
646
|
if (message.role !== 'assistant')
|
|
529
647
|
continue;
|
|
648
|
+
let structuredFollowups = null;
|
|
530
649
|
for (const part of message.parts) {
|
|
531
650
|
if (!('type' in part))
|
|
532
651
|
continue;
|
|
@@ -542,7 +661,21 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
542
661
|
continue;
|
|
543
662
|
const followups = result.followups.filter((f) => typeof f === 'string' && f.trim().length > 0);
|
|
544
663
|
if (followups.length > 0) {
|
|
545
|
-
|
|
664
|
+
structuredFollowups = followups.slice(0, count);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
if (structuredFollowups && structuredFollowups.length > 0) {
|
|
668
|
+
latestFollowups = structuredFollowups;
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
for (const part of message.parts) {
|
|
672
|
+
if (!isRecord(part) || part.type !== 'text' || typeof part.text !== 'string') {
|
|
673
|
+
continue;
|
|
674
|
+
}
|
|
675
|
+
const extracted = (0, followup_suggestions_js_1.extractTrailingFollowupSuggestions)(part.text, count);
|
|
676
|
+
if (extracted.suggestions.length > 0) {
|
|
677
|
+
latestFollowups = extracted.suggestions;
|
|
678
|
+
}
|
|
546
679
|
}
|
|
547
680
|
}
|
|
548
681
|
if (latestFollowups && latestFollowups.length > 0) {
|
|
@@ -605,21 +738,19 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
605
738
|
};
|
|
606
739
|
}, [mentionQuery, mentionTrigger, mentions]);
|
|
607
740
|
// Actions
|
|
608
|
-
|
|
741
|
+
// The shared tail of every send: transport hygiene, then the transport.
|
|
742
|
+
const deliver = (0, react_1.useCallback)(async (processedMessage) => {
|
|
743
|
+
// An open approval is decided on its card. A typed "yes" must not count as
|
|
744
|
+
// approval, and rejecting it on send dropped requests the user wanted.
|
|
745
|
+
if (pendingApprovalsMap.size > 0) {
|
|
746
|
+
setApprovalReminder(true);
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
609
749
|
// Clear truncation and suggestion chips on new message
|
|
610
750
|
setTruncation(null);
|
|
611
751
|
setSuggestionChips([]);
|
|
612
752
|
setPipelineSteps([]);
|
|
613
753
|
setPipelineState(null);
|
|
614
|
-
// Preprocess message
|
|
615
|
-
let processedMessage = message;
|
|
616
|
-
const mentionSerializeConfig = mentions?.serialize;
|
|
617
|
-
if (mentionSerializeConfig?.enabled !== false) {
|
|
618
|
-
processedMessage = (0, mention_markup_js_1.serializeMentionsForSend)(processedMessage, activeMentions, mentionSerializeConfig);
|
|
619
|
-
}
|
|
620
|
-
if (onBeforeSend) {
|
|
621
|
-
processedMessage = onBeforeSend(processedMessage, activeMentions);
|
|
622
|
-
}
|
|
623
754
|
// Sanitize messages before sending to prevent AI_MissingToolResultsError
|
|
624
755
|
const currentMessages = rawMessages;
|
|
625
756
|
const sanitized = sanitizeMessages(currentMessages);
|
|
@@ -627,18 +758,6 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
627
758
|
setMessages(sanitized);
|
|
628
759
|
setPendingApprovalsMap(new Map());
|
|
629
760
|
}
|
|
630
|
-
// Auto-reject pending approvals when user sends new message
|
|
631
|
-
if (pendingApprovalsMap.size > 0) {
|
|
632
|
-
const approvalIds = Array.from(pendingApprovalsMap.keys());
|
|
633
|
-
setPendingApprovalsMap(new Map());
|
|
634
|
-
for (const approvalId of approvalIds) {
|
|
635
|
-
await addToolApprovalResponse({
|
|
636
|
-
id: approvalId,
|
|
637
|
-
approved: false,
|
|
638
|
-
reason: 'Auto-rejected: user sent a new message.',
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
761
|
await sendMessage({ text: processedMessage });
|
|
643
762
|
setActiveMentions([]);
|
|
644
763
|
setMentionQuery('');
|
|
@@ -649,12 +768,114 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
649
768
|
rawMessages,
|
|
650
769
|
setMessages,
|
|
651
770
|
sendMessage,
|
|
652
|
-
addToolApprovalResponse,
|
|
653
771
|
pendingApprovalsMap,
|
|
772
|
+
]);
|
|
773
|
+
const dispatchSend = (0, react_1.useCallback)(async (message, sendOptions) => {
|
|
774
|
+
const mentionsForSend = sendOptions?.mentions ?? activeMentions;
|
|
775
|
+
// A `/` command alone runs without the model; missing arguments open its form.
|
|
776
|
+
const plan = interactionRegistry?.planMessage(message, mentionsForSend);
|
|
777
|
+
if (plan?.status === 'needs-args') {
|
|
778
|
+
setPendingCommand(plan.request);
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
if (plan?.status === 'send') {
|
|
782
|
+
setPendingCommand(null);
|
|
783
|
+
await deliver(plan.text);
|
|
784
|
+
return;
|
|
785
|
+
}
|
|
786
|
+
// Preprocess message
|
|
787
|
+
let processedMessage = plan?.status === 'prompt' ? plan.text : message;
|
|
788
|
+
const mentionSerializeConfig = mentions?.serialize;
|
|
789
|
+
if (mentionSerializeConfig?.enabled !== false) {
|
|
790
|
+
processedMessage = (0, mention_markup_js_1.serializeMentionsForSend)(processedMessage, mentionsForSend, mentionSerializeConfig);
|
|
791
|
+
}
|
|
792
|
+
if (onBeforeSend) {
|
|
793
|
+
processedMessage = onBeforeSend(processedMessage, mentionsForSend);
|
|
794
|
+
}
|
|
795
|
+
// Typing into the composer while a clarification is open answers it, so
|
|
796
|
+
// the server resumes the original request instead of starting over.
|
|
797
|
+
const openClarification = (0, clarification_js_1.findOpenClarification)(rawMessages);
|
|
798
|
+
if (openClarification?.request.allowFreeText
|
|
799
|
+
&& processedMessage.trim().length > 0
|
|
800
|
+
&& processedMessage.length <= clarification_js_2.CLARIFICATION_MAX_ANSWER_LENGTH
|
|
801
|
+
&& !(0, clarification_js_2.parseClarificationAnswer)(processedMessage)) {
|
|
802
|
+
processedMessage = (0, clarification_js_1.clarificationAnswerMessage)({
|
|
803
|
+
toolCallId: openClarification.toolCallId,
|
|
804
|
+
answer: processedMessage,
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
await deliver(processedMessage);
|
|
808
|
+
}, [
|
|
809
|
+
rawMessages,
|
|
810
|
+
deliver,
|
|
811
|
+
interactionRegistry,
|
|
654
812
|
mentions,
|
|
655
813
|
onBeforeSend,
|
|
656
814
|
activeMentions,
|
|
657
815
|
]);
|
|
816
|
+
// Decides synchronously whether the message is taken, so any composer can
|
|
817
|
+
// keep the typed text when it is not.
|
|
818
|
+
const send = (0, react_1.useCallback)((message, sendOptions) => {
|
|
819
|
+
if (sessionNotReady || sessionMutationRef.current)
|
|
820
|
+
return false;
|
|
821
|
+
if (pendingApprovalsMap.size > 0) {
|
|
822
|
+
setApprovalReminder(true);
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
void dispatchSend(message, sendOptions);
|
|
826
|
+
return true;
|
|
827
|
+
}, [sessionNotReady, pendingApprovalsMap, dispatchSend]);
|
|
828
|
+
const submitPendingCommand = (0, react_1.useCallback)((values, valueLabels) => {
|
|
829
|
+
if (!pendingCommand || !interactionRegistry || sessionNotReady || sessionMutationRef.current)
|
|
830
|
+
return false;
|
|
831
|
+
const plan = interactionRegistry.completeCommand(pendingCommand, values, valueLabels);
|
|
832
|
+
if (plan.status !== 'send') {
|
|
833
|
+
setPendingCommand(plan.status === 'needs-args' ? plan.request : null);
|
|
834
|
+
return plan.status !== 'needs-args';
|
|
835
|
+
}
|
|
836
|
+
setPendingCommand(null);
|
|
837
|
+
void deliver(plan.text);
|
|
838
|
+
return true;
|
|
839
|
+
}, [pendingCommand, interactionRegistry, sessionNotReady, deliver]);
|
|
840
|
+
const cancelPendingCommand = (0, react_1.useCallback)(() => setPendingCommand(null), []);
|
|
841
|
+
const runEntityAction = (0, react_1.useCallback)((entity, actionId) => {
|
|
842
|
+
if (sessionNotReady || sessionMutationRef.current)
|
|
843
|
+
return;
|
|
844
|
+
const plan = interactionRegistry?.planAction(entity, actionId);
|
|
845
|
+
if (!plan)
|
|
846
|
+
return;
|
|
847
|
+
if (plan.status === 'needs-args') {
|
|
848
|
+
setPendingCommand(plan.request);
|
|
849
|
+
return;
|
|
850
|
+
}
|
|
851
|
+
setPendingCommand(null);
|
|
852
|
+
void deliver(plan.text);
|
|
853
|
+
}, [interactionRegistry, sessionNotReady, deliver]);
|
|
854
|
+
const mentionEntity = (0, react_1.useCallback)(async (type, id) => {
|
|
855
|
+
const entity = interactionRegistry?.entity(type);
|
|
856
|
+
if (!entity?.resolve)
|
|
857
|
+
return false;
|
|
858
|
+
let item;
|
|
859
|
+
try {
|
|
860
|
+
item = (0, definitions_js_1.toChatEntityItem)(await entity.resolve(id));
|
|
861
|
+
}
|
|
862
|
+
catch {
|
|
863
|
+
return false;
|
|
864
|
+
}
|
|
865
|
+
if (!item)
|
|
866
|
+
return false;
|
|
867
|
+
const resolved = item;
|
|
868
|
+
setComposerMentions((previous) => [...previous, {
|
|
869
|
+
id: resolved.id,
|
|
870
|
+
type,
|
|
871
|
+
label: resolved.label,
|
|
872
|
+
displayName: resolved.label,
|
|
873
|
+
prefix: '@',
|
|
874
|
+
slug: (0, mention_markup_js_1.normalizeMentionSlug)(resolved.label),
|
|
875
|
+
}]);
|
|
876
|
+
return true;
|
|
877
|
+
}, [interactionRegistry]);
|
|
878
|
+
const consumeComposerMentions = (0, react_1.useCallback)(() => setComposerMentions([]), []);
|
|
658
879
|
const stop = (0, react_1.useCallback)(() => {
|
|
659
880
|
setPipelineState((prev) => ({
|
|
660
881
|
status: 'aborted',
|
|
@@ -682,6 +903,7 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
682
903
|
setMentionResults([]);
|
|
683
904
|
setActiveMentions([]);
|
|
684
905
|
setIsMentionSearching(false);
|
|
906
|
+
setPendingCommand(null);
|
|
685
907
|
setSuggestionChips(suggestionsConfig.staticChips ?? []);
|
|
686
908
|
}, [setMessages, activeSessionId, suggestionsConfig.staticChips]);
|
|
687
909
|
// ---------------------------------------------------------------------------
|
|
@@ -704,17 +926,17 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
704
926
|
setSessions(list);
|
|
705
927
|
// Auto-select the first session if we're still on the bootstrap
|
|
706
928
|
// sentinel and the consumer doesn't control `activeId` externally.
|
|
707
|
-
if (
|
|
929
|
+
if (!streamActiveRef.current &&
|
|
930
|
+
list.length > 0 &&
|
|
708
931
|
cfg.activeId === undefined &&
|
|
709
|
-
(
|
|
710
|
-
!list.some((s) => s.id === uncontrolledActiveIdRef.current))) {
|
|
932
|
+
!list.some((s) => s.id === uncontrolledActiveIdRef.current)) {
|
|
711
933
|
const next = list[0].id;
|
|
712
934
|
setUncontrolledActiveId(next);
|
|
713
935
|
cfg.onActiveIdChange?.(next);
|
|
714
936
|
}
|
|
715
937
|
}
|
|
716
|
-
catch
|
|
717
|
-
console.warn('[AiChatProvider] session.list failed
|
|
938
|
+
catch {
|
|
939
|
+
console.warn('[AiChatProvider] session.list failed');
|
|
718
940
|
}
|
|
719
941
|
finally {
|
|
720
942
|
setIsSessionsLoading(false);
|
|
@@ -743,8 +965,13 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
743
965
|
wasLoadingRef.current = isLoading;
|
|
744
966
|
}, [isLoading, sessionsSupported, refreshSessions]);
|
|
745
967
|
const switchSession = (0, react_1.useCallback)(async (id) => {
|
|
746
|
-
if (
|
|
968
|
+
if (streamActiveRef.current)
|
|
969
|
+
return;
|
|
970
|
+
if (id === activeSessionId) {
|
|
971
|
+
if (sessionLoadFailure?.id === id)
|
|
972
|
+
setSessionRestoreAttempt((attempt) => attempt + 1);
|
|
747
973
|
return;
|
|
974
|
+
}
|
|
748
975
|
// Reset transient UI state before loading new session
|
|
749
976
|
setPendingApprovalsMap(new Map());
|
|
750
977
|
setTruncation(null);
|
|
@@ -753,38 +980,58 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
753
980
|
setSuggestionChips(suggestionsConfig.staticChips ?? []);
|
|
754
981
|
setVisibleMessageCount(30);
|
|
755
982
|
applyActiveId(id);
|
|
756
|
-
}, [activeSessionId, applyActiveId, suggestionsConfig.staticChips]);
|
|
983
|
+
}, [activeSessionId, applyActiveId, suggestionsConfig.staticChips, isLoading, sessionLoadFailure]);
|
|
757
984
|
const createSession = (0, react_1.useCallback)(async (opts) => {
|
|
985
|
+
if (streamActiveRef.current || sessionMutationRef.current)
|
|
986
|
+
return null;
|
|
758
987
|
const cfg = sessionRef.current;
|
|
759
988
|
if (!cfg?.create)
|
|
760
989
|
return null;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
990
|
+
sessionMutationRef.current = true;
|
|
991
|
+
setIsSessionMutating(true);
|
|
992
|
+
try {
|
|
993
|
+
const created = await cfg.create(opts);
|
|
994
|
+
await refreshSessions();
|
|
995
|
+
await switchSession(created.id);
|
|
996
|
+
return created;
|
|
997
|
+
}
|
|
998
|
+
finally {
|
|
999
|
+
sessionMutationRef.current = false;
|
|
1000
|
+
setIsSessionMutating(false);
|
|
1001
|
+
}
|
|
1002
|
+
}, [refreshSessions, switchSession, isLoading]);
|
|
766
1003
|
const removeSession = (0, react_1.useCallback)(async (id) => {
|
|
1004
|
+
if (streamActiveRef.current || sessionMutationRef.current)
|
|
1005
|
+
return;
|
|
767
1006
|
const cfg = sessionRef.current;
|
|
768
1007
|
if (!cfg?.remove)
|
|
769
1008
|
return;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1009
|
+
sessionMutationRef.current = true;
|
|
1010
|
+
setIsSessionMutating(true);
|
|
1011
|
+
try {
|
|
1012
|
+
await cfg.remove(id);
|
|
1013
|
+
// Re-fetch first so the fallback target reflects reality
|
|
1014
|
+
const cfgList = cfg.list ? await cfg.list() : [];
|
|
1015
|
+
setSessions(cfgList);
|
|
1016
|
+
if (id === activeSessionId) {
|
|
1017
|
+
const next = cfgList.find((s) => s.id !== id);
|
|
1018
|
+
if (next) {
|
|
1019
|
+
await switchSession(next.id);
|
|
1020
|
+
}
|
|
1021
|
+
else if (cfg.create) {
|
|
1022
|
+
// No sessions left — spin up a fresh one
|
|
1023
|
+
const created = await cfg.create();
|
|
1024
|
+
const refreshed = cfg.list ? await cfg.list() : [created];
|
|
1025
|
+
setSessions(refreshed);
|
|
1026
|
+
await switchSession(created.id);
|
|
1027
|
+
}
|
|
785
1028
|
}
|
|
786
1029
|
}
|
|
787
|
-
|
|
1030
|
+
finally {
|
|
1031
|
+
sessionMutationRef.current = false;
|
|
1032
|
+
setIsSessionMutating(false);
|
|
1033
|
+
}
|
|
1034
|
+
}, [activeSessionId, switchSession, isLoading]);
|
|
788
1035
|
const renameSession = (0, react_1.useCallback)(async (id, title) => {
|
|
789
1036
|
const cfg = sessionRef.current;
|
|
790
1037
|
if (!cfg?.rename)
|
|
@@ -804,28 +1051,52 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
804
1051
|
}, []);
|
|
805
1052
|
// Approval handlers
|
|
806
1053
|
const approve = (0, react_1.useCallback)(async (id) => {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
1054
|
+
setApprovalError(null);
|
|
1055
|
+
setProcessingApprovalIds((prev) => new Set(prev).add(id));
|
|
1056
|
+
try {
|
|
1057
|
+
await addToolApprovalResponse({ id, approved: true });
|
|
1058
|
+
setPendingApprovalsMap((prev) => {
|
|
1059
|
+
const next = new Map(prev);
|
|
1060
|
+
next.delete(id);
|
|
1061
|
+
return next;
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
catch {
|
|
1065
|
+
setApprovalError(new Error('Tool approval response failed.'));
|
|
1066
|
+
}
|
|
1067
|
+
finally {
|
|
1068
|
+
setProcessingApprovalIds((prev) => {
|
|
1069
|
+
const next = new Set(prev);
|
|
1070
|
+
next.delete(id);
|
|
1071
|
+
return next;
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
815
1074
|
}, [addToolApprovalResponse]);
|
|
816
1075
|
const reject = (0, react_1.useCallback)(async (id) => {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
1076
|
+
setApprovalError(null);
|
|
1077
|
+
setProcessingApprovalIds((prev) => new Set(prev).add(id));
|
|
1078
|
+
try {
|
|
1079
|
+
await addToolApprovalResponse({
|
|
1080
|
+
id,
|
|
1081
|
+
approved: false,
|
|
1082
|
+
reason: 'Rejected by user.',
|
|
1083
|
+
});
|
|
1084
|
+
setPendingApprovalsMap((prev) => {
|
|
1085
|
+
const next = new Map(prev);
|
|
1086
|
+
next.delete(id);
|
|
1087
|
+
return next;
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
catch {
|
|
1091
|
+
setApprovalError(new Error('Tool approval response failed.'));
|
|
1092
|
+
}
|
|
1093
|
+
finally {
|
|
1094
|
+
setProcessingApprovalIds((prev) => {
|
|
1095
|
+
const next = new Set(prev);
|
|
1096
|
+
next.delete(id);
|
|
1097
|
+
return next;
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
829
1100
|
}, [addToolApprovalResponse]);
|
|
830
1101
|
// Truncation
|
|
831
1102
|
const continueTruncation = (0, react_1.useCallback)(async () => {
|
|
@@ -915,16 +1186,19 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
915
1186
|
locale,
|
|
916
1187
|
themeVars,
|
|
917
1188
|
themeEffect,
|
|
1189
|
+
unstyled,
|
|
918
1190
|
suggestions: suggestionsConfig,
|
|
919
1191
|
toolLabels,
|
|
920
1192
|
toolResults: toolResultConfig,
|
|
1193
|
+
toolRendererRegistry,
|
|
921
1194
|
voice: voiceConfig,
|
|
922
1195
|
mentionConfig: mentions,
|
|
923
1196
|
pipelineMessageTranslator,
|
|
924
1197
|
stepSummaryFormatter,
|
|
925
1198
|
messages: visibleMessages,
|
|
926
|
-
isLoading,
|
|
927
|
-
|
|
1199
|
+
isLoading: isLoading || isSessionMutating || sessionNotReady,
|
|
1200
|
+
isSessionChangeBlocked: isLoading || isSessionMutating,
|
|
1201
|
+
error: error ?? approvalError,
|
|
928
1202
|
send,
|
|
929
1203
|
stop,
|
|
930
1204
|
clear,
|
|
@@ -933,9 +1207,10 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
933
1207
|
pipelineSteps,
|
|
934
1208
|
pipelineState,
|
|
935
1209
|
pendingApprovals,
|
|
1210
|
+
approvalReminder,
|
|
936
1211
|
approve,
|
|
937
1212
|
reject,
|
|
938
|
-
isProcessingApproval:
|
|
1213
|
+
isProcessingApproval: processingApprovalIds.size > 0,
|
|
939
1214
|
approvalDescription: approvalDescriptionRef.current,
|
|
940
1215
|
truncation,
|
|
941
1216
|
continueTruncation,
|
|
@@ -952,6 +1227,16 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
952
1227
|
clearActiveMentions,
|
|
953
1228
|
isMentionSearching,
|
|
954
1229
|
hasMentions: !!mentions,
|
|
1230
|
+
completionSearch,
|
|
1231
|
+
hasCompletions: completionSearch !== undefined,
|
|
1232
|
+
interactions: interactionRegistry,
|
|
1233
|
+
pendingCommand,
|
|
1234
|
+
submitPendingCommand,
|
|
1235
|
+
cancelPendingCommand,
|
|
1236
|
+
runEntityAction,
|
|
1237
|
+
mentionEntity,
|
|
1238
|
+
composerMentions,
|
|
1239
|
+
consumeComposerMentions,
|
|
955
1240
|
suggestionChips,
|
|
956
1241
|
selectSuggestion,
|
|
957
1242
|
refreshSuggestions,
|
|
@@ -971,16 +1256,22 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
971
1256
|
locale,
|
|
972
1257
|
themeVars,
|
|
973
1258
|
themeEffect,
|
|
1259
|
+
unstyled,
|
|
974
1260
|
suggestionsConfig,
|
|
975
1261
|
toolLabels,
|
|
976
1262
|
toolResultConfig,
|
|
1263
|
+
toolRendererRegistry,
|
|
977
1264
|
voiceConfig,
|
|
978
1265
|
mentions,
|
|
979
1266
|
pipelineMessageTranslator,
|
|
980
1267
|
stepSummaryFormatter,
|
|
981
1268
|
visibleMessages,
|
|
982
1269
|
isLoading,
|
|
1270
|
+
sessionNotReady,
|
|
1271
|
+
isSessionMutating,
|
|
1272
|
+
isBootstrapSentinel,
|
|
983
1273
|
error,
|
|
1274
|
+
approvalError,
|
|
984
1275
|
send,
|
|
985
1276
|
stop,
|
|
986
1277
|
clear,
|
|
@@ -989,9 +1280,10 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
989
1280
|
pipelineSteps,
|
|
990
1281
|
pipelineState,
|
|
991
1282
|
pendingApprovals,
|
|
1283
|
+
approvalReminder,
|
|
992
1284
|
approve,
|
|
993
1285
|
reject,
|
|
994
|
-
|
|
1286
|
+
processingApprovalIds,
|
|
995
1287
|
truncation,
|
|
996
1288
|
continueTruncation,
|
|
997
1289
|
dismissTruncation,
|
|
@@ -1006,6 +1298,15 @@ function AiChatProvider({ transport, mentions, toolResults: userToolResults, voi
|
|
|
1006
1298
|
removeActiveMention,
|
|
1007
1299
|
clearActiveMentions,
|
|
1008
1300
|
isMentionSearching,
|
|
1301
|
+
completionSearch,
|
|
1302
|
+
interactionRegistry,
|
|
1303
|
+
pendingCommand,
|
|
1304
|
+
submitPendingCommand,
|
|
1305
|
+
cancelPendingCommand,
|
|
1306
|
+
runEntityAction,
|
|
1307
|
+
mentionEntity,
|
|
1308
|
+
composerMentions,
|
|
1309
|
+
consumeComposerMentions,
|
|
1009
1310
|
suggestionChips,
|
|
1010
1311
|
selectSuggestion,
|
|
1011
1312
|
refreshSuggestions,
|