@salesforce/b2c-dx-mcp 2.1.2 → 3.0.0
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/README.md +20 -129
- package/content/guidance/b2c/b2c-business-manager-extensions/SKILL.md +361 -0
- package/content/guidance/b2c/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
- package/content/guidance/b2c/b2c-controllers/SKILL.md +301 -0
- package/content/guidance/b2c/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
- package/content/guidance/b2c/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
- package/content/guidance/b2c/b2c-custom-api-development/SKILL.md +281 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/CONTRACT.md +142 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/TESTING.md +118 -0
- package/content/guidance/b2c/b2c-custom-caches/SKILL.md +279 -0
- package/content/guidance/b2c/b2c-custom-job-steps/SKILL.md +520 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
- package/content/guidance/b2c/b2c-custom-objects/SKILL.md +327 -0
- package/content/guidance/b2c/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
- package/content/guidance/b2c/b2c-forms/SKILL.md +242 -0
- package/content/guidance/b2c/b2c-forms/references/FORM-XML.md +409 -0
- package/content/guidance/b2c/b2c-hooks/SKILL.md +500 -0
- package/content/guidance/b2c/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
- package/content/guidance/b2c/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
- package/content/guidance/b2c/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
- package/content/guidance/b2c/b2c-isml/SKILL.md +320 -0
- package/content/guidance/b2c/b2c-isml/references/EXPRESSIONS.md +366 -0
- package/content/guidance/b2c/b2c-isml/references/TAGS.md +443 -0
- package/content/guidance/b2c/b2c-localization/SKILL.md +344 -0
- package/content/guidance/b2c/b2c-localization/references/PATTERNS.md +407 -0
- package/content/guidance/b2c/b2c-logging/SKILL.md +352 -0
- package/content/guidance/b2c/b2c-logging/references/LOG-FILES.md +282 -0
- package/content/guidance/b2c/b2c-metadata/SKILL.md +406 -0
- package/content/guidance/b2c/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
- package/content/guidance/b2c/b2c-metadata/references/XML-EXAMPLES.md +366 -0
- package/content/guidance/b2c/b2c-onboarding/SKILL.md +154 -0
- package/content/guidance/b2c/b2c-ordering/SKILL.md +391 -0
- package/content/guidance/b2c/b2c-page-designer/SKILL.md +410 -0
- package/content/guidance/b2c/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
- package/content/guidance/b2c/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
- package/content/guidance/b2c/b2c-querying-data/SKILL.md +289 -0
- package/content/guidance/b2c/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
- package/content/guidance/b2c/b2c-scapi-admin/SKILL.md +53 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
- package/content/guidance/b2c/b2c-scapi-shopper/SKILL.md +56 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +352 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/SCOPES.md +290 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/SKILL.md +420 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
- package/content/guidance/b2c/b2c-webservices/SKILL.md +318 -0
- package/content/guidance/b2c/b2c-webservices/references/FTP-SERVICES.md +524 -0
- package/content/guidance/b2c/b2c-webservices/references/HTTP-SERVICES.md +578 -0
- package/content/guidance/b2c/b2c-webservices/references/SERVICES-XML.md +351 -0
- package/content/guidance/b2c/b2c-webservices/references/SOAP-SERVICES.md +587 -0
- package/content/guidance/b2c-cli/b2c-am/SKILL.md +277 -0
- package/content/guidance/b2c-cli/b2c-bm-users-roles/SKILL.md +210 -0
- package/content/guidance/b2c-cli/b2c-cap/SKILL.md +131 -0
- package/content/guidance/b2c-cli/b2c-cip/SKILL.md +116 -0
- package/content/guidance/b2c-cli/b2c-cip/references/KNOWN_TABLES.md +105 -0
- package/content/guidance/b2c-cli/b2c-cip/references/SALES_ANALYSIS.md +50 -0
- package/content/guidance/b2c-cli/b2c-cip/references/STARTER_QUERIES.md +147 -0
- package/content/guidance/b2c-cli/b2c-code/SKILL.md +146 -0
- package/content/guidance/b2c-cli/b2c-config/SKILL.md +412 -0
- package/content/guidance/b2c-cli/b2c-content/SKILL.md +176 -0
- package/content/guidance/b2c-cli/b2c-debug/SKILL.md +138 -0
- package/content/guidance/b2c-cli/b2c-docs/SKILL.md +274 -0
- package/content/guidance/b2c-cli/b2c-ecdn/SKILL.md +135 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/ADVANCED.md +82 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/SECURITY.md +75 -0
- package/content/guidance/b2c-cli/b2c-import-set-migrations/SKILL.md +265 -0
- package/content/guidance/b2c-cli/b2c-job/SKILL.md +62 -0
- package/content/guidance/b2c-cli/b2c-job/references/EXPORT.md +115 -0
- package/content/guidance/b2c-cli/b2c-job/references/IMPORT.md +43 -0
- package/content/guidance/b2c-cli/b2c-job/references/RUN-AND-MONITOR.md +119 -0
- package/content/guidance/b2c-cli/b2c-logs/SKILL.md +249 -0
- package/content/guidance/b2c-cli/b2c-metrics/SKILL.md +315 -0
- package/content/guidance/b2c-cli/b2c-mrt/SKILL.md +206 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/BUNDLE-COMMANDS.md +185 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +195 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
- package/content/guidance/b2c-cli/b2c-sandbox/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-scapi-custom/SKILL.md +126 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/SKILL.md +64 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/SKILL.md +57 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/METADATA-XML.md +381 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/WORKFLOWS.md +182 -0
- package/content/guidance/b2c-cli/b2c-sites/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-slas/SKILL.md +182 -0
- package/content/guidance/b2c-cli/b2c-webdav/SKILL.md +169 -0
- package/content/guidance/b2c-ops/b2c-checkout-triage/SKILL.md +68 -0
- package/content/guidance/b2c-ops/b2c-job-health/SKILL.md +75 -0
- package/content/guidance/b2c-ops/b2c-job-health/references/job-logs.md +21 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/SKILL.md +66 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/references/order-evidence.md +87 -0
- package/content/guidance/b2c-ops/b2c-production-triage/SKILL.md +87 -0
- package/content/guidance/b2c-ops/b2c-production-triage/references/escalation.md +57 -0
- package/content/guidance/index.json +1427 -0
- package/content/guidance/mcp/b2c-config/SKILL.md +86 -0
- package/content/guidance/mcp/cip/SKILL.md +86 -0
- package/content/guidance/mcp/debugger/SKILL.md +71 -0
- package/content/guidance/mcp/scapi/SKILL.md +153 -0
- package/content/guidance/mcp/scapi/references/custom-apis.md +51 -0
- package/content/guidance/mcp/scapi/references/custom-properties.md +43 -0
- package/content/guidance/mcp/scapi/references/jobs.md +30 -0
- package/content/guidance/mcp/scapi/references/products.md +37 -0
- package/content/guidance/mcp/scapi/references/promotions.md +19 -0
- package/content/guidance/mcp/scapi/references/saving.md +12 -0
- package/content/guidance/mcp/scapi/references/snippets.md +89 -0
- package/content/guidance/mcp/scapi/references/tokens.md +56 -0
- package/content/guidance/mcp/server/SKILL.md +99 -0
- package/content/guidance/mcp/server/references/files.md +37 -0
- package/content/guidance/storefront-next/sfnext-authentication/SKILL.md +120 -0
- package/content/guidance/storefront-next/sfnext-components/SKILL.md +191 -0
- package/content/guidance/storefront-next/sfnext-configuration/SKILL.md +160 -0
- package/content/guidance/storefront-next/sfnext-create-component/SKILL.md +195 -0
- package/content/guidance/storefront-next/sfnext-create-component/references/COMPONENT-AUTHORING.md +206 -0
- package/content/guidance/storefront-next/sfnext-create-component/references/PROJECT-STRUCTURE.md +43 -0
- package/content/guidance/storefront-next/sfnext-create-component/references/TOKEN-SYSTEM.md +130 -0
- package/content/guidance/storefront-next/sfnext-create-component/references/TROUBLESHOOTING.md +34 -0
- package/content/guidance/storefront-next/sfnext-create-vertical/SKILL.md +135 -0
- package/content/guidance/storefront-next/sfnext-create-vertical/references/COMPONENT-AUTHORING.md +206 -0
- package/content/guidance/storefront-next/sfnext-create-vertical/references/PROJECT-STRUCTURE.md +43 -0
- package/content/guidance/storefront-next/sfnext-create-vertical/references/TOKEN-SYSTEM.md +130 -0
- package/content/guidance/storefront-next/sfnext-create-vertical/references/TROUBLESHOOTING.md +34 -0
- package/content/guidance/storefront-next/sfnext-custom-apis/SKILL.md +221 -0
- package/content/guidance/storefront-next/sfnext-custom-apis/references/WORKFLOW-EXAMPLES.md +294 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/SKILL.md +190 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/LOADER-PATTERNS.md +102 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/SCAPI-FETCHER.md +93 -0
- package/content/guidance/storefront-next/sfnext-deployment/SKILL.md +141 -0
- package/content/guidance/storefront-next/sfnext-deployment/references/MRT-DEPLOYMENT.md +90 -0
- package/content/guidance/storefront-next/sfnext-extensions/SKILL.md +142 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/BASE-AUDIT.md +65 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/EXTENSION-EXAMPLES.md +116 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/SKILL.md +148 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +123 -0
- package/content/guidance/storefront-next/sfnext-i18n/SKILL.md +187 -0
- package/content/guidance/storefront-next/sfnext-page-designer/SKILL.md +181 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/COMPONENT-REGISTRY.md +78 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/DECORATOR-PATTERNS.md +180 -0
- package/content/guidance/storefront-next/sfnext-performance/SKILL.md +132 -0
- package/content/guidance/storefront-next/sfnext-project-setup/SKILL.md +160 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/ENV-VARIABLES.md +82 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/PROJECT-STRUCTURE.md +99 -0
- package/content/guidance/storefront-next/sfnext-routing/SKILL.md +180 -0
- package/content/guidance/storefront-next/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
- package/content/guidance/storefront-next/sfnext-scapi-management/SKILL.md +203 -0
- package/content/guidance/storefront-next/sfnext-scapi-management/references/CLI-COMMANDS.md +122 -0
- package/content/guidance/storefront-next/sfnext-state-management/SKILL.md +123 -0
- package/content/guidance/storefront-next/sfnext-testing/SKILL.md +184 -0
- package/content/guidance/storefront-next/sfnext-testing/references/STORYBOOK-PATTERNS.md +118 -0
- package/dist/commands/mcp.d.ts +2 -3
- package/dist/commands/mcp.js +53 -48
- package/dist/guidance.d.ts +6 -0
- package/dist/guidance.js +157 -0
- package/dist/registry.d.ts +2 -1
- package/dist/registry.js +22 -170
- package/dist/server.d.ts +19 -5
- package/dist/server.js +65 -8
- package/dist/skill-references.d.ts +28 -0
- package/dist/skill-references.js +14 -0
- package/dist/tools/adapter.d.ts +8 -5
- package/dist/tools/adapter.js +19 -7
- package/dist/tools/cartridges/index.js +38 -15
- package/dist/tools/cartridges/selected-files.d.ts +11 -0
- package/dist/tools/cartridges/selected-files.js +61 -0
- package/dist/tools/cip/client.d.ts +9 -0
- package/dist/tools/cip/client.js +44 -0
- package/dist/tools/cip/index.d.ts +6 -0
- package/dist/tools/cip/index.js +209 -0
- package/dist/tools/diagnostics/config-inspect.js +8 -4
- package/dist/tools/diagnostics/debug-capture-at-breakpoint.js +37 -11
- package/dist/tools/diagnostics/{debug-step.d.ts → debug-control.d.ts} +1 -1
- package/dist/tools/diagnostics/debug-control.js +36 -0
- package/dist/tools/diagnostics/debug-end-session.js +6 -7
- package/dist/tools/diagnostics/debug-evaluate.js +8 -6
- package/dist/tools/diagnostics/{debug-continue.d.ts → debug-inspect.d.ts} +1 -1
- package/dist/tools/diagnostics/debug-inspect.js +70 -0
- package/dist/tools/diagnostics/debug-list-sessions.js +4 -2
- package/dist/tools/diagnostics/debug-set-breakpoints.js +16 -15
- package/dist/tools/diagnostics/debug-start-session.js +5 -2
- package/dist/tools/diagnostics/debug-wait-for-stop.js +5 -2
- package/dist/tools/diagnostics/index.d.ts +2 -2
- package/dist/tools/diagnostics/index.js +8 -20
- package/dist/tools/diagnostics/log-watch-registry.d.ts +1 -1
- package/dist/tools/diagnostics/log-watch-registry.js +2 -2
- package/dist/tools/diagnostics/logs-get-recent.js +4 -1
- package/dist/tools/diagnostics/logs-list-files.js +4 -2
- package/dist/tools/diagnostics/logs-watch-poll.js +7 -11
- package/dist/tools/diagnostics/{logs-watch-start.d.ts → logs-watch.d.ts} +1 -1
- package/dist/tools/diagnostics/{logs-watch-start.js → logs-watch.js} +45 -12
- package/dist/tools/diagnostics/mrt-log-watch-registry.js +2 -2
- package/dist/tools/diagnostics/mrt-logs-watch-poll.js +6 -8
- package/dist/tools/diagnostics/{mrt-logs-watch-start.d.ts → mrt-logs-watch.d.ts} +1 -1
- package/dist/tools/diagnostics/{mrt-logs-watch-start.js → mrt-logs-watch.js} +44 -11
- package/dist/tools/diagnostics/watch-lifecycle.d.ts +3 -0
- package/dist/tools/diagnostics/watch-lifecycle.js +47 -0
- package/dist/tools/docs/docs-list.js +12 -8
- package/dist/tools/docs/docs-read.js +8 -2
- package/dist/tools/docs/docs-schema-list.js +5 -1
- package/dist/tools/docs/docs-schema-read.js +5 -1
- package/dist/tools/docs/docs-schema-search.js +5 -1
- package/dist/tools/docs/docs-search.js +8 -7
- package/dist/tools/docs/storefront.d.ts +21 -1
- package/dist/tools/docs/storefront.js +25 -0
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +2 -2
- package/dist/tools/mrt/index.js +3 -1
- package/dist/tools/project-context.d.ts +5 -3
- package/dist/tools/project-context.js +1 -1
- package/dist/tools/scapi/index.d.ts +1 -1
- package/dist/tools/scapi/index.js +2 -2
- package/dist/tools/scapi/metrics-get.js +3 -1
- package/dist/tools/scapi/scapi-code.d.ts +3 -0
- package/dist/tools/scapi/scapi-code.js +237 -0
- package/dist/tools/scapi/scapi-custom-apis-get-status.js +3 -1
- package/dist/tools/scapi/scapi-schemas-list.js +8 -1
- package/dist/tools/webdav/files.d.ts +14 -0
- package/dist/tools/webdav/files.js +118 -0
- package/dist/tools/webdav/index.d.ts +3 -0
- package/dist/tools/webdav/index.js +160 -0
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/tool-effects.d.ts +4 -0
- package/dist/utils/tool-effects.js +15 -0
- package/dist/utils/types.d.ts +17 -8
- package/dist/utils/types.js +0 -5
- package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/core/README.md +40 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts +8501 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +1678 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +2899 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts +8501 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/@modelcontextprotocol/server/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/server/README.md +30 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +7514 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +1071 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +7531 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +986 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +74 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +981 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +60 -0
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +42 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts +4043 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts +4045 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs +2055 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +739 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +739 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs +1870 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs +2022 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs +1931 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +23 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +11 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +11 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +22 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +12 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +4 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +30 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +10 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +10 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +29 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs +7606 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs +8104 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +564 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +107 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +107 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +562 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +1099 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +1099 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +5 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +3 -0
- package/node_modules/@modelcontextprotocol/server/package.json +160 -0
- package/node_modules/@salesforce/b2c-agent-plugins/CHANGELOG.md +351 -0
- package/node_modules/@salesforce/b2c-agent-plugins/README.md +84 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/.codex-plugin/plugin.json +40 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/README.md +42 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/assets/logo.svg +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/plugin.json +44 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-business-manager-extensions/SKILL.md +361 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-business-manager-extensions/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/SKILL.md +301 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/SKILL.md +281 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/references/CONTRACT.md +142 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/references/TESTING.md +118 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-caches/SKILL.md +279 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-caches/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/SKILL.md +520 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-objects/SKILL.md +327 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-objects/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-forms/SKILL.md +242 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-forms/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-forms/references/FORM-XML.md +409 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/SKILL.md +500 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/evals/trigger-evals.json +14 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/SKILL.md +320 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/references/EXPRESSIONS.md +366 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/references/TAGS.md +443 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-localization/SKILL.md +344 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-localization/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-localization/references/PATTERNS.md +407 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-logging/SKILL.md +352 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-logging/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-logging/references/LOG-FILES.md +282 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/SKILL.md +406 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/references/XML-EXAMPLES.md +366 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-onboarding/SKILL.md +154 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-ordering/SKILL.md +391 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-ordering/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/SKILL.md +410 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-querying-data/SKILL.md +289 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-querying-data/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/SKILL.md +53 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/SKILL.md +56 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +352 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/SCOPES.md +290 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/SKILL.md +420 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/SKILL.md +318 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/FTP-SERVICES.md +524 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/HTTP-SERVICES.md +578 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/SERVICES-XML.md +351 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/SOAP-SERVICES.md +587 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/.codex-plugin/plugin.json +40 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/README.md +42 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/assets/logo.svg +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/plugin.json +44 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-am/SKILL.md +277 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-am/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-bm-users-roles/SKILL.md +210 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cap/SKILL.md +131 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/SKILL.md +116 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/references/KNOWN_TABLES.md +105 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/references/SALES_ANALYSIS.md +50 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/references/STARTER_QUERIES.md +147 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-code/SKILL.md +146 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-code/evals/trigger-evals.json +14 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-config/SKILL.md +412 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-config/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-content/SKILL.md +176 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-content/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-debug/SKILL.md +138 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-debug/evals/trigger-evals.json +16 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-docs/SKILL.md +274 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-docs/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/SKILL.md +135 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/references/ADVANCED.md +82 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/references/SECURITY.md +75 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-import-set-migrations/SKILL.md +265 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-import-set-migrations/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/SKILL.md +62 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/references/EXPORT.md +115 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/references/IMPORT.md +43 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/references/RUN-AND-MONITOR.md +119 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-logs/SKILL.md +249 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-logs/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-metrics/SKILL.md +315 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/SKILL.md +206 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/references/BUNDLE-COMMANDS.md +185 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +195 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sandbox/SKILL.md +112 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sandbox/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-custom/SKILL.md +126 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-custom/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-schemas/SKILL.md +64 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-schemas/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/SKILL.md +57 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/evals/trigger-evals.json +14 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/references/METADATA-XML.md +381 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/references/WORKFLOWS.md +182 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sites/SKILL.md +112 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sites/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-slas/SKILL.md +182 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-slas/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-webdav/SKILL.md +169 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-webdav/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-experimental/skills/b2c-scaffold/SKILL.md +168 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-experimental/skills/b2c-scaffold/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/.codex-plugin/plugin.json +39 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/README.md +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/assets/logo.svg +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/plugin.json +43 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-checkout-triage/SKILL.md +68 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-job-health/SKILL.md +75 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-job-health/references/job-logs.md +21 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-order-failure-triage/SKILL.md +66 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-order-failure-triage/references/order-evidence.md +87 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-production-triage/SKILL.md +87 -0
- package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-production-triage/references/escalation.md +57 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/README.md +160 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/eval_lib.py +705 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/project/CLAUDE.md +10 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/project/README.md +24 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/project/cartridges/app_storefront_custom/cartridge/controllers/Loyalty.js +16 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/project/cartridges/app_storefront_custom/cartridge/models/loyalty.js +13 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/project/cartridges/app_storefront_custom/cartridge/templates/default/loyalty/dashboard.isml +22 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/project/dw.json +5 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/run_eval.py +187 -0
- package/node_modules/@salesforce/b2c-agent-plugins/eval/run_loop.py +467 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/.codex-plugin/plugin.json +40 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/README.md +55 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/assets/logo.svg +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/plugin.json +44 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/skills/figma-to-sfnext-pagedesigner/SKILL.md +444 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/skills/figma-to-sfnext-pagedesigner/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/skills/figma-to-sfnext-pagedesigner/references/PAGE-DESIGNER-SFN.md +120 -0
- package/node_modules/@salesforce/b2c-agent-plugins/package.json +6 -0
- package/node_modules/@salesforce/b2c-agent-plugins/plugins.json +23 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/.codex-plugin/plugin.json +39 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/README.md +56 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/assets/logo.svg +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/plugin.json +43 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-authentication/SKILL.md +120 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-components/SKILL.md +191 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-configuration/SKILL.md +160 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/SKILL.md +195 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/COMPONENT-AUTHORING.md +206 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/PROJECT-STRUCTURE.md +43 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/TOKEN-SYSTEM.md +130 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/TROUBLESHOOTING.md +34 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/SKILL.md +135 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/COMPONENT-AUTHORING.md +206 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/PROJECT-STRUCTURE.md +43 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/TOKEN-SYSTEM.md +130 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/TROUBLESHOOTING.md +34 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-custom-apis/SKILL.md +221 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-custom-apis/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-custom-apis/references/WORKFLOW-EXAMPLES.md +294 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-data-fetching/SKILL.md +190 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-data-fetching/references/LOADER-PATTERNS.md +102 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-data-fetching/references/SCAPI-FETCHER.md +93 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-deployment/SKILL.md +141 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-deployment/references/MRT-DEPLOYMENT.md +90 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-extensions/SKILL.md +142 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-extensions/references/BASE-AUDIT.md +65 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-extensions/references/EXTENSION-EXAMPLES.md +116 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-hybrid-storefronts/SKILL.md +148 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +123 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-i18n/SKILL.md +187 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-page-designer/SKILL.md +181 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-page-designer/references/COMPONENT-REGISTRY.md +78 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-page-designer/references/DECORATOR-PATTERNS.md +180 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-performance/SKILL.md +132 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-project-setup/SKILL.md +160 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-project-setup/references/ENV-VARIABLES.md +82 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-project-setup/references/PROJECT-STRUCTURE.md +99 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-routing/SKILL.md +180 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-scapi-management/SKILL.md +203 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-scapi-management/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-scapi-management/references/CLI-COMMANDS.md +122 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-state-management/SKILL.md +123 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-testing/SKILL.md +184 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-testing/references/STORYBOOK-PATTERNS.md +118 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/.codex-plugin/plugin.json +40 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/README.md +45 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/assets/logo.svg +31 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/plugin.json +44 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/SKILL.md +133 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/evals/trigger-evals.json +12 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/FIGMA-COMPONENT-EDITING.md +92 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/PROJECT-STRUCTURE.md +43 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/TOKEN-SYSTEM.md +130 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/TROUBLESHOOTING.md +34 -0
- package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/VERTICAL-FIGMA-SYNC.md +45 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +218 -0
- package/node_modules/zod/compile.cjs +77 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.d.ts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +146 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +55 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +721 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2862 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +83 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +720 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +836 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +979 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1310 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +281 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +107 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +183 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +362 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +950 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +234 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +662 -0
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1346 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +780 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4537 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1859 -0
- package/node_modules/zod/src/v4/core/checks.ts +1306 -0
- package/node_modules/zod/src/v4/core/compile.ts +2188 -0
- package/node_modules/zod/src/v4/core/core.ts +232 -0
- package/node_modules/zod/src/v4/core/doc.ts +48 -0
- package/node_modules/zod/src/v4/core/errors.ts +546 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +830 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +284 -0
- package/node_modules/zod/src/v4/core/parse.ts +288 -0
- package/node_modules/zod/src/v4/core/regexes.ts +207 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5028 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +1639 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +855 -0
- package/node_modules/zod/src/v4/core/util.ts +1209 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +118 -0
- package/node_modules/zod/src/v4/locales/az.ts +114 -0
- package/node_modules/zod/src/v4/locales/be.ts +186 -0
- package/node_modules/zod/src/v4/locales/bg.ts +131 -0
- package/node_modules/zod/src/v4/locales/bn.ts +121 -0
- package/node_modules/zod/src/v4/locales/ca.ts +119 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +138 -0
- package/node_modules/zod/src/v4/locales/cs.ts +121 -0
- package/node_modules/zod/src/v4/locales/da.ts +126 -0
- package/node_modules/zod/src/v4/locales/de.ts +119 -0
- package/node_modules/zod/src/v4/locales/el.ts +122 -0
- package/node_modules/zod/src/v4/locales/en.ts +134 -0
- package/node_modules/zod/src/v4/locales/eo.ts +121 -0
- package/node_modules/zod/src/v4/locales/es.ts +143 -0
- package/node_modules/zod/src/v4/locales/fa.ts +129 -0
- package/node_modules/zod/src/v4/locales/fi.ts +124 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +119 -0
- package/node_modules/zod/src/v4/locales/fr.ts +137 -0
- package/node_modules/zod/src/v4/locales/gu.ts +121 -0
- package/node_modules/zod/src/v4/locales/he.ts +251 -0
- package/node_modules/zod/src/v4/locales/hi.ts +124 -0
- package/node_modules/zod/src/v4/locales/hr.ts +133 -0
- package/node_modules/zod/src/v4/locales/hu.ts +120 -0
- package/node_modules/zod/src/v4/locales/hy.ts +173 -0
- package/node_modules/zod/src/v4/locales/id.ts +118 -0
- package/node_modules/zod/src/v4/locales/index.ts +62 -0
- package/node_modules/zod/src/v4/locales/is.ts +122 -0
- package/node_modules/zod/src/v4/locales/it.ts +119 -0
- package/node_modules/zod/src/v4/locales/ja.ts +117 -0
- package/node_modules/zod/src/v4/locales/ka.ts +126 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +122 -0
- package/node_modules/zod/src/v4/locales/kn.ts +124 -0
- package/node_modules/zod/src/v4/locales/ko.ts +124 -0
- package/node_modules/zod/src/v4/locales/lt.ts +241 -0
- package/node_modules/zod/src/v4/locales/mk.ts +121 -0
- package/node_modules/zod/src/v4/locales/ms.ts +118 -0
- package/node_modules/zod/src/v4/locales/ne.ts +126 -0
- package/node_modules/zod/src/v4/locales/nl.ts +124 -0
- package/node_modules/zod/src/v4/locales/nn.ts +119 -0
- package/node_modules/zod/src/v4/locales/no.ts +119 -0
- package/node_modules/zod/src/v4/locales/ota.ts +120 -0
- package/node_modules/zod/src/v4/locales/pl.ts +121 -0
- package/node_modules/zod/src/v4/locales/ps.ts +129 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +159 -0
- package/node_modules/zod/src/v4/locales/pt.ts +157 -0
- package/node_modules/zod/src/v4/locales/ro.ts +130 -0
- package/node_modules/zod/src/v4/locales/ru.ts +186 -0
- package/node_modules/zod/src/v4/locales/sk.ts +121 -0
- package/node_modules/zod/src/v4/locales/sl.ts +121 -0
- package/node_modules/zod/src/v4/locales/sv.ts +122 -0
- package/node_modules/zod/src/v4/locales/ta.ts +121 -0
- package/node_modules/zod/src/v4/locales/th.ts +122 -0
- package/node_modules/zod/src/v4/locales/tk.ts +111 -0
- package/node_modules/zod/src/v4/locales/tr.ts +114 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +120 -0
- package/node_modules/zod/src/v4/locales/ur.ts +122 -0
- package/node_modules/zod/src/v4/locales/uz.ts +118 -0
- package/node_modules/zod/src/v4/locales/vi.ts +120 -0
- package/node_modules/zod/src/v4/locales/yo.ts +127 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +119 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +118 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +50 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2026 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +1060 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +373 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +148 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3779 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +34 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +83 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +76 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +686 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +660 -0
- package/node_modules/zod/v4/classic/in-out.cjs +63 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +49 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +44 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1611 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +802 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +802 -0
- package/node_modules/zod/v4/classic/schemas.js +1491 -0
- package/node_modules/zod/v4/core/api.cjs +1246 -0
- package/node_modules/zod/v4/core/api.d.cts +329 -0
- package/node_modules/zod/v4/core/api.d.ts +329 -0
- package/node_modules/zod/v4/core/api.js +1104 -0
- package/node_modules/zod/v4/core/checks.cjs +607 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +581 -0
- package/node_modules/zod/v4/core/compile.cjs +1813 -0
- package/node_modules/zod/v4/core/compile.d.cts +51 -0
- package/node_modules/zod/v4/core/compile.d.ts +51 -0
- package/node_modules/zod/v4/core/compile.js +1783 -0
- package/node_modules/zod/v4/core/core.cjs +148 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +37 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/zod/v4/core/doc.js +33 -0
- package/node_modules/zod/v4/core/errors.cjs +301 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/zod/v4/core/errors.js +270 -0
- package/node_modules/zod/v4/core/index.cjs +51 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +103 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +813 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +747 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +272 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +265 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +193 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/zod/v4/core/parse.js +154 -0
- package/node_modules/zod/v4/core/regexes.cjs +184 -0
- package/node_modules/zod/v4/core/regexes.d.cts +87 -0
- package/node_modules/zod/v4/core/regexes.d.ts +87 -0
- package/node_modules/zod/v4/core/regexes.js +150 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2481 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1253 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1253 -0
- package/node_modules/zod/v4/core/schemas.js +2440 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +660 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +153 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +153 -0
- package/node_modules/zod/v4/core/to-json-schema.js +650 -0
- package/node_modules/zod/v4/core/util.cjs +915 -0
- package/node_modules/zod/v4/core/util.d.cts +257 -0
- package/node_modules/zod/v4/core/util.d.ts +257 -0
- package/node_modules/zod/v4/core/util.js +846 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/core/visit.cjs +195 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +32 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +136 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +109 -0
- package/node_modules/zod/v4/locales/az.cjs +135 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +108 -0
- package/node_modules/zod/v4/locales/be.cjs +193 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +166 -0
- package/node_modules/zod/v4/locales/bg.cjs +150 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +123 -0
- package/node_modules/zod/v4/locales/bn.cjs +138 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +111 -0
- package/node_modules/zod/v4/locales/ca.cjs +137 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +110 -0
- package/node_modules/zod/v4/locales/ckb.cjs +158 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +131 -0
- package/node_modules/zod/v4/locales/cs.cjs +141 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +114 -0
- package/node_modules/zod/v4/locales/da.cjs +145 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +118 -0
- package/node_modules/zod/v4/locales/de.cjs +138 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +111 -0
- package/node_modules/zod/v4/locales/el.cjs +137 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +110 -0
- package/node_modules/zod/v4/locales/en.cjs +150 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +123 -0
- package/node_modules/zod/v4/locales/eo.cjs +139 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +112 -0
- package/node_modules/zod/v4/locales/es.cjs +161 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +134 -0
- package/node_modules/zod/v4/locales/fa.cjs +144 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +117 -0
- package/node_modules/zod/v4/locales/fi.cjs +142 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +115 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +137 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +110 -0
- package/node_modules/zod/v4/locales/fr.cjs +154 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +127 -0
- package/node_modules/zod/v4/locales/gu.cjs +138 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +111 -0
- package/node_modules/zod/v4/locales/he.cjs +246 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +219 -0
- package/node_modules/zod/v4/locales/hi.cjs +136 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +109 -0
- package/node_modules/zod/v4/locales/hr.cjs +151 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +124 -0
- package/node_modules/zod/v4/locales/hu.cjs +138 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +111 -0
- package/node_modules/zod/v4/locales/hy.cjs +183 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +156 -0
- package/node_modules/zod/v4/locales/id.cjs +136 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +109 -0
- package/node_modules/zod/v4/locales/index.cjs +131 -0
- package/node_modules/zod/v4/locales/index.d.cts +62 -0
- package/node_modules/zod/v4/locales/index.d.ts +62 -0
- package/node_modules/zod/v4/locales/index.js +62 -0
- package/node_modules/zod/v4/locales/is.cjs +139 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +112 -0
- package/node_modules/zod/v4/locales/it.cjs +138 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +111 -0
- package/node_modules/zod/v4/locales/ja.cjs +137 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +110 -0
- package/node_modules/zod/v4/locales/ka.cjs +142 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +140 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +113 -0
- package/node_modules/zod/v4/locales/kn.cjs +141 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +114 -0
- package/node_modules/zod/v4/locales/ko.cjs +141 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +114 -0
- package/node_modules/zod/v4/locales/lt.cjs +232 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +205 -0
- package/node_modules/zod/v4/locales/mk.cjs +139 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +112 -0
- package/node_modules/zod/v4/locales/ms.cjs +137 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +110 -0
- package/node_modules/zod/v4/locales/ne.cjs +136 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +109 -0
- package/node_modules/zod/v4/locales/nl.cjs +140 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +113 -0
- package/node_modules/zod/v4/locales/nn.cjs +138 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +111 -0
- package/node_modules/zod/v4/locales/no.cjs +138 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +111 -0
- package/node_modules/zod/v4/locales/ota.cjs +139 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +112 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +139 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +112 -0
- package/node_modules/zod/v4/locales/ps.cjs +144 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +117 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +141 -0
- package/node_modules/zod/v4/locales/pt.cjs +167 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +140 -0
- package/node_modules/zod/v4/locales/ro.cjs +147 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +120 -0
- package/node_modules/zod/v4/locales/ru.cjs +193 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +166 -0
- package/node_modules/zod/v4/locales/sk.cjs +141 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +114 -0
- package/node_modules/zod/v4/locales/sl.cjs +139 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +112 -0
- package/node_modules/zod/v4/locales/sv.cjs +140 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +113 -0
- package/node_modules/zod/v4/locales/ta.cjs +140 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +113 -0
- package/node_modules/zod/v4/locales/th.cjs +140 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +113 -0
- package/node_modules/zod/v4/locales/tk.cjs +132 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +105 -0
- package/node_modules/zod/v4/locales/tr.cjs +135 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +108 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +138 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +111 -0
- package/node_modules/zod/v4/locales/ur.cjs +140 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +113 -0
- package/node_modules/zod/v4/locales/uz.cjs +138 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +111 -0
- package/node_modules/zod/v4/locales/vi.cjs +138 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +111 -0
- package/node_modules/zod/v4/locales/yo.cjs +137 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +110 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +112 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +137 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +110 -0
- package/node_modules/zod/v4/mini/checks.cjs +35 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +74 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +63 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +18 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1111 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +475 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +475 -0
- package/node_modules/zod/v4/mini/schemas.js +987 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/oclif.manifest.json +88 -62
- package/package.json +17 -9
- package/content/pwav3/components.md +0 -400
- package/content/pwav3/config.md +0 -124
- package/content/pwav3/data-fetching.md +0 -213
- package/content/pwav3/extensibility.md +0 -167
- package/content/pwav3/i18n.md +0 -214
- package/content/pwav3/quick-reference.md +0 -169
- package/content/pwav3/routing.md +0 -107
- package/content/pwav3/state-management.md +0 -193
- package/content/pwav3/styling.md +0 -248
- package/content/pwav3/testing.md +0 -124
- package/content/site-theming/theming-accessibility.md +0 -126
- package/content/site-theming/theming-questions.md +0 -208
- package/content/site-theming/theming-validation.md +0 -174
- package/dist/tools/diagnostics/debug-continue.js +0 -27
- package/dist/tools/diagnostics/debug-get-stack.d.ts +0 -4
- package/dist/tools/diagnostics/debug-get-stack.js +0 -31
- package/dist/tools/diagnostics/debug-get-variables.d.ts +0 -4
- package/dist/tools/diagnostics/debug-get-variables.js +0 -45
- package/dist/tools/diagnostics/debug-step.js +0 -38
- package/dist/tools/diagnostics/logs-watch-list.d.ts +0 -4
- package/dist/tools/diagnostics/logs-watch-list.js +0 -37
- package/dist/tools/diagnostics/logs-watch-stop.d.ts +0 -4
- package/dist/tools/diagnostics/logs-watch-stop.js +0 -36
- package/dist/tools/diagnostics/mrt-logs-watch-list.d.ts +0 -4
- package/dist/tools/diagnostics/mrt-logs-watch-list.js +0 -37
- package/dist/tools/diagnostics/mrt-logs-watch-stop.d.ts +0 -4
- package/dist/tools/diagnostics/mrt-logs-watch-stop.js +0 -37
- package/dist/tools/pwav3/index.d.ts +0 -22
- package/dist/tools/pwav3/index.js +0 -20
- package/dist/tools/pwav3/pwa-kit-development-guidelines.d.ts +0 -9
- package/dist/tools/pwav3/pwa-kit-development-guidelines.js +0 -111
- package/dist/tools/scapi/scapi-custom-api-generate-scaffold.d.ts +0 -67
- package/dist/tools/scapi/scapi-custom-api-generate-scaffold.js +0 -204
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
import { globalConfig } from "./core.js";
|
|
2
|
+
// functions
|
|
3
|
+
export function assertEqual(val) {
|
|
4
|
+
return val;
|
|
5
|
+
}
|
|
6
|
+
export function assertNotEqual(val) {
|
|
7
|
+
return val;
|
|
8
|
+
}
|
|
9
|
+
export function toZod() {
|
|
10
|
+
return (schema) => schema;
|
|
11
|
+
}
|
|
12
|
+
export function assertIs(_arg) { }
|
|
13
|
+
export function assertNever(_x) {
|
|
14
|
+
throw new Error("Unexpected value in exhaustive check");
|
|
15
|
+
}
|
|
16
|
+
export function assert(_) { }
|
|
17
|
+
export function getEnumValues(entries) {
|
|
18
|
+
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
19
|
+
const values = Object.entries(entries)
|
|
20
|
+
.filter(([k, _]) => numericValues.indexOf(+k) === -1)
|
|
21
|
+
.map(([_, v]) => v);
|
|
22
|
+
return values;
|
|
23
|
+
}
|
|
24
|
+
export function joinValues(array, separator = "|") {
|
|
25
|
+
return array.map((val) => stringifyPrimitive(val)).join(separator);
|
|
26
|
+
}
|
|
27
|
+
export function jsonStringifyReplacer(_, value) {
|
|
28
|
+
if (typeof value === "bigint")
|
|
29
|
+
return value.toString();
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
export function cached(getter) {
|
|
33
|
+
const set = false;
|
|
34
|
+
return {
|
|
35
|
+
get value() {
|
|
36
|
+
if (!set) {
|
|
37
|
+
const value = getter();
|
|
38
|
+
Object.defineProperty(this, "value", { value });
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
throw new Error("cached value already set");
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function nullish(input) {
|
|
46
|
+
return input === null || input === undefined;
|
|
47
|
+
}
|
|
48
|
+
export function cleanRegex(source) {
|
|
49
|
+
const start = source.startsWith("^") ? 1 : 0;
|
|
50
|
+
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
51
|
+
return source.slice(start, end);
|
|
52
|
+
}
|
|
53
|
+
export function floatSafeRemainder(val, step) {
|
|
54
|
+
const ratio = val / step;
|
|
55
|
+
const roundedRatio = Math.round(ratio);
|
|
56
|
+
// `val` and `step` each round to a double before the division rounds again, so a true decimal multiple's quotient can sit up to 1.5 of these scaled epsilons from the integer. A 1x tolerance therefore rejected 2.03 as a multiple of 0.07; 4x covers the worst case with margin.
|
|
57
|
+
const tolerance = 4 * Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
58
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
59
|
+
return 0;
|
|
60
|
+
return ratio - roundedRatio;
|
|
61
|
+
}
|
|
62
|
+
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
63
|
+
export function defineLazy(object, key, getter) {
|
|
64
|
+
let value = undefined;
|
|
65
|
+
Object.defineProperty(object, key, {
|
|
66
|
+
get() {
|
|
67
|
+
if (value === EVALUATING) {
|
|
68
|
+
// Circular reference detected, return undefined to break the cycle
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
value = EVALUATING;
|
|
73
|
+
value = getter();
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
},
|
|
77
|
+
set(v) {
|
|
78
|
+
Object.defineProperty(object, key, {
|
|
79
|
+
value: v,
|
|
80
|
+
// configurable: true,
|
|
81
|
+
});
|
|
82
|
+
// object[key] = v;
|
|
83
|
+
},
|
|
84
|
+
configurable: true,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
export function objectClone(obj) {
|
|
88
|
+
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
89
|
+
}
|
|
90
|
+
export function assignProp(target, prop, value) {
|
|
91
|
+
Object.defineProperty(target, prop, {
|
|
92
|
+
value,
|
|
93
|
+
writable: true,
|
|
94
|
+
enumerable: true,
|
|
95
|
+
configurable: true,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export function mergeDefs(...defs) {
|
|
99
|
+
const mergedDescriptors = {};
|
|
100
|
+
for (const def of defs) {
|
|
101
|
+
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
102
|
+
Object.assign(mergedDescriptors, descriptors);
|
|
103
|
+
}
|
|
104
|
+
return Object.defineProperties({}, mergedDescriptors);
|
|
105
|
+
}
|
|
106
|
+
export function cloneDef(schema) {
|
|
107
|
+
return mergeDefs(schema._zod.def);
|
|
108
|
+
}
|
|
109
|
+
export function getElementAtPath(obj, path) {
|
|
110
|
+
if (!path)
|
|
111
|
+
return obj;
|
|
112
|
+
return path.reduce((acc, key) => acc?.[key], obj);
|
|
113
|
+
}
|
|
114
|
+
export function promiseAllObject(promisesObj) {
|
|
115
|
+
const keys = Object.keys(promisesObj);
|
|
116
|
+
const promises = keys.map((key) => promisesObj[key]);
|
|
117
|
+
return Promise.all(promises).then((results) => {
|
|
118
|
+
const resolvedObj = {};
|
|
119
|
+
for (let i = 0; i < keys.length; i++) {
|
|
120
|
+
resolvedObj[keys[i]] = results[i];
|
|
121
|
+
}
|
|
122
|
+
return resolvedObj;
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export function randomString(length = 10) {
|
|
126
|
+
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
127
|
+
let str = "";
|
|
128
|
+
for (let i = 0; i < length; i++) {
|
|
129
|
+
str += chars[Math.floor(Math.random() * chars.length)];
|
|
130
|
+
}
|
|
131
|
+
return str;
|
|
132
|
+
}
|
|
133
|
+
export function esc(str) {
|
|
134
|
+
return JSON.stringify(str);
|
|
135
|
+
}
|
|
136
|
+
export function slugify(input) {
|
|
137
|
+
return input
|
|
138
|
+
.toLowerCase()
|
|
139
|
+
.trim()
|
|
140
|
+
.replace(/[^\w\s-]/g, "")
|
|
141
|
+
.replace(/[\s_-]+/g, "-")
|
|
142
|
+
.replace(/^-+|-+$/g, "");
|
|
143
|
+
}
|
|
144
|
+
export const captureStackTrace = ("captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => { });
|
|
145
|
+
export function isObject(data) {
|
|
146
|
+
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
147
|
+
}
|
|
148
|
+
export const allowsEval = /* @__PURE__*/ cached(() => {
|
|
149
|
+
// Skip the probe under `jitless`: strict CSPs report the caught `new Function` as a `securitypolicyviolation` even though the throw is swallowed.
|
|
150
|
+
if (globalConfig.jitless) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
// @ts-ignore
|
|
154
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
155
|
+
return false;
|
|
156
|
+
}
|
|
157
|
+
try {
|
|
158
|
+
const F = Function;
|
|
159
|
+
new F("");
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
catch (_) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
export function isPlainObject(o) {
|
|
167
|
+
if (isObject(o) === false)
|
|
168
|
+
return false;
|
|
169
|
+
// modified constructor
|
|
170
|
+
const ctor = o.constructor;
|
|
171
|
+
if (ctor === undefined)
|
|
172
|
+
return true;
|
|
173
|
+
if (typeof ctor !== "function")
|
|
174
|
+
return true;
|
|
175
|
+
// modified prototype
|
|
176
|
+
const prot = ctor.prototype;
|
|
177
|
+
if (isObject(prot) === false)
|
|
178
|
+
return false;
|
|
179
|
+
// ctor doesn't have static `isPrototypeOf`
|
|
180
|
+
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
export function shallowClone(o) {
|
|
186
|
+
if (isPlainObject(o))
|
|
187
|
+
return { ...o };
|
|
188
|
+
if (Array.isArray(o))
|
|
189
|
+
return [...o];
|
|
190
|
+
if (o instanceof Map)
|
|
191
|
+
return new Map(o);
|
|
192
|
+
if (o instanceof Set)
|
|
193
|
+
return new Set(o);
|
|
194
|
+
return o;
|
|
195
|
+
}
|
|
196
|
+
export function numKeys(data) {
|
|
197
|
+
let keyCount = 0;
|
|
198
|
+
for (const key in data) {
|
|
199
|
+
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
200
|
+
keyCount++;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return keyCount;
|
|
204
|
+
}
|
|
205
|
+
export const getParsedType = (data) => {
|
|
206
|
+
const t = typeof data;
|
|
207
|
+
switch (t) {
|
|
208
|
+
case "undefined":
|
|
209
|
+
return "undefined";
|
|
210
|
+
case "string":
|
|
211
|
+
return "string";
|
|
212
|
+
case "number":
|
|
213
|
+
return Number.isNaN(data) ? "nan" : "number";
|
|
214
|
+
case "boolean":
|
|
215
|
+
return "boolean";
|
|
216
|
+
case "function":
|
|
217
|
+
return "function";
|
|
218
|
+
case "bigint":
|
|
219
|
+
return "bigint";
|
|
220
|
+
case "symbol":
|
|
221
|
+
return "symbol";
|
|
222
|
+
case "object":
|
|
223
|
+
if (Array.isArray(data)) {
|
|
224
|
+
return "array";
|
|
225
|
+
}
|
|
226
|
+
if (data === null) {
|
|
227
|
+
return "null";
|
|
228
|
+
}
|
|
229
|
+
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
230
|
+
return "promise";
|
|
231
|
+
}
|
|
232
|
+
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
233
|
+
return "map";
|
|
234
|
+
}
|
|
235
|
+
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
236
|
+
return "set";
|
|
237
|
+
}
|
|
238
|
+
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
239
|
+
return "date";
|
|
240
|
+
}
|
|
241
|
+
// @ts-ignore
|
|
242
|
+
if (typeof File !== "undefined" && data instanceof File) {
|
|
243
|
+
return "file";
|
|
244
|
+
}
|
|
245
|
+
return "object";
|
|
246
|
+
default:
|
|
247
|
+
throw new Error(`Unknown data type: ${t}`);
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
export const propertyKeyTypes = /* @__PURE__*/ new Set(["string", "number", "symbol"]);
|
|
251
|
+
export const primitiveTypes = /* @__PURE__*/ new Set([
|
|
252
|
+
"string",
|
|
253
|
+
"number",
|
|
254
|
+
"bigint",
|
|
255
|
+
"boolean",
|
|
256
|
+
"symbol",
|
|
257
|
+
"undefined",
|
|
258
|
+
]);
|
|
259
|
+
export function escapeRegex(str) {
|
|
260
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
261
|
+
}
|
|
262
|
+
// zod-specific utils
|
|
263
|
+
export function clone(inst, def, params) {
|
|
264
|
+
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
265
|
+
if (!def || params?.parent)
|
|
266
|
+
cl._zod.parent = inst;
|
|
267
|
+
return cl;
|
|
268
|
+
}
|
|
269
|
+
export function normalizeParams(_params) {
|
|
270
|
+
const params = _params;
|
|
271
|
+
if (!params)
|
|
272
|
+
return {};
|
|
273
|
+
if (typeof params === "string")
|
|
274
|
+
return { error: () => params };
|
|
275
|
+
if (params?.message !== undefined) {
|
|
276
|
+
if (params?.error !== undefined)
|
|
277
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
278
|
+
params.error = params.message;
|
|
279
|
+
}
|
|
280
|
+
delete params.message;
|
|
281
|
+
if (typeof params.error === "string")
|
|
282
|
+
return { ...params, error: () => params.error };
|
|
283
|
+
return params;
|
|
284
|
+
}
|
|
285
|
+
export function createTransparentProxy(getter) {
|
|
286
|
+
let target;
|
|
287
|
+
return new Proxy({}, {
|
|
288
|
+
get(_, prop, receiver) {
|
|
289
|
+
target ?? (target = getter());
|
|
290
|
+
return Reflect.get(target, prop, receiver);
|
|
291
|
+
},
|
|
292
|
+
set(_, prop, value, receiver) {
|
|
293
|
+
target ?? (target = getter());
|
|
294
|
+
return Reflect.set(target, prop, value, receiver);
|
|
295
|
+
},
|
|
296
|
+
has(_, prop) {
|
|
297
|
+
target ?? (target = getter());
|
|
298
|
+
return Reflect.has(target, prop);
|
|
299
|
+
},
|
|
300
|
+
deleteProperty(_, prop) {
|
|
301
|
+
target ?? (target = getter());
|
|
302
|
+
return Reflect.deleteProperty(target, prop);
|
|
303
|
+
},
|
|
304
|
+
ownKeys(_) {
|
|
305
|
+
target ?? (target = getter());
|
|
306
|
+
return Reflect.ownKeys(target);
|
|
307
|
+
},
|
|
308
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
309
|
+
target ?? (target = getter());
|
|
310
|
+
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
311
|
+
},
|
|
312
|
+
defineProperty(_, prop, descriptor) {
|
|
313
|
+
target ?? (target = getter());
|
|
314
|
+
return Reflect.defineProperty(target, prop, descriptor);
|
|
315
|
+
},
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
export function stringifyPrimitive(value) {
|
|
319
|
+
if (typeof value === "bigint")
|
|
320
|
+
return value.toString() + "n";
|
|
321
|
+
if (typeof value === "string")
|
|
322
|
+
return `"${value}"`;
|
|
323
|
+
return `${value}`;
|
|
324
|
+
}
|
|
325
|
+
export function optionalKeys(shape) {
|
|
326
|
+
return Object.keys(shape).filter((k) => {
|
|
327
|
+
return shape[k]._zod.optin !== undefined && shape[k]._zod.optout === "optional";
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
// Wrapped in a `@__PURE__` IIFE: esbuild never tree-shakes a top-level initializer that contains a member access on `Number`, so the bare object literal survived into every bundle.
|
|
331
|
+
export const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({
|
|
332
|
+
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
333
|
+
int32: [-2147483648, 2147483647],
|
|
334
|
+
uint32: [0, 4294967295],
|
|
335
|
+
float32: [-3.4028234663852886e38, 3.4028234663852886e38],
|
|
336
|
+
float64: [-Number.MAX_VALUE, Number.MAX_VALUE],
|
|
337
|
+
}))();
|
|
338
|
+
export const BIGINT_FORMAT_RANGES = {
|
|
339
|
+
int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
|
|
340
|
+
uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")],
|
|
341
|
+
};
|
|
342
|
+
export function pick(schema, mask) {
|
|
343
|
+
const currDef = schema._zod.def;
|
|
344
|
+
const checks = currDef.checks;
|
|
345
|
+
const hasChecks = checks && checks.length > 0;
|
|
346
|
+
if (hasChecks) {
|
|
347
|
+
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
348
|
+
}
|
|
349
|
+
const def = mergeDefs(schema._zod.def, {
|
|
350
|
+
get shape() {
|
|
351
|
+
const newShape = {};
|
|
352
|
+
// `for...in` skips symbols, so a symbol in the mask would select nothing
|
|
353
|
+
for (const key of Reflect.ownKeys(mask)) {
|
|
354
|
+
if (!Object.prototype.hasOwnProperty.call(currDef.shape, key)) {
|
|
355
|
+
throw new Error(`Unrecognized key: "${String(key)}"`);
|
|
356
|
+
}
|
|
357
|
+
if (!mask[key])
|
|
358
|
+
continue;
|
|
359
|
+
assignProp(newShape, key, currDef.shape[key]);
|
|
360
|
+
}
|
|
361
|
+
assignProp(this, "shape", newShape); // self-caching
|
|
362
|
+
return newShape;
|
|
363
|
+
},
|
|
364
|
+
checks: [],
|
|
365
|
+
});
|
|
366
|
+
return clone(schema, def);
|
|
367
|
+
}
|
|
368
|
+
export function omit(schema, mask) {
|
|
369
|
+
const currDef = schema._zod.def;
|
|
370
|
+
const checks = currDef.checks;
|
|
371
|
+
const hasChecks = checks && checks.length > 0;
|
|
372
|
+
if (hasChecks) {
|
|
373
|
+
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
374
|
+
}
|
|
375
|
+
const def = mergeDefs(schema._zod.def, {
|
|
376
|
+
get shape() {
|
|
377
|
+
const newShape = { ...schema._zod.def.shape };
|
|
378
|
+
for (const key of Reflect.ownKeys(mask)) {
|
|
379
|
+
if (!Object.prototype.hasOwnProperty.call(currDef.shape, key)) {
|
|
380
|
+
throw new Error(`Unrecognized key: "${String(key)}"`);
|
|
381
|
+
}
|
|
382
|
+
if (!mask[key])
|
|
383
|
+
continue;
|
|
384
|
+
delete newShape[key];
|
|
385
|
+
}
|
|
386
|
+
assignProp(this, "shape", newShape); // self-caching
|
|
387
|
+
return newShape;
|
|
388
|
+
},
|
|
389
|
+
checks: [],
|
|
390
|
+
});
|
|
391
|
+
return clone(schema, def);
|
|
392
|
+
}
|
|
393
|
+
export function extend(schema, shape) {
|
|
394
|
+
if (!isPlainObject(shape)) {
|
|
395
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
396
|
+
}
|
|
397
|
+
const checks = schema._zod.def.checks;
|
|
398
|
+
const hasChecks = checks && checks.length > 0;
|
|
399
|
+
if (hasChecks) {
|
|
400
|
+
// Only throw if new shape overlaps with existing shape. Use getOwnPropertyDescriptor to check key existence without accessing values
|
|
401
|
+
const existingShape = schema._zod.def.shape;
|
|
402
|
+
for (const key of Reflect.ownKeys(shape)) {
|
|
403
|
+
if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
|
|
404
|
+
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
const def = mergeDefs(schema._zod.def, {
|
|
409
|
+
get shape() {
|
|
410
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
411
|
+
assignProp(this, "shape", _shape); // self-caching
|
|
412
|
+
return _shape;
|
|
413
|
+
},
|
|
414
|
+
});
|
|
415
|
+
return clone(schema, def);
|
|
416
|
+
}
|
|
417
|
+
export function safeExtend(schema, shape) {
|
|
418
|
+
if (!isPlainObject(shape)) {
|
|
419
|
+
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
420
|
+
}
|
|
421
|
+
const def = mergeDefs(schema._zod.def, {
|
|
422
|
+
get shape() {
|
|
423
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
424
|
+
assignProp(this, "shape", _shape); // self-caching
|
|
425
|
+
return _shape;
|
|
426
|
+
},
|
|
427
|
+
});
|
|
428
|
+
return clone(schema, def);
|
|
429
|
+
}
|
|
430
|
+
export function merge(a, b) {
|
|
431
|
+
if (!b?._zod?.def) {
|
|
432
|
+
throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
|
|
433
|
+
}
|
|
434
|
+
if (a._zod.def.checks?.length) {
|
|
435
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
436
|
+
}
|
|
437
|
+
const def = mergeDefs(a._zod.def, {
|
|
438
|
+
get shape() {
|
|
439
|
+
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
440
|
+
assignProp(this, "shape", _shape); // self-caching
|
|
441
|
+
return _shape;
|
|
442
|
+
},
|
|
443
|
+
get catchall() {
|
|
444
|
+
return b._zod.def.catchall;
|
|
445
|
+
},
|
|
446
|
+
checks: b._zod.def.checks ?? [],
|
|
447
|
+
});
|
|
448
|
+
return clone(a, def);
|
|
449
|
+
}
|
|
450
|
+
export function partial(Class, schema, mask, name = "partial") {
|
|
451
|
+
const currDef = schema._zod.def;
|
|
452
|
+
const checks = currDef.checks;
|
|
453
|
+
const hasChecks = checks && checks.length > 0;
|
|
454
|
+
if (hasChecks) {
|
|
455
|
+
throw new Error(`.${name}() cannot be used on object schemas containing refinements`);
|
|
456
|
+
}
|
|
457
|
+
const def = mergeDefs(schema._zod.def, {
|
|
458
|
+
get shape() {
|
|
459
|
+
const oldShape = schema._zod.def.shape;
|
|
460
|
+
const shape = { ...oldShape };
|
|
461
|
+
if (mask) {
|
|
462
|
+
for (const key of Reflect.ownKeys(mask)) {
|
|
463
|
+
if (!Object.prototype.hasOwnProperty.call(oldShape, key)) {
|
|
464
|
+
throw new Error(`Unrecognized key: "${String(key)}"`);
|
|
465
|
+
}
|
|
466
|
+
if (!mask[key])
|
|
467
|
+
continue;
|
|
468
|
+
// if (oldShape[key]!._zod.optin === "optional") continue;
|
|
469
|
+
shape[key] = Class
|
|
470
|
+
? new Class({
|
|
471
|
+
type: "optional",
|
|
472
|
+
innerType: oldShape[key],
|
|
473
|
+
})
|
|
474
|
+
: oldShape[key];
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
// the spread copies symbol keys; `for...in` would not reach them
|
|
479
|
+
for (const key of Reflect.ownKeys(oldShape)) {
|
|
480
|
+
// if (oldShape[key]!._zod.optin === "optional") continue;
|
|
481
|
+
shape[key] = Class
|
|
482
|
+
? new Class({
|
|
483
|
+
type: "optional",
|
|
484
|
+
innerType: oldShape[key],
|
|
485
|
+
})
|
|
486
|
+
: oldShape[key];
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
assignProp(this, "shape", shape); // self-caching
|
|
490
|
+
return shape;
|
|
491
|
+
},
|
|
492
|
+
checks: [],
|
|
493
|
+
});
|
|
494
|
+
return clone(schema, def);
|
|
495
|
+
}
|
|
496
|
+
export function required(Class, schema, mask) {
|
|
497
|
+
const def = mergeDefs(schema._zod.def, {
|
|
498
|
+
get shape() {
|
|
499
|
+
const oldShape = schema._zod.def.shape;
|
|
500
|
+
const shape = { ...oldShape };
|
|
501
|
+
if (mask) {
|
|
502
|
+
for (const key of Reflect.ownKeys(mask)) {
|
|
503
|
+
if (!Object.prototype.hasOwnProperty.call(shape, key)) {
|
|
504
|
+
throw new Error(`Unrecognized key: "${String(key)}"`);
|
|
505
|
+
}
|
|
506
|
+
if (!mask[key])
|
|
507
|
+
continue;
|
|
508
|
+
// overwrite with non-optional
|
|
509
|
+
shape[key] = new Class({
|
|
510
|
+
type: "nonoptional",
|
|
511
|
+
innerType: oldShape[key],
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
for (const key of Reflect.ownKeys(oldShape)) {
|
|
517
|
+
// overwrite with non-optional
|
|
518
|
+
shape[key] = new Class({
|
|
519
|
+
type: "nonoptional",
|
|
520
|
+
innerType: oldShape[key],
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
assignProp(this, "shape", shape); // self-caching
|
|
525
|
+
return shape;
|
|
526
|
+
},
|
|
527
|
+
});
|
|
528
|
+
return clone(schema, def);
|
|
529
|
+
}
|
|
530
|
+
// invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom
|
|
531
|
+
export function aborted(x, startIndex = 0) {
|
|
532
|
+
if (x.aborted === true)
|
|
533
|
+
return true;
|
|
534
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
535
|
+
if (x.issues[i]?.continue !== true) {
|
|
536
|
+
return true;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return false;
|
|
540
|
+
}
|
|
541
|
+
// Checks for explicit abort (continue === false), as opposed to implicit abort (continue === undefined). Used to respect `abort: true` in .refine() even for checks that have a `when` function.
|
|
542
|
+
export function explicitlyAborted(x, startIndex = 0) {
|
|
543
|
+
if (x.aborted === true)
|
|
544
|
+
return true;
|
|
545
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
546
|
+
if (x.issues[i]?.continue === false) {
|
|
547
|
+
return true;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return false;
|
|
551
|
+
}
|
|
552
|
+
export function prefixIssues(path, issues) {
|
|
553
|
+
return issues.map((iss) => {
|
|
554
|
+
var _a;
|
|
555
|
+
(_a = iss).path ?? (_a.path = []);
|
|
556
|
+
iss.path.unshift(path);
|
|
557
|
+
return iss;
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
export function unwrapMessage(message) {
|
|
561
|
+
return typeof message === "string" ? message : message?.message;
|
|
562
|
+
}
|
|
563
|
+
/* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
|
|
564
|
+
export function attachSchema(issues, start, inst) {
|
|
565
|
+
var _a;
|
|
566
|
+
for (let i = start; i < issues.length; i++) {
|
|
567
|
+
(_a = issues[i]).schema ?? (_a.schema = inst);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
export function finalizeIssue(iss, ctx, config) {
|
|
571
|
+
var _a;
|
|
572
|
+
// A schema that raised an issue itself owns it outright, and outranks any stamp an enclosing check left in `attachSchema`. String formats and z.custom() are schema and check at once, so when they act as a check they defer to that stamp instead.
|
|
573
|
+
const traits = iss.inst?._zod?.traits;
|
|
574
|
+
if (traits?.has("$ZodType")) {
|
|
575
|
+
if (traits.has("$ZodCheck"))
|
|
576
|
+
(_a = iss).schema ?? (_a.schema = iss.inst);
|
|
577
|
+
else
|
|
578
|
+
iss.schema = iss.inst;
|
|
579
|
+
}
|
|
580
|
+
// Decreasing specificity, first map to return a message wins. `inst` is whatever raised the issue, so a check's own map outranks the owning schema's.
|
|
581
|
+
const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : undefined;
|
|
582
|
+
const message = iss.message
|
|
583
|
+
? iss.message
|
|
584
|
+
: (unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??
|
|
585
|
+
unwrapMessage(schemaError?.(iss)) ??
|
|
586
|
+
unwrapMessage(ctx?.error?.(iss)) ??
|
|
587
|
+
unwrapMessage(config.customError?.(iss)) ??
|
|
588
|
+
unwrapMessage(config.localeError?.(iss)) ??
|
|
589
|
+
"Invalid input");
|
|
590
|
+
const { inst: _inst, schema: _schema, continue: _continue, input: _input, ...rest } = iss;
|
|
591
|
+
rest.path ?? (rest.path = []);
|
|
592
|
+
rest.message = message;
|
|
593
|
+
if (ctx?.reportInput) {
|
|
594
|
+
rest.input = _input;
|
|
595
|
+
}
|
|
596
|
+
return rest;
|
|
597
|
+
}
|
|
598
|
+
export function getSizableOrigin(input) {
|
|
599
|
+
if (input instanceof Set)
|
|
600
|
+
return "set";
|
|
601
|
+
if (input instanceof Map)
|
|
602
|
+
return "map";
|
|
603
|
+
// @ts-ignore
|
|
604
|
+
if (input instanceof File)
|
|
605
|
+
return "file";
|
|
606
|
+
return "unknown";
|
|
607
|
+
}
|
|
608
|
+
const highSurrogate = /[\uD800-\uDBFF]/;
|
|
609
|
+
// Code points in `str`: a surrogate pair counts once, a lone surrogate as itself. Hand-rolled because the string iterator allocates and runs ~250x slower on this path; the regex probe exits ~50x quicker for a string with no astral characters.
|
|
610
|
+
export function codePointLength(str) {
|
|
611
|
+
const units = str.length;
|
|
612
|
+
if (!highSurrogate.test(str))
|
|
613
|
+
return units;
|
|
614
|
+
let count = units;
|
|
615
|
+
for (let i = 0; i < units - 1; i++) {
|
|
616
|
+
if ((str.charCodeAt(i) & 0xfc00) === 0xd800 && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
|
|
617
|
+
count--;
|
|
618
|
+
i++;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return count;
|
|
622
|
+
}
|
|
623
|
+
export function getLengthableOrigin(input) {
|
|
624
|
+
if (Array.isArray(input))
|
|
625
|
+
return "array";
|
|
626
|
+
if (typeof input === "string")
|
|
627
|
+
return "string";
|
|
628
|
+
return "unknown";
|
|
629
|
+
}
|
|
630
|
+
export function parsedType(data) {
|
|
631
|
+
const t = typeof data;
|
|
632
|
+
switch (t) {
|
|
633
|
+
case "number": {
|
|
634
|
+
return Number.isNaN(data) ? "nan" : "number";
|
|
635
|
+
}
|
|
636
|
+
case "object": {
|
|
637
|
+
if (data === null) {
|
|
638
|
+
return "null";
|
|
639
|
+
}
|
|
640
|
+
if (Array.isArray(data)) {
|
|
641
|
+
return "array";
|
|
642
|
+
}
|
|
643
|
+
const obj = data;
|
|
644
|
+
if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) {
|
|
645
|
+
return obj.constructor.name;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
return t;
|
|
650
|
+
}
|
|
651
|
+
export function issue(...args) {
|
|
652
|
+
const [iss, input, inst] = args;
|
|
653
|
+
if (typeof iss === "string") {
|
|
654
|
+
return {
|
|
655
|
+
message: iss,
|
|
656
|
+
code: "custom",
|
|
657
|
+
input,
|
|
658
|
+
inst,
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
return { ...iss };
|
|
662
|
+
}
|
|
663
|
+
export function cleanEnum(obj) {
|
|
664
|
+
return Object.entries(obj)
|
|
665
|
+
.filter(([k, _]) => {
|
|
666
|
+
// return true if NaN, meaning it's not a number, thus a string key
|
|
667
|
+
return Number.isNaN(Number.parseInt(k, 10));
|
|
668
|
+
})
|
|
669
|
+
.map((el) => el[1]);
|
|
670
|
+
}
|
|
671
|
+
// Codec utility functions
|
|
672
|
+
export function base64ToUint8Array(base64) {
|
|
673
|
+
const binaryString = atob(base64);
|
|
674
|
+
const bytes = new Uint8Array(binaryString.length);
|
|
675
|
+
for (let i = 0; i < binaryString.length; i++) {
|
|
676
|
+
bytes[i] = binaryString.charCodeAt(i);
|
|
677
|
+
}
|
|
678
|
+
return bytes;
|
|
679
|
+
}
|
|
680
|
+
export function uint8ArrayToBase64(bytes) {
|
|
681
|
+
let binaryString = "";
|
|
682
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
683
|
+
binaryString += String.fromCharCode(bytes[i]);
|
|
684
|
+
}
|
|
685
|
+
return btoa(binaryString);
|
|
686
|
+
}
|
|
687
|
+
export function base64urlToUint8Array(base64url) {
|
|
688
|
+
const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/");
|
|
689
|
+
const padding = "=".repeat((4 - (base64.length % 4)) % 4);
|
|
690
|
+
return base64ToUint8Array(base64 + padding);
|
|
691
|
+
}
|
|
692
|
+
export function uint8ArrayToBase64url(bytes) {
|
|
693
|
+
return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
694
|
+
}
|
|
695
|
+
export function hexToUint8Array(hex) {
|
|
696
|
+
const cleanHex = hex.replace(/^0x/, "");
|
|
697
|
+
if (cleanHex.length % 2 !== 0) {
|
|
698
|
+
throw new Error("Invalid hex string length");
|
|
699
|
+
}
|
|
700
|
+
const bytes = new Uint8Array(cleanHex.length / 2);
|
|
701
|
+
for (let i = 0; i < cleanHex.length; i += 2) {
|
|
702
|
+
bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
|
|
703
|
+
}
|
|
704
|
+
return bytes;
|
|
705
|
+
}
|
|
706
|
+
export function uint8ArrayToHex(bytes) {
|
|
707
|
+
return Array.from(bytes)
|
|
708
|
+
.map((b) => b.toString(16).padStart(2, "0"))
|
|
709
|
+
.join("");
|
|
710
|
+
}
|
|
711
|
+
// instanceof
|
|
712
|
+
export class Class {
|
|
713
|
+
constructor(..._args) { }
|
|
714
|
+
}
|
|
715
|
+
////////// PROTOTYPE INSTALLERS //////////
|
|
716
|
+
//
|
|
717
|
+
// Members live on the prototype and materialize per instance on first read, which keeps own-property count under the step where V8 stops using inline slots. Changing anything here means re-measuring runtime, memory and bundle size together — see "The three axes" in AGENTS.md.
|
|
718
|
+
/**
|
|
719
|
+
* Installs a trait's members on its prototype. Each value builds that member for the instance on first read; the built value shadows the accessor as an own property, so a detached `const { parse } = schema` keeps working.
|
|
720
|
+
*
|
|
721
|
+
* Call this from a `proto` initializer, which runs once per prototype — never per instance.
|
|
722
|
+
*/
|
|
723
|
+
export function members(proto, table) {
|
|
724
|
+
for (const key in table) {
|
|
725
|
+
const desc = Object.getOwnPropertyDescriptor(table, key);
|
|
726
|
+
// a getter installs as written, so it stays live: `description` reads through to the registry on every access. not enumerable: an object literal's is, and a prototype member never was
|
|
727
|
+
if (desc.get)
|
|
728
|
+
Object.defineProperty(proto, key, { ...desc, enumerable: false });
|
|
729
|
+
// a method materializes bound on first read, which is what keeps a detached member working: `const opt = schema.optional; opt()`
|
|
730
|
+
else
|
|
731
|
+
defineBound(proto, key, desc.value);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
/** Shadows a prototype member with an own value, so a getter that builds from the instance runs once. */
|
|
735
|
+
export function own(inst, key, value, enumerable = true) {
|
|
736
|
+
Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });
|
|
737
|
+
return value;
|
|
738
|
+
}
|
|
739
|
+
/** Like {@link own}, for a member that was never an own data property and has to stay out of `Object.keys`. */
|
|
740
|
+
export function hide(inst, key, value) {
|
|
741
|
+
return own(inst, key, value, false);
|
|
742
|
+
}
|
|
743
|
+
function defineBound(proto, key, fn) {
|
|
744
|
+
Object.defineProperty(proto, key, {
|
|
745
|
+
configurable: true,
|
|
746
|
+
get() {
|
|
747
|
+
// vitest's spyOn calls a prototype getter bare to find the function it wraps, so a nullish receiver answers the raw method
|
|
748
|
+
return this == null ? fn : own(this, key, fn.bind(this));
|
|
749
|
+
},
|
|
750
|
+
set(value) {
|
|
751
|
+
own(this, key, value);
|
|
752
|
+
},
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
/** Returns the prototype to install on, or `undefined` if this group is already installed on it. */
|
|
756
|
+
function claim(inst, sentinel) {
|
|
757
|
+
const proto = Object.getPrototypeOf(inst);
|
|
758
|
+
// Runs on every construction, so `in` rather than the costlier `hasOwnProperty.call`. Sentinels are keys the group itself defines.
|
|
759
|
+
return sentinel in proto ? undefined : proto;
|
|
760
|
+
}
|
|
761
|
+
// The internals whose init chain is installing. A second call for the same one is a derived constructor overriding its base, so it must not construct another schema in between or the override is dropped.
|
|
762
|
+
let installing;
|
|
763
|
+
// Set while a getter is running, so a value that resolved through a recursion break is not memoized. One shared descriptor shadows the key for the duration, which costs no per-key allocation.
|
|
764
|
+
let broke = false;
|
|
765
|
+
const breaker = {
|
|
766
|
+
configurable: true,
|
|
767
|
+
get() {
|
|
768
|
+
broke = true;
|
|
769
|
+
return undefined;
|
|
770
|
+
},
|
|
771
|
+
};
|
|
772
|
+
/**
|
|
773
|
+
* Installs a lazily-derived internal on the `_zod` prototype of `inst`'s
|
|
774
|
+
* constructor, computed from the internals object itself and cached there on
|
|
775
|
+
* first read. One accessor per constructor rather than one per instance.
|
|
776
|
+
*/
|
|
777
|
+
export function defineLazyInternal(inst, key, compute) {
|
|
778
|
+
const proto = Object.getPrototypeOf(inst._zod);
|
|
779
|
+
if (key in proto && installing !== inst._zod) {
|
|
780
|
+
// A repeat construction: everything is installed already. Cleared here so the reference is not held past the first construction of every type.
|
|
781
|
+
installing = undefined;
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
installing = inst._zod;
|
|
785
|
+
Object.defineProperty(proto, key, {
|
|
786
|
+
configurable: true,
|
|
787
|
+
get() {
|
|
788
|
+
// Shadowed before computing so a re-entrant read from a recursive schema resolves to undefined instead of running the getter again.
|
|
789
|
+
Object.defineProperty(this, key, breaker);
|
|
790
|
+
const outer = broke;
|
|
791
|
+
broke = false;
|
|
792
|
+
try {
|
|
793
|
+
const value = compute(this);
|
|
794
|
+
// A result that resolved through a recursion break is recomputed once the graph is complete; everything else memoizes, undefined included.
|
|
795
|
+
if (broke)
|
|
796
|
+
delete this[key];
|
|
797
|
+
else
|
|
798
|
+
Object.defineProperty(this, key, { configurable: true, writable: true, value });
|
|
799
|
+
broke = broke || outer;
|
|
800
|
+
return value;
|
|
801
|
+
}
|
|
802
|
+
catch (err) {
|
|
803
|
+
// A compute that threw memoizes nothing, so a later read runs it again and fails the same way. The shadow goes with it, since leaving it installed would answer undefined for every later read.
|
|
804
|
+
delete this[key];
|
|
805
|
+
broke = broke || outer;
|
|
806
|
+
throw err;
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
set(value) {
|
|
810
|
+
Object.defineProperty(this, key, { configurable: true, writable: true, value });
|
|
811
|
+
},
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Installs `key` on `inst`'s prototype, computed by `make` on first read and cached there as an own
|
|
816
|
+
* data property. One accessor per constructor rather than one per instance, because an own accessor
|
|
817
|
+
* puts every instance after the first into v8 dictionary mode. The key doubles as the sentinel.
|
|
818
|
+
*/
|
|
819
|
+
export function installLazyProp(inst, key, make, enumerable) {
|
|
820
|
+
const proto = claim(inst, key);
|
|
821
|
+
if (!proto)
|
|
822
|
+
return;
|
|
823
|
+
Object.defineProperty(proto, key, {
|
|
824
|
+
configurable: true,
|
|
825
|
+
get() {
|
|
826
|
+
// Shadowed before computing, so a re-entrant read from a self-referential shape resolves to undefined instead of running the getter again. A data property rather than an accessor: an own accessor is the dictionary-mode transition this exists to avoid.
|
|
827
|
+
const desc = { configurable: true, writable: true, enumerable, value: undefined };
|
|
828
|
+
Object.defineProperty(this, key, desc);
|
|
829
|
+
// a compute that throws leaves the shadow behind, so later reads answer undefined instead of re-throwing; `defineLazy` did the same, and `defineLazyInternal`'s delete-on-catch would cost bytes in every bundle for a case only a throwing user getter reaches
|
|
830
|
+
desc.value = make(this);
|
|
831
|
+
Object.defineProperty(this, key, desc);
|
|
832
|
+
return desc.value;
|
|
833
|
+
},
|
|
834
|
+
set(value) {
|
|
835
|
+
Object.defineProperty(this, key, { configurable: true, writable: true, enumerable, value });
|
|
836
|
+
},
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
/** Marks the thunk `_catch` synthesises for a constant catch value. `Function.length` cannot tell that thunk from a user callback — rest and defaulted parameters both report arity 0 — and a user callback reads `ctx.error`, whose issues only finalize correctly against the caller's per-parse error map. Provenance can say what arity cannot. A plain string key rather than `Symbol.for`, whose call at module scope no bundler can prove pure — the same shape that anchored `urlCanParse` into every build. */
|
|
840
|
+
export const CONSTANT_CATCH = "~constantCatch";
|
|
841
|
+
/** Wraps a constant catch value in a thunk tagged with {@link CONSTANT_CATCH}. */
|
|
842
|
+
export function constantCatch(value) {
|
|
843
|
+
const fn = () => value;
|
|
844
|
+
fn[CONSTANT_CATCH] = true;
|
|
845
|
+
return fn;
|
|
846
|
+
}
|