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
package/dist/cjs/react/index.js
CHANGED
|
@@ -20,10 +20,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
20
20
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.
|
|
23
|
+
exports.ApprovalCard = exports.ChatWindow = exports.RichMentionInput = exports.MentionInput = exports.ChatInput = exports.MessageBubble = exports.MessageList = exports.FloatingChatUI = exports.AiChatPanel = exports.AssistantWorkspace = exports.DE_ASSISTANT_SHORTCUT_LABELS = exports.DEFAULT_ASSISTANT_SHORTCUT_LABELS = exports.assistantShortcutList = exports.DE_ASSISTANT_SHELL_LABELS = exports.DEFAULT_ASSISTANT_SHELL_LABELS = exports.DEFAULT_ASSISTANT_SHELL_ICONS = exports.AssistantToggle = exports.AssistantShell = exports.DEFAULT_ASSISTANT_LAYOUT_LIMITS = exports.DEFAULT_ASSISTANT_LAYOUT_KEY = exports.clampAssistantWidth = exports.defaultAssistantLayout = exports.parseAssistantLayout = exports.useAssistantLayout = exports.AssistantLayoutProvider = exports.usePushToTalkHotkey = exports.DEFAULT_PUSH_TO_TALK_HOTKEY = exports.useChatShortcuts = exports.resolveChatShortcuts = exports.matchesShortcut = exports.formatShortcut = exports.DEFAULT_CHAT_SHORTCUTS = exports.useFloatingPanel = exports.useKeyboardShortcut = exports.useDraggablePosition = exports.useDragResizePanel = exports.createDeepgramSegmentParser = exports.DeepgramSttAdapter = exports.encodeWav = exports.RecordedSttAdapter = exports.SttSessionController = exports.useStt = exports.useDeepgramTranscription = exports.useSuggestions = exports.useMentions = exports.useApprovals = exports.useAiChat = exports.useChatContext = exports.deChatLocale = exports.AiChatProvider = void 0;
|
|
24
|
+
exports.stripClarificationMarkers = exports.formatClarificationAnswer = exports.readClarificationPart = exports.findOpenClarification = exports.createApprovalDescriptionGenerator = exports.createToolResultHandler = exports.normalizeMentionSlug = exports.inferMentionPrefix = exports.serializeMentionsForSend = exports.parseMentionSegments = exports.stripContextBlocks = exports.createLocalSessionStore = exports.sanitizeStoredMessages = exports.readLatestPlan = exports.readActivitySteps = exports.mergePipelineSteps = exports.DEFAULT_THEME_PRESET = exports.CHAT_THEME_PRESETS = exports.getThemeVars = exports.createRestSessionBridge = exports.parseChatInteractions = exports.parseChatInteractionOverrides = exports.mergeChatInteractions = exports.chatText = exports.stripChatCommandMarkers = exports.parseChatCommandMessage = exports.formatChatCommandMessage = exports.useChatInteractionsData = exports.createChatInteractionRegistry = exports.entitiesFromData = exports.defineChatEntity = exports.defineChatCommand = exports.CommandArgumentsForm = exports.createUiToolCommandProvider = exports.createCompletionSearch = exports.defineToolResultRenderer = exports.createToolResultRendererRegistry = exports.ClarificationCard = exports.SessionSwitcher = exports.AiTriggerButton = exports.RecordingBar = exports.VoiceInputButton = exports.MentionChipList = exports.MentionChip = exports.SuggestionBar = exports.SuggestionChip = exports.PlanChecklist = exports.ActivityLog = exports.PipelineTimeline = exports.BulkApprovalCard = void 0;
|
|
24
25
|
// Provider
|
|
25
26
|
var ai_chat_provider_js_1 = require("./provider/ai-chat-provider.js");
|
|
26
27
|
Object.defineProperty(exports, "AiChatProvider", { enumerable: true, get: function () { return ai_chat_provider_js_1.AiChatProvider; } });
|
|
28
|
+
var locale_de_js_1 = require("./locale-de.js");
|
|
29
|
+
Object.defineProperty(exports, "deChatLocale", { enumerable: true, get: function () { return locale_de_js_1.deChatLocale; } });
|
|
27
30
|
// Context (for advanced use cases)
|
|
28
31
|
var chat_context_js_1 = require("./provider/chat-context.js");
|
|
29
32
|
Object.defineProperty(exports, "useChatContext", { enumerable: true, get: function () { return chat_context_js_1.useChatContext; } });
|
|
@@ -38,13 +41,54 @@ var use_suggestions_js_1 = require("./hooks/use-suggestions.js");
|
|
|
38
41
|
Object.defineProperty(exports, "useSuggestions", { enumerable: true, get: function () { return use_suggestions_js_1.useSuggestions; } });
|
|
39
42
|
var use_deepgram_transcription_js_1 = require("./hooks/use-deepgram-transcription.js");
|
|
40
43
|
Object.defineProperty(exports, "useDeepgramTranscription", { enumerable: true, get: function () { return use_deepgram_transcription_js_1.useDeepgramTranscription; } });
|
|
44
|
+
var use_stt_js_1 = require("./stt/use-stt.js");
|
|
45
|
+
Object.defineProperty(exports, "useStt", { enumerable: true, get: function () { return use_stt_js_1.useStt; } });
|
|
46
|
+
var controller_js_1 = require("./stt/controller.js");
|
|
47
|
+
Object.defineProperty(exports, "SttSessionController", { enumerable: true, get: function () { return controller_js_1.SttSessionController; } });
|
|
48
|
+
var recorded_js_1 = require("./stt/recorded.js");
|
|
49
|
+
Object.defineProperty(exports, "RecordedSttAdapter", { enumerable: true, get: function () { return recorded_js_1.RecordedSttAdapter; } });
|
|
50
|
+
Object.defineProperty(exports, "encodeWav", { enumerable: true, get: function () { return recorded_js_1.encodeWav; } });
|
|
51
|
+
var deepgram_js_1 = require("./stt/deepgram.js");
|
|
52
|
+
Object.defineProperty(exports, "DeepgramSttAdapter", { enumerable: true, get: function () { return deepgram_js_1.DeepgramSttAdapter; } });
|
|
53
|
+
Object.defineProperty(exports, "createDeepgramSegmentParser", { enumerable: true, get: function () { return deepgram_js_1.createDeepgramSegmentParser; } });
|
|
41
54
|
var use_drag_resize_panel_js_1 = require("./hooks/use-drag-resize-panel.js");
|
|
42
55
|
Object.defineProperty(exports, "useDragResizePanel", { enumerable: true, get: function () { return use_drag_resize_panel_js_1.useDragResizePanel; } });
|
|
43
56
|
var use_draggable_position_js_1 = require("./hooks/use-draggable-position.js");
|
|
44
57
|
Object.defineProperty(exports, "useDraggablePosition", { enumerable: true, get: function () { return use_draggable_position_js_1.useDraggablePosition; } });
|
|
45
58
|
var use_keyboard_shortcut_js_1 = require("./hooks/use-keyboard-shortcut.js");
|
|
46
59
|
Object.defineProperty(exports, "useKeyboardShortcut", { enumerable: true, get: function () { return use_keyboard_shortcut_js_1.useKeyboardShortcut; } });
|
|
60
|
+
var use_floating_panel_js_1 = require("./hooks/use-floating-panel.js");
|
|
61
|
+
Object.defineProperty(exports, "useFloatingPanel", { enumerable: true, get: function () { return use_floating_panel_js_1.useFloatingPanel; } });
|
|
62
|
+
var use_chat_shortcuts_js_1 = require("./hooks/use-chat-shortcuts.js");
|
|
63
|
+
Object.defineProperty(exports, "DEFAULT_CHAT_SHORTCUTS", { enumerable: true, get: function () { return use_chat_shortcuts_js_1.DEFAULT_CHAT_SHORTCUTS; } });
|
|
64
|
+
Object.defineProperty(exports, "formatShortcut", { enumerable: true, get: function () { return use_chat_shortcuts_js_1.formatShortcut; } });
|
|
65
|
+
Object.defineProperty(exports, "matchesShortcut", { enumerable: true, get: function () { return use_chat_shortcuts_js_1.matchesShortcut; } });
|
|
66
|
+
Object.defineProperty(exports, "resolveChatShortcuts", { enumerable: true, get: function () { return use_chat_shortcuts_js_1.resolveChatShortcuts; } });
|
|
67
|
+
Object.defineProperty(exports, "useChatShortcuts", { enumerable: true, get: function () { return use_chat_shortcuts_js_1.useChatShortcuts; } });
|
|
68
|
+
var use_push_to_talk_hotkey_js_1 = require("./hooks/use-push-to-talk-hotkey.js");
|
|
69
|
+
Object.defineProperty(exports, "DEFAULT_PUSH_TO_TALK_HOTKEY", { enumerable: true, get: function () { return use_push_to_talk_hotkey_js_1.DEFAULT_PUSH_TO_TALK_HOTKEY; } });
|
|
70
|
+
Object.defineProperty(exports, "usePushToTalkHotkey", { enumerable: true, get: function () { return use_push_to_talk_hotkey_js_1.usePushToTalkHotkey; } });
|
|
47
71
|
// Components
|
|
72
|
+
var assistant_layout_js_1 = require("./assistant/assistant-layout.js");
|
|
73
|
+
Object.defineProperty(exports, "AssistantLayoutProvider", { enumerable: true, get: function () { return assistant_layout_js_1.AssistantLayoutProvider; } });
|
|
74
|
+
Object.defineProperty(exports, "useAssistantLayout", { enumerable: true, get: function () { return assistant_layout_js_1.useAssistantLayout; } });
|
|
75
|
+
Object.defineProperty(exports, "parseAssistantLayout", { enumerable: true, get: function () { return assistant_layout_js_1.parseAssistantLayout; } });
|
|
76
|
+
Object.defineProperty(exports, "defaultAssistantLayout", { enumerable: true, get: function () { return assistant_layout_js_1.defaultAssistantLayout; } });
|
|
77
|
+
Object.defineProperty(exports, "clampAssistantWidth", { enumerable: true, get: function () { return assistant_layout_js_1.clampAssistantWidth; } });
|
|
78
|
+
Object.defineProperty(exports, "DEFAULT_ASSISTANT_LAYOUT_KEY", { enumerable: true, get: function () { return assistant_layout_js_1.DEFAULT_ASSISTANT_LAYOUT_KEY; } });
|
|
79
|
+
Object.defineProperty(exports, "DEFAULT_ASSISTANT_LAYOUT_LIMITS", { enumerable: true, get: function () { return assistant_layout_js_1.DEFAULT_ASSISTANT_LAYOUT_LIMITS; } });
|
|
80
|
+
var assistant_shell_js_1 = require("./assistant/assistant-shell.js");
|
|
81
|
+
Object.defineProperty(exports, "AssistantShell", { enumerable: true, get: function () { return assistant_shell_js_1.AssistantShell; } });
|
|
82
|
+
Object.defineProperty(exports, "AssistantToggle", { enumerable: true, get: function () { return assistant_shell_js_1.AssistantToggle; } });
|
|
83
|
+
Object.defineProperty(exports, "DEFAULT_ASSISTANT_SHELL_ICONS", { enumerable: true, get: function () { return assistant_shell_js_1.DEFAULT_ASSISTANT_SHELL_ICONS; } });
|
|
84
|
+
Object.defineProperty(exports, "DEFAULT_ASSISTANT_SHELL_LABELS", { enumerable: true, get: function () { return assistant_shell_js_1.DEFAULT_ASSISTANT_SHELL_LABELS; } });
|
|
85
|
+
Object.defineProperty(exports, "DE_ASSISTANT_SHELL_LABELS", { enumerable: true, get: function () { return assistant_shell_js_1.DE_ASSISTANT_SHELL_LABELS; } });
|
|
86
|
+
var assistant_shortcut_list_js_1 = require("./assistant/assistant-shortcut-list.js");
|
|
87
|
+
Object.defineProperty(exports, "assistantShortcutList", { enumerable: true, get: function () { return assistant_shortcut_list_js_1.assistantShortcutList; } });
|
|
88
|
+
Object.defineProperty(exports, "DEFAULT_ASSISTANT_SHORTCUT_LABELS", { enumerable: true, get: function () { return assistant_shortcut_list_js_1.DEFAULT_ASSISTANT_SHORTCUT_LABELS; } });
|
|
89
|
+
Object.defineProperty(exports, "DE_ASSISTANT_SHORTCUT_LABELS", { enumerable: true, get: function () { return assistant_shortcut_list_js_1.DE_ASSISTANT_SHORTCUT_LABELS; } });
|
|
90
|
+
var assistant_workspace_js_1 = require("./assistant/assistant-workspace.js");
|
|
91
|
+
Object.defineProperty(exports, "AssistantWorkspace", { enumerable: true, get: function () { return assistant_workspace_js_1.AssistantWorkspace; } });
|
|
48
92
|
var ai_chat_panel_js_1 = require("./components/ai-chat-panel.js");
|
|
49
93
|
Object.defineProperty(exports, "AiChatPanel", { enumerable: true, get: function () { return ai_chat_panel_js_1.AiChatPanel; } });
|
|
50
94
|
var floating_chat_ui_js_1 = require("./components/floating-chat-ui.js");
|
|
@@ -67,6 +111,10 @@ var bulk_approval_card_js_1 = require("./components/bulk-approval-card.js");
|
|
|
67
111
|
Object.defineProperty(exports, "BulkApprovalCard", { enumerable: true, get: function () { return bulk_approval_card_js_1.BulkApprovalCard; } });
|
|
68
112
|
var pipeline_timeline_js_1 = require("./components/pipeline-timeline.js");
|
|
69
113
|
Object.defineProperty(exports, "PipelineTimeline", { enumerable: true, get: function () { return pipeline_timeline_js_1.PipelineTimeline; } });
|
|
114
|
+
var activity_log_js_1 = require("./components/activity-log.js");
|
|
115
|
+
Object.defineProperty(exports, "ActivityLog", { enumerable: true, get: function () { return activity_log_js_1.ActivityLog; } });
|
|
116
|
+
var plan_checklist_js_1 = require("./components/plan-checklist.js");
|
|
117
|
+
Object.defineProperty(exports, "PlanChecklist", { enumerable: true, get: function () { return plan_checklist_js_1.PlanChecklist; } });
|
|
70
118
|
var suggestion_chip_js_1 = require("./components/suggestion-chip.js");
|
|
71
119
|
Object.defineProperty(exports, "SuggestionChip", { enumerable: true, get: function () { return suggestion_chip_js_1.SuggestionChip; } });
|
|
72
120
|
var suggestion_bar_js_1 = require("./components/suggestion-bar.js");
|
|
@@ -82,6 +130,37 @@ var ai_trigger_button_js_1 = require("./components/ai-trigger-button.js");
|
|
|
82
130
|
Object.defineProperty(exports, "AiTriggerButton", { enumerable: true, get: function () { return ai_trigger_button_js_1.AiTriggerButton; } });
|
|
83
131
|
var session_switcher_js_1 = require("./components/session-switcher.js");
|
|
84
132
|
Object.defineProperty(exports, "SessionSwitcher", { enumerable: true, get: function () { return session_switcher_js_1.SessionSwitcher; } });
|
|
133
|
+
var clarification_card_js_1 = require("./components/clarification-card.js");
|
|
134
|
+
Object.defineProperty(exports, "ClarificationCard", { enumerable: true, get: function () { return clarification_card_js_1.ClarificationCard; } });
|
|
135
|
+
// Tool result renderers
|
|
136
|
+
var registry_js_1 = require("./tool-renderers/registry.js");
|
|
137
|
+
Object.defineProperty(exports, "createToolResultRendererRegistry", { enumerable: true, get: function () { return registry_js_1.createToolResultRendererRegistry; } });
|
|
138
|
+
Object.defineProperty(exports, "defineToolResultRenderer", { enumerable: true, get: function () { return registry_js_1.defineToolResultRenderer; } });
|
|
139
|
+
// Completion providers
|
|
140
|
+
var completion_search_js_1 = require("./completions/completion-search.js");
|
|
141
|
+
Object.defineProperty(exports, "createCompletionSearch", { enumerable: true, get: function () { return completion_search_js_1.createCompletionSearch; } });
|
|
142
|
+
var ui_tool_command_provider_js_1 = require("./completions/ui-tool-command-provider.js");
|
|
143
|
+
Object.defineProperty(exports, "createUiToolCommandProvider", { enumerable: true, get: function () { return ui_tool_command_provider_js_1.createUiToolCommandProvider; } });
|
|
144
|
+
var command_arguments_form_js_1 = require("./components/command-arguments-form.js");
|
|
145
|
+
Object.defineProperty(exports, "CommandArgumentsForm", { enumerable: true, get: function () { return command_arguments_form_js_1.CommandArgumentsForm; } });
|
|
146
|
+
// Declarative chat interactions: `@` entities and `/` commands
|
|
147
|
+
var definitions_js_1 = require("./interactions/definitions.js");
|
|
148
|
+
Object.defineProperty(exports, "defineChatCommand", { enumerable: true, get: function () { return definitions_js_1.defineChatCommand; } });
|
|
149
|
+
Object.defineProperty(exports, "defineChatEntity", { enumerable: true, get: function () { return definitions_js_1.defineChatEntity; } });
|
|
150
|
+
Object.defineProperty(exports, "entitiesFromData", { enumerable: true, get: function () { return definitions_js_1.entitiesFromData; } });
|
|
151
|
+
var registry_js_2 = require("./interactions/registry.js");
|
|
152
|
+
Object.defineProperty(exports, "createChatInteractionRegistry", { enumerable: true, get: function () { return registry_js_2.createChatInteractionRegistry; } });
|
|
153
|
+
var use_chat_interactions_data_js_1 = require("./interactions/use-chat-interactions-data.js");
|
|
154
|
+
Object.defineProperty(exports, "useChatInteractionsData", { enumerable: true, get: function () { return use_chat_interactions_data_js_1.useChatInteractionsData; } });
|
|
155
|
+
var chat_command_js_1 = require("../contracts/chat-command.js");
|
|
156
|
+
Object.defineProperty(exports, "formatChatCommandMessage", { enumerable: true, get: function () { return chat_command_js_1.formatChatCommandMessage; } });
|
|
157
|
+
Object.defineProperty(exports, "parseChatCommandMessage", { enumerable: true, get: function () { return chat_command_js_1.parseChatCommandMessage; } });
|
|
158
|
+
Object.defineProperty(exports, "stripChatCommandMarkers", { enumerable: true, get: function () { return chat_command_js_1.stripChatCommandMarkers; } });
|
|
159
|
+
var chat_interactions_js_1 = require("../contracts/chat-interactions.js");
|
|
160
|
+
Object.defineProperty(exports, "chatText", { enumerable: true, get: function () { return chat_interactions_js_1.chatText; } });
|
|
161
|
+
Object.defineProperty(exports, "mergeChatInteractions", { enumerable: true, get: function () { return chat_interactions_js_1.mergeChatInteractions; } });
|
|
162
|
+
Object.defineProperty(exports, "parseChatInteractionOverrides", { enumerable: true, get: function () { return chat_interactions_js_1.parseChatInteractionOverrides; } });
|
|
163
|
+
Object.defineProperty(exports, "parseChatInteractions", { enumerable: true, get: function () { return chat_interactions_js_1.parseChatInteractions; } });
|
|
85
164
|
// Bridges
|
|
86
165
|
var rest_session_bridge_js_1 = require("./bridges/rest-session-bridge.js");
|
|
87
166
|
Object.defineProperty(exports, "createRestSessionBridge", { enumerable: true, get: function () { return rest_session_bridge_js_1.createRestSessionBridge; } });
|
|
@@ -93,8 +172,13 @@ Object.defineProperty(exports, "DEFAULT_THEME_PRESET", { enumerable: true, get:
|
|
|
93
172
|
// Utilities
|
|
94
173
|
var merge_pipeline_steps_js_1 = require("./utils/merge-pipeline-steps.js");
|
|
95
174
|
Object.defineProperty(exports, "mergePipelineSteps", { enumerable: true, get: function () { return merge_pipeline_steps_js_1.mergePipelineSteps; } });
|
|
175
|
+
var activity_js_1 = require("./utils/activity.js");
|
|
176
|
+
Object.defineProperty(exports, "readActivitySteps", { enumerable: true, get: function () { return activity_js_1.readActivitySteps; } });
|
|
177
|
+
Object.defineProperty(exports, "readLatestPlan", { enumerable: true, get: function () { return activity_js_1.readLatestPlan; } });
|
|
96
178
|
var sanitize_stored_messages_js_1 = require("./utils/sanitize-stored-messages.js");
|
|
97
179
|
Object.defineProperty(exports, "sanitizeStoredMessages", { enumerable: true, get: function () { return sanitize_stored_messages_js_1.sanitizeStoredMessages; } });
|
|
180
|
+
var local_session_store_js_1 = require("./utils/local-session-store.js");
|
|
181
|
+
Object.defineProperty(exports, "createLocalSessionStore", { enumerable: true, get: function () { return local_session_store_js_1.createLocalSessionStore; } });
|
|
98
182
|
var mention_markup_js_1 = require("./utils/mention-markup.js");
|
|
99
183
|
Object.defineProperty(exports, "stripContextBlocks", { enumerable: true, get: function () { return mention_markup_js_1.stripContextBlocks; } });
|
|
100
184
|
Object.defineProperty(exports, "parseMentionSegments", { enumerable: true, get: function () { return mention_markup_js_1.parseMentionSegments; } });
|
|
@@ -105,6 +189,12 @@ var create_tool_result_handler_js_1 = require("./utils/create-tool-result-handle
|
|
|
105
189
|
Object.defineProperty(exports, "createToolResultHandler", { enumerable: true, get: function () { return create_tool_result_handler_js_1.createToolResultHandler; } });
|
|
106
190
|
var create_approval_description_js_1 = require("./utils/create-approval-description.js");
|
|
107
191
|
Object.defineProperty(exports, "createApprovalDescriptionGenerator", { enumerable: true, get: function () { return create_approval_description_js_1.createApprovalDescriptionGenerator; } });
|
|
192
|
+
var clarification_js_1 = require("./utils/clarification.js");
|
|
193
|
+
Object.defineProperty(exports, "findOpenClarification", { enumerable: true, get: function () { return clarification_js_1.findOpenClarification; } });
|
|
194
|
+
Object.defineProperty(exports, "readClarificationPart", { enumerable: true, get: function () { return clarification_js_1.readClarificationPart; } });
|
|
195
|
+
var clarification_js_2 = require("../contracts/clarification.js");
|
|
196
|
+
Object.defineProperty(exports, "formatClarificationAnswer", { enumerable: true, get: function () { return clarification_js_2.formatClarificationAnswer; } });
|
|
197
|
+
Object.defineProperty(exports, "stripClarificationMarkers", { enumerable: true, get: function () { return clarification_js_2.stripClarificationMarkers; } });
|
|
108
198
|
// UI action bus + hooks (client action dispatch)
|
|
109
199
|
__exportStar(require("./ui.js"), exports);
|
|
110
200
|
// Pre-styled template (Tailwind wrappers around the unstyled components)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type ChatCommandRun, type ChatInteractionArg, type ChatInteractionsData, type ChatLocaleCode, type ChatText, type ChatToolRun } from '../../contracts/chat-interactions.js';
|
|
2
|
+
import type { CompletionPermissionContext } from '../types.js';
|
|
3
|
+
/** One search hit of an entity: the app's id and what the user sees. */
|
|
4
|
+
export interface ChatEntityItem {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
readonly description?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Framework-neutral preview of an entity in the `@` list. */
|
|
10
|
+
export interface ChatEntityCard {
|
|
11
|
+
readonly title: string;
|
|
12
|
+
readonly subtitle?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ChatEntitySearchContext {
|
|
15
|
+
/** Aborted when a newer search starts; pass it to `fetch`. */
|
|
16
|
+
readonly signal: AbortSignal;
|
|
17
|
+
readonly limit: number;
|
|
18
|
+
readonly locale: ChatLocaleCode;
|
|
19
|
+
/** What the UI knows about the user; it only hides, the app authorizes. */
|
|
20
|
+
readonly context: CompletionPermissionContext;
|
|
21
|
+
}
|
|
22
|
+
export interface ChatEntityAction {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly label: ChatText;
|
|
25
|
+
/** Argument that receives the entity id (dotted path, e.g. `params.taskId`). */
|
|
26
|
+
readonly entityArg: string;
|
|
27
|
+
readonly args?: ReadonlyArray<ChatInteractionArg>;
|
|
28
|
+
readonly run: ChatToolRun;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An `@` entity: `search` runs in the browser with the user's session
|
|
32
|
+
* against the app's own endpoints; nothing goes to the Glirastes Platform.
|
|
33
|
+
*/
|
|
34
|
+
export interface ChatEntityDefinition {
|
|
35
|
+
readonly type: string;
|
|
36
|
+
readonly label: ChatText;
|
|
37
|
+
readonly icon?: string;
|
|
38
|
+
search(query: string, context: ChatEntitySearchContext): Promise<ReadonlyArray<ChatEntityItem>> | ReadonlyArray<ChatEntityItem>;
|
|
39
|
+
/** Looks one entity up by id, e.g. to pre-fill the composer (`mentionEntity`). */
|
|
40
|
+
resolve?(id: string): Promise<ChatEntityItem | undefined> | ChatEntityItem | undefined;
|
|
41
|
+
card?(item: ChatEntityItem): ChatEntityCard;
|
|
42
|
+
readonly actions?: ReadonlyArray<ChatEntityAction>;
|
|
43
|
+
}
|
|
44
|
+
/** A `/` command; `run` decides whether the model is involved (`prompt`) or not (`tool`, `ui`). */
|
|
45
|
+
export interface ChatCommandDefinition {
|
|
46
|
+
readonly id: string;
|
|
47
|
+
readonly label: ChatText;
|
|
48
|
+
readonly description?: ChatText;
|
|
49
|
+
readonly keywords?: ReadonlyArray<string>;
|
|
50
|
+
readonly icon?: string;
|
|
51
|
+
readonly args?: ReadonlyArray<ChatInteractionArg>;
|
|
52
|
+
readonly run: ChatCommandRun;
|
|
53
|
+
}
|
|
54
|
+
/** Validates and freezes an entity definition; throws on anything the chat could not use safely. */
|
|
55
|
+
export declare function defineChatEntity<T extends ChatEntityDefinition>(definition: T): T;
|
|
56
|
+
/** Validates and freezes a command definition. */
|
|
57
|
+
export declare function defineChatCommand<T extends ChatCommandDefinition>(definition: T): T;
|
|
58
|
+
/** Keeps only well-formed hits: a non-empty id and label, bounded text. */
|
|
59
|
+
export declare function toChatEntityItem(value: unknown): ChatEntityItem | undefined;
|
|
60
|
+
export interface DerivedEntityOptions {
|
|
61
|
+
/** Defaults to the global `fetch`; the request carries the user's cookies (same origin). */
|
|
62
|
+
fetch?: typeof globalThis.fetch;
|
|
63
|
+
/** Prefix for the app's endpoints, e.g. a separate API origin. Default: same origin. */
|
|
64
|
+
baseUrl?: string;
|
|
65
|
+
}
|
|
66
|
+
/** Entity definitions for derived data: searches call the app endpoint with the user's session. */
|
|
67
|
+
export declare function entitiesFromData(data: ChatInteractionsData, options?: DerivedEntityOptions): ChatEntityDefinition[];
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineChatEntity = defineChatEntity;
|
|
4
|
+
exports.defineChatCommand = defineChatCommand;
|
|
5
|
+
exports.toChatEntityItem = toChatEntityItem;
|
|
6
|
+
exports.entitiesFromData = entitiesFromData;
|
|
7
|
+
const chat_interactions_js_1 = require("../../contracts/chat-interactions.js");
|
|
8
|
+
const MAX_ITEM_TEXT = 200;
|
|
9
|
+
/** Validates and freezes an entity definition; throws on anything the chat could not use safely. */
|
|
10
|
+
function defineChatEntity(definition) {
|
|
11
|
+
if (typeof definition.search !== 'function')
|
|
12
|
+
throw new Error(`Chat entity ${String(definition.type)} needs a search function`);
|
|
13
|
+
const { search: _search, resolve: _resolve, card: _card, ...data } = definition;
|
|
14
|
+
(0, chat_interactions_js_1.parseChatInteractions)({ schemaVersion: 1, entities: [data], commands: [] });
|
|
15
|
+
return Object.freeze(definition);
|
|
16
|
+
}
|
|
17
|
+
/** Validates and freezes a command definition. */
|
|
18
|
+
function defineChatCommand(definition) {
|
|
19
|
+
(0, chat_interactions_js_1.parseChatInteractions)({ schemaVersion: 1, entities: [], commands: [definition] });
|
|
20
|
+
return Object.freeze(definition);
|
|
21
|
+
}
|
|
22
|
+
/** Keeps only well-formed hits: a non-empty id and label, bounded text. */
|
|
23
|
+
function toChatEntityItem(value) {
|
|
24
|
+
if (typeof value !== 'object' || value === null)
|
|
25
|
+
return undefined;
|
|
26
|
+
const item = value;
|
|
27
|
+
const id = typeof item.id === 'number' && Number.isFinite(item.id) ? String(item.id) : item.id;
|
|
28
|
+
if (typeof id !== 'string' || !id || id.length > MAX_ITEM_TEXT || /[:}]/.test(id))
|
|
29
|
+
return undefined;
|
|
30
|
+
if (typeof item.label !== 'string' || !item.label.trim())
|
|
31
|
+
return undefined;
|
|
32
|
+
const description = typeof item.description === 'string' && item.description.trim()
|
|
33
|
+
? item.description.trim().slice(0, MAX_ITEM_TEXT)
|
|
34
|
+
: undefined;
|
|
35
|
+
return { id, label: item.label.trim().slice(0, MAX_ITEM_TEXT), ...(description ? { description } : {}) };
|
|
36
|
+
}
|
|
37
|
+
function at(value, path) {
|
|
38
|
+
let current = value;
|
|
39
|
+
for (const key of path) {
|
|
40
|
+
if (typeof current !== 'object' || current === null || Array.isArray(current))
|
|
41
|
+
return undefined;
|
|
42
|
+
current = current[key];
|
|
43
|
+
}
|
|
44
|
+
return current;
|
|
45
|
+
}
|
|
46
|
+
/** Entity definitions for derived data: searches call the app endpoint with the user's session. */
|
|
47
|
+
function entitiesFromData(data, options = {}) {
|
|
48
|
+
return data.entities.map((entity) => {
|
|
49
|
+
const search = entity.search;
|
|
50
|
+
return {
|
|
51
|
+
type: entity.type,
|
|
52
|
+
label: entity.label,
|
|
53
|
+
...(entity.icon ? { icon: entity.icon } : {}),
|
|
54
|
+
...(entity.actions ? { actions: entity.actions } : {}),
|
|
55
|
+
async search(query, context) {
|
|
56
|
+
if (!search)
|
|
57
|
+
return [];
|
|
58
|
+
const params = new URLSearchParams({ [search.queryParam]: query });
|
|
59
|
+
if (search.limitParam)
|
|
60
|
+
params.set(search.limitParam, String(context.limit));
|
|
61
|
+
const fetcher = options.fetch ?? globalThis.fetch;
|
|
62
|
+
const response = await fetcher(`${options.baseUrl ?? ''}${search.path}?${params}`, {
|
|
63
|
+
signal: context.signal,
|
|
64
|
+
credentials: options.baseUrl ? 'include' : 'same-origin',
|
|
65
|
+
headers: { accept: 'application/json' },
|
|
66
|
+
});
|
|
67
|
+
if (!response.ok)
|
|
68
|
+
return [];
|
|
69
|
+
const list = at(await response.json(), search.itemsPath);
|
|
70
|
+
if (!Array.isArray(list))
|
|
71
|
+
return [];
|
|
72
|
+
return list
|
|
73
|
+
.map((item) => toChatEntityItem({
|
|
74
|
+
id: at(item, [search.idField]),
|
|
75
|
+
label: at(item, [search.labelField]),
|
|
76
|
+
...(search.descriptionField ? { description: at(item, [search.descriptionField]) } : {}),
|
|
77
|
+
}))
|
|
78
|
+
.filter((item) => item !== undefined)
|
|
79
|
+
.slice(0, context.limit);
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ChatInteractionArg, type ChatInteractionsData, type ChatLocaleCode } from '../../contracts/chat-interactions.js';
|
|
2
|
+
import type { ChatCompletionProvider, CompletionPermissionContext, MentionData } from '../types.js';
|
|
3
|
+
import { type ChatCommandDefinition, type ChatEntityDefinition, type ChatEntityItem, type DerivedEntityOptions } from './definitions.js';
|
|
4
|
+
export interface ChatInteractionsConfig extends DerivedEntityOptions {
|
|
5
|
+
/** Derived interactions: `useChatInteractionsData(endpoint)` or the generated module's `chatInteractions`. */
|
|
6
|
+
readonly data?: ChatInteractionsData;
|
|
7
|
+
/** App-defined entities; one with the type of a derived entity replaces it. */
|
|
8
|
+
readonly entities?: ReadonlyArray<ChatEntityDefinition>;
|
|
9
|
+
/** App-defined commands; one with the id of a derived command replaces it. */
|
|
10
|
+
readonly commands?: ReadonlyArray<ChatCommandDefinition>;
|
|
11
|
+
/** Language of labels and default texts. Default `en`. */
|
|
12
|
+
readonly locale?: ChatLocaleCode;
|
|
13
|
+
/** Passed to entity searches; set by the provider from `completionContext`. */
|
|
14
|
+
readonly context?: CompletionPermissionContext;
|
|
15
|
+
}
|
|
16
|
+
/** A command or entity action that still needs arguments from the user. */
|
|
17
|
+
export interface PendingChatCommand {
|
|
18
|
+
readonly commandId: string;
|
|
19
|
+
readonly tool: string;
|
|
20
|
+
/** The visible name, e.g. `Assign` or `Filter Tasks`. */
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly fixedArgs: Readonly<Record<string, unknown>>;
|
|
23
|
+
/** Arguments the form asks for. */
|
|
24
|
+
readonly args: ReadonlyArray<ChatInteractionArg>;
|
|
25
|
+
/** Values already known (entity ids, picked mentions), by argument name. */
|
|
26
|
+
readonly values: Readonly<Record<string, string>>;
|
|
27
|
+
/** Display labels for entity values, by argument name. */
|
|
28
|
+
readonly valueLabels: Readonly<Record<string, string>>;
|
|
29
|
+
/** Set when the last attempt was refused, e.g. values too long. */
|
|
30
|
+
readonly error?: 'invalid';
|
|
31
|
+
}
|
|
32
|
+
export type ChatSendPlan =
|
|
33
|
+
/** A direct command message, ready for the transport. */
|
|
34
|
+
{
|
|
35
|
+
readonly status: 'send';
|
|
36
|
+
readonly text: string;
|
|
37
|
+
}
|
|
38
|
+
/** A prompt command: the text the model receives instead of the command token. */
|
|
39
|
+
| {
|
|
40
|
+
readonly status: 'prompt';
|
|
41
|
+
readonly text: string;
|
|
42
|
+
}
|
|
43
|
+
/** The command needs arguments first; show `PendingChatCommand` as a form. */
|
|
44
|
+
| {
|
|
45
|
+
readonly status: 'needs-args';
|
|
46
|
+
readonly request: PendingChatCommand;
|
|
47
|
+
};
|
|
48
|
+
export interface ChatInteractionRegistry {
|
|
49
|
+
readonly locale: ChatLocaleCode;
|
|
50
|
+
/** `/` commands and `@` entities for `createCompletionSearch`. */
|
|
51
|
+
readonly providers: ReadonlyArray<ChatCompletionProvider>;
|
|
52
|
+
command(id: string): ChatCommandDefinition | undefined;
|
|
53
|
+
entity(type: string): ChatEntityDefinition | undefined;
|
|
54
|
+
/** Searches one entity type, e.g. for an argument field; failures yield no hits. */
|
|
55
|
+
searchEntity(type: string, query: string, signal: AbortSignal): Promise<ChatEntityItem[]>;
|
|
56
|
+
/**
|
|
57
|
+
* How to send a composed message: `undefined` for a normal model message
|
|
58
|
+
* (no command, several commands, or a command mixed with free text).
|
|
59
|
+
*/
|
|
60
|
+
planMessage(text: string, mentions: ReadonlyArray<MentionData>): ChatSendPlan | undefined;
|
|
61
|
+
/** An entity action picked from the `@` list. */
|
|
62
|
+
planAction(entity: {
|
|
63
|
+
type: string;
|
|
64
|
+
id: string;
|
|
65
|
+
label: string;
|
|
66
|
+
}, actionId: string): ChatSendPlan | undefined;
|
|
67
|
+
/** Sends a pending command with the values (and entity labels) from its form, or asks again. */
|
|
68
|
+
completeCommand(pending: PendingChatCommand, values: Readonly<Record<string, string>>, valueLabels?: Readonly<Record<string, string>>): ChatSendPlan;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Turns declarative entities and commands into completion providers and
|
|
72
|
+
* send plans. App definitions replace derived ones of the same id or type.
|
|
73
|
+
*/
|
|
74
|
+
export declare function createChatInteractionRegistry(config: ChatInteractionsConfig): ChatInteractionRegistry;
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createChatInteractionRegistry = createChatInteractionRegistry;
|
|
4
|
+
const chat_command_js_1 = require("../../contracts/chat-command.js");
|
|
5
|
+
const chat_interactions_js_1 = require("../../contracts/chat-interactions.js");
|
|
6
|
+
const mention_markup_js_1 = require("../utils/mention-markup.js");
|
|
7
|
+
const definitions_js_1 = require("./definitions.js");
|
|
8
|
+
function fold(value) {
|
|
9
|
+
return value.normalize('NFKD').replace(/\p{M}+/gu, '').toLowerCase().trim();
|
|
10
|
+
}
|
|
11
|
+
function rank(label, command, needle) {
|
|
12
|
+
if (!needle)
|
|
13
|
+
return 0;
|
|
14
|
+
const folded = fold(label);
|
|
15
|
+
if (folded.startsWith(needle))
|
|
16
|
+
return 0;
|
|
17
|
+
if (folded.split(/[^\p{L}\p{N}]+/u).some((word) => word.startsWith(needle)))
|
|
18
|
+
return 1;
|
|
19
|
+
if (folded.includes(needle) || fold((0, mention_markup_js_1.normalizeMentionSlug)(label)).includes(needle))
|
|
20
|
+
return 2;
|
|
21
|
+
if (fold(command.id).includes(needle))
|
|
22
|
+
return 3;
|
|
23
|
+
if ((command.keywords ?? []).some((keyword) => fold(keyword).includes(needle)))
|
|
24
|
+
return 4;
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
function setPath(target, path, value) {
|
|
28
|
+
const segments = path.split('.');
|
|
29
|
+
let current = target;
|
|
30
|
+
for (const segment of segments.slice(0, -1)) {
|
|
31
|
+
const next = current[segment];
|
|
32
|
+
if (typeof next !== 'object' || next === null || Array.isArray(next))
|
|
33
|
+
current[segment] = {};
|
|
34
|
+
current = current[segment];
|
|
35
|
+
}
|
|
36
|
+
current[segments.at(-1)] = value;
|
|
37
|
+
}
|
|
38
|
+
function tokenOf(mention) {
|
|
39
|
+
return typeof mention.prefix === 'string' && typeof mention.slug === 'string'
|
|
40
|
+
? `${mention.prefix}${mention.slug}`
|
|
41
|
+
: undefined;
|
|
42
|
+
}
|
|
43
|
+
function withoutToken(text, token) {
|
|
44
|
+
const escaped = token.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
45
|
+
const pattern = new RegExp(`(^|\\s)${escaped}(?=\\s|$)`);
|
|
46
|
+
return pattern.test(text) ? { text: text.replace(pattern, '$1'), found: true } : { text, found: false };
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Turns declarative entities and commands into completion providers and
|
|
50
|
+
* send plans. App definitions replace derived ones of the same id or type.
|
|
51
|
+
*/
|
|
52
|
+
function createChatInteractionRegistry(config) {
|
|
53
|
+
const locale = config.locale ?? 'en';
|
|
54
|
+
const entities = new Map();
|
|
55
|
+
for (const entity of config.data ? (0, definitions_js_1.entitiesFromData)(config.data, config) : [])
|
|
56
|
+
entities.set(entity.type, entity);
|
|
57
|
+
for (const entity of config.entities ?? [])
|
|
58
|
+
entities.set(entity.type, entity);
|
|
59
|
+
const commands = new Map();
|
|
60
|
+
for (const command of config.data?.commands ?? [])
|
|
61
|
+
commands.set(command.id, command);
|
|
62
|
+
for (const command of config.commands ?? [])
|
|
63
|
+
commands.set(command.id, command);
|
|
64
|
+
const commandProvider = {
|
|
65
|
+
id: 'chat-commands',
|
|
66
|
+
trigger: '/',
|
|
67
|
+
search({ query, limit }) {
|
|
68
|
+
const needle = fold(query);
|
|
69
|
+
return [...commands.values()]
|
|
70
|
+
.map((command) => {
|
|
71
|
+
const label = (0, chat_interactions_js_1.chatText)(command.label, locale);
|
|
72
|
+
return { command, label, rank: rank(label, command, needle) };
|
|
73
|
+
})
|
|
74
|
+
.filter((entry) => entry.rank !== undefined)
|
|
75
|
+
.sort((left, right) => left.rank - right.rank || left.label.localeCompare(right.label))
|
|
76
|
+
.slice(0, limit)
|
|
77
|
+
.map(({ command, label }) => {
|
|
78
|
+
const description = (0, chat_interactions_js_1.chatText)(command.description, locale);
|
|
79
|
+
const run = command.run;
|
|
80
|
+
return {
|
|
81
|
+
id: command.id,
|
|
82
|
+
type: 'command',
|
|
83
|
+
label,
|
|
84
|
+
...(description ? { description } : {}),
|
|
85
|
+
// A command mixed with free text goes to the model with its tool reference.
|
|
86
|
+
...(run.kind !== 'prompt' ? { definitionId: run.tool, ...(run.args ? { args: run.args } : {}) } : {}),
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
const entityProvider = {
|
|
92
|
+
id: 'chat-entities',
|
|
93
|
+
trigger: '@',
|
|
94
|
+
async search({ query, signal, limit, context }) {
|
|
95
|
+
const settled = await Promise.allSettled([...entities.values()].map(async (entity) => {
|
|
96
|
+
const items = await entity.search(query, { signal, limit, locale, context });
|
|
97
|
+
return (Array.isArray(items) ? items : []).slice(0, limit).map((item) => {
|
|
98
|
+
const card = entity.card?.(item);
|
|
99
|
+
const description = card?.subtitle ?? item.description;
|
|
100
|
+
return {
|
|
101
|
+
id: item.id,
|
|
102
|
+
type: entity.type,
|
|
103
|
+
label: card?.title ?? item.label,
|
|
104
|
+
...(description ? { description } : {}),
|
|
105
|
+
...(entity.actions?.length
|
|
106
|
+
? { actions: entity.actions.map((action) => ({ id: action.id, label: (0, chat_interactions_js_1.chatText)(action.label, locale) })) }
|
|
107
|
+
: {}),
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}));
|
|
111
|
+
// One entity type must not fill the whole per-provider cap: take one hit per type in turn.
|
|
112
|
+
const lists = settled.flatMap((result) => (result.status === 'fulfilled' ? [result.value] : []));
|
|
113
|
+
const interleaved = [];
|
|
114
|
+
for (let index = 0; index < limit; index += 1) {
|
|
115
|
+
for (const list of lists) {
|
|
116
|
+
const item = list[index];
|
|
117
|
+
if (item)
|
|
118
|
+
interleaved.push(item);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return interleaved;
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
const complete = (pending, values, labels = {}) => {
|
|
125
|
+
const valueLabels = { ...pending.valueLabels, ...labels };
|
|
126
|
+
const merged = { ...pending.values };
|
|
127
|
+
for (const [name, value] of Object.entries(values)) {
|
|
128
|
+
if (typeof value === 'string' && value.trim())
|
|
129
|
+
merged[name] = value.trim();
|
|
130
|
+
else
|
|
131
|
+
delete merged[name];
|
|
132
|
+
}
|
|
133
|
+
const missing = pending.args.some((arg) => arg.required && !merged[arg.name]);
|
|
134
|
+
if (missing)
|
|
135
|
+
return { status: 'needs-args', request: { ...pending, values: merged, valueLabels } };
|
|
136
|
+
const args = structuredClone({ ...pending.fixedArgs });
|
|
137
|
+
for (const [name, value] of Object.entries(merged)) {
|
|
138
|
+
if ((0, chat_interactions_js_1.isChatArgumentPath)(name))
|
|
139
|
+
setPath(args, name, value);
|
|
140
|
+
}
|
|
141
|
+
if ((0, chat_command_js_1.serializeChatCommandArgs)(args) === undefined) {
|
|
142
|
+
return { status: 'needs-args', request: { ...pending, values: merged, valueLabels, error: 'invalid' } };
|
|
143
|
+
}
|
|
144
|
+
const shown = pending.args
|
|
145
|
+
.filter((arg) => merged[arg.name])
|
|
146
|
+
.map((arg) => (arg.entity ? `@${valueLabels[arg.name] || merged[arg.name]}` : merged[arg.name]));
|
|
147
|
+
const entityLabels = Object.entries(valueLabels)
|
|
148
|
+
.filter(([name]) => !pending.args.some((arg) => arg.name === name))
|
|
149
|
+
.map(([, label]) => `@${label}`);
|
|
150
|
+
return {
|
|
151
|
+
status: 'send',
|
|
152
|
+
text: (0, chat_command_js_1.formatChatCommandMessage)({
|
|
153
|
+
commandId: pending.commandId,
|
|
154
|
+
tool: pending.tool,
|
|
155
|
+
args,
|
|
156
|
+
label: [`/${pending.label}`, ...entityLabels, ...shown].join(' '),
|
|
157
|
+
}),
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
/** Ask once when a command has arguments and none were given; otherwise send when nothing required is missing. */
|
|
161
|
+
const plan = (pending, given) => (pending.args.length > 0 && given === 0
|
|
162
|
+
? { status: 'needs-args', request: pending }
|
|
163
|
+
: complete(pending, {}));
|
|
164
|
+
return {
|
|
165
|
+
locale,
|
|
166
|
+
providers: [commandProvider, entityProvider],
|
|
167
|
+
command: (id) => commands.get(id),
|
|
168
|
+
entity: (type) => entities.get(type),
|
|
169
|
+
completeCommand: complete,
|
|
170
|
+
async searchEntity(type, query, signal) {
|
|
171
|
+
const entity = entities.get(type);
|
|
172
|
+
if (!entity)
|
|
173
|
+
return [];
|
|
174
|
+
try {
|
|
175
|
+
const items = await entity.search(query, { signal, limit: 8, locale, context: config.context ?? {} });
|
|
176
|
+
return (Array.isArray(items) ? items : [])
|
|
177
|
+
.map(definitions_js_1.toChatEntityItem)
|
|
178
|
+
.filter((item) => item !== undefined)
|
|
179
|
+
.slice(0, 8);
|
|
180
|
+
}
|
|
181
|
+
catch {
|
|
182
|
+
return [];
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
planMessage(text, mentions) {
|
|
186
|
+
const picked = mentions.filter((mention) => mention.type === 'command' && commands.has(String(mention.id)));
|
|
187
|
+
if (picked.length !== 1)
|
|
188
|
+
return undefined;
|
|
189
|
+
const mention = picked[0];
|
|
190
|
+
const command = commands.get(String(mention.id));
|
|
191
|
+
const token = tokenOf(mention);
|
|
192
|
+
if (!token)
|
|
193
|
+
return undefined;
|
|
194
|
+
const rest = withoutToken(text, token);
|
|
195
|
+
if (!rest.found)
|
|
196
|
+
return undefined;
|
|
197
|
+
if (command.run.kind === 'prompt') {
|
|
198
|
+
const prompt = `${(0, chat_interactions_js_1.chatText)(command.run.prompt, locale)} `;
|
|
199
|
+
// A function replacer: the prompt is the app's text, `$&` and `$$` in it stay as written.
|
|
200
|
+
return { status: 'prompt', text: rest.text.replace(/^\s*/, () => prompt).trim() };
|
|
201
|
+
}
|
|
202
|
+
const values = {};
|
|
203
|
+
const valueLabels = {};
|
|
204
|
+
let remaining = rest.text;
|
|
205
|
+
const entityMentions = mentions.filter((entry) => entry !== mention && entry.type !== 'command');
|
|
206
|
+
const used = new Set();
|
|
207
|
+
for (const arg of command.args ?? []) {
|
|
208
|
+
if (!arg.entity)
|
|
209
|
+
continue;
|
|
210
|
+
const match = entityMentions.find((entry) => entry.type === arg.entity && !used.has(entry));
|
|
211
|
+
if (!match)
|
|
212
|
+
continue;
|
|
213
|
+
used.add(match);
|
|
214
|
+
values[arg.name] = String(match.id);
|
|
215
|
+
valueLabels[arg.name] = typeof match.label === 'string' ? match.label : String(match.id);
|
|
216
|
+
}
|
|
217
|
+
for (const entry of used) {
|
|
218
|
+
const entryToken = tokenOf(entry);
|
|
219
|
+
if (entryToken)
|
|
220
|
+
remaining = withoutToken(remaining, entryToken).text;
|
|
221
|
+
}
|
|
222
|
+
// Free text or unused references: the model decides, with the command as a tool reference.
|
|
223
|
+
if (remaining.trim() || used.size !== entityMentions.length)
|
|
224
|
+
return undefined;
|
|
225
|
+
return plan({
|
|
226
|
+
commandId: command.id,
|
|
227
|
+
tool: command.run.tool,
|
|
228
|
+
label: (0, chat_interactions_js_1.chatText)(command.label, locale),
|
|
229
|
+
fixedArgs: command.run.args ?? {},
|
|
230
|
+
args: command.args ?? [],
|
|
231
|
+
values,
|
|
232
|
+
valueLabels,
|
|
233
|
+
}, used.size);
|
|
234
|
+
},
|
|
235
|
+
planAction(target, actionId) {
|
|
236
|
+
const action = entities.get(target.type)?.actions?.find((entry) => entry.id === actionId);
|
|
237
|
+
if (!action)
|
|
238
|
+
return undefined;
|
|
239
|
+
return plan({
|
|
240
|
+
commandId: action.id,
|
|
241
|
+
tool: action.run.tool,
|
|
242
|
+
label: (0, chat_interactions_js_1.chatText)(action.label, locale),
|
|
243
|
+
fixedArgs: action.run.args ?? {},
|
|
244
|
+
args: action.args ?? [],
|
|
245
|
+
values: { [action.entityArg]: target.id },
|
|
246
|
+
valueLabels: { [action.entityArg]: target.label },
|
|
247
|
+
}, 0);
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ChatInteractionsData } from '../../contracts/chat-interactions.js';
|
|
2
|
+
export interface UseChatInteractionsDataOptions {
|
|
3
|
+
headers?: Record<string, string>;
|
|
4
|
+
/** Defaults to the global `fetch`. */
|
|
5
|
+
fetch?: typeof globalThis.fetch;
|
|
6
|
+
/** A failed request or invalid data; the chat then runs without interactions. */
|
|
7
|
+
onError?: (error: unknown) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Loads the chat's `@` entities and `/` commands from the GET handler of
|
|
11
|
+
* `createChatInteractionsHandler` (usually the chat endpoint itself), once
|
|
12
|
+
* per endpoint and with the user's session. `undefined` until loaded or when
|
|
13
|
+
* the request fails.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useChatInteractionsData(endpoint: string | undefined, options?: UseChatInteractionsDataOptions): ChatInteractionsData | undefined;
|