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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Bare specifiers that should be rewritten to their pinned npm: versions.
|
|
3
3
|
* Each must have a corresponding entry in deno.json's import map.
|
|
4
4
|
*/
|
|
5
|
-
declare const REWRITABLE_PACKAGES: readonly ["
|
|
5
|
+
declare const REWRITABLE_PACKAGES: readonly ["zod"];
|
|
6
6
|
interface RewriteRule {
|
|
7
7
|
pattern: RegExp;
|
|
8
8
|
replacement: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm-import-rewrites.d.ts","sourceRoot":"","sources":["../../../src/src/transforms/npm-import-rewrites.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"npm-import-rewrites.d.ts","sourceRoot":"","sources":["../../../src/src/transforms/npm-import-rewrites.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,QAAA,MAAM,mBAAmB,kBAEf,CAAC;AAEX,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAQD,iBAAS,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,WAAW,EAAE,CAwBpE;AAcD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,WAAW,EAAE,CAKlD;AAID;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,2BAA2B;AAC3B,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC;AAE3C,sDAAsD;AACtD,wBAAgB,WAAW,IAAI,IAAI,CAElC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NPM Import Rewrites for Deno
|
|
3
3
|
*
|
|
4
|
-
* Generates regex rewrite rules from deno.json's import map
|
|
5
|
-
*
|
|
6
|
-
* specifiers (e.g. `from "npm:ai@6.0.33"`).
|
|
4
|
+
* Generates regex rewrite rules from deno.json's import map for the small set
|
|
5
|
+
* of framework-managed bare specifiers that still need pinning in Deno.
|
|
7
6
|
*
|
|
8
7
|
* Single source of truth: versions come from deno.json — no hardcoded strings.
|
|
9
8
|
*
|
|
@@ -17,13 +16,6 @@ import { join } from "../platform/compat/path/index.js";
|
|
|
17
16
|
* Each must have a corresponding entry in deno.json's import map.
|
|
18
17
|
*/
|
|
19
18
|
const REWRITABLE_PACKAGES = [
|
|
20
|
-
"ai",
|
|
21
|
-
"@ai-sdk/anthropic",
|
|
22
|
-
"@ai-sdk/openai",
|
|
23
|
-
"@ai-sdk/google",
|
|
24
|
-
"@ai-sdk/mistral",
|
|
25
|
-
"@ai-sdk/provider",
|
|
26
|
-
"@ai-sdk/provider-utils",
|
|
27
19
|
"zod",
|
|
28
20
|
];
|
|
29
21
|
let cachedRules;
|
|
@@ -36,14 +28,14 @@ function buildRules(importMap) {
|
|
|
36
28
|
const mapped = importMap[pkg];
|
|
37
29
|
if (!mapped)
|
|
38
30
|
continue;
|
|
39
|
-
// deno.json values look like "npm:
|
|
31
|
+
// deno.json values look like "npm:zod@4.3.6" — use as-is
|
|
40
32
|
const escaped = escapeForRegex(pkg);
|
|
41
|
-
// Static imports
|
|
33
|
+
// Static imports
|
|
42
34
|
rules.push({
|
|
43
35
|
pattern: new RegExp(`from\\s+["']${escaped}["']`, "g"),
|
|
44
36
|
replacement: `from "${mapped}"`,
|
|
45
37
|
});
|
|
46
|
-
// Dynamic imports
|
|
38
|
+
// Dynamic imports
|
|
47
39
|
rules.push({
|
|
48
40
|
pattern: new RegExp(`import\\s*\\(\\s*["']${escaped}["']\\s*\\)`, "g"),
|
|
49
41
|
replacement: `import("${mapped}")`,
|
|
@@ -23,7 +23,7 @@ export declare const INTERNAL_PATH_PREFIXES: {
|
|
|
23
23
|
readonly PAGES: "/_veryfront/pages/";
|
|
24
24
|
/** Data JSON endpoints */
|
|
25
25
|
readonly DATA: "/_veryfront/data/";
|
|
26
|
-
/** Library modules
|
|
26
|
+
/** Library modules and large vendor surfaces */
|
|
27
27
|
readonly LIB: "/_veryfront/lib/";
|
|
28
28
|
/** Chunk assets */
|
|
29
29
|
readonly CHUNKS: "/_veryfront/chunks/";
|
|
@@ -55,9 +55,9 @@ export declare const INTERNAL_ENDPOINTS: {
|
|
|
55
55
|
readonly RSC_DOM: "/_veryfront/rsc/dom.js";
|
|
56
56
|
readonly RSC_HYDRATOR: "/_veryfront/rsc/hydrator.js";
|
|
57
57
|
readonly RSC_HYDRATE_CLIENT: "/_veryfront/rsc/hydrate-client.js";
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
58
|
+
readonly LIB_CHAT_REACT: "/_veryfront/lib/chat/react.js";
|
|
59
|
+
readonly LIB_CHAT_COMPONENTS: "/_veryfront/lib/chat/components.js";
|
|
60
|
+
readonly LIB_CHAT_PRIMITIVES: "/_veryfront/lib/chat/primitives.js";
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* Build output directory paths (relative)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,sDAAsD;AACtD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC,wCAAwC;;IAExC,0DAA0D;;IAE1D,4BAA4B;;IAE5B,6BAA6B;;IAE7B,0BAA0B;;IAE1B,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,sDAAsD;AACtD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC,wCAAwC;;IAExC,0DAA0D;;IAE1D,4BAA4B;;IAE5B,6BAA6B;;IAE7B,0BAA0B;;IAE1B,gDAAgD;;IAEhD,mBAAmB;;IAEnB,+BAA+B;;CAEvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,kCAAkC;;IAElC,uBAAuB;;IAEvB,qBAAqB;;IAErB,uBAAuB;;CAEf,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,wCAAwC;;IAExC,4DAA4D;;IAE5D,yBAAyB;;IAEzB,0BAA0B;;IAE1B,gCAAgC;;CAExB,CAAC;AAEX,mCAAmC;AACnC,eAAO,MAAM,iBAAiB,oBAAqB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,MAAsC,GAC/C,MAAM,CAIR;AAGD,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC"}
|
|
@@ -23,7 +23,7 @@ export const INTERNAL_PATH_PREFIXES = {
|
|
|
23
23
|
PAGES: `${INTERNAL_PREFIX}/pages/`,
|
|
24
24
|
/** Data JSON endpoints */
|
|
25
25
|
DATA: `${INTERNAL_PREFIX}/data/`,
|
|
26
|
-
/** Library modules
|
|
26
|
+
/** Library modules and large vendor surfaces */
|
|
27
27
|
LIB: `${INTERNAL_PREFIX}/lib/`,
|
|
28
28
|
/** Chunk assets */
|
|
29
29
|
CHUNKS: `${INTERNAL_PREFIX}/chunks/`,
|
|
@@ -60,9 +60,9 @@ export const INTERNAL_ENDPOINTS = {
|
|
|
60
60
|
RSC_HYDRATOR: `${INTERNAL_PREFIX}/rsc/hydrator.js`,
|
|
61
61
|
RSC_HYDRATE_CLIENT: `${INTERNAL_PREFIX}/rsc/hydrate-client.js`,
|
|
62
62
|
// Library module endpoints
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
LIB_CHAT_REACT: `${INTERNAL_PREFIX}/lib/chat/react.js`,
|
|
64
|
+
LIB_CHAT_COMPONENTS: `${INTERNAL_PREFIX}/lib/chat/components.js`,
|
|
65
|
+
LIB_CHAT_PRIMITIVES: `${INTERNAL_PREFIX}/lib/chat/primitives.js`,
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* Build output directory paths (relative)
|
package/esm/src/utils/id.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** ID generation utilities (
|
|
1
|
+
/** ID generation utilities (16-char alphanumeric with optional prefix) */
|
|
2
2
|
import * as dntShim from "../../_dnt.shims.js";
|
|
3
3
|
const ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
4
4
|
function randomString(length) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.151";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Uses the same patterns as API route discovery.
|
|
6
6
|
*
|
|
7
7
|
* Scans:
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
8
|
+
* - workflows/*.ts - workflow definition files
|
|
9
|
+
* - workflows/**\/*.ts - nested workflow files
|
|
10
10
|
*
|
|
11
11
|
* Workflow files should export a workflow definition:
|
|
12
12
|
* ```typescript
|
|
@@ -47,7 +47,7 @@ export interface WorkflowDiscoveryOptions {
|
|
|
47
47
|
adapter: RuntimeAdapter;
|
|
48
48
|
/** Veryfront config (for import maps, etc.) */
|
|
49
49
|
config?: VeryfrontConfig;
|
|
50
|
-
/** Base directory for workflows (default: "
|
|
50
|
+
/** Base directory for workflows (default: "workflows") */
|
|
51
51
|
workflowsDir?: string;
|
|
52
52
|
/** Enable debug logging */
|
|
53
53
|
debug?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-discovery.d.ts","sourceRoot":"","sources":["../../../../src/src/workflow/discovery/workflow-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IAEjB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,8BAA8B;IAC9B,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IAEnB,gDAAgD;IAChD,OAAO,EAAE,cAAc,CAAC;IAExB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,
|
|
1
|
+
{"version":3,"file":"workflow-discovery.d.ts","sourceRoot":"","sources":["../../../../src/src/workflow/discovery/workflow-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IAEjB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,8BAA8B;IAC9B,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IAEnB,gDAAgD;IAChD,OAAO,EAAE,cAAc,CAAC;IAExB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAEhC,0CAA0C;IAC1C,MAAM,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAqCD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2FlC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAGpC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,kBAAkB,EAAE,GAC9B,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAMjC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Uses the same patterns as API route discovery.
|
|
6
6
|
*
|
|
7
7
|
* Scans:
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
8
|
+
* - workflows/*.ts - workflow definition files
|
|
9
|
+
* - workflows/**\/*.ts - nested workflow files
|
|
10
10
|
*
|
|
11
11
|
* Workflow files should export a workflow definition:
|
|
12
12
|
* ```typescript
|
|
@@ -62,7 +62,7 @@ function extractWorkflowDefinition(value) {
|
|
|
62
62
|
* Discover all workflows in a project
|
|
63
63
|
*/
|
|
64
64
|
export async function discoverWorkflows(options) {
|
|
65
|
-
const { projectDir, adapter, config, workflowsDir = "
|
|
65
|
+
const { projectDir, adapter, config, workflowsDir = "workflows", debug = false, } = options;
|
|
66
66
|
const workflows = [];
|
|
67
67
|
const errors = [];
|
|
68
68
|
// For remote adapters, use relative paths
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Workflow, WorkflowDefinition } from "./types.js";
|
|
2
|
-
import { ScopedRegistryFacade } from "../
|
|
2
|
+
import { ScopedRegistryFacade } from "../registry/scoped-registry-facade.js";
|
|
3
3
|
export interface NodeInfo {
|
|
4
4
|
id: string;
|
|
5
5
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/src/workflow/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAgB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/src/workflow/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAgB,MAAM,YAAY,CAAC;AAG7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAG7E,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4CAA4C;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gCAAgC;IAChC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;CACtB;AA0JD,QAAA,MAAM,wBAAwB,wCAAoD,CAAC;AAGnF,cAAM,qBAAqB;IACzB,OAAO,CAAC,aAAa;IAcrB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI;IAIvD,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI;IAI7D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI7C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIzD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB,SAAS,IAAI,MAAM,EAAE;IAIrB,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAIvC,aAAa,IAAI,gBAAgB,EAAE;IAInC,QAAQ,IAAI;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;IAqBD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAM/B,KAAK,IAAI,IAAI;IAKb,QAAQ,IAAI,IAAI;IAKhB,gBAAgB,IAAI,UAAU,CAAC,OAAO,wBAAwB,CAAC,QAAQ,CAAC;CAGzE;AAED,eAAO,MAAM,gBAAgB,uBAA8B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI,CAE9E;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEpE;AAED,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { zodToJsonSchema } from "../tool/schema/index.js";
|
|
2
2
|
import { agentLogger as logger } from "../utils/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ScopedRegistryFacade } from "../registry/scoped-registry-facade.js";
|
|
4
|
+
import { ProjectScopedRegistryManager } from "../registry/project-scoped-registry-manager.js";
|
|
5
5
|
function createProxy() {
|
|
6
6
|
return new Proxy({}, {
|
|
7
7
|
get: (_target, prop) => (typeof prop === "string" ? createProxy() : undefined),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.151",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"./chat": {
|
|
44
44
|
"import": "./esm/src/chat/index.js"
|
|
45
45
|
},
|
|
46
|
+
"./chat/protocol": {
|
|
47
|
+
"import": "./esm/src/chat/protocol.js"
|
|
48
|
+
},
|
|
46
49
|
"./markdown": {
|
|
47
50
|
"import": "./esm/src/markdown/index.js"
|
|
48
51
|
},
|
|
@@ -124,9 +127,6 @@
|
|
|
124
127
|
}
|
|
125
128
|
},
|
|
126
129
|
"dependencies": {
|
|
127
|
-
"@ai-sdk/anthropic": "3.0.63",
|
|
128
|
-
"@ai-sdk/google": "3.0.52",
|
|
129
|
-
"@ai-sdk/openai": "3.0.47",
|
|
130
130
|
"@babel/generator": "7.29.1",
|
|
131
131
|
"@babel/parser": "7.29.2",
|
|
132
132
|
"@babel/traverse": "7.29.0",
|
|
@@ -143,7 +143,6 @@
|
|
|
143
143
|
"@types/hast": "3.0.3",
|
|
144
144
|
"@types/mdast": "4.0.3",
|
|
145
145
|
"@types/unist": "3.0.2",
|
|
146
|
-
"ai": "6.0.134",
|
|
147
146
|
"class-variance-authority": "0.7.1",
|
|
148
147
|
"clsx": "2.1.1",
|
|
149
148
|
"es-module-lexer": "2.0.0",
|
|
@@ -11,7 +11,7 @@ import { runtime } from "../../../src/platform/index.js";
|
|
|
11
11
|
import { getConfig } from "../../../src/config/index.js";
|
|
12
12
|
import { getEnvironmentConfig } from "../../../src/config/index.js";
|
|
13
13
|
import { startDevServer } from "../../../src/server/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { validateProviderConfig } from "../../../src/discovery/index.js";
|
|
15
15
|
import { yellow } from "../../ui/index.js";
|
|
16
16
|
import { exitProcess, registerTerminationSignals } from "../../utils/index.js";
|
|
17
17
|
import { banner, brand, dim, error as errorColor, success } from "../../ui/index.js";
|
|
@@ -76,8 +76,8 @@ export function devCommand(options: DevOptions): Promise<DevCommandResult> {
|
|
|
76
76
|
const isProxyMode = config?.fs?.veryfront?.proxyMode === true;
|
|
77
77
|
const projectSlug = config?.fs?.veryfront?.projectSlug ?? env.projectSlug;
|
|
78
78
|
|
|
79
|
-
// Validate
|
|
80
|
-
const aiValidation =
|
|
79
|
+
// Validate provider config and print warnings (framework returns plain text, CLI adds colors)
|
|
80
|
+
const aiValidation = validateProviderConfig(config);
|
|
81
81
|
if (aiValidation.warnings.length > 0) {
|
|
82
82
|
console.log("");
|
|
83
83
|
for (const warning of aiValidation.warnings) {
|
|
@@ -3,7 +3,7 @@ import type { CommandHelp } from "../../help/types.js";
|
|
|
3
3
|
export const workflowHelp: CommandHelp = {
|
|
4
4
|
name: "workflow",
|
|
5
5
|
category: "ai",
|
|
6
|
-
description: "Run a workflow from the
|
|
6
|
+
description: "Run a workflow from the workflows directory",
|
|
7
7
|
usage: "veryfront workflow run <id> [options]",
|
|
8
8
|
options: [
|
|
9
9
|
{
|
|
@@ -105,7 +105,7 @@ export async function workflowCommand(options: WorkflowOptions): Promise<void> {
|
|
|
105
105
|
? `branch ${proxyContext.branchRef}`
|
|
106
106
|
: proxyContext
|
|
107
107
|
? "main"
|
|
108
|
-
: `${dntShim.Deno.cwd()}/
|
|
108
|
+
: `${dntShim.Deno.cwd()}/workflows/...`;
|
|
109
109
|
|
|
110
110
|
cliLogger.info(`Discovering workflows in ${sourceLabel}`);
|
|
111
111
|
|
|
@@ -131,7 +131,7 @@ export async function workflowCommand(options: WorkflowOptions): Promise<void> {
|
|
|
131
131
|
cliLogger.info(` - ${candidate.id}`);
|
|
132
132
|
}
|
|
133
133
|
} else {
|
|
134
|
-
cliLogger.info("No workflows found. Create a workflow file in
|
|
134
|
+
cliLogger.info("No workflows found. Create a workflow file in workflows/.");
|
|
135
135
|
}
|
|
136
136
|
exitProcess(1);
|
|
137
137
|
return;
|
package/src/cli/shared/config.ts
CHANGED
|
@@ -9,9 +9,7 @@ import * as dntShim from "../../_dnt.shims.js";
|
|
|
9
9
|
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
import { join } from "../../src/platform/compat/path/index.js";
|
|
12
|
-
import { cwd } from "../../src/platform/index.js";
|
|
13
|
-
import { createFileSystem } from "../../src/platform/index.js";
|
|
14
|
-
import { getEnv } from "../../src/platform/compat/process.js";
|
|
12
|
+
import { createFileSystem, cwd, getEnv } from "../../src/platform/index.js";
|
|
15
13
|
import { type EnvironmentConfig, getEnvironmentConfig } from "../../src/config/index.js";
|
|
16
14
|
import { cliLogger } from "../utils/index.js";
|
|
17
15
|
import { readToken } from "../auth/token-store.js";
|
package/src/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.151",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"exclude": [
|
|
@@ -21,6 +21,7 @@ export default {
|
|
|
21
21
|
"./context": "./src/react/context/index.tsx",
|
|
22
22
|
"./fonts": "./src/react/fonts/index.ts",
|
|
23
23
|
"./chat": "./src/chat/index.ts",
|
|
24
|
+
"./chat/protocol": "./src/chat/protocol.ts",
|
|
24
25
|
"./markdown": "./src/markdown/index.ts",
|
|
25
26
|
"./mdx": "./src/mdx/index.ts",
|
|
26
27
|
"./agent": "./src/agent/index.ts",
|
|
@@ -50,6 +51,7 @@ export default {
|
|
|
50
51
|
"veryfront/context": "./src/react/runtime/core.ts",
|
|
51
52
|
"veryfront/fonts": "./src/react/fonts/index.ts",
|
|
52
53
|
"veryfront/chat": "./src/chat/index.ts",
|
|
54
|
+
"veryfront/chat/protocol": "./src/chat/protocol.ts",
|
|
53
55
|
"veryfront/markdown": "./src/markdown/index.ts",
|
|
54
56
|
"veryfront/mdx": "./src/mdx/index.ts",
|
|
55
57
|
"veryfront/fs": "./src/fs/index.ts",
|
|
@@ -58,8 +60,8 @@ export default {
|
|
|
58
60
|
"veryfront/react/router": "./src/react/runtime/core.ts",
|
|
59
61
|
"veryfront/react/context": "./src/react/runtime/core.ts",
|
|
60
62
|
"veryfront/react/fonts": "./src/react/fonts/index.ts",
|
|
61
|
-
"veryfront/react/components/
|
|
62
|
-
"veryfront/components/
|
|
63
|
+
"veryfront/react/components/chat": "./src/react/components/chat/index.ts",
|
|
64
|
+
"veryfront/components/chat": "./src/react/components/chat/index.ts",
|
|
63
65
|
"veryfront/sandbox": "./src/sandbox/index.ts",
|
|
64
66
|
"veryfront/embedding": "./src/embedding/index.ts",
|
|
65
67
|
"veryfront/jobs": "./src/jobs/index.ts",
|
|
@@ -109,6 +111,7 @@ export default {
|
|
|
109
111
|
"#veryfront": "./src/index.ts",
|
|
110
112
|
"#veryfront/agent": "./src/agent/index.ts",
|
|
111
113
|
"#veryfront/agent/react": "./src/agent/react/index.ts",
|
|
114
|
+
"#veryfront/chat/protocol": "./src/chat/protocol.ts",
|
|
112
115
|
"#veryfront/build": "./src/build/index.ts",
|
|
113
116
|
"#veryfront/cache": "./src/cache/index.ts",
|
|
114
117
|
"#cli/shared/args": "./cli/shared/args.ts",
|
|
@@ -248,15 +251,6 @@ export default {
|
|
|
248
251
|
"unist": "npm:@types/unist@3.0.2",
|
|
249
252
|
"unified": "npm:unified@11.0.5",
|
|
250
253
|
"vfile": "npm:vfile@6.0.3",
|
|
251
|
-
"ai": "npm:ai@6.0.134",
|
|
252
|
-
"ai/react": "npm:@ai-sdk/react@3.0.136",
|
|
253
|
-
"@ai-sdk/react": "npm:@ai-sdk/react@3.0.136",
|
|
254
|
-
"@ai-sdk/openai": "npm:@ai-sdk/openai@3.0.47",
|
|
255
|
-
"@ai-sdk/anthropic": "npm:@ai-sdk/anthropic@3.0.63",
|
|
256
|
-
"@ai-sdk/google": "npm:@ai-sdk/google@3.0.52",
|
|
257
|
-
"@ai-sdk/mistral": "npm:@ai-sdk/mistral@3.0.14",
|
|
258
|
-
"@ai-sdk/provider": "npm:@ai-sdk/provider@3.0.2",
|
|
259
|
-
"@ai-sdk/provider-utils": "npm:@ai-sdk/provider-utils@4.0.5",
|
|
260
254
|
"tailwindcss": "https://esm.sh/tailwindcss@4.2.2",
|
|
261
255
|
"tailwindcss/plugin": "https://esm.sh/tailwindcss@4.2.2/plugin",
|
|
262
256
|
"tailwindcss/defaultTheme": "https://esm.sh/tailwindcss@4.2.2/defaultTheme",
|
|
@@ -311,12 +305,12 @@ export default {
|
|
|
311
305
|
"build:npm": "deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/build-npm-dnt.ts",
|
|
312
306
|
"release": "deno run -A scripts/release.ts",
|
|
313
307
|
"test": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net",
|
|
314
|
-
"test:unit": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/
|
|
308
|
+
"test:unit": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts')",
|
|
315
309
|
"test:integration": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
|
|
316
310
|
"test:integration:cli": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name '*.integration.test.ts')",
|
|
317
311
|
"test:record": "VCR=record deno test --no-check --allow-all $(find cli -name '*.integration.test.ts' -path '*/commands/*')",
|
|
318
312
|
"test:coverage": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net || exit 1",
|
|
319
|
-
"test:coverage:unit": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests,src/
|
|
313
|
+
"test:coverage:unit": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts') || exit 1",
|
|
320
314
|
"test:coverage:integration": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net || exit 1",
|
|
321
315
|
"coverage:report": "deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --lcov > coverage/lcov.info && deno run --allow-read scripts/lint/check-coverage.ts 80",
|
|
322
316
|
"coverage:html": "deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --html",
|
|
@@ -424,7 +418,13 @@ export default {
|
|
|
424
418
|
"proseWrap": "preserve"
|
|
425
419
|
},
|
|
426
420
|
"allowScripts": {
|
|
427
|
-
"allow": [
|
|
428
|
-
|
|
421
|
+
"allow": [
|
|
422
|
+
"npm:sharp@0.33.5",
|
|
423
|
+
"npm:onnxruntime-node@1.21.0"
|
|
424
|
+
],
|
|
425
|
+
"deny": [
|
|
426
|
+
"npm:esbuild@0.27.4",
|
|
427
|
+
"npm:protobufjs@7.5.4"
|
|
428
|
+
]
|
|
429
429
|
}
|
|
430
430
|
};
|
|
@@ -288,6 +288,12 @@ async function createAgUiStreamResponse(
|
|
|
288
288
|
if (!enqueueEvent(controller, "RunStarted", { runId, threadId, agentId: agent.id })) {
|
|
289
289
|
return;
|
|
290
290
|
}
|
|
291
|
+
if (!enqueueEvent(controller, "StateSnapshot", { snapshot: {} })) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
if (!enqueueEvent(controller, "MessagesSnapshot", { messages: request.messages })) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
291
297
|
|
|
292
298
|
try {
|
|
293
299
|
if (!upstreamBody) {
|
|
@@ -13,7 +13,7 @@ const MAX_TEXT_PART_LENGTH = 10_000;
|
|
|
13
13
|
const MAX_MESSAGES_PER_REQUEST = 100;
|
|
14
14
|
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
16
|
-
// Zod schemas for validating
|
|
16
|
+
// Zod schemas for validating parts-based chat UI messages
|
|
17
17
|
// ---------------------------------------------------------------------------
|
|
18
18
|
|
|
19
19
|
const textPartSchema = z.object({
|
|
@@ -12,8 +12,8 @@ import * as dntShim from "../../../_dnt.shims.js";
|
|
|
12
12
|
import type { Agent } from "../types.js";
|
|
13
13
|
import type { Tool } from "../../tool/index.js";
|
|
14
14
|
import { setActiveSpanAttributes, withSpan } from "../../observability/tracing/otlp-setup.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { ScopedRegistryFacade } from "../../registry/scoped-registry-facade.js";
|
|
16
|
+
import { ProjectScopedRegistryManager } from "../../registry/project-scoped-registry-manager.js";
|
|
17
17
|
import { AgentToolInputSchema } from "../schemas/index.js";
|
|
18
18
|
|
|
19
19
|
export function agentAsTool(agent: Agent, description: string): Tool {
|
package/src/src/agent/factory.ts
CHANGED
|
@@ -115,7 +115,7 @@ export function agent(config: AgentConfig): Agent {
|
|
|
115
115
|
const basePrompt = typeof originalSystem === "function"
|
|
116
116
|
? await originalSystem()
|
|
117
117
|
: originalSystem;
|
|
118
|
-
if (!currentSkills.size) return basePrompt ?? "You are a helpful
|
|
118
|
+
if (!currentSkills.size) return basePrompt ?? "You are a helpful assistant.";
|
|
119
119
|
return `${basePrompt}\n\n${buildSkillManifestPrompt(currentSkills)}`;
|
|
120
120
|
}
|
|
121
121
|
: originalSystem;
|
|
@@ -8,18 +8,20 @@ export { useChat } from "./use-chat/index.js";
|
|
|
8
8
|
export type {
|
|
9
9
|
BranchInfo,
|
|
10
10
|
BrowserInferenceStatus,
|
|
11
|
-
|
|
11
|
+
ChatDynamicToolPart,
|
|
12
|
+
ChatFinishReason,
|
|
13
|
+
ChatMessage,
|
|
14
|
+
ChatMessagePart,
|
|
15
|
+
ChatReasoningPart,
|
|
16
|
+
ChatStepPart,
|
|
17
|
+
ChatStreamEvent,
|
|
18
|
+
ChatTextPart,
|
|
19
|
+
ChatToolPart,
|
|
20
|
+
ChatToolResultPart,
|
|
21
|
+
ChatToolState,
|
|
12
22
|
InferenceMode,
|
|
13
23
|
OnToolCallArg,
|
|
14
|
-
ReasoningUIPart,
|
|
15
|
-
StepUIPart,
|
|
16
|
-
TextUIPart,
|
|
17
24
|
ToolOutput,
|
|
18
|
-
ToolResultUIPart,
|
|
19
|
-
ToolState,
|
|
20
|
-
ToolUIPart,
|
|
21
|
-
UIMessage,
|
|
22
|
-
UIMessagePart,
|
|
23
25
|
UseChatOptions,
|
|
24
26
|
UseChatResult,
|
|
25
27
|
} from "./use-chat/index.js";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bridge between BrowserInferenceClient (Worker) and useChat's streaming interface.
|
|
3
3
|
*
|
|
4
|
-
* Converts
|
|
4
|
+
* Converts ChatMessage[] to simple {role, content}[] for the Worker,
|
|
5
5
|
* and synthesizes the same streaming updates that handleStreamingResponse produces.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { BrowserInferenceStatus } from "../types.js";
|
|
9
|
-
import type { UIMessage, UIMessagePart } from "../types.js";
|
|
8
|
+
import type { BrowserInferenceStatus, ChatMessage, ChatMessagePart } from "../types.js";
|
|
10
9
|
import { generateClientId } from "../utils.js";
|
|
11
10
|
import { BrowserInferenceClient } from "./worker-client.js";
|
|
12
11
|
|
|
@@ -16,15 +15,15 @@ const DEFAULT_BROWSER_MAX_TOKENS = 512;
|
|
|
16
15
|
const DEFAULT_BROWSER_TEMPERATURE = 0.7;
|
|
17
16
|
|
|
18
17
|
interface BrowserInferenceCallbacks {
|
|
19
|
-
onUpdate: (parts:
|
|
20
|
-
onMessage: (message:
|
|
18
|
+
onUpdate: (parts: ChatMessagePart[], messageId: string) => void;
|
|
19
|
+
onMessage: (message: ChatMessage) => void;
|
|
21
20
|
onStatusChange: (status: BrowserInferenceStatus) => void;
|
|
22
21
|
onDownloadProgress?: (progress: number) => void;
|
|
23
22
|
onError: (error: Error) => void;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
function extractTextFromMessages(
|
|
27
|
-
messages:
|
|
26
|
+
messages: ChatMessage[],
|
|
28
27
|
): Array<{ role: string; content: string }> {
|
|
29
28
|
return messages
|
|
30
29
|
.filter((m) => m.role === "user" || m.role === "assistant")
|
|
@@ -37,7 +36,7 @@ function extractTextFromMessages(
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export function runBrowserInference(
|
|
40
|
-
messages:
|
|
39
|
+
messages: ChatMessage[],
|
|
41
40
|
systemPrompt: string,
|
|
42
41
|
callbacks: BrowserInferenceCallbacks,
|
|
43
42
|
): void {
|
|
@@ -60,16 +59,16 @@ export function runBrowserInference(
|
|
|
60
59
|
onDownloadProgress: (progress) => callbacks.onDownloadProgress?.(progress),
|
|
61
60
|
onToken: (token) => {
|
|
62
61
|
accumulated = token; // transformers.js callback_function sends full text each time
|
|
63
|
-
const parts:
|
|
62
|
+
const parts: ChatMessagePart[] = [
|
|
64
63
|
{ type: "text", text: accumulated, state: "streaming" },
|
|
65
64
|
];
|
|
66
65
|
callbacks.onUpdate(parts, messageId);
|
|
67
66
|
},
|
|
68
67
|
onDone: (text) => {
|
|
69
|
-
const finalParts:
|
|
68
|
+
const finalParts: ChatMessagePart[] = [
|
|
70
69
|
{ type: "text", text: text || accumulated, state: "done" },
|
|
71
70
|
];
|
|
72
|
-
const assistantMessage:
|
|
71
|
+
const assistantMessage: ChatMessage = {
|
|
73
72
|
id: messageId,
|
|
74
73
|
role: "assistant",
|
|
75
74
|
parts: finalParts,
|
|
@@ -9,18 +9,19 @@ export { useChat } from "./use-chat.js";
|
|
|
9
9
|
export type {
|
|
10
10
|
BranchInfo,
|
|
11
11
|
BrowserInferenceStatus,
|
|
12
|
-
|
|
12
|
+
ChatDynamicToolPart,
|
|
13
|
+
ChatMessage,
|
|
14
|
+
ChatMessagePart,
|
|
15
|
+
ChatReasoningPart,
|
|
16
|
+
ChatStepPart,
|
|
17
|
+
ChatTextPart,
|
|
18
|
+
ChatToolPart,
|
|
19
|
+
ChatToolResultPart,
|
|
20
|
+
ChatToolState,
|
|
13
21
|
InferenceMode,
|
|
14
22
|
OnToolCallArg,
|
|
15
|
-
ReasoningUIPart,
|
|
16
|
-
StepUIPart,
|
|
17
|
-
TextUIPart,
|
|
18
23
|
ToolOutput,
|
|
19
|
-
ToolResultUIPart,
|
|
20
|
-
ToolState,
|
|
21
|
-
ToolUIPart,
|
|
22
|
-
UIMessage,
|
|
23
|
-
UIMessagePart,
|
|
24
24
|
UseChatOptions,
|
|
25
25
|
UseChatResult,
|
|
26
26
|
} from "./types.js";
|
|
27
|
+
export type { ChatFinishReason, ChatStreamEvent } from "./stream-protocol.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ChatFinishReason, ChatStreamEvent } from "../../../chat/protocol.js";
|