@chrona-city/ugc-kit 0.0.0-stage → 1.5.9
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 +110 -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 +136 -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 +167 -0
- package/contracts/ugc/public-runtime/v1/runtime-lock.schema.json +85 -0
- package/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +751 -0
- package/contracts/ugc/public-runtime/v1/runtime.test.mjs +155 -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 +171 -0
- package/docs/meshy.md +75 -0
- package/docs/npm-creator.md +908 -0
- package/docs/runtime-download.md +178 -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 +545 -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 +138 -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 +89 -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-document-tool-package-contract/contracts/ugc/creator-source/v1/tool-package.schema.json +11 -0
- package/lib/host-ipc/host-ipc.schema.json +1186 -0
- package/lib/host-ipc/runtime-contract.mjs +70 -0
- package/lib/host-ipc/source-lock.json +22 -0
- package/lib/local-builder.mjs +73 -0
- package/lib/local-content.mjs +37 -0
- package/lib/local-development.mjs +176 -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 +127 -0
- package/lib/runtime-host.mjs +117 -0
- package/lib/runtime-install.mjs +225 -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/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/@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 +54 -0
- package/runtime-catalog.json +38 -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,333 @@
|
|
|
1
|
+
import { validatePersonalStateMarker, validatePersonalStateDeclaration } from '../../../personal-state/v1/declaration.mjs';
|
|
2
|
+
import { preparePersonalStateNodePlan } from '../../../personal-state/v1/node-plan.mjs';
|
|
3
|
+
// This module intentionally uses only Web-standard JavaScript so the same
|
|
4
|
+
// fixed vectors can run in Node.js and browsers.
|
|
5
|
+
import { validateResourceBindings, requiredResourceBindingCapabilities } from '../../../resource-bindings/v1/bindings.mjs';
|
|
6
|
+
import { prepareGroundRules } from '../../../ground-rules/v1/ground-rules.mjs';
|
|
7
|
+
import { prepareGroundSpaces } from '../../../ground-rules/v2/ground-rules.mjs';
|
|
8
|
+
import { normalizeGroundSpatialSource, groundSpatialCapabilities } from '../../../ground-rules/v2/spatial-source.mjs';
|
|
9
|
+
import { normalizeGroundEndpointSource } from '../../../ground-rules/v2.2/spatial-source.mjs';
|
|
10
|
+
import { normalizeDocumentSource, DOCUMENT_SOURCE_PATH } from '../../../document-presentation/v1/document.mjs';
|
|
11
|
+
import { prepareSceneInteractionModel } from '../../../scene-interaction/v1/scene-model.mjs';
|
|
12
|
+
import { prepareSceneInteractionModelV2 } from '../../../scene-interaction/v2/scene-model.mjs';
|
|
13
|
+
import { preparePrivateEventModel } from '../../../private-events/v1/declaration.mjs';
|
|
14
|
+
import { normalizeSceneDeclaration, WORLD_SCENE_PATH, WORLD_SCENE_REQUIRED_CAPABILITIES } from '../../../world-scene/v2/scene-declaration.mjs';
|
|
15
|
+
import { normalizeScenePresentation, SCENE_PRESENTATION_PATH, SCENE_PRESENTATION_CAPABILITY } from '../../../scene-presentation/v1/scene.mjs';
|
|
16
|
+
import { selectCoverResource } from './cover.mjs';
|
|
17
|
+
const CONTRACT_VERSION = '1.0.0';
|
|
18
|
+
const REQUIRED = ['schemaVersion', 'contentId', 'contentVersion', 'executionTier', 'compatibility', 'entrypoints', 'ecs', 'resources', 'requestedCapabilities', 'requestedBudgets', 'networkIntents', 'provenance', 'tests'];
|
|
19
|
+
const TOP_LEVEL = new Set([...REQUIRED, 'contentHash', 'resourceBindings', 'groundRules', 'sceneInteractions', 'privateEvents', 'worldScene', 'scenePresentation', 'documentPresentation', 'personalState', 'cover']);
|
|
20
|
+
const BUILD_FIELDS = new Set(['contentHash', 'capabilitiesLock', 'effectiveBudgets', 'networkProfile', 'replicationLock']);
|
|
21
|
+
const CORE_COMPONENTS = new Set(['core:Transform', 'core:Velocity', 'core:Player', 'core:Health', 'core:CombatState', 'core:AnimationState', 'core:NetworkSync']);
|
|
22
|
+
const FORBIDDEN_KEYS = new Set([
|
|
23
|
+
'flatbuffers', 'encoding', 'tick', 'tickRate', 'aoiRadius',
|
|
24
|
+
'prediction', 'predictionAlgorithm', 'predictionPolicy', 'predictionProfile',
|
|
25
|
+
'replication', 'replicationProfile', 'authority', 'authorityLevel',
|
|
26
|
+
'persistence', 'persistenceScope', 'reliability', 'networkFrequency'
|
|
27
|
+
]);
|
|
28
|
+
const SEMVER = /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/;
|
|
29
|
+
const COMPONENT_ID = /^(core|ugc\.[a-z0-9.-]+):[A-Z][A-Za-z0-9]{1,63}$/;
|
|
30
|
+
const CAPABILITY_ID = /^[a-z][a-z0-9.-]{2,127}$/;
|
|
31
|
+
const PACKAGE_PATH = /^(?!\/)(?!.*(?:^|\/)\.\.(?:\/|$))(?!.*\\)[a-zA-Z0-9._/-]+$/;
|
|
32
|
+
|
|
33
|
+
function issue(code, at, message, repairHint) {
|
|
34
|
+
return { code, path: at, message, repairHint: repairHint ?? message };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function failed(code, at, message, repairHint, warnings = []) {
|
|
38
|
+
return {
|
|
39
|
+
schemaVersion: CONTRACT_VERSION,
|
|
40
|
+
status: 'failed',
|
|
41
|
+
contractVersion: CONTRACT_VERSION,
|
|
42
|
+
valid: false,
|
|
43
|
+
errors: [issue(code, at, message, repairHint)],
|
|
44
|
+
warnings,
|
|
45
|
+
sensitiveValuesRedacted: true
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function passed(warnings = []) {
|
|
50
|
+
return {
|
|
51
|
+
schemaVersion: CONTRACT_VERSION,
|
|
52
|
+
status: 'passed',
|
|
53
|
+
contractVersion: CONTRACT_VERSION,
|
|
54
|
+
valid: true,
|
|
55
|
+
errors: [],
|
|
56
|
+
warnings,
|
|
57
|
+
sensitiveValuesRedacted: true
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function isObject(value) {
|
|
62
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function isPackagePath(value, extension = '') {
|
|
66
|
+
return typeof value === 'string' && value.length <= 240 && value.length > 0 &&
|
|
67
|
+
PACKAGE_PATH.test(value) && !value.includes('//') &&
|
|
68
|
+
(!extension || value.endsWith(extension));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function findForbidden(value, at = '$') {
|
|
72
|
+
if (!value || typeof value !== 'object') return null;
|
|
73
|
+
for (const [key, child] of Object.entries(value)) {
|
|
74
|
+
if (FORBIDDEN_KEYS.has(key)) return { key, at: `${at}.${key}` };
|
|
75
|
+
const nested = findForbidden(child, `${at}.${key}`);
|
|
76
|
+
if (nested) return nested;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function firstDuplicate(values) {
|
|
82
|
+
const seen = new Set();
|
|
83
|
+
for (const value of values) {
|
|
84
|
+
if (seen.has(value)) return value;
|
|
85
|
+
seen.add(value);
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function validateBudgets(budget) {
|
|
91
|
+
if (!isObject(budget)) return false;
|
|
92
|
+
return Number.isInteger(budget.maxEntities) && budget.maxEntities >= 1 && budget.maxEntities <= 512 &&
|
|
93
|
+
Number.isInteger(budget.maxAssetBytes) && budget.maxAssetBytes >= 0 && budget.maxAssetBytes <= 134217728 &&
|
|
94
|
+
typeof budget.maxServerTimeMsPerTick === 'number' && budget.maxServerTimeMsPerTick > 0 && budget.maxServerTimeMsPerTick <= 2 &&
|
|
95
|
+
Number.isInteger(budget.maxStateBytesPerSecond) && budget.maxStateBytesPerSecond >= 0 && budget.maxStateBytesPerSecond <= 65536 &&
|
|
96
|
+
Number.isInteger(budget.maxCapabilityCallsPerTick) && budget.maxCapabilityCallsPerTick >= 0 && budget.maxCapabilityCallsPerTick <= 256;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function validateManifest(manifest) {
|
|
100
|
+
if (!isObject(manifest)) return failed('INVALID_MANIFEST', '$', 'Manifest must be an object.');
|
|
101
|
+
for (const key of REQUIRED) {
|
|
102
|
+
if (!(key in manifest)) return failed('MISSING_REQUIRED_FIELD', `$.${key}`, `Missing required field ${key}.`, `Add ${key} according to manifest.schema.json.`);
|
|
103
|
+
}
|
|
104
|
+
for (const key of Object.keys(manifest)) {
|
|
105
|
+
if (BUILD_FIELDS.has(key)) return failed('BUILD_FIELD_IN_SOURCE', `$.${key}`, `${key} is generated by the reviewed builder.`, `Remove ${key} from the source manifest.`);
|
|
106
|
+
if (!TOP_LEVEL.has(key)) return failed('UNKNOWN_FIELD', `$.${key}`, `Unknown manifest field ${key}.`, 'Remove the field or upgrade the locked contract.');
|
|
107
|
+
}
|
|
108
|
+
const forbidden = findForbidden(manifest);
|
|
109
|
+
if (forbidden) return failed('FORBIDDEN_PLATFORM_PARAMETER', forbidden.at, `Content cannot control ${forbidden.key}.`, 'Describe gameplay intent instead of a network or authority mechanism.');
|
|
110
|
+
if (manifest.schemaVersion !== CONTRACT_VERSION || manifest.compatibility?.schemaMajor !== 1) return failed('SCHEMA_VERSION_INCOMPATIBLE', '$.schemaVersion', 'Schema major is not supported.', 'Use the project contract lock or request a platform-managed upgrade.');
|
|
111
|
+
if (!SEMVER.test(manifest.compatibility?.minimumRuntimeVersion ?? '')) return failed('INVALID_RUNTIME_VERSION', '$.compatibility.minimumRuntimeVersion', 'Minimum runtime version must be SemVer.');
|
|
112
|
+
if (!/^ugc\.[a-z0-9][a-z0-9.-]{2,126}$/.test(manifest.contentId)) return failed('INVALID_CONTENT_ID', '$.contentId', 'contentId must use the ugc namespace.');
|
|
113
|
+
if (!SEMVER.test(manifest.contentVersion)) return failed('INVALID_CONTENT_VERSION', '$.contentVersion', 'contentVersion must be SemVer.');
|
|
114
|
+
|
|
115
|
+
if (!['cosmetic', 'declarative', 'reviewed-gameplay', 'public-untrusted'].includes(manifest.executionTier)) return failed('INVALID_EXECUTION_TIER', '$.executionTier', 'executionTier is invalid.');
|
|
116
|
+
if (!isObject(manifest.entrypoints)) return failed('INVALID_ENTRYPOINTS', '$.entrypoints', 'Entrypoints must be an object.');
|
|
117
|
+
if (manifest.entrypoints.server !== undefined) return failed('SERVER_ENTRYPOINT_FORBIDDEN', '$.entrypoints.server', 'Creator packages cannot include a server entrypoint.', 'Move deterministic rules to shared and request missing authority through a Capability.');
|
|
118
|
+
if (Object.keys(manifest.entrypoints).some(side => !['shared', 'client'].includes(side))) return failed('INVALID_ENTRYPOINTS', '$.entrypoints', 'Entrypoints may contain only shared and client.');
|
|
119
|
+
if (['reviewed-gameplay', 'public-untrusted'].includes(manifest.executionTier) && manifest.entrypoints.shared === undefined) return failed('SHARED_ENTRYPOINT_REQUIRED', '$.entrypoints.shared', 'Gameplay execution requires a shared rules entrypoint.', 'Add a deterministic shared rules module.');
|
|
120
|
+
|
|
121
|
+
for (const side of ['shared', 'client']) {
|
|
122
|
+
if (manifest.entrypoints[side] !== undefined && !isPackagePath(manifest.entrypoints[side], '.js')) return failed('INVALID_PACKAGE_PATH', `$.entrypoints.${side}`, 'Entrypoint must be a relative package JavaScript path.');
|
|
123
|
+
}
|
|
124
|
+
for (const document of ['components', 'prefabs', 'scene']) {
|
|
125
|
+
if (!isPackagePath(manifest.ecs?.[document], '.json')) return failed('INVALID_PACKAGE_PATH', `$.ecs.${document}`, 'ECS document must be a relative package JSON path.');
|
|
126
|
+
}
|
|
127
|
+
if (!isPackagePath(manifest.provenance, '.json')) return failed('INVALID_PACKAGE_PATH', '$.provenance', 'Provenance must be a relative package JSON path.');
|
|
128
|
+
if (Object.hasOwn(manifest, 'resourceBindings') && manifest.resourceBindings !== 'bindings/resources.json') return failed('INVALID_PACKAGE_PATH', '$.resourceBindings', 'Resource bindings must use bindings/resources.json inside content/.');
|
|
129
|
+
if (Object.hasOwn(manifest, 'groundRules') && manifest.groundRules !== 'rules/ground.json') return failed('INVALID_PACKAGE_PATH', '$.groundRules', 'Ground rules must use rules/ground.json inside content/.');
|
|
130
|
+
if (Object.hasOwn(manifest, 'worldScene') && manifest.worldScene !== WORLD_SCENE_PATH) return failed('INVALID_PACKAGE_PATH', '$.worldScene', 'World scene must use scene/world.json inside content/.');
|
|
131
|
+
if (Object.hasOwn(manifest, 'scenePresentation') && manifest.scenePresentation !== SCENE_PRESENTATION_PATH) return failed('INVALID_PACKAGE_PATH', '$.scenePresentation', 'Scene presentation must use presentation/scene.json inside content/.');
|
|
132
|
+
if (Object.hasOwn(manifest, 'documentPresentation') && (manifest.documentPresentation !== DOCUMENT_SOURCE_PATH || manifest.executionTier !== 'public-untrusted'))
|
|
133
|
+
return failed('INVALID_PACKAGE_PATH', '$.documentPresentation', 'Document presentation requires the explicit public-untrusted source marker.');
|
|
134
|
+
if (Object.hasOwn(manifest, 'personalState')) {
|
|
135
|
+
try { validatePersonalStateMarker(manifest.personalState); if (manifest.documentPresentation === undefined || manifest.executionTier !== 'public-untrusted') throw new Error(); }
|
|
136
|
+
catch { return failed('INVALID_MANIFEST', '$.personalState', 'Personal state requires an explicit Document source and the fixed rules/personal-state.json marker.'); }
|
|
137
|
+
}
|
|
138
|
+
if (manifest.worldScene !== undefined && manifest.groundRules !== undefined) return failed('INVALID_MANIFEST', '$.worldScene', 'A world scene cannot also declare groundRules.', 'Use one explicit movement declaration; missing ground rules never grants flight.');
|
|
139
|
+
if (Object.hasOwn(manifest, 'sceneInteractions') && manifest.sceneInteractions !== 'rules/interactions.json') return failed('INVALID_PACKAGE_PATH', '$.sceneInteractions', 'Scene interactions must use rules/interactions.json inside content/.');
|
|
140
|
+
if (Object.hasOwn(manifest, 'privateEvents') && manifest.privateEvents !== 'ecs/events.json') return failed('INVALID_PACKAGE_PATH', '$.privateEvents', 'Private events must use ecs/events.json inside content/.');
|
|
141
|
+
for (const test of ['rules', 'scenarios', 'budgets']) {
|
|
142
|
+
if (!isPackagePath(manifest.tests?.[test], '.json')) return failed('INVALID_PACKAGE_PATH', `$.tests.${test}`, 'Test entry must be a relative package JSON path.');
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (!Array.isArray(manifest.resources) || manifest.resources.length > 256) return failed('INVALID_FIELD_TYPE', '$.resources', 'resources must be an array with at most 256 entries.');
|
|
146
|
+
const resourceIds = [];
|
|
147
|
+
let assetBytes = 0;
|
|
148
|
+
for (const [index, resource] of manifest.resources.entries()) {
|
|
149
|
+
if (!isObject(resource) || !isPackagePath(resource.path)) return failed('INVALID_PACKAGE_PATH', `$.resources[${index}].path`, 'Resource path must stay inside the package.');
|
|
150
|
+
if (!/^[a-z][a-z0-9.-]{1,63}$/.test(resource.id ?? '')) return failed('INVALID_RESOURCE', `$.resources[${index}].id`, 'Resource id is invalid.');
|
|
151
|
+
if (!/^[a-f0-9]{64}$/.test(resource.sha256 ?? '') || !Number.isInteger(resource.bytes) || resource.bytes < 0 || resource.bytes > 67108864) return failed('INVALID_RESOURCE', `$.resources[${index}]`, 'Resource hash or byte size is invalid.');
|
|
152
|
+
resourceIds.push(resource.id);
|
|
153
|
+
assetBytes += resource.bytes;
|
|
154
|
+
}
|
|
155
|
+
const duplicateResource = firstDuplicate(resourceIds);
|
|
156
|
+
if (duplicateResource) return failed('DUPLICATE_RESOURCE', '$.resources', `Duplicate resource id ${duplicateResource}.`);
|
|
157
|
+
try { selectCoverResource(manifest); }
|
|
158
|
+
catch { return failed('INVALID_RESOURCE', '$.cover', 'Cover must reference one declared PNG texture inside assets/runtime/.', 'Use cover.resourceId, exact resource bytes/hash and the web.texture@1 PNG profile within the existing asset budget.'); }
|
|
159
|
+
|
|
160
|
+
if (!Array.isArray(manifest.requestedCapabilities) || manifest.requestedCapabilities.length > 64) return failed('INVALID_FIELD_TYPE', '$.requestedCapabilities', 'requestedCapabilities must be an array with at most 64 entries.');
|
|
161
|
+
const capabilityIds = [];
|
|
162
|
+
for (const [index, capability] of manifest.requestedCapabilities.entries()) {
|
|
163
|
+
if (!isObject(capability) || !CAPABILITY_ID.test(capability.id ?? '') || !/^\^[1-9][0-9]*\.\d+\.\d+$/.test(capability.version ?? '') || typeof capability.required !== 'boolean') return failed('INVALID_CAPABILITY_REQUEST', `$.requestedCapabilities[${index}]`, 'Capability request is invalid.');
|
|
164
|
+
if (Object.keys(capability).some(key => !['id', 'version', 'required', 'fallback'].includes(key))) return failed('INVALID_CAPABILITY_REQUEST', `$.requestedCapabilities[${index}]`, 'Capability request contains an unknown field.');
|
|
165
|
+
if (!capability.required && !isObject(capability.fallback)) return failed('OPTIONAL_CAPABILITY_FALLBACK_REQUIRED', `$.requestedCapabilities[${index}].fallback`, 'Optional capability must declare an explicit fallback.');
|
|
166
|
+
if (capability.required && capability.fallback !== undefined) return failed('INVALID_CAPABILITY_REQUEST', `$.requestedCapabilities[${index}].fallback`, 'Required capability cannot declare a fallback.');
|
|
167
|
+
if (capability.fallback && (
|
|
168
|
+
Object.keys(capability.fallback).some(key => !['mode', 'description'].includes(key)) ||
|
|
169
|
+
!['disable-feature', 'cosmetic-only'].includes(capability.fallback.mode) ||
|
|
170
|
+
typeof capability.fallback.description !== 'string' ||
|
|
171
|
+
capability.fallback.description.length < 1 ||
|
|
172
|
+
capability.fallback.description.length > 280
|
|
173
|
+
)) return failed('INVALID_CAPABILITY_REQUEST', `$.requestedCapabilities[${index}].fallback`, 'Capability fallback is invalid.', 'Use disable-feature or cosmetic-only with a short description.');
|
|
174
|
+
capabilityIds.push(capability.id);
|
|
175
|
+
}
|
|
176
|
+
const duplicateCapability = firstDuplicate(capabilityIds);
|
|
177
|
+
if (duplicateCapability) return failed('DUPLICATE_CAPABILITY_REQUEST', '$.requestedCapabilities', `Duplicate capability request ${duplicateCapability}.`);
|
|
178
|
+
|
|
179
|
+
if (!validateBudgets(manifest.requestedBudgets)) return failed('BUDGET_OUT_OF_RANGE', '$.requestedBudgets', 'Requested budget exceeds UGC v1 bounds.');
|
|
180
|
+
if (assetBytes > manifest.requestedBudgets.maxAssetBytes) return failed('ASSET_BUDGET_EXCEEDED', '$.resources', 'Declared resources exceed maxAssetBytes.');
|
|
181
|
+
if (!Array.isArray(manifest.networkIntents) || manifest.networkIntents.length > 128) return failed('INVALID_FIELD_TYPE', '$.networkIntents', 'networkIntents must be an array with at most 128 entries.');
|
|
182
|
+
for (const [index, intent] of manifest.networkIntents.entries()) {
|
|
183
|
+
if (!isObject(intent) || !COMPONENT_ID.test(intent.component ?? '') || !Number.isInteger(intent.maximumStalenessMs) || intent.maximumStalenessMs < 0 || intent.maximumStalenessMs > 5000) return failed('INVALID_NETWORK_INTENT', `$.networkIntents[${index}]`, 'Network intent is invalid.');
|
|
184
|
+
}
|
|
185
|
+
return passed();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function validateCandidateSubmission(candidate) {
|
|
189
|
+
const required = ['schemaVersion', 'projectId', 'repository', 'commitSha', 'manifestPath', 'contractVersion'];
|
|
190
|
+
if (!isObject(candidate)) return failed('INVALID_CANDIDATE_SUBMISSION', '$', 'Candidate submission must be an object.');
|
|
191
|
+
for (const key of required) if (!(key in candidate)) return failed('MISSING_REQUIRED_FIELD', `$.${key}`, `Missing required field ${key}.`);
|
|
192
|
+
if (Object.keys(candidate).some(key => !required.includes(key))) return failed('UNKNOWN_FIELD', '$', 'Candidate submission contains an unknown field.');
|
|
193
|
+
if (candidate.schemaVersion !== CONTRACT_VERSION || candidate.contractVersion !== CONTRACT_VERSION) return failed('SCHEMA_VERSION_INCOMPATIBLE', '$.contractVersion', 'Candidate contract version is not supported.');
|
|
194
|
+
if (!/^ugcprj_[a-z0-9]{12,32}$/.test(candidate.projectId)) return failed('INVALID_CANDIDATE_SUBMISSION', '$.projectId', 'Project id is invalid.');
|
|
195
|
+
if (!/^https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+(?:\.git)?$/.test(candidate.repository) && candidate.repository !== `urn:chrona:local-git:${candidate.projectId}` && /^urn:chrona:platform:[a-f0-9]{32}:(ugcprj_[a-z0-9]{12,32})$/.exec(candidate.repository ?? '')?.[1] !== candidate.projectId) return failed('INVALID_CANDIDATE_SUBMISSION', '$.repository', 'Repository must be a credential-free GitHub HTTPS URL or a matching local/platform project URN; a URN grants no build authority.');
|
|
196
|
+
if (!/^[a-f0-9]{40}$/.test(candidate.commitSha)) return failed('INVALID_CANDIDATE_SUBMISSION', '$.commitSha', 'Candidate must bind a full immutable commit SHA.', 'Replace the branch or abbreviated SHA with the full 40-character commit SHA.');
|
|
197
|
+
if (candidate.manifestPath !== 'content/manifest.json') return failed('INVALID_CANDIDATE_SUBMISSION', '$.manifestPath', 'Candidate manifest path is fixed.');
|
|
198
|
+
return passed();
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function validatePackageModel({ manifest, components, prefabs, scene, resourceBindings, groundRules, sceneInteractions, privateEvents, worldScene, scenePresentation, documentPresentation, personalState }) {
|
|
202
|
+
const manifestResult = validateManifest(manifest);
|
|
203
|
+
if (!manifestResult.valid) return manifestResult;
|
|
204
|
+
if (manifest.documentPresentation !== undefined) {
|
|
205
|
+
if (documentPresentation === undefined) return failed('MISSING_REQUIRED_FIELD', manifest.documentPresentation, 'The declared Document source is required.');
|
|
206
|
+
try {
|
|
207
|
+
const d = normalizeDocumentSource(documentPresentation, manifest);
|
|
208
|
+
if (d.resources.reduce((n, r) => n + r.bytes, 0) > manifest.requestedBudgets.maxAssetBytes)
|
|
209
|
+
return failed('ASSET_BUDGET_EXCEEDED', manifest.documentPresentation, 'Document inventory exceeds the author requested asset budget.');
|
|
210
|
+
} catch { return failed('INVALID_MANIFEST', manifest.documentPresentation, 'Document identity, Profile or inventory is invalid.'); }
|
|
211
|
+
} else if (documentPresentation !== undefined) return failed('INVALID_MANIFEST', '$.documentPresentation', 'Document source requires its explicit marker.');
|
|
212
|
+
if (manifest.scenePresentation !== undefined) {
|
|
213
|
+
if (scenePresentation === undefined) return failed('MISSING_REQUIRED_FIELD', manifest.scenePresentation, 'The declared scene presentation document is required.');
|
|
214
|
+
try { normalizeScenePresentation(scenePresentation, { contentId: manifest.contentId, contentVersion: manifest.contentVersion }); }
|
|
215
|
+
catch { return failed('INVALID_MANIFEST', manifest.scenePresentation, 'Scene presentation identity, materials or palettes are invalid.'); }
|
|
216
|
+
if (!manifest.requestedCapabilities.some(c => c.id === SCENE_PRESENTATION_CAPABILITY && c.required === true && c.version === '^1.0.0'))
|
|
217
|
+
return failed('INVALID_CAPABILITY_REQUEST', '$.requestedCapabilities', 'Scene presentation requires presentation.scene.stylized@^1.0.0; an unpublished capability remains needs_capability.');
|
|
218
|
+
} else if (scenePresentation !== undefined || manifest.requestedCapabilities.some(c => c.id === SCENE_PRESENTATION_CAPABILITY))
|
|
219
|
+
return failed('INVALID_MANIFEST', '$.scenePresentation', 'Scene presentation data and requests require an explicit manifest marker.');
|
|
220
|
+
if (manifest.worldScene !== undefined) {
|
|
221
|
+
if (worldScene === undefined) return failed('MISSING_REQUIRED_FIELD', manifest.worldScene, 'The declared world scene document is required.');
|
|
222
|
+
try { normalizeSceneDeclaration(worldScene, { contentId: manifest.contentId, contentVersion: manifest.contentVersion }); }
|
|
223
|
+
catch { return failed('INVALID_MANIFEST', manifest.worldScene, 'World scene identity, references or playable requests are invalid.', 'Repair scene/world.json against world-scene/v2; do not supply effective policy.'); }
|
|
224
|
+
for (const required of WORLD_SCENE_REQUIRED_CAPABILITIES) {
|
|
225
|
+
const request = manifest.requestedCapabilities.find(value => value.id === required.id);
|
|
226
|
+
if (!request || request.required !== true || request.version !== `^${required.version}`) return failed('INVALID_CAPABILITY_REQUEST', '$.requestedCapabilities', 'World scenes require explicit required scene.streaming and locomotion.flight capabilities at ^1.0.0.', 'Keep both requirements; an unpublished capability must remain needs_capability until engineering release.');
|
|
227
|
+
}
|
|
228
|
+
} else if (worldScene !== undefined) return failed('INVALID_MANIFEST', '$.worldScene', 'An undeclared world scene document cannot activate a scene.');
|
|
229
|
+
if (manifest.groundRules !== undefined) {
|
|
230
|
+
if (groundRules === undefined) return failed('MISSING_REQUIRED_FIELD', manifest.groundRules, 'The declared ground document is required.');
|
|
231
|
+
let ground;
|
|
232
|
+
try {
|
|
233
|
+
if (['2.1.0', '2.2.0'].includes(groundRules?.schemaVersion)) {
|
|
234
|
+
const source = groundRules.schemaVersion === '2.2.0' ? normalizeGroundEndpointSource(groundRules) : normalizeGroundSpatialSource(groundRules);
|
|
235
|
+
ground = { ...source, requiredCapabilities: groundSpatialCapabilities(source) };
|
|
236
|
+
} else ground = groundRules?.schemaVersion === '2.0.0' ? prepareGroundSpaces(groundRules) : prepareGroundRules(groundRules);
|
|
237
|
+
}
|
|
238
|
+
catch { return failed('INVALID_MANIFEST', manifest.groundRules, 'Ground declaration violates its schema, geometry or platform limits.', 'Repair rules/ground.json against its declared Ground version (1.0/2.0/2.1/2.2); do not raise platform limits.'); }
|
|
239
|
+
if (ground.contentId !== manifest.contentId || ground.contentVersion !== manifest.contentVersion) return failed('INVALID_MANIFEST', manifest.groundRules, 'Ground declaration must match the manifest content identity.');
|
|
240
|
+
for (const required of ground.requiredCapabilities) {
|
|
241
|
+
const request = manifest.requestedCapabilities.find(value => value.id === required.id);
|
|
242
|
+
if (!request || request.required !== true || request.version !== `^${required.version}`) return failed('INVALID_CAPABILITY_REQUEST', '$.requestedCapabilities', 'Ground rules require explicit required capabilities at the declared version range.', 'Keep locomotion.ground@^1.0.0 required; non-null run speed also requires locomotion.run@^1.0.0. The platform separately locks and verifies the supported exact version.');
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
if (manifest.resourceBindings !== undefined) {
|
|
246
|
+
if (resourceBindings === undefined) return failed('MISSING_REQUIRED_FIELD', manifest.resourceBindings, 'The declared resource binding document is required.');
|
|
247
|
+
let bindings;
|
|
248
|
+
try { bindings = validateResourceBindings(resourceBindings); }
|
|
249
|
+
catch { return failed('INVALID_RESOURCE', manifest.resourceBindings, 'Resource bindings have invalid fields or references.', 'Repair bindings/resources.json against resource-bindings/v1/bindings.schema.json.'); }
|
|
250
|
+
if (bindings.contentId !== manifest.contentId || bindings.contentVersion !== manifest.contentVersion) return failed('INVALID_RESOURCE', manifest.resourceBindings, 'Resource bindings must match the manifest content identity.');
|
|
251
|
+
if (bindings.worldScene !== manifest.worldScene) return failed('INVALID_RESOURCE', manifest.resourceBindings, 'Resource bindings must explicitly match the manifest worldScene; empty bootstrap scenes require a streamed world declaration.');
|
|
252
|
+
const resources = new Map(manifest.resources.map(resource => [resource.id, resource]));
|
|
253
|
+
const referenced = [...bindings.sceneResources, ...bindings.avatars.map(avatar => avatar.resourceId)];
|
|
254
|
+
if (referenced.some(id => !resources.has(id) || !['gltf', 'glb'].includes(resources.get(id).kind))) return failed('INVALID_RESOURCE', manifest.resourceBindings, 'Bindings must reference declared glTF/GLB models.');
|
|
255
|
+
for (const required of requiredResourceBindingCapabilities(bindings)) {
|
|
256
|
+
const request = manifest.requestedCapabilities.find(value => value.id === required.id);
|
|
257
|
+
if (!request || request.required !== true || request.version !== `^${required.version}`) return failed('INVALID_CAPABILITY_REQUEST', '$.requestedCapabilities', 'Authored avatars require presentation.avatar.authored@^1.0.0 as a required Capability.');
|
|
258
|
+
}
|
|
259
|
+
// Animation existence is checked from real bytes during build, not from manifest metrics.
|
|
260
|
+
}
|
|
261
|
+
if (!isObject(components) || components.schemaVersion !== CONTRACT_VERSION || !Array.isArray(components.components)) return failed('INVALID_COMPONENT_DOCUMENT', manifest.ecs.components, 'Component document is invalid.');
|
|
262
|
+
if (!isObject(prefabs) || prefabs.schemaVersion !== CONTRACT_VERSION || !Array.isArray(prefabs.prefabs)) return failed('INVALID_PREFAB_DOCUMENT', manifest.ecs.prefabs, 'Prefab document is invalid.');
|
|
263
|
+
if (!isObject(scene) || scene.schemaVersion !== CONTRACT_VERSION || !Array.isArray(scene.entities)) return failed('INVALID_SCENE_DOCUMENT', manifest.ecs.scene, 'Scene document is invalid.');
|
|
264
|
+
|
|
265
|
+
const warnings = [];
|
|
266
|
+
const componentIds = new Set();
|
|
267
|
+
for (const [index, component] of components.components.entries()) {
|
|
268
|
+
const id = component?.id;
|
|
269
|
+
if (typeof id !== 'string' || !id.startsWith(`${manifest.contentId}:`)) {
|
|
270
|
+
if (component?.required === false && typeof id === 'string' && id.startsWith('core:') && !CORE_COMPONENTS.has(id)) {
|
|
271
|
+
warnings.push(issue('UNKNOWN_OPTIONAL_COMPONENT_SKIPPED', `${manifest.ecs.components}#components[${index}].id`, `Unknown optional component ${id} will be skipped.`, 'Remove it or upgrade to a contract that publishes the component.'));
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
return failed('UNKNOWN_REQUIRED_COMPONENT', `${manifest.ecs.components}#components[${index}].id`, `Component ${id ?? '<missing>'} is not package-private or a published core component.`, 'Use the content namespace or request a platform component.', warnings);
|
|
275
|
+
}
|
|
276
|
+
if (componentIds.has(id)) return failed('DUPLICATE_COMPONENT', `${manifest.ecs.components}#components[${index}].id`, `Duplicate component ${id}.`, undefined, warnings);
|
|
277
|
+
componentIds.add(id);
|
|
278
|
+
if (!Array.isArray(component.fields) || component.fields.length > 64) return failed('INVALID_COMPONENT_FIELD', `${manifest.ecs.components}#components[${index}].fields`, 'Component fields are invalid.', undefined, warnings);
|
|
279
|
+
const duplicateField = firstDuplicate(component.fields.map(field => field?.name));
|
|
280
|
+
if (duplicateField) return failed('DUPLICATE_COMPONENT_FIELD', `${manifest.ecs.components}#components[${index}].fields`, `Duplicate field ${duplicateField}.`, undefined, warnings);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const knownComponents = new Set([...CORE_COMPONENTS, ...componentIds]);
|
|
284
|
+
const prefabIds = new Set();
|
|
285
|
+
for (const [index, prefab] of prefabs.prefabs.entries()) {
|
|
286
|
+
if (!isObject(prefab) || typeof prefab.id !== 'string' || !isObject(prefab.components)) return failed('INVALID_PREFAB', `${manifest.ecs.prefabs}#prefabs[${index}]`, 'Prefab is invalid.', undefined, warnings);
|
|
287
|
+
if (prefabIds.has(prefab.id)) return failed('DUPLICATE_PREFAB', `${manifest.ecs.prefabs}#prefabs[${index}].id`, `Duplicate prefab ${prefab.id}.`, undefined, warnings);
|
|
288
|
+
prefabIds.add(prefab.id);
|
|
289
|
+
for (const id of Object.keys(prefab.components)) if (!knownComponents.has(id)) return failed('UNKNOWN_REQUIRED_COMPONENT', `${manifest.ecs.prefabs}#prefabs[${index}].components.${id}`, `Prefab references unknown component ${id}.`, undefined, warnings);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (Object.hasOwn(scene, 'playerPrefab')) {
|
|
293
|
+
if (typeof scene.playerPrefab !== 'string' || !prefabIds.has(scene.playerPrefab)) return failed('UNKNOWN_PREFAB', `${manifest.ecs.scene}#playerPrefab`, 'Player prefab must reference a declared prefab.', undefined, warnings);
|
|
294
|
+
const player = prefabs.prefabs.find(prefab => prefab.id === scene.playerPrefab);
|
|
295
|
+
if (Object.keys(player.components).length === 0 || Object.keys(player.components).some(id => !id.startsWith(`${manifest.contentId}:`))) return failed('UNKNOWN_REQUIRED_COMPONENT', `${manifest.ecs.scene}#playerPrefab`, 'Player prefab may instantiate only declared content-private components.', undefined, warnings);
|
|
296
|
+
}
|
|
297
|
+
const entityIds = new Set();
|
|
298
|
+
for (const [index, entity] of scene.entities.entries()) {
|
|
299
|
+
if (!isObject(entity) || typeof entity.id !== 'string') return failed('INVALID_ENTITY', `${manifest.ecs.scene}#entities[${index}]`, 'Entity is invalid.', undefined, warnings);
|
|
300
|
+
if (entityIds.has(entity.id)) return failed('DUPLICATE_ENTITY', `${manifest.ecs.scene}#entities[${index}].id`, `Duplicate entity ${entity.id}.`, undefined, warnings);
|
|
301
|
+
entityIds.add(entity.id);
|
|
302
|
+
if (entity.prefab !== undefined && !prefabIds.has(entity.prefab)) return failed('UNKNOWN_PREFAB', `${manifest.ecs.scene}#entities[${index}].prefab`, `Unknown prefab ${entity.prefab}.`, undefined, warnings);
|
|
303
|
+
for (const id of Object.keys(entity.components ?? {})) if (!knownComponents.has(id)) return failed('UNKNOWN_REQUIRED_COMPONENT', `${manifest.ecs.scene}#entities[${index}].components.${id}`, `Entity references unknown component ${id}.`, undefined, warnings);
|
|
304
|
+
}
|
|
305
|
+
if (scene.entities.length > manifest.requestedBudgets.maxEntities) return failed('ENTITY_BUDGET_EXCEEDED', manifest.ecs.scene, 'Scene entities exceed maxEntities.', undefined, warnings);
|
|
306
|
+
for (const [index, intent] of manifest.networkIntents.entries()) if (!knownComponents.has(intent.component)) return failed('UNKNOWN_NETWORK_INTENT_COMPONENT', `$.networkIntents[${index}].component`, `Network intent references unknown component ${intent.component}.`, undefined, warnings);
|
|
307
|
+
if (manifest.personalState !== undefined) {
|
|
308
|
+
try {
|
|
309
|
+
validatePersonalStateDeclaration(personalState, manifest);
|
|
310
|
+
if (personalState.schemaVersion === '1.1.0') preparePersonalStateNodePlan({declaration:personalState,
|
|
311
|
+
model:{manifest,components,prefabs,scene,groundRules},componentIds:manifest.networkIntents.map(v=>v.component)});
|
|
312
|
+
}
|
|
313
|
+
catch { return failed('INVALID_MANIFEST', 'rules/personal-state.json', 'Personal state declaration must match content identity and finite typed fields.'); }
|
|
314
|
+
} else if (personalState !== undefined) return failed('INVALID_MANIFEST', '$.personalState', 'An undeclared personal state source cannot activate a policy.');
|
|
315
|
+
if (manifest.sceneInteractions !== undefined) {
|
|
316
|
+
if (sceneInteractions === undefined) return failed('MISSING_REQUIRED_FIELD', manifest.sceneInteractions, 'The declared scene interaction document is required.');
|
|
317
|
+
let plan;
|
|
318
|
+
try { plan = ['2.0.0', '2.1.0'].includes(sceneInteractions?.schemaVersion)
|
|
319
|
+
? prepareSceneInteractionModelV2({ source: sceneInteractions, prefabs, scene,
|
|
320
|
+
groundRules: groundRules?.schemaVersion === '2.2.0' ? normalizeGroundEndpointSource(groundRules)
|
|
321
|
+
: groundRules?.schemaVersion === '2.1.0' ? normalizeGroundSpatialSource(groundRules) : prepareGroundSpaces(groundRules) })
|
|
322
|
+
: prepareSceneInteractionModel({ source: sceneInteractions, prefabs, scene }); }
|
|
323
|
+
catch { return failed('INVALID_MANIFEST', manifest.sceneInteractions, 'Scene interactions require valid static ECS transforms, unique targets and bounded radii.', 'Repair rules/interactions.json and referenced core:Transform values against scene-interaction/v1.'); }
|
|
324
|
+
if (plan.contentId !== manifest.contentId || plan.contentVersion !== manifest.contentVersion) return failed('INVALID_MANIFEST', manifest.sceneInteractions, 'Scene interaction identity must match the manifest.');
|
|
325
|
+
const required = manifest.requestedCapabilities.find(value => value.id === 'interaction.scene-target');
|
|
326
|
+
if (!required || required.required !== true || required.version !== '^1.0.0') return failed('INVALID_CAPABILITY_REQUEST', '$.requestedCapabilities', 'Scene interactions require interaction.scene-target@^1.0.0 as a required dependency.', 'Preserve the required dependency; a valid declaration does not grant an unpublished Capability.');
|
|
327
|
+
}
|
|
328
|
+
if (manifest.privateEvents !== undefined) {
|
|
329
|
+
try { preparePrivateEventModel({ manifest, scene, privateEvents }); }
|
|
330
|
+
catch (error) { return failed(error.code, 'ecs/events.json', 'Private event declaration, scene references or required dependency are invalid.', 'Use private-events/v1; preserve events.private@^1.0.0 required=true and repair the indicated declaration.'); }
|
|
331
|
+
}
|
|
332
|
+
return passed(warnings);
|
|
333
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Offline immutable artifact format. No fetching, permission grant or physics.
|
|
2
|
+
const HEADER = 128, STRIDE = 72;
|
|
3
|
+
export const COLLISION_ARTIFACT_LIMITS = Object.freeze({ units: 4096, trianglesPerUnit: 8192, indexBytes: 2 * 1024 * 1024 });
|
|
4
|
+
export class CollisionArtifactError extends Error { constructor(code) { super(code); this.code = code; } }
|
|
5
|
+
const fail = code => { throw new CollisionArtifactError(code); };
|
|
6
|
+
const check = (ok, code = 'INVALID_COLLISION_ARTIFACT') => { if (!ok) fail(code); };
|
|
7
|
+
const exact = (value, keys) => value && typeof value === 'object' && !Array.isArray(value)
|
|
8
|
+
&& Object.keys(value).length === keys.length && keys.every(key => Object.hasOwn(value, key));
|
|
9
|
+
const hash = value => typeof value === 'string' && /^[a-f0-9]{64}$/.test(value) && value.length === 64;
|
|
10
|
+
const integer = (value, min, max) => Number.isSafeInteger(value) && value >= min && value <= max;
|
|
11
|
+
const coordinate = value => typeof value === 'number' && Number.isFinite(value) && Math.abs(value) <= 1e6;
|
|
12
|
+
const clean = value => Object.is(value, -0) ? 0 : value;
|
|
13
|
+
const freeze = value => { if (value && typeof value === 'object') { Object.values(value).forEach(freeze); Object.freeze(value); } return value; };
|
|
14
|
+
const same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
15
|
+
|
|
16
|
+
function bounds(value, allowFlat = false) {
|
|
17
|
+
check(Array.isArray(value) && value.length === 6 && Array.from(value).every(coordinate));
|
|
18
|
+
check([0, 1, 2].every(i => allowFlat ? value[i] <= value[i + 3] : value[i] < value[i + 3]));
|
|
19
|
+
return value.map(clean);
|
|
20
|
+
}
|
|
21
|
+
function geometry(triangles) {
|
|
22
|
+
check(Array.isArray(triangles) && triangles.length <= COLLISION_ARTIFACT_LIMITS.trianglesPerUnit);
|
|
23
|
+
const min = [Infinity, Infinity, Infinity], max = [-Infinity, -Infinity, -Infinity];
|
|
24
|
+
const output = Array.from(triangles, triangle => {
|
|
25
|
+
check(Array.isArray(triangle) && triangle.length === 9 && Array.from(triangle).every(coordinate));
|
|
26
|
+
const v = triangle.map(clean);
|
|
27
|
+
const a = [v[3] - v[0], v[4] - v[1], v[5] - v[2]], b = [v[6] - v[0], v[7] - v[1], v[8] - v[2]];
|
|
28
|
+
check(Math.hypot(a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]) > 1e-9,
|
|
29
|
+
'DEGENERATE_COLLISION_TRIANGLE');
|
|
30
|
+
v.forEach((n, i) => { min[i % 3] = Math.min(min[i % 3], n); max[i % 3] = Math.max(max[i % 3], n); });
|
|
31
|
+
return v;
|
|
32
|
+
});
|
|
33
|
+
return { triangles: output, geometryBounds: output.length ? [...min, ...max] : null };
|
|
34
|
+
}
|
|
35
|
+
function hexBytes(value) { return Uint8Array.from(value.match(/../g), byte => parseInt(byte, 16)); }
|
|
36
|
+
function hex(bytes) { return Array.from(bytes, byte => byte.toString(16).padStart(2, '0')).join(''); }
|
|
37
|
+
export async function collisionArtifactHash(bytes) {
|
|
38
|
+
check(bytes instanceof Uint8Array && globalThis.crypto?.subtle, 'COLLISION_DIGEST_UNAVAILABLE');
|
|
39
|
+
return hex(new Uint8Array(await crypto.subtle.digest('SHA-256', new Uint8Array(bytes))));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function encodeCollisionProxy(value) {
|
|
43
|
+
check(exact(value, ['sourceHash', 'coordinateFrameHash', 'coverageBounds', 'triangles']) && hash(value.sourceHash) && hash(value.coordinateFrameHash));
|
|
44
|
+
const coverage = bounds(value.coverageBounds), data = geometry(value.triangles);
|
|
45
|
+
// Inclusive conservative overlap; complete triangles are never clipped to a cell.
|
|
46
|
+
check(data.triangles.every(t => [0, 1, 2].every(axis => Math.max(t[axis], t[axis + 3], t[axis + 6]) >= coverage[axis]
|
|
47
|
+
&& Math.min(t[axis], t[axis + 3], t[axis + 6]) <= coverage[axis + 3])), 'COLLISION_TRIANGLE_OUTSIDE_COVERAGE');
|
|
48
|
+
const bytes = new Uint8Array(HEADER + data.triangles.length * STRIDE), view = new DataView(bytes.buffer);
|
|
49
|
+
bytes.set([67, 67, 80, 49]); // CCP1
|
|
50
|
+
view.setUint32(4, 1, true); view.setUint32(8, data.triangles.length, true); // reserved u32 at 12 remains zero
|
|
51
|
+
bytes.set(hexBytes(value.coordinateFrameHash), 16); bytes.set(hexBytes(value.sourceHash), 48);
|
|
52
|
+
coverage.forEach((n, i) => view.setFloat64(80 + i * 8, n, true));
|
|
53
|
+
data.triangles.forEach((t, i) => t.forEach((n, j) => view.setFloat64(HEADER + i * STRIDE + j * 8, n, true)));
|
|
54
|
+
return bytes;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function decodeCollisionProxy(input) {
|
|
58
|
+
check(input instanceof Uint8Array && input.byteLength >= HEADER
|
|
59
|
+
&& input.byteLength <= HEADER + STRIDE * COLLISION_ARTIFACT_LIMITS.trianglesPerUnit);
|
|
60
|
+
const bytes = new Uint8Array(input), view = new DataView(bytes.buffer);
|
|
61
|
+
check(bytes[0] === 67 && bytes[1] === 67 && bytes[2] === 80 && bytes[3] === 49
|
|
62
|
+
&& view.getUint32(4, true) === 1 && view.getUint32(12, true) === 0, 'COLLISION_ARTIFACT_VERSION_UNSUPPORTED');
|
|
63
|
+
const count = view.getUint32(8, true);
|
|
64
|
+
check(count <= COLLISION_ARTIFACT_LIMITS.trianglesPerUnit && bytes.length === HEADER + count * STRIDE);
|
|
65
|
+
const value = { sourceHash: hex(bytes.subarray(48, 80)), coordinateFrameHash: hex(bytes.subarray(16, 48)),
|
|
66
|
+
coverageBounds: Array.from({ length: 6 }, (_, i) => view.getFloat64(80 + i * 8, true)),
|
|
67
|
+
triangles: Array.from({ length: count }, (_, i) => Array.from({ length: 9 }, (_, j) => view.getFloat64(HEADER + i * STRIDE + j * 8, true))) };
|
|
68
|
+
const canonical = encodeCollisionProxy(value);
|
|
69
|
+
check(canonical.every((byte, i) => byte === bytes[i]), 'NONCANONICAL_COLLISION_ARTIFACT');
|
|
70
|
+
return freeze({ ...value, geometryBounds: geometry(value.triangles).geometryBounds });
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function collisionGridCell(grid, index) {
|
|
74
|
+
check(exact(grid, ['bounds', 'columns', 'rows']) && integer(grid.columns, 1, 4096) && integer(grid.rows, 1, 4096)
|
|
75
|
+
&& grid.columns * grid.rows <= COLLISION_ARTIFACT_LIMITS.units);
|
|
76
|
+
const b = bounds(grid.bounds);
|
|
77
|
+
check(integer(index, 0, grid.columns * grid.rows - 1));
|
|
78
|
+
const column = index % grid.columns, row = Math.floor(index / grid.columns);
|
|
79
|
+
const x = n => n === grid.columns ? b[3] : b[0] + (b[3] - b[0]) * n / grid.columns;
|
|
80
|
+
const z = n => n === grid.rows ? b[5] : b[2] + (b[5] - b[2]) * n / grid.rows;
|
|
81
|
+
return bounds([x(column), b[1], z(row), x(column + 1), b[4], z(row + 1)]);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function normalizeCollisionIndex(value, limits) {
|
|
85
|
+
check(exact(limits, ['maxUnits', 'maxTrianglesPerUnit', 'maxTotalProxyBytes']) && integer(limits.maxUnits, 1, 4096)
|
|
86
|
+
&& integer(limits.maxTrianglesPerUnit, 1, 8192) && integer(limits.maxTotalProxyBytes, HEADER, 2 ** 32), 'INVALID_COLLISION_ARTIFACT_LIMIT');
|
|
87
|
+
check(exact(value, ['schemaVersion', 'sourceHash', 'coordinateFrameHash', 'grid', 'units']) && value.schemaVersion === '1.0.0'
|
|
88
|
+
&& hash(value.sourceHash) && hash(value.coordinateFrameHash));
|
|
89
|
+
collisionGridCell(value.grid, 0);
|
|
90
|
+
check(Array.isArray(value.units) && value.units.length === value.grid.columns * value.grid.rows, 'COLLISION_COVERAGE_INCOMPLETE');
|
|
91
|
+
check(value.units.length <= limits.maxUnits, 'COLLISION_ARTIFACT_BUDGET_EXCEEDED');
|
|
92
|
+
const seen = new Set(); let total = 0;
|
|
93
|
+
const units = Array.from(value.units, entry => {
|
|
94
|
+
check(exact(entry, ['id', 'sha256', 'path', 'bytes', 'triangleCount', 'geometryBounds']) && hash(entry.sha256)
|
|
95
|
+
&& entry.id === `cu-${entry.sha256}` && entry.path === `collision/${entry.sha256}.ccp` && !seen.has(entry.id));
|
|
96
|
+
check(integer(entry.triangleCount, 0, 8192) && entry.bytes === HEADER + STRIDE * entry.triangleCount);
|
|
97
|
+
check(entry.triangleCount <= limits.maxTrianglesPerUnit, 'COLLISION_ARTIFACT_BUDGET_EXCEEDED');
|
|
98
|
+
const geometryBounds = entry.triangleCount ? bounds(entry.geometryBounds, true) : (check(entry.geometryBounds === null), null);
|
|
99
|
+
seen.add(entry.id); total += entry.bytes;
|
|
100
|
+
check(total <= limits.maxTotalProxyBytes, 'COLLISION_ARTIFACT_BUDGET_EXCEEDED');
|
|
101
|
+
return { id: entry.id, sha256: entry.sha256, path: entry.path, bytes: entry.bytes, triangleCount: entry.triangleCount, geometryBounds };
|
|
102
|
+
});
|
|
103
|
+
return freeze({ schemaVersion: '1.0.0', sourceHash: value.sourceHash, coordinateFrameHash: value.coordinateFrameHash,
|
|
104
|
+
grid: { bounds: bounds(value.grid.bounds), columns: value.grid.columns, rows: value.grid.rows }, units });
|
|
105
|
+
}
|
|
106
|
+
export function encodeCollisionIndex(value, limits) {
|
|
107
|
+
const bytes = new TextEncoder().encode(`${JSON.stringify(normalizeCollisionIndex(value, limits))}\n`);
|
|
108
|
+
check(bytes.length <= COLLISION_ARTIFACT_LIMITS.indexBytes, 'COLLISION_ARTIFACT_BUDGET_EXCEEDED');
|
|
109
|
+
return bytes;
|
|
110
|
+
}
|
|
111
|
+
export async function verifyCollisionIndex(input, expectedHash, limits) {
|
|
112
|
+
check(input instanceof Uint8Array && input.length <= COLLISION_ARTIFACT_LIMITS.indexBytes && hash(expectedHash));
|
|
113
|
+
const bytes = new Uint8Array(input);
|
|
114
|
+
let value;
|
|
115
|
+
try { value = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); } catch { fail('INVALID_COLLISION_ARTIFACT'); }
|
|
116
|
+
const index = normalizeCollisionIndex(value, limits), canonical = encodeCollisionIndex(index, limits);
|
|
117
|
+
check(bytes.length === canonical.length && canonical.every((byte, i) => byte === bytes[i]), 'NONCANONICAL_COLLISION_ARTIFACT');
|
|
118
|
+
check(await collisionArtifactHash(bytes) === expectedHash, 'COLLISION_ARTIFACT_HASH_MISMATCH');
|
|
119
|
+
return index;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// index must already be authenticated by the release loader and normalized above.
|
|
123
|
+
export async function verifyCollisionUnit(input, index, unitId) {
|
|
124
|
+
const position = index.units.findIndex(entry => entry.id === unitId);
|
|
125
|
+
check(position >= 0, 'UNKNOWN_COLLISION_UNIT');
|
|
126
|
+
const entry = index.units[position], expectedHash = entry.sha256;
|
|
127
|
+
check(input instanceof Uint8Array && input.length === entry.bytes);
|
|
128
|
+
const bytes = new Uint8Array(input), value = decodeCollisionProxy(bytes);
|
|
129
|
+
check(value.sourceHash === index.sourceHash && value.coordinateFrameHash === index.coordinateFrameHash
|
|
130
|
+
&& same(value.coverageBounds, collisionGridCell(index.grid, position)) && same(value.geometryBounds, entry.geometryBounds)
|
|
131
|
+
&& value.triangles.length === entry.triangleCount, 'COLLISION_ARTIFACT_BINDING_MISMATCH');
|
|
132
|
+
check(await collisionArtifactHash(bytes) === expectedHash, 'COLLISION_ARTIFACT_HASH_MISMATCH');
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Platform-owned, engine-independent identity rules. No fetching or physics.
|
|
2
|
+
// A valid identity is not proof of asset presence, review or runtime permission.
|
|
3
|
+
export const COLLISION_IDENTITY_VERSION = '1.0.0';
|
|
4
|
+
export const MAX_TARGET_UNITS = 256; // Wire-format ceiling, never an effective budget.
|
|
5
|
+
const digestPattern = /^[a-f0-9]{64}$/;
|
|
6
|
+
const unitPattern = /^cu-[a-f0-9]{64}$/;
|
|
7
|
+
const domain = 'chrona.collision-required-set/v1\n';
|
|
8
|
+
|
|
9
|
+
export class CollisionIdentityError extends Error {
|
|
10
|
+
constructor(code) { super(code); this.code = code; }
|
|
11
|
+
}
|
|
12
|
+
const check = (condition, code) => { if (!condition) throw new CollisionIdentityError(code); };
|
|
13
|
+
const digest = value => typeof value === 'string' && digestPattern.test(value);
|
|
14
|
+
const unit = value => typeof value === 'string' && unitPattern.test(value);
|
|
15
|
+
const validLimit = limit => Number.isSafeInteger(limit) && limit > 0 && limit <= MAX_TARGET_UNITS;
|
|
16
|
+
|
|
17
|
+
export function collisionUnitId(proxySha256) {
|
|
18
|
+
check(digest(proxySha256), 'INVALID_COLLISION_UNIT_HASH');
|
|
19
|
+
return `cu-${proxySha256}`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function canonicalCollisionUnitIds(ids, effectiveMaxUnits) {
|
|
23
|
+
check(validLimit(effectiveMaxUnits), 'INVALID_COLLISION_TARGET_LIMIT');
|
|
24
|
+
check(Array.isArray(ids) && ids.length > 0 && ids.length <= effectiveMaxUnits, 'COLLISION_TARGET_SIZE_REJECTED');
|
|
25
|
+
// Explicit loop also rejects holes; Array.every would skip sparse slots.
|
|
26
|
+
for (let i = 0; i < ids.length; i++) check(Object.hasOwn(ids, i) && unit(ids[i]), 'INVALID_COLLISION_UNIT_ID');
|
|
27
|
+
check(new Set(ids).size === ids.length, 'DUPLICATE_COLLISION_UNIT_ID');
|
|
28
|
+
return [...ids].sort(); // Restricted ASCII: no locale or numeric collation.
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function encodeRequiredCollisionSet(collisionRootHash, ids, effectiveMaxUnits) {
|
|
32
|
+
check(digest(collisionRootHash), 'INVALID_COLLISION_ROOT_HASH');
|
|
33
|
+
const ordered = canonicalCollisionUnitIds(ids, effectiveMaxUnits);
|
|
34
|
+
return new TextEncoder().encode(`${domain}${collisionRootHash}\n${ordered.join('\n')}\n`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async function sha256(bytes) {
|
|
38
|
+
check(globalThis.crypto?.subtle, 'COLLISION_DIGEST_UNAVAILABLE');
|
|
39
|
+
const bytesHash = new Uint8Array(await globalThis.crypto.subtle.digest('SHA-256', bytes));
|
|
40
|
+
return Array.from(bytesHash, byte => byte.toString(16).padStart(2, '0')).join('');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export async function requiredCollisionSetHash(collisionRootHash, ids, effectiveMaxUnits) {
|
|
44
|
+
// Copy and encode synchronously before the first await; caller mutation cannot
|
|
45
|
+
// alter the bytes being hashed. Same implementation uses Node/Web WebCrypto.
|
|
46
|
+
return sha256(encodeRequiredCollisionSet(collisionRootHash, ids, effectiveMaxUnits));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function targetFields(target) {
|
|
50
|
+
check(target && typeof target === 'object' && !Array.isArray(target), 'INVALID_COLLISION_TARGET');
|
|
51
|
+
const expected = ['schemaVersion', 'collisionRootHash', 'collisionUnitIds', 'requiredSetHash'];
|
|
52
|
+
check(Object.keys(target).length === expected.length && expected.every(key => Object.hasOwn(target, key)), 'INVALID_COLLISION_TARGET');
|
|
53
|
+
check(target.schemaVersion === COLLISION_IDENTITY_VERSION, 'COLLISION_IDENTITY_VERSION_UNSUPPORTED');
|
|
54
|
+
check(digest(target.collisionRootHash), 'INVALID_COLLISION_ROOT_HASH');
|
|
55
|
+
check(digest(target.requiredSetHash), 'INVALID_COLLISION_SET_HASH');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// verifiedIndex is supplied ONLY by the platform's authenticated artifact loader.
|
|
59
|
+
// This function checks membership and identity, not the index signature/hash.
|
|
60
|
+
// The loader owns effectiveMaxUnits; callers cannot take it from a client request.
|
|
61
|
+
export async function validateCollisionTarget(target, verifiedIndex, effectiveMaxUnits) {
|
|
62
|
+
targetFields(target);
|
|
63
|
+
check(verifiedIndex && digest(verifiedIndex.collisionRootHash) && verifiedIndex.unitIds instanceof Set, 'COLLISION_INDEX_NOT_VERIFIED');
|
|
64
|
+
check(target.collisionRootHash === verifiedIndex.collisionRootHash, 'COLLISION_ROOT_MISMATCH');
|
|
65
|
+
const ids = canonicalCollisionUnitIds(target.collisionUnitIds, effectiveMaxUnits);
|
|
66
|
+
check(ids.every((id, i) => id === target.collisionUnitIds[i]), 'COLLISION_TARGET_ORDER_INVALID');
|
|
67
|
+
check(ids.every(id => verifiedIndex.unitIds.has(id)), 'UNKNOWN_COLLISION_UNIT');
|
|
68
|
+
const root = target.collisionRootHash, expectedHash = target.requiredSetHash;
|
|
69
|
+
const actual = await requiredCollisionSetHash(root, ids, effectiveMaxUnits);
|
|
70
|
+
check(actual === expectedHash, 'COLLISION_SET_HASH_MISMATCH');
|
|
71
|
+
// Return detached immutable facts. No caller-owned target/index array escapes.
|
|
72
|
+
return Object.freeze({ schemaVersion: COLLISION_IDENTITY_VERSION, collisionRootHash: root, collisionUnitIds: Object.freeze(ids), requiredSetHash: actual });
|
|
73
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://chrona.dev/contracts/ugc/world-scene/v1/collision-target.schema.json",
|
|
4
|
+
"title": "Offline collision target identity; not a real-time JSON message",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "collisionRootHash", "collisionUnitIds", "requiredSetHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
10
|
+
"collisionRootHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
11
|
+
"collisionUnitIds": {
|
|
12
|
+
"type": "array", "minItems": 1, "maxItems": 256, "uniqueItems": true,
|
|
13
|
+
"items": { "type": "string", "pattern": "^cu-[a-f0-9]{64}$" },
|
|
14
|
+
"description": "Strict ascending ASCII order; each ID must belong to the platform-verified collision index. Effective limit is separately granted and cannot exceed 256."
|
|
15
|
+
},
|
|
16
|
+
"requiredSetHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://chrona.dev/contracts/ugc/world-scene/v1/coordinates.schema.json",
|
|
4
|
+
"title": "Fixed local metre coordinate frame",
|
|
5
|
+
"type": "object", "additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "units", "axes", "origin", "metresLongitude", "metresLatitude", "heightDatum"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "1.0.0" }, "units": { "const": "metre" }, "axes": { "const": "x=east,y=up,z=south" },
|
|
9
|
+
"origin": { "type": "object", "additionalProperties": false, "required": ["longitude", "latitude"], "properties": {
|
|
10
|
+
"longitude": { "type": "number", "minimum": -180, "maximum": 180 }, "latitude": { "type": "number", "minimum": -90, "maximum": 90 }
|
|
11
|
+
} },
|
|
12
|
+
"metresLongitude": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000 },
|
|
13
|
+
"metresLatitude": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000 },
|
|
14
|
+
"heightDatum": { "type": "string", "pattern": "^[a-z][a-z0-9.-]{2,127}$" }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://chrona.dev/contracts/ugc/world-scene/v1/flight-avatar-sample.schema.json",
|
|
4
|
+
"title": "Accepted public flight velocity projection (not a wire message)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["velocityXCms", "velocityYCms", "velocityZCms"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"velocityXCms": { "$ref": "#/$defs/velocity" },
|
|
10
|
+
"velocityYCms": { "$ref": "#/$defs/velocity" },
|
|
11
|
+
"velocityZCms": { "$ref": "#/$defs/velocity" }
|
|
12
|
+
},
|
|
13
|
+
"$defs": { "velocity": { "type": "integer", "minimum": -32768, "maximum": 32767 } }
|
|
14
|
+
}
|