veryfront 0.1.519 → 0.1.521
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/analyze-chunks/handler.js +2 -2
- package/esm/cli/commands/build/handler.d.ts.map +1 -1
- package/esm/cli/commands/build/handler.js +2 -2
- package/esm/cli/commands/clean/handler.js +2 -2
- package/esm/cli/commands/demo/handler.js +2 -2
- package/esm/cli/commands/deploy/command.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command.js +2 -2
- package/esm/cli/commands/dev/handler.js +2 -2
- package/esm/cli/commands/doctor/handler.js +2 -2
- package/esm/cli/commands/files/command.js +5 -5
- package/esm/cli/commands/generate/handler.js +2 -2
- package/esm/cli/commands/install/handler.js +2 -2
- package/esm/cli/commands/install/install.js +3 -3
- package/esm/cli/commands/install/types.d.ts.map +1 -1
- package/esm/cli/commands/install/types.js +6 -6
- package/esm/cli/commands/install/uninstall.js +2 -2
- package/esm/cli/commands/knowledge/command.js +2 -2
- package/esm/cli/commands/lock/handler.js +2 -2
- package/esm/cli/commands/mcp/handler.js +2 -2
- package/esm/cli/commands/merge/command.d.ts.map +1 -1
- package/esm/cli/commands/merge/command.js +2 -2
- package/esm/cli/commands/open/command.d.ts.map +1 -1
- package/esm/cli/commands/open/command.js +2 -2
- package/esm/cli/commands/pull/command.d.ts.map +1 -1
- package/esm/cli/commands/pull/command.js +2 -2
- package/esm/cli/commands/push/command.d.ts.map +1 -1
- package/esm/cli/commands/push/command.js +2 -2
- package/esm/cli/commands/routes/handler.js +2 -2
- package/esm/cli/commands/schema/handler.js +2 -2
- package/esm/cli/commands/serve/handler.js +2 -2
- package/esm/cli/commands/start/handler.js +2 -2
- package/esm/cli/commands/studio/handler.js +2 -2
- package/esm/cli/commands/styles/command.js +2 -2
- package/esm/cli/commands/styles/handler.js +2 -2
- package/esm/cli/commands/task/handler.js +2 -2
- package/esm/cli/commands/test/handler.js +2 -2
- package/esm/cli/commands/up/command.d.ts.map +1 -1
- package/esm/cli/commands/up/command.js +2 -2
- package/esm/cli/commands/uploads/command.js +5 -5
- package/esm/cli/commands/worker/handler.js +2 -2
- package/esm/cli/commands/workflow/handler.js +2 -2
- package/esm/cli/main.js +6 -4
- package/esm/cli/mcp/jsonrpc.d.ts.map +1 -1
- package/esm/cli/mcp/jsonrpc.js +5 -5
- package/esm/cli/mcp/remote-file-tools.js +13 -13
- package/esm/cli/mcp/tools/bootstrap-tool.js +2 -2
- package/esm/cli/mcp/tools/build-tool.js +2 -2
- package/esm/cli/mcp/tools/catalog-tools.js +6 -6
- package/esm/cli/mcp/tools/context7-tools.js +5 -5
- package/esm/cli/mcp/tools/deploy-tool.js +2 -2
- package/esm/cli/mcp/tools/dev-tools.js +7 -7
- package/esm/cli/mcp/tools/introspection-tools.js +4 -4
- package/esm/cli/mcp/tools/project-tools.js +5 -5
- package/esm/cli/mcp/tools/run-lint-tool.js +2 -2
- package/esm/cli/mcp/tools/run-tests-tool.d.ts.map +1 -1
- package/esm/cli/mcp/tools/run-tests-tool.js +26 -18
- package/esm/cli/mcp/tools/scaffold-tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools/scaffold-tools.js +23 -15
- package/esm/cli/mcp/tools/skill-tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools/skill-tools.js +5 -5
- package/esm/cli/mcp/tools.js +6 -6
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +4 -4
- package/esm/cli/shared/ensure-content-processor.js +1 -1
- package/esm/cli/shared/types.d.ts.map +1 -1
- package/esm/cli/shared/types.js +2 -2
- package/esm/cli/skills/types.d.ts.map +1 -1
- package/esm/cli/skills/types.js +2 -2
- package/esm/deno.d.ts +10 -17
- package/esm/deno.js +23 -28
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts +33 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.js +48 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts +64 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.js +1371 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts +44 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.js +117 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.js +103 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.js +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.js +96 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.js +159 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.js +22 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.js +29 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.js +19 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.js +30 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.js +9 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.js +81 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.js +20 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.js +6 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts +4 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.js +13 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts +76 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.js +91 -0
- package/esm/extensions/ext-auth-jwt/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-auth-jwt/src/index.js +25 -4
- package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/compiler/markdown-compile.d.ts +1 -1
- package/esm/extensions/ext-content-mdx/src/compiler/markdown-compile.d.ts.map +1 -0
- package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/compiler/mdx-compile.d.ts +1 -1
- package/esm/extensions/ext-content-mdx/src/compiler/mdx-compile.d.ts.map +1 -0
- package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/compiler/mdx-compile.js +10 -4
- package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/index.d.ts +3 -3
- package/esm/extensions/ext-content-mdx/src/index.d.ts.map +1 -0
- package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/index.js +4 -4
- package/esm/extensions/ext-content-mdx/src/plugins/plugin-loader.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/rehype-node-positions.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-headings.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.d.ts.map +1 -0
- package/esm/extensions/ext-css-tailwind/src/index.js +1 -1
- package/esm/extensions/ext-db-sqlite/src/index.d.ts +15 -0
- package/esm/extensions/ext-db-sqlite/src/index.d.ts.map +1 -0
- package/esm/extensions/ext-db-sqlite/src/index.js +36 -0
- package/esm/extensions/ext-document-kreuzberg/src/index.d.ts +9 -0
- package/esm/extensions/ext-document-kreuzberg/src/index.d.ts.map +1 -0
- package/esm/extensions/ext-document-kreuzberg/src/index.js +71 -0
- package/esm/extensions/{ext-node-compatibility → ext-document-kreuzberg}/src/kreuzberg.d.ts.map +1 -1
- package/esm/extensions/{ext-node-compatibility → ext-document-kreuzberg}/src/kreuzberg.js +4 -4
- package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts +16 -0
- package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -0
- package/esm/extensions/ext-sandbox-shell-tools/src/index.js +22 -0
- package/esm/extensions/{ext-zod → ext-schema-zod}/src/adapter.d.ts +1 -1
- package/esm/extensions/ext-schema-zod/src/adapter.d.ts.map +1 -0
- package/esm/extensions/{ext-zod → ext-schema-zod}/src/adapter.js +1 -1
- package/esm/extensions/{ext-zod → ext-schema-zod}/src/index.d.ts +2 -2
- package/esm/extensions/ext-schema-zod/src/index.d.ts.map +1 -0
- package/esm/extensions/{ext-zod → ext-schema-zod}/src/index.js +4 -4
- package/esm/extensions/{ext-zod → ext-schema-zod}/src/json-schema.d.ts +2 -2
- package/esm/extensions/ext-schema-zod/src/json-schema.d.ts.map +1 -0
- package/esm/extensions/{ext-zod → ext-schema-zod}/src/json-schema.js +2 -2
- package/esm/extensions/ext-tracing-opentelemetry/src/index.d.ts +49 -0
- package/esm/extensions/ext-tracing-opentelemetry/src/index.d.ts.map +1 -0
- package/esm/extensions/ext-tracing-opentelemetry/src/index.js +223 -0
- package/esm/src/agent/ag-ui/detached-start.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/detached-start.js +3 -3
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/host-support.js +4 -4
- package/esm/src/agent/ag-ui/request-shared.js +1 -1
- package/esm/src/agent/ag-ui/run-control.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/run-control.js +2 -2
- package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/conversation/bootstrap.js +3 -3
- package/esm/src/agent/conversation/run-events.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-events.js +2 -2
- package/esm/src/agent/default-hosted-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/default-hosted-invoke-agent-tool.js +3 -3
- package/esm/src/agent/durable.d.ts.map +1 -1
- package/esm/src/agent/durable.js +7 -7
- package/esm/src/agent/external-agent-worker-client.d.ts +65 -90
- package/esm/src/agent/external-agent-worker-client.d.ts.map +1 -1
- package/esm/src/agent/external-agent-worker-client.js +85 -70
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/ag-ui-chat-request.js +3 -3
- package/esm/src/agent/hosted/agent-project-steering.d.ts +7 -8
- package/esm/src/agent/hosted/agent-project-steering.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-project-steering.js +14 -9
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request.js +4 -4
- package/esm/src/agent/hosted/child-tool-input.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-tool-input.js +2 -2
- package/esm/src/agent/index.d.ts +4 -2
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +4 -2
- package/esm/src/agent/invoke-agent-child-runs.d.ts.map +1 -1
- package/esm/src/agent/invoke-agent-child-runs.js +4 -4
- package/esm/src/agent/runtime/agent-definition-files.d.ts +17 -17
- package/esm/src/agent/runtime/agent-definition-files.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition-files.js +22 -16
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition.js +4 -4
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.js +14 -14
- package/esm/src/agent/runtime/client-profile.d.ts.map +1 -1
- package/esm/src/agent/runtime/client-profile.js +4 -4
- package/esm/src/agent/runtime/load-skill-tool.js +2 -2
- package/esm/src/agent/runtime/project-files-client.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-files-client.js +3 -3
- package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-metadata.js +2 -2
- package/esm/src/agent/schemas/agent.schema.d.ts +33 -33
- package/esm/src/agent/service/auth.d.ts +3 -0
- package/esm/src/agent/service/auth.d.ts.map +1 -1
- package/esm/src/agent/service/auth.js +15 -11
- package/esm/src/agent/service/config.d.ts +15 -126
- package/esm/src/agent/service/config.d.ts.map +1 -1
- package/esm/src/agent/service/config.js +53 -49
- package/esm/src/agent/service/node-runtime-infrastructure.js +1 -1
- package/esm/src/agent/service/node-telemetry.d.ts +5 -12
- package/esm/src/agent/service/node-telemetry.d.ts.map +1 -1
- package/esm/src/agent/service/node-telemetry.js +17 -36
- package/esm/src/agent/service/registration.d.ts +62 -85
- package/esm/src/agent/service/registration.d.ts.map +1 -1
- package/esm/src/agent/service/registration.js +68 -66
- package/esm/src/agent/testing/agent-tester.d.ts +45 -0
- package/esm/src/agent/testing/agent-tester.d.ts.map +1 -0
- package/esm/src/agent/testing/agent-tester.js +127 -0
- package/esm/src/agent/testing/index.d.ts +9 -0
- package/esm/src/agent/testing/index.d.ts.map +1 -0
- package/esm/src/agent/testing/index.js +8 -0
- package/esm/src/agent/testing/live-evals/formatting.d.ts +11 -0
- package/esm/src/agent/testing/live-evals/formatting.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/formatting.js +71 -0
- package/esm/src/agent/testing/live-evals/index.d.ts +6 -0
- package/esm/src/agent/testing/live-evals/index.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/index.js +5 -0
- package/esm/src/agent/testing/live-evals/performance.d.ts +15 -0
- package/esm/src/agent/testing/live-evals/performance.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/performance.js +21 -0
- package/esm/src/agent/testing/live-evals/report.d.ts +46 -0
- package/esm/src/agent/testing/live-evals/report.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/report.js +73 -0
- package/esm/src/agent/testing/live-evals/request.d.ts +30 -0
- package/esm/src/agent/testing/live-evals/request.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/request.js +46 -0
- package/esm/src/agent/testing/live-evals/result.d.ts +52 -0
- package/esm/src/agent/testing/live-evals/result.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/result.js +44 -0
- package/esm/src/agent/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/veryfront-cloud-agent-service.js +47 -10
- package/esm/src/build/compiler/mdx-compiler/frontmatter-parser.js +1 -1
- package/esm/src/build/compiler/mdx-compiler/mdx-processor.d.ts.map +1 -1
- package/esm/src/build/compiler/mdx-compiler/mdx-processor.js +8 -16
- package/esm/src/build/compiler/mdx-to-js.d.ts.map +1 -1
- package/esm/src/build/compiler/mdx-to-js.js +10 -8
- package/esm/src/cache/schemas/cache-backend.schema.d.ts.map +1 -1
- package/esm/src/cache/schemas/cache-backend.schema.js +3 -3
- package/esm/src/cache/schemas/cache-key.schema.d.ts.map +1 -1
- package/esm/src/cache/schemas/cache-key.schema.js +2 -2
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +11 -11
- package/esm/src/channels/invoke.d.ts.map +1 -1
- package/esm/src/channels/invoke.js +13 -13
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +6 -6
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +6 -6
- package/esm/src/chat/types.d.ts.map +1 -1
- package/esm/src/chat/types.js +8 -8
- package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
- package/esm/src/config/schemas/config.schema.js +2 -2
- package/esm/src/data/schemas/data.schema.d.ts.map +1 -1
- package/esm/src/data/schemas/data.schema.js +7 -7
- package/esm/src/embedding/upload-loader.d.ts +1 -1
- package/esm/src/embedding/upload-loader.js +8 -8
- package/esm/src/extensions/auth/auth-provider.d.ts +10 -2
- package/esm/src/extensions/auth/auth-provider.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.d.ts +1 -0
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +32 -8
- package/esm/src/extensions/cache/cache-store.d.ts +1 -1
- package/esm/src/extensions/cache/cache-store.js +1 -1
- package/esm/src/extensions/compat/index.d.ts +2 -2
- package/esm/src/extensions/compat/index.d.ts.map +1 -1
- package/esm/src/extensions/compat/index.js +1 -1
- package/esm/src/extensions/compat/{node-compat.d.ts → native-services.d.ts} +19 -25
- package/esm/src/extensions/compat/native-services.d.ts.map +1 -0
- package/esm/src/extensions/compat/native-services.js +10 -0
- package/esm/src/extensions/{transform → content}/content-processor.d.ts +9 -3
- package/esm/src/extensions/content/content-processor.d.ts.map +1 -0
- package/esm/src/extensions/{transform → content}/content-processor.js +3 -3
- package/esm/src/extensions/{transform → content}/index.d.ts +1 -1
- package/esm/src/extensions/content/index.d.ts.map +1 -0
- package/esm/src/extensions/{transform → content}/index.js +1 -1
- package/esm/src/extensions/contracts.d.ts +2 -0
- package/esm/src/extensions/contracts.d.ts.map +1 -1
- package/esm/src/extensions/contracts.js +4 -0
- package/esm/src/extensions/database/database-client.d.ts +1 -1
- package/esm/src/extensions/database/database-client.js +1 -1
- package/esm/src/extensions/index.d.ts +2 -0
- package/esm/src/extensions/index.d.ts.map +1 -1
- package/esm/src/extensions/index.js +1 -0
- package/esm/src/extensions/llm/embedding-provider.d.ts +1 -1
- package/esm/src/extensions/llm/embedding-provider.js +1 -1
- package/esm/src/extensions/recommendations.d.ts.map +1 -1
- package/esm/src/extensions/recommendations.js +6 -7
- package/esm/src/extensions/sandbox/index.d.ts +9 -0
- package/esm/src/extensions/sandbox/index.d.ts.map +1 -0
- package/esm/src/extensions/sandbox/index.js +7 -0
- package/esm/src/extensions/sandbox/shell-tools.d.ts +36 -0
- package/esm/src/extensions/sandbox/shell-tools.d.ts.map +1 -0
- package/esm/src/extensions/sandbox/shell-tools.js +1 -0
- package/esm/src/extensions/schema/schema-validator.d.ts +1 -1
- package/esm/src/extensions/schema/schema-validator.js +1 -1
- package/esm/src/extensions/tracing/index.d.ts +3 -1
- package/esm/src/extensions/tracing/index.d.ts.map +1 -1
- package/esm/src/extensions/tracing/index.js +2 -1
- package/esm/src/extensions/tracing/node-telemetry-provider.d.ts +40 -0
- package/esm/src/extensions/tracing/node-telemetry-provider.d.ts.map +1 -0
- package/esm/src/extensions/tracing/node-telemetry-provider.js +8 -0
- package/esm/src/html/schemas/html.schema.d.ts.map +1 -1
- package/esm/src/html/schemas/html.schema.js +7 -7
- package/esm/src/integrations/schema.d.ts +4 -4
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +11 -11
- package/esm/src/internal-agents/run-stream.js +2 -2
- package/esm/src/issues/mcp.js +7 -7
- package/esm/src/issues/schemas/issue.schema.d.ts.map +1 -1
- package/esm/src/issues/schemas/issue.schema.js +12 -12
- package/esm/src/jobs/schemas.d.ts.map +1 -1
- package/esm/src/jobs/schemas.js +29 -29
- package/esm/src/mcp/schemas/mcp.schema.d.ts.map +1 -1
- package/esm/src/mcp/schemas/mcp.schema.js +4 -4
- package/esm/src/oauth/schemas/oauth.schema.d.ts.map +1 -1
- package/esm/src/oauth/schemas/oauth.schema.js +8 -8
- package/esm/src/platform/compat/kv/factory.js +7 -7
- package/esm/src/platform/compat/opaque-deps.d.ts +4 -3
- package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
- package/esm/src/platform/compat/opaque-deps.js +9 -8
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts +1 -2
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts.map +1 -1
- package/esm/src/platform/compat/std/front-matter-yaml.js +17 -21
- package/esm/src/react/components/chat/theme.d.ts +40 -7
- package/esm/src/react/components/chat/theme.d.ts.map +1 -1
- package/esm/src/react/components/chat/theme.js +19 -11
- package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.js +9 -14
- package/esm/src/repositories/schemas/repository.schema.d.ts.map +1 -1
- package/esm/src/repositories/schemas/repository.schema.js +4 -4
- package/esm/src/resource/schemas/resource.schema.d.ts.map +1 -1
- package/esm/src/resource/schemas/resource.schema.js +3 -3
- package/esm/src/sandbox/agent-service-tools.d.ts +1 -0
- package/esm/src/sandbox/agent-service-tools.d.ts.map +1 -1
- package/esm/src/sandbox/shell-tools.d.ts +3 -36
- package/esm/src/sandbox/shell-tools.d.ts.map +1 -1
- package/esm/src/sandbox/shell-tools.js +2 -2
- package/esm/src/schemas/define.d.ts +2 -2
- package/esm/src/schemas/define.d.ts.map +1 -1
- package/esm/src/schemas/define.js +4 -10
- package/esm/src/schemas/index.d.ts +2 -1
- package/esm/src/schemas/index.d.ts.map +1 -1
- package/esm/src/schemas/index.js +2 -1
- package/esm/src/schemas/lazy.d.ts +3 -0
- package/esm/src/schemas/lazy.d.ts.map +1 -0
- package/esm/src/schemas/lazy.js +54 -0
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +2 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +67 -18
- package/esm/src/server/schemas/action.schema.d.ts.map +1 -1
- package/esm/src/server/schemas/action.schema.js +2 -2
- package/esm/src/tool/host-tools.js +1 -1
- package/esm/src/tool/schema/zod-json-schema.d.ts +1 -1
- package/esm/src/tool/schema/zod-json-schema.js +2 -2
- package/esm/src/transforms/md/compiler/md-compiler.d.ts +1 -1
- package/esm/src/transforms/md/compiler/md-compiler.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/import-rewriter.d.ts +1 -1
- package/esm/src/transforms/mdx/compiler/import-rewriter.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/index.d.ts +2 -2
- package/esm/src/transforms/mdx/compiler/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.d.ts +1 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.d.ts.map +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/blob/veryfront-cloud-storage.js +5 -5
- package/esm/src/workflow/schemas/workflow.schema.d.ts +14 -14
- package/esm/src/workflow/schemas/workflow.schema.d.ts.map +1 -1
- package/esm/src/workflow/schemas/workflow.schema.js +18 -18
- package/package.json +21 -10
- package/src/cli/commands/analyze-chunks/handler.ts +2 -2
- package/src/cli/commands/build/handler.ts +2 -2
- package/src/cli/commands/clean/handler.ts +2 -2
- package/src/cli/commands/demo/handler.ts +2 -2
- package/src/cli/commands/deploy/command.ts +2 -2
- package/src/cli/commands/dev/handler.ts +2 -2
- package/src/cli/commands/doctor/handler.ts +2 -2
- package/src/cli/commands/files/command.ts +5 -5
- package/src/cli/commands/generate/handler.ts +2 -2
- package/src/cli/commands/install/handler.ts +2 -2
- package/src/cli/commands/install/install.ts +3 -3
- package/src/cli/commands/install/types.ts +6 -6
- package/src/cli/commands/install/uninstall.ts +2 -2
- package/src/cli/commands/knowledge/command.ts +2 -2
- package/src/cli/commands/lock/handler.ts +2 -2
- package/src/cli/commands/mcp/handler.ts +2 -2
- package/src/cli/commands/merge/command.ts +2 -2
- package/src/cli/commands/open/command.ts +2 -2
- package/src/cli/commands/pull/command.ts +2 -2
- package/src/cli/commands/push/command.ts +2 -2
- package/src/cli/commands/routes/handler.ts +2 -2
- package/src/cli/commands/schema/handler.ts +2 -2
- package/src/cli/commands/serve/handler.ts +2 -2
- package/src/cli/commands/start/handler.ts +2 -2
- package/src/cli/commands/studio/handler.ts +2 -2
- package/src/cli/commands/styles/command.ts +2 -2
- package/src/cli/commands/styles/handler.ts +2 -2
- package/src/cli/commands/task/handler.ts +2 -2
- package/src/cli/commands/test/handler.ts +2 -2
- package/src/cli/commands/up/command.ts +2 -2
- package/src/cli/commands/uploads/command.ts +5 -5
- package/src/cli/commands/worker/handler.ts +2 -2
- package/src/cli/commands/workflow/handler.ts +2 -2
- package/src/cli/main.ts +6 -4
- package/src/cli/mcp/jsonrpc.ts +5 -5
- package/src/cli/mcp/remote-file-tools.ts +13 -13
- package/src/cli/mcp/tools/bootstrap-tool.ts +2 -2
- package/src/cli/mcp/tools/build-tool.ts +2 -2
- package/src/cli/mcp/tools/catalog-tools.ts +6 -6
- package/src/cli/mcp/tools/context7-tools.ts +5 -5
- package/src/cli/mcp/tools/deploy-tool.ts +2 -2
- package/src/cli/mcp/tools/dev-tools.ts +7 -7
- package/src/cli/mcp/tools/introspection-tools.ts +4 -4
- package/src/cli/mcp/tools/project-tools.ts +5 -5
- package/src/cli/mcp/tools/run-lint-tool.ts +2 -2
- package/src/cli/mcp/tools/run-tests-tool.ts +29 -17
- package/src/cli/mcp/tools/scaffold-tools.ts +23 -15
- package/src/cli/mcp/tools/skill-tools.ts +5 -5
- package/src/cli/mcp/tools.ts +6 -6
- package/src/cli/shared/config.ts +4 -4
- package/src/cli/shared/ensure-content-processor.ts +2 -2
- package/src/cli/shared/types.ts +2 -2
- package/src/cli/skills/types.ts +2 -2
- package/src/deno.js +23 -28
- package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +1 -1
- package/src/deps/esm.sh/@types/{react@19.2.14 → react@19.2.3}/global.d.ts +0 -1
- package/src/deps/esm.sh/@types/{react@19.2.14 → react@19.2.3}/index.d.ts +24 -93
- package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +1 -1
- package/src/deps/jsr.io/@std/yaml/1.1.0/_chars.ts +55 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.ts +1845 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_schema.ts +183 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.ts +127 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.ts +37 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.ts +112 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.ts +174 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.ts +17 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.ts +13 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.ts +27 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.ts +30 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.ts +22 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.ts +33 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.ts +13 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.ts +17 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.ts +12 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.ts +101 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.ts +23 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type.ts +49 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/_utils.ts +16 -0
- package/src/deps/jsr.io/@std/yaml/1.1.0/parse.ts +125 -0
- package/src/extensions/ext-auth-jwt/src/index.ts +31 -3
- package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/compiler/markdown-compile.ts +1 -4
- package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/compiler/mdx-compile.ts +13 -7
- package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/index.ts +5 -5
- package/src/extensions/ext-css-tailwind/src/index.ts +1 -1
- package/src/extensions/ext-db-sqlite/src/index.ts +45 -0
- package/src/extensions/ext-document-kreuzberg/src/index.ts +95 -0
- package/src/extensions/{ext-node-compatibility → ext-document-kreuzberg}/src/kreuzberg.ts +4 -4
- package/src/extensions/ext-sandbox-shell-tools/src/index.ts +38 -0
- package/src/extensions/{ext-zod → ext-schema-zod}/src/adapter.ts +1 -1
- package/src/extensions/{ext-zod → ext-schema-zod}/src/index.ts +4 -4
- package/src/extensions/{ext-zod → ext-schema-zod}/src/json-schema.ts +2 -2
- package/src/extensions/ext-tracing-opentelemetry/src/index.ts +290 -0
- package/src/src/agent/ag-ui/detached-start.ts +3 -3
- package/src/src/agent/ag-ui/host-support.ts +4 -4
- package/src/src/agent/ag-ui/request-shared.ts +1 -1
- package/src/src/agent/ag-ui/run-control.ts +2 -2
- package/src/src/agent/conversation/bootstrap.ts +3 -3
- package/src/src/agent/conversation/run-events.ts +2 -2
- package/src/src/agent/default-hosted-invoke-agent-tool.ts +7 -3
- package/src/src/agent/durable.ts +13 -8
- package/src/src/agent/external-agent-worker-client.ts +193 -88
- package/src/src/agent/hosted/ag-ui-chat-request.ts +5 -3
- package/src/src/agent/hosted/agent-project-steering.ts +24 -12
- package/src/src/agent/hosted/chat-request.ts +6 -4
- package/src/src/agent/hosted/child-tool-input.ts +2 -2
- package/src/src/agent/index.ts +4 -2
- package/src/src/agent/invoke-agent-child-runs.ts +10 -5
- package/src/src/agent/runtime/agent-definition-files.ts +53 -26
- package/src/src/agent/runtime/agent-definition.ts +8 -5
- package/src/src/agent/runtime/agent-invocation-contract.ts +14 -14
- package/src/src/agent/runtime/client-profile.ts +4 -4
- package/src/src/agent/runtime/load-skill-tool.ts +2 -2
- package/src/src/agent/runtime/project-files-client.ts +3 -3
- package/src/src/agent/runtime/skill-metadata.ts +2 -2
- package/src/src/agent/service/auth.ts +23 -14
- package/src/src/agent/service/config.ts +77 -50
- package/src/src/agent/service/node-runtime-infrastructure.ts +1 -1
- package/src/src/agent/service/node-telemetry.ts +34 -57
- package/src/src/agent/service/registration.ts +157 -82
- package/src/src/agent/testing/agent-tester.ts +202 -0
- package/src/src/agent/testing/index.ts +44 -0
- package/src/src/agent/testing/live-evals/formatting.ts +106 -0
- package/src/src/agent/testing/live-evals/index.ts +30 -0
- package/src/src/agent/testing/live-evals/performance.ts +52 -0
- package/src/src/agent/testing/live-evals/report.ts +155 -0
- package/src/src/agent/testing/live-evals/request.ts +60 -0
- package/src/src/agent/testing/live-evals/result.ts +96 -0
- package/src/src/agent/veryfront-cloud-agent-service.ts +62 -13
- package/src/src/build/compiler/mdx-compiler/frontmatter-parser.ts +1 -1
- package/src/src/build/compiler/mdx-compiler/mdx-processor.ts +9 -20
- package/src/src/build/compiler/mdx-to-js.ts +11 -8
- package/src/src/cache/schemas/cache-backend.schema.ts +3 -3
- package/src/src/cache/schemas/cache-key.schema.ts +2 -2
- package/src/src/channels/control-plane.ts +13 -11
- package/src/src/channels/invoke.ts +13 -13
- package/src/src/chat/ag-ui.ts +6 -6
- package/src/src/chat/conversation.ts +6 -6
- package/src/src/chat/types.ts +8 -8
- package/src/src/config/schemas/config.schema.ts +2 -2
- package/src/src/data/schemas/data.schema.ts +7 -7
- package/src/src/embedding/upload-loader.ts +9 -9
- package/src/src/extensions/auth/auth-provider.ts +14 -2
- package/src/src/extensions/builtin-extensions.ts +33 -8
- package/src/src/extensions/cache/cache-store.ts +1 -1
- package/src/src/extensions/compat/index.ts +5 -4
- package/src/src/extensions/compat/{node-compat.ts → native-services.ts} +18 -24
- package/src/src/extensions/{transform → content}/content-processor.ts +9 -3
- package/src/src/extensions/{transform → content}/index.ts +1 -1
- package/src/src/extensions/contracts.ts +6 -0
- package/src/src/extensions/database/database-client.ts +1 -1
- package/src/src/extensions/index.ts +11 -0
- package/src/src/extensions/llm/embedding-provider.ts +1 -1
- package/src/src/extensions/recommendations.ts +6 -7
- package/src/src/extensions/sandbox/index.ts +18 -0
- package/src/src/extensions/sandbox/shell-tools.ts +42 -0
- package/src/src/extensions/schema/schema-validator.ts +1 -1
- package/src/src/extensions/tracing/index.ts +9 -1
- package/src/src/extensions/tracing/node-telemetry-provider.ts +45 -0
- package/src/src/html/schemas/html.schema.ts +7 -7
- package/src/src/integrations/schema.ts +11 -11
- package/src/src/internal-agents/run-stream.ts +2 -2
- package/src/src/issues/mcp.ts +7 -7
- package/src/src/issues/schemas/issue.schema.ts +12 -12
- package/src/src/jobs/schemas.ts +39 -30
- package/src/src/mcp/schemas/mcp.schema.ts +4 -4
- package/src/src/oauth/schemas/oauth.schema.ts +8 -8
- package/src/src/platform/compat/kv/factory.ts +8 -8
- package/src/src/platform/compat/opaque-deps.ts +10 -9
- package/src/src/platform/compat/std/front-matter-yaml.ts +18 -29
- package/src/src/react/components/chat/theme.ts +45 -10
- package/src/src/rendering/layouts/layout-applicator.ts +10 -18
- package/src/src/repositories/schemas/repository.schema.ts +4 -4
- package/src/src/resource/schemas/resource.schema.ts +3 -3
- package/src/src/sandbox/agent-service-tools.ts +1 -0
- package/src/src/sandbox/shell-tools.ts +17 -42
- package/src/src/schemas/define.ts +4 -10
- package/src/src/schemas/index.ts +2 -1
- package/src/src/schemas/lazy.ts +65 -0
- package/src/src/server/bootstrap.ts +5 -1
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +67 -18
- package/src/src/server/schemas/action.schema.ts +2 -2
- package/src/src/tool/host-tools.ts +1 -1
- package/src/src/tool/schema/zod-json-schema.ts +2 -2
- package/src/src/transforms/md/compiler/md-compiler.ts +1 -1
- package/src/src/transforms/mdx/compiler/import-rewriter.ts +1 -1
- package/src/src/transforms/mdx/compiler/index.ts +2 -2
- package/src/src/transforms/mdx/compiler/mdx-compiler.ts +1 -1
- package/src/src/utils/version-constant.ts +1 -1
- package/src/src/workflow/blob/veryfront-cloud-storage.ts +5 -5
- package/src/src/workflow/schemas/workflow.schema.ts +18 -18
- package/esm/extensions/ext-node-compatibility/src/index.d.ts +0 -11
- package/esm/extensions/ext-node-compatibility/src/index.d.ts.map +0 -1
- package/esm/extensions/ext-node-compatibility/src/index.js +0 -106
- package/esm/extensions/ext-transform-mdx/src/compiler/markdown-compile.d.ts.map +0 -1
- package/esm/extensions/ext-transform-mdx/src/compiler/mdx-compile.d.ts.map +0 -1
- package/esm/extensions/ext-transform-mdx/src/index.d.ts.map +0 -1
- package/esm/extensions/ext-transform-mdx/src/plugins/plugin-loader.d.ts.map +0 -1
- package/esm/extensions/ext-transform-mdx/src/plugins/rehype-node-positions.d.ts.map +0 -1
- package/esm/extensions/ext-transform-mdx/src/plugins/remark-headings.d.ts.map +0 -1
- package/esm/extensions/ext-transform-mdx/src/plugins/remark-mdx-utils.d.ts.map +0 -1
- package/esm/extensions/ext-zod/src/adapter.d.ts.map +0 -1
- package/esm/extensions/ext-zod/src/index.d.ts.map +0 -1
- package/esm/extensions/ext-zod/src/json-schema.d.ts.map +0 -1
- package/esm/src/extensions/compat/node-compat.d.ts.map +0 -1
- package/esm/src/extensions/compat/node-compat.js +0 -8
- package/esm/src/extensions/transform/content-processor.d.ts.map +0 -1
- package/esm/src/extensions/transform/index.d.ts.map +0 -1
- package/esm/src/transforms/plugins/plugin-loader.d.ts +0 -19
- package/esm/src/transforms/plugins/plugin-loader.d.ts.map +0 -1
- package/esm/src/transforms/plugins/plugin-loader.js +0 -24
- package/src/extensions/ext-node-compatibility/src/index.ts +0 -140
- package/src/src/transforms/plugins/plugin-loader.ts +0 -29
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/compiler/markdown-compile.js +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/plugin-loader.d.ts +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/plugin-loader.js +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/rehype-node-positions.d.ts +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/rehype-node-positions.js +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/remark-headings.d.ts +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/remark-headings.js +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/remark-mdx-utils.d.ts +0 -0
- /package/esm/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/remark-mdx-utils.js +0 -0
- /package/esm/extensions/{ext-node-compatibility → ext-document-kreuzberg}/src/kreuzberg.d.ts +0 -0
- /package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/plugin-loader.ts +0 -0
- /package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/rehype-node-positions.ts +0 -0
- /package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/remark-headings.ts +0 -0
- /package/src/extensions/{ext-transform-mdx → ext-content-mdx}/src/plugins/remark-mdx-utils.ts +0 -0
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import { tryResolve } from "../../extensions/contracts.js";
|
|
2
|
+
import {
|
|
3
|
+
type NodeTelemetryInitializeOptions,
|
|
4
|
+
type NodeTelemetryInstrumentationConfig,
|
|
5
|
+
type NodeTelemetryLogger,
|
|
6
|
+
type NodeTelemetryProcessTarget,
|
|
7
|
+
type NodeTelemetryProvider,
|
|
8
|
+
NodeTelemetryProviderName,
|
|
9
|
+
} from "../../extensions/tracing/index.js";
|
|
10
|
+
|
|
1
11
|
export type NodeHostedAgentServiceTelemetryEnv = Record<string, string | undefined>;
|
|
2
12
|
|
|
3
13
|
export type NodeAgentServiceTelemetryEnv = NodeHostedAgentServiceTelemetryEnv;
|
|
4
14
|
|
|
5
|
-
export type NodeHostedAgentServiceInstrumentationConfig =
|
|
6
|
-
http: boolean;
|
|
7
|
-
express: boolean;
|
|
8
|
-
fs: boolean;
|
|
9
|
-
};
|
|
15
|
+
export type NodeHostedAgentServiceInstrumentationConfig = NodeTelemetryInstrumentationConfig;
|
|
10
16
|
|
|
11
17
|
export type NodeAgentServiceInstrumentationConfig = NodeHostedAgentServiceInstrumentationConfig;
|
|
12
18
|
|
|
@@ -32,16 +38,11 @@ export type ResolveNodeHostedAgentServiceTelemetryConfigOptions = {
|
|
|
32
38
|
export type ResolveNodeAgentServiceTelemetryConfigOptions =
|
|
33
39
|
ResolveNodeHostedAgentServiceTelemetryConfigOptions;
|
|
34
40
|
|
|
35
|
-
export type NodeHostedAgentServiceTelemetryLogger =
|
|
36
|
-
info(message: string, metadata?: Record<string, unknown>): void;
|
|
37
|
-
error(message: string, metadata?: Record<string, unknown>): void;
|
|
38
|
-
};
|
|
41
|
+
export type NodeHostedAgentServiceTelemetryLogger = NodeTelemetryLogger;
|
|
39
42
|
|
|
40
43
|
export type NodeAgentServiceTelemetryLogger = NodeHostedAgentServiceTelemetryLogger;
|
|
41
44
|
|
|
42
|
-
export type NodeHostedAgentServiceTelemetryProcessTarget =
|
|
43
|
-
on(event: "SIGTERM", listener: () => void | Promise<void>): unknown;
|
|
44
|
-
};
|
|
45
|
+
export type NodeHostedAgentServiceTelemetryProcessTarget = NodeTelemetryProcessTarget;
|
|
45
46
|
|
|
46
47
|
export type NodeAgentServiceTelemetryProcessTarget = NodeHostedAgentServiceTelemetryProcessTarget;
|
|
47
48
|
|
|
@@ -50,6 +51,7 @@ export type InitializeNodeHostedAgentServiceTelemetryOptions =
|
|
|
50
51
|
& {
|
|
51
52
|
logger?: NodeHostedAgentServiceTelemetryLogger;
|
|
52
53
|
processTarget?: NodeHostedAgentServiceTelemetryProcessTarget;
|
|
54
|
+
telemetryProvider?: NodeTelemetryProvider;
|
|
53
55
|
};
|
|
54
56
|
|
|
55
57
|
export type InitializeNodeAgentServiceTelemetryOptions =
|
|
@@ -159,54 +161,29 @@ export async function initializeNodeHostedAgentServiceOpenTelemetry(
|
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
try {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"service.version": options.serviceVersion,
|
|
175
|
-
"deployment.environment": options.deploymentEnvironment,
|
|
176
|
-
});
|
|
177
|
-
const traceExporter = new OTLPTraceExporter({ headers: options.exporterHeaders });
|
|
178
|
-
|
|
179
|
-
const sdk = new NodeSDK({
|
|
180
|
-
resource,
|
|
181
|
-
sampler: new ParentBasedSampler({
|
|
182
|
-
root: new TraceIdRatioBasedSampler(options.samplingRatio),
|
|
183
|
-
}),
|
|
184
|
-
spanProcessor: new BatchSpanProcessor(traceExporter, {
|
|
185
|
-
maxExportBatchSize: 100,
|
|
186
|
-
scheduledDelayMillis: 500,
|
|
187
|
-
}),
|
|
188
|
-
instrumentations: [
|
|
189
|
-
getNodeAutoInstrumentations({
|
|
190
|
-
"@opentelemetry/instrumentation-fs": { enabled: options.instrumentation.fs },
|
|
191
|
-
"@opentelemetry/instrumentation-http": { enabled: options.instrumentation.http },
|
|
192
|
-
"@opentelemetry/instrumentation-express": { enabled: options.instrumentation.express },
|
|
193
|
-
}),
|
|
194
|
-
],
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
sdk.start();
|
|
198
|
-
|
|
199
|
-
logInfo(options.logger, "OpenTelemetry initialized", {
|
|
164
|
+
const telemetryProvider = options.telemetryProvider ??
|
|
165
|
+
tryResolve<NodeTelemetryProvider>(NodeTelemetryProviderName);
|
|
166
|
+
if (!telemetryProvider) {
|
|
167
|
+
logError(
|
|
168
|
+
options.logger,
|
|
169
|
+
"Failed to initialize OpenTelemetry",
|
|
170
|
+
'Missing extension for contract "NodeTelemetryProvider"',
|
|
171
|
+
);
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const initializeOptions: NodeTelemetryInitializeOptions = {
|
|
200
176
|
serviceName: options.serviceName,
|
|
177
|
+
serviceVersion: options.serviceVersion,
|
|
178
|
+
deploymentEnvironment: options.deploymentEnvironment,
|
|
201
179
|
samplingRatio: options.samplingRatio,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
});
|
|
180
|
+
exporterHeaders: options.exporterHeaders,
|
|
181
|
+
instrumentation: options.instrumentation,
|
|
182
|
+
logger: options.logger,
|
|
183
|
+
processTarget: options.processTarget,
|
|
184
|
+
};
|
|
208
185
|
|
|
209
|
-
return
|
|
186
|
+
return await telemetryProvider.initialize(initializeOptions);
|
|
210
187
|
} catch (error) {
|
|
211
188
|
logError(options.logger, "Failed to initialize OpenTelemetry", error);
|
|
212
189
|
return false;
|
|
@@ -1,86 +1,161 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
2
|
+
import type { Schema, SchemaValidator } from "../../extensions/schema/index.js";
|
|
3
|
+
import { defineSchema } from "../../schemas/define.js";
|
|
4
|
+
import { lazySchema } from "../../schemas/lazy.js";
|
|
5
|
+
|
|
6
|
+
export type AgentServiceRegistrationMode = "auto" | "enabled" | "disabled";
|
|
7
|
+
export type AgentServiceRegistrationConfig = {
|
|
8
|
+
VERYFRONT_API_URL: string;
|
|
9
|
+
VERYFRONT_API_TOKEN?: string;
|
|
10
|
+
VERYFRONT_PROJECT_ID?: string;
|
|
11
|
+
VERYFRONT_AGENT_SERVICE_URL?: string;
|
|
12
|
+
VERYFRONT_AGENT_SERVICE_KEY?: string;
|
|
13
|
+
VERYFRONT_AGENT_SERVICE_REGISTRATION: AgentServiceRegistrationMode;
|
|
14
|
+
VERYFRONT_AGENT_SERVICE_HEARTBEAT_INTERVAL_MS: number;
|
|
15
|
+
VERYFRONT_AGENT_SERVICE_REGION?: string;
|
|
16
|
+
};
|
|
17
|
+
export type ResolvedAgentServiceRegistrationInput = {
|
|
18
|
+
apiUrl: string;
|
|
19
|
+
authToken: string;
|
|
20
|
+
serviceName: string;
|
|
21
|
+
serviceKey: string;
|
|
22
|
+
scopeKind: "global" | "project";
|
|
23
|
+
projectId?: string;
|
|
24
|
+
agentId?: string;
|
|
25
|
+
baseUrl: string;
|
|
26
|
+
invokeUrl: string;
|
|
27
|
+
version?: string;
|
|
28
|
+
runtime?: string;
|
|
29
|
+
region?: string;
|
|
30
|
+
heartbeatIntervalMs: number;
|
|
31
|
+
};
|
|
32
|
+
export type AgentPushRuntimeServiceRest = {
|
|
33
|
+
id: string;
|
|
34
|
+
service_name: string;
|
|
35
|
+
service_key: string;
|
|
36
|
+
scope_kind: "global" | "project";
|
|
37
|
+
scope_key: string;
|
|
38
|
+
project_id: string | null;
|
|
39
|
+
agent_id: string | null;
|
|
40
|
+
base_url: string;
|
|
41
|
+
invoke_url: string;
|
|
42
|
+
status: "active" | "disabled";
|
|
43
|
+
capabilities?: unknown | null;
|
|
44
|
+
metadata?: unknown | null;
|
|
45
|
+
version: string | null;
|
|
46
|
+
runtime: string | null;
|
|
47
|
+
region: string | null;
|
|
48
|
+
last_heartbeat_at: string | null;
|
|
49
|
+
created_at: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
};
|
|
52
|
+
export type RegisterAgentPushRuntimeServiceRequest = {
|
|
53
|
+
service_name: string;
|
|
54
|
+
service_key: string;
|
|
55
|
+
scope_kind: "global" | "project";
|
|
56
|
+
project_id?: string;
|
|
57
|
+
agent_id?: string;
|
|
58
|
+
base_url: string;
|
|
59
|
+
invoke_url: string;
|
|
60
|
+
version?: string;
|
|
61
|
+
runtime?: string;
|
|
62
|
+
region?: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
function agentServiceRegistrationMode(
|
|
66
|
+
v: SchemaValidator,
|
|
67
|
+
): Schema<AgentServiceRegistrationMode> {
|
|
68
|
+
return v.enum(["auto", "enabled", "disabled"] as const);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const agentServiceRegistrationModeSchema = lazySchema(
|
|
72
|
+
defineSchema<AgentServiceRegistrationMode>(agentServiceRegistrationMode),
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
export const agentServiceRegistrationConfigSchema = lazySchema(
|
|
76
|
+
defineSchema<AgentServiceRegistrationConfig>((v) =>
|
|
77
|
+
v.object({
|
|
78
|
+
VERYFRONT_API_URL: v.string().url(),
|
|
79
|
+
VERYFRONT_API_TOKEN: v.string().min(1).optional(),
|
|
80
|
+
VERYFRONT_PROJECT_ID: v.string().min(1).optional(),
|
|
81
|
+
VERYFRONT_AGENT_SERVICE_URL: v.string().url().optional(),
|
|
82
|
+
VERYFRONT_AGENT_SERVICE_KEY: v.string().min(1).max(128).optional(),
|
|
83
|
+
VERYFRONT_AGENT_SERVICE_REGISTRATION: agentServiceRegistrationMode(v),
|
|
84
|
+
VERYFRONT_AGENT_SERVICE_HEARTBEAT_INTERVAL_MS: v.number().positive(),
|
|
85
|
+
VERYFRONT_AGENT_SERVICE_REGION: v.string().min(1).max(128).optional(),
|
|
86
|
+
})
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
export const resolvedAgentServiceRegistrationInputSchema = lazySchema(
|
|
91
|
+
defineSchema<ResolvedAgentServiceRegistrationInput>((v) =>
|
|
92
|
+
v.object({
|
|
93
|
+
apiUrl: v.string().url(),
|
|
94
|
+
authToken: v.string().min(1),
|
|
95
|
+
serviceName: v.string().min(1).max(128),
|
|
96
|
+
serviceKey: v.string().min(1).max(128),
|
|
97
|
+
scopeKind: v.enum(["global", "project"] as const),
|
|
98
|
+
projectId: v.string().min(1).optional(),
|
|
99
|
+
agentId: v.string().min(1).max(128).optional(),
|
|
100
|
+
baseUrl: v.string().url(),
|
|
101
|
+
invokeUrl: v.string().url(),
|
|
102
|
+
version: v.string().min(1).max(128).optional(),
|
|
103
|
+
runtime: v.string().min(1).max(128).optional(),
|
|
104
|
+
region: v.string().min(1).max(128).optional(),
|
|
105
|
+
heartbeatIntervalMs: v.number().positive(),
|
|
106
|
+
})
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
function agentPushRuntimeServiceRest(
|
|
111
|
+
v: SchemaValidator,
|
|
112
|
+
): Schema<AgentPushRuntimeServiceRest> {
|
|
113
|
+
return v.object({
|
|
114
|
+
id: v.string().uuid(),
|
|
115
|
+
service_name: v.string(),
|
|
116
|
+
service_key: v.string(),
|
|
117
|
+
scope_kind: v.enum(["global", "project"] as const),
|
|
118
|
+
scope_key: v.string(),
|
|
119
|
+
project_id: v.string().nullable(),
|
|
120
|
+
agent_id: v.string().nullable(),
|
|
121
|
+
base_url: v.string().url(),
|
|
122
|
+
invoke_url: v.string().url(),
|
|
123
|
+
status: v.enum(["active", "disabled"] as const),
|
|
124
|
+
capabilities: v.unknown().nullable(),
|
|
125
|
+
metadata: v.unknown().nullable(),
|
|
126
|
+
version: v.string().nullable(),
|
|
127
|
+
runtime: v.string().nullable(),
|
|
128
|
+
region: v.string().nullable(),
|
|
129
|
+
last_heartbeat_at: v.string().nullable(),
|
|
130
|
+
created_at: v.string(),
|
|
131
|
+
updated_at: v.string(),
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const agentPushRuntimeServiceResponseSchema = lazySchema(
|
|
136
|
+
defineSchema<{ service: AgentPushRuntimeServiceRest }>((v) =>
|
|
137
|
+
v.object({
|
|
138
|
+
service: agentPushRuntimeServiceRest(v),
|
|
139
|
+
})
|
|
140
|
+
),
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
const registerAgentPushRuntimeServiceRequestSchema = lazySchema(
|
|
144
|
+
defineSchema<RegisterAgentPushRuntimeServiceRequest>((v) =>
|
|
145
|
+
v.object({
|
|
146
|
+
service_name: v.string().min(1).max(128),
|
|
147
|
+
service_key: v.string().min(1).max(128),
|
|
148
|
+
scope_kind: v.enum(["global", "project"] as const),
|
|
149
|
+
project_id: v.string().optional(),
|
|
150
|
+
agent_id: v.string().optional(),
|
|
151
|
+
base_url: v.string().url(),
|
|
152
|
+
invoke_url: v.string().url(),
|
|
153
|
+
version: v.string().optional(),
|
|
154
|
+
runtime: v.string().optional(),
|
|
155
|
+
region: v.string().optional(),
|
|
156
|
+
})
|
|
157
|
+
),
|
|
158
|
+
);
|
|
84
159
|
|
|
85
160
|
export type AgentServiceRegistrationLogger = {
|
|
86
161
|
info?: (message: string, metadata?: Record<string, unknown>) => void;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**************************
|
|
2
|
+
* Agent Testing Utilities
|
|
3
|
+
*
|
|
4
|
+
* Utilities for testing agents in development and CI/CD.
|
|
5
|
+
*
|
|
6
|
+
* @module veryfront/agent/testing
|
|
7
|
+
**************************/
|
|
8
|
+
import * as dntShim from "../../../_dnt.shims.js";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import type { Agent, AgentResponse, Message } from "../types.js";
|
|
12
|
+
|
|
13
|
+
export interface TestCase {
|
|
14
|
+
/** Test name */
|
|
15
|
+
name: string;
|
|
16
|
+
|
|
17
|
+
/** Input to agent */
|
|
18
|
+
input: string | Message[];
|
|
19
|
+
|
|
20
|
+
/** Expected output pattern (regex or string) */
|
|
21
|
+
expected?: RegExp | string;
|
|
22
|
+
|
|
23
|
+
/** Expected tool calls */
|
|
24
|
+
expectToolCalls?: string[];
|
|
25
|
+
|
|
26
|
+
/** Maximum execution time (ms) */
|
|
27
|
+
timeout?: number;
|
|
28
|
+
|
|
29
|
+
/** Custom validator */
|
|
30
|
+
validate?: (response: AgentResponse) => boolean | Promise<boolean>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface TestResult {
|
|
34
|
+
/** Test case name */
|
|
35
|
+
name: string;
|
|
36
|
+
|
|
37
|
+
/** Pass/fail */
|
|
38
|
+
passed: boolean;
|
|
39
|
+
|
|
40
|
+
/** Response from agent */
|
|
41
|
+
response?: AgentResponse;
|
|
42
|
+
|
|
43
|
+
/** Error if test failed */
|
|
44
|
+
error?: string;
|
|
45
|
+
|
|
46
|
+
/** Execution time */
|
|
47
|
+
executionTime: number;
|
|
48
|
+
|
|
49
|
+
/** Tool calls made */
|
|
50
|
+
toolCalls: string[];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface TestSuite {
|
|
54
|
+
/** Suite name */
|
|
55
|
+
name: string;
|
|
56
|
+
|
|
57
|
+
/** Test results */
|
|
58
|
+
results: TestResult[];
|
|
59
|
+
|
|
60
|
+
/** Overall pass/fail */
|
|
61
|
+
passed: boolean;
|
|
62
|
+
|
|
63
|
+
/** Total execution time */
|
|
64
|
+
totalTime: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export async function testAgent(agent: Agent, testCases: TestCase[]): Promise<TestSuite> {
|
|
68
|
+
const suiteStartTime = Date.now();
|
|
69
|
+
const results = await Promise.all(testCases.map((testCase) => runTestCase(agent, testCase)));
|
|
70
|
+
const passed = results.every((r) => r.passed);
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
name: agent.id,
|
|
74
|
+
results,
|
|
75
|
+
passed,
|
|
76
|
+
totalTime: Date.now() - suiteStartTime,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async function runTestCase(agent: Agent, testCase: TestCase): Promise<TestResult> {
|
|
81
|
+
const startTime = Date.now();
|
|
82
|
+
|
|
83
|
+
try {
|
|
84
|
+
const timeoutMs = testCase.timeout ?? 30000;
|
|
85
|
+
let timeoutId: ReturnType<typeof dntShim.setTimeout> | undefined;
|
|
86
|
+
let response: AgentResponse;
|
|
87
|
+
try {
|
|
88
|
+
response = await Promise.race<AgentResponse>([
|
|
89
|
+
agent.generate({ input: testCase.input }),
|
|
90
|
+
new Promise<never>((_, reject) => {
|
|
91
|
+
timeoutId = dntShim.setTimeout(() => reject(new Error("Test timeout")), timeoutMs);
|
|
92
|
+
}),
|
|
93
|
+
]);
|
|
94
|
+
} finally {
|
|
95
|
+
clearTimeout(timeoutId);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const executionTime = Date.now() - startTime;
|
|
99
|
+
const toolCalls = response.toolCalls.map((tc) => tc.name);
|
|
100
|
+
|
|
101
|
+
const { passed, error } = await validateTestCase(testCase, response, toolCalls);
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
name: testCase.name,
|
|
105
|
+
passed,
|
|
106
|
+
response,
|
|
107
|
+
error,
|
|
108
|
+
executionTime,
|
|
109
|
+
toolCalls,
|
|
110
|
+
};
|
|
111
|
+
} catch (error) {
|
|
112
|
+
return {
|
|
113
|
+
name: testCase.name,
|
|
114
|
+
passed: false,
|
|
115
|
+
error: error instanceof Error ? error.message : String(error),
|
|
116
|
+
executionTime: Date.now() - startTime,
|
|
117
|
+
toolCalls: [],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function validateTestCase(
|
|
123
|
+
testCase: TestCase,
|
|
124
|
+
response: AgentResponse,
|
|
125
|
+
toolCalls: string[],
|
|
126
|
+
): Promise<{ passed: boolean; error?: string }> {
|
|
127
|
+
const expected = testCase.expected;
|
|
128
|
+
|
|
129
|
+
if (expected instanceof RegExp) {
|
|
130
|
+
if (!expected.test(response.text)) {
|
|
131
|
+
return {
|
|
132
|
+
passed: false,
|
|
133
|
+
error: `Output "${response.text}" does not match pattern ${expected}`,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
} else if (typeof expected === "string") {
|
|
137
|
+
if (!response.text.includes(expected)) {
|
|
138
|
+
return {
|
|
139
|
+
passed: false,
|
|
140
|
+
error: `Output does not contain expected text: "${expected}"`,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const expectedTools = testCase.expectToolCalls;
|
|
146
|
+
if (expectedTools?.length) {
|
|
147
|
+
const missingTools = expectedTools.filter((t) => !toolCalls.includes(t));
|
|
148
|
+
if (missingTools.length) {
|
|
149
|
+
return {
|
|
150
|
+
passed: false,
|
|
151
|
+
error: `Expected tool calls not found: ${missingTools.join(", ")}`,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (testCase.validate) {
|
|
157
|
+
try {
|
|
158
|
+
const passed = await testCase.validate(response);
|
|
159
|
+
if (!passed) return { passed: false, error: "Custom validation failed" };
|
|
160
|
+
} catch (error) {
|
|
161
|
+
return {
|
|
162
|
+
passed: false,
|
|
163
|
+
error: `Custom validation error: ${error instanceof Error ? error.message : String(error)}`,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return { passed: true };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function printTestResults(suite: TestSuite): void {
|
|
172
|
+
console.log(`\n=== Test Suite: ${suite.name} ===\n`);
|
|
173
|
+
|
|
174
|
+
const passed = suite.results.filter((r) => r.passed).length;
|
|
175
|
+
const total = suite.results.length;
|
|
176
|
+
|
|
177
|
+
for (const [index, result] of suite.results.entries()) {
|
|
178
|
+
const icon = result.passed ? "✅" : "❌";
|
|
179
|
+
console.log(`${icon} ${index + 1}. ${result.name}`);
|
|
180
|
+
|
|
181
|
+
if (!result.passed && result.error) console.log(` Error: ${result.error}`);
|
|
182
|
+
if (result.toolCalls.length) console.log(` Tools used: ${result.toolCalls.join(", ")}`);
|
|
183
|
+
|
|
184
|
+
console.log(` Time: ${result.executionTime}ms\n`);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
console.log(`Results: ${passed}/${total} passed`);
|
|
188
|
+
console.log(`Total time: ${suite.totalTime}ms`);
|
|
189
|
+
console.log(`Status: ${suite.passed ? "✅ PASSED" : "❌ FAILED"}\n`);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function assertContains(response: AgentResponse, text: string): boolean {
|
|
193
|
+
return response.text.toLowerCase().includes(text.toLowerCase());
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function assertToolCalled(response: AgentResponse, toolName: string): boolean {
|
|
197
|
+
return response.toolCalls.some((tc) => tc.name === toolName);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function assertCompleted(response: AgentResponse): boolean {
|
|
201
|
+
return response.status === "completed";
|
|
202
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Testing Utilities
|
|
3
|
+
*
|
|
4
|
+
* @module veryfront/agent/testing
|
|
5
|
+
*/
|
|
6
|
+
import "../../../_dnt.polyfills.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
assertCompleted,
|
|
11
|
+
assertContains,
|
|
12
|
+
assertToolCalled,
|
|
13
|
+
printTestResults,
|
|
14
|
+
testAgent,
|
|
15
|
+
type TestCase,
|
|
16
|
+
type TestResult,
|
|
17
|
+
type TestSuite,
|
|
18
|
+
} from "./agent-tester.js";
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
buildFailureSuffix,
|
|
22
|
+
buildLiveEvalCaseTagSummary,
|
|
23
|
+
buildLiveEvalRequestBody,
|
|
24
|
+
type BuildLiveEvalRequestBodyInput,
|
|
25
|
+
buildLiveEvalRuntimeSummary,
|
|
26
|
+
buildLiveEvalStatusSummary,
|
|
27
|
+
buildProgressLine,
|
|
28
|
+
buildRuntimePerformanceSummary,
|
|
29
|
+
containsOrderedSubsequence,
|
|
30
|
+
createFailedEvalResult,
|
|
31
|
+
createPassedEvalResult,
|
|
32
|
+
createPlainTextPdf,
|
|
33
|
+
createSkippedEvalResult,
|
|
34
|
+
hasEveryLiveEvalTag,
|
|
35
|
+
type LiveEvalCaseMetadata,
|
|
36
|
+
type LiveEvalCaseSelectionInput,
|
|
37
|
+
type LiveEvalResultForPerformance,
|
|
38
|
+
type LiveEvalResultForReport,
|
|
39
|
+
type LiveEvalResultRecord,
|
|
40
|
+
type LiveEvalRuntime,
|
|
41
|
+
resolveLiveEvalRequestedCaseIds,
|
|
42
|
+
type RuntimePerformanceSummary,
|
|
43
|
+
selectLiveEvalCases,
|
|
44
|
+
} from "./live-evals/index.js";
|