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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Compat category barrel —
|
|
2
|
+
* Compat category barrel — optional native runtime services.
|
|
3
3
|
*
|
|
4
4
|
* @module extensions/compat
|
|
5
5
|
*/
|
|
@@ -7,8 +7,9 @@ import "../../../_dnt.polyfills.js";
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
export type {
|
|
10
|
+
DocumentExtractor,
|
|
10
11
|
KreuzbergExtractor,
|
|
11
|
-
|
|
12
|
-
NodeCompatSqliteDatabase,
|
|
12
|
+
SqliteDatabase,
|
|
13
13
|
SqliteStatement,
|
|
14
|
-
|
|
14
|
+
SqliteStore,
|
|
15
|
+
} from "./native-services.js";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Contract
|
|
2
|
+
* Contract interfaces for optional native runtime services.
|
|
3
3
|
*
|
|
4
|
-
* Default
|
|
4
|
+
* Default implementations:
|
|
5
|
+
* - `@veryfront/ext-document-kreuzberg` for `DocumentExtractor`
|
|
6
|
+
* - `@veryfront/ext-db-sqlite` for `SqliteStore`
|
|
5
7
|
*
|
|
6
|
-
* @module extensions/compat/
|
|
8
|
+
* @module extensions/compat/native-services
|
|
7
9
|
*/
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -20,12 +22,12 @@ export interface SqliteStatement {
|
|
|
20
22
|
* Minimal interface for a SQLite database connection, compatible with
|
|
21
23
|
* `better-sqlite3`'s `Database` shape as consumed by `SqliteKv`.
|
|
22
24
|
*
|
|
23
|
-
* Mirrors `SqliteDatabase` in `src/platform/compat/kv/types.ts
|
|
25
|
+
* Mirrors `SqliteDatabase` in `src/platform/compat/kv/types.ts`. Kept
|
|
24
26
|
* separate here so extensions can import from the public
|
|
25
27
|
* `veryfront/extensions/compat` entrypoint without taking a dependency
|
|
26
28
|
* on internal platform paths.
|
|
27
29
|
*/
|
|
28
|
-
export interface
|
|
30
|
+
export interface SqliteDatabase {
|
|
29
31
|
exec(sql: string): void;
|
|
30
32
|
prepare(sql: string): SqliteStatement;
|
|
31
33
|
close(): void;
|
|
@@ -44,17 +46,9 @@ export interface KreuzbergExtractor {
|
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* Implementations provide access to Node.js-only packages
|
|
50
|
-
* (`@kreuzberg/wasm`, `better-sqlite3`) in environments where those
|
|
51
|
-
* packages are available (i.e. a full Node/Deno runtime, not a compiled
|
|
52
|
-
* binary or edge runtime).
|
|
53
|
-
*
|
|
54
|
-
* Both methods are optional on the interface so that partial
|
|
55
|
-
* implementations (e.g. SQLite-only or kreuzberg-only) are valid.
|
|
49
|
+
* Document extraction contract.
|
|
56
50
|
*/
|
|
57
|
-
export interface
|
|
51
|
+
export interface DocumentExtractor {
|
|
58
52
|
/**
|
|
59
53
|
* Initialise and return the kreuzberg document-extraction module.
|
|
60
54
|
*
|
|
@@ -64,18 +58,18 @@ export interface NodeCompat {
|
|
|
64
58
|
importKreuzberg?(): Promise<KreuzbergExtractor>;
|
|
65
59
|
|
|
66
60
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* Owned by the extension so that the worker script lives in a module
|
|
70
|
-
* graph where `@kreuzberg/wasm` resolves and the NodeCompat contract
|
|
71
|
-
* is reachable (Deno worker isolates do not share the main-thread
|
|
72
|
-
* contract registry).
|
|
61
|
+
* Extract text from a document buffer.
|
|
73
62
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
63
|
+
* Implementations may run extraction inside an isolated worker or call a
|
|
64
|
+
* native implementation directly.
|
|
76
65
|
*/
|
|
77
66
|
extractInWorker?(buffer: ArrayBuffer, mimeType: string): Promise<string>;
|
|
67
|
+
}
|
|
78
68
|
|
|
69
|
+
/**
|
|
70
|
+
* SQLite-backed storage contract.
|
|
71
|
+
*/
|
|
72
|
+
export interface SqliteStore {
|
|
79
73
|
/**
|
|
80
74
|
* Open (or create) a SQLite database at `path`.
|
|
81
75
|
*
|
|
@@ -85,5 +79,5 @@ export interface NodeCompat {
|
|
|
85
79
|
* Callers should fall back to the in-memory KV when this method is
|
|
86
80
|
* absent or throws.
|
|
87
81
|
*/
|
|
88
|
-
openSqliteDatabase?(path?: string): Promise<
|
|
82
|
+
openSqliteDatabase?(path?: string): Promise<SqliteDatabase>;
|
|
89
83
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Contract interface for content processing pipelines.
|
|
3
3
|
*
|
|
4
|
-
* Default implementation: `@veryfront/ext-
|
|
4
|
+
* Default implementation: `@veryfront/ext-content-mdx`
|
|
5
5
|
*
|
|
6
6
|
* Implementations process MDX / Markdown source into renderable JavaScript
|
|
7
7
|
* modules plus extracted metadata. Core's `src/transforms/md/compiler` and
|
|
8
8
|
* `src/transforms/mdx/compiler` delegate to the registered implementation;
|
|
9
9
|
* when none is registered, the compile paths throw an actionable install
|
|
10
|
-
* message pointing at `@veryfront/ext-
|
|
10
|
+
* message pointing at `@veryfront/ext-content-mdx`.
|
|
11
11
|
*
|
|
12
12
|
* The two compile methods have the same option shape on purpose so a single
|
|
13
13
|
* dispatcher (see `src/transforms/mdx/compiler/index.ts::compileContent`)
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* and defaults are preserved so the extension boundary is a pure refactor,
|
|
17
17
|
* not a behavior change.
|
|
18
18
|
*
|
|
19
|
-
* @module extensions/
|
|
19
|
+
* @module extensions/content/content-processor
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/** Compilation mode. Dev surfaces extra diagnostics. */
|
|
@@ -59,6 +59,12 @@ export interface ContentCompileOptions {
|
|
|
59
59
|
baseUrl?: string;
|
|
60
60
|
/** When true, preserves node-position metadata for studio overlays. */
|
|
61
61
|
studioEmbed?: boolean;
|
|
62
|
+
/** MDX output shape. Defaults to "program". */
|
|
63
|
+
outputFormat?: "program" | "function-body";
|
|
64
|
+
/** Additional remark plugins supplied by legacy build helpers. */
|
|
65
|
+
remarkPlugins?: ContentPlugin[];
|
|
66
|
+
/** Additional rehype plugins supplied by legacy build helpers. */
|
|
67
|
+
rehypePlugins?: ContentPlugin[];
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
/**
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module extensions/contracts
|
|
5
5
|
*/
|
|
6
|
+
import "../../_dnt.polyfills.js";
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
import { MISSING_EXTENSION_ERROR } from "./errors.js";
|
|
8
10
|
import { getRecommendation } from "./recommendations.js";
|
|
@@ -31,6 +33,10 @@ export function register<T>(name: string, impl: T): void {
|
|
|
31
33
|
contracts.set(name, impl);
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
export function unregister(name: string): void {
|
|
37
|
+
contracts.delete(name);
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
export function reset(): void {
|
|
35
41
|
contracts.clear();
|
|
36
42
|
}
|
|
@@ -77,3 +77,14 @@ export {
|
|
|
77
77
|
EXTENSION_VALIDATION_ERROR,
|
|
78
78
|
MISSING_EXTENSION_ERROR,
|
|
79
79
|
} from "./errors.js";
|
|
80
|
+
|
|
81
|
+
// Sandbox
|
|
82
|
+
export type {
|
|
83
|
+
CreateSandboxShellToolsInput,
|
|
84
|
+
SandboxShellClient,
|
|
85
|
+
SandboxShellToolDefinition,
|
|
86
|
+
SandboxShellToolExecute,
|
|
87
|
+
SandboxShellToolSet,
|
|
88
|
+
SandboxShellToolsProvider,
|
|
89
|
+
} from "./sandbox/index.js";
|
|
90
|
+
export { SandboxShellToolsProviderName } from "./sandbox/index.js";
|
|
@@ -9,21 +9,20 @@ const recommendations = new Map<string, string>([
|
|
|
9
9
|
// ModuleLexer ships in the same package as Bundler (es-module-lexer +
|
|
10
10
|
// esbuild are co-bundled into ext-bundler-esbuild).
|
|
11
11
|
["ModuleLexer", "@veryfront/ext-bundler-esbuild"],
|
|
12
|
-
["CacheStore", "@veryfront/ext-cache-redis"],
|
|
13
12
|
["TokenCacheStore", "@veryfront/ext-cache-redis"],
|
|
14
13
|
["CSSProcessor", "@veryfront/ext-css-tailwind"],
|
|
15
|
-
["ContentProcessor", "@veryfront/ext-
|
|
16
|
-
["
|
|
14
|
+
["ContentProcessor", "@veryfront/ext-content-mdx"],
|
|
15
|
+
["DocumentExtractor", "@veryfront/ext-document-kreuzberg"],
|
|
17
16
|
["AuthProvider", "@veryfront/ext-auth-jwt"],
|
|
18
17
|
["TracingExporter", "@veryfront/ext-tracing-opentelemetry"],
|
|
19
|
-
["
|
|
18
|
+
["NodeTelemetryProvider", "@veryfront/ext-tracing-opentelemetry"],
|
|
20
19
|
["LLMProvider:openai", "@veryfront/ext-llm-openai"],
|
|
21
20
|
["LLMProvider:anthropic", "@veryfront/ext-llm-anthropic"],
|
|
22
21
|
["LLMProvider:google", "@veryfront/ext-llm-google"],
|
|
23
|
-
["EmbeddingProvider", "@veryfront/ext-embeddings"],
|
|
24
22
|
["CodeParser", "@veryfront/ext-parser-babel"],
|
|
25
|
-
["SchemaValidator", "@veryfront/ext-zod"],
|
|
26
|
-
["
|
|
23
|
+
["SchemaValidator", "@veryfront/ext-schema-zod"],
|
|
24
|
+
["SqliteStore", "@veryfront/ext-db-sqlite"],
|
|
25
|
+
["SandboxShellToolsProvider", "@veryfront/ext-sandbox-shell-tools"],
|
|
27
26
|
]);
|
|
28
27
|
|
|
29
28
|
export function getRecommendation(contractName: string): string | undefined {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox category barrel.
|
|
3
|
+
*
|
|
4
|
+
* @module extensions/sandbox
|
|
5
|
+
*/
|
|
6
|
+
import "../../../_dnt.polyfills.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export type {
|
|
10
|
+
CreateSandboxShellToolsInput,
|
|
11
|
+
SandboxShellClient,
|
|
12
|
+
SandboxShellToolDefinition,
|
|
13
|
+
SandboxShellToolExecute,
|
|
14
|
+
SandboxShellToolSet,
|
|
15
|
+
SandboxShellToolsProvider,
|
|
16
|
+
} from "./shell-tools.js";
|
|
17
|
+
|
|
18
|
+
export { SandboxShellToolsProviderName } from "./shell-tools.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Tool, ToolExecutionContext } from "../../tool/index.js";
|
|
2
|
+
import type { JsonSchema } from "../../tool/schema/json-schema.js";
|
|
3
|
+
|
|
4
|
+
export const SandboxShellToolsProviderName = "SandboxShellToolsProvider";
|
|
5
|
+
|
|
6
|
+
export type SandboxShellToolExecute = {
|
|
7
|
+
bivarianceHack: (input: unknown, options?: ToolExecutionContext) => Promise<unknown> | unknown;
|
|
8
|
+
}["bivarianceHack"];
|
|
9
|
+
|
|
10
|
+
export type SandboxShellToolDefinition = {
|
|
11
|
+
id?: string;
|
|
12
|
+
type?: Tool["type"];
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
inputSchema?: unknown;
|
|
16
|
+
inputSchemaJson?: JsonSchema;
|
|
17
|
+
parameters?: unknown;
|
|
18
|
+
providerOptions?: unknown;
|
|
19
|
+
execute?: Tool["execute"] | SandboxShellToolExecute;
|
|
20
|
+
mcp?: Tool["mcp"];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type SandboxShellToolSet = Record<string, SandboxShellToolDefinition>;
|
|
24
|
+
|
|
25
|
+
export type SandboxShellClient = {
|
|
26
|
+
ensure?: () => Promise<void> | void;
|
|
27
|
+
executeCommand: (command: string, options?: unknown) => Promise<unknown>;
|
|
28
|
+
readFile?: (path: string) => Promise<unknown> | unknown;
|
|
29
|
+
writeFiles?: (files: unknown[]) => Promise<unknown> | unknown;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type CreateSandboxShellToolsInput = {
|
|
33
|
+
sandbox: SandboxShellClient;
|
|
34
|
+
destination: string;
|
|
35
|
+
promptOptions: {
|
|
36
|
+
toolPrompt: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type SandboxShellToolsProvider = (
|
|
41
|
+
input: CreateSandboxShellToolsInput,
|
|
42
|
+
) => Promise<{ tools: Record<string, unknown> }>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Contract interface for schema validation.
|
|
3
3
|
*
|
|
4
|
-
* Default implementation: `@veryfront/ext-zod`
|
|
4
|
+
* Default implementation: `@veryfront/ext-schema-zod`
|
|
5
5
|
*
|
|
6
6
|
* The interface exposes a small DSL (inspired by zod) that lets core modules
|
|
7
7
|
* declare validation schemas without importing zod directly. Schemas are
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tracing category barrel
|
|
2
|
+
* Tracing category barrel: tracing and Node telemetry contracts.
|
|
3
3
|
*
|
|
4
4
|
* @module extensions/tracing
|
|
5
5
|
*/
|
|
@@ -7,3 +7,11 @@ import "../../../_dnt.polyfills.js";
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
export type { SpanData, TracerProvider, TracingExporter } from "./tracing-exporter.js";
|
|
10
|
+
export type {
|
|
11
|
+
NodeTelemetryInitializeOptions,
|
|
12
|
+
NodeTelemetryInstrumentationConfig,
|
|
13
|
+
NodeTelemetryLogger,
|
|
14
|
+
NodeTelemetryProcessTarget,
|
|
15
|
+
NodeTelemetryProvider,
|
|
16
|
+
} from "./node-telemetry-provider.js";
|
|
17
|
+
export { NodeTelemetryProviderName } from "./node-telemetry-provider.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract interface for Node.js OpenTelemetry runtime bootstrap.
|
|
3
|
+
*
|
|
4
|
+
* Default implementation: `@veryfront/ext-tracing-opentelemetry`
|
|
5
|
+
*
|
|
6
|
+
* @module extensions/tracing/node-telemetry-provider
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export const NodeTelemetryProviderName = "NodeTelemetryProvider";
|
|
10
|
+
|
|
11
|
+
export type NodeTelemetryInstrumentationConfig = {
|
|
12
|
+
http: boolean;
|
|
13
|
+
express: boolean;
|
|
14
|
+
fs: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type NodeTelemetryLogger = {
|
|
18
|
+
info(message: string, metadata?: Record<string, unknown>): void;
|
|
19
|
+
error(message: string, metadata?: Record<string, unknown>): void;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type NodeTelemetryProcessTarget = {
|
|
23
|
+
on(event: "SIGTERM", listener: () => void | Promise<void>): unknown;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type NodeTelemetryInitializeOptions = {
|
|
27
|
+
serviceName: string;
|
|
28
|
+
serviceVersion: string;
|
|
29
|
+
deploymentEnvironment: string;
|
|
30
|
+
samplingRatio: number;
|
|
31
|
+
exporterHeaders?: Record<string, string>;
|
|
32
|
+
instrumentation: NodeTelemetryInstrumentationConfig;
|
|
33
|
+
logger?: NodeTelemetryLogger;
|
|
34
|
+
processTarget?: NodeTelemetryProcessTarget;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initializes Node-specific OpenTelemetry SDK behavior.
|
|
39
|
+
*
|
|
40
|
+
* This contract covers NodeSDK and auto-instrumentation setup. It is separate
|
|
41
|
+
* from `TracingExporter`, which only exposes tracing APIs to the core shim.
|
|
42
|
+
*/
|
|
43
|
+
export interface NodeTelemetryProvider {
|
|
44
|
+
initialize(options: NodeTelemetryInitializeOptions): Promise<boolean>;
|
|
45
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineSchema } from "../../schemas/index.js";
|
|
1
|
+
import { defineSchema, lazySchema } from "../../schemas/index.js";
|
|
2
2
|
import type { InferSchema } from "../../extensions/schema/index.js";
|
|
3
3
|
|
|
4
4
|
export const getColorSchemeSchema = defineSchema((v) => v.enum(["light", "dark"]));
|
|
@@ -80,9 +80,9 @@ export type HTMLGenerationOptions = InferSchema<ReturnType<typeof getHTMLGenerat
|
|
|
80
80
|
export type HydrationData = InferSchema<ReturnType<typeof getHydrationDataSchema>>;
|
|
81
81
|
|
|
82
82
|
// Backward compat aliases
|
|
83
|
-
export const colorSchemeSchema = getColorSchemeSchema
|
|
84
|
-
export const environmentSchema = getEnvironmentSchema
|
|
85
|
-
export const pageTypeSchema = getPageTypeSchema
|
|
86
|
-
export const clientModuleStrategySchema = getClientModuleStrategySchema
|
|
87
|
-
export const HTMLGenerationOptionsSchema = getHTMLGenerationOptionsSchema
|
|
88
|
-
export const HydrationDataSchema = getHydrationDataSchema
|
|
83
|
+
export const colorSchemeSchema = lazySchema(getColorSchemeSchema);
|
|
84
|
+
export const environmentSchema = lazySchema(getEnvironmentSchema);
|
|
85
|
+
export const pageTypeSchema = lazySchema(getPageTypeSchema);
|
|
86
|
+
export const clientModuleStrategySchema = lazySchema(getClientModuleStrategySchema);
|
|
87
|
+
export const HTMLGenerationOptionsSchema = lazySchema(getHTMLGenerationOptionsSchema);
|
|
88
|
+
export const HydrationDataSchema = lazySchema(getHydrationDataSchema);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineSchema } from "../schemas/index.js";
|
|
1
|
+
import { defineSchema, lazySchema } from "../schemas/index.js";
|
|
2
2
|
import type { InferSchema } from "../extensions/schema/index.js";
|
|
3
3
|
|
|
4
4
|
const integrationNames = [
|
|
@@ -55,7 +55,7 @@ const integrationNames = [
|
|
|
55
55
|
] as const;
|
|
56
56
|
|
|
57
57
|
export const getIntegrationNameSchema = defineSchema((v) => v.enum(integrationNames));
|
|
58
|
-
export const IntegrationNameSchema = getIntegrationNameSchema
|
|
58
|
+
export const IntegrationNameSchema = lazySchema(getIntegrationNameSchema);
|
|
59
59
|
|
|
60
60
|
export const getEnvVarSchema = defineSchema((v) =>
|
|
61
61
|
v.object({
|
|
@@ -68,7 +68,7 @@ export const getEnvVarSchema = defineSchema((v) =>
|
|
|
68
68
|
default: v.string().optional(),
|
|
69
69
|
})
|
|
70
70
|
);
|
|
71
|
-
export const EnvVarSchema = getEnvVarSchema
|
|
71
|
+
export const EnvVarSchema = lazySchema(getEnvVarSchema);
|
|
72
72
|
|
|
73
73
|
export const getOAuthFieldSchema = defineSchema((v) =>
|
|
74
74
|
v.object({
|
|
@@ -80,7 +80,7 @@ export const getOAuthFieldSchema = defineSchema((v) =>
|
|
|
80
80
|
default: v.string().optional(),
|
|
81
81
|
})
|
|
82
82
|
);
|
|
83
|
-
export const OAuthFieldSchema = getOAuthFieldSchema
|
|
83
|
+
export const OAuthFieldSchema = lazySchema(getOAuthFieldSchema);
|
|
84
84
|
|
|
85
85
|
export const getOAuthConfigSchema = defineSchema((v) =>
|
|
86
86
|
v.object({
|
|
@@ -110,7 +110,7 @@ export const getOAuthConfigSchema = defineSchema((v) =>
|
|
|
110
110
|
docsUrl: v.string().optional(),
|
|
111
111
|
})
|
|
112
112
|
);
|
|
113
|
-
export const OAuthConfigSchema = getOAuthConfigSchema
|
|
113
|
+
export const OAuthConfigSchema = lazySchema(getOAuthConfigSchema);
|
|
114
114
|
|
|
115
115
|
export const getIntegrationEndpointParamSchema = defineSchema((v) =>
|
|
116
116
|
v.object({
|
|
@@ -121,7 +121,7 @@ export const getIntegrationEndpointParamSchema = defineSchema((v) =>
|
|
|
121
121
|
default: v.unknown().optional(),
|
|
122
122
|
})
|
|
123
123
|
);
|
|
124
|
-
export const IntegrationEndpointParamSchema = getIntegrationEndpointParamSchema
|
|
124
|
+
export const IntegrationEndpointParamSchema = lazySchema(getIntegrationEndpointParamSchema);
|
|
125
125
|
|
|
126
126
|
export const getIntegrationEndpointBodyFieldSchema = defineSchema((v) =>
|
|
127
127
|
v.object({
|
|
@@ -131,7 +131,7 @@ export const getIntegrationEndpointBodyFieldSchema = defineSchema((v) =>
|
|
|
131
131
|
default: v.unknown().optional(),
|
|
132
132
|
})
|
|
133
133
|
);
|
|
134
|
-
export const IntegrationEndpointBodyFieldSchema = getIntegrationEndpointBodyFieldSchema
|
|
134
|
+
export const IntegrationEndpointBodyFieldSchema = lazySchema(getIntegrationEndpointBodyFieldSchema);
|
|
135
135
|
|
|
136
136
|
export const getIntegrationEndpointSchema = defineSchema((v) =>
|
|
137
137
|
v.object({
|
|
@@ -145,7 +145,7 @@ export const getIntegrationEndpointSchema = defineSchema((v) =>
|
|
|
145
145
|
response: v.object({ transform: v.string().optional() }).optional(),
|
|
146
146
|
})
|
|
147
147
|
);
|
|
148
|
-
export const IntegrationEndpointSchema = getIntegrationEndpointSchema
|
|
148
|
+
export const IntegrationEndpointSchema = lazySchema(getIntegrationEndpointSchema);
|
|
149
149
|
|
|
150
150
|
export const getIntegrationToolSchema = defineSchema((v) =>
|
|
151
151
|
v.object({
|
|
@@ -157,7 +157,7 @@ export const getIntegrationToolSchema = defineSchema((v) =>
|
|
|
157
157
|
endpoint: getIntegrationEndpointSchema().optional(),
|
|
158
158
|
})
|
|
159
159
|
);
|
|
160
|
-
export const IntegrationToolSchema = getIntegrationToolSchema
|
|
160
|
+
export const IntegrationToolSchema = lazySchema(getIntegrationToolSchema);
|
|
161
161
|
|
|
162
162
|
export const getIntegrationPromptSchema = defineSchema((v) =>
|
|
163
163
|
v.object({
|
|
@@ -168,7 +168,7 @@ export const getIntegrationPromptSchema = defineSchema((v) =>
|
|
|
168
168
|
icon: v.string().optional(),
|
|
169
169
|
})
|
|
170
170
|
);
|
|
171
|
-
export const IntegrationPromptSchema = getIntegrationPromptSchema
|
|
171
|
+
export const IntegrationPromptSchema = lazySchema(getIntegrationPromptSchema);
|
|
172
172
|
|
|
173
173
|
export const getIntegrationConfigSchema = defineSchema((v) =>
|
|
174
174
|
v.object({
|
|
@@ -193,7 +193,7 @@ export const getIntegrationConfigSchema = defineSchema((v) =>
|
|
|
193
193
|
category: v.string().optional(),
|
|
194
194
|
})
|
|
195
195
|
);
|
|
196
|
-
export const IntegrationConfigSchema = getIntegrationConfigSchema
|
|
196
|
+
export const IntegrationConfigSchema = lazySchema(getIntegrationConfigSchema);
|
|
197
197
|
|
|
198
198
|
export type IntegrationName = InferSchema<ReturnType<typeof getIntegrationNameSchema>>;
|
|
199
199
|
export type EnvVarConfig = InferSchema<ReturnType<typeof getEnvVarSchema>>;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { normalizeAgUiRuntimeMessages } from "../agent/ag-ui/runtime-support.js";
|
|
8
8
|
import { SKILL_TOOL_IDS } from "../skill/types.js";
|
|
9
9
|
import { type Tool, toolRegistry } from "../tool/index.js";
|
|
10
|
-
import { defineSchema } from "../schemas/index.js";
|
|
10
|
+
import { defineSchema, lazySchema } from "../schemas/index.js";
|
|
11
11
|
import type { Schema } from "../extensions/schema/index.js";
|
|
12
12
|
import {
|
|
13
13
|
createStreamTransformState,
|
|
@@ -21,7 +21,7 @@ import type { RuntimeRunAgentInput } from "./schema.js";
|
|
|
21
21
|
import { serverLogger } from "../utils/index.js";
|
|
22
22
|
|
|
23
23
|
const getAnyObjectSchema = defineSchema((v) => v.record(v.string(), v.unknown()));
|
|
24
|
-
const anyObjectSchema = getAnyObjectSchema
|
|
24
|
+
const anyObjectSchema = lazySchema(getAnyObjectSchema) as Schema<Record<string, unknown>>;
|
|
25
25
|
const logger = serverLogger.component("internal-agent-run-stream");
|
|
26
26
|
|
|
27
27
|
type RuntimeFilteredAgent = Agent & {
|
package/src/src/issues/mcp.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module issues/mcp
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { defineSchema } from "../schemas/index.js";
|
|
9
|
+
import { defineSchema, lazySchema } from "../schemas/index.js";
|
|
10
10
|
import type { InferSchema } from "../extensions/schema/index.js";
|
|
11
11
|
import { cwd } from "../platform/compat/process.js";
|
|
12
12
|
import type { MCPTool } from "../mcp/types.js";
|
|
@@ -53,7 +53,7 @@ const getIssuesCreateInput = defineSchema((v) =>
|
|
|
53
53
|
prefix: getIssuePrefixSchema().optional().describe("ID prefix: ISSUE, TASK, or PLAN"),
|
|
54
54
|
}).merge(getProjectDirSchema())
|
|
55
55
|
);
|
|
56
|
-
const issuesCreateInput = getIssuesCreateInput
|
|
56
|
+
const issuesCreateInput = lazySchema(getIssuesCreateInput);
|
|
57
57
|
|
|
58
58
|
type IssuesCreateInput = InferSchema<ReturnType<typeof getIssuesCreateInput>>;
|
|
59
59
|
|
|
@@ -87,7 +87,7 @@ const getIssuesGetInput = defineSchema((_v) =>
|
|
|
87
87
|
id: getIssueIdSchema().describe("Issue ID (e.g., ISSUE-001, TASK-042)"),
|
|
88
88
|
})
|
|
89
89
|
);
|
|
90
|
-
const issuesGetInput = getIssuesGetInput
|
|
90
|
+
const issuesGetInput = lazySchema(getIssuesGetInput);
|
|
91
91
|
|
|
92
92
|
type IssuesGetInput = InferSchema<ReturnType<typeof getIssuesGetInput>>;
|
|
93
93
|
|
|
@@ -121,7 +121,7 @@ const getIssuesUpdateInput = defineSchema((v) =>
|
|
|
121
121
|
assignees: v.array(v.string()).optional().describe("Assignees to set (replaces existing)"),
|
|
122
122
|
}).merge(getProjectDirSchema())
|
|
123
123
|
);
|
|
124
|
-
const issuesUpdateInput = getIssuesUpdateInput
|
|
124
|
+
const issuesUpdateInput = lazySchema(getIssuesUpdateInput);
|
|
125
125
|
|
|
126
126
|
type IssuesUpdateInput = InferSchema<ReturnType<typeof getIssuesUpdateInput>>;
|
|
127
127
|
|
|
@@ -173,7 +173,7 @@ const getIssuesListInput = defineSchema((v) =>
|
|
|
173
173
|
limit: v.number().optional().describe("Maximum results"),
|
|
174
174
|
}).merge(getProjectDirSchema())
|
|
175
175
|
);
|
|
176
|
-
const issuesListInput = getIssuesListInput
|
|
176
|
+
const issuesListInput = lazySchema(getIssuesListInput);
|
|
177
177
|
|
|
178
178
|
type IssuesListInput = InferSchema<ReturnType<typeof getIssuesListInput>>;
|
|
179
179
|
|
|
@@ -213,7 +213,7 @@ const getIssuesCloseInput = defineSchema((_v) =>
|
|
|
213
213
|
id: getIssueIdSchema().describe("Issue ID to close"),
|
|
214
214
|
})
|
|
215
215
|
);
|
|
216
|
-
const issuesCloseInput = getIssuesCloseInput
|
|
216
|
+
const issuesCloseInput = lazySchema(getIssuesCloseInput);
|
|
217
217
|
|
|
218
218
|
type IssuesCloseInput = InferSchema<ReturnType<typeof getIssuesCloseInput>>;
|
|
219
219
|
|
|
@@ -244,7 +244,7 @@ const getIssuesDeleteInput = defineSchema((_v) =>
|
|
|
244
244
|
id: getIssueIdSchema().describe("Issue ID to delete"),
|
|
245
245
|
})
|
|
246
246
|
);
|
|
247
|
-
const issuesDeleteInput = getIssuesDeleteInput
|
|
247
|
+
const issuesDeleteInput = lazySchema(getIssuesDeleteInput);
|
|
248
248
|
|
|
249
249
|
type IssuesDeleteInput = InferSchema<ReturnType<typeof getIssuesDeleteInput>>;
|
|
250
250
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineSchema } from "../../schemas/index.js";
|
|
1
|
+
import { defineSchema, lazySchema } from "../../schemas/index.js";
|
|
2
2
|
import type { InferSchema } from "../../extensions/schema/index.js";
|
|
3
3
|
|
|
4
4
|
export const ISSUE_PREFIXES = ["ISSUE", "TASK", "PLAN"] as const;
|
|
@@ -7,25 +7,25 @@ const ISSUE_ID_BODY = `(${ISSUE_PREFIXES.join("|")})-(\\d{3,})`;
|
|
|
7
7
|
export const ISSUE_ID_PATTERN = new RegExp(`^${ISSUE_ID_BODY}$`);
|
|
8
8
|
|
|
9
9
|
export const getIssueStateSchema = defineSchema((v) => v.enum(["open", "closed"]));
|
|
10
|
-
export const issueStateSchema = getIssueStateSchema
|
|
10
|
+
export const issueStateSchema = lazySchema(getIssueStateSchema);
|
|
11
11
|
|
|
12
12
|
export const getIssuePrefixSchema = defineSchema((v) => v.enum(ISSUE_PREFIXES));
|
|
13
|
-
export const issuePrefixSchema = getIssuePrefixSchema
|
|
13
|
+
export const issuePrefixSchema = lazySchema(getIssuePrefixSchema);
|
|
14
14
|
|
|
15
15
|
export const getIssueIdSchema = defineSchema((v) =>
|
|
16
16
|
v.string()
|
|
17
17
|
.regex(ISSUE_ID_PATTERN, "Issue ID must be in format PREFIX-NNN (e.g., ISSUE-001, TASK-042)")
|
|
18
18
|
);
|
|
19
|
-
export const issueIdSchema = getIssueIdSchema
|
|
19
|
+
export const issueIdSchema = lazySchema(getIssueIdSchema);
|
|
20
20
|
|
|
21
21
|
export const getLabelSchema = defineSchema((v) => v.string().min(1).max(50));
|
|
22
|
-
export const labelSchema = getLabelSchema
|
|
22
|
+
export const labelSchema = lazySchema(getLabelSchema);
|
|
23
23
|
|
|
24
24
|
export const getIsoDateSchema = defineSchema((v) =>
|
|
25
25
|
v.string()
|
|
26
26
|
.refine((val: string) => !Number.isNaN(Date.parse(val)), "Must be a valid ISO 8601 date string")
|
|
27
27
|
);
|
|
28
|
-
export const isoDateSchema = getIsoDateSchema
|
|
28
|
+
export const isoDateSchema = lazySchema(getIsoDateSchema);
|
|
29
29
|
|
|
30
30
|
export const getIssueMetadataSchema = defineSchema((v) =>
|
|
31
31
|
v.object({
|
|
@@ -39,7 +39,7 @@ export const getIssueMetadataSchema = defineSchema((v) =>
|
|
|
39
39
|
updated_at: getIsoDateSchema(),
|
|
40
40
|
})
|
|
41
41
|
);
|
|
42
|
-
export const issueMetadataSchema = getIssueMetadataSchema
|
|
42
|
+
export const issueMetadataSchema = lazySchema(getIssueMetadataSchema);
|
|
43
43
|
|
|
44
44
|
export const getIssueSchema = defineSchema((v) =>
|
|
45
45
|
v.object({
|
|
@@ -48,7 +48,7 @@ export const getIssueSchema = defineSchema((v) =>
|
|
|
48
48
|
path: v.string(),
|
|
49
49
|
})
|
|
50
50
|
);
|
|
51
|
-
export const issueSchema = getIssueSchema
|
|
51
|
+
export const issueSchema = lazySchema(getIssueSchema);
|
|
52
52
|
|
|
53
53
|
export const getCreateIssueSchema = defineSchema((v) =>
|
|
54
54
|
v.object({
|
|
@@ -60,7 +60,7 @@ export const getCreateIssueSchema = defineSchema((v) =>
|
|
|
60
60
|
prefix: getIssuePrefixSchema().optional(),
|
|
61
61
|
})
|
|
62
62
|
);
|
|
63
|
-
export const createIssueSchema = getCreateIssueSchema
|
|
63
|
+
export const createIssueSchema = lazySchema(getCreateIssueSchema);
|
|
64
64
|
|
|
65
65
|
export const getUpdateIssueSchema = defineSchema((v) =>
|
|
66
66
|
v.object({
|
|
@@ -72,7 +72,7 @@ export const getUpdateIssueSchema = defineSchema((v) =>
|
|
|
72
72
|
assignees: v.array(v.string()).optional(),
|
|
73
73
|
})
|
|
74
74
|
);
|
|
75
|
-
export const updateIssueSchema = getUpdateIssueSchema
|
|
75
|
+
export const updateIssueSchema = lazySchema(getUpdateIssueSchema);
|
|
76
76
|
|
|
77
77
|
export const getListIssuesSchema = defineSchema((v) =>
|
|
78
78
|
v.object({
|
|
@@ -86,7 +86,7 @@ export const getListIssuesSchema = defineSchema((v) =>
|
|
|
86
86
|
limit: v.number().positive().optional(),
|
|
87
87
|
})
|
|
88
88
|
);
|
|
89
|
-
export const listIssuesSchema = getListIssuesSchema
|
|
89
|
+
export const listIssuesSchema = lazySchema(getListIssuesSchema);
|
|
90
90
|
|
|
91
91
|
export const getListIssuesResultSchema = defineSchema((v) =>
|
|
92
92
|
v.object({
|
|
@@ -94,7 +94,7 @@ export const getListIssuesResultSchema = defineSchema((v) =>
|
|
|
94
94
|
total: v.number(),
|
|
95
95
|
})
|
|
96
96
|
);
|
|
97
|
-
export const listIssuesResultSchema = getListIssuesResultSchema
|
|
97
|
+
export const listIssuesResultSchema = lazySchema(getListIssuesResultSchema);
|
|
98
98
|
|
|
99
99
|
// Inferred types
|
|
100
100
|
export type IssueState = InferSchema<ReturnType<typeof getIssueStateSchema>>;
|