@skillcap/gdh 3.2.1 → 3.2.2
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/INSTALL-BUNDLE.json +1 -1
- package/RELEASE-SPAN-UPDATE-CONTRACTS.json +70 -0
- package/node_modules/@clack/core/CHANGELOG.md +8 -0
- package/node_modules/@clack/core/dist/index.d.mts +18 -4
- package/node_modules/@clack/core/dist/index.mjs +16 -10
- package/node_modules/@clack/core/dist/index.mjs.map +1 -1
- package/node_modules/@clack/core/package.json +5 -2
- package/node_modules/@clack/prompts/CHANGELOG.md +15 -0
- package/node_modules/@clack/prompts/README.md +107 -2
- package/node_modules/@clack/prompts/dist/index.d.mts +16 -11
- package/node_modules/@clack/prompts/dist/index.mjs +114 -107
- package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
- package/node_modules/@clack/prompts/package.json +7 -4
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.js +1 -1
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js +4 -2
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.js +1 -1
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/deferred-actions-advisory.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/deferred-actions-advisory.js +1 -1
- package/node_modules/@gdh/adapters/dist/deferred-actions-advisory.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/durable-backup.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/durable-backup.js +3 -5
- package/node_modules/@gdh/adapters/dist/durable-backup.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.d.ts +11 -37
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +18 -90
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/inventory-sweep.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/inventory-sweep.js +1 -3
- package/node_modules/@gdh/adapters/dist/inventory-sweep.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/managed-surfaces.d.ts +32 -0
- package/node_modules/@gdh/adapters/dist/managed-surfaces.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/managed-surfaces.js +66 -0
- package/node_modules/@gdh/adapters/dist/managed-surfaces.js.map +1 -0
- package/node_modules/@gdh/adapters/dist/process-orchestration.d.ts +1 -1
- package/node_modules/@gdh/adapters/dist/process-orchestration.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/process-orchestration.js +3 -2
- package/node_modules/@gdh/adapters/dist/process-orchestration.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +11 -23
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.js +2 -8
- package/node_modules/@gdh/adapters/dist/skill-rendering.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/template-assets.js.map +1 -1
- package/node_modules/@gdh/adapters/package.json +7 -8
- package/node_modules/@gdh/authoring/dist/authoring-state-store.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/authoring-state-store.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/cache.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/cache.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.d.ts +2 -2
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.js +2 -2
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.js +15 -12
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-broker-snapshot.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-broker-snapshot.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-client.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-client.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-constants.d.ts +17 -0
- package/node_modules/@gdh/authoring/dist/lsp-constants.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/lsp-constants.js +17 -0
- package/node_modules/@gdh/authoring/dist/lsp-constants.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/lsp-warmup.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-warmup.js +2 -4
- package/node_modules/@gdh/authoring/dist/lsp-warmup.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp.js +8 -46
- package/node_modules/@gdh/authoring/dist/lsp.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/prepare.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/prepare.js +1 -3
- package/node_modules/@gdh/authoring/dist/prepare.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/project.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/project.js +4 -13
- package/node_modules/@gdh/authoring/dist/project.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/report.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/report.js +2 -11
- package/node_modules/@gdh/authoring/dist/report.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/scene-resource.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/scene-resource.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/tcp-port.d.ts +2 -0
- package/node_modules/@gdh/authoring/dist/tcp-port.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/tcp-port.js +23 -0
- package/node_modules/@gdh/authoring/dist/tcp-port.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/warmup.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/warmup.js.map +1 -1
- package/node_modules/@gdh/authoring/package.json +2 -2
- package/node_modules/@gdh/cli/dist/args.d.ts +44 -0
- package/node_modules/@gdh/cli/dist/args.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/args.js +124 -0
- package/node_modules/@gdh/cli/dist/args.js.map +1 -0
- package/node_modules/@gdh/cli/dist/bridge-session.d.ts +1 -1
- package/node_modules/@gdh/cli/dist/bridge-session.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/bridge-session.js +8 -7
- package/node_modules/@gdh/cli/dist/bridge-session.js.map +1 -1
- package/node_modules/@gdh/cli/dist/index.d.ts +4 -52
- package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/index.js +8 -197
- package/node_modules/@gdh/cli/dist/index.js.map +1 -1
- package/node_modules/@gdh/cli/dist/io.d.ts +10 -0
- package/node_modules/@gdh/cli/dist/io.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/io.js +26 -0
- package/node_modules/@gdh/cli/dist/io.js.map +1 -0
- package/node_modules/@gdh/cli/dist/migrate.d.ts +1 -1
- package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.js +23 -30
- package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
- package/node_modules/@gdh/cli/dist/self-update.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/self-update.js +13 -20
- package/node_modules/@gdh/cli/dist/self-update.js.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.js.map +1 -1
- package/node_modules/@gdh/cli/dist/status-command.d.ts +3 -0
- package/node_modules/@gdh/cli/dist/status-command.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/status-command.js +44 -0
- package/node_modules/@gdh/cli/dist/status-command.js.map +1 -0
- package/node_modules/@gdh/cli/dist/update-banner.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/update-banner.js +1 -1
- package/node_modules/@gdh/cli/dist/update-banner.js.map +1 -1
- package/node_modules/@gdh/cli/package.json +11 -11
- package/node_modules/@gdh/core/dist/dev-mode.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/dev-mode.js.map +1 -1
- package/node_modules/@gdh/core/dist/editor-operation-runner.d.ts +3 -0
- package/node_modules/@gdh/core/dist/editor-operation-runner.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/editor-operation-runner.js +682 -0
- package/node_modules/@gdh/core/dist/editor-operation-runner.js.map +1 -0
- package/node_modules/@gdh/core/dist/git-root.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/git-root.js +4 -1
- package/node_modules/@gdh/core/dist/git-root.js.map +1 -1
- package/node_modules/@gdh/core/dist/godot-docs-version.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/godot-docs-version.js.map +1 -1
- package/node_modules/@gdh/core/dist/godot-stderr-fatality.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/godot-stderr-fatality.js +1 -2
- package/node_modules/@gdh/core/dist/godot-stderr-fatality.js.map +1 -1
- package/node_modules/@gdh/core/dist/index.d.ts +8 -5
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +14 -5
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/managed-gitignore.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/managed-gitignore.js +4 -14
- package/node_modules/@gdh/core/dist/managed-gitignore.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s2c2_to_s2c3_rules_schema_v2_to_v3.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s2c2_to_s2c3_rules_schema_v2_to_v3.js +2 -2
- package/node_modules/@gdh/core/dist/migrations/entries/s2c2_to_s2c3_rules_schema_v2_to_v3.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.js +6 -14
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s3c8_to_s3c9_register_runtime_bridge_autoload.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s3c8_to_s3c9_register_runtime_bridge_autoload.js +7 -23
- package/node_modules/@gdh/core/dist/migrations/entries/s3c8_to_s3c9_register_runtime_bridge_autoload.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/envelopes/envelope-output-validator.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/envelopes/envelope-output-validator.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/envelopes/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/envelopes/index.js +1 -2
- package/node_modules/@gdh/core/dist/migrations/envelopes/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/envelopes/types.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/golden-harness.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/golden-harness.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/probes.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/probes.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.d.ts +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.js +3 -6
- package/node_modules/@gdh/core/dist/migrations/registry.js.map +1 -1
- package/node_modules/@gdh/core/dist/official-docs.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/release-span-preview.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/release-span-preview.js +1 -1
- package/node_modules/@gdh/core/dist/release-span-preview.js.map +1 -1
- package/node_modules/@gdh/core/dist/release-span-update-contract.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/release-span-update-contract.js +5 -10
- package/node_modules/@gdh/core/dist/release-span-update-contract.js.map +1 -1
- package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.js.map +1 -1
- package/node_modules/@gdh/core/dist/state/migration-state.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/state/migration-state.js +3 -8
- package/node_modules/@gdh/core/dist/state/migration-state.js.map +1 -1
- package/node_modules/@gdh/core/dist/state/migration-trace.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/state/migration-trace.js +3 -8
- package/node_modules/@gdh/core/dist/state/migration-trace.js.map +1 -1
- package/node_modules/@gdh/core/dist/state/render-inventory.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/state/render-inventory.js.map +1 -1
- package/node_modules/@gdh/core/dist/update-cache.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/update-cache.js.map +1 -1
- package/node_modules/@gdh/core/dist/update-probe.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/update-probe.js +1 -3
- package/node_modules/@gdh/core/dist/update-probe.js.map +1 -1
- package/node_modules/@gdh/core/package.json +1 -1
- package/node_modules/@gdh/docs/dist/agent-contract.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/agent-contract.js +2 -4
- package/node_modules/@gdh/docs/dist/agent-contract.js.map +1 -1
- package/node_modules/@gdh/docs/dist/files.d.ts +1 -1
- package/node_modules/@gdh/docs/dist/files.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/guidance.js +1 -1
- package/node_modules/@gdh/docs/dist/guidance.js.map +1 -1
- package/node_modules/@gdh/docs/dist/index.d.ts +4 -4
- package/node_modules/@gdh/docs/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/index.js +3 -3
- package/node_modules/@gdh/docs/dist/index.js.map +1 -1
- package/node_modules/@gdh/docs/dist/official-docs.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/official-docs.js +16 -5
- package/node_modules/@gdh/docs/dist/official-docs.js.map +1 -1
- package/node_modules/@gdh/docs/dist/query.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/query.js +8 -3
- package/node_modules/@gdh/docs/dist/query.js.map +1 -1
- package/node_modules/@gdh/docs/dist/recovery-hints.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/recovery-hints.js +0 -1
- package/node_modules/@gdh/docs/dist/recovery-hints.js.map +1 -1
- package/node_modules/@gdh/docs/dist/template-assets.js.map +1 -1
- package/node_modules/@gdh/docs/package.json +2 -2
- package/node_modules/@gdh/editor/dist/index.d.ts +1 -3
- package/node_modules/@gdh/editor/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/editor/dist/index.js +9 -682
- package/node_modules/@gdh/editor/dist/index.js.map +1 -1
- package/node_modules/@gdh/editor/package.json +2 -2
- package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts +8 -1
- package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/bridge-tools.js +81 -2
- package/node_modules/@gdh/mcp/dist/bridge-tools.js.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.js +10 -77
- package/node_modules/@gdh/mcp/dist/index.js.map +1 -1
- package/node_modules/@gdh/mcp/package.json +8 -10
- package/node_modules/@gdh/observability/dist/guidance-audit.d.ts.map +1 -1
- package/node_modules/@gdh/observability/dist/guidance-audit.js +11 -21
- package/node_modules/@gdh/observability/dist/guidance-audit.js.map +1 -1
- package/node_modules/@gdh/observability/dist/index.d.ts +2 -2
- package/node_modules/@gdh/observability/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/observability/dist/index.js +1 -1
- package/node_modules/@gdh/observability/dist/index.js.map +1 -1
- package/node_modules/@gdh/observability/dist/runtime-bundles.d.ts.map +1 -1
- package/node_modules/@gdh/observability/dist/runtime-bundles.js +3 -10
- package/node_modules/@gdh/observability/dist/runtime-bundles.js.map +1 -1
- package/node_modules/@gdh/observability/dist/runtime-corpus.d.ts.map +1 -1
- package/node_modules/@gdh/observability/dist/runtime-corpus.js +1 -1
- package/node_modules/@gdh/observability/dist/runtime-corpus.js.map +1 -1
- package/node_modules/@gdh/observability/package.json +3 -2
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.d.ts +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.js +0 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker.js +9 -5
- package/node_modules/@gdh/runtime/dist/bridge-broker.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.js +2 -2
- package/node_modules/@gdh/runtime/dist/bridge-surface.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/docker-provider.d.ts +1 -1
- package/node_modules/@gdh/runtime/dist/docker-provider.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/docker-provider.js +5 -16
- package/node_modules/@gdh/runtime/dist/docker-provider.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/index.js +2 -1
- package/node_modules/@gdh/runtime/dist/index.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/knowledge-surface.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/knowledge-surface.js +21 -10
- package/node_modules/@gdh/runtime/dist/knowledge-surface.js.map +1 -1
- package/node_modules/@gdh/runtime/package.json +2 -3
- package/node_modules/@gdh/scan/dist/detect-existing-onboarding.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/detect-existing-onboarding.js +1 -5
- package/node_modules/@gdh/scan/dist/detect-existing-onboarding.js.map +1 -1
- package/node_modules/@gdh/scan/dist/index.d.ts +3 -3
- package/node_modules/@gdh/scan/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/index.js +3 -3
- package/node_modules/@gdh/scan/dist/index.js.map +1 -1
- package/node_modules/@gdh/scan/dist/inventory-cache.js +1 -1
- package/node_modules/@gdh/scan/dist/inventory-cache.js.map +1 -1
- package/node_modules/@gdh/scan/dist/onboard.d.ts +1 -2
- package/node_modules/@gdh/scan/dist/onboard.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/onboard.js +4 -5
- package/node_modules/@gdh/scan/dist/onboard.js.map +1 -1
- package/node_modules/@gdh/scan/dist/scan.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/scan.js +4 -2
- package/node_modules/@gdh/scan/dist/scan.js.map +1 -1
- package/node_modules/@gdh/scan/package.json +3 -3
- package/node_modules/@gdh/verify/dist/corpus.d.ts.map +1 -1
- package/node_modules/@gdh/verify/dist/corpus.js +7 -6
- package/node_modules/@gdh/verify/dist/corpus.js.map +1 -1
- package/node_modules/@gdh/verify/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/verify/dist/index.js +0 -1
- package/node_modules/@gdh/verify/dist/index.js.map +1 -1
- package/node_modules/@gdh/verify/dist/readiness.d.ts.map +1 -1
- package/node_modules/@gdh/verify/dist/readiness.js.map +1 -1
- package/node_modules/@gdh/verify/dist/scenarios.d.ts +1 -1
- package/node_modules/@gdh/verify/dist/scenarios.d.ts.map +1 -1
- package/node_modules/@gdh/verify/dist/scenarios.js +14 -11
- package/node_modules/@gdh/verify/dist/scenarios.js.map +1 -1
- package/node_modules/@gdh/verify/package.json +6 -7
- package/node_modules/@hono/node-server/dist/index.js +22 -0
- package/node_modules/@hono/node-server/dist/index.mjs +22 -0
- package/node_modules/@hono/node-server/dist/listener.js +22 -0
- package/node_modules/@hono/node-server/dist/listener.mjs +22 -0
- package/node_modules/@hono/node-server/dist/request.js +11 -0
- package/node_modules/@hono/node-server/dist/request.mjs +11 -0
- package/node_modules/@hono/node-server/dist/response.js +11 -0
- package/node_modules/@hono/node-server/dist/response.mjs +11 -0
- package/node_modules/@hono/node-server/dist/server.js +22 -0
- package/node_modules/@hono/node-server/dist/server.mjs +22 -0
- package/node_modules/@hono/node-server/dist/utils.d.mts +2 -2
- package/node_modules/@hono/node-server/dist/utils.d.ts +2 -2
- package/node_modules/@hono/node-server/dist/vercel.js +22 -0
- package/node_modules/@hono/node-server/dist/vercel.mjs +22 -0
- package/node_modules/@hono/node-server/package.json +1 -1
- package/node_modules/ajv/README.md +1 -1
- package/node_modules/ajv/dist/core.js +1 -1
- package/node_modules/ajv/dist/core.js.map +1 -1
- package/node_modules/ajv/lib/core.ts +1 -1
- package/node_modules/ajv/package.json +2 -3
- package/node_modules/eventsource-parser/LICENSE +1 -1
- package/node_modules/eventsource-parser/dist/index.cjs +104 -44
- package/node_modules/eventsource-parser/dist/index.cjs.map +1 -1
- package/node_modules/eventsource-parser/dist/index.d.cts +23 -21
- package/node_modules/eventsource-parser/dist/index.d.ts +23 -21
- package/node_modules/eventsource-parser/dist/index.js +104 -44
- package/node_modules/eventsource-parser/dist/index.js.map +1 -1
- package/node_modules/eventsource-parser/dist/stream.d.cts +22 -19
- package/node_modules/eventsource-parser/dist/stream.d.ts +22 -19
- package/node_modules/eventsource-parser/package.json +54 -77
- package/node_modules/eventsource-parser/src/parse.ts +270 -107
- package/node_modules/express-rate-limit/dist/index.cjs +51 -10
- package/node_modules/express-rate-limit/dist/index.d.cts +31 -1
- package/node_modules/express-rate-limit/dist/index.d.mts +31 -1
- package/node_modules/express-rate-limit/dist/index.d.ts +31 -1
- package/node_modules/express-rate-limit/dist/index.mjs +51 -10
- package/node_modules/express-rate-limit/package.json +3 -2
- package/node_modules/express-rate-limit/readme.md +3 -0
- package/node_modules/fast-string-truncated-width/dist/index.js +36 -96
- package/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -3
- package/node_modules/fast-string-truncated-width/dist/utils.d.ts +3 -3
- package/node_modules/fast-string-truncated-width/dist/utils.js +14 -9
- package/node_modules/fast-string-truncated-width/package.json +1 -1
- package/node_modules/fast-string-truncated-width/readme.md +2 -3
- package/node_modules/fast-string-width/package.json +2 -2
- package/node_modules/fast-string-width/readme.md +0 -3
- package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
- package/node_modules/fast-uri/LICENSE +1 -3
- package/node_modules/fast-uri/README.md +13 -4
- package/node_modules/fast-uri/index.js +90 -24
- package/node_modules/fast-uri/lib/utils.js +129 -22
- package/node_modules/fast-uri/package.json +3 -4
- package/node_modules/fast-wrap-ansi/lib/main.js +4 -1
- package/node_modules/fast-wrap-ansi/lib/main.js.map +1 -1
- package/node_modules/fast-wrap-ansi/package.json +2 -2
- package/node_modules/get-intrinsic/CHANGELOG.md +0 -7
- package/node_modules/get-intrinsic/index.js +13 -8
- package/node_modules/get-intrinsic/package.json +4 -7
- package/node_modules/hasown/CHANGELOG.md +11 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +1 -0
- package/node_modules/hasown/package.json +14 -14
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +9 -2
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +9 -2
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +2 -0
- package/node_modules/hono/dist/cjs/jsx/base.js +7 -1
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +22 -9
- package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +3 -0
- package/node_modules/hono/dist/cjs/jsx/utils.js +155 -5
- package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +21 -30
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +11 -3
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +2 -5
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +2 -2
- package/node_modules/hono/dist/cjs/utils/jwt/jws.js +1 -1
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +12 -6
- package/node_modules/hono/dist/helper/ssg/ssg.js +2 -0
- package/node_modules/hono/dist/jsx/base.js +13 -2
- package/node_modules/hono/dist/jsx/dom/render.js +22 -9
- package/node_modules/hono/dist/jsx/jsx-runtime.js +4 -1
- package/node_modules/hono/dist/jsx/utils.js +153 -5
- package/node_modules/hono/dist/middleware/body-limit/index.js +21 -30
- package/node_modules/hono/dist/middleware/cache/index.js +11 -3
- package/node_modules/hono/dist/middleware/cors/index.js +2 -5
- package/node_modules/hono/dist/middleware/method-override/index.js +1 -1
- package/node_modules/hono/dist/middleware/trailing-slash/index.js +2 -2
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -1
- package/node_modules/hono/dist/types/jsx/utils.d.ts +3 -1
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +1 -1
- package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +16 -0
- package/node_modules/hono/dist/types/types.d.ts +116 -116
- package/node_modules/hono/dist/utils/jwt/jws.js +1 -1
- package/node_modules/hono/dist/utils/jwt/jwt.js +12 -6
- package/node_modules/hono/package.json +1 -1
- package/node_modules/ip-address/README.md +249 -76
- package/node_modules/ip-address/dist/address-error.d.ts +0 -1
- package/node_modules/ip-address/dist/address-error.js.map +1 -1
- package/node_modules/ip-address/dist/common.d.ts +6 -1
- package/node_modules/ip-address/dist/common.js +21 -0
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/dist/ip-address.d.ts +0 -1
- package/node_modules/ip-address/dist/ip-address.js.map +1 -1
- package/node_modules/ip-address/dist/ipv4.d.ts +115 -57
- package/node_modules/ip-address/dist/ipv4.js +193 -68
- package/node_modules/ip-address/dist/ipv4.js.map +1 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +172 -111
- package/node_modules/ip-address/dist/ipv6.js +345 -131
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/dist/v4/constants.d.ts +0 -1
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +0 -1
- package/node_modules/ip-address/dist/v6/constants.js +5 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
- package/node_modules/ip-address/dist/v6/helpers.d.ts +1 -1
- package/node_modules/ip-address/dist/v6/helpers.js +12 -3
- package/node_modules/ip-address/dist/v6/helpers.js.map +1 -1
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -1
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -1
- package/node_modules/ip-address/package.json +45 -35
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +3 -0
- package/node_modules/jose/package.json +1 -1
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +5 -3
- package/node_modules/yaml/browser/dist/nodes/Alias.js +2 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +11 -8
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +2 -1
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +5 -3
- package/node_modules/yaml/dist/nodes/Alias.js +2 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +5 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +10 -7
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +2 -1
- package/node_modules/yaml/package.json +1 -1
- package/node_modules/zod/README.md +1 -18
- package/node_modules/zod/locales/package.json +2 -1
- package/node_modules/zod/mini/package.json +2 -1
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/errors.ts +2 -2
- package/node_modules/zod/src/v4/classic/external.ts +1 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +39 -23
- package/node_modules/zod/src/v4/classic/parse.ts +6 -6
- package/node_modules/zod/src/v4/classic/schemas.ts +414 -151
- package/node_modules/zod/src/v4/core/api.ts +31 -6
- package/node_modules/zod/src/v4/core/checks.ts +1 -1
- package/node_modules/zod/src/v4/core/core.ts +17 -2
- package/node_modules/zod/src/v4/core/errors.ts +31 -24
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +17 -18
- package/node_modules/zod/src/v4/core/parse.ts +7 -7
- package/node_modules/zod/src/v4/core/regexes.ts +8 -1
- package/node_modules/zod/src/v4/core/schemas.ts +263 -71
- package/node_modules/zod/src/v4/core/to-json-schema.ts +10 -1
- package/node_modules/zod/src/v4/core/util.ts +52 -35
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +4 -0
- package/node_modules/zod/src/v4/locales/fr.ts +24 -8
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/index.ts +3 -0
- package/node_modules/zod/src/v4/locales/it.ts +1 -1
- package/node_modules/zod/src/v4/locales/ka.ts +8 -8
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/mini/external.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +56 -25
- package/node_modules/zod/v3/package.json +2 -1
- package/node_modules/zod/v4/classic/errors.js +2 -2
- package/node_modules/zod/v4/classic/external.d.cts +1 -0
- package/node_modules/zod/v4/classic/external.d.ts +1 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +31 -16
- package/node_modules/zod/v4/classic/from-json-schema.js +31 -16
- package/node_modules/zod/v4/classic/package.json +2 -1
- package/node_modules/zod/v4/classic/schemas.cjs +358 -119
- package/node_modules/zod/v4/classic/schemas.d.cts +42 -14
- package/node_modules/zod/v4/classic/schemas.d.ts +42 -14
- package/node_modules/zod/v4/classic/schemas.js +356 -118
- package/node_modules/zod/v4/core/api.cjs +7 -2
- package/node_modules/zod/v4/core/api.d.cts +26 -5
- package/node_modules/zod/v4/core/api.d.ts +26 -5
- package/node_modules/zod/v4/core/api.js +7 -2
- package/node_modules/zod/v4/core/checks.d.cts +1 -1
- package/node_modules/zod/v4/core/checks.d.ts +1 -1
- package/node_modules/zod/v4/core/core.cjs +3 -1
- package/node_modules/zod/v4/core/core.js +4 -2
- package/node_modules/zod/v4/core/errors.cjs +26 -23
- package/node_modules/zod/v4/core/errors.d.cts +1 -0
- package/node_modules/zod/v4/core/errors.d.ts +1 -0
- package/node_modules/zod/v4/core/errors.js +26 -23
- package/node_modules/zod/v4/core/json-schema-processors.cjs +16 -20
- package/node_modules/zod/v4/core/json-schema-processors.js +16 -20
- package/node_modules/zod/v4/core/package.json +2 -1
- package/node_modules/zod/v4/core/parse.cjs +7 -7
- package/node_modules/zod/v4/core/parse.js +7 -7
- package/node_modules/zod/v4/core/regexes.cjs +9 -3
- package/node_modules/zod/v4/core/regexes.d.cts +6 -0
- package/node_modules/zod/v4/core/regexes.d.ts +6 -0
- package/node_modules/zod/v4/core/regexes.js +7 -1
- package/node_modules/zod/v4/core/schemas.cjs +211 -65
- package/node_modules/zod/v4/core/schemas.d.cts +39 -1
- package/node_modules/zod/v4/core/schemas.d.ts +39 -1
- package/node_modules/zod/v4/core/schemas.js +210 -64
- package/node_modules/zod/v4/core/to-json-schema.cjs +12 -1
- package/node_modules/zod/v4/core/to-json-schema.js +12 -1
- package/node_modules/zod/v4/core/util.cjs +54 -30
- package/node_modules/zod/v4/core/util.d.cts +1 -0
- package/node_modules/zod/v4/core/util.d.ts +1 -0
- package/node_modules/zod/v4/core/util.js +55 -32
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/locales/el.cjs +136 -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 +109 -0
- package/node_modules/zod/v4/locales/en.cjs +4 -0
- package/node_modules/zod/v4/locales/en.js +4 -0
- package/node_modules/zod/v4/locales/fr.cjs +24 -7
- package/node_modules/zod/v4/locales/fr.js +24 -7
- package/node_modules/zod/v4/locales/hr.cjs +149 -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 +122 -0
- package/node_modules/zod/v4/locales/index.cjs +8 -1
- package/node_modules/zod/v4/locales/index.d.cts +3 -0
- package/node_modules/zod/v4/locales/index.d.ts +3 -0
- package/node_modules/zod/v4/locales/index.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -1
- package/node_modules/zod/v4/locales/it.js +1 -1
- package/node_modules/zod/v4/locales/ka.cjs +8 -8
- package/node_modules/zod/v4/locales/ka.js +8 -8
- package/node_modules/zod/v4/locales/package.json +2 -1
- package/node_modules/zod/v4/locales/ro.cjs +146 -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 +119 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/mini/external.d.cts +1 -0
- package/node_modules/zod/v4/mini/external.d.ts +1 -0
- package/node_modules/zod/v4/mini/package.json +2 -1
- package/node_modules/zod/v4/mini/schemas.cjs +41 -4
- package/node_modules/zod/v4/mini/schemas.d.cts +28 -10
- package/node_modules/zod/v4/mini/schemas.d.ts +28 -10
- package/node_modules/zod/v4/mini/schemas.js +40 -4
- package/node_modules/zod/v4/package.json +2 -1
- package/node_modules/zod/v4-mini/package.json +2 -1
- package/package.json +12 -12
- package/node_modules/async-function/.eslintrc +0 -16
- package/node_modules/async-function/.github/FUNDING.yml +0 -12
- package/node_modules/async-function/.nycrc +0 -9
- package/node_modules/async-function/CHANGELOG.md +0 -16
- package/node_modules/async-function/LICENSE +0 -21
- package/node_modules/async-function/README.md +0 -51
- package/node_modules/async-function/index.d.mts +0 -3
- package/node_modules/async-function/index.d.ts +0 -13
- package/node_modules/async-function/index.js +0 -8
- package/node_modules/async-function/index.mjs +0 -4
- package/node_modules/async-function/legacy.js +0 -18
- package/node_modules/async-function/package.json +0 -86
- package/node_modules/async-function/require.mjs +0 -5
- package/node_modules/async-function/tsconfig.json +0 -9
- package/node_modules/async-generator-function/.eslintrc +0 -26
- package/node_modules/async-generator-function/.github/FUNDING.yml +0 -12
- package/node_modules/async-generator-function/.nycrc +0 -9
- package/node_modules/async-generator-function/CHANGELOG.md +0 -15
- package/node_modules/async-generator-function/LICENSE +0 -21
- package/node_modules/async-generator-function/README.md +0 -52
- package/node_modules/async-generator-function/index.d.mts +0 -3
- package/node_modules/async-generator-function/index.d.ts +0 -22
- package/node_modules/async-generator-function/index.js +0 -8
- package/node_modules/async-generator-function/index.mjs +0 -4
- package/node_modules/async-generator-function/legacy.js +0 -18
- package/node_modules/async-generator-function/package.json +0 -87
- package/node_modules/async-generator-function/require.mjs +0 -5
- package/node_modules/async-generator-function/tsconfig.json +0 -9
- package/node_modules/fast-uri/.github/.stale.yml +0 -21
- package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
- package/node_modules/generator-function/.eslintrc +0 -16
- package/node_modules/generator-function/.github/FUNDING.yml +0 -12
- package/node_modules/generator-function/.nycrc +0 -9
- package/node_modules/generator-function/CHANGELOG.md +0 -27
- package/node_modules/generator-function/LICENSE.md +0 -7
- package/node_modules/generator-function/README.md +0 -51
- package/node_modules/generator-function/index.d.mts +0 -3
- package/node_modules/generator-function/index.d.ts +0 -3
- package/node_modules/generator-function/index.js +0 -8
- package/node_modules/generator-function/index.mjs +0 -4
- package/node_modules/generator-function/legacy.js +0 -18
- package/node_modules/generator-function/package.json +0 -88
- package/node_modules/generator-function/require.mjs +0 -5
- package/node_modules/generator-function/tsconfig.json +0 -9
- package/node_modules/hasown/.eslintrc +0 -5
- package/node_modules/ip-address/dist/address-error.d.ts.map +0 -1
- package/node_modules/ip-address/dist/common.d.ts.map +0 -1
- package/node_modules/ip-address/dist/ip-address.d.ts.map +0 -1
- package/node_modules/ip-address/dist/ipv4.d.ts.map +0 -1
- package/node_modules/ip-address/dist/ipv6.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v4/constants.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v6/helpers.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +0 -1
- package/node_modules/ip-address/src/address-error.ts +0 -11
- package/node_modules/ip-address/src/common.ts +0 -55
- package/node_modules/ip-address/src/ip-address.ts +0 -7
- package/node_modules/ip-address/src/ipv4.ts +0 -394
- package/node_modules/ip-address/src/ipv6.ts +0 -1212
- package/node_modules/ip-address/src/v4/constants.ts +0 -7
- package/node_modules/ip-address/src/v6/constants.ts +0 -79
- package/node_modules/ip-address/src/v6/helpers.ts +0 -48
- package/node_modules/ip-address/src/v6/regular-expressions.ts +0 -94
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/.npmignore +0 -0
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/LICENSE +0 -0
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/README.md +0 -0
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/index.js +0 -0
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/mode.js +0 -0
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/package.json +0 -0
- /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/windows.js +0 -0
- /package/node_modules/{cross-spawn/node_modules/which → which}/LICENSE +0 -0
- /package/node_modules/{cross-spawn/node_modules/which → which}/README.md +0 -0
- /package/node_modules/{cross-spawn/node_modules/which → which}/bin/node-which +0 -0
- /package/node_modules/{cross-spawn/node_modules/which → which}/package.json +0 -0
- /package/node_modules/{cross-spawn/node_modules/which → which}/which.js +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { $ZodStringFormats } from "../core/checks.js";
|
|
2
|
+
import type * as errors from "../core/errors.js";
|
|
3
|
+
import * as util from "../core/util.js";
|
|
4
|
+
|
|
5
|
+
const error: () => errors.$ZodErrorMap = () => {
|
|
6
|
+
const Sizable: Record<string, { unit: string; verb: string }> = {
|
|
7
|
+
string: { unit: "caractere", verb: "să aibă" },
|
|
8
|
+
file: { unit: "octeți", verb: "să aibă" },
|
|
9
|
+
array: { unit: "elemente", verb: "să aibă" },
|
|
10
|
+
set: { unit: "elemente", verb: "să aibă" },
|
|
11
|
+
map: { unit: "intrări", verb: "să aibă" },
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
15
|
+
return Sizable[origin] ?? null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const FormatDictionary: {
|
|
19
|
+
[k in $ZodStringFormats | (string & {})]?: string;
|
|
20
|
+
} = {
|
|
21
|
+
regex: "intrare",
|
|
22
|
+
email: "adresă de email",
|
|
23
|
+
url: "URL",
|
|
24
|
+
emoji: "emoji",
|
|
25
|
+
uuid: "UUID",
|
|
26
|
+
uuidv4: "UUIDv4",
|
|
27
|
+
uuidv6: "UUIDv6",
|
|
28
|
+
nanoid: "nanoid",
|
|
29
|
+
guid: "GUID",
|
|
30
|
+
cuid: "cuid",
|
|
31
|
+
cuid2: "cuid2",
|
|
32
|
+
ulid: "ULID",
|
|
33
|
+
xid: "XID",
|
|
34
|
+
ksuid: "KSUID",
|
|
35
|
+
datetime: "dată și oră ISO",
|
|
36
|
+
date: "dată ISO",
|
|
37
|
+
time: "oră ISO",
|
|
38
|
+
duration: "durată ISO",
|
|
39
|
+
ipv4: "adresă IPv4",
|
|
40
|
+
ipv6: "adresă IPv6",
|
|
41
|
+
mac: "adresă MAC",
|
|
42
|
+
cidrv4: "interval IPv4",
|
|
43
|
+
cidrv6: "interval IPv6",
|
|
44
|
+
base64: "șir codat base64",
|
|
45
|
+
base64url: "șir codat base64url",
|
|
46
|
+
json_string: "șir JSON",
|
|
47
|
+
e164: "număr E.164",
|
|
48
|
+
jwt: "JWT",
|
|
49
|
+
template_literal: "intrare",
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const TypeDictionary: {
|
|
53
|
+
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
54
|
+
} = {
|
|
55
|
+
nan: "NaN",
|
|
56
|
+
string: "șir",
|
|
57
|
+
number: "număr",
|
|
58
|
+
boolean: "boolean",
|
|
59
|
+
function: "funcție",
|
|
60
|
+
array: "matrice",
|
|
61
|
+
object: "obiect",
|
|
62
|
+
undefined: "nedefinit",
|
|
63
|
+
symbol: "simbol",
|
|
64
|
+
bigint: "număr mare",
|
|
65
|
+
void: "void",
|
|
66
|
+
never: "never",
|
|
67
|
+
map: "hartă",
|
|
68
|
+
set: "set",
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return (issue) => {
|
|
72
|
+
switch (issue.code) {
|
|
73
|
+
case "invalid_type": {
|
|
74
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
75
|
+
const receivedType = util.parsedType(issue.input);
|
|
76
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
77
|
+
return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
case "invalid_value":
|
|
81
|
+
if (issue.values.length === 1) return `Intrare invalidă: așteptat ${util.stringifyPrimitive(issue.values[0])}`;
|
|
82
|
+
return `Opțiune invalidă: așteptat una dintre ${util.joinValues(issue.values, "|")}`;
|
|
83
|
+
case "too_big": {
|
|
84
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
85
|
+
const sizing = getSizing(issue.origin);
|
|
86
|
+
if (sizing)
|
|
87
|
+
return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
88
|
+
return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} să fie ${adj}${issue.maximum.toString()}`;
|
|
89
|
+
}
|
|
90
|
+
case "too_small": {
|
|
91
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
92
|
+
const sizing = getSizing(issue.origin);
|
|
93
|
+
if (sizing) {
|
|
94
|
+
return `Prea mic: așteptat ca ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return `Prea mic: așteptat ca ${issue.origin} să fie ${adj}${issue.minimum.toString()}`;
|
|
98
|
+
}
|
|
99
|
+
case "invalid_format": {
|
|
100
|
+
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
101
|
+
if (_issue.format === "starts_with") {
|
|
102
|
+
return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
|
|
103
|
+
}
|
|
104
|
+
if (_issue.format === "ends_with") return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
|
|
105
|
+
if (_issue.format === "includes") return `Șir invalid: trebuie să includă "${_issue.includes}"`;
|
|
106
|
+
if (_issue.format === "regex") return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
|
|
107
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
108
|
+
}
|
|
109
|
+
case "not_multiple_of":
|
|
110
|
+
return `Număr invalid: trebuie să fie multiplu de ${issue.divisor}`;
|
|
111
|
+
case "unrecognized_keys":
|
|
112
|
+
return `Chei nerecunoscute: ${util.joinValues(issue.keys, ", ")}`;
|
|
113
|
+
case "invalid_key":
|
|
114
|
+
return `Cheie invalidă în ${issue.origin}`;
|
|
115
|
+
case "invalid_union":
|
|
116
|
+
return "Intrare invalidă";
|
|
117
|
+
case "invalid_element":
|
|
118
|
+
return `Valoare invalidă în ${issue.origin}`;
|
|
119
|
+
default:
|
|
120
|
+
return `Intrare invalidă`;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
126
|
+
return {
|
|
127
|
+
localeError: error(),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "bayt", verb: "bo‘lishi kerak" },
|
|
9
9
|
array: { unit: "element", verb: "bo‘lishi kerak" },
|
|
10
10
|
set: { unit: "element", verb: "bo‘lishi kerak" },
|
|
11
|
+
map: { unit: "yozuv", verb: "bo‘lishi kerak" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -60,7 +60,11 @@ export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$c
|
|
|
60
60
|
checks: [
|
|
61
61
|
...(def.checks ?? []),
|
|
62
62
|
...checks.map((ch) =>
|
|
63
|
-
typeof ch === "function"
|
|
63
|
+
typeof ch === "function"
|
|
64
|
+
? {
|
|
65
|
+
_zod: { check: ch, def: { check: "custom" }, onattach: [] },
|
|
66
|
+
}
|
|
67
|
+
: ch
|
|
64
68
|
),
|
|
65
69
|
],
|
|
66
70
|
},
|
|
@@ -200,7 +204,7 @@ export function url(params?: string | core.$ZodURLParams): ZodMiniURL {
|
|
|
200
204
|
// @__NO_SIDE_EFFECTS__
|
|
201
205
|
export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodMiniURL {
|
|
202
206
|
return core._url(ZodMiniURL, {
|
|
203
|
-
protocol:
|
|
207
|
+
protocol: core.regexes.httpProtocol,
|
|
204
208
|
hostname: core.regexes.domain,
|
|
205
209
|
...util.normalizeParams(params),
|
|
206
210
|
});
|
|
@@ -241,9 +245,19 @@ export function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID {
|
|
|
241
245
|
}
|
|
242
246
|
|
|
243
247
|
// ZodMiniCUID
|
|
248
|
+
/**
|
|
249
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
250
|
+
* (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
|
|
251
|
+
* See https://github.com/paralleldrive/cuid.
|
|
252
|
+
*/
|
|
244
253
|
export interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> {
|
|
245
254
|
// _zod: core.$ZodCUIDInternals;
|
|
246
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
258
|
+
* (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
|
|
259
|
+
* See https://github.com/paralleldrive/cuid.
|
|
260
|
+
*/
|
|
247
261
|
export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$constructor(
|
|
248
262
|
"ZodMiniCUID",
|
|
249
263
|
(inst, def) => {
|
|
@@ -252,6 +266,13 @@ export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$c
|
|
|
252
266
|
}
|
|
253
267
|
);
|
|
254
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Validates a CUID v1 string.
|
|
271
|
+
*
|
|
272
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
273
|
+
* (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
|
|
274
|
+
* See https://github.com/paralleldrive/cuid.
|
|
275
|
+
*/
|
|
255
276
|
// @__NO_SIDE_EFFECTS__
|
|
256
277
|
export function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID {
|
|
257
278
|
return core._cuid(ZodMiniCUID, params);
|
|
@@ -833,7 +854,7 @@ export const ZodMiniObject: core.$constructor<ZodMiniObject> = /*@__PURE__*/ cor
|
|
|
833
854
|
export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
|
|
834
855
|
shape?: T,
|
|
835
856
|
params?: string | core.$ZodObjectParams
|
|
836
|
-
): ZodMiniObject<T
|
|
857
|
+
): ZodMiniObject<util.Writeable<T>, core.$strip> {
|
|
837
858
|
const def: core.$ZodObjectDef = {
|
|
838
859
|
type: "object",
|
|
839
860
|
shape: shape ?? {},
|
|
@@ -847,7 +868,7 @@ export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
|
|
|
847
868
|
export function strictObject<T extends core.$ZodLooseShape>(
|
|
848
869
|
shape: T,
|
|
849
870
|
params?: string | core.$ZodObjectParams
|
|
850
|
-
): ZodMiniObject<T
|
|
871
|
+
): ZodMiniObject<util.Writeable<T>, core.$strict> {
|
|
851
872
|
return new ZodMiniObject({
|
|
852
873
|
type: "object",
|
|
853
874
|
shape,
|
|
@@ -861,7 +882,7 @@ export function strictObject<T extends core.$ZodLooseShape>(
|
|
|
861
882
|
export function looseObject<T extends core.$ZodLooseShape>(
|
|
862
883
|
shape: T,
|
|
863
884
|
params?: string | core.$ZodObjectParams
|
|
864
|
-
): ZodMiniObject<T
|
|
885
|
+
): ZodMiniObject<util.Writeable<T>, core.$loose> {
|
|
865
886
|
return new ZodMiniObject({
|
|
866
887
|
type: "object",
|
|
867
888
|
shape,
|
|
@@ -875,7 +896,7 @@ export function looseObject<T extends core.$ZodLooseShape>(
|
|
|
875
896
|
export function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
|
|
876
897
|
schema: T,
|
|
877
898
|
shape: U
|
|
878
|
-
): ZodMiniObject<util.Extend<T["shape"], U
|
|
899
|
+
): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
|
|
879
900
|
return util.extend(schema, shape);
|
|
880
901
|
}
|
|
881
902
|
|
|
@@ -893,7 +914,7 @@ export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLo
|
|
|
893
914
|
export function safeExtend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
|
|
894
915
|
schema: T,
|
|
895
916
|
shape: SafeExtendShape<T["shape"], U>
|
|
896
|
-
): ZodMiniObject<util.Extend<T["shape"], U
|
|
917
|
+
): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
|
|
897
918
|
return util.safeExtend(schema, shape as any);
|
|
898
919
|
}
|
|
899
920
|
|
|
@@ -930,7 +951,7 @@ export function partial<T extends ZodMiniObject>(
|
|
|
930
951
|
schema: T
|
|
931
952
|
): ZodMiniObject<
|
|
932
953
|
{
|
|
933
|
-
[k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
|
|
954
|
+
-readonly [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
|
|
934
955
|
},
|
|
935
956
|
T["_zod"]["config"]
|
|
936
957
|
>;
|
|
@@ -940,7 +961,7 @@ export function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["sh
|
|
|
940
961
|
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
|
|
941
962
|
): ZodMiniObject<
|
|
942
963
|
{
|
|
943
|
-
[k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
|
|
964
|
+
-readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
|
|
944
965
|
},
|
|
945
966
|
T["_zod"]["config"]
|
|
946
967
|
>;
|
|
@@ -965,7 +986,7 @@ export function required<T extends ZodMiniObject>(
|
|
|
965
986
|
schema: T
|
|
966
987
|
): ZodMiniObject<
|
|
967
988
|
{
|
|
968
|
-
[k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
|
|
989
|
+
-readonly [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
|
|
969
990
|
},
|
|
970
991
|
T["_zod"]["config"]
|
|
971
992
|
>;
|
|
@@ -1062,7 +1083,7 @@ export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUn
|
|
|
1062
1083
|
|
|
1063
1084
|
// @__NO_SIDE_EFFECTS__
|
|
1064
1085
|
export function discriminatedUnion<
|
|
1065
|
-
Types extends readonly [core.$ZodTypeDiscriminable
|
|
1086
|
+
Types extends readonly [core.$ZodTypeDiscriminable<Disc>, ...core.$ZodTypeDiscriminable<Disc>[]],
|
|
1066
1087
|
Disc extends string,
|
|
1067
1088
|
>(
|
|
1068
1089
|
discriminator: Disc,
|
|
@@ -1162,6 +1183,15 @@ export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
|
|
|
1162
1183
|
valueType: Value,
|
|
1163
1184
|
params?: string | core.$ZodRecordParams
|
|
1164
1185
|
): ZodMiniRecord<Key, Value> {
|
|
1186
|
+
// v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
|
|
1187
|
+
if (!valueType || !(valueType as any)._zod) {
|
|
1188
|
+
return new ZodMiniRecord({
|
|
1189
|
+
type: "record",
|
|
1190
|
+
keyType: string() as any,
|
|
1191
|
+
valueType: keyType as any as core.$ZodType,
|
|
1192
|
+
...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
|
|
1193
|
+
}) as any;
|
|
1194
|
+
}
|
|
1165
1195
|
return new ZodMiniRecord({
|
|
1166
1196
|
type: "record",
|
|
1167
1197
|
keyType,
|
|
@@ -1625,14 +1655,17 @@ export function codec<const A extends SomeType, B extends core.SomeType = core.$
|
|
|
1625
1655
|
}) as any;
|
|
1626
1656
|
}
|
|
1627
1657
|
|
|
1628
|
-
//
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1658
|
+
// @__NO_SIDE_EFFECTS__
|
|
1659
|
+
export function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodMiniCodec<A, B>): ZodMiniCodec<B, A> {
|
|
1660
|
+
const def = codec._zod.def;
|
|
1661
|
+
return new ZodMiniCodec({
|
|
1662
|
+
type: "pipe",
|
|
1663
|
+
in: def.out as any,
|
|
1664
|
+
out: def.in as any,
|
|
1665
|
+
transform: def.reverseTransform as any,
|
|
1666
|
+
reverseTransform: def.transform as any,
|
|
1667
|
+
}) as any;
|
|
1668
|
+
}
|
|
1636
1669
|
|
|
1637
1670
|
// ZodMiniReadonly
|
|
1638
1671
|
export interface ZodMiniReadonly<T extends SomeType = core.$ZodType>
|
|
@@ -1770,9 +1803,10 @@ export function refine<T>(
|
|
|
1770
1803
|
// superRefine
|
|
1771
1804
|
// @__NO_SIDE_EFFECTS__
|
|
1772
1805
|
export function superRefine<T>(
|
|
1773
|
-
fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void
|
|
1806
|
+
fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
|
|
1807
|
+
params?: core.$ZodSuperRefineParams
|
|
1774
1808
|
): core.$ZodCheck<T> {
|
|
1775
|
-
return core._superRefine(fn);
|
|
1809
|
+
return core._superRefine(fn, params);
|
|
1776
1810
|
}
|
|
1777
1811
|
|
|
1778
1812
|
// Re-export describe and meta from core
|
|
@@ -1897,10 +1931,7 @@ export function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunc
|
|
|
1897
1931
|
export function _function<
|
|
1898
1932
|
In extends core.$ZodFunctionIn = core.$ZodFunctionIn,
|
|
1899
1933
|
Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
|
|
1900
|
-
>(params?: {
|
|
1901
|
-
input: In;
|
|
1902
|
-
output: Out;
|
|
1903
|
-
}): ZodMiniFunction<In, Out>;
|
|
1934
|
+
>(params?: { input: In; output: Out }): ZodMiniFunction<In, Out>;
|
|
1904
1935
|
// @__NO_SIDE_EFFECTS__
|
|
1905
1936
|
export function _function(params?: {
|
|
1906
1937
|
output?: core.$ZodFunctionOut;
|
|
@@ -40,8 +40,8 @@ const initializer = (inst, issues) => {
|
|
|
40
40
|
// },
|
|
41
41
|
// });
|
|
42
42
|
};
|
|
43
|
-
export const ZodError = core.$constructor("ZodError", initializer);
|
|
44
|
-
export const ZodRealError = core.$constructor("ZodError", initializer, {
|
|
43
|
+
export const ZodError = /*@__PURE__*/ core.$constructor("ZodError", initializer);
|
|
44
|
+
export const ZodRealError = /*@__PURE__*/ core.$constructor("ZodError", initializer, {
|
|
45
45
|
Parent: Error,
|
|
46
46
|
});
|
|
47
47
|
// /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */
|
|
@@ -5,6 +5,7 @@ export * from "./errors.cjs";
|
|
|
5
5
|
export * from "./parse.cjs";
|
|
6
6
|
export * from "./compat.cjs";
|
|
7
7
|
export type { infer, output, input } from "../core/index.cjs";
|
|
8
|
+
export type { JSONType } from "../core/util.cjs";
|
|
8
9
|
export { globalRegistry, type GlobalMeta, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.cjs";
|
|
9
10
|
export { toJSONSchema } from "../core/json-schema-processors.cjs";
|
|
10
11
|
export { fromJSONSchema } from "./from-json-schema.cjs";
|
|
@@ -5,6 +5,7 @@ export * from "./errors.js";
|
|
|
5
5
|
export * from "./parse.js";
|
|
6
6
|
export * from "./compat.js";
|
|
7
7
|
export type { infer, output, input } from "../core/index.js";
|
|
8
|
+
export type { JSONType } from "../core/util.js";
|
|
8
9
|
export { globalRegistry, type GlobalMeta, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.js";
|
|
9
10
|
export { toJSONSchema } from "../core/json-schema-processors.js";
|
|
10
11
|
export { fromJSONSchema } from "./from-json-schema.js";
|
|
@@ -35,7 +35,7 @@ const z = {
|
|
|
35
35
|
iso: _iso,
|
|
36
36
|
};
|
|
37
37
|
// Keys that are recognized and handled by the conversion logic
|
|
38
|
-
const RECOGNIZED_KEYS = new Set([
|
|
38
|
+
const RECOGNIZED_KEYS = /*@__PURE__*/ new Set([
|
|
39
39
|
// Schema identification
|
|
40
40
|
"$schema",
|
|
41
41
|
"$ref",
|
|
@@ -511,13 +511,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
511
511
|
default:
|
|
512
512
|
throw new Error(`Unsupported type: ${type}`);
|
|
513
513
|
}
|
|
514
|
-
// Apply metadata
|
|
515
|
-
if (schema.description) {
|
|
516
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
517
|
-
}
|
|
518
|
-
if (schema.default !== undefined) {
|
|
519
|
-
zodSchema = zodSchema.default(schema.default);
|
|
520
|
-
}
|
|
521
514
|
return zodSchema;
|
|
522
515
|
}
|
|
523
516
|
function convertSchema(schema, ctx) {
|
|
@@ -562,23 +555,28 @@ function convertSchema(schema, ctx) {
|
|
|
562
555
|
if (schema.readOnly === true) {
|
|
563
556
|
baseSchema = z.readonly(baseSchema);
|
|
564
557
|
}
|
|
565
|
-
//
|
|
558
|
+
// Apply `default` so it wraps the fully-composed schema. This ensures
|
|
559
|
+
// `parse(undefined) -> default` works regardless of which branch of
|
|
560
|
+
// `convertBaseSchema` produced the inner schema (enum/const/not/typed/etc.).
|
|
561
|
+
if (schema.default !== undefined) {
|
|
562
|
+
baseSchema = baseSchema.default(schema.default);
|
|
563
|
+
}
|
|
564
|
+
// Collect non-description annotation metadata into the user-supplied
|
|
565
|
+
// registry. Description is handled separately below via `.describe()` to
|
|
566
|
+
// preserve the contract that `schema.description` reads from globalRegistry.
|
|
566
567
|
const extraMeta = {};
|
|
567
|
-
// Core schema keywords that should be captured as metadata
|
|
568
568
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
569
569
|
for (const key of coreMetadataKeys) {
|
|
570
570
|
if (key in schema) {
|
|
571
571
|
extraMeta[key] = schema[key];
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
// Content keywords - store as metadata
|
|
575
574
|
const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
|
|
576
575
|
for (const key of contentMetadataKeys) {
|
|
577
576
|
if (key in schema) {
|
|
578
577
|
extraMeta[key] = schema[key];
|
|
579
578
|
}
|
|
580
579
|
}
|
|
581
|
-
// Unrecognized keys (custom metadata)
|
|
582
580
|
for (const key of Object.keys(schema)) {
|
|
583
581
|
if (!RECOGNIZED_KEYS.has(key)) {
|
|
584
582
|
extraMeta[key] = schema[key];
|
|
@@ -587,6 +585,12 @@ function convertSchema(schema, ctx) {
|
|
|
587
585
|
if (Object.keys(extraMeta).length > 0) {
|
|
588
586
|
ctx.registry.add(baseSchema, extraMeta);
|
|
589
587
|
}
|
|
588
|
+
// Apply description last. `.describe()` clones the schema and sets
|
|
589
|
+
// `_zod.parent` on the clone, so registry lookups on the returned reference
|
|
590
|
+
// still resolve `extraMeta` via parent inheritance.
|
|
591
|
+
if (schema.description) {
|
|
592
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
593
|
+
}
|
|
590
594
|
return baseSchema;
|
|
591
595
|
}
|
|
592
596
|
/**
|
|
@@ -596,15 +600,26 @@ function fromJSONSchema(schema, params) {
|
|
|
596
600
|
if (typeof schema === "boolean") {
|
|
597
601
|
return schema ? z.any() : z.never();
|
|
598
602
|
}
|
|
599
|
-
|
|
600
|
-
|
|
603
|
+
// Normalize input via a JSON round-trip. This guarantees the converter
|
|
604
|
+
// walks a plain, finite, JSON-valid object graph: cyclic inputs fail here,
|
|
605
|
+
// getter/Proxy-based properties are materialized into static values, and
|
|
606
|
+
// class instances collapse to plain objects.
|
|
607
|
+
let normalized;
|
|
608
|
+
try {
|
|
609
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
610
|
+
}
|
|
611
|
+
catch {
|
|
612
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
613
|
+
}
|
|
614
|
+
const version = detectVersion(normalized, params?.defaultTarget);
|
|
615
|
+
const defs = (normalized.$defs || normalized.definitions || {});
|
|
601
616
|
const ctx = {
|
|
602
617
|
version,
|
|
603
618
|
defs,
|
|
604
619
|
refs: new Map(),
|
|
605
620
|
processing: new Set(),
|
|
606
|
-
rootSchema:
|
|
621
|
+
rootSchema: normalized,
|
|
607
622
|
registry: params?.registry ?? registries_js_1.globalRegistry,
|
|
608
623
|
};
|
|
609
|
-
return convertSchema(
|
|
624
|
+
return convertSchema(normalized, ctx);
|
|
610
625
|
}
|
|
@@ -9,7 +9,7 @@ const z = {
|
|
|
9
9
|
iso: _iso,
|
|
10
10
|
};
|
|
11
11
|
// Keys that are recognized and handled by the conversion logic
|
|
12
|
-
const RECOGNIZED_KEYS = new Set([
|
|
12
|
+
const RECOGNIZED_KEYS = /*@__PURE__*/ new Set([
|
|
13
13
|
// Schema identification
|
|
14
14
|
"$schema",
|
|
15
15
|
"$ref",
|
|
@@ -485,13 +485,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
485
485
|
default:
|
|
486
486
|
throw new Error(`Unsupported type: ${type}`);
|
|
487
487
|
}
|
|
488
|
-
// Apply metadata
|
|
489
|
-
if (schema.description) {
|
|
490
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
491
|
-
}
|
|
492
|
-
if (schema.default !== undefined) {
|
|
493
|
-
zodSchema = zodSchema.default(schema.default);
|
|
494
|
-
}
|
|
495
488
|
return zodSchema;
|
|
496
489
|
}
|
|
497
490
|
function convertSchema(schema, ctx) {
|
|
@@ -536,23 +529,28 @@ function convertSchema(schema, ctx) {
|
|
|
536
529
|
if (schema.readOnly === true) {
|
|
537
530
|
baseSchema = z.readonly(baseSchema);
|
|
538
531
|
}
|
|
539
|
-
//
|
|
532
|
+
// Apply `default` so it wraps the fully-composed schema. This ensures
|
|
533
|
+
// `parse(undefined) -> default` works regardless of which branch of
|
|
534
|
+
// `convertBaseSchema` produced the inner schema (enum/const/not/typed/etc.).
|
|
535
|
+
if (schema.default !== undefined) {
|
|
536
|
+
baseSchema = baseSchema.default(schema.default);
|
|
537
|
+
}
|
|
538
|
+
// Collect non-description annotation metadata into the user-supplied
|
|
539
|
+
// registry. Description is handled separately below via `.describe()` to
|
|
540
|
+
// preserve the contract that `schema.description` reads from globalRegistry.
|
|
540
541
|
const extraMeta = {};
|
|
541
|
-
// Core schema keywords that should be captured as metadata
|
|
542
542
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
543
543
|
for (const key of coreMetadataKeys) {
|
|
544
544
|
if (key in schema) {
|
|
545
545
|
extraMeta[key] = schema[key];
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
// Content keywords - store as metadata
|
|
549
548
|
const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
|
|
550
549
|
for (const key of contentMetadataKeys) {
|
|
551
550
|
if (key in schema) {
|
|
552
551
|
extraMeta[key] = schema[key];
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
|
-
// Unrecognized keys (custom metadata)
|
|
556
554
|
for (const key of Object.keys(schema)) {
|
|
557
555
|
if (!RECOGNIZED_KEYS.has(key)) {
|
|
558
556
|
extraMeta[key] = schema[key];
|
|
@@ -561,6 +559,12 @@ function convertSchema(schema, ctx) {
|
|
|
561
559
|
if (Object.keys(extraMeta).length > 0) {
|
|
562
560
|
ctx.registry.add(baseSchema, extraMeta);
|
|
563
561
|
}
|
|
562
|
+
// Apply description last. `.describe()` clones the schema and sets
|
|
563
|
+
// `_zod.parent` on the clone, so registry lookups on the returned reference
|
|
564
|
+
// still resolve `extraMeta` via parent inheritance.
|
|
565
|
+
if (schema.description) {
|
|
566
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
567
|
+
}
|
|
564
568
|
return baseSchema;
|
|
565
569
|
}
|
|
566
570
|
/**
|
|
@@ -570,15 +574,26 @@ export function fromJSONSchema(schema, params) {
|
|
|
570
574
|
if (typeof schema === "boolean") {
|
|
571
575
|
return schema ? z.any() : z.never();
|
|
572
576
|
}
|
|
573
|
-
|
|
574
|
-
|
|
577
|
+
// Normalize input via a JSON round-trip. This guarantees the converter
|
|
578
|
+
// walks a plain, finite, JSON-valid object graph: cyclic inputs fail here,
|
|
579
|
+
// getter/Proxy-based properties are materialized into static values, and
|
|
580
|
+
// class instances collapse to plain objects.
|
|
581
|
+
let normalized;
|
|
582
|
+
try {
|
|
583
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
584
|
+
}
|
|
585
|
+
catch {
|
|
586
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
587
|
+
}
|
|
588
|
+
const version = detectVersion(normalized, params?.defaultTarget);
|
|
589
|
+
const defs = (normalized.$defs || normalized.definitions || {});
|
|
575
590
|
const ctx = {
|
|
576
591
|
version,
|
|
577
592
|
defs,
|
|
578
593
|
refs: new Map(),
|
|
579
594
|
processing: new Set(),
|
|
580
|
-
rootSchema:
|
|
595
|
+
rootSchema: normalized,
|
|
581
596
|
registry: params?.registry ?? globalRegistry,
|
|
582
597
|
};
|
|
583
|
-
return convertSchema(
|
|
598
|
+
return convertSchema(normalized, ctx);
|
|
584
599
|
}
|