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
package/src/src/jobs/schemas.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineSchema } from "../schemas/index.js";
|
|
1
|
+
import { defineSchema, lazySchema } from "../schemas/index.js";
|
|
2
2
|
import type { InferSchema, SchemaValidator } from "../extensions/schema/index.js";
|
|
3
3
|
|
|
4
4
|
export const getJobStatusSchema = defineSchema((v) =>
|
|
@@ -334,35 +334,44 @@ export const getPaginatedCronJobsResponseSchema = defineSchema((v) =>
|
|
|
334
334
|
);
|
|
335
335
|
|
|
336
336
|
// Backward-compat aliases
|
|
337
|
-
export const JobStatusSchema = getJobStatusSchema
|
|
338
|
-
export const CronJobStatusSchema = getCronJobStatusSchema
|
|
339
|
-
export const JobKindSchema = getJobKindSchema
|
|
340
|
-
export const ReservedJobTargetFamilySchema = getReservedJobTargetFamilySchema
|
|
341
|
-
export const PageInfoSchema = getPageInfoSchema
|
|
342
|
-
export const KnowledgeIngestFileResultSchema = getKnowledgeIngestFileResultSchema
|
|
343
|
-
export const KnowledgeIngestSkippedFileResultSchema =
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
export const
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
export const
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
export const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
export const
|
|
356
|
-
export const
|
|
357
|
-
export const
|
|
358
|
-
|
|
359
|
-
export const
|
|
360
|
-
export const
|
|
361
|
-
export const
|
|
362
|
-
export const
|
|
363
|
-
export const
|
|
364
|
-
export const
|
|
365
|
-
export const
|
|
337
|
+
export const JobStatusSchema = lazySchema(getJobStatusSchema);
|
|
338
|
+
export const CronJobStatusSchema = lazySchema(getCronJobStatusSchema);
|
|
339
|
+
export const JobKindSchema = lazySchema(getJobKindSchema);
|
|
340
|
+
export const ReservedJobTargetFamilySchema = lazySchema(getReservedJobTargetFamilySchema);
|
|
341
|
+
export const PageInfoSchema = lazySchema(getPageInfoSchema);
|
|
342
|
+
export const KnowledgeIngestFileResultSchema = lazySchema(getKnowledgeIngestFileResultSchema);
|
|
343
|
+
export const KnowledgeIngestSkippedFileResultSchema = lazySchema(
|
|
344
|
+
getKnowledgeIngestSkippedFileResultSchema,
|
|
345
|
+
);
|
|
346
|
+
export const KnowledgeIngestFailedFileResultSchema = lazySchema(
|
|
347
|
+
getKnowledgeIngestFailedFileResultSchema,
|
|
348
|
+
);
|
|
349
|
+
export const KnowledgeIngestJobResultMetadataSchema = lazySchema(
|
|
350
|
+
getKnowledgeIngestJobResultMetadataSchema,
|
|
351
|
+
);
|
|
352
|
+
export const KnowledgeIngestJobResultCountsSchema = lazySchema(
|
|
353
|
+
getKnowledgeIngestJobResultCountsSchema,
|
|
354
|
+
);
|
|
355
|
+
export const KnowledgeIngestJobResultSchema = lazySchema(getKnowledgeIngestJobResultSchema);
|
|
356
|
+
export const JobResultSchema = lazySchema(getJobResultSchema);
|
|
357
|
+
export const JobResultSummarySchema = lazySchema(getJobResultSummarySchema);
|
|
358
|
+
export const JobSchema = lazySchema(getJobSchema);
|
|
359
|
+
export const JobListItemSchema = lazySchema(getJobListItemSchema);
|
|
360
|
+
export const PaginatedJobsResponseSchema = lazySchema(getPaginatedJobsResponseSchema);
|
|
361
|
+
export const JobEventSchema = lazySchema(getJobEventSchema);
|
|
362
|
+
export const JobEventsResponseSchema = lazySchema(getJobEventsResponseSchema);
|
|
363
|
+
export const JobLogsResponseSchema = lazySchema(getJobLogsResponseSchema);
|
|
364
|
+
export const KnowledgeIngestBatchSourceSchema = lazySchema(getKnowledgeIngestBatchSourceSchema);
|
|
365
|
+
export const KnowledgeIngestBatchSourceWithMessageSchema = lazySchema(
|
|
366
|
+
getKnowledgeIngestBatchSourceWithMessageSchema,
|
|
367
|
+
);
|
|
368
|
+
export const JobBatchStatusCountsSchema = lazySchema(getJobBatchStatusCountsSchema);
|
|
369
|
+
export const JobBatchResultSchema = lazySchema(getJobBatchResultSchema);
|
|
370
|
+
export const JobBatchSchema = lazySchema(getJobBatchSchema);
|
|
371
|
+
export const JobTargetDefinitionSchema = lazySchema(getJobTargetDefinitionSchema);
|
|
372
|
+
export const JobTargetDefinitionsResponseSchema = lazySchema(getJobTargetDefinitionsResponseSchema);
|
|
373
|
+
export const CronJobSchema = lazySchema(getCronJobSchema);
|
|
374
|
+
export const PaginatedCronJobsResponseSchema = lazySchema(getPaginatedCronJobsResponseSchema);
|
|
366
375
|
|
|
367
376
|
// Inferred types
|
|
368
377
|
export type JobStatus = InferSchema<ReturnType<typeof getJobStatusSchema>>;
|
|
@@ -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
|
/**
|
|
@@ -50,9 +50,9 @@ export const getMCPStatsSchema = defineSchema((v) =>
|
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
// Backward-compat aliases
|
|
53
|
-
export const MCPAuthConfigSchema = getMCPAuthConfigSchema
|
|
54
|
-
export const MCPServerConfigSchema = getMCPServerConfigSchema
|
|
55
|
-
export const MCPStatsSchema = getMCPStatsSchema
|
|
53
|
+
export const MCPAuthConfigSchema = lazySchema(getMCPAuthConfigSchema);
|
|
54
|
+
export const MCPServerConfigSchema = lazySchema(getMCPServerConfigSchema);
|
|
55
|
+
export const MCPStatsSchema = lazySchema(getMCPStatsSchema);
|
|
56
56
|
|
|
57
57
|
// Inferred types
|
|
58
58
|
export type MCPServerConfig = InferSchema<ReturnType<typeof getMCPServerConfigSchema>>;
|
|
@@ -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 getOAuthProviderConfigSchema = defineSchema((v) =>
|
|
@@ -97,10 +97,10 @@ export type AuthorizationUrlOptions = InferSchema<
|
|
|
97
97
|
export type TokenExchangeOptions = InferSchema<ReturnType<typeof getTokenExchangeOptionsSchema>>;
|
|
98
98
|
|
|
99
99
|
// Backward compat aliases
|
|
100
|
-
export const OAuthProviderConfigSchema = getOAuthProviderConfigSchema
|
|
101
|
-
export const OAuthServiceConfigSchema = getOAuthServiceConfigSchema
|
|
102
|
-
export const OAuthTokensSchema = getOAuthTokensSchema
|
|
103
|
-
export const OAuthStateSchema = getOAuthStateSchema
|
|
104
|
-
export const TokenExchangeResultSchema = getTokenExchangeResultSchema
|
|
105
|
-
export const AuthorizationUrlOptionsSchema = getAuthorizationUrlOptionsSchema
|
|
106
|
-
export const TokenExchangeOptionsSchema = getTokenExchangeOptionsSchema
|
|
100
|
+
export const OAuthProviderConfigSchema = lazySchema(getOAuthProviderConfigSchema);
|
|
101
|
+
export const OAuthServiceConfigSchema = lazySchema(getOAuthServiceConfigSchema);
|
|
102
|
+
export const OAuthTokensSchema = lazySchema(getOAuthTokensSchema);
|
|
103
|
+
export const OAuthStateSchema = lazySchema(getOAuthStateSchema);
|
|
104
|
+
export const TokenExchangeResultSchema = lazySchema(getTokenExchangeResultSchema);
|
|
105
|
+
export const AuthorizationUrlOptionsSchema = lazySchema(getAuthorizationUrlOptionsSchema);
|
|
106
|
+
export const TokenExchangeOptionsSchema = lazySchema(getTokenExchangeOptionsSchema);
|
|
@@ -5,7 +5,7 @@ import { isDeno } from "../runtime.js";
|
|
|
5
5
|
import { MemoryKv } from "./memory-adapter.js";
|
|
6
6
|
import { SqliteKv } from "./sqlite-adapter.js";
|
|
7
7
|
import type { Kv, SqliteDatabase } from "./types.js";
|
|
8
|
-
import type {
|
|
8
|
+
import type { SqliteStore } from "../../../extensions/compat/native-services.js";
|
|
9
9
|
|
|
10
10
|
interface GlobalWithDenoKv {
|
|
11
11
|
Deno?: {
|
|
@@ -27,20 +27,20 @@ export async function openKv(path?: string): Promise<Kv> {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
30
|
+
const sqliteStore = tryResolve<SqliteStore>("SqliteStore");
|
|
31
|
+
if (sqliteStore?.openSqliteDatabase) {
|
|
32
32
|
try {
|
|
33
|
-
const db = await
|
|
34
|
-
//
|
|
33
|
+
const db = await sqliteStore.openSqliteDatabase(path);
|
|
34
|
+
// Extension SqliteDatabase is structurally identical to SqliteDatabase;
|
|
35
35
|
// cast to satisfy the SqliteKv constructor's nominal type check.
|
|
36
36
|
return new SqliteKv(db as unknown as SqliteDatabase);
|
|
37
37
|
} catch (error) {
|
|
38
|
-
serverLogger.debug("
|
|
38
|
+
serverLogger.debug("SqliteStore.openSqliteDatabase failed, using memory KV:", error);
|
|
39
39
|
}
|
|
40
40
|
} else {
|
|
41
41
|
serverLogger.debug(
|
|
42
|
-
"
|
|
43
|
-
"Install @veryfront/ext-
|
|
42
|
+
"SqliteStore extension not registered. SQLite KV unavailable. " +
|
|
43
|
+
"Install @veryfront/ext-db-sqlite to enable SQLite-backed KV.",
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -20,7 +20,7 @@ import * as dntShim from "../../../_dnt.shims.js";
|
|
|
20
20
|
import { tryResolve } from "../../extensions/contracts.js";
|
|
21
21
|
import { isDeno } from "./runtime.js";
|
|
22
22
|
import { dynamicImport } from "./dynamic-import.js";
|
|
23
|
-
import type {
|
|
23
|
+
import type { DocumentExtractor } from "../../extensions/compat/native-services.js";
|
|
24
24
|
|
|
25
25
|
function resolve(pkg: string, version: string): string {
|
|
26
26
|
return isDeno ? `npm:${pkg}@${version}` : pkg;
|
|
@@ -45,12 +45,13 @@ export function importClaudeAgentSDK(): Promise<OpaqueModule> {
|
|
|
45
45
|
/**
|
|
46
46
|
* Lazily import kreuzberg document extraction.
|
|
47
47
|
*
|
|
48
|
-
* Delegates to the `
|
|
48
|
+
* Delegates to the `DocumentExtractor` extension contract
|
|
49
|
+
* (`@veryfront/ext-document-kreuzberg`)
|
|
49
50
|
* when available. Without the extension, throws an actionable error instructing
|
|
50
|
-
* the user to install `ext-
|
|
51
|
+
* the user to install `ext-document-kreuzberg`.
|
|
51
52
|
*
|
|
52
53
|
* Node/Bun path: `@kreuzberg/node` resolved from the project's node_modules at
|
|
53
|
-
* runtime
|
|
54
|
+
* runtime. The extension handles that dynamic import internally.
|
|
54
55
|
*/
|
|
55
56
|
export async function importKreuzberg(): Promise<{
|
|
56
57
|
extractBytes: (
|
|
@@ -58,12 +59,12 @@ export async function importKreuzberg(): Promise<{
|
|
|
58
59
|
mimeType: string,
|
|
59
60
|
) => Promise<{ content: string }>;
|
|
60
61
|
}> {
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
62
|
+
const extractor = tryResolve<DocumentExtractor>("DocumentExtractor");
|
|
63
|
+
if (extractor?.importKreuzberg) {
|
|
64
|
+
return extractor.importKreuzberg();
|
|
64
65
|
}
|
|
65
66
|
throw new Error(
|
|
66
|
-
"Document extraction requires
|
|
67
|
-
"Install @veryfront/ext-
|
|
67
|
+
"Document extraction requires a DocumentExtractor extension. " +
|
|
68
|
+
"Install @veryfront/ext-document-kreuzberg and add it to your extensions configuration.",
|
|
68
69
|
);
|
|
69
70
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* Portable @std/front-matter/yaml shim.
|
|
3
|
-
* Uses gray-matter for consistent, feature-complete parsing across runtimes.
|
|
4
3
|
*
|
|
5
4
|
* @module
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
|
-
import
|
|
7
|
+
import { parse } from "../../../../deps/jsr.io/@std/yaml/1.1.0/parse.js";
|
|
9
8
|
|
|
10
9
|
export interface Extract<T> {
|
|
11
10
|
attrs: T;
|
|
@@ -13,38 +12,28 @@ export interface Extract<T> {
|
|
|
13
12
|
frontMatter: string;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
type GrayMatterEngine = { parse: () => never };
|
|
18
|
-
type GrayMatterOptions = { engines?: Record<string, GrayMatterEngine> };
|
|
19
|
-
type GrayMatterFn = <T = Record<string, unknown>>(
|
|
20
|
-
content: string,
|
|
21
|
-
options?: GrayMatterOptions,
|
|
22
|
-
) => GrayMatterResult<T>;
|
|
23
|
-
|
|
24
|
-
const grayMatter: GrayMatterFn = (grayMatterImport as { default?: GrayMatterFn }).default ??
|
|
25
|
-
(grayMatterImport as GrayMatterFn);
|
|
26
|
-
|
|
27
|
-
/** Security: override both "js" and "javascript" engine aliases to block eval on untrusted frontmatter */
|
|
28
|
-
const DISABLED_ENGINE: GrayMatterEngine = {
|
|
29
|
-
parse: () => {
|
|
30
|
-
throw new Error("JavaScript frontmatter is disabled for security");
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
const SAFE_OPTIONS: GrayMatterOptions = {
|
|
34
|
-
engines: { js: DISABLED_ENGINE, javascript: DISABLED_ENGINE },
|
|
35
|
-
};
|
|
15
|
+
const FRONTMATTER_RE = /^---\r?\n([\s\S]*?)(?:\r?\n)?---(?:\r?\n|$)([\s\S]*)$/;
|
|
36
16
|
|
|
37
17
|
export function extract<T = Record<string, unknown>>(text: string): Extract<T> {
|
|
38
|
-
const
|
|
18
|
+
const match = text.match(FRONTMATTER_RE);
|
|
19
|
+
if (!match) {
|
|
20
|
+
return {
|
|
21
|
+
attrs: {} as T,
|
|
22
|
+
body: text,
|
|
23
|
+
frontMatter: "",
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const frontMatter = match[1] ?? "";
|
|
28
|
+
const parsed = frontMatter.trim() ? parse(frontMatter) : {};
|
|
29
|
+
const attrs = (parsed && typeof parsed === "object" ? parsed : {}) as T;
|
|
39
30
|
return {
|
|
40
|
-
attrs
|
|
41
|
-
body:
|
|
42
|
-
frontMatter
|
|
31
|
+
attrs,
|
|
32
|
+
body: match[2] ?? "",
|
|
33
|
+
frontMatter,
|
|
43
34
|
};
|
|
44
35
|
}
|
|
45
36
|
|
|
46
37
|
export function test(text: string): boolean {
|
|
47
|
-
const testFn = (grayMatter as GrayMatterFn & { test?: (input: string) => boolean }).test;
|
|
48
|
-
if (testFn) return testFn(text);
|
|
49
38
|
return /^---\r?\n/.test(text);
|
|
50
39
|
}
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { type ClassValue, clsx } from "../../../utils/clsx.js";
|
|
11
|
-
import { twMerge } from "tailwind-merge";
|
|
12
|
-
export { cva, type VariantProps } from "class-variance-authority";
|
|
13
11
|
|
|
14
12
|
// ---------------------------------------------------------------------------
|
|
15
13
|
// CSS Custom Property tokens
|
|
@@ -209,21 +207,58 @@ export function mergeThemes<T>(
|
|
|
209
207
|
}
|
|
210
208
|
|
|
211
209
|
/**
|
|
212
|
-
* Utility to combine
|
|
210
|
+
* Utility to combine class names.
|
|
213
211
|
*/
|
|
214
212
|
export function cn(...inputs: ClassValue[]): string {
|
|
215
|
-
return
|
|
213
|
+
return clsx(inputs);
|
|
216
214
|
}
|
|
217
215
|
|
|
218
216
|
// ---------------------------------------------------------------------------
|
|
219
|
-
//
|
|
217
|
+
// Variant definitions
|
|
220
218
|
// ---------------------------------------------------------------------------
|
|
221
219
|
|
|
222
|
-
|
|
220
|
+
type VariantMap = Record<string, Record<string, ClassValue>>;
|
|
223
221
|
|
|
224
|
-
type
|
|
222
|
+
type VariantOptions<TVariants extends VariantMap> =
|
|
223
|
+
& {
|
|
224
|
+
[TKey in keyof TVariants]?: keyof TVariants[TKey] | null | undefined;
|
|
225
|
+
}
|
|
226
|
+
& {
|
|
227
|
+
class?: ClassValue;
|
|
228
|
+
className?: ClassValue;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type VariantClassFunction<TVariants extends VariantMap> = (
|
|
232
|
+
options?: VariantOptions<TVariants>,
|
|
233
|
+
) => string;
|
|
234
|
+
|
|
235
|
+
function variantClasses<TVariants extends VariantMap>(
|
|
236
|
+
base: ClassValue,
|
|
237
|
+
config: {
|
|
238
|
+
variants: TVariants;
|
|
239
|
+
defaultVariants?: Partial<
|
|
240
|
+
{
|
|
241
|
+
[TKey in keyof TVariants]: keyof TVariants[TKey] | null | undefined;
|
|
242
|
+
}
|
|
243
|
+
>;
|
|
244
|
+
},
|
|
245
|
+
): VariantClassFunction<TVariants> {
|
|
246
|
+
return (options = {}) => {
|
|
247
|
+
const classes: ClassValue[] = [base];
|
|
248
|
+
|
|
249
|
+
for (const [variantName, variantValues] of Object.entries(config.variants)) {
|
|
250
|
+
const selected = options[variantName] ??
|
|
251
|
+
config.defaultVariants?.[variantName];
|
|
252
|
+
if (selected === null || selected === undefined) continue;
|
|
253
|
+
classes.push(variantValues[String(selected)]);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
classes.push(options.class, options.className);
|
|
257
|
+
return cn(classes);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
225
260
|
|
|
226
|
-
export const messageVariants
|
|
261
|
+
export const messageVariants = variantClasses("", {
|
|
227
262
|
variants: {
|
|
228
263
|
role: {
|
|
229
264
|
user:
|
|
@@ -239,7 +274,7 @@ export const messageVariants: CvaReturn = cva("", {
|
|
|
239
274
|
},
|
|
240
275
|
});
|
|
241
276
|
|
|
242
|
-
export const chatButtonVariants
|
|
277
|
+
export const chatButtonVariants = variantClasses(
|
|
243
278
|
[
|
|
244
279
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
245
280
|
"font-medium rounded-full transition-all duration-150",
|
|
@@ -273,7 +308,7 @@ export const chatButtonVariants: CvaReturn = cva(
|
|
|
273
308
|
},
|
|
274
309
|
);
|
|
275
310
|
|
|
276
|
-
export const chatContainerVariants
|
|
311
|
+
export const chatContainerVariants = variantClasses("flex flex-col overflow-hidden", {
|
|
277
312
|
variants: {
|
|
278
313
|
variant: {
|
|
279
314
|
default: "h-full bg-[var(--background)]",
|
|
@@ -8,6 +8,8 @@ import type { VeryfrontConfig } from "../../config/index.js";
|
|
|
8
8
|
import type { ImportMapConfig } from "../../modules/import-map/types.js";
|
|
9
9
|
import { withSpan } from "../../observability/tracing/otlp-setup.js";
|
|
10
10
|
import { SpanNames } from "../../observability/tracing/span-names.js";
|
|
11
|
+
import { resolve as resolveContract } from "../../extensions/contracts.js";
|
|
12
|
+
import type { ContentProcessor } from "../../extensions/content/index.js";
|
|
11
13
|
import type { LayoutComponentCache } from "./utils/component-loader.js";
|
|
12
14
|
import { applyLayoutsESM, applyLayoutsFunctionBody } from "./utils/applicator.js";
|
|
13
15
|
import { resolveAppComponentPath } from "./utils/app-resolver.js";
|
|
@@ -365,25 +367,15 @@ export class LayoutApplicator {
|
|
|
365
367
|
appPath: string,
|
|
366
368
|
): Promise<BundledReact.ComponentType<Record<string, unknown>> | null> {
|
|
367
369
|
try {
|
|
368
|
-
const { compile } = await import("@mdx-js/mdx");
|
|
369
|
-
const { getRehypePlugins, getRemarkPlugins } = await import(
|
|
370
|
-
"../../transforms/plugins/plugin-loader.js"
|
|
371
|
-
);
|
|
372
|
-
|
|
373
370
|
const body = source.trim().startsWith("---") ? extract(source).body : source;
|
|
374
371
|
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
jsxRuntime: "automatic",
|
|
383
|
-
jsxImportSource: "react",
|
|
384
|
-
development: this.mode === "development",
|
|
385
|
-
remarkPlugins,
|
|
386
|
-
rehypePlugins,
|
|
372
|
+
const processor = resolveContract<ContentProcessor>("ContentProcessor");
|
|
373
|
+
const compiled = await processor.compileMdx({
|
|
374
|
+
projectDir: this.projectDir,
|
|
375
|
+
content: body,
|
|
376
|
+
filePath: appPath,
|
|
377
|
+
mode: this.mode,
|
|
378
|
+
target: "server",
|
|
387
379
|
});
|
|
388
380
|
|
|
389
381
|
const { loadComponentFromSource } = await import(
|
|
@@ -391,7 +383,7 @@ export class LayoutApplicator {
|
|
|
391
383
|
);
|
|
392
384
|
|
|
393
385
|
return await loadComponentFromSource(
|
|
394
|
-
|
|
386
|
+
compiled.compiledCode,
|
|
395
387
|
appPath.replace(/\.mdx?$/, ".jsx"),
|
|
396
388
|
this.projectDir,
|
|
397
389
|
this.adapter,
|
|
@@ -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 getRepositoryContextSchema = defineSchema((v) =>
|
|
@@ -36,6 +36,6 @@ export type CacheRepositoryOptions = InferSchema<
|
|
|
36
36
|
>;
|
|
37
37
|
|
|
38
38
|
// Backward compat aliases
|
|
39
|
-
export const RepositoryContextSchema = getRepositoryContextSchema
|
|
40
|
-
export const CacheStatsSchema = getCacheStatsSchema
|
|
41
|
-
export const CacheRepositoryOptionsSchema = getCacheRepositoryOptionsSchema
|
|
39
|
+
export const RepositoryContextSchema = lazySchema(getRepositoryContextSchema);
|
|
40
|
+
export const CacheStatsSchema = lazySchema(getCacheStatsSchema);
|
|
41
|
+
export const CacheRepositoryOptionsSchema = lazySchema(getCacheRepositoryOptionsSchema);
|
|
@@ -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 getCachePolicySchema = defineSchema((v) =>
|
|
@@ -13,8 +13,8 @@ export const getMcpConfigSchema = defineSchema((v) =>
|
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
// Backward-compat aliases
|
|
16
|
-
export const cachePolicySchema = getCachePolicySchema
|
|
17
|
-
export const McpConfigSchema = getMcpConfigSchema
|
|
16
|
+
export const cachePolicySchema = lazySchema(getCachePolicySchema);
|
|
17
|
+
export const McpConfigSchema = lazySchema(getMcpConfigSchema);
|
|
18
18
|
|
|
19
19
|
// Inferred types
|
|
20
20
|
export type CachePolicy = InferSchema<ReturnType<typeof getCachePolicySchema>>;
|
|
@@ -32,6 +32,7 @@ export interface AgentServiceSandboxClient
|
|
|
32
32
|
export interface AgentServiceSandboxClientOptions extends LazySandboxOptions {}
|
|
33
33
|
|
|
34
34
|
export interface AgentServiceSandboxToolsOptions extends AgentServiceSandboxClientOptions {
|
|
35
|
+
/** Sandbox shell tools provider. Kept as createBashTool for caller compatibility. */
|
|
35
36
|
createBashTool: CreateSandboxBashTool;
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ToolExecutionContext } from "../tool/index.js";
|
|
2
2
|
import type { JsonSchema } from "../tool/schema/json-schema.js";
|
|
3
|
+
import type {
|
|
4
|
+
SandboxShellClient,
|
|
5
|
+
SandboxShellToolDefinition,
|
|
6
|
+
SandboxShellToolSet,
|
|
7
|
+
SandboxShellToolsProvider,
|
|
8
|
+
} from "../extensions/sandbox/index.js";
|
|
9
|
+
|
|
10
|
+
export type {
|
|
11
|
+
SandboxShellClient as BashToolSandboxLike,
|
|
12
|
+
SandboxShellToolDefinition,
|
|
13
|
+
SandboxShellToolSet,
|
|
14
|
+
SandboxShellToolsProvider as CreateSandboxBashTool,
|
|
15
|
+
} from "../extensions/sandbox/index.js";
|
|
3
16
|
|
|
4
17
|
const SANDBOX_WORKING_DIRECTORY = "/workspace";
|
|
5
18
|
const SANDBOX_TOOL_PROMPT =
|
|
@@ -15,44 +28,6 @@ const JSON_SCHEMA_TYPES: ReadonlySet<string> = new Set([
|
|
|
15
28
|
"null",
|
|
16
29
|
]);
|
|
17
30
|
|
|
18
|
-
type SandboxShellToolExecute = {
|
|
19
|
-
bivarianceHack: (input: unknown, options?: ToolExecutionContext) => Promise<unknown> | unknown;
|
|
20
|
-
}["bivarianceHack"];
|
|
21
|
-
|
|
22
|
-
export type SandboxShellToolDefinition = {
|
|
23
|
-
id?: string;
|
|
24
|
-
type?: Tool["type"];
|
|
25
|
-
title?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
inputSchema?: unknown;
|
|
28
|
-
inputSchemaJson?: JsonSchema;
|
|
29
|
-
parameters?: unknown;
|
|
30
|
-
providerOptions?: unknown;
|
|
31
|
-
execute?: Tool["execute"] | SandboxShellToolExecute;
|
|
32
|
-
mcp?: Tool["mcp"];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type SandboxShellToolSet = Record<string, SandboxShellToolDefinition>;
|
|
36
|
-
|
|
37
|
-
export type BashToolSandboxLike = {
|
|
38
|
-
ensure?: () => Promise<void> | void;
|
|
39
|
-
executeCommand: (command: string, options?: unknown) => Promise<unknown>;
|
|
40
|
-
readFile?: (path: string) => Promise<unknown> | unknown;
|
|
41
|
-
writeFiles?: (files: unknown[]) => Promise<unknown> | unknown;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
type CreateBashToolInput = {
|
|
45
|
-
sandbox: BashToolSandboxLike;
|
|
46
|
-
destination: string;
|
|
47
|
-
promptOptions: {
|
|
48
|
-
toolPrompt: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export type CreateSandboxBashTool = (
|
|
53
|
-
input: CreateBashToolInput,
|
|
54
|
-
) => Promise<{ tools: Record<string, unknown> }>;
|
|
55
|
-
|
|
56
31
|
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
57
32
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
58
33
|
}
|
|
@@ -227,10 +202,10 @@ export function renameSandboxFileTools(bashTools: SandboxShellToolSet): SandboxS
|
|
|
227
202
|
}
|
|
228
203
|
|
|
229
204
|
export async function createSandboxShellTools(
|
|
230
|
-
sandbox:
|
|
231
|
-
|
|
205
|
+
sandbox: SandboxShellClient,
|
|
206
|
+
createShellTools: SandboxShellToolsProvider,
|
|
232
207
|
): Promise<SandboxShellToolSet> {
|
|
233
|
-
const { tools: bashTools } = await
|
|
208
|
+
const { tools: bashTools } = await createShellTools({
|
|
234
209
|
sandbox,
|
|
235
210
|
destination: SANDBOX_WORKING_DIRECTORY,
|
|
236
211
|
promptOptions: {
|
|
@@ -5,23 +5,17 @@
|
|
|
5
5
|
* `SchemaValidator` extension contract on first call and materializes the
|
|
6
6
|
* schema via the provided factory. This indirection lets core modules declare
|
|
7
7
|
* schemas without importing zod directly — a real validator (typically
|
|
8
|
-
* `@veryfront/ext-zod`) must be registered in the contract registry before
|
|
8
|
+
* `@veryfront/ext-schema-zod`) must be registered in the contract registry before
|
|
9
9
|
* the schema is first accessed.
|
|
10
10
|
*
|
|
11
11
|
* @module schemas/define
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { resolve } from "../extensions/contracts.js";
|
|
15
15
|
import type { Schema, SchemaFactory, SchemaValidator } from "../extensions/schema/index.js";
|
|
16
|
-
import { createZodAdapter } from "../../extensions/ext-zod/src/adapter.js";
|
|
17
16
|
|
|
18
17
|
export function resolveSchemaValidator(): SchemaValidator {
|
|
19
|
-
|
|
20
|
-
if (existing) return existing;
|
|
21
|
-
|
|
22
|
-
const fallback = createZodAdapter();
|
|
23
|
-
register<SchemaValidator>("SchemaValidator", fallback);
|
|
24
|
-
return fallback;
|
|
18
|
+
return resolve<SchemaValidator>("SchemaValidator");
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
/**
|
|
@@ -29,7 +23,7 @@ export function resolveSchemaValidator(): SchemaValidator {
|
|
|
29
23
|
*
|
|
30
24
|
* @param factory - Receives a `SchemaValidator` and returns a `Schema<T>`.
|
|
31
25
|
* @returns A zero-arg getter that caches and returns the built schema.
|
|
32
|
-
*
|
|
26
|
+
* Requires a SchemaValidator extension to be registered before first use.
|
|
33
27
|
*
|
|
34
28
|
* @example
|
|
35
29
|
* ```ts
|
package/src/src/schemas/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* plus the `defineSchema` lazy-factory helper.
|
|
5
5
|
*
|
|
6
6
|
* `defineSchema` resolves the `SchemaValidator` contract on first use. The
|
|
7
|
-
* default zod-backed implementation lives in `@veryfront/ext-zod` and is
|
|
7
|
+
* default zod-backed implementation lives in `@veryfront/ext-schema-zod` and is
|
|
8
8
|
* registered at app bootstrap by `createBuiltinExtensions()`. Tests that
|
|
9
9
|
* exercise schemas without going through full bootstrap import
|
|
10
10
|
* `./_test-setup.ts` to register the adapter directly.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
export { defineSchema } from "./define.js";
|
|
16
|
+
export { lazySchema } from "./lazy.js";
|
|
16
17
|
|
|
17
18
|
export {
|
|
18
19
|
isOptionalSchema as schemaIsOptional,
|