veryfront 0.1.149 → 0.1.151
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/esm/cli/commands/dev/command.js +3 -3
- package/esm/cli/commands/workflow/command-help.js +1 -1
- package/esm/cli/commands/workflow/command.js +2 -2
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +1 -3
- package/esm/deno.d.ts +5 -11
- package/esm/deno.js +16 -16
- package/esm/src/agent/ag-ui-handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui-handler.js +6 -0
- package/esm/src/agent/chat-handler.js +1 -1
- package/esm/src/agent/composition/composition.d.ts +1 -1
- package/esm/src/agent/composition/composition.d.ts.map +1 -1
- package/esm/src/agent/composition/composition.js +2 -2
- package/esm/src/agent/{ai-defaults.d.ts → defaults.d.ts} +1 -1
- package/esm/src/agent/defaults.d.ts.map +1 -0
- package/esm/src/agent/factory.js +1 -1
- package/esm/src/agent/react/index.d.ts +1 -1
- package/esm/src/agent/react/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts +5 -6
- package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/browser-inference/browser-engine.js +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts +2 -1
- package/esm/src/agent/react/use-chat/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/stream-protocol.d.ts +2 -0
- package/esm/src/agent/react/use-chat/stream-protocol.d.ts.map +1 -0
- package/esm/src/agent/react/use-chat/stream-protocol.js +1 -0
- package/esm/src/agent/react/use-chat/streaming/parts-builder.d.ts +2 -2
- package/esm/src/agent/react/use-chat/streaming/parts-builder.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/types.d.ts +4 -4
- package/esm/src/agent/react/use-chat/streaming/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/types.d.ts +7 -55
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.d.ts +4 -4
- package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +2 -2
- package/esm/src/agent/react/use-chat/utils.d.ts +2 -2
- package/esm/src/agent/react/use-chat/utils.d.ts.map +1 -1
- package/esm/src/agent/runtime/{ai-stream-handler.d.ts → chat-stream-handler.d.ts} +13 -13
- package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -0
- package/esm/src/agent/runtime/{ai-stream-handler.js → chat-stream-handler.js} +91 -89
- package/esm/src/agent/runtime/constants.js +1 -1
- package/esm/src/agent/runtime/index.d.ts +7 -5
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +67 -30
- package/esm/src/agent/runtime/model-message-converter.d.ts +7 -7
- package/esm/src/agent/runtime/model-message-converter.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-message-converter.js +8 -6
- package/esm/src/agent/runtime/model-runtime-types.d.ts +44 -0
- package/esm/src/agent/runtime/model-runtime-types.d.ts.map +1 -0
- package/esm/src/agent/runtime/model-runtime-types.js +8 -0
- package/esm/src/agent/runtime/model-tool-converter.d.ts +9 -9
- package/esm/src/agent/runtime/model-tool-converter.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-tool-converter.js +10 -22
- package/esm/src/agent/runtime/provider-native-tools.d.ts +3 -0
- package/esm/src/agent/runtime/provider-native-tools.d.ts.map +1 -0
- package/esm/src/agent/runtime/provider-native-tools.js +56 -0
- package/esm/src/agent/runtime/repair-tool-call.d.ts +2 -2
- package/esm/src/agent/runtime/repair-tool-call.d.ts.map +1 -1
- package/esm/src/agent/runtime/repair-tool-call.js +3 -3
- package/esm/src/agent/runtime/runtime-tool-builder.d.ts +48 -0
- package/esm/src/agent/runtime/runtime-tool-builder.d.ts.map +1 -0
- package/esm/src/agent/runtime/runtime-tool-builder.js +28 -0
- package/esm/src/agent/runtime/runtime-tool-errors.d.ts +16 -0
- package/esm/src/agent/runtime/runtime-tool-errors.d.ts.map +1 -0
- package/esm/src/agent/runtime/runtime-tool-errors.js +28 -0
- package/esm/src/agent/runtime/runtime-tool-types.d.ts +104 -0
- package/esm/src/agent/runtime/runtime-tool-types.d.ts.map +1 -0
- package/esm/src/agent/runtime/runtime-tool-types.js +7 -0
- package/esm/src/chat/index.d.ts +9 -9
- package/esm/src/chat/index.d.ts.map +1 -1
- package/esm/src/chat/index.js +7 -7
- package/esm/src/chat/protocol.d.ts +156 -0
- package/esm/src/chat/protocol.d.ts.map +1 -0
- package/esm/src/chat/protocol.js +7 -0
- package/esm/src/discovery/import-rewriter.d.ts.map +1 -1
- package/esm/src/discovery/import-rewriter.js +1 -14
- package/esm/src/discovery/index.d.ts +1 -1
- package/esm/src/discovery/index.d.ts.map +1 -1
- package/esm/src/discovery/index.js +2 -2
- package/esm/src/discovery/provider-config-validator.d.ts +14 -0
- package/esm/src/discovery/provider-config-validator.d.ts.map +1 -0
- package/esm/src/discovery/{config-validator.js → provider-config-validator.js} +4 -4
- package/esm/src/discovery/transpiler.d.ts.map +1 -1
- package/esm/src/discovery/transpiler.js +0 -3
- package/esm/src/embedding/embedding.d.ts.map +1 -1
- package/esm/src/embedding/embedding.js +1 -1
- package/esm/src/embedding/index.d.ts +3 -3
- package/esm/src/embedding/index.d.ts.map +1 -1
- package/esm/src/embedding/index.js +3 -3
- package/esm/src/embedding/rag-store.d.ts.map +1 -1
- package/esm/src/embedding/rag-store.js +1 -1
- package/esm/src/embedding/resolve.d.ts +5 -7
- package/esm/src/embedding/resolve.d.ts.map +1 -1
- package/esm/src/embedding/resolve.js +6 -9
- package/esm/src/embedding/vector-store.d.ts.map +1 -1
- package/esm/src/embedding/vector-store.js +1 -1
- package/esm/src/embedding/veryfront-cloud/provider.d.ts +2 -2
- package/esm/src/embedding/veryfront-cloud/provider.d.ts.map +1 -1
- package/esm/src/embedding/veryfront-cloud/provider.js +5 -6
- package/esm/src/internal-agents/ag-ui-sse.d.ts.map +1 -1
- package/esm/src/internal-agents/ag-ui-sse.js +12 -0
- package/esm/src/markdown/index.d.ts +1 -1
- package/esm/src/markdown/index.d.ts.map +1 -1
- package/esm/src/markdown/index.js +1 -1
- package/esm/src/modules/import-map/default-import-map.js +2 -2
- package/esm/src/prompt/registry.d.ts +1 -1
- package/esm/src/prompt/registry.d.ts.map +1 -1
- package/esm/src/prompt/registry.js +2 -2
- package/esm/src/provider/index.d.ts +7 -8
- package/esm/src/provider/index.d.ts.map +1 -1
- package/esm/src/provider/index.js +6 -8
- package/esm/src/provider/local/embedding-runtime-adapter.d.ts +19 -0
- package/esm/src/provider/local/embedding-runtime-adapter.d.ts.map +1 -0
- package/esm/src/provider/local/{local-embedding-adapter.js → embedding-runtime-adapter.js} +5 -5
- package/esm/src/provider/local/model-runtime-adapter.d.ts +18 -0
- package/esm/src/provider/local/model-runtime-adapter.d.ts.map +1 -0
- package/esm/src/provider/local/{ai-sdk-adapter.js → model-runtime-adapter.js} +10 -12
- package/esm/src/provider/model-registry.d.ts +11 -12
- package/esm/src/provider/model-registry.d.ts.map +1 -1
- package/esm/src/provider/model-registry.js +17 -20
- package/esm/src/provider/runtime-inspection.d.ts +6 -0
- package/esm/src/provider/runtime-inspection.d.ts.map +1 -0
- package/esm/src/provider/runtime-inspection.js +19 -0
- package/esm/src/provider/runtime-loader.d.ts +27 -0
- package/esm/src/provider/runtime-loader.d.ts.map +1 -0
- package/esm/src/provider/runtime-loader.js +1307 -0
- package/esm/src/provider/types.d.ts +35 -0
- package/esm/src/provider/types.d.ts.map +1 -0
- package/esm/src/provider/types.js +1 -0
- package/esm/src/provider/veryfront-cloud/provider.d.ts +2 -2
- package/esm/src/provider/veryfront-cloud/provider.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/provider.js +7 -9
- package/esm/src/provider/veryfront-cloud/shared.d.ts +1 -1
- package/esm/src/provider/veryfront-cloud/shared.js +1 -1
- package/esm/src/react/components/chat/agent-card.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/components/inference-badge.js +1 -1
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/components/skill-badge.d.ts +3 -3
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/components/skill-badge.js +1 -1
- package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/components/tool-ui.d.ts +3 -3
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/components/tool-ui.js +1 -1
- package/esm/src/react/components/chat/chat/components/upgrade-cta.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/uploads-panel.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/api.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/api.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/api.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-composer.d.ts +3 -3
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-composer.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-empty.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-empty.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-if.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-if.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-message-list.d.ts +5 -5
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-message-list.js +2 -2
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-root.d.ts +3 -3
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/chat-root.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/error-banner.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/error-banner.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/message.d.ts +4 -4
- package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/message.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/composition/model-avatar.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/composition/model-avatar.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/contexts/chat-context.d.ts +3 -3
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/contexts/chat-context.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/contexts/composer-context.d.ts +1 -1
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/contexts/composer-context.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/contexts/index.d.ts +1 -1
- package/esm/src/react/components/chat/chat/contexts/index.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/contexts/index.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/contexts/message-context.d.ts +3 -3
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/contexts/message-context.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/contexts/thread-list-context.d.ts +1 -1
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/contexts/thread-list-context.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/hooks/use-threads.d.ts +2 -2
- package/esm/src/react/components/chat/chat/hooks/use-threads.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/index.d.ts +5 -5
- package/esm/src/react/components/chat/chat/index.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/index.js +1 -1
- package/esm/src/react/components/chat/chat/utils/export.d.ts +10 -0
- package/esm/src/react/components/chat/chat/utils/export.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/utils/export.js +1 -1
- package/esm/src/react/components/{ai → chat}/chat/utils/message-parts.d.ts +10 -10
- package/esm/src/react/components/chat/chat/utils/message-parts.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat/utils/message-parts.js +2 -2
- package/esm/src/react/components/chat/chat-with-sidebar.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat.d.ts +1 -1
- package/esm/src/react/components/chat/chat.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/chat.js +1 -1
- package/esm/src/react/components/chat/csp-nonce.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/error-boundary.d.ts +6 -6
- package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/error-boundary.js +5 -5
- package/esm/src/react/components/{ai → chat}/icons/index.d.ts +1 -1
- package/esm/src/react/components/chat/icons/index.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/icons/index.js +1 -1
- package/esm/src/react/components/chat/markdown.d.ts.map +1 -0
- package/esm/src/react/components/{ai → chat}/message.d.ts +8 -8
- package/esm/src/react/components/chat/message.d.ts.map +1 -0
- package/esm/src/react/components/chat/model-selector.d.ts.map +1 -0
- package/esm/src/react/components/chat/theme.d.ts.map +1 -0
- package/esm/src/react/primitives/message-list.d.ts +2 -2
- package/esm/src/react/primitives/message-list.d.ts.map +1 -1
- package/esm/src/react/primitives/tool-primitives.d.ts +3 -3
- package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
- package/esm/src/{ai/registry-manager.d.ts → registry/project-scoped-registry-manager.d.ts} +5 -4
- package/esm/src/registry/project-scoped-registry-manager.d.ts.map +1 -0
- package/esm/src/{ai/registry-manager.js → registry/project-scoped-registry-manager.js} +5 -4
- package/esm/src/{ai/registry-facade.d.ts → registry/scoped-registry-facade.d.ts} +2 -2
- package/esm/src/registry/scoped-registry-facade.d.ts.map +1 -0
- package/esm/src/rendering/script-page-handling.d.ts.map +1 -1
- package/esm/src/rendering/script-page-handling.js +0 -2
- package/esm/src/resource/registry.d.ts +1 -1
- package/esm/src/resource/registry.d.ts.map +1 -1
- package/esm/src/resource/registry.js +2 -2
- package/esm/src/routing/api/module-loader/loader.js +3 -19
- package/esm/src/runtime/runtime-bridge.d.ts +82 -0
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -0
- package/esm/src/runtime/runtime-bridge.js +367 -0
- package/esm/src/server/dev-server/file-watch-setup.d.ts +4 -4
- package/esm/src/server/dev-server/file-watch-setup.d.ts.map +1 -1
- package/esm/src/server/dev-server/file-watch-setup.js +14 -14
- package/esm/src/server/dev-server/server.d.ts +2 -2
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +20 -18
- package/esm/src/server/dev-ui/manifest.d.ts +1 -1
- package/esm/src/server/dev-ui/manifest.js +2 -2
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +58 -61
- package/esm/src/server/handlers/request/api/api-handler-wrapper.js +1 -1
- package/esm/src/server/handlers/request/api/project-discovery.d.ts +1 -1
- package/esm/src/server/handlers/request/api/project-discovery.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/project-discovery.js +12 -10
- package/esm/src/server/production-server.js +2 -2
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/skill/registry.d.ts +1 -1
- package/esm/src/skill/registry.d.ts.map +1 -1
- package/esm/src/skill/registry.js +2 -2
- package/esm/src/tool/registry.d.ts +1 -1
- package/esm/src/tool/registry.d.ts.map +1 -1
- package/esm/src/tool/registry.js +2 -2
- package/esm/src/transforms/npm-import-rewrites.d.ts +1 -1
- package/esm/src/transforms/npm-import-rewrites.d.ts.map +1 -1
- package/esm/src/transforms/npm-import-rewrites.js +5 -13
- package/esm/src/utils/constants/server.d.ts +4 -4
- package/esm/src/utils/constants/server.d.ts.map +1 -1
- package/esm/src/utils/constants/server.js +4 -4
- package/esm/src/utils/id.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/workflow/discovery/workflow-discovery.d.ts +3 -3
- package/esm/src/workflow/discovery/workflow-discovery.d.ts.map +1 -1
- package/esm/src/workflow/discovery/workflow-discovery.js +3 -3
- package/esm/src/workflow/registry.d.ts +1 -1
- package/esm/src/workflow/registry.d.ts.map +1 -1
- package/esm/src/workflow/registry.js +2 -2
- package/package.json +4 -5
- package/src/cli/commands/dev/command.ts +3 -3
- package/src/cli/commands/workflow/command-help.ts +1 -1
- package/src/cli/commands/workflow/command.ts +2 -2
- package/src/cli/shared/config.ts +1 -3
- package/src/deno.js +16 -16
- package/src/src/agent/ag-ui-handler.ts +6 -0
- package/src/src/agent/chat-handler.ts +1 -1
- package/src/src/agent/composition/composition.ts +2 -2
- package/src/src/agent/factory.ts +1 -1
- package/src/src/agent/react/index.ts +11 -9
- package/src/src/agent/react/use-chat/browser-inference/browser-engine.ts +9 -10
- package/src/src/agent/react/use-chat/index.ts +10 -9
- package/src/src/agent/react/use-chat/stream-protocol.ts +1 -0
- package/src/src/agent/react/use-chat/streaming/handler.ts +17 -17
- package/src/src/agent/react/use-chat/streaming/parts-builder.ts +5 -5
- package/src/src/agent/react/use-chat/streaming/types.ts +4 -4
- package/src/src/agent/react/use-chat/types.ts +27 -73
- package/src/src/agent/react/use-chat/use-chat.ts +13 -13
- package/src/src/agent/react/use-chat/utils.ts +2 -2
- package/src/src/agent/runtime/{ai-stream-handler.ts → chat-stream-handler.ts} +100 -96
- package/src/src/agent/runtime/constants.ts +1 -1
- package/src/src/agent/runtime/index.ts +88 -40
- package/src/src/agent/runtime/model-message-converter.ts +22 -33
- package/src/src/agent/runtime/model-runtime-types.ts +55 -0
- package/src/src/agent/runtime/model-tool-converter.ts +29 -26
- package/src/src/agent/runtime/provider-native-tools.ts +61 -0
- package/src/src/agent/runtime/repair-tool-call.ts +6 -9
- package/src/src/agent/runtime/runtime-tool-builder.ts +82 -0
- package/src/src/agent/runtime/runtime-tool-errors.ts +46 -0
- package/src/src/agent/runtime/runtime-tool-types.ts +114 -0
- package/src/src/chat/index.ts +22 -20
- package/src/src/chat/protocol.ts +210 -0
- package/src/src/discovery/import-rewriter.ts +1 -14
- package/src/src/discovery/index.ts +2 -2
- package/src/src/discovery/{config-validator.ts → provider-config-validator.ts} +4 -4
- package/src/src/discovery/transpiler.ts +0 -3
- package/src/src/embedding/embedding.ts +1 -1
- package/src/src/embedding/index.ts +3 -3
- package/src/src/embedding/rag-store.ts +1 -1
- package/src/src/embedding/resolve.ts +15 -12
- package/src/src/embedding/vector-store.ts +1 -1
- package/src/src/embedding/veryfront-cloud/provider.ts +10 -8
- package/src/src/internal-agents/ag-ui-sse.ts +12 -0
- package/src/src/markdown/index.ts +1 -1
- package/src/src/modules/import-map/default-import-map.ts +2 -2
- package/src/src/prompt/registry.ts +2 -2
- package/src/src/provider/index.ts +7 -8
- package/src/src/provider/local/{local-embedding-adapter.ts → embedding-runtime-adapter.ts} +8 -8
- package/src/src/provider/local/{ai-sdk-adapter.ts → model-runtime-adapter.ts} +13 -16
- package/src/src/provider/model-registry.ts +31 -26
- package/src/src/provider/runtime-inspection.ts +25 -0
- package/src/src/provider/runtime-loader.ts +1854 -0
- package/src/src/provider/types.ts +38 -0
- package/src/src/provider/veryfront-cloud/provider.ts +13 -11
- package/src/src/provider/veryfront-cloud/shared.ts +1 -1
- package/src/src/react/components/{ai → chat}/chat/components/inference-badge.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/components/skill-badge.tsx +3 -3
- package/src/src/react/components/{ai → chat}/chat/components/tool-ui.tsx +3 -3
- package/src/src/react/components/{ai → chat}/chat/composition/api.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/composition/chat-composer.tsx +3 -3
- package/src/src/react/components/{ai → chat}/chat/composition/chat-empty.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/composition/chat-if.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/composition/chat-message-list.tsx +11 -11
- package/src/src/react/components/{ai → chat}/chat/composition/chat-root.tsx +3 -3
- package/src/src/react/components/{ai → chat}/chat/composition/error-banner.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/composition/message.tsx +9 -4
- package/src/src/react/components/{ai → chat}/chat/composition/model-avatar.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/contexts/chat-context.tsx +3 -3
- package/src/src/react/components/{ai → chat}/chat/contexts/composer-context.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/contexts/index.ts +1 -1
- package/src/src/react/components/{ai → chat}/chat/contexts/message-context.tsx +3 -3
- package/src/src/react/components/{ai → chat}/chat/contexts/thread-list-context.tsx +1 -1
- package/src/src/react/components/{ai → chat}/chat/hooks/use-threads.ts +2 -2
- package/src/src/react/components/{ai → chat}/chat/index.tsx +7 -7
- package/src/src/react/components/{ai → chat}/chat/utils/export.ts +4 -4
- package/src/src/react/components/{ai → chat}/chat/utils/message-parts.ts +13 -13
- package/src/src/react/components/{ai → chat}/chat.tsx +1 -1
- package/src/src/react/components/{ai → chat}/error-boundary.tsx +11 -11
- package/src/src/react/components/{ai → chat}/icons/index.ts +1 -1
- package/src/src/react/components/{ai → chat}/message.tsx +11 -11
- package/src/src/react/primitives/message-list.tsx +2 -2
- package/src/src/react/primitives/tool-primitives.tsx +4 -4
- package/src/src/{ai/registry-manager.ts → registry/project-scoped-registry-manager.ts} +5 -4
- package/src/src/{ai/registry-facade.ts → registry/scoped-registry-facade.ts} +1 -1
- package/src/src/rendering/script-page-handling.ts +0 -2
- package/src/src/resource/registry.ts +2 -2
- package/src/src/routing/api/module-loader/loader.ts +3 -19
- package/src/src/runtime/runtime-bridge.ts +608 -0
- package/src/src/server/dev-server/file-watch-setup.ts +14 -14
- package/src/src/server/dev-server/server.ts +20 -18
- package/src/src/server/dev-ui/manifest.js +2 -2
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +58 -61
- package/src/src/server/handlers/request/api/api-handler-wrapper.ts +1 -1
- package/src/src/server/handlers/request/api/project-discovery.ts +12 -10
- package/src/src/server/production-server.ts +2 -2
- package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +2 -2
- package/src/src/skill/registry.ts +2 -2
- package/src/src/tool/registry.ts +2 -2
- package/src/src/transforms/npm-import-rewrites.ts +5 -13
- package/src/src/utils/constants/server.ts +4 -4
- package/src/src/utils/id.ts +1 -1
- package/src/src/utils/version-constant.ts +1 -1
- package/src/src/workflow/discovery/workflow-discovery.ts +4 -4
- package/src/src/workflow/registry.ts +2 -2
- package/esm/src/agent/ai-defaults.d.ts.map +0 -1
- package/esm/src/agent/runtime/ai-stream-handler.d.ts.map +0 -1
- package/esm/src/ai/registry-facade.d.ts.map +0 -1
- package/esm/src/ai/registry-manager.d.ts.map +0 -1
- package/esm/src/discovery/config-validator.d.ts +0 -14
- package/esm/src/discovery/config-validator.d.ts.map +0 -1
- package/esm/src/provider/local/ai-sdk-adapter.d.ts +0 -19
- package/esm/src/provider/local/ai-sdk-adapter.d.ts.map +0 -1
- package/esm/src/provider/local/local-embedding-adapter.d.ts +0 -19
- package/esm/src/provider/local/local-embedding-adapter.d.ts.map +0 -1
- package/esm/src/react/components/ai/agent-card.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/animations.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/attachment-pill.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/branch-picker.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/code-block.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/drop-zone.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/empty-state.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/inference-badge.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/inline-citation.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/message-actions.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/message-edit-form.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/message-feedback.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/quick-actions.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/sidebar.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/skill-badge.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/sources.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/step-indicator.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/tab-switcher.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/upgrade-cta.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/components/uploads-panel.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/api.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/chat-composer.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/chat-empty.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/chat-if.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/chat-message-list.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/chat-root.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/error-banner.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/message.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/composition/model-avatar.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/contexts/chat-context.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/contexts/composer-context.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/contexts/index.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/contexts/message-context.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/contexts/thread-list-context.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/hooks/use-threads.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/index.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/utils/export.d.ts +0 -10
- package/esm/src/react/components/ai/chat/utils/export.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat/utils/message-parts.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat-with-sidebar.d.ts.map +0 -1
- package/esm/src/react/components/ai/chat.d.ts.map +0 -1
- package/esm/src/react/components/ai/csp-nonce.d.ts.map +0 -1
- package/esm/src/react/components/ai/error-boundary.d.ts.map +0 -1
- package/esm/src/react/components/ai/icons/index.d.ts.map +0 -1
- package/esm/src/react/components/ai/markdown.d.ts.map +0 -1
- package/esm/src/react/components/ai/message.d.ts.map +0 -1
- package/esm/src/react/components/ai/model-selector.d.ts.map +0 -1
- package/esm/src/react/components/ai/theme.d.ts.map +0 -1
- /package/esm/src/agent/{ai-defaults.js → defaults.js} +0 -0
- /package/esm/src/react/components/{ai → chat}/agent-card.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/agent-card.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/animations.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/animations.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/attachment-pill.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/attachment-pill.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/branch-picker.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/branch-picker.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/code-block.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/code-block.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/drop-zone.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/drop-zone.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/empty-state.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/empty-state.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/inference-badge.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/inline-citation.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/inline-citation.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/message-actions.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/message-actions.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/message-edit-form.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/message-edit-form.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/message-feedback.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/message-feedback.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/quick-actions.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/quick-actions.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/reasoning.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/reasoning.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/sidebar.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/sidebar.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/sources.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/sources.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/step-indicator.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/step-indicator.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/tab-switcher.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/tab-switcher.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/upgrade-cta.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/upgrade-cta.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/uploads-panel.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/components/uploads-panel.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat/hooks/use-threads.js +0 -0
- /package/esm/src/react/components/{ai → chat}/chat-with-sidebar.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/chat-with-sidebar.js +0 -0
- /package/esm/src/react/components/{ai → chat}/csp-nonce.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/csp-nonce.js +0 -0
- /package/esm/src/react/components/{ai → chat}/markdown.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/markdown.js +0 -0
- /package/esm/src/react/components/{ai → chat}/message.js +0 -0
- /package/esm/src/react/components/{ai → chat}/model-selector.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/model-selector.js +0 -0
- /package/esm/src/react/components/{ai → chat}/theme.d.ts +0 -0
- /package/esm/src/react/components/{ai → chat}/theme.js +0 -0
- /package/esm/src/{ai/registry-facade.js → registry/scoped-registry-facade.js} +0 -0
- /package/src/src/agent/{ai-defaults.ts → defaults.ts} +0 -0
- /package/src/src/react/components/{ai → chat}/agent-card.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/animations.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/attachment-pill.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/branch-picker.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/code-block.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/drop-zone.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/empty-state.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/inline-citation.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/message-actions.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/message-edit-form.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/message-feedback.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/quick-actions.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/reasoning.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/sidebar.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/sources.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/step-indicator.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/tab-switcher.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/upgrade-cta.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat/components/uploads-panel.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/chat-with-sidebar.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/csp-nonce.ts +0 -0
- /package/src/src/react/components/{ai → chat}/markdown.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/model-selector.tsx +0 -0
- /package/src/src/react/components/{ai → chat}/theme.ts +0 -0
|
@@ -48,7 +48,7 @@ export function useChat(options) {
|
|
|
48
48
|
const branchMapRef = useRef(new Map());
|
|
49
49
|
const branchKeyByMessageIdRef = useRef(new Map());
|
|
50
50
|
// System prompt for browser fallback (from 503 response or options)
|
|
51
|
-
const systemPromptRef = useRef(options.systemPrompt ?? "You are a helpful
|
|
51
|
+
const systemPromptRef = useRef(options.systemPrompt ?? "You are a helpful assistant.");
|
|
52
52
|
// Track pending tool outputs for addToolOutput
|
|
53
53
|
const pendingToolOutputsRef = useRef(new Map());
|
|
54
54
|
// Abort in-flight request on unmount
|
|
@@ -181,7 +181,7 @@ export function useChat(options) {
|
|
|
181
181
|
}),
|
|
182
182
|
signal: abortController.signal,
|
|
183
183
|
});
|
|
184
|
-
// Handle 503 — server can't provide
|
|
184
|
+
// Handle 503 — server can't provide a runtime, fall back to browser
|
|
185
185
|
if (response.status === 503 && (options.browserFallback ?? true)) {
|
|
186
186
|
try {
|
|
187
187
|
const body = await response.json();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChatMessage, ChatMessagePart } from "./types.js";
|
|
2
2
|
export declare function generateClientId(prefix: string): string;
|
|
3
|
-
export declare function createAssistantMessage(messageId: string, parts:
|
|
3
|
+
export declare function createAssistantMessage(messageId: string, parts: ChatMessagePart[]): ChatMessage;
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/react/use-chat/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/react/use-chat/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE/D,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,WAAW,CAM/F"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Model Runtime Stream Handler
|
|
3
3
|
*
|
|
4
|
-
* Processes
|
|
5
|
-
* in the Data Stream Protocol format.
|
|
6
|
-
*
|
|
4
|
+
* Processes model-runtime `streamText()` fullStream parts and emits SSE
|
|
5
|
+
* events in the Data Stream Protocol format. Stream parts map 1:1 to the
|
|
6
|
+
* framework SSE protocol with minimal field remapping.
|
|
7
7
|
*
|
|
8
|
-
* @module
|
|
8
|
+
* @module agent/runtime/chat-stream-handler
|
|
9
9
|
*/
|
|
10
|
-
import type {
|
|
10
|
+
import type { RuntimeStreamResult } from "./runtime-tool-types.js";
|
|
11
11
|
export interface StreamingToolCall {
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
@@ -24,7 +24,7 @@ export interface StreamingToolResult {
|
|
|
24
24
|
dynamic?: boolean;
|
|
25
25
|
preliminary?: boolean;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface ChatStreamState {
|
|
28
28
|
accumulatedText: string;
|
|
29
29
|
finishReason: string | null;
|
|
30
30
|
toolCalls: Map<string, StreamingToolCall>;
|
|
@@ -35,7 +35,7 @@ export interface AIStreamState {
|
|
|
35
35
|
totalTokens: number;
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
export interface
|
|
38
|
+
export interface ChatStreamCallbacks {
|
|
39
39
|
onChunk?: (chunk: string) => void;
|
|
40
40
|
onUsage?: (usage: {
|
|
41
41
|
promptTokens?: number;
|
|
@@ -43,16 +43,16 @@ export interface AIStreamCallbacks {
|
|
|
43
43
|
totalTokens?: number;
|
|
44
44
|
}) => void;
|
|
45
45
|
}
|
|
46
|
-
export declare function createStreamState():
|
|
46
|
+
export declare function createStreamState(): ChatStreamState;
|
|
47
47
|
/**
|
|
48
|
-
* Process the
|
|
48
|
+
* Process the model-runtime fullStream and emit SSE events.
|
|
49
49
|
*
|
|
50
|
-
*
|
|
50
|
+
* Stream parts map directly to our Data Stream Protocol SSE events:
|
|
51
51
|
* - text-delta → text-delta SSE (with id and delta)
|
|
52
52
|
* - tool-input-start → tool-input-start SSE
|
|
53
53
|
* - tool-input-delta → tool-input-delta SSE
|
|
54
54
|
* - tool-call → tool-input-available SSE (accumulated input)
|
|
55
55
|
* - finish → captures finishReason and usage
|
|
56
56
|
*/
|
|
57
|
-
export declare function processStream(result:
|
|
58
|
-
//# sourceMappingURL=
|
|
57
|
+
export declare function processStream(result: RuntimeStreamResult, state: ChatStreamState, controller: ReadableStreamDefaultController, encoder: TextEncoder, textPartId: string | undefined, callbacks?: ChatStreamCallbacks, abortSignal?: AbortSignal): Promise<void>;
|
|
58
|
+
//# sourceMappingURL=chat-stream-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-stream-handler.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/chat-stream-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAqB,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAUtF,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB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@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Model Runtime Stream Handler
|
|
3
3
|
*
|
|
4
|
-
* Processes
|
|
5
|
-
* in the Data Stream Protocol format.
|
|
6
|
-
*
|
|
4
|
+
* Processes model-runtime `streamText()` fullStream parts and emits SSE
|
|
5
|
+
* events in the Data Stream Protocol format. Stream parts map 1:1 to the
|
|
6
|
+
* framework SSE protocol with minimal field remapping.
|
|
7
7
|
*
|
|
8
|
-
* @module
|
|
8
|
+
* @module agent/runtime/chat-stream-handler
|
|
9
9
|
*/
|
|
10
10
|
import { sendSSE } from "./sse-utils.js";
|
|
11
11
|
import { isDynamicTool } from "./tool-helpers.js";
|
|
@@ -114,9 +114,9 @@ export function createStreamState() {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
|
-
* Process the
|
|
117
|
+
* Process the model-runtime fullStream and emit SSE events.
|
|
118
118
|
*
|
|
119
|
-
*
|
|
119
|
+
* Stream parts map directly to our Data Stream Protocol SSE events:
|
|
120
120
|
* - text-delta → text-delta SSE (with id and delta)
|
|
121
121
|
* - tool-input-start → tool-input-start SSE
|
|
122
122
|
* - tool-input-delta → tool-input-delta SSE
|
|
@@ -130,166 +130,166 @@ export function processStream(result, state, controller, encoder, textPartId, ca
|
|
|
130
130
|
for await (const part of result.fullStream) {
|
|
131
131
|
throwIfAborted(abortSignal);
|
|
132
132
|
eventCount++;
|
|
133
|
-
|
|
133
|
+
if (!isRecord(part) || typeof part.type !== "string") {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
const typedPart = part;
|
|
137
|
+
switch (typedPart.type) {
|
|
134
138
|
case "text-delta": {
|
|
135
|
-
state.accumulatedText +=
|
|
139
|
+
state.accumulatedText += typedPart.text;
|
|
136
140
|
sendSSE(controller, encoder, {
|
|
137
141
|
type: "text-delta",
|
|
138
142
|
id: textPartId,
|
|
139
|
-
delta:
|
|
143
|
+
delta: typedPart.text,
|
|
140
144
|
});
|
|
141
|
-
callbacks?.onChunk?.(
|
|
145
|
+
callbacks?.onChunk?.(typedPart.text);
|
|
142
146
|
break;
|
|
143
147
|
}
|
|
144
148
|
case "tool-input-start": {
|
|
145
|
-
const toolId =
|
|
149
|
+
const toolId = typedPart.id;
|
|
146
150
|
state.toolCalls.set(toolId, {
|
|
147
151
|
id: toolId,
|
|
148
|
-
name:
|
|
152
|
+
name: typedPart.toolName,
|
|
149
153
|
arguments: "",
|
|
150
|
-
providerExecuted:
|
|
151
|
-
dynamic:
|
|
154
|
+
providerExecuted: typedPart.providerExecuted,
|
|
155
|
+
dynamic: typedPart.dynamic,
|
|
152
156
|
});
|
|
153
|
-
const dynamic = isDynamicTool(
|
|
157
|
+
const dynamic = isDynamicTool(typedPart.toolName);
|
|
154
158
|
sendSSE(controller, encoder, {
|
|
155
159
|
type: "tool-input-start",
|
|
156
160
|
toolCallId: toolId,
|
|
157
|
-
toolName:
|
|
161
|
+
toolName: typedPart.toolName,
|
|
158
162
|
...(dynamic ? { dynamic: true } : {}),
|
|
159
163
|
});
|
|
160
164
|
break;
|
|
161
165
|
}
|
|
162
166
|
case "tool-input-delta": {
|
|
163
|
-
const toolId =
|
|
167
|
+
const toolId = typedPart.id;
|
|
164
168
|
const tc = state.toolCalls.get(toolId);
|
|
165
169
|
if (!tc)
|
|
166
170
|
break;
|
|
167
|
-
tc.arguments +=
|
|
171
|
+
tc.arguments += typedPart.delta;
|
|
168
172
|
sendSSE(controller, encoder, {
|
|
169
173
|
type: "tool-input-delta",
|
|
170
174
|
toolCallId: toolId,
|
|
171
|
-
inputTextDelta:
|
|
175
|
+
inputTextDelta: typedPart.delta,
|
|
172
176
|
});
|
|
173
177
|
break;
|
|
174
178
|
}
|
|
175
179
|
case "tool-call": {
|
|
176
180
|
// tool-call fires when the full tool call is available
|
|
177
|
-
const toolId =
|
|
178
|
-
const inputStr = normalizeToolInputString(
|
|
181
|
+
const toolId = typedPart.toolCallId;
|
|
182
|
+
const inputStr = normalizeToolInputString(typedPart.input);
|
|
179
183
|
state.toolCalls.set(toolId, {
|
|
180
184
|
id: toolId,
|
|
181
|
-
name:
|
|
185
|
+
name: typedPart.toolName,
|
|
182
186
|
arguments: inputStr,
|
|
183
|
-
providerExecuted:
|
|
184
|
-
dynamic:
|
|
187
|
+
providerExecuted: typedPart.providerExecuted,
|
|
188
|
+
dynamic: typedPart.dynamic,
|
|
185
189
|
});
|
|
186
|
-
const dynamic = isDynamicTool(
|
|
187
|
-
const inputObj = normalizeToolInputObject(
|
|
190
|
+
const dynamic = isDynamicTool(typedPart.toolName);
|
|
191
|
+
const inputObj = normalizeToolInputObject(typedPart.input);
|
|
188
192
|
sendSSE(controller, encoder, {
|
|
189
193
|
type: "tool-input-available",
|
|
190
194
|
toolCallId: toolId,
|
|
191
|
-
toolName:
|
|
195
|
+
toolName: typedPart.toolName,
|
|
192
196
|
input: inputObj,
|
|
193
|
-
...(
|
|
194
|
-
? { providerExecuted:
|
|
197
|
+
...(typedPart.providerExecuted !== undefined
|
|
198
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
195
199
|
: {}),
|
|
196
200
|
...(dynamic ? { dynamic: true } : {}),
|
|
197
201
|
});
|
|
198
202
|
break;
|
|
199
203
|
}
|
|
200
204
|
case "tool-result": {
|
|
201
|
-
const isError =
|
|
205
|
+
const isError = typedPart.isError === true;
|
|
202
206
|
logProviderToolPart("tool-result", {
|
|
203
|
-
toolCallId:
|
|
204
|
-
toolName:
|
|
205
|
-
providerExecuted:
|
|
206
|
-
dynamic:
|
|
207
|
-
output:
|
|
208
|
-
input:
|
|
209
|
-
preliminary:
|
|
207
|
+
toolCallId: typedPart.toolCallId,
|
|
208
|
+
toolName: typedPart.toolName,
|
|
209
|
+
providerExecuted: typedPart.providerExecuted,
|
|
210
|
+
dynamic: typedPart.dynamic,
|
|
211
|
+
output: typedPart.output,
|
|
212
|
+
input: typedPart.input,
|
|
213
|
+
preliminary: typedPart.preliminary,
|
|
210
214
|
isError,
|
|
211
215
|
});
|
|
212
216
|
if (isError) {
|
|
213
217
|
state.toolResults.push({
|
|
214
|
-
toolCallId:
|
|
215
|
-
toolName:
|
|
216
|
-
error:
|
|
217
|
-
...(
|
|
218
|
-
? { providerExecuted:
|
|
218
|
+
toolCallId: typedPart.toolCallId,
|
|
219
|
+
toolName: typedPart.toolName,
|
|
220
|
+
error: typedPart.output,
|
|
221
|
+
...(typedPart.providerExecuted !== undefined
|
|
222
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
219
223
|
: {}),
|
|
220
|
-
...(
|
|
224
|
+
...(typedPart.dynamic ? { dynamic: true } : {}),
|
|
221
225
|
});
|
|
222
226
|
sendSSE(controller, encoder, {
|
|
223
227
|
type: "tool-output-error",
|
|
224
|
-
toolCallId:
|
|
225
|
-
errorText: stringifyToolError(
|
|
226
|
-
...(
|
|
227
|
-
? { providerExecuted:
|
|
228
|
+
toolCallId: typedPart.toolCallId,
|
|
229
|
+
errorText: stringifyToolError(typedPart.output),
|
|
230
|
+
...(typedPart.providerExecuted !== undefined
|
|
231
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
228
232
|
: {}),
|
|
229
|
-
...(
|
|
233
|
+
...(typedPart.dynamic ? { dynamic: true } : {}),
|
|
230
234
|
});
|
|
231
235
|
break;
|
|
232
236
|
}
|
|
233
237
|
state.toolResults.push({
|
|
234
|
-
toolCallId:
|
|
235
|
-
toolName:
|
|
236
|
-
output:
|
|
237
|
-
...(
|
|
238
|
-
? { providerExecuted:
|
|
239
|
-
: {}),
|
|
240
|
-
...("dynamic" in part && part.dynamic ? { dynamic: true } : {}),
|
|
241
|
-
...("preliminary" in part && part.preliminary !== undefined
|
|
242
|
-
? { preliminary: part.preliminary }
|
|
238
|
+
toolCallId: typedPart.toolCallId,
|
|
239
|
+
toolName: typedPart.toolName,
|
|
240
|
+
output: typedPart.output,
|
|
241
|
+
...(typedPart.providerExecuted !== undefined
|
|
242
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
243
243
|
: {}),
|
|
244
|
+
...(typedPart.dynamic ? { dynamic: true } : {}),
|
|
245
|
+
...(typedPart.preliminary !== undefined ? { preliminary: typedPart.preliminary } : {}),
|
|
244
246
|
});
|
|
245
247
|
sendSSE(controller, encoder, {
|
|
246
248
|
type: "tool-output-available",
|
|
247
|
-
toolCallId:
|
|
248
|
-
output:
|
|
249
|
-
...(
|
|
250
|
-
? { providerExecuted:
|
|
251
|
-
: {}),
|
|
252
|
-
...("dynamic" in part && part.dynamic ? { dynamic: true } : {}),
|
|
253
|
-
...("preliminary" in part && part.preliminary !== undefined
|
|
254
|
-
? { preliminary: part.preliminary }
|
|
249
|
+
toolCallId: typedPart.toolCallId,
|
|
250
|
+
output: typedPart.output,
|
|
251
|
+
...(typedPart.providerExecuted !== undefined
|
|
252
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
255
253
|
: {}),
|
|
254
|
+
...(typedPart.dynamic ? { dynamic: true } : {}),
|
|
255
|
+
...(typedPart.preliminary !== undefined ? { preliminary: typedPart.preliminary } : {}),
|
|
256
256
|
});
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
259
259
|
case "tool-error": {
|
|
260
260
|
logProviderToolPart("tool-error", {
|
|
261
|
-
toolCallId:
|
|
262
|
-
toolName:
|
|
263
|
-
providerExecuted:
|
|
264
|
-
dynamic:
|
|
265
|
-
error:
|
|
266
|
-
input:
|
|
261
|
+
toolCallId: typedPart.toolCallId,
|
|
262
|
+
toolName: typedPart.toolName,
|
|
263
|
+
providerExecuted: typedPart.providerExecuted,
|
|
264
|
+
dynamic: typedPart.dynamic,
|
|
265
|
+
error: typedPart.error,
|
|
266
|
+
input: typedPart.input,
|
|
267
267
|
});
|
|
268
268
|
state.toolResults.push({
|
|
269
|
-
toolCallId:
|
|
270
|
-
toolName:
|
|
271
|
-
error:
|
|
272
|
-
...(
|
|
273
|
-
? { providerExecuted:
|
|
269
|
+
toolCallId: typedPart.toolCallId,
|
|
270
|
+
toolName: typedPart.toolName,
|
|
271
|
+
error: typedPart.error,
|
|
272
|
+
...(typedPart.providerExecuted !== undefined
|
|
273
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
274
274
|
: {}),
|
|
275
|
-
...(
|
|
275
|
+
...(typedPart.dynamic ? { dynamic: true } : {}),
|
|
276
276
|
});
|
|
277
277
|
sendSSE(controller, encoder, {
|
|
278
278
|
type: "tool-output-error",
|
|
279
|
-
toolCallId:
|
|
280
|
-
errorText: stringifyToolError(
|
|
281
|
-
...(
|
|
282
|
-
? { providerExecuted:
|
|
279
|
+
toolCallId: typedPart.toolCallId,
|
|
280
|
+
errorText: stringifyToolError(typedPart.error),
|
|
281
|
+
...(typedPart.providerExecuted !== undefined
|
|
282
|
+
? { providerExecuted: typedPart.providerExecuted }
|
|
283
283
|
: {}),
|
|
284
|
-
...(
|
|
284
|
+
...(typedPart.dynamic ? { dynamic: true } : {}),
|
|
285
285
|
});
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
288
288
|
case "finish": {
|
|
289
|
-
state.finishReason =
|
|
290
|
-
if (
|
|
291
|
-
const input =
|
|
292
|
-
const output =
|
|
289
|
+
state.finishReason = typedPart.finishReason ?? null;
|
|
290
|
+
if (typedPart.totalUsage) {
|
|
291
|
+
const input = typedPart.totalUsage.inputTokens ?? 0;
|
|
292
|
+
const output = typedPart.totalUsage.outputTokens ?? 0;
|
|
293
293
|
state.usage = {
|
|
294
294
|
promptTokens: input,
|
|
295
295
|
completionTokens: output,
|
|
@@ -300,10 +300,12 @@ export function processStream(result, state, controller, encoder, textPartId, ca
|
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
case "error": {
|
|
303
|
-
logger.warn("
|
|
303
|
+
logger.warn("Runtime stream error:", typedPart.error);
|
|
304
304
|
sendSSE(controller, encoder, {
|
|
305
305
|
type: "error",
|
|
306
|
-
error:
|
|
306
|
+
error: typedPart.error instanceof Error
|
|
307
|
+
? typedPart.error.message
|
|
308
|
+
: String(typedPart.error),
|
|
307
309
|
});
|
|
308
310
|
break;
|
|
309
311
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AGENT_DEFAULTS, STREAMING_DEFAULTS } from "../
|
|
1
|
+
import { AGENT_DEFAULTS, STREAMING_DEFAULTS } from "../defaults.js";
|
|
2
2
|
export const DEFAULT_MAX_TOKENS = AGENT_DEFAULTS.maxTokens;
|
|
3
3
|
export const DEFAULT_TEMPERATURE = AGENT_DEFAULTS.temperature;
|
|
4
4
|
export const MAX_STREAM_BUFFER_SIZE = STREAMING_DEFAULTS.maxBufferSize;
|
|
@@ -12,18 +12,20 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { type AgentConfig, type AgentResponse, type Message, type ToolCall, type ToolResultPart } from "../types.js";
|
|
14
14
|
import { type Memory } from "../memory/index.js";
|
|
15
|
-
import { type
|
|
15
|
+
import { type ChatStreamState, type StreamingToolResult } from "./chat-stream-handler.js";
|
|
16
16
|
export { closeSSEStream, generateMessageId, sendSSE } from "./sse-utils.js";
|
|
17
17
|
export { RunAlreadyExistsError, RunCancelledError, RunNotActiveError, RunResumeSessionManager, WaitConflictError, WaitNotPendingError, } from "./resume-session.js";
|
|
18
18
|
export type { RunResumeSessionManagerOptions, RunSessionStatus, SubmitResumeValueOutcome, } from "./resume-session.js";
|
|
19
19
|
export { executeConfiguredTool, getAvailableTools, isDynamicTool, parseToolArgs, } from "./tool-helpers.js";
|
|
20
20
|
export type { ParsedToolArgs, ToolConfigEntry } from "./tool-helpers.js";
|
|
21
21
|
export { accumulateUsage, getMaxSteps, normalizeInput } from "./input-utils.js";
|
|
22
|
-
export { createStreamState, processStream } from "./
|
|
23
|
-
export type {
|
|
22
|
+
export { createStreamState, processStream } from "./chat-stream-handler.js";
|
|
23
|
+
export type { ChatStreamCallbacks, ChatStreamState, StreamingToolCall, } from "./chat-stream-handler.js";
|
|
24
24
|
export { DEFAULT_MAX_STEPS, DEFAULT_MAX_TOKENS, DEFAULT_TEMPERATURE, MAX_STREAM_BUFFER_SIZE, } from "./constants.js";
|
|
25
|
-
|
|
25
|
+
import type { RuntimeGenerateToolResult } from "./runtime-tool-types.js";
|
|
26
|
+
export declare function collectFinalStreamToolResults(state: Pick<ChatStreamState, "toolResults">): Map<string, StreamingToolResult>;
|
|
26
27
|
export declare function collectPersistedToolResults(messages: Message[]): Map<string, ToolResultPart>;
|
|
28
|
+
export declare function collectGeneratedToolResults(toolResults: RuntimeGenerateToolResult[] | undefined): Map<string, RuntimeGenerateToolResult>;
|
|
27
29
|
/**
|
|
28
30
|
* Extract and validate the skill policy from a load-skill tool result.
|
|
29
31
|
* Returns `[]` (no tools allowed) for invalid/missing policies instead of
|
|
@@ -68,7 +70,7 @@ export declare class AgentRuntime {
|
|
|
68
70
|
/**
|
|
69
71
|
* Execute agent loop with streaming
|
|
70
72
|
* Emits veryfront stream events (message-start/message-finish + step-start/step-end)
|
|
71
|
-
* while consuming
|
|
73
|
+
* while consuming model-runtime `streamText()` parts internally.
|
|
72
74
|
*/
|
|
73
75
|
private executeAgentLoopStreaming;
|
|
74
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAGlB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAS/D,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAGlB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAIrB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