veryfront 0.1.519 → 0.1.520
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.js +2 -2
- 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/cli/templates/manifest.d.ts +405 -405
- package/esm/cli/templates/manifest.js +454 -454
- package/esm/deno.d.ts +10 -15
- package/esm/deno.js +23 -26
- 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 +12 -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/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/dev-ui/manifest.d.ts +17 -17
- package/esm/src/server/dev-ui/manifest.js +17 -17
- 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 -8
- 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 +2 -2
- 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/cli/templates/manifest.js +454 -454
- package/src/deno.js +23 -26
- 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 +22 -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/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/dev-ui/manifest.js +17 -17
- 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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { KindType, Type } from "./_type.js";
|
|
2
|
+
/**
|
|
3
|
+
* Name of the schema to use.
|
|
4
|
+
*
|
|
5
|
+
* > [!NOTE]
|
|
6
|
+
* > It is recommended to use the schema that is most appropriate for your use
|
|
7
|
+
* > case. Doing so will avoid any unnecessary processing and benefit
|
|
8
|
+
* > performance.
|
|
9
|
+
*
|
|
10
|
+
* Options include:
|
|
11
|
+
* - `failsafe`: supports generic mappings, generic sequences and generic
|
|
12
|
+
* strings.
|
|
13
|
+
* - `json`: extends `failsafe` schema by also supporting nulls, booleans,
|
|
14
|
+
* integers and floats.
|
|
15
|
+
* - `core`: functionally the same as `json` schema.
|
|
16
|
+
* - `default`: extends `core` schema by also supporting binary, omap, pairs and
|
|
17
|
+
* set types.
|
|
18
|
+
* - `extended`: extends `default` schema by also supporting regular
|
|
19
|
+
* expressions and undefined values.
|
|
20
|
+
*
|
|
21
|
+
* See
|
|
22
|
+
* {@link https://yaml.org/spec/1.2.2/#chapter-10-recommended-schemas | YAML 1.2 spec}
|
|
23
|
+
* for more details on the `failsafe`, `json` and `core` schemas.
|
|
24
|
+
*/
|
|
25
|
+
export type SchemaType = "failsafe" | "json" | "core" | "default" | "extended";
|
|
26
|
+
/**
|
|
27
|
+
* A type that can be implicitly resolved (i.e. without using a tag) when
|
|
28
|
+
* loading a YAML document.
|
|
29
|
+
*/
|
|
30
|
+
export type ImplicitType = Type<"scalar">;
|
|
31
|
+
export type ExplicitType = Type<KindType>;
|
|
32
|
+
export type TypeMap = Record<KindType | "fallback", Map<string, ExplicitType>>;
|
|
33
|
+
export interface Schema {
|
|
34
|
+
implicitTypes: ImplicitType[];
|
|
35
|
+
explicitTypes: ExplicitType[];
|
|
36
|
+
typeMap: TypeMap;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Default YAML schema. It is not described in the YAML specification.
|
|
40
|
+
*/
|
|
41
|
+
export declare const DEFAULT_SCHEMA: Schema;
|
|
42
|
+
export declare const SCHEMA_MAP: Map<SchemaType, Schema>;
|
|
43
|
+
export declare function getSchema(schema?: SchemaType, types?: ImplicitType[]): Schema;
|
|
44
|
+
//# sourceMappingURL=_schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_schema.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_schema.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAiBjD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1C,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;AAE1C,MAAM,MAAM,OAAO,GAAG,MAAM,CAC1B,QAAQ,GAAG,UAAU,EACrB,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAC1B,CAAC;AAqBF,MAAM,WAAW,MAAM;IACrB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AA2CD;;GAEG;AACH,eAAO,MAAM,cAAc,QAIzB,CAAC;AA2BH,eAAO,MAAM,UAAU,yBAMrB,CAAC;AAEH,wBAAgB,SAAS,CACvB,MAAM,GAAE,UAAsB,EAC9B,KAAK,CAAC,EAAE,YAAY,EAAE,GACrB,MAAM,CAWR"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
import { binary } from "./_type/binary.js";
|
|
7
|
+
import { bool } from "./_type/bool.js";
|
|
8
|
+
import { float } from "./_type/float.js";
|
|
9
|
+
import { int } from "./_type/int.js";
|
|
10
|
+
import { map } from "./_type/map.js";
|
|
11
|
+
import { merge } from "./_type/merge.js";
|
|
12
|
+
import { nil } from "./_type/nil.js";
|
|
13
|
+
import { omap } from "./_type/omap.js";
|
|
14
|
+
import { pairs } from "./_type/pairs.js";
|
|
15
|
+
import { regexp } from "./_type/regexp.js";
|
|
16
|
+
import { seq } from "./_type/seq.js";
|
|
17
|
+
import { set } from "./_type/set.js";
|
|
18
|
+
import { str } from "./_type/str.js";
|
|
19
|
+
import { timestamp } from "./_type/timestamp.js";
|
|
20
|
+
import { undefinedType } from "./_type/undefined.js";
|
|
21
|
+
function createTypeMap(implicitTypes, explicitTypes) {
|
|
22
|
+
const result = {
|
|
23
|
+
fallback: new Map(),
|
|
24
|
+
mapping: new Map(),
|
|
25
|
+
scalar: new Map(),
|
|
26
|
+
sequence: new Map(),
|
|
27
|
+
};
|
|
28
|
+
const fallbackMap = result.fallback;
|
|
29
|
+
for (const type of [...implicitTypes, ...explicitTypes]) {
|
|
30
|
+
const map = result[type.kind];
|
|
31
|
+
map.set(type.tag, type);
|
|
32
|
+
fallbackMap.set(type.tag, type);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
function createSchema({ explicitTypes = [], implicitTypes = [], include }) {
|
|
37
|
+
if (include) {
|
|
38
|
+
implicitTypes.push(...include.implicitTypes);
|
|
39
|
+
explicitTypes.push(...include.explicitTypes);
|
|
40
|
+
}
|
|
41
|
+
const typeMap = createTypeMap(implicitTypes, explicitTypes);
|
|
42
|
+
return { implicitTypes, explicitTypes, typeMap };
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Standard YAML's failsafe schema.
|
|
46
|
+
*
|
|
47
|
+
* @see {@link http://www.yaml.org/spec/1.2/spec.html#id2802346}
|
|
48
|
+
*/
|
|
49
|
+
const FAILSAFE_SCHEMA = createSchema({
|
|
50
|
+
explicitTypes: [str, seq, map],
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* Standard YAML's JSON schema.
|
|
54
|
+
*
|
|
55
|
+
* @see {@link http://www.yaml.org/spec/1.2/spec.html#id2803231}
|
|
56
|
+
*/
|
|
57
|
+
const JSON_SCHEMA = createSchema({
|
|
58
|
+
implicitTypes: [nil, bool, int, float],
|
|
59
|
+
include: FAILSAFE_SCHEMA,
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* Standard YAML's core schema.
|
|
63
|
+
*
|
|
64
|
+
* @see {@link http://www.yaml.org/spec/1.2/spec.html#id2804923}
|
|
65
|
+
*/
|
|
66
|
+
const CORE_SCHEMA = createSchema({
|
|
67
|
+
include: JSON_SCHEMA,
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* Default YAML schema. It is not described in the YAML specification.
|
|
71
|
+
*/
|
|
72
|
+
export const DEFAULT_SCHEMA = createSchema({
|
|
73
|
+
explicitTypes: [binary, omap, pairs, set],
|
|
74
|
+
implicitTypes: [timestamp, merge],
|
|
75
|
+
include: CORE_SCHEMA,
|
|
76
|
+
});
|
|
77
|
+
/***
|
|
78
|
+
* Extends JS-YAML default schema with additional JavaScript types
|
|
79
|
+
* It is not described in the YAML specification.
|
|
80
|
+
* Functions are no longer supported for security reasons.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* import { parse } from "@std/yaml";
|
|
85
|
+
*
|
|
86
|
+
* const data = parse(
|
|
87
|
+
* `
|
|
88
|
+
* regexp:
|
|
89
|
+
* simple: !!js/regexp foobar
|
|
90
|
+
* modifiers: !!js/regexp /foobar/mi
|
|
91
|
+
* undefined: !!js/undefined ~
|
|
92
|
+
* `,
|
|
93
|
+
* { schema: "extended" },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
const EXTENDED_SCHEMA = createSchema({
|
|
98
|
+
explicitTypes: [regexp, undefinedType],
|
|
99
|
+
include: DEFAULT_SCHEMA,
|
|
100
|
+
});
|
|
101
|
+
export const SCHEMA_MAP = new Map([
|
|
102
|
+
["core", CORE_SCHEMA],
|
|
103
|
+
["default", DEFAULT_SCHEMA],
|
|
104
|
+
["failsafe", FAILSAFE_SCHEMA],
|
|
105
|
+
["json", JSON_SCHEMA],
|
|
106
|
+
["extended", EXTENDED_SCHEMA],
|
|
107
|
+
]);
|
|
108
|
+
export function getSchema(schema = "default", types) {
|
|
109
|
+
const schemaObj = SCHEMA_MAP.get(schema);
|
|
110
|
+
if (!types) {
|
|
111
|
+
return schemaObj;
|
|
112
|
+
}
|
|
113
|
+
return createSchema({
|
|
114
|
+
implicitTypes: [...types, ...schemaObj.implicitTypes],
|
|
115
|
+
explicitTypes: [...schemaObj.explicitTypes],
|
|
116
|
+
});
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAmHxC,eAAO,MAAM,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,CAO7C,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
|
2
|
+
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
3
|
+
function resolveYamlBinary(data) {
|
|
4
|
+
if (data === null)
|
|
5
|
+
return false;
|
|
6
|
+
let code;
|
|
7
|
+
let bitlen = 0;
|
|
8
|
+
const max = data.length;
|
|
9
|
+
const map = BASE64_MAP;
|
|
10
|
+
// Convert one by one.
|
|
11
|
+
for (let idx = 0; idx < max; idx++) {
|
|
12
|
+
code = map.indexOf(data.charAt(idx));
|
|
13
|
+
// Skip CR/LF
|
|
14
|
+
if (code > 64)
|
|
15
|
+
continue;
|
|
16
|
+
// Fail on illegal characters
|
|
17
|
+
if (code < 0)
|
|
18
|
+
return false;
|
|
19
|
+
bitlen += 6;
|
|
20
|
+
}
|
|
21
|
+
// If there are any bits left, source was corrupted
|
|
22
|
+
return bitlen % 8 === 0;
|
|
23
|
+
}
|
|
24
|
+
function constructYamlBinary(data) {
|
|
25
|
+
// remove CR/LF & padding to simplify scan
|
|
26
|
+
const input = data.replace(/[\r\n=]/g, "");
|
|
27
|
+
const max = input.length;
|
|
28
|
+
const map = BASE64_MAP;
|
|
29
|
+
// Collect by 6*4 bits (3 bytes)
|
|
30
|
+
const result = [];
|
|
31
|
+
let bits = 0;
|
|
32
|
+
for (let idx = 0; idx < max; idx++) {
|
|
33
|
+
if (idx % 4 === 0 && idx) {
|
|
34
|
+
result.push((bits >> 16) & 0xff);
|
|
35
|
+
result.push((bits >> 8) & 0xff);
|
|
36
|
+
result.push(bits & 0xff);
|
|
37
|
+
}
|
|
38
|
+
bits = (bits << 6) | map.indexOf(input.charAt(idx));
|
|
39
|
+
}
|
|
40
|
+
// Dump tail
|
|
41
|
+
const tailbits = (max % 4) * 6;
|
|
42
|
+
if (tailbits === 0) {
|
|
43
|
+
result.push((bits >> 16) & 0xff);
|
|
44
|
+
result.push((bits >> 8) & 0xff);
|
|
45
|
+
result.push(bits & 0xff);
|
|
46
|
+
}
|
|
47
|
+
else if (tailbits === 18) {
|
|
48
|
+
result.push((bits >> 10) & 0xff);
|
|
49
|
+
result.push((bits >> 2) & 0xff);
|
|
50
|
+
}
|
|
51
|
+
else if (tailbits === 12) {
|
|
52
|
+
result.push((bits >> 4) & 0xff);
|
|
53
|
+
}
|
|
54
|
+
return new Uint8Array(result);
|
|
55
|
+
}
|
|
56
|
+
function representYamlBinary(object) {
|
|
57
|
+
const max = object.length;
|
|
58
|
+
const map = BASE64_MAP;
|
|
59
|
+
// Convert every three bytes to 4 ASCII characters.
|
|
60
|
+
let result = "";
|
|
61
|
+
let bits = 0;
|
|
62
|
+
for (let idx = 0; idx < max; idx++) {
|
|
63
|
+
if (idx % 3 === 0 && idx) {
|
|
64
|
+
result += map[(bits >> 18) & 0x3f];
|
|
65
|
+
result += map[(bits >> 12) & 0x3f];
|
|
66
|
+
result += map[(bits >> 6) & 0x3f];
|
|
67
|
+
result += map[bits & 0x3f];
|
|
68
|
+
}
|
|
69
|
+
bits = (bits << 8) + object[idx];
|
|
70
|
+
}
|
|
71
|
+
// Dump tail
|
|
72
|
+
const tail = max % 3;
|
|
73
|
+
if (tail === 0) {
|
|
74
|
+
result += map[(bits >> 18) & 0x3f];
|
|
75
|
+
result += map[(bits >> 12) & 0x3f];
|
|
76
|
+
result += map[(bits >> 6) & 0x3f];
|
|
77
|
+
result += map[bits & 0x3f];
|
|
78
|
+
}
|
|
79
|
+
else if (tail === 2) {
|
|
80
|
+
result += map[(bits >> 10) & 0x3f];
|
|
81
|
+
result += map[(bits >> 4) & 0x3f];
|
|
82
|
+
result += map[(bits << 2) & 0x3f];
|
|
83
|
+
result += map[64];
|
|
84
|
+
}
|
|
85
|
+
else if (tail === 1) {
|
|
86
|
+
result += map[(bits >> 2) & 0x3f];
|
|
87
|
+
result += map[(bits << 4) & 0x3f];
|
|
88
|
+
result += map[64];
|
|
89
|
+
result += map[64];
|
|
90
|
+
}
|
|
91
|
+
return result;
|
|
92
|
+
}
|
|
93
|
+
function isBinary(obj) {
|
|
94
|
+
return obj instanceof Uint8Array;
|
|
95
|
+
}
|
|
96
|
+
export const binary = {
|
|
97
|
+
tag: "tag:yaml.org,2002:binary",
|
|
98
|
+
construct: constructYamlBinary,
|
|
99
|
+
kind: "scalar",
|
|
100
|
+
predicate: isBinary,
|
|
101
|
+
represent: representYamlBinary,
|
|
102
|
+
resolve: resolveYamlBinary,
|
|
103
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bool.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAMxC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAyBxC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
const YAML_TRUE_BOOLEANS = ["true", "True", "TRUE"];
|
|
6
|
+
const YAML_FALSE_BOOLEANS = ["false", "False", "FALSE"];
|
|
7
|
+
const YAML_BOOLEANS = [...YAML_TRUE_BOOLEANS, ...YAML_FALSE_BOOLEANS];
|
|
8
|
+
export const bool = {
|
|
9
|
+
tag: "tag:yaml.org,2002:bool",
|
|
10
|
+
kind: "scalar",
|
|
11
|
+
defaultStyle: "lowercase",
|
|
12
|
+
predicate: (value) => typeof value === "boolean" || value instanceof Boolean,
|
|
13
|
+
construct: (data) => YAML_TRUE_BOOLEANS.includes(data),
|
|
14
|
+
resolve: (data) => YAML_BOOLEANS.includes(data),
|
|
15
|
+
represent: {
|
|
16
|
+
// deno-lint-ignore ban-types
|
|
17
|
+
lowercase: (object) => {
|
|
18
|
+
const value = object instanceof Boolean ? object.valueOf() : object;
|
|
19
|
+
return value ? "true" : "false";
|
|
20
|
+
},
|
|
21
|
+
// deno-lint-ignore ban-types
|
|
22
|
+
uppercase: (object) => {
|
|
23
|
+
const value = object instanceof Boolean ? object.valueOf() : object;
|
|
24
|
+
return value ? "TRUE" : "FALSE";
|
|
25
|
+
},
|
|
26
|
+
// deno-lint-ignore ban-types
|
|
27
|
+
camelcase: (object) => {
|
|
28
|
+
const value = object instanceof Boolean ? object.valueOf() : object;
|
|
29
|
+
return value ? "True" : "False";
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"float.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/float.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAgB,IAAI,EAAE,MAAM,aAAa,CAAC;AAkGtD,eAAO,MAAM,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAQxC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
import { isNegativeZero } from "../_utils.js";
|
|
6
|
+
const YAML_FLOAT_REGEXP = new RegExp(
|
|
7
|
+
// 2.5e4, 2.5 and integers
|
|
8
|
+
"^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?" +
|
|
9
|
+
// .2e4, .2
|
|
10
|
+
// special case, seems not from spec
|
|
11
|
+
"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?" +
|
|
12
|
+
// .inf
|
|
13
|
+
"|[-+]?\\.(?:inf|Inf|INF)" +
|
|
14
|
+
// .nan
|
|
15
|
+
"|\\.(?:nan|NaN|NAN))$");
|
|
16
|
+
function resolveYamlFloat(data) {
|
|
17
|
+
if (!YAML_FLOAT_REGEXP.test(data) ||
|
|
18
|
+
// Quick hack to not allow integers end with `_`
|
|
19
|
+
// Probably should update regexp & check speed
|
|
20
|
+
data[data.length - 1] === "_") {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function constructYamlFloat(data) {
|
|
26
|
+
let value = data.replace(/_/g, "").toLowerCase();
|
|
27
|
+
const sign = value[0] === "-" ? -1 : 1;
|
|
28
|
+
if (value[0] && "+-".includes(value[0])) {
|
|
29
|
+
value = value.slice(1);
|
|
30
|
+
}
|
|
31
|
+
if (value === ".inf") {
|
|
32
|
+
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
33
|
+
}
|
|
34
|
+
if (value === ".nan") {
|
|
35
|
+
return NaN;
|
|
36
|
+
}
|
|
37
|
+
return sign * parseFloat(value);
|
|
38
|
+
}
|
|
39
|
+
const SCIENTIFIC_WITHOUT_DOT_REGEXP = /^[-+]?[0-9]+e/;
|
|
40
|
+
function representYamlFloat(
|
|
41
|
+
// deno-lint-ignore ban-types
|
|
42
|
+
object, style) {
|
|
43
|
+
const value = object instanceof Number ? object.valueOf() : object;
|
|
44
|
+
if (isNaN(value)) {
|
|
45
|
+
switch (style) {
|
|
46
|
+
case "lowercase":
|
|
47
|
+
return ".nan";
|
|
48
|
+
case "uppercase":
|
|
49
|
+
return ".NAN";
|
|
50
|
+
case "camelcase":
|
|
51
|
+
return ".NaN";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else if (Number.POSITIVE_INFINITY === value) {
|
|
55
|
+
switch (style) {
|
|
56
|
+
case "lowercase":
|
|
57
|
+
return ".inf";
|
|
58
|
+
case "uppercase":
|
|
59
|
+
return ".INF";
|
|
60
|
+
case "camelcase":
|
|
61
|
+
return ".Inf";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else if (Number.NEGATIVE_INFINITY === value) {
|
|
65
|
+
switch (style) {
|
|
66
|
+
case "lowercase":
|
|
67
|
+
return "-.inf";
|
|
68
|
+
case "uppercase":
|
|
69
|
+
return "-.INF";
|
|
70
|
+
case "camelcase":
|
|
71
|
+
return "-.Inf";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
else if (isNegativeZero(value)) {
|
|
75
|
+
return "-0.0";
|
|
76
|
+
}
|
|
77
|
+
const res = value.toString(10);
|
|
78
|
+
// JS stringifier can build scientific format without dots: 5e-100,
|
|
79
|
+
// while YAML requires dot: 5.e-100. Fix it with simple hack
|
|
80
|
+
return SCIENTIFIC_WITHOUT_DOT_REGEXP.test(res) ? res.replace("e", ".e") : res;
|
|
81
|
+
}
|
|
82
|
+
function isFloat(object) {
|
|
83
|
+
if (object instanceof Number)
|
|
84
|
+
object = object.valueOf();
|
|
85
|
+
return typeof object === "number" &&
|
|
86
|
+
(object % 1 !== 0 || isNegativeZero(object));
|
|
87
|
+
}
|
|
88
|
+
export const float = {
|
|
89
|
+
tag: "tag:yaml.org,2002:float",
|
|
90
|
+
construct: constructYamlFloat,
|
|
91
|
+
defaultStyle: "lowercase",
|
|
92
|
+
kind: "scalar",
|
|
93
|
+
predicate: isFloat,
|
|
94
|
+
represent: representYamlFloat,
|
|
95
|
+
resolve: resolveYamlFloat,
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"int.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/int.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAqIxC,eAAO,MAAM,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAmCtC,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
import { isNegativeZero } from "../_utils.js";
|
|
6
|
+
function isCharCodeInRange(c, lower, upper) {
|
|
7
|
+
return lower <= c && c <= upper;
|
|
8
|
+
}
|
|
9
|
+
function isHexCode(c) {
|
|
10
|
+
return (isCharCodeInRange(c, 0x30, 0x39) || // 0-9
|
|
11
|
+
isCharCodeInRange(c, 0x41, 0x46) || // A-F
|
|
12
|
+
isCharCodeInRange(c, 0x61, 0x66) // a-f
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
function isOctCode(c) {
|
|
16
|
+
return isCharCodeInRange(c, 0x30, 0x37); // 0-7
|
|
17
|
+
}
|
|
18
|
+
function isDecCode(c) {
|
|
19
|
+
return isCharCodeInRange(c, 0x30, 0x39); // 0-9
|
|
20
|
+
}
|
|
21
|
+
function resolveYamlInteger(data) {
|
|
22
|
+
const max = data.length;
|
|
23
|
+
let index = 0;
|
|
24
|
+
let hasDigits = false;
|
|
25
|
+
if (!max)
|
|
26
|
+
return false;
|
|
27
|
+
let ch = data[index];
|
|
28
|
+
// sign
|
|
29
|
+
if (ch === "-" || ch === "+") {
|
|
30
|
+
ch = data[++index];
|
|
31
|
+
}
|
|
32
|
+
if (ch === "0") {
|
|
33
|
+
// 0
|
|
34
|
+
if (index + 1 === max)
|
|
35
|
+
return true;
|
|
36
|
+
ch = data[++index];
|
|
37
|
+
// base 2, base 8, base 16
|
|
38
|
+
if (ch === "b") {
|
|
39
|
+
// base 2
|
|
40
|
+
index++;
|
|
41
|
+
for (; index < max; index++) {
|
|
42
|
+
ch = data[index];
|
|
43
|
+
if (ch === "_")
|
|
44
|
+
continue;
|
|
45
|
+
if (ch !== "0" && ch !== "1")
|
|
46
|
+
return false;
|
|
47
|
+
hasDigits = true;
|
|
48
|
+
}
|
|
49
|
+
return hasDigits && ch !== "_";
|
|
50
|
+
}
|
|
51
|
+
if (ch === "x") {
|
|
52
|
+
// base 16
|
|
53
|
+
index++;
|
|
54
|
+
for (; index < max; index++) {
|
|
55
|
+
ch = data[index];
|
|
56
|
+
if (ch === "_")
|
|
57
|
+
continue;
|
|
58
|
+
if (!isHexCode(data.charCodeAt(index)))
|
|
59
|
+
return false;
|
|
60
|
+
hasDigits = true;
|
|
61
|
+
}
|
|
62
|
+
return hasDigits && ch !== "_";
|
|
63
|
+
}
|
|
64
|
+
// base 8
|
|
65
|
+
for (; index < max; index++) {
|
|
66
|
+
ch = data[index];
|
|
67
|
+
if (ch === "_")
|
|
68
|
+
continue;
|
|
69
|
+
if (!isOctCode(data.charCodeAt(index)))
|
|
70
|
+
return false;
|
|
71
|
+
hasDigits = true;
|
|
72
|
+
}
|
|
73
|
+
return hasDigits && ch !== "_";
|
|
74
|
+
}
|
|
75
|
+
// base 10 (except 0) or base 60
|
|
76
|
+
// value should not start with `_`;
|
|
77
|
+
if (ch === "_")
|
|
78
|
+
return false;
|
|
79
|
+
for (; index < max; index++) {
|
|
80
|
+
ch = data[index];
|
|
81
|
+
if (ch === "_")
|
|
82
|
+
continue;
|
|
83
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
hasDigits = true;
|
|
87
|
+
}
|
|
88
|
+
// Should have digits and should not end with `_`
|
|
89
|
+
if (!hasDigits || ch === "_")
|
|
90
|
+
return false;
|
|
91
|
+
// base60 almost not used, no needs to optimize
|
|
92
|
+
return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
|
|
93
|
+
}
|
|
94
|
+
function constructYamlInteger(data) {
|
|
95
|
+
let value = data;
|
|
96
|
+
if (value.includes("_")) {
|
|
97
|
+
value = value.replace(/_/g, "");
|
|
98
|
+
}
|
|
99
|
+
let sign = 1;
|
|
100
|
+
let ch = value[0];
|
|
101
|
+
if (ch === "-" || ch === "+") {
|
|
102
|
+
if (ch === "-")
|
|
103
|
+
sign = -1;
|
|
104
|
+
value = value.slice(1);
|
|
105
|
+
ch = value[0];
|
|
106
|
+
}
|
|
107
|
+
if (value === "0")
|
|
108
|
+
return 0;
|
|
109
|
+
if (ch === "0") {
|
|
110
|
+
if (value[1] === "b")
|
|
111
|
+
return sign * parseInt(value.slice(2), 2);
|
|
112
|
+
if (value[1] === "x")
|
|
113
|
+
return sign * parseInt(value, 16);
|
|
114
|
+
return sign * parseInt(value, 8);
|
|
115
|
+
}
|
|
116
|
+
return sign * parseInt(value, 10);
|
|
117
|
+
}
|
|
118
|
+
function isInteger(object) {
|
|
119
|
+
if (object instanceof Number)
|
|
120
|
+
object = object.valueOf();
|
|
121
|
+
return typeof object === "number" && object % 1 === 0 &&
|
|
122
|
+
!isNegativeZero(object);
|
|
123
|
+
}
|
|
124
|
+
export const int = {
|
|
125
|
+
tag: "tag:yaml.org,2002:int",
|
|
126
|
+
construct: constructYamlInteger,
|
|
127
|
+
defaultStyle: "decimal",
|
|
128
|
+
kind: "scalar",
|
|
129
|
+
predicate: isInteger,
|
|
130
|
+
represent: {
|
|
131
|
+
// deno-lint-ignore ban-types
|
|
132
|
+
binary(object) {
|
|
133
|
+
const value = object instanceof Number ? object.valueOf() : object;
|
|
134
|
+
return value >= 0
|
|
135
|
+
? `0b${value.toString(2)}`
|
|
136
|
+
: `-0b${value.toString(2).slice(1)}`;
|
|
137
|
+
},
|
|
138
|
+
// deno-lint-ignore ban-types
|
|
139
|
+
octal(object) {
|
|
140
|
+
const value = object instanceof Number ? object.valueOf() : object;
|
|
141
|
+
return value >= 0
|
|
142
|
+
? `0${value.toString(8)}`
|
|
143
|
+
: `-0${value.toString(8).slice(1)}`;
|
|
144
|
+
},
|
|
145
|
+
// deno-lint-ignore ban-types
|
|
146
|
+
decimal(object) {
|
|
147
|
+
const value = object instanceof Number ? object.valueOf() : object;
|
|
148
|
+
return value.toString(10);
|
|
149
|
+
},
|
|
150
|
+
// deno-lint-ignore ban-types
|
|
151
|
+
hexadecimal(object) {
|
|
152
|
+
const value = object instanceof Number ? object.valueOf() : object;
|
|
153
|
+
return value >= 0
|
|
154
|
+
? `0x${value.toString(16).toUpperCase()}`
|
|
155
|
+
: `-0x${value.toString(16).toUpperCase().slice(1)}`;
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
resolve: resolveYamlInteger,
|
|
159
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/map.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CASxC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
export const map = {
|
|
6
|
+
tag: "tag:yaml.org,2002:map",
|
|
7
|
+
resolve() {
|
|
8
|
+
return true;
|
|
9
|
+
},
|
|
10
|
+
construct(data) {
|
|
11
|
+
return data !== null ? data : {};
|
|
12
|
+
},
|
|
13
|
+
kind: "mapping",
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAKzC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
export const merge = {
|
|
6
|
+
tag: "tag:yaml.org,2002:merge",
|
|
7
|
+
kind: "scalar",
|
|
8
|
+
resolve: (data) => data === "<<" || data === null,
|
|
9
|
+
construct: (data) => data,
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nil.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAmBpC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Ported from js-yaml v3.13.1:
|
|
2
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
+
export const nil = {
|
|
6
|
+
tag: "tag:yaml.org,2002:null",
|
|
7
|
+
kind: "scalar",
|
|
8
|
+
defaultStyle: "lowercase",
|
|
9
|
+
predicate: (object) => object === null,
|
|
10
|
+
construct: () => null,
|
|
11
|
+
resolve: (data) => {
|
|
12
|
+
return (data === "~" ||
|
|
13
|
+
data === "null" ||
|
|
14
|
+
data === "Null" ||
|
|
15
|
+
data === "NULL");
|
|
16
|
+
},
|
|
17
|
+
represent: {
|
|
18
|
+
lowercase: () => "null",
|
|
19
|
+
uppercase: () => "NULL",
|
|
20
|
+
camelcase: () => "Null",
|
|
21
|
+
},
|
|
22
|
+
};
|