@chrona-city/ugc-kit 0.0.0-stage → 1.5.10
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 +184 -2
- package/bin/chrona.mjs +4 -0
- package/chrona.contract.lock.json +432 -0
- package/chrona.controlled-presentation.lock.json +100 -0
- package/chrona.core.lock.json +44 -0
- package/chrona.ecs.lock.json +40 -0
- package/chrona.gameplay-tests.lock.json +64 -0
- package/chrona.ground-rules.lock.json +48 -0
- package/chrona.pipeline.lock.json +100 -0
- package/chrona.private-event-view.lock.json +56 -0
- package/chrona.private-events.lock.json +64 -0
- package/chrona.private-state-view.lock.json +64 -0
- package/chrona.private-state.lock.json +56 -0
- package/chrona.registry.lock.json +72 -0
- package/chrona.resource-bindings.lock.json +68 -0
- package/chrona.sandbox.lock.json +60 -0
- package/chrona.scene-interaction.lock.json +60 -0
- package/chrona.scene-presentation.lock.json +60 -0
- package/chrona.wiring.lock.json +48 -0
- package/chrona.world-scene-runtime.lock.json +164 -0
- package/chrona.world-scene.lock.json +180 -0
- package/compiler/local-builder.lock.json +1 -0
- package/compiler/source/contracts/ugc/creator-source/v1/tool-package.schema.json +11 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/document.mjs +165 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/profile.json +24 -0
- package/compiler/source/contracts/ugc/ground-rules/v1/contract-set.json +9 -0
- package/compiler/source/contracts/ugc/ground-rules/v1/ground-rules.mjs +98 -0
- package/compiler/source/contracts/ugc/ground-rules/v2/ground-rules.mjs +138 -0
- package/compiler/source/contracts/ugc/ground-rules/v2/heightfield.mjs +89 -0
- package/compiler/source/contracts/ugc/ground-rules/v2/movement.mjs +12 -0
- package/compiler/source/contracts/ugc/ground-rules/v2/spatial-source.mjs +193 -0
- package/compiler/source/contracts/ugc/ground-rules/v2.2/center-band.mjs +142 -0
- package/compiler/source/contracts/ugc/ground-rules/v2.2/spatial-source.mjs +77 -0
- package/compiler/source/contracts/ugc/local-content/v1/document-snapshot.mjs +114 -0
- package/compiler/source/contracts/ugc/local-content/v1/snapshot.mjs +171 -0
- package/compiler/source/contracts/ugc/personal-state/v1/declaration.mjs +86 -0
- package/compiler/source/contracts/ugc/personal-state/v1/node-plan.mjs +51 -0
- package/compiler/source/contracts/ugc/pipeline/v1/conformance/js/pipeline-validator.mjs +196 -0
- package/compiler/source/contracts/ugc/private-events/v1/declaration.mjs +25 -0
- package/compiler/source/contracts/ugc/private-events/v1/events.mjs +189 -0
- package/compiler/source/contracts/ugc/registry/v1/conformance/js/capability-resolver.mjs +191 -0
- package/compiler/source/contracts/ugc/registry/v1/registry.json +1 -0
- package/compiler/source/contracts/ugc/registry/v1/resolution-policy.json +70 -0
- package/compiler/source/contracts/ugc/resource-bindings/v1/authored-avatar.mjs +183 -0
- package/compiler/source/contracts/ugc/resource-bindings/v1/bindings.mjs +133 -0
- package/compiler/source/contracts/ugc/resource-bindings/v1/contract-set.json +9 -0
- package/compiler/source/contracts/ugc/scene-interaction/v1/contract-set.json +26 -0
- package/compiler/source/contracts/ugc/scene-interaction/v1/interaction.mjs +83 -0
- package/compiler/source/contracts/ugc/scene-interaction/v1/scene-model.mjs +39 -0
- package/compiler/source/contracts/ugc/scene-interaction/v2/interaction.mjs +80 -0
- package/compiler/source/contracts/ugc/scene-interaction/v2/scene-model.mjs +56 -0
- package/compiler/source/contracts/ugc/scene-presentation/v1/ink-math.mjs +70 -0
- package/compiler/source/contracts/ugc/scene-presentation/v1/render-policy.mjs +108 -0
- package/compiler/source/contracts/ugc/scene-presentation/v1/render-policy.schema.json +27 -0
- package/compiler/source/contracts/ugc/scene-presentation/v1/scene.mjs +147 -0
- package/compiler/source/contracts/ugc/scene-presentation/v1/scene.schema.json +66 -0
- package/compiler/source/contracts/ugc/v1/conformance/js/cover.mjs +23 -0
- package/compiler/source/contracts/ugc/v1/conformance/js/package-validator.mjs +333 -0
- package/compiler/source/contracts/ugc/world-scene/v1/collision-artifacts.mjs +134 -0
- package/compiler/source/contracts/ugc/world-scene/v1/collision-identity.mjs +73 -0
- package/compiler/source/contracts/ugc/world-scene/v1/collision-target.schema.json +18 -0
- package/compiler/source/contracts/ugc/world-scene/v1/coordinates.schema.json +16 -0
- package/compiler/source/contracts/ugc/world-scene/v1/flight-avatar-actions.mjs +3 -0
- package/compiler/source/contracts/ugc/world-scene/v1/flight-avatar-sample.schema.json +14 -0
- package/compiler/source/contracts/ugc/world-scene/v1/scene-declaration.mjs +99 -0
- package/compiler/source/contracts/ugc/world-scene/v1/scene-declaration.schema.json +40 -0
- package/compiler/source/contracts/ugc/world-scene/v1/visual-tileset.mjs +112 -0
- package/compiler/source/contracts/ugc/world-scene/v1/visual-tileset.schema.json +35 -0
- package/compiler/source/contracts/ugc/world-scene/v2/asset-graph.mjs +169 -0
- package/compiler/source/contracts/ugc/world-scene/v2/collision-index.mjs +83 -0
- package/compiler/source/contracts/ugc/world-scene/v2/collision-index.schema.json +29 -0
- package/compiler/source/contracts/ugc/world-scene/v2/collision-partition.mjs +122 -0
- package/compiler/source/contracts/ugc/world-scene/v2/collision-partition.schema.json +37 -0
- package/compiler/source/contracts/ugc/world-scene/v2/contract-set.json +50 -0
- package/compiler/source/contracts/ugc/world-scene/v2/encoded-resource.mjs +98 -0
- package/compiler/source/contracts/ugc/world-scene/v2/encoded-resource.schema.json +17 -0
- package/compiler/source/contracts/ugc/world-scene/v2/scene-declaration.mjs +56 -0
- package/compiler/source/contracts/ugc/world-scene/v2/scene-declaration.schema.json +21 -0
- package/compiler/source/contracts/ugc/world-scene/v2/vendor/pako-raw-inflate.mjs +45 -0
- package/compiler/source/contracts/ugc/world-scene/v2/vendor/pako-raw-inflate.provenance.json +43 -0
- package/compiler/source/contracts/ugc/world-scene/v2/visual-tileset.mjs +107 -0
- package/compiler/source/contracts/ugc/world-scene/v2/visual-tileset.schema.json +33 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v1/runtime-plan.schema.json +660 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v1/runtime-policy.mjs +81 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/collision-capacity.mjs +87 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/collision-capacity.schema.json +62 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/contract-set.json +45 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/report.mjs +184 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/runtime-plan.schema.json +38 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/runtime-policy.mjs +144 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/visual-work-policy.mjs +59 -0
- package/compiler/source/services/game-worker/src/protocol/flight.js +123 -0
- package/compiler/source/services/game-worker/src/protocol/realtime-error.js +9 -0
- package/compiler/source/services/game-worker/src/runtime/content/flight-collision-files.js +122 -0
- package/compiler/source/services/game-worker/src/runtime/content/flight-collision-store.js +252 -0
- package/compiler/source/services/game-worker/src/runtime/content/flight-runtime.js +56 -0
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-collision.js +224 -0
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-motion.js +56 -0
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-preparation.js +166 -0
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-room-controller.js +255 -0
- package/compiler/source/services/ugc-pipeline/src/asset-inspection-worker.mjs +72 -0
- package/compiler/source/services/ugc-pipeline/src/asset-inspection.mjs +230 -0
- package/compiler/source/services/ugc-pipeline/src/avatar-envelope.mjs +70 -0
- package/compiler/source/services/ugc-pipeline/src/cover-inspection-worker.mjs +15 -0
- package/compiler/source/services/ugc-pipeline/src/cover-inspection.mjs +94 -0
- package/compiler/source/services/ugc-pipeline/src/cover-png.mjs +74 -0
- package/compiler/source/services/ugc-pipeline/src/document-presentation-model.mjs +79 -0
- package/compiler/source/services/ugc-pipeline/src/flight-avatar-envelope.mjs +27 -0
- package/compiler/source/services/ugc-pipeline/src/ground-rules-model.mjs +99 -0
- package/compiler/source/services/ugc-pipeline/src/local-content.mjs +182 -0
- package/compiler/source/services/ugc-pipeline/src/personal-state-model.mjs +25 -0
- package/compiler/source/services/ugc-pipeline/src/registry-release.mjs +59 -0
- package/compiler/source/services/ugc-pipeline/src/resource-bindings-model.mjs +77 -0
- package/compiler/source/services/ugc-pipeline/src/scene-interaction-model.mjs +110 -0
- package/compiler/source/services/ugc-pipeline/src/scene-presentation-model.mjs +79 -0
- package/compiler/source/services/ugc-pipeline/src/scene-presentation-source.mjs +26 -0
- package/compiler/source/services/ugc-pipeline/src/scene-render-policies.json +25 -0
- package/compiler/source/services/ugc-pipeline/src/scene-surface-inspection.mjs +57 -0
- package/compiler/source/services/ugc-pipeline/src/static-scene-geometry.mjs +100 -0
- package/compiler/source/services/ugc-pipeline/src/visual-closure-v2.mjs +111 -0
- package/compiler/source/services/ugc-pipeline/src/world-scene-model.mjs +133 -0
- package/compiler/source/services/ugc-pipeline/src/world-scene-policies.json +71 -0
- package/compiler/source/services/ugc-pipeline/src/world-scene-runtime.mjs +186 -0
- package/contracts/ugc/capability-wiring/v1/capability-proposal.schema.json +82 -0
- package/contracts/ugc/capability-wiring/v1/conformance/js/wiring-validator.mjs +95 -0
- package/contracts/ugc/capability-wiring/v1/conformance/web/index.html +5 -0
- package/contracts/ugc/capability-wiring/v1/conformance/web/runner.mjs +32 -0
- package/contracts/ugc/capability-wiring/v1/contract-set.json +8 -0
- package/contracts/ugc/capability-wiring/v1/error-codes.json +15 -0
- package/contracts/ugc/capability-wiring/v1/needs-capability.schema.json +18 -0
- package/contracts/ugc/capability-wiring/v1/testdata/vectors.json +128 -0
- package/contracts/ugc/capability-wiring/v1/wiring-release.schema.json +66 -0
- package/contracts/ugc/controlled-presentation/v1/README.md +175 -0
- package/contracts/ugc/controlled-presentation/v1/approval.schema.json +53 -0
- package/contracts/ugc/controlled-presentation/v1/command.schema.json +243 -0
- package/contracts/ugc/controlled-presentation/v1/conformance/run-vectors.mjs +39 -0
- package/contracts/ugc/controlled-presentation/v1/conformance/run-view-vectors.mjs +54 -0
- package/contracts/ugc/controlled-presentation/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/controlled-presentation/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/controlled-presentation/v1/conformance/web/view-runner.mjs +5 -0
- package/contracts/ugc/controlled-presentation/v1/conformance/web/view.html +1 -0
- package/contracts/ugc/controlled-presentation/v1/context.schema.json +19 -0
- package/contracts/ugc/controlled-presentation/v1/contract-set.json +33 -0
- package/contracts/ugc/controlled-presentation/v1/export-view.mjs +44 -0
- package/contracts/ugc/controlled-presentation/v1/grant.schema.json +120 -0
- package/contracts/ugc/controlled-presentation/v1/presentation.mjs +180 -0
- package/contracts/ugc/controlled-presentation/v1/testdata/vectors.json +565 -0
- package/contracts/ugc/controlled-presentation/v1/view.mjs +46 -0
- package/contracts/ugc/controlled-presentation/v1/view.schema.json +90 -0
- package/contracts/ugc/core-ecs/v1/README.md +13 -0
- package/contracts/ugc/core-ecs/v1/api.json +28 -0
- package/contracts/ugc/core-ecs/v1/conformance/run-vectors.mjs +33 -0
- package/contracts/ugc/core-ecs/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/core-ecs/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/core-ecs/v1/core-view.mjs +138 -0
- package/contracts/ugc/core-ecs/v1/test-fixture.schema.json +169 -0
- package/contracts/ugc/core-ecs/v1/testdata/vectors.json +57 -0
- package/contracts/ugc/creator-source/v1/SOURCE-PACKAGE.md +19 -0
- package/contracts/ugc/creator-source/v1/source-package.mjs +87 -0
- package/contracts/ugc/creator-source/v1/source-package.schema.json +42 -0
- package/contracts/ugc/creator-source/v1/source-package.test.mjs +69 -0
- package/contracts/ugc/creator-source/v1/tool-package.schema.json +11 -0
- package/contracts/ugc/document-presentation/v1/README.md +167 -0
- package/contracts/ugc/document-presentation/v1/contract-set.json +18 -0
- package/contracts/ugc/document-presentation/v1/document.mjs +165 -0
- package/contracts/ugc/document-presentation/v1/document.schema.json +161 -0
- package/contracts/ugc/document-presentation/v1/document.test.mjs +138 -0
- package/contracts/ugc/document-presentation/v1/profile.json +24 -0
- package/contracts/ugc/document-presentation/v1/source.schema.json +88 -0
- package/contracts/ugc/ecs-runtime/v1/README.md +25 -0
- package/contracts/ugc/ecs-runtime/v1/api.json +46 -0
- package/contracts/ugc/ecs-runtime/v1/conformance/run-vectors.mjs +41 -0
- package/contracts/ugc/ecs-runtime/v1/conformance/web/index.html +3 -0
- package/contracts/ugc/ecs-runtime/v1/conformance/web/runner.mjs +5 -0
- package/contracts/ugc/ecs-runtime/v1/private-world.mjs +299 -0
- package/contracts/ugc/ecs-runtime/v1/testdata/vectors.json +1318 -0
- package/contracts/ugc/gameplay-tests/v1/README.md +78 -0
- package/contracts/ugc/gameplay-tests/v1/cases.mjs +70 -0
- package/contracts/ugc/gameplay-tests/v1/cases.schema.json +262 -0
- package/contracts/ugc/gameplay-tests/v1/conformance/run-vectors.mjs +21 -0
- package/contracts/ugc/gameplay-tests/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/gameplay-tests/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/gameplay-tests/v1/contract-set.json +9 -0
- package/contracts/ugc/gameplay-tests/v1/scene-step.mjs +49 -0
- package/contracts/ugc/gameplay-tests/v1/testdata/vectors.json +1504 -0
- package/contracts/ugc/ground-rules/v1/README.md +44 -0
- package/contracts/ugc/ground-rules/v1/conformance/run-vectors.mjs +31 -0
- package/contracts/ugc/ground-rules/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/ground-rules/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/ground-rules/v1/contract-set.json +9 -0
- package/contracts/ugc/ground-rules/v1/effective-ground-rules.schema.json +27 -0
- package/contracts/ugc/ground-rules/v1/ground-rules.mjs +98 -0
- package/contracts/ugc/ground-rules/v1/ground-rules.schema.json +33 -0
- package/contracts/ugc/ground-rules/v1/testdata/vectors.json +57 -0
- package/contracts/ugc/ground-rules/v2/README.md +88 -0
- package/contracts/ugc/ground-rules/v2/contract-set.json +20 -0
- package/contracts/ugc/ground-rules/v2/ground-rules.mjs +138 -0
- package/contracts/ugc/ground-rules/v2/ground-rules.schema.json +373 -0
- package/contracts/ugc/ground-rules/v2/heightfield.mjs +89 -0
- package/contracts/ugc/ground-rules/v2/movement.mjs +12 -0
- package/contracts/ugc/ground-rules/v2/spaces.test.mjs +58 -0
- package/contracts/ugc/ground-rules/v2/spatial-source.mjs +193 -0
- package/contracts/ugc/ground-rules/v2/spatial-source.schema.json +788 -0
- package/contracts/ugc/ground-rules/v2/spatial.test.mjs +142 -0
- package/contracts/ugc/ground-rules/v2.2/README.md +73 -0
- package/contracts/ugc/ground-rules/v2.2/center-band.mjs +142 -0
- package/contracts/ugc/ground-rules/v2.2/center-band.test.mjs +149 -0
- package/contracts/ugc/ground-rules/v2.2/contract-set.json +8 -0
- package/contracts/ugc/ground-rules/v2.2/spatial-source.mjs +77 -0
- package/contracts/ugc/ground-rules/v2.2/spatial-source.schema.json +1049 -0
- package/contracts/ugc/local-content/v1/LOCAL-LAUNCH.md +11 -0
- package/contracts/ugc/local-content/v1/README.md +45 -0
- package/contracts/ugc/local-content/v1/conformance.test.mjs +67 -0
- package/contracts/ugc/local-content/v1/document-local-content-snapshot.schema.json +306 -0
- package/contracts/ugc/local-content/v1/document-snapshot.mjs +114 -0
- package/contracts/ugc/local-content/v1/local-content-snapshot.schema.json +54 -0
- package/contracts/ugc/local-content/v1/local-launch.test.mjs +51 -0
- package/contracts/ugc/local-content/v1/presentation-vectors.json +18 -0
- package/contracts/ugc/local-content/v1/snapshot.mjs +171 -0
- package/contracts/ugc/local-content/v1/tool-version-vectors.json +28 -0
- package/contracts/ugc/personal-state/v1/README.md +181 -0
- package/contracts/ugc/personal-state/v1/declaration.mjs +86 -0
- package/contracts/ugc/personal-state/v1/declaration.schema.json +295 -0
- package/contracts/ugc/personal-state/v1/declaration.test.mjs +26 -0
- package/contracts/ugc/personal-state/v1/marker.schema.json +9 -0
- package/contracts/ugc/personal-state/v1/node-plan.mjs +51 -0
- package/contracts/ugc/personal-state/v1/node-plan.test.mjs +65 -0
- package/contracts/ugc/pipeline/v1/PLATFORM-SOURCE.md +54 -0
- package/contracts/ugc/pipeline/v1/PRESENTATION.md +13 -0
- package/contracts/ugc/pipeline/v1/build-record.schema.json +93 -0
- package/contracts/ugc/pipeline/v1/conformance/js/pipeline-validator.mjs +196 -0
- package/contracts/ugc/pipeline/v1/conformance/js/platform-release-validator.mjs +78 -0
- package/contracts/ugc/pipeline/v1/conformance/web/index.html +5 -0
- package/contracts/ugc/pipeline/v1/conformance/web/runner.mjs +30 -0
- package/contracts/ugc/pipeline/v1/contract-set.json +30 -0
- package/contracts/ugc/pipeline/v1/error-codes.json +95 -0
- package/contracts/ugc/pipeline/v1/platform-publication-binding.schema.json +56 -0
- package/contracts/ugc/pipeline/v1/public-release-descriptor.schema.json +264 -0
- package/contracts/ugc/pipeline/v1/publication-operation.schema.json +97 -0
- package/contracts/ugc/pipeline/v1/release-index.schema.json +192 -0
- package/contracts/ugc/pipeline/v1/review-decision.schema.json +212 -0
- package/contracts/ugc/pipeline/v1/submission-receipt.schema.json +15 -0
- package/contracts/ugc/pipeline/v1/testdata/vectors.json +1713 -0
- package/contracts/ugc/private-event-view/v1/README.md +83 -0
- package/contracts/ugc/private-event-view/v1/conformance/run-vectors.mjs +65 -0
- package/contracts/ugc/private-event-view/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/private-event-view/v1/conformance/web/runner.mjs +5 -0
- package/contracts/ugc/private-event-view/v1/contract-set.json +9 -0
- package/contracts/ugc/private-event-view/v1/export.mjs +22 -0
- package/contracts/ugc/private-event-view/v1/testdata/vectors.json +22 -0
- package/contracts/ugc/private-event-view/v1/view.mjs +130 -0
- package/contracts/ugc/private-event-view/v1/view.schema.json +204 -0
- package/contracts/ugc/private-events/v1/README.md +102 -0
- package/contracts/ugc/private-events/v1/conformance/run-vectors.mjs +52 -0
- package/contracts/ugc/private-events/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/private-events/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/private-events/v1/contract-set.json +9 -0
- package/contracts/ugc/private-events/v1/declaration.mjs +25 -0
- package/contracts/ugc/private-events/v1/events.mjs +189 -0
- package/contracts/ugc/private-events/v1/events.schema.json +19 -0
- package/contracts/ugc/private-events/v1/grant.schema.json +15 -0
- package/contracts/ugc/private-events/v1/output.schema.json +15 -0
- package/contracts/ugc/private-events/v1/testdata/vectors.json +55 -0
- package/contracts/ugc/private-state/v1/README.md +95 -0
- package/contracts/ugc/private-state/v1/conformance/run-vectors.mjs +40 -0
- package/contracts/ugc/private-state/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/private-state/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/private-state/v1/contract-set.json +9 -0
- package/contracts/ugc/private-state/v1/field-table.schema.json +136 -0
- package/contracts/ugc/private-state/v1/projection.mjs +178 -0
- package/contracts/ugc/private-state/v1/projection.schema.json +515 -0
- package/contracts/ugc/private-state/v1/testdata/vectors.json +76 -0
- package/contracts/ugc/private-state-view/v1/README.md +91 -0
- package/contracts/ugc/private-state-view/v1/conformance/run-vectors.mjs +52 -0
- package/contracts/ugc/private-state-view/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/private-state-view/v1/conformance/web/runner.mjs +5 -0
- package/contracts/ugc/private-state-view/v1/contract-set.json +24 -0
- package/contracts/ugc/private-state-view/v1/export.mjs +29 -0
- package/contracts/ugc/private-state-view/v1/publication.schema.json +82 -0
- package/contracts/ugc/private-state-view/v1/testdata/vectors.json +21 -0
- package/contracts/ugc/private-state-view/v1/view.mjs +199 -0
- package/contracts/ugc/private-state-view/v1/view.schema.json +255 -0
- package/contracts/ugc/public-runtime/v1/README.md +173 -0
- package/contracts/ugc/public-runtime/v1/archive.mjs +52 -0
- package/contracts/ugc/public-runtime/v1/document-runtime.test.mjs +118 -0
- package/contracts/ugc/public-runtime/v1/format-fixture.mjs +28 -0
- package/contracts/ugc/public-runtime/v1/golden.json +11 -0
- package/contracts/ugc/public-runtime/v1/manifest.mjs +198 -0
- package/contracts/ugc/public-runtime/v1/runtime-lock.schema.json +85 -0
- package/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +854 -0
- package/contracts/ugc/public-runtime/v1/runtime.test.mjs +155 -0
- package/contracts/ugc/public-runtime/v1/target-compatibility.test.mjs +98 -0
- package/contracts/ugc/public-runtime/v1/vectors.json +157 -0
- package/contracts/ugc/registry/v1/capabilities-lock.schema.json +110 -0
- package/contracts/ugc/registry/v1/capability-query-result.schema.json +33 -0
- package/contracts/ugc/registry/v1/capability-query.schema.json +14 -0
- package/contracts/ugc/registry/v1/capability-registry.schema.json +83 -0
- package/contracts/ugc/registry/v1/conformance/js/capability-resolver.mjs +191 -0
- package/contracts/ugc/registry/v1/conformance/web/index.html +5 -0
- package/contracts/ugc/registry/v1/conformance/web/runner.mjs +68 -0
- package/contracts/ugc/registry/v1/contract-set.json +23 -0
- package/contracts/ugc/registry/v1/effective-budgets.schema.json +34 -0
- package/contracts/ugc/registry/v1/error-codes.json +11 -0
- package/contracts/ugc/registry/v1/network-profile-lock.schema.json +26 -0
- package/contracts/ugc/registry/v1/registry.json +1 -0
- package/contracts/ugc/registry/v1/resolution-policy.json +70 -0
- package/contracts/ugc/registry/v1/resolution-result.schema.json +49 -0
- package/contracts/ugc/registry/v1/testdata/vectors.json +405 -0
- package/contracts/ugc/resource-bindings/v1/AUTHORED-AVATAR.md +133 -0
- package/contracts/ugc/resource-bindings/v1/README.md +61 -0
- package/contracts/ugc/resource-bindings/v1/authored-avatar.mjs +183 -0
- package/contracts/ugc/resource-bindings/v1/authored-avatar.schema.json +48 -0
- package/contracts/ugc/resource-bindings/v1/bindings.mjs +133 -0
- package/contracts/ugc/resource-bindings/v1/bindings.schema.json +45 -0
- package/contracts/ugc/resource-bindings/v1/conformance/authored-avatar-vectors.mjs +26 -0
- package/contracts/ugc/resource-bindings/v1/conformance/run-vectors.mjs +32 -0
- package/contracts/ugc/resource-bindings/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/resource-bindings/v1/conformance/web/runner.mjs +13 -0
- package/contracts/ugc/resource-bindings/v1/contract-set.json +9 -0
- package/contracts/ugc/resource-bindings/v1/testdata/authored-avatar-vectors.json +146 -0
- package/contracts/ugc/resource-bindings/v1/testdata/authored-avatar.json +13 -0
- package/contracts/ugc/resource-bindings/v1/testdata/vectors.json +68 -0
- package/contracts/ugc/sandbox/v1/conformance/js/sandbox-validator.mjs +152 -0
- package/contracts/ugc/sandbox/v1/conformance/web/index.html +5 -0
- package/contracts/ugc/sandbox/v1/conformance/web/runner.mjs +26 -0
- package/contracts/ugc/sandbox/v1/contract-set.json +19 -0
- package/contracts/ugc/sandbox/v1/error-codes.json +25 -0
- package/contracts/ugc/sandbox/v1/execution-result.schema.json +80 -0
- package/contracts/ugc/sandbox/v1/launch-request.schema.json +96 -0
- package/contracts/ugc/sandbox/v1/lifecycle-message.schema.json +18 -0
- package/contracts/ugc/sandbox/v1/local-launch-request.schema.json +34 -0
- package/contracts/ugc/sandbox/v1/private-ecs-grant.schema.json +32 -0
- package/contracts/ugc/sandbox/v1/sandbox-profile.schema.json +70 -0
- package/contracts/ugc/sandbox/v1/testdata/vectors.json +89 -0
- package/contracts/ugc/scene-interaction/v1/README.md +63 -0
- package/contracts/ugc/scene-interaction/v1/conformance/run-vectors.mjs +26 -0
- package/contracts/ugc/scene-interaction/v1/conformance/web/index.html +1 -0
- package/contracts/ugc/scene-interaction/v1/conformance/web/runner.mjs +4 -0
- package/contracts/ugc/scene-interaction/v1/contract-set.json +26 -0
- package/contracts/ugc/scene-interaction/v1/effective-targets.schema.json +76 -0
- package/contracts/ugc/scene-interaction/v1/interaction.mjs +83 -0
- package/contracts/ugc/scene-interaction/v1/request.schema.json +30 -0
- package/contracts/ugc/scene-interaction/v1/result.schema.json +88 -0
- package/contracts/ugc/scene-interaction/v1/scene-model.mjs +39 -0
- package/contracts/ugc/scene-interaction/v1/targets.schema.json +49 -0
- package/contracts/ugc/scene-interaction/v1/testdata/vectors.json +732 -0
- package/contracts/ugc/scene-interaction/v2/README.md +63 -0
- package/contracts/ugc/scene-interaction/v2/contract-set.json +19 -0
- package/contracts/ugc/scene-interaction/v2/interaction.mjs +80 -0
- package/contracts/ugc/scene-interaction/v2/metric.test.mjs +99 -0
- package/contracts/ugc/scene-interaction/v2/scene-model.mjs +56 -0
- package/contracts/ugc/scene-interaction/v2/targets.schema.json +229 -0
- package/contracts/ugc/scene-presentation/v1/INK-MATH.md +64 -0
- package/contracts/ugc/scene-presentation/v1/README.md +126 -0
- package/contracts/ugc/scene-presentation/v1/RENDER-POLICY.md +63 -0
- package/contracts/ugc/scene-presentation/v1/conformance/ink-vectors.mjs +34 -0
- package/contracts/ugc/scene-presentation/v1/conformance/render-policy-vectors.mjs +62 -0
- package/contracts/ugc/scene-presentation/v1/conformance/vectors.mjs +128 -0
- package/contracts/ugc/scene-presentation/v1/contract-set.json +6 -0
- package/contracts/ugc/scene-presentation/v1/ink-math.mjs +70 -0
- package/contracts/ugc/scene-presentation/v1/render-policy.mjs +108 -0
- package/contracts/ugc/scene-presentation/v1/render-policy.schema.json +27 -0
- package/contracts/ugc/scene-presentation/v1/scene.mjs +147 -0
- package/contracts/ugc/scene-presentation/v1/scene.schema.json +66 -0
- package/contracts/ugc/v1/COVER.md +38 -0
- package/contracts/ugc/v1/SCENE-PROVENANCE.md +54 -0
- package/contracts/ugc/v1/candidate-submission.schema.json +16 -0
- package/contracts/ugc/v1/capability-request.schema.json +29 -0
- package/contracts/ugc/v1/compatibility.json +32 -0
- package/contracts/ugc/v1/components.schema.json +77 -0
- package/contracts/ugc/v1/conformance/js/capability-operations.mjs +13 -0
- package/contracts/ugc/v1/conformance/js/cover.mjs +23 -0
- package/contracts/ugc/v1/conformance/js/package-validator.mjs +333 -0
- package/contracts/ugc/v1/conformance/js/scene-provenance.mjs +121 -0
- package/contracts/ugc/v1/conformance/js/source-validator.mjs +99 -0
- package/contracts/ugc/v1/conformance/web/index.html +5 -0
- package/contracts/ugc/v1/conformance/web/runner.mjs +82 -0
- package/contracts/ugc/v1/contract-set.json +38 -0
- package/contracts/ugc/v1/creator-sdk.json +84 -0
- package/contracts/ugc/v1/error-codes.json +53 -0
- package/contracts/ugc/v1/manifest.schema.json +215 -0
- package/contracts/ugc/v1/network-intent.schema.json +15 -0
- package/contracts/ugc/v1/prefabs.schema.json +29 -0
- package/contracts/ugc/v1/provenance.schema.json +160 -0
- package/contracts/ugc/v1/scene.schema.json +37 -0
- package/contracts/ugc/v1/testdata/capability-operation-vectors.json +243 -0
- package/contracts/ugc/v1/testdata/cover-vectors.json +25 -0
- package/contracts/ugc/v1/testdata/invalid/authored-avatar-missing-capability.json +44 -0
- package/contracts/ugc/v1/testdata/invalid/authored-avatar-wrong-capability.json +51 -0
- package/contracts/ugc/v1/testdata/invalid/budget-overflow.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/build-field-override.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/creator-server-entrypoint.json +5 -0
- package/contracts/ugc/v1/testdata/invalid/forbidden-network-control.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/ground-authority.json +57 -0
- package/contracts/ugc/v1/testdata/invalid/ground-budget.json +56 -0
- package/contracts/ugc/v1/testdata/invalid/ground-dependency.json +49 -0
- package/contracts/ugc/v1/testdata/invalid/ground-identity.json +56 -0
- package/contracts/ugc/v1/testdata/invalid/ground-missing.json +13 -0
- package/contracts/ugc/v1/testdata/invalid/ground-optional.json +60 -0
- package/contracts/ugc/v1/testdata/invalid/ground-path.json +56 -0
- package/contracts/ugc/v1/testdata/invalid/ground-run-dependency.json +56 -0
- package/contracts/ugc/v1/testdata/invalid/ground-version.json +56 -0
- package/contracts/ugc/v1/testdata/invalid/missing-required-field.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/missing-shared-entrypoint.json +5 -0
- package/contracts/ugc/v1/testdata/invalid/path-escape.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-authority.json +35 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-budget.json +35 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-dependency.json +27 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-empty.json +20 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-identity.json +34 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-missing.json +13 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-optional.json +38 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-path.json +34 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-type.json +34 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-unknown-ref.json +34 -0
- package/contracts/ugc/v1/testdata/invalid/private-events-version.json +34 -0
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-identity.json +18 -0
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-kind.json +19 -0
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-missing.json +6 -0
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-path.json +6 -0
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-type.json +8 -0
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-unknown.json +18 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-authority.json +61 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-core-unknown.json +61 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-dependency.json +53 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-identity.json +60 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-missing-transform.json +50 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-missing.json +49 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-optional.json +64 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-partial-transform.json +59 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-path.json +60 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-radius.json +60 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-unknown-target.json +60 -0
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-version.json +60 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-authority.json +166 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-capability.json +158 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-identity.json +165 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-missing.json +13 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-optional.json +169 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-path.json +165 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-undeclared.json +163 -0
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-unknown-material.json +165 -0
- package/contracts/ugc/v1/testdata/invalid/schema-incompatible.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/unknown-required-component.json +1 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-dual-motion.json +7 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-identity.json +90 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-missing-capability.json +85 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-missing.json +28 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-optional-capability.json +94 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-path.json +6 -0
- package/contracts/ugc/v1/testdata/invalid/world-scene-version.json +90 -0
- package/contracts/ugc/v1/testdata/scene-provenance-vectors.json +56 -0
- package/contracts/ugc/v1/testdata/source-vectors.json +83 -0
- package/contracts/ugc/v1/testdata/valid/authored-avatar.json +51 -0
- package/contracts/ugc/v1/testdata/valid/boundary.json +1 -0
- package/contracts/ugc/v1/testdata/valid/components.json +15 -0
- package/contracts/ugc/v1/testdata/valid/cosmetic.json +9 -0
- package/contracts/ugc/v1/testdata/valid/ground-rules.json +56 -0
- package/contracts/ugc/v1/testdata/valid/minimal.json +15 -0
- package/contracts/ugc/v1/testdata/valid/prefabs.json +11 -0
- package/contracts/ugc/v1/testdata/valid/private-events.json +34 -0
- package/contracts/ugc/v1/testdata/valid/resource-bindings.json +18 -0
- package/contracts/ugc/v1/testdata/valid/scene-interactions.json +60 -0
- package/contracts/ugc/v1/testdata/valid/scene-presentation.json +165 -0
- package/contracts/ugc/v1/testdata/valid/scene.json +6 -0
- package/contracts/ugc/v1/testdata/valid/unknown-optional-component.json +1 -0
- package/contracts/ugc/v1/testdata/valid/world-scene.json +90 -0
- package/contracts/ugc/v1/testdata/vectors.json +555 -0
- package/contracts/ugc/v1/validation-report.schema.json +61 -0
- package/contracts/ugc/world-scene/v1/ASSET-GRAPH.md +33 -0
- package/contracts/ugc/world-scene/v1/COLLISION-ARTIFACTS.md +124 -0
- package/contracts/ugc/world-scene/v1/FLIGHT-AVATAR-ACTIONS.md +92 -0
- package/contracts/ugc/world-scene/v1/README.md +117 -0
- package/contracts/ugc/world-scene/v1/SCENE-DECLARATION.md +135 -0
- package/contracts/ugc/world-scene/v1/VISUAL-TILESET.md +125 -0
- package/contracts/ugc/world-scene/v1/asset-graph.mjs +126 -0
- package/contracts/ugc/world-scene/v1/collision-artifacts.mjs +134 -0
- package/contracts/ugc/world-scene/v1/collision-identity.mjs +73 -0
- package/contracts/ugc/world-scene/v1/collision-index.schema.json +34 -0
- package/contracts/ugc/world-scene/v1/collision-target.schema.json +18 -0
- package/contracts/ugc/world-scene/v1/conformance/artifact-vectors.mjs +15 -0
- package/contracts/ugc/world-scene/v1/conformance/flight-avatar-vectors.mjs +27 -0
- package/contracts/ugc/world-scene/v1/conformance/run-vectors.mjs +29 -0
- package/contracts/ugc/world-scene/v1/conformance/scene-declaration-vectors.mjs +28 -0
- package/contracts/ugc/world-scene/v1/conformance/visual-tileset-vectors.mjs +24 -0
- package/contracts/ugc/world-scene/v1/conformance/web/index.html +8 -0
- package/contracts/ugc/world-scene/v1/conformance/web/runner.mjs +53 -0
- package/contracts/ugc/world-scene/v1/contract-set.json +40 -0
- package/contracts/ugc/world-scene/v1/coordinates.schema.json +16 -0
- package/contracts/ugc/world-scene/v1/flight-avatar-actions.mjs +3 -0
- package/contracts/ugc/world-scene/v1/flight-avatar-sample.schema.json +14 -0
- package/contracts/ugc/world-scene/v1/scene-declaration.mjs +99 -0
- package/contracts/ugc/world-scene/v1/scene-declaration.schema.json +40 -0
- package/contracts/ugc/world-scene/v1/testdata/artifact-vectors.json +18 -0
- package/contracts/ugc/world-scene/v1/testdata/flight-avatar-actions.json +48 -0
- package/contracts/ugc/world-scene/v1/testdata/scene-declaration-vectors.json +103 -0
- package/contracts/ugc/world-scene/v1/testdata/vectors.json +55 -0
- package/contracts/ugc/world-scene/v1/testdata/visual-tileset-vectors.json +27 -0
- package/contracts/ugc/world-scene/v1/visual-tileset.mjs +112 -0
- package/contracts/ugc/world-scene/v1/visual-tileset.schema.json +35 -0
- package/contracts/ugc/world-scene/v2/ASSET-GRAPH.md +13 -0
- package/contracts/ugc/world-scene/v2/ENCODED-RESOURCES.md +117 -0
- package/contracts/ugc/world-scene/v2/PARTITION.md +59 -0
- package/contracts/ugc/world-scene/v2/VISUAL-TILESET.md +80 -0
- package/contracts/ugc/world-scene/v2/asset-graph.mjs +169 -0
- package/contracts/ugc/world-scene/v2/collision-index.mjs +83 -0
- package/contracts/ugc/world-scene/v2/collision-index.schema.json +29 -0
- package/contracts/ugc/world-scene/v2/collision-partition.mjs +122 -0
- package/contracts/ugc/world-scene/v2/collision-partition.schema.json +37 -0
- package/contracts/ugc/world-scene/v2/conformance/asset-graph-vectors.mjs +52 -0
- package/contracts/ugc/world-scene/v2/conformance/collision-index-vectors.mjs +29 -0
- package/contracts/ugc/world-scene/v2/conformance/encoded-resource-vectors.mjs +17 -0
- package/contracts/ugc/world-scene/v2/conformance/partition-vectors.mjs +74 -0
- package/contracts/ugc/world-scene/v2/conformance/visual-vectors.mjs +24 -0
- package/contracts/ugc/world-scene/v2/contract-set.json +50 -0
- package/contracts/ugc/world-scene/v2/encoded-resource.mjs +98 -0
- package/contracts/ugc/world-scene/v2/encoded-resource.schema.json +17 -0
- package/contracts/ugc/world-scene/v2/scene-declaration.mjs +56 -0
- package/contracts/ugc/world-scene/v2/scene-declaration.schema.json +21 -0
- package/contracts/ugc/world-scene/v2/testdata/asset-graph-vectors.json +3354 -0
- package/contracts/ugc/world-scene/v2/testdata/collision-index-vectors.json +103 -0
- package/contracts/ugc/world-scene/v2/testdata/encoded-resource-vectors.json +372 -0
- package/contracts/ugc/world-scene/v2/testdata/visual-vectors.json +43 -0
- package/contracts/ugc/world-scene/v2/vendor/pako-raw-inflate.mjs +45 -0
- package/contracts/ugc/world-scene/v2/vendor/pako-raw-inflate.provenance.json +43 -0
- package/contracts/ugc/world-scene/v2/visual-tileset.mjs +107 -0
- package/contracts/ugc/world-scene/v2/visual-tileset.schema.json +33 -0
- package/contracts/ugc/world-scene-runtime/v1/README.md +127 -0
- package/contracts/ugc/world-scene-runtime/v1/REPORT.md +87 -0
- package/contracts/ugc/world-scene-runtime/v1/conformance/report-vectors.mjs +104 -0
- package/contracts/ugc/world-scene-runtime/v1/conformance/run-vectors.mjs +22 -0
- package/contracts/ugc/world-scene-runtime/v1/report.mjs +151 -0
- package/contracts/ugc/world-scene-runtime/v1/runtime-plan.schema.json +660 -0
- package/contracts/ugc/world-scene-runtime/v1/runtime-policy.mjs +81 -0
- package/contracts/ugc/world-scene-runtime/v1/testdata/policy-vectors.json +40 -0
- package/contracts/ugc/world-scene-runtime/v1/testdata/report-fixture.json +236 -0
- package/contracts/ugc/world-scene-runtime/v2/COLLISION-CAPACITY.md +74 -0
- package/contracts/ugc/world-scene-runtime/v2/REPORT.md +91 -0
- package/contracts/ugc/world-scene-runtime/v2/RUNTIME-PROJECTION.md +110 -0
- package/contracts/ugc/world-scene-runtime/v2/VISUAL-WORK.md +72 -0
- package/contracts/ugc/world-scene-runtime/v2/collision-capacity.mjs +87 -0
- package/contracts/ugc/world-scene-runtime/v2/collision-capacity.schema.json +62 -0
- package/contracts/ugc/world-scene-runtime/v2/conformance/capacity-vectors.mjs +25 -0
- package/contracts/ugc/world-scene-runtime/v2/conformance/report-vectors.mjs +141 -0
- package/contracts/ugc/world-scene-runtime/v2/conformance/runtime-vectors.mjs +41 -0
- package/contracts/ugc/world-scene-runtime/v2/conformance/visual-work-vectors.mjs +21 -0
- package/contracts/ugc/world-scene-runtime/v2/contract-set.json +45 -0
- package/contracts/ugc/world-scene-runtime/v2/report.mjs +184 -0
- package/contracts/ugc/world-scene-runtime/v2/runtime-plan.schema.json +38 -0
- package/contracts/ugc/world-scene-runtime/v2/runtime-policy.mjs +144 -0
- package/contracts/ugc/world-scene-runtime/v2/testdata/capacity-vectors.json +30 -0
- package/contracts/ugc/world-scene-runtime/v2/testdata/report-fixture.json +250 -0
- package/contracts/ugc/world-scene-runtime/v2/testdata/runtime-vectors.json +39 -0
- package/contracts/ugc/world-scene-runtime/v2/testdata/visual-work-vectors.json +28 -0
- package/contracts/ugc/world-scene-runtime/v2/visual-work-policy.mjs +59 -0
- package/creator-release.json +6 -0
- package/docs/assets-3d-spec.md +112 -0
- package/docs/harness-onboarding.md +214 -0
- package/docs/meshy.md +75 -0
- package/docs/npm-creator.md +991 -0
- package/docs/runtime-download.md +219 -0
- package/document-action-result.source-lock.json +22 -0
- package/document-presentation.snapshot.lock.json +40 -0
- package/ground-endpoint.snapshot.lock.json +36 -0
- package/ground-spaces.snapshot.lock.json +57 -0
- package/lib/capability-harness.mjs +26 -0
- package/lib/creator-agent-studio.mjs +57 -0
- package/lib/creator-agent.mjs +7 -0
- package/lib/creator-api.mjs +637 -0
- package/lib/creator-cli.mjs +547 -0
- package/lib/creator-contribution.mjs +263 -0
- package/lib/creator-discovery.mjs +35 -0
- package/lib/creator-init-paths.mjs +56 -0
- package/lib/creator-init.mjs +132 -0
- package/lib/creator-install.mjs +323 -0
- package/lib/creator-materials.mjs +32 -0
- package/lib/creator-mcp.mjs +198 -0
- package/lib/creator-onboarding.mjs +27 -0
- package/lib/creator-package-identity.mjs +23 -0
- package/lib/creator-platform.mjs +139 -0
- package/lib/creator-project-snapshot.mjs +151 -0
- package/lib/creator-project-update.mjs +200 -0
- package/lib/creator-project.mjs +424 -0
- package/lib/creator-provenance.mjs +90 -0
- package/lib/creator-session.mjs +256 -0
- package/lib/creator-source-archive.mjs +182 -0
- package/lib/creator-source-download.mjs +160 -0
- package/lib/creator-source-git.mjs +72 -0
- package/lib/creator-source-package.mjs +47 -0
- package/lib/creator-submit.mjs +289 -0
- package/lib/creator-toolchain-compat.mjs +92 -0
- package/lib/creator-upgrade.mjs +195 -0
- package/lib/creator-upload-state.mjs +107 -0
- package/lib/document-action-result.mjs +21 -0
- package/lib/document-presentation.mjs +110 -0
- package/lib/host-ipc/distribution-node-support-contract/contracts/ugc/creator-source/v1/tool-package.schema.json +11 -0
- package/lib/host-ipc/distribution-node-support-contract/contracts/ugc/public-runtime/v1/manifest.mjs +198 -0
- package/lib/host-ipc/distribution-node-support-contract/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +854 -0
- package/lib/host-ipc/distribution-node-support-contract/contracts/ugc/registry/v1/conformance/js/capability-resolver.mjs +191 -0
- package/lib/host-ipc/host-ipc.schema.json +1161 -0
- package/lib/host-ipc/runtime-contract.mjs +74 -0
- package/lib/host-ipc/source-lock.json +34 -0
- package/lib/local-builder.mjs +73 -0
- package/lib/local-content.mjs +37 -0
- package/lib/local-development.mjs +179 -0
- package/lib/meshy-api.mjs +270 -0
- package/lib/meshy-cli.mjs +80 -0
- package/lib/meshy-store.mjs +161 -0
- package/lib/personal-state-bridge.mjs +77 -0
- package/lib/presentation-project-update.mjs +89 -0
- package/lib/presentation-resources.mjs +109 -0
- package/lib/private-ecs-harness.mjs +54 -0
- package/lib/private-event-harness.mjs +35 -0
- package/lib/project-validation.mjs +763 -0
- package/lib/release-version.mjs +20 -0
- package/lib/runtime-download.mjs +115 -0
- package/lib/runtime-host-client.mjs +128 -0
- package/lib/runtime-host.mjs +124 -0
- package/lib/runtime-install.mjs +226 -0
- package/lib/runtime-snapshot.mjs +132 -0
- package/lib/runtime-source.mjs +39 -0
- package/lib/scene-assets.mjs +54 -0
- package/local-builder.snapshot.lock.json +7 -0
- package/local-content.snapshot.lock.json +190 -0
- package/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/node_modules/@esbuild/darwin-x64/README.md +3 -0
- package/node_modules/@esbuild/darwin-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-x64/package.json +20 -0
- package/node_modules/@esbuild/linux-arm64/README.md +3 -0
- package/node_modules/@esbuild/linux-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-arm64/package.json +20 -0
- package/node_modules/@esbuild/linux-x64/README.md +3 -0
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +20 -0
- 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/esbuild/LICENSE.md +21 -0
- package/node_modules/esbuild/README.md +3 -0
- package/node_modules/esbuild/bin/esbuild +223 -0
- package/node_modules/esbuild/install.js +289 -0
- package/node_modules/esbuild/lib/main.d.ts +716 -0
- package/node_modules/esbuild/lib/main.js +2242 -0
- package/node_modules/esbuild/package.json +49 -0
- package/node_modules/gltf-validator/ISSUES.md +188 -0
- package/node_modules/gltf-validator/LICENSE +202 -0
- package/node_modules/gltf-validator/NOTICES +435 -0
- package/node_modules/gltf-validator/README.md +153 -0
- package/node_modules/gltf-validator/gltf_validator.dart.js +10996 -0
- package/node_modules/gltf-validator/index.js +63 -0
- package/node_modules/gltf-validator/module.mjs +63 -0
- package/node_modules/gltf-validator/package.json +22 -0
- package/node_modules/gltf-validator/validation.schema.json +266 -0
- package/node_modules/pngjs/LICENSE +20 -0
- package/node_modules/pngjs/README.md +287 -0
- package/node_modules/pngjs/browser.js +18985 -0
- package/node_modules/pngjs/lib/bitmapper.js +267 -0
- package/node_modules/pngjs/lib/bitpacker.js +158 -0
- package/node_modules/pngjs/lib/chunkstream.js +189 -0
- package/node_modules/pngjs/lib/constants.js +32 -0
- package/node_modules/pngjs/lib/crc.js +40 -0
- package/node_modules/pngjs/lib/filter-pack.js +171 -0
- package/node_modules/pngjs/lib/filter-parse-async.js +24 -0
- package/node_modules/pngjs/lib/filter-parse-sync.js +21 -0
- package/node_modules/pngjs/lib/filter-parse.js +177 -0
- package/node_modules/pngjs/lib/format-normaliser.js +93 -0
- package/node_modules/pngjs/lib/interlace.js +95 -0
- package/node_modules/pngjs/lib/packer-async.js +50 -0
- package/node_modules/pngjs/lib/packer-sync.js +56 -0
- package/node_modules/pngjs/lib/packer.js +129 -0
- package/node_modules/pngjs/lib/paeth-predictor.js +16 -0
- package/node_modules/pngjs/lib/parser-async.js +169 -0
- package/node_modules/pngjs/lib/parser-sync.js +112 -0
- package/node_modules/pngjs/lib/parser.js +290 -0
- package/node_modules/pngjs/lib/png-sync.js +12 -0
- package/node_modules/pngjs/lib/png.js +194 -0
- package/node_modules/pngjs/lib/sync-inflate.js +168 -0
- package/node_modules/pngjs/lib/sync-reader.js +45 -0
- package/node_modules/pngjs/package.json +76 -0
- package/node_modules/smol-toml/LICENSE +24 -0
- package/node_modules/smol-toml/README.md +236 -0
- package/node_modules/smol-toml/dist/date.d.ts +41 -0
- package/node_modules/smol-toml/dist/date.js +127 -0
- package/node_modules/smol-toml/dist/error.d.ts +38 -0
- package/node_modules/smol-toml/dist/error.js +63 -0
- package/node_modules/smol-toml/dist/extract.d.ts +30 -0
- package/node_modules/smol-toml/dist/extract.js +109 -0
- package/node_modules/smol-toml/dist/index.cjs +906 -0
- package/node_modules/smol-toml/dist/index.d.ts +43 -0
- package/node_modules/smol-toml/dist/index.js +33 -0
- package/node_modules/smol-toml/dist/parse.d.ts +37 -0
- package/node_modules/smol-toml/dist/parse.js +148 -0
- package/node_modules/smol-toml/dist/primitive.d.ts +31 -0
- package/node_modules/smol-toml/dist/primitive.js +178 -0
- package/node_modules/smol-toml/dist/stringify.d.ts +31 -0
- package/node_modules/smol-toml/dist/stringify.js +163 -0
- package/node_modules/smol-toml/dist/struct.d.ts +32 -0
- package/node_modules/smol-toml/dist/struct.js +194 -0
- package/node_modules/smol-toml/dist/util.d.ts +42 -0
- package/node_modules/smol-toml/dist/util.js +106 -0
- package/node_modules/smol-toml/package.json +54 -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/package.json +171 -4
- package/personal-state-bridge.source-lock.json +42 -0
- package/personal-state.snapshot.lock.json +40 -0
- package/public-runtime.snapshot.lock.json +58 -0
- package/runtime-catalog.json +22 -0
- package/scene-interaction-v2.snapshot.lock.json +36 -0
- package/sdk/client/index.js +20 -0
- package/sdk/shared/index.js +20 -0
- package/source-package.snapshot.lock.json +26 -0
- package/templates/document-presentation/assets.js +73 -0
- package/templates/document-presentation/authority.js +31 -0
- package/templates/document-presentation/journey-actions.js +36 -0
- package/templates/document-presentation/journey-note-bridge.js +34 -0
- package/templates/document-presentation/journey-presentation.js +96 -0
- package/templates/document-presentation/journey-view.js +43 -0
- package/templates/document-presentation/motion.js +11 -0
- package/templates/document-presentation/peer-presentation.js +160 -0
- package/templates/document-presentation/personal-story.js +75 -0
- package/templates/document-presentation/space-projection.js +54 -0
- package/templates/npm-project/AGENTS.md +11 -0
- package/templates/project.gitignore +9 -0
- package/templates/public-untrusted/chrona.project.json +7 -0
- package/templates/public-untrusted/content/assets/runtime/template-triangle.gltf +50 -0
- package/templates/public-untrusted/content/ecs/components.json +30 -0
- package/templates/public-untrusted/content/ecs/prefabs.json +14 -0
- package/templates/public-untrusted/content/ecs/scene.json +9 -0
- package/templates/public-untrusted/content/gameplay/client/presentation.js +8 -0
- package/templates/public-untrusted/content/gameplay/shared/rules.js +17 -0
- package/templates/public-untrusted/content/manifest.json +75 -0
- package/templates/public-untrusted/content/provenance.json +15 -0
- package/templates/public-untrusted/content/tests/budgets.json +5 -0
- package/templates/public-untrusted/content/tests/rules.json +10 -0
- package/templates/public-untrusted/content/tests/scenarios.json +45 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Flat-ground declaration contract 1.0.0
|
|
2
|
+
|
|
3
|
+
No `locomotion.ground` or `locomotion.run` capability is published by this contract. The current source Manifest accepts optional `groundRules: "rules/ground.json"`, referring to `content/rules/ground.json`; its identity, geometry and required dependencies are validated together. Creator Kit snapshots must include this contract before authoring that field. Unknown required capabilities remain `needs_capability`; do not insert this file into arbitrary private ECS and assume it controls movement. Runtime activation still requires tested Node/Web adapters, Registry publication and hash-bound effective build output.
|
|
4
|
+
|
|
5
|
+
The Manifest must explicitly request `locomotion.ground` with `version: "^1.0.0", required: true`; a non-null run speed additionally requires the same range of `locomotion.run`. Optional fallbacks, different ranges and `locomotion.basic` do not satisfy this declaration's dependency. Registry resolution decides whether a capability is published for the content tier; this ground contract then requires the verified lock's supported exact `1.0.0` semantics. A future Registry version must not silently change the effective ground rules. Missing document reports `MISSING_REQUIRED_FIELD`, a nonstandard path `INVALID_PACKAGE_PATH`, invalid declaration/identity `INVALID_MANIFEST`, and missing/optional/wrong-version requests `INVALID_CAPABILITY_REQUEST`. These reports do not echo source values.
|
|
6
|
+
|
|
7
|
+
## Source and effective result
|
|
8
|
+
|
|
9
|
+
`ground-rules.schema.json` specifies closed, finite, bounded data. `prepareGroundRules(source)` additionally checks relationships and produces a detached deterministic effective configuration; it does not authenticate content or grant physics access. `resolveGroundRules(source, availableCapabilities)` requires exact `{id,version}` entries projected by the platform from the verified Capability lock for this execution tier. It returns `{status:"needs_capability",missing,effective:null}` if a required entry is absent, and `{status:"resolved",missing:[],effective}` otherwise. Fixture entries are not Registry publication or authorization.
|
|
10
|
+
|
|
11
|
+
Source identity must match the Manifest at build/load. Effective configuration, policy version, input bytes and required capability lock must enter the immutable content hash before Room or clients receive it. No final content hash is placed inside the pre-build configuration. The runtime release carries the verified final identity outside this object. Candidate code cannot supply the grant or replace effective output.
|
|
12
|
+
|
|
13
|
+
`effective-ground-rules.schema.json` and `validateEffectiveGroundRules(value)` define the platform output. The latter revalidates geometry and rejects altered coordinate conventions, radius, capability requirements and noncanonical array order with `INVALID_GROUND_EFFECTIVE`. It returns a detached canonical copy. Valid shape is not trusted identity: a different valid speed/version still requires the matching verified build hash before runtime use. Effective `schemaVersion` binds this version's policy limits; policy changes require a new contract/build release, not content overrides.
|
|
14
|
+
|
|
15
|
+
All spatial values are world meters in one right-handed Y-up, positive-Z-forward coordinate system. Origin is fixed at zero; no player-specific offsets. All spawn points, obstacle centers and bounds use the same X/Z axes; player feet are at `groundHeightMeters`. A rendering asset's local transform is not an authority coordinate transform.
|
|
16
|
+
|
|
17
|
+
| Field | Semantics |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| mode | `flat-ground` only; slopes, flight, jumping, navmeshes and arbitrary physics require separate capabilities |
|
|
20
|
+
| groundHeightMeters | Fixed horizontal feet plane, within ±10,000 meters |
|
|
21
|
+
| spawnPoints | 1–50 stable IDs and X/Z/yaw; at least one non-overlapping valid point per requested seat; canonical ASCII ID ordering |
|
|
22
|
+
| bounds | Finite min/max X/Z; the player's complete circle must remain inside, not only its center |
|
|
23
|
+
| obstacles | At most 128 circular solid footprints with stable IDs, center and radius 0.1–1,000 meters; intersecting obstacles are allowed |
|
|
24
|
+
| movement | Walk speed 0.1–10 m/s; run speed null or 0.1–10 and at least walk speed. Non-null run requires the separate run capability; never silently downgrade |
|
|
25
|
+
| requestedMaxPlayers | 1–50; effective maxPlayers is this ceiling, not a claim that seats are available. It does not enlarge platform/entity/network budgets |
|
|
26
|
+
| playerRadiusMeters | Platform output only, fixed 0.45, matching the existing authoritative player radius. Content cannot configure solver parameters |
|
|
27
|
+
|
|
28
|
+
Spawn clearance checks include bounds, every obstacle and every other spawn point. Tangent contact is permitted; overlap is rejected. Positions/yaw preserve finite values with negative zero normalized. Bounds keys and nested output keys have fixed order; arrays sort by stable ASCII IDs, not locale. Reordering input never changes the prepared result. Content source bytes still participate in the final build identity.
|
|
29
|
+
|
|
30
|
+
## Runtime integration requirements (not implemented here)
|
|
31
|
+
|
|
32
|
+
- Movement and orientation use trusted platform player input. Content declares rules; it cannot provide actor identity, coordinates as settled movement, a Tick interval, prediction/rollback/AOI/replication parameters, database access or an enlarged budget.
|
|
33
|
+
- Room consumes the verified immutable effective configuration for this content version, validates displacement against solid footprints/bounds (including movement segments, not only endpoints), and provides the same data to the platform client prediction/visual layer. This contract specifies geometry, not a solver algorithm. Do not claim collision support from declaration tests.
|
|
34
|
+
- Backend owns Room movement, input/replication integration and Go/Redis/Party seat enforcement. Node and admission must use the effective ceiling, retaining disconnected seats during recovery; the ninth member of an eight-seat world must be rejected even if the platform hard ceiling is 50.
|
|
35
|
+
- Spawn selection and respawn consume the authoritative retained-seat/occupied-space state; the content cannot choose another player's spawn. Reconnect retains the authoritative position and identity, never reassigns a fresh spawn. New admission uses an available declared point or explicitly rejects/delays; no fallback to the builtin grid. Active instances never mix configuration across release versions.
|
|
36
|
+
- UGC owns source/identity validation, required capabilities, effective result construction and hash binding. Backend and client adapters must pass shared vectors plus movement, tunneling, collision, boundary, speed, capacity, recovery and cross-room tests before capability publication.
|
|
37
|
+
|
|
38
|
+
The source is generic, not an ARES-specific constants table. ARES's existing ±58 and ±65 bounds must be reconciled by its content owner into one declaration; no consumer selects its own value. The example fixture is platform test data, not the actual ARES world or a production collision map.
|
|
39
|
+
|
|
40
|
+
## Rejections and verification
|
|
41
|
+
|
|
42
|
+
Errors use fixed messages without original values: `INVALID_GROUND_RULES` (shape/version/mode/speed), `GROUND_BUDGET_EXCEEDED` (counts/seats), `INVALID_GROUND_GEOMETRY` (bounds/obstacles/point shapes), `INVALID_GROUND_SPAWN` (clearance), `INVALID_GROUND_GRANT` (platform grant shape). Missing capabilities are a structured non-success result, not an exception or downgrade.
|
|
43
|
+
|
|
44
|
+
Run `node --test tools/ugc/ground-rules.test.mjs` from the service repository. The same vectors run through `node tools/ugc/validate-pipeline-vectors-browser.mjs ground-rules` in an independent Chrome. These are source-contract tests; Go and real Room/Web runtime acceptance remain mandatory when their consuming adapters are implemented.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { prepareGroundRules, resolveGroundRules, validateEffectiveGroundRules } from '../ground-rules.mjs'
|
|
2
|
+
|
|
3
|
+
export function runVectors(vectors) {
|
|
4
|
+
const failures = []
|
|
5
|
+
for (const row of vectors.cases) {
|
|
6
|
+
const input = structuredClone(vectors.fixture)
|
|
7
|
+
for (const mutation of row.mutations ?? []) {
|
|
8
|
+
let target = input
|
|
9
|
+
for (const key of mutation.path.slice(0, -1)) target = target[key]
|
|
10
|
+
if (mutation.remove) delete target[mutation.path.at(-1)]
|
|
11
|
+
else target[mutation.path.at(-1)] = structuredClone(mutation.value)
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
const result = resolveGroundRules(input.source, input.available)
|
|
15
|
+
for (const mutation of row.effectiveMutations ?? []) {
|
|
16
|
+
let target = result.effective
|
|
17
|
+
for (const key of mutation.path.slice(0, -1)) target = target[key]
|
|
18
|
+
target[mutation.path.at(-1)] = structuredClone(mutation.value)
|
|
19
|
+
}
|
|
20
|
+
if (result.status === 'resolved') validateEffectiveGroundRules(result.effective)
|
|
21
|
+
if (row.error || result.status !== (row.status ?? 'resolved')) failures.push(row.name)
|
|
22
|
+
if (row.missing && JSON.stringify(result.missing.map(entry => entry.id)) !== JSON.stringify(row.missing)) failures.push(row.name)
|
|
23
|
+
if (result.status === 'needs_capability' && result.effective !== null) failures.push(row.name)
|
|
24
|
+
if (result.status === 'resolved' && JSON.stringify(result.effective) !== JSON.stringify(prepareGroundRules(input.source))) failures.push(row.name)
|
|
25
|
+
if (result.status === 'resolved' && JSON.stringify(validateEffectiveGroundRules(result.effective)) !== JSON.stringify(result.effective)) failures.push(row.name)
|
|
26
|
+
} catch (error) {
|
|
27
|
+
if (!row.error || error.code !== row.error || error.message.includes('SENTINEL')) failures.push(row.name)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return { status: failures.length ? 'failed' : 'passed', total: vectors.cases.length, failures }
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><meta charset="utf-8"><title>Ground rules conformance</title><pre id="result">running</pre><script type="module" src="./runner.mjs"></script></html>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { runVectors } from '../run-vectors.mjs'
|
|
2
|
+
const result = runVectors(await fetch('../../testdata/vectors.json').then(response => response.json()))
|
|
3
|
+
document.querySelector('#result').textContent = JSON.stringify(result)
|
|
4
|
+
globalThis.__chronaGroundRulesConformance = result
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "1.0.0",
|
|
3
|
+
"schemaDraft": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"schemas": ["ground-rules.schema.json", "effective-ground-rules.schema.json"],
|
|
5
|
+
"documents": ["README.md"],
|
|
6
|
+
"modules": ["ground-rules.mjs", "conformance/run-vectors.mjs", "conformance/web/index.html", "conformance/web/runner.mjs"],
|
|
7
|
+
"testVectors": "testdata/vectors.json",
|
|
8
|
+
"errorCodes": ["INVALID_GROUND_RULES", "GROUND_BUDGET_EXCEEDED", "INVALID_GROUND_GEOMETRY", "INVALID_GROUND_SPAWN", "INVALID_GROUND_GRANT", "INVALID_GROUND_EFFECTIVE"]
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.chrona.invalid/ugc/ground-rules/v1/effective-ground-rules.schema.json",
|
|
4
|
+
"title": "Chrona platform effective ground configuration",
|
|
5
|
+
"description": "Not creator input. Require validateEffectiveGroundRules plus verified release identity and Capability lock before runtime use.",
|
|
6
|
+
"type": "object", "additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "contentId", "contentVersion", "coordinateSystem", "mode", "groundHeightMeters", "spawnPoints", "bounds", "obstacles", "movement", "maxPlayers", "playerRadiusMeters", "requiredCapabilities"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
10
|
+
"contentId": { "$ref": "ground-rules.schema.json#/properties/contentId" },
|
|
11
|
+
"contentVersion": { "$ref": "ground-rules.schema.json#/$defs/version" },
|
|
12
|
+
"coordinateSystem": { "const": { "units": "meters", "handedness": "right", "upAxis": "y", "forwardAxis": "+z", "origin": { "x": 0, "y": 0, "z": 0 } } },
|
|
13
|
+
"mode": { "const": "flat-ground" },
|
|
14
|
+
"groundHeightMeters": { "$ref": "ground-rules.schema.json#/$defs/coordinate" },
|
|
15
|
+
"spawnPoints": { "$ref": "ground-rules.schema.json#/properties/spawnPoints" },
|
|
16
|
+
"bounds": { "$ref": "ground-rules.schema.json#/properties/bounds" },
|
|
17
|
+
"obstacles": { "$ref": "ground-rules.schema.json#/properties/obstacles" },
|
|
18
|
+
"movement": { "$ref": "ground-rules.schema.json#/properties/movement" },
|
|
19
|
+
"maxPlayers": { "$ref": "ground-rules.schema.json#/properties/requestedMaxPlayers" },
|
|
20
|
+
"playerRadiusMeters": { "const": 0.45 },
|
|
21
|
+
"requiredCapabilities": {
|
|
22
|
+
"type": "array", "minItems": 1, "maxItems": 2, "uniqueItems": true,
|
|
23
|
+
"items": { "type": "object", "additionalProperties": false, "required": ["id", "version", "required"],
|
|
24
|
+
"properties": { "id": { "enum": ["locomotion.ground", "locomotion.run"] }, "version": { "const": "1.0.0" }, "required": { "const": true } } }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// Transport-independent declaration contract. This module does not execute physics or grant authority.
|
|
2
|
+
const ID = /^[a-z][a-z0-9.-]{1,63}$/
|
|
3
|
+
const CONTENT = /^ugc\.[a-z0-9][a-z0-9.-]{2,126}$/
|
|
4
|
+
const VERSION = /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/
|
|
5
|
+
const object = value => value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
6
|
+
const exact = (value, keys) => object(value) && Object.keys(value).length === keys.length && keys.every(key => Object.hasOwn(value, key))
|
|
7
|
+
const numeric = (value, min, max) => typeof value === 'number' && Number.isFinite(value) && value >= min && value <= max
|
|
8
|
+
const coordinate = value => numeric(value, -10000, 10000)
|
|
9
|
+
const id = value => typeof value === 'string' && ID.test(value)
|
|
10
|
+
const clean = value => Object.is(value, -0) ? 0 : value
|
|
11
|
+
const sort = (a, b) => a.id < b.id ? -1 : a.id > b.id ? 1 : 0
|
|
12
|
+
const fail = code => { throw Object.assign(new Error('Ground rule declaration was rejected.'), { code }) }
|
|
13
|
+
|
|
14
|
+
// Platform-owned geometry policy. Not creator-configurable solver/replication parameters.
|
|
15
|
+
export const GROUND_LIMITS = Object.freeze({ maxPlayers: 50, maxObstacles: 128, maxSpawnPoints: 50, playerRadiusMeters: 0.45 })
|
|
16
|
+
|
|
17
|
+
export function prepareGroundRules(value) {
|
|
18
|
+
if (!exact(value, ['schemaVersion', 'contentId', 'contentVersion', 'mode', 'groundHeightMeters', 'spawnPoints', 'bounds', 'obstacles', 'movement', 'requestedMaxPlayers'])
|
|
19
|
+
|| value.schemaVersion !== '1.0.0' || typeof value.contentId !== 'string' || !CONTENT.test(value.contentId)
|
|
20
|
+
|| typeof value.contentVersion !== 'string' || !VERSION.test(value.contentVersion)
|
|
21
|
+
|| value.mode !== 'flat-ground' || !coordinate(value.groundHeightMeters)) fail('INVALID_GROUND_RULES')
|
|
22
|
+
if (!Number.isInteger(value.requestedMaxPlayers) || value.requestedMaxPlayers < 1 || value.requestedMaxPlayers > GROUND_LIMITS.maxPlayers
|
|
23
|
+
|| !Array.isArray(value.spawnPoints) || value.spawnPoints.length < value.requestedMaxPlayers || value.spawnPoints.length > GROUND_LIMITS.maxSpawnPoints
|
|
24
|
+
|| !Array.isArray(value.obstacles) || value.obstacles.length > GROUND_LIMITS.maxObstacles) fail('GROUND_BUDGET_EXCEEDED')
|
|
25
|
+
const bounds = value.bounds
|
|
26
|
+
if (!exact(bounds, ['minX', 'maxX', 'minZ', 'maxZ']) || !Object.values(bounds).every(coordinate)
|
|
27
|
+
|| bounds.maxX - bounds.minX < GROUND_LIMITS.playerRadiusMeters * 2 || bounds.maxZ - bounds.minZ < GROUND_LIMITS.playerRadiusMeters * 2) fail('INVALID_GROUND_GEOMETRY')
|
|
28
|
+
const movement = value.movement
|
|
29
|
+
if (!exact(movement, ['walkSpeedMetersPerSecond', 'runSpeedMetersPerSecond'])
|
|
30
|
+
|| !numeric(movement.walkSpeedMetersPerSecond, 0.1, 10)
|
|
31
|
+
|| (movement.runSpeedMetersPerSecond !== null && (!numeric(movement.runSpeedMetersPerSecond, 0.1, 10)
|
|
32
|
+
|| movement.runSpeedMetersPerSecond < movement.walkSpeedMetersPerSecond))) fail('INVALID_GROUND_RULES')
|
|
33
|
+
const seen = new Set()
|
|
34
|
+
const obstacles = value.obstacles.map(obstacle => {
|
|
35
|
+
if (!exact(obstacle, ['id', 'shape', 'x', 'z', 'radiusMeters']) || !id(obstacle.id) || seen.has(obstacle.id)
|
|
36
|
+
|| obstacle.shape !== 'circle' || !coordinate(obstacle.x) || !coordinate(obstacle.z)
|
|
37
|
+
|| !numeric(obstacle.radiusMeters, 0.1, 1000)) fail('INVALID_GROUND_GEOMETRY')
|
|
38
|
+
seen.add(obstacle.id)
|
|
39
|
+
return { id: obstacle.id, shape: 'circle', x: clean(obstacle.x), z: clean(obstacle.z), radiusMeters: obstacle.radiusMeters }
|
|
40
|
+
}).sort(sort)
|
|
41
|
+
const spawnIds = new Set()
|
|
42
|
+
const spawnPoints = value.spawnPoints.map(point => {
|
|
43
|
+
if (!exact(point, ['id', 'x', 'z', 'yawRadians']) || !id(point.id) || spawnIds.has(point.id)
|
|
44
|
+
|| !coordinate(point.x) || !coordinate(point.z) || !numeric(point.yawRadians, -Math.PI, Math.PI)) fail('INVALID_GROUND_GEOMETRY')
|
|
45
|
+
spawnIds.add(point.id)
|
|
46
|
+
const r = GROUND_LIMITS.playerRadiusMeters
|
|
47
|
+
if (point.x < bounds.minX + r || point.x > bounds.maxX - r || point.z < bounds.minZ + r || point.z > bounds.maxZ - r
|
|
48
|
+
|| obstacles.some(obstacle => Math.hypot(point.x - obstacle.x, point.z - obstacle.z) < obstacle.radiusMeters + r)) fail('INVALID_GROUND_SPAWN')
|
|
49
|
+
return { id: point.id, x: clean(point.x), z: clean(point.z), yawRadians: clean(point.yawRadians) }
|
|
50
|
+
}).sort(sort)
|
|
51
|
+
for (let i = 0; i < spawnPoints.length; i++) for (let j = i + 1; j < spawnPoints.length; j++) {
|
|
52
|
+
if (Math.hypot(spawnPoints[i].x - spawnPoints[j].x, spawnPoints[i].z - spawnPoints[j].z) < GROUND_LIMITS.playerRadiusMeters * 2) fail('INVALID_GROUND_SPAWN')
|
|
53
|
+
}
|
|
54
|
+
const requiredCapabilities = [{ id: 'locomotion.ground', version: '1.0.0', required: true }]
|
|
55
|
+
if (movement.runSpeedMetersPerSecond !== null) requiredCapabilities.push({ id: 'locomotion.run', version: '1.0.0', required: true })
|
|
56
|
+
return {
|
|
57
|
+
schemaVersion: '1.0.0', contentId: value.contentId, contentVersion: value.contentVersion,
|
|
58
|
+
coordinateSystem: { units: 'meters', handedness: 'right', upAxis: 'y', forwardAxis: '+z', origin: { x: 0, y: 0, z: 0 } },
|
|
59
|
+
mode: 'flat-ground', groundHeightMeters: clean(value.groundHeightMeters), spawnPoints,
|
|
60
|
+
bounds: { minX: clean(bounds.minX), maxX: clean(bounds.maxX), minZ: clean(bounds.minZ), maxZ: clean(bounds.maxZ) }, obstacles,
|
|
61
|
+
movement: { walkSpeedMetersPerSecond: movement.walkSpeedMetersPerSecond, runSpeedMetersPerSecond: movement.runSpeedMetersPerSecond },
|
|
62
|
+
maxPlayers: value.requestedMaxPlayers, playerRadiusMeters: GROUND_LIMITS.playerRadiusMeters, requiredCapabilities,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// availableCapabilities MUST be projected from a platform-verified lock for this tier.
|
|
67
|
+
// Pure conformance callers can supply fixtures; no result authenticates that caller.
|
|
68
|
+
export function resolveGroundRules(source, availableCapabilities) {
|
|
69
|
+
const effective = prepareGroundRules(source)
|
|
70
|
+
if (!Array.isArray(availableCapabilities) || availableCapabilities.length > 64) fail('INVALID_GROUND_GRANT')
|
|
71
|
+
const available = new Set()
|
|
72
|
+
for (const capability of availableCapabilities) {
|
|
73
|
+
if (!exact(capability, ['id', 'version']) || !id(capability.id) || typeof capability.version !== 'string' || !VERSION.test(capability.version)
|
|
74
|
+
|| available.has(`${capability.id}@${capability.version}`)) fail('INVALID_GROUND_GRANT')
|
|
75
|
+
available.add(`${capability.id}@${capability.version}`)
|
|
76
|
+
}
|
|
77
|
+
const missing = effective.requiredCapabilities.filter(capability => !available.has(`${capability.id}@${capability.version}`))
|
|
78
|
+
if (missing.length) return { status: 'needs_capability', missing, effective: null }
|
|
79
|
+
return { status: 'resolved', missing: [], effective }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Structural/semantic validation only. Runtime must separately verify the release hash and lock.
|
|
83
|
+
export function validateEffectiveGroundRules(value) {
|
|
84
|
+
if (!exact(value, ['schemaVersion', 'contentId', 'contentVersion', 'coordinateSystem', 'mode', 'groundHeightMeters', 'spawnPoints', 'bounds', 'obstacles', 'movement', 'maxPlayers', 'playerRadiusMeters', 'requiredCapabilities'])) fail('INVALID_GROUND_EFFECTIVE')
|
|
85
|
+
let expected
|
|
86
|
+
try {
|
|
87
|
+
expected = prepareGroundRules({ schemaVersion: value.schemaVersion, contentId: value.contentId, contentVersion: value.contentVersion,
|
|
88
|
+
mode: value.mode, groundHeightMeters: value.groundHeightMeters, spawnPoints: value.spawnPoints,
|
|
89
|
+
bounds: value.bounds, obstacles: value.obstacles, movement: value.movement, requestedMaxPlayers: value.maxPlayers })
|
|
90
|
+
} catch { fail('INVALID_GROUND_EFFECTIVE') }
|
|
91
|
+
const equalObject = (actual, wanted) => {
|
|
92
|
+
if (wanted === null || typeof wanted !== 'object') return actual === wanted
|
|
93
|
+
if (Array.isArray(wanted)) return Array.isArray(actual) && actual.length === wanted.length && wanted.every((entry, index) => equalObject(actual[index], entry))
|
|
94
|
+
return exact(actual, Object.keys(wanted)) && Object.entries(wanted).every(([key, entry]) => equalObject(actual[key], entry))
|
|
95
|
+
}
|
|
96
|
+
if (!equalObject(value, expected)) fail('INVALID_GROUND_EFFECTIVE')
|
|
97
|
+
return expected
|
|
98
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.chrona.invalid/ugc/ground-rules/v1/ground-rules.schema.json",
|
|
4
|
+
"title": "Chrona flat-ground content declaration",
|
|
5
|
+
"description": "Engineering contract; runtime adoption requires published capabilities and a verified release. Geometry relationships are additionally checked by ground-rules.mjs.",
|
|
6
|
+
"type": "object", "additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "contentId", "contentVersion", "mode", "groundHeightMeters", "spawnPoints", "bounds", "obstacles", "movement", "requestedMaxPlayers"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
10
|
+
"contentId": { "type": "string", "pattern": "^ugc\\.[a-z0-9][a-z0-9.-]{2,126}$" },
|
|
11
|
+
"contentVersion": { "$ref": "#/$defs/version" },
|
|
12
|
+
"mode": { "const": "flat-ground" },
|
|
13
|
+
"groundHeightMeters": { "$ref": "#/$defs/coordinate" },
|
|
14
|
+
"requestedMaxPlayers": { "type": "integer", "minimum": 1, "maximum": 50 },
|
|
15
|
+
"spawnPoints": {
|
|
16
|
+
"type": "array", "minItems": 1, "maxItems": 50,
|
|
17
|
+
"items": { "type": "object", "additionalProperties": false, "required": ["id", "x", "z", "yawRadians"],
|
|
18
|
+
"properties": { "id": { "$ref": "#/$defs/id" }, "x": { "$ref": "#/$defs/coordinate" }, "z": { "$ref": "#/$defs/coordinate" }, "yawRadians": { "type": "number", "minimum": -3.141592653589793, "maximum": 3.141592653589793 } } }
|
|
19
|
+
},
|
|
20
|
+
"bounds": { "type": "object", "additionalProperties": false, "required": ["minX", "maxX", "minZ", "maxZ"],
|
|
21
|
+
"properties": { "minX": { "$ref": "#/$defs/coordinate" }, "maxX": { "$ref": "#/$defs/coordinate" }, "minZ": { "$ref": "#/$defs/coordinate" }, "maxZ": { "$ref": "#/$defs/coordinate" } } },
|
|
22
|
+
"obstacles": { "type": "array", "maxItems": 128,
|
|
23
|
+
"items": { "type": "object", "additionalProperties": false, "required": ["id", "shape", "x", "z", "radiusMeters"],
|
|
24
|
+
"properties": { "id": { "$ref": "#/$defs/id" }, "shape": { "const": "circle" }, "x": { "$ref": "#/$defs/coordinate" }, "z": { "$ref": "#/$defs/coordinate" }, "radiusMeters": { "type": "number", "minimum": 0.1, "maximum": 1000 } } } },
|
|
25
|
+
"movement": { "type": "object", "additionalProperties": false, "required": ["walkSpeedMetersPerSecond", "runSpeedMetersPerSecond"],
|
|
26
|
+
"properties": { "walkSpeedMetersPerSecond": { "type": "number", "minimum": 0.1, "maximum": 10 }, "runSpeedMetersPerSecond": { "anyOf": [{ "type": "null" }, { "type": "number", "minimum": 0.1, "maximum": 10 }] } } }
|
|
27
|
+
},
|
|
28
|
+
"$defs": {
|
|
29
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9.-]{1,63}$" },
|
|
30
|
+
"version": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$" },
|
|
31
|
+
"coordinate": { "type": "number", "minimum": -10000, "maximum": 10000 }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"fixture": {
|
|
4
|
+
"source": {
|
|
5
|
+
"schemaVersion": "1.0.0", "contentId": "ugc.example.ground", "contentVersion": "1.0.0", "mode": "flat-ground", "groundHeightMeters": 0,
|
|
6
|
+
"spawnPoints": [{ "id": "spawn-a", "x": -2, "z": 5, "yawRadians": 0 }, { "id": "spawn-b", "x": 2, "z": 5, "yawRadians": 0 }],
|
|
7
|
+
"bounds": { "minX": -20, "maxX": 20, "minZ": -20, "maxZ": 20 },
|
|
8
|
+
"obstacles": [{ "id": "obstacle-a", "shape": "circle", "x": 0, "z": 0, "radiusMeters": 2 }],
|
|
9
|
+
"movement": { "walkSpeedMetersPerSecond": 5.5, "runSpeedMetersPerSecond": null }, "requestedMaxPlayers": 2
|
|
10
|
+
},
|
|
11
|
+
"available": [{ "id": "locomotion.ground", "version": "1.0.0" }]
|
|
12
|
+
},
|
|
13
|
+
"cases": [
|
|
14
|
+
{ "name": "effective-radius-forged", "effectiveMutations": [{ "path": ["playerRadiusMeters"], "value": 0 }], "error": "INVALID_GROUND_EFFECTIVE" },
|
|
15
|
+
{ "name": "effective-origin-forged", "effectiveMutations": [{ "path": ["coordinateSystem", "origin", "x"], "value": 10 }], "error": "INVALID_GROUND_EFFECTIVE" },
|
|
16
|
+
{ "name": "effective-capability-removed", "effectiveMutations": [{ "path": ["requiredCapabilities"], "value": [] }], "error": "INVALID_GROUND_EFFECTIVE" },
|
|
17
|
+
{ "name": "effective-axis-forged", "effectiveMutations": [{ "path": ["coordinateSystem", "upAxis"], "value": "z" }], "error": "INVALID_GROUND_EFFECTIVE" },
|
|
18
|
+
{ "name": "valid-walking-ground" },
|
|
19
|
+
{ "name": "missing-ground-capability", "mutations": [{ "path": ["available"], "value": [] }], "status": "needs_capability", "missing": ["locomotion.ground"] },
|
|
20
|
+
{ "name": "basic-movement-is-not-ground-support", "mutations": [{ "path": ["available", 0, "id"], "value": "locomotion.basic" }], "status": "needs_capability", "missing": ["locomotion.ground"] },
|
|
21
|
+
{ "name": "wrong-ground-version", "mutations": [{ "path": ["available", 0, "version"], "value": "2.0.0" }], "status": "needs_capability", "missing": ["locomotion.ground"] },
|
|
22
|
+
{ "name": "run-cannot-silently-downgrade", "mutations": [{ "path": ["source", "movement", "runSpeedMetersPerSecond"], "value": 9 }], "status": "needs_capability", "missing": ["locomotion.run"] },
|
|
23
|
+
{ "name": "valid-explicit-run-grant", "mutations": [{ "path": ["source", "movement", "runSpeedMetersPerSecond"], "value": 9 }, { "path": ["available"], "value": [{ "id": "locomotion.ground", "version": "1.0.0" }, { "id": "locomotion.run", "version": "1.0.0" }] }] },
|
|
24
|
+
{ "name": "missing-version", "mutations": [{ "path": ["source", "schemaVersion"], "remove": true }], "error": "INVALID_GROUND_RULES" },
|
|
25
|
+
{ "name": "unknown-version", "mutations": [{ "path": ["source", "schemaVersion"], "value": "2.0.0" }], "error": "INVALID_GROUND_RULES" },
|
|
26
|
+
{ "name": "unknown-mode", "mutations": [{ "path": ["source", "mode"], "value": "flight" }], "error": "INVALID_GROUND_RULES" },
|
|
27
|
+
{ "name": "source-cannot-set-authority", "mutations": [{ "path": ["source", "authority"], "value": "SENTINEL" }], "error": "INVALID_GROUND_RULES" },
|
|
28
|
+
{ "name": "source-cannot-set-effective-seats", "mutations": [{ "path": ["source", "maxPlayers"], "value": 999 }], "error": "INVALID_GROUND_RULES" },
|
|
29
|
+
{ "name": "source-cannot-set-radius", "mutations": [{ "path": ["source", "playerRadiusMeters"], "value": 0 }], "error": "INVALID_GROUND_RULES" },
|
|
30
|
+
{ "name": "zero-seats", "mutations": [{ "path": ["source", "requestedMaxPlayers"], "value": 0 }], "error": "GROUND_BUDGET_EXCEEDED" },
|
|
31
|
+
{ "name": "above-platform-seats", "mutations": [{ "path": ["source", "requestedMaxPlayers"], "value": 51 }], "error": "GROUND_BUDGET_EXCEEDED" },
|
|
32
|
+
{ "name": "insufficient-spawn-points", "mutations": [{ "path": ["source", "requestedMaxPlayers"], "value": 3 }], "error": "GROUND_BUDGET_EXCEEDED" },
|
|
33
|
+
{ "name": "empty-spawns", "mutations": [{ "path": ["source", "spawnPoints"], "value": [] }], "error": "GROUND_BUDGET_EXCEEDED" },
|
|
34
|
+
{ "name": "duplicate-spawn", "mutations": [{ "path": ["source", "spawnPoints", 1, "id"], "value": "spawn-a" }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
35
|
+
{ "name": "overlapping-spawns", "mutations": [{ "path": ["source", "spawnPoints", 1, "x"], "value": -2 }], "error": "INVALID_GROUND_SPAWN" },
|
|
36
|
+
{ "name": "spawn-in-solid", "mutations": [{ "path": ["source", "spawnPoints", 0, "x"], "value": 0 }, { "path": ["source", "spawnPoints", 0, "z"], "value": 0 }], "error": "INVALID_GROUND_SPAWN" },
|
|
37
|
+
{ "name": "spawn-center-on-boundary-is-not-clear", "mutations": [{ "path": ["source", "spawnPoints", 0, "x"], "value": -20 }], "error": "INVALID_GROUND_SPAWN" },
|
|
38
|
+
{ "name": "valid-boundary-tangency", "mutations": [{ "path": ["source", "spawnPoints", 0, "x"], "value": -19.55 }] },
|
|
39
|
+
{ "name": "valid-obstacle-tangency", "mutations": [{ "path": ["source", "spawnPoints", 0, "x"], "value": 2.45 }, { "path": ["source", "spawnPoints", 0, "z"], "value": 0 }] },
|
|
40
|
+
{ "name": "inverted-bounds", "mutations": [{ "path": ["source", "bounds", "minX"], "value": 21 }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
41
|
+
{ "name": "too-narrow-bounds", "mutations": [{ "path": ["source", "bounds", "minX"], "value": 19.5 }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
42
|
+
{ "name": "outside-coordinate-budget", "mutations": [{ "path": ["source", "bounds", "minX"], "value": -10001 }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
43
|
+
{ "name": "zero-walk-speed", "mutations": [{ "path": ["source", "movement", "walkSpeedMetersPerSecond"], "value": 0 }], "error": "INVALID_GROUND_RULES" },
|
|
44
|
+
{ "name": "above-speed-budget", "mutations": [{ "path": ["source", "movement", "walkSpeedMetersPerSecond"], "value": 10.01 }], "error": "INVALID_GROUND_RULES" },
|
|
45
|
+
{ "name": "run-slower-than-walk", "mutations": [{ "path": ["source", "movement", "runSpeedMetersPerSecond"], "value": 4 }], "error": "INVALID_GROUND_RULES" },
|
|
46
|
+
{ "name": "minimum-walk-speed", "mutations": [{ "path": ["source", "movement", "walkSpeedMetersPerSecond"], "value": 0.1 }] },
|
|
47
|
+
{ "name": "maximum-walk-speed", "mutations": [{ "path": ["source", "movement", "walkSpeedMetersPerSecond"], "value": 10 }] },
|
|
48
|
+
{ "name": "obstacle-path-not-id", "mutations": [{ "path": ["source", "obstacles", 0, "id"], "value": "../SENTINEL" }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
49
|
+
{ "name": "unsupported-solid-shape", "mutations": [{ "path": ["source", "obstacles", 0, "shape"], "value": "mesh" }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
50
|
+
{ "name": "zero-solid-radius", "mutations": [{ "path": ["source", "obstacles", 0, "radiusMeters"], "value": 0 }], "error": "INVALID_GROUND_GEOMETRY" },
|
|
51
|
+
{ "name": "ground-height-not-finite-number", "mutations": [{ "path": ["source", "groundHeightMeters"], "value": "SENTINEL" }], "error": "INVALID_GROUND_RULES" },
|
|
52
|
+
{ "name": "no-obstacles", "mutations": [{ "path": ["source", "obstacles"], "value": [] }] },
|
|
53
|
+
{ "name": "grant-cannot-be-null", "mutations": [{ "path": ["available"], "value": null }], "error": "INVALID_GROUND_GRANT" },
|
|
54
|
+
{ "name": "grant-cannot-override-authority", "mutations": [{ "path": ["available", 0, "authority"], "value": "SENTINEL" }], "error": "INVALID_GROUND_GRANT" },
|
|
55
|
+
{ "name": "malformed-grant-version", "mutations": [{ "path": ["available", 0, "version"], "value": "^1.0.0" }], "error": "INVALID_GROUND_GRANT" }
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Multi-space ground rules v2
|
|
2
|
+
|
|
3
|
+
## Spatial source 2.1.0
|
|
4
|
+
|
|
5
|
+
`spatial-source.schema.json` is the explicit continuous-surface extension. The
|
|
6
|
+
older 2.0.0 rectangle/flat-height branch below and original v1 bytes are retained.
|
|
7
|
+
Select by declaration schema, never by product version. `normalizeGroundSpatialSource`
|
|
8
|
+
checks source structure only; it does not verify resource bytes or create a grant.
|
|
9
|
+
|
|
10
|
+
Each 2.1 space has `{id,bounds,regions,barriers,surface,movement,bodyClearanceMeters}`.
|
|
11
|
+
Regions are a union of `{id,shape:"circle",x,z,radius}` or convex polygons
|
|
12
|
+
`{id,shape:"polygon",vertices:[{x,z},...]}`. These are avatar-center domains;
|
|
13
|
+
do not erode them again by body radius. The enclosing bounds are for resource
|
|
14
|
+
coverage, not a walkable box. Static barriers are circles `{id,shape,x,z,radius}`
|
|
15
|
+
or segments `{id,shape:"segment",start:{x,z},end:{x,z},radius}`. Barrier radius
|
|
16
|
+
excludes avatar clearance; the solver adds the current space clearance once.
|
|
17
|
+
Each space declares the same two author movement fields as v1, without clamping.
|
|
18
|
+
Current-space identity and dynamic bodies remain Node authority, not guest pose.
|
|
19
|
+
|
|
20
|
+
Surface is `{base,overlays}`. Each value is `{type:"constant",heightMeters}` or
|
|
21
|
+
`{type:"heightfield",resource}`. Resource is exactly
|
|
22
|
+
`{path,encoding:"float32-le",axisOrder:"z-rows-x-columns",bounds,columns,rows,bytes,sha256}`.
|
|
23
|
+
Paths are ordinary content-relative `rules/*.f32`, SHA-256 is prefixed `sha256:`.
|
|
24
|
+
Samples include both endpoints, x increases by `(maxX-minX)/(columns-1)`, z by
|
|
25
|
+
`(maxZ-minZ)/(rows-1)`, offset is `4*(row*columns+column)`. Axis size is 2..1024,
|
|
26
|
+
sample height finite within ±10000m. A sampler verifies all values once, then
|
|
27
|
+
bilinearly samples four neighbors in O(1). `createHeightfieldResource` is the
|
|
28
|
+
content import producer; Builder/Host read emitted data, never execute its
|
|
29
|
+
author-provided scalar function. Runtime `readHeightfieldResource` checks exact
|
|
30
|
+
length/hash and cancellation, owns bytes, then compiles the shared sampler.
|
|
31
|
+
|
|
32
|
+
Overlays are ordered source records `{id,domain:{bounds,open},operation,surface}`.
|
|
33
|
+
`open:true` means strict inequalities on all four bounds; `false` includes edges.
|
|
34
|
+
For each matching domain, apply `max(current,value)` or `replace` in listed order.
|
|
35
|
+
Do not sort overlays by id: source order is priority. A bridge's discontinuity
|
|
36
|
+
must be a separate exact domain; sampling the discontinuous whole surface into
|
|
37
|
+
one interpolated global table is not equivalent. Base must cover its whole
|
|
38
|
+
space, overlay resources must cover their domain. Reused paths require identical
|
|
39
|
+
records. Actual approximation error/GLB footprint conversion remains content
|
|
40
|
+
conversion evidence; this format alone does not prove a Root conversion faithful.
|
|
41
|
+
|
|
42
|
+
`loadGroundSpatialPlan(source,readBytes,signal)` verifies actual resources and
|
|
43
|
+
derives spawn/portal Y. `prepareGroundSpaces`/`validateEffectiveGroundSpaces` take
|
|
44
|
+
already verified resource bytes for 2.1; missing bytes reject instead of using
|
|
45
|
+
zero/author Y. Effective plan preserves the exact source geometry, ordered
|
|
46
|
+
surfaces, per-space movement/clearance and resource pins. Builder reads these
|
|
47
|
+
files before computing source/content identity; post-hash envelopes cannot
|
|
48
|
+
introduce new unbound height data. Existing portal destination and target/ACK
|
|
49
|
+
semantics stay the same; runtime support is explicitly required for spaces and
|
|
50
|
+
heightfields. Public capability/operation/seat permissions remain separate.
|
|
51
|
+
|
|
52
|
+
Source remains `rules/ground.json`, with explicit `schemaVersion: "2.0.0"` and
|
|
53
|
+
`mode: "multi-space-ground"`. Legacy `1.0.0` flat-ground declarations and hashes
|
|
54
|
+
use their original branch; never infer this extension from a Kit version.
|
|
55
|
+
|
|
56
|
+
`prepareGroundSpaces` accepts exactly content identity, mode, `spaces`,
|
|
57
|
+
`spawnPoints`, `portals`, original `movement` and `requestedMaxPlayers`.
|
|
58
|
+
Space: `{id,bounds,regions,barriers}`. Bounds are original minX/maxX/minZ/maxZ.
|
|
59
|
+
Walkable region: `{id,bounds,groundHeightMeters}`; gaps are non-walkable, interiors
|
|
60
|
+
of regions do not overlap, shared boundaries are permitted. Height is declared,
|
|
61
|
+
authoritative meters; never force an avatar/target Y to zero to satisfy distance.
|
|
62
|
+
Barrier: `{id,from:{x,z},to:{x,z},thicknessMeters}` is a static segment, not a body
|
|
63
|
+
or a creator-set solver. MP owns collision/step semantics and Node/Web parity.
|
|
64
|
+
|
|
65
|
+
Spawn: `{id,spaceId,x,z,yawRadians}`, with verified output Y derived from the
|
|
66
|
+
region. Portal: `{id,targetEntityId,fromSpaceId,toSpaceId,entry,destination}`;
|
|
67
|
+
entry is an original bounds object wholly in a source region, destination is
|
|
68
|
+
`{x,z,yawRadians}` and output Y is derived from destination region. Rooms may
|
|
69
|
+
overlap geometrically but stay separate by the authority-owned current space.
|
|
70
|
+
The existing scene-action target must be declared actor-distance in fromSpace,
|
|
71
|
+
bound to the actual validated prefab position/portal entry. `assertGroundPortalTargets`
|
|
72
|
+
cross-checks this binding. Only the serialized successful authority action can
|
|
73
|
+
transition the current player; the guest never supplies pose/space/teleport.
|
|
74
|
+
Cross-space actors cannot satisfy a distance target merely by similar XYZ.
|
|
75
|
+
|
|
76
|
+
Effective plan keeps exact content identity, declared movement, derived heights,
|
|
77
|
+
coordinates, player radius, capabilities, maxPlayers and
|
|
78
|
+
`requiredRuntimeFeatures: ["locomotion.ground.spaces@1"]`. `validateEffectiveGroundSpaces`
|
|
79
|
+
reconstructs this deterministic plan. Feature publication or this validation is
|
|
80
|
+
not proof a target implements it. Actual target tick/encoding/collision/cache and
|
|
81
|
+
capability/seat budgets remain original runtime checks. No clamp of movement or
|
|
82
|
+
player count. Technical structural bounds are explicit in GROUND_SPACE_LIMITS.
|
|
83
|
+
|
|
84
|
+
This is a finite logical-space/height mapping, not a general 3D rigid-body or slope
|
|
85
|
+
engine. Source adaptation must show that its river/bridge/interior traversability
|
|
86
|
+
is expressible; do not label a conversion preserving artwork alone as full play.
|
|
87
|
+
Runtime public pose/ACK wire format remains unchanged; MP owns trusted current
|
|
88
|
+
space lifecycle, same-source prediction/projection and portal serialization.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "2.1.0",
|
|
3
|
+
"status": "data-and-authority-policy-contract-not-grant",
|
|
4
|
+
"files": [
|
|
5
|
+
"README.md",
|
|
6
|
+
"ground-rules.schema.json",
|
|
7
|
+
"ground-rules.mjs",
|
|
8
|
+
"spaces.test.mjs",
|
|
9
|
+
"contract-set.json",
|
|
10
|
+
"movement.mjs",
|
|
11
|
+
"heightfield.mjs",
|
|
12
|
+
"spatial-source.mjs",
|
|
13
|
+
"spatial-source.schema.json",
|
|
14
|
+
"spatial.test.mjs"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": [
|
|
17
|
+
"ugc/ground-rules/v1",
|
|
18
|
+
"ugc/scene-interaction/v1"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// Explicit multi-space declaration. No physics, allocation, mutation or grant.
|
|
2
|
+
import { validateGroundMovement } from './movement.mjs';
|
|
3
|
+
import { prepareGroundSpatialPlan, validateGroundSpatialPlan, inGroundRegion, createGroundSurfaceSamplers } from './spatial-source.mjs';
|
|
4
|
+
import { prepareGroundEndpointPlan, validateGroundEndpointPlan } from '../v2.2/spatial-source.mjs';
|
|
5
|
+
export { normalizeGroundSpatialSource, loadGroundSpatialPlan, groundHeightfieldResources, createGroundSurfaceSamplers } from './spatial-source.mjs';
|
|
6
|
+
const object = v => v && typeof v === 'object' && !Array.isArray(v);
|
|
7
|
+
const exact = (v, keys) => object(v) && Object.keys(v).length === keys.length && keys.every(k => Object.hasOwn(v, k));
|
|
8
|
+
const number = (v, low = -10000, high = 10000) => typeof v === 'number' && Number.isFinite(v) && v >= low && v <= high;
|
|
9
|
+
const id = v => typeof v === 'string' && /^[a-z][a-z0-9.-]{1,63}$/.test(v);
|
|
10
|
+
const fail = code => { throw Object.assign(new Error('Multi-space ground declaration rejected.'), { code }); };
|
|
11
|
+
const check = (v, code = 'INVALID_GROUND_SPACES') => { if (!v) fail(code); };
|
|
12
|
+
const bounds = v => exact(v, ['minX', 'maxX', 'minZ', 'maxZ']) && Object.values(v).every(x => number(x))
|
|
13
|
+
&& v.maxX - v.minX >= 0.9 && v.maxZ - v.minZ >= 0.9;
|
|
14
|
+
const inside = (p, b, margin = 0) => p.x >= b.minX + margin && p.x <= b.maxX - margin && p.z >= b.minZ + margin && p.z <= b.maxZ - margin;
|
|
15
|
+
const overlap = (a, b) => Math.min(a.maxX, b.maxX) > Math.max(a.minX, b.minX)
|
|
16
|
+
&& Math.min(a.maxZ, b.maxZ) > Math.max(a.minZ, b.minZ);
|
|
17
|
+
const sorted = a => [...a].sort((x, y) => x.id < y.id ? -1 : x.id > y.id ? 1 : 0);
|
|
18
|
+
const freeze = v => { if (v && typeof v === 'object') { Object.values(v).forEach(freeze); Object.freeze(v); } return v; };
|
|
19
|
+
export const GROUND_SPACE_LIMITS = Object.freeze({ spaces: 32, regionsPerSpace: 128, barriersPerSpace: 128, portals: 128, players: 50, playerRadiusMeters: 0.45 });
|
|
20
|
+
const canonical = v => JSON.stringify(v, (_, x) => object(x) ? Object.fromEntries(Object.keys(x).sort().map(k => [k, x[k]])) : x);
|
|
21
|
+
|
|
22
|
+
export function prepareGroundSpaces(value, resourceBytes) {
|
|
23
|
+
if (value?.schemaVersion === '2.2.0') return prepareGroundEndpointPlan(value, resourceBytes);
|
|
24
|
+
if (value?.schemaVersion === '2.1.0') return prepareGroundSpatialPlan(value, resourceBytes);
|
|
25
|
+
check(exact(value, ['schemaVersion', 'contentId', 'contentVersion', 'mode', 'spaces', 'spawnPoints', 'portals', 'movement', 'requestedMaxPlayers'])
|
|
26
|
+
&& value.schemaVersion === '2.0.0' && value.mode === 'multi-space-ground'
|
|
27
|
+
&& /^ugc\.[a-z0-9][a-z0-9.-]{2,126}$/.test(value.contentId)
|
|
28
|
+
&& /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/.test(value.contentVersion));
|
|
29
|
+
// Reuse old movement semantics and Capability requirements without rewriting
|
|
30
|
+
// a historic v1 declaration, geometry or its hash.
|
|
31
|
+
const movement = validateGroundMovement(value.movement);
|
|
32
|
+
const requiredCapabilities = [{ id: 'locomotion.ground', version: '1.0.0', required: true }];
|
|
33
|
+
if (movement.runSpeedMetersPerSecond !== null) requiredCapabilities.push({ id: 'locomotion.run', version: '1.0.0', required: true });
|
|
34
|
+
check(Number.isSafeInteger(value.requestedMaxPlayers) && value.requestedMaxPlayers >= 1 && value.requestedMaxPlayers <= GROUND_SPACE_LIMITS.players,
|
|
35
|
+
'GROUND_BUDGET_EXCEEDED');
|
|
36
|
+
check(Array.isArray(value.spaces) && value.spaces.length >= 1 && value.spaces.length <= GROUND_SPACE_LIMITS.spaces);
|
|
37
|
+
const seen = new Set();
|
|
38
|
+
const spaces = sorted(value.spaces.map(s => {
|
|
39
|
+
check(exact(s, ['id', 'bounds', 'regions', 'barriers']) && id(s.id) && !seen.has(s.id) && bounds(s.bounds)); seen.add(s.id);
|
|
40
|
+
check(Array.isArray(s.regions) && s.regions.length >= 1 && s.regions.length <= GROUND_SPACE_LIMITS.regionsPerSpace);
|
|
41
|
+
const regionsSeen = new Set();
|
|
42
|
+
const regions = sorted(s.regions.map(r => {
|
|
43
|
+
check(exact(r, ['id', 'bounds', 'groundHeightMeters']) && id(r.id) && !regionsSeen.has(r.id) && bounds(r.bounds) && number(r.groundHeightMeters));
|
|
44
|
+
check(r.bounds.minX >= s.bounds.minX && r.bounds.maxX <= s.bounds.maxX && r.bounds.minZ >= s.bounds.minZ && r.bounds.maxZ <= s.bounds.maxZ);
|
|
45
|
+
regionsSeen.add(r.id); return { id: r.id, bounds: { ...r.bounds }, groundHeightMeters: r.groundHeightMeters };
|
|
46
|
+
}));
|
|
47
|
+
for (let i = 0; i < regions.length; i++) for (let j = i + 1; j < regions.length; j++) check(!overlap(regions[i].bounds, regions[j].bounds), 'GROUND_REGION_AMBIGUOUS');
|
|
48
|
+
check(Array.isArray(s.barriers) && s.barriers.length <= GROUND_SPACE_LIMITS.barriersPerSpace);
|
|
49
|
+
const barriersSeen = new Set();
|
|
50
|
+
const barriers = sorted(s.barriers.map(b => {
|
|
51
|
+
check(exact(b, ['id', 'from', 'to', 'thicknessMeters']) && id(b.id) && !barriersSeen.has(b.id)
|
|
52
|
+
&& [b.from, b.to].every(p => exact(p, ['x', 'z']) && Object.values(p).every(x => number(x)) && inside(p, s.bounds))
|
|
53
|
+
&& Math.hypot(b.from.x - b.to.x, b.from.z - b.to.z) > 0 && number(b.thicknessMeters, 0.01, 100), 'INVALID_GROUND_BARRIER');
|
|
54
|
+
barriersSeen.add(b.id); return { id: b.id, from: { ...b.from }, to: { ...b.to }, thicknessMeters: b.thicknessMeters };
|
|
55
|
+
}));
|
|
56
|
+
return { id: s.id, bounds: { ...s.bounds }, regions, barriers };
|
|
57
|
+
}));
|
|
58
|
+
const byId = new Map(spaces.map(s => [s.id, s]));
|
|
59
|
+
const at = (spaceId, p) => {
|
|
60
|
+
const space = byId.get(spaceId); check(space && Object.values(p).every(x => number(x)) && inside(p, space.bounds, 0.45), 'INVALID_GROUND_SPAWN');
|
|
61
|
+
const region = space.regions.find(r => inside(p, r.bounds, 0.45)); check(region, 'INVALID_GROUND_SPAWN');
|
|
62
|
+
for (const b of space.barriers) {
|
|
63
|
+
const dx = b.to.x - b.from.x, dz = b.to.z - b.from.z;
|
|
64
|
+
const t = Math.max(0, Math.min(1, ((p.x - b.from.x) * dx + (p.z - b.from.z) * dz) / (dx * dx + dz * dz)));
|
|
65
|
+
check(Math.hypot(p.x - b.from.x - t * dx, p.z - b.from.z - t * dz) >= 0.45 + b.thicknessMeters / 2, 'INVALID_GROUND_SPAWN');
|
|
66
|
+
}
|
|
67
|
+
return region.groundHeightMeters;
|
|
68
|
+
};
|
|
69
|
+
check(Array.isArray(value.spawnPoints) && value.spawnPoints.length >= value.requestedMaxPlayers && value.spawnPoints.length <= 50);
|
|
70
|
+
const spawnSeen = new Set();
|
|
71
|
+
const spawnPoints = sorted(value.spawnPoints.map(p => {
|
|
72
|
+
check(exact(p, ['id', 'spaceId', 'x', 'z', 'yawRadians']) && id(p.id) && !spawnSeen.has(p.id) && id(p.spaceId) && number(p.yawRadians, -Math.PI, Math.PI), 'INVALID_GROUND_SPAWN');
|
|
73
|
+
spawnSeen.add(p.id); return { ...p, y: at(p.spaceId, { x: p.x, z: p.z }) };
|
|
74
|
+
}));
|
|
75
|
+
for (let i = 0; i < spawnPoints.length; i++) for (let j = i + 1; j < spawnPoints.length; j++)
|
|
76
|
+
check(spawnPoints[i].spaceId !== spawnPoints[j].spaceId || Math.hypot(spawnPoints[i].x - spawnPoints[j].x, spawnPoints[i].z - spawnPoints[j].z) >= 0.9, 'INVALID_GROUND_SPAWN');
|
|
77
|
+
check(Array.isArray(value.portals) && value.portals.length <= GROUND_SPACE_LIMITS.portals);
|
|
78
|
+
const portalSeen = new Set(), targetSeen = new Set();
|
|
79
|
+
const portals = sorted(value.portals.map(p => {
|
|
80
|
+
check(exact(p, ['id', 'targetEntityId', 'fromSpaceId', 'toSpaceId', 'entry', 'destination']) && id(p.id) && id(p.targetEntityId)
|
|
81
|
+
&& !portalSeen.has(p.id) && !targetSeen.has(p.targetEntityId) && byId.has(p.fromSpaceId) && byId.has(p.toSpaceId)
|
|
82
|
+
&& p.fromSpaceId !== p.toSpaceId && bounds(p.entry) && exact(p.destination, ['x', 'z', 'yawRadians'])
|
|
83
|
+
&& number(p.destination.yawRadians, -Math.PI, Math.PI), 'INVALID_GROUND_PORTAL');
|
|
84
|
+
const origin = byId.get(p.fromSpaceId);
|
|
85
|
+
check(p.entry.minX >= origin.bounds.minX && p.entry.maxX <= origin.bounds.maxX && p.entry.minZ >= origin.bounds.minZ && p.entry.maxZ <= origin.bounds.maxZ, 'INVALID_GROUND_PORTAL');
|
|
86
|
+
check(origin.regions.some(r => p.entry.minX >= r.bounds.minX && p.entry.maxX <= r.bounds.maxX && p.entry.minZ >= r.bounds.minZ && p.entry.maxZ <= r.bounds.maxZ), 'INVALID_GROUND_PORTAL');
|
|
87
|
+
portalSeen.add(p.id); targetSeen.add(p.targetEntityId);
|
|
88
|
+
return { ...p, entry: { ...p.entry }, destination: { ...p.destination, y: at(p.toSpaceId, { x: p.destination.x, z: p.destination.z }) } };
|
|
89
|
+
}));
|
|
90
|
+
return freeze({ schemaVersion: '2.0.0', contentId: value.contentId, contentVersion: value.contentVersion, mode: value.mode,
|
|
91
|
+
coordinateSystem: { units: 'meters', handedness: 'right', upAxis: 'y', forwardAxis: '+z', origin: { x: 0, y: 0, z: 0 } },
|
|
92
|
+
spaces, spawnPoints, portals, movement,
|
|
93
|
+
maxPlayers: value.requestedMaxPlayers, playerRadiusMeters: 0.45, requiredCapabilities,
|
|
94
|
+
requiredRuntimeFeatures: ['locomotion.ground.spaces@1'] });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function validateEffectiveGroundSpaces(value, resourceBytes) {
|
|
98
|
+
if (value?.schemaVersion === '2.2.0') return validateGroundEndpointPlan(value, resourceBytes);
|
|
99
|
+
if (value?.schemaVersion === '2.1.0') return validateGroundSpatialPlan(value, resourceBytes);
|
|
100
|
+
check(exact(value, ['schemaVersion', 'contentId', 'contentVersion', 'mode', 'coordinateSystem', 'spaces', 'spawnPoints',
|
|
101
|
+
'portals', 'movement', 'maxPlayers', 'playerRadiusMeters', 'requiredCapabilities', 'requiredRuntimeFeatures']), 'INVALID_GROUND_EFFECTIVE');
|
|
102
|
+
check(Array.isArray(value.spawnPoints) && Array.isArray(value.portals), 'INVALID_GROUND_EFFECTIVE');
|
|
103
|
+
const wanted = prepareGroundSpaces({ schemaVersion: value.schemaVersion, contentId: value.contentId, contentVersion: value.contentVersion,
|
|
104
|
+
mode: value.mode, spaces: value.spaces, spawnPoints: value.spawnPoints.map(({ y, ...p }) => p),
|
|
105
|
+
portals: value.portals.map(p => ({ ...p, destination: Object.fromEntries(Object.entries(p.destination ?? {}).filter(([k]) => k !== 'y')) })),
|
|
106
|
+
movement: value.movement, requestedMaxPlayers: value.maxPlayers });
|
|
107
|
+
check(canonical(wanted) === canonical(value), 'INVALID_GROUND_EFFECTIVE'); return wanted;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function assertGroundPortalTargets(ground, scenePlan, resourceBytes) {
|
|
111
|
+
const g = validateEffectiveGroundSpaces(ground, resourceBytes);
|
|
112
|
+
check(['2.0.0', '2.1.0'].includes(scenePlan?.schemaVersion) && scenePlan.contentId === g.contentId
|
|
113
|
+
&& scenePlan.contentVersion === g.contentVersion && Array.isArray(scenePlan.targets), 'GROUND_PORTAL_TARGET_MISMATCH');
|
|
114
|
+
// This synchronous check receives one freshly read resource set. Keep its
|
|
115
|
+
// decoded samplers local; every call still validates its own effective plan.
|
|
116
|
+
let surfaceSamplers;
|
|
117
|
+
for (const p of g.portals) {
|
|
118
|
+
const t = scenePlan.targets.find(t => t.entityId === p.targetEntityId);
|
|
119
|
+
check(t?.authorization?.type === 'actor-distance'
|
|
120
|
+
&& (scenePlan.schemaVersion !== '2.1.0' || t.authorization.metric === 'xyz' && t.authorization.boundary === 'closed' && t.authorization.radiusMeters <= 4)
|
|
121
|
+
&& t.spaceId === p.fromSpaceId
|
|
122
|
+
&& t.authorization.spaceId === p.fromSpaceId && t.position && inside(t.position, p.entry), 'GROUND_PORTAL_TARGET_MISMATCH');
|
|
123
|
+
const s = g.spaces.find(s => s.id === p.fromSpaceId);
|
|
124
|
+
if (['2.1.0', '2.2.0'].includes(g.schemaVersion)) {
|
|
125
|
+
surfaceSamplers ??= createGroundSurfaceSamplers(g, resourceBytes);
|
|
126
|
+
const height = surfaceSamplers.get(s.id)(t.position);
|
|
127
|
+
// A distance target may be on a wall outside the actor-center region.
|
|
128
|
+
// Actor occupancy, target distance and the transition reservation are
|
|
129
|
+
// checked by the Room; the static target is not an actor spawn position.
|
|
130
|
+
check(number(t.position.y) && Math.abs(t.position.y - height) <= 4, 'GROUND_PORTAL_TARGET_MISMATCH');
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const r = s.regions.find(r => inside(t.position, r.bounds));
|
|
134
|
+
check(r && number(t.position.y) && Math.abs(t.position.y - r.groundHeightMeters) <= 4, 'GROUND_PORTAL_TARGET_MISMATCH');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return true;
|
|
138
|
+
}
|