@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,763 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import { createHash } from 'node:crypto';
|
|
3
|
+
import { cp, lstat, mkdir, mkdtemp, readFile, readdir, realpath, rm, writeFile } from 'node:fs/promises';
|
|
4
|
+
import os from 'node:os';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { promisify } from 'node:util';
|
|
7
|
+
import { pathToFileURL } from 'node:url';
|
|
8
|
+
import { validateGameplaySource } from '../contracts/ugc/v1/conformance/js/source-validator.mjs';
|
|
9
|
+
import { CREATOR_TESTING_PROVENANCE, validateSceneSources } from '../contracts/ugc/v1/conformance/js/scene-provenance.mjs';
|
|
10
|
+
import { createLocalCapabilityGateway } from './capability-harness.mjs';
|
|
11
|
+
import { canonicalJson, resolveCapabilities } from '../contracts/ugc/registry/v1/conformance/js/capability-resolver.mjs';
|
|
12
|
+
import { validateCapabilityProposal } from '../contracts/ugc/capability-wiring/v1/conformance/js/wiring-validator.mjs';
|
|
13
|
+
import { hasRuntimeSnapshot, verifyRuntimeSnapshot } from './runtime-snapshot.mjs';
|
|
14
|
+
import { createPrivateHarness, privateEcsModel } from './private-ecs-harness.mjs';
|
|
15
|
+
import { normalizeTestCase, normalizeTestDocuments } from '../contracts/ugc/gameplay-tests/v1/cases.mjs';
|
|
16
|
+
import { createSceneTestDriver } from '../contracts/ugc/gameplay-tests/v1/scene-step.mjs';
|
|
17
|
+
import { prepareSceneInteractionModel } from '../contracts/ugc/scene-interaction/v1/scene-model.mjs';
|
|
18
|
+
import { readBoundedContentAsset, inspectProjectScene } from './scene-assets.mjs';
|
|
19
|
+
|
|
20
|
+
const execFileAsync = promisify(execFile);
|
|
21
|
+
const VERSION = '1.0.0';
|
|
22
|
+
const LOCK_NAMES = new Set([
|
|
23
|
+
'capabilities.lock.json',
|
|
24
|
+
'effective-budgets.json',
|
|
25
|
+
'network-profile.lock.json',
|
|
26
|
+
'replication.lock.json'
|
|
27
|
+
]);
|
|
28
|
+
const SENSITIVE_NAMES = new Set(['.env', '.npmrc', '.netrc', 'credentials.json', 'secrets.json']);
|
|
29
|
+
const IMPORT_PATTERN = /\b(?:import|export)\s+(?:(?:[\s\S]*?)\s+from\s+)?['"]([^'"]+)['"]/g;
|
|
30
|
+
|
|
31
|
+
const issue = (code, at, message, repairHint, extra = {}) => ({
|
|
32
|
+
code,
|
|
33
|
+
path: at,
|
|
34
|
+
message,
|
|
35
|
+
repairHint,
|
|
36
|
+
...extra
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const baseReport = ({ status, errors = [], warnings = [], capabilityResult }) => ({
|
|
40
|
+
schemaVersion: VERSION,
|
|
41
|
+
status,
|
|
42
|
+
contractVersion: VERSION,
|
|
43
|
+
valid: status === 'passed',
|
|
44
|
+
errors,
|
|
45
|
+
warnings,
|
|
46
|
+
...(status === 'needs_capability' ? {
|
|
47
|
+
requestedCapability: capabilityResult.requestedCapability,
|
|
48
|
+
proposalPath: capabilityResult.proposalPath
|
|
49
|
+
} : {}),
|
|
50
|
+
sensitiveValuesRedacted: true
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const inside = (root, target) => target === root || target.startsWith(`${root}${path.sep}`);
|
|
54
|
+
const slash = value => value.split(path.sep).join('/');
|
|
55
|
+
|
|
56
|
+
async function readJson(absolute, displayPath) {
|
|
57
|
+
try {
|
|
58
|
+
return JSON.parse(await readFile(absolute, 'utf8'));
|
|
59
|
+
} catch {
|
|
60
|
+
throw issue(
|
|
61
|
+
'INVALID_FIELD_TYPE',
|
|
62
|
+
displayPath,
|
|
63
|
+
'Required JSON is missing or invalid.',
|
|
64
|
+
`Create valid UTF-8 JSON at ${displayPath}.`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async function assertRegularInside(root, relative) {
|
|
70
|
+
const absolute = path.resolve(root, relative);
|
|
71
|
+
if (!inside(root, absolute)) {
|
|
72
|
+
throw issue('INVALID_PACKAGE_PATH', relative, 'Path escapes the content package.', 'Use a package-relative path inside content/.');
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
const stats = await lstat(absolute);
|
|
76
|
+
if (!stats.isFile() || stats.isSymbolicLink()) throw new Error('not regular');
|
|
77
|
+
const resolved = await realpath(absolute);
|
|
78
|
+
if (!inside(root, resolved)) throw new Error('outside root');
|
|
79
|
+
} catch {
|
|
80
|
+
throw issue('INVALID_PACKAGE_PATH', relative, 'Path is missing, non-regular, or escapes through a symlink.', `Create a regular file at content/${relative}.`);
|
|
81
|
+
}
|
|
82
|
+
return absolute;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async function walkContent(directory, root = directory) {
|
|
86
|
+
const entries = await readdir(directory, { withFileTypes: true });
|
|
87
|
+
const files = [];
|
|
88
|
+
const errors = [];
|
|
89
|
+
for (const entry of entries) {
|
|
90
|
+
const absolute = path.join(directory, entry.name);
|
|
91
|
+
const relative = slash(path.relative(root, absolute));
|
|
92
|
+
if (entry.isSymbolicLink()) {
|
|
93
|
+
errors.push(issue('INVALID_PACKAGE_PATH', `content/${relative}`, 'Symlinks are forbidden in content packages.', 'Replace the symlink with a regular package file.'));
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if (entry.isDirectory()) {
|
|
97
|
+
const nested = await walkContent(absolute, root);
|
|
98
|
+
files.push(...nested.files);
|
|
99
|
+
errors.push(...nested.errors);
|
|
100
|
+
} else if (entry.isFile()) {
|
|
101
|
+
files.push(relative);
|
|
102
|
+
if (LOCK_NAMES.has(entry.name)) errors.push(issue('BUILD_FIELD_IN_SOURCE', `content/${relative}`, 'Platform-generated lock files cannot be submitted as source.', 'Remove the lock file from content/.'));
|
|
103
|
+
if (SENSITIVE_NAMES.has(entry.name) || /\.(?:pem|key|p12|pfx)$/i.test(entry.name)) errors.push(issue('INVALID_PACKAGE_PATH', `content/${relative}`, 'Credential-like files are forbidden in content packages.', 'Remove the sensitive file and rotate any exposed credential.'));
|
|
104
|
+
} else {
|
|
105
|
+
errors.push(issue('INVALID_PACKAGE_PATH', `content/${relative}`, 'Only regular files and directories are allowed.', 'Remove the unsupported filesystem entry.'));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return { files, errors };
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async function verifySnapshot(platformRoot, lockName) {
|
|
112
|
+
const errors = [];
|
|
113
|
+
let lock;
|
|
114
|
+
try {
|
|
115
|
+
lock = await readJson(path.join(platformRoot, lockName), lockName);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
return [error];
|
|
118
|
+
}
|
|
119
|
+
if (lock.updatePolicy !== 'platform-managed' || !Array.isArray(lock.artifacts)) {
|
|
120
|
+
return [issue('SCHEMA_VERSION_INCOMPATIBLE', lockName, 'Platform snapshot lock is invalid.', 'Restore the project from the published Kit template.')];
|
|
121
|
+
}
|
|
122
|
+
for (const artifact of lock.artifacts) {
|
|
123
|
+
try {
|
|
124
|
+
const absolute = await assertRegularInside(platformRoot, artifact.path);
|
|
125
|
+
const actual = createHash('sha256').update(await readFile(absolute)).digest('hex');
|
|
126
|
+
if (actual !== artifact.sha256) errors.push(issue('SCHEMA_VERSION_INCOMPATIBLE', artifact.path, 'Platform snapshot differs from its immutable lock.', 'Restore this platform-managed file from the locked Kit version.'));
|
|
127
|
+
} catch {
|
|
128
|
+
errors.push(issue('SCHEMA_VERSION_INCOMPATIBLE', artifact.path ?? lockName, 'A locked platform artifact is missing or invalid.', 'Restore the complete published Kit snapshot.'));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return errors;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
async function syntaxIssue(absolute, displayPath) {
|
|
135
|
+
try {
|
|
136
|
+
await execFileAsync(process.execPath, ['--check', absolute], { timeout: 5000 });
|
|
137
|
+
return null;
|
|
138
|
+
} catch {
|
|
139
|
+
return issue('INVALID_GAMEPLAY_SOURCE', displayPath, 'Gameplay JavaScript has a syntax error.', 'Repair the JavaScript syntax without adding forbidden dependencies.');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const staticImports = source => [...source.matchAll(IMPORT_PATTERN)].map(match => match[1]);
|
|
144
|
+
|
|
145
|
+
async function validateSourceGraph({ contentRoot, entrypoint, side, contract }) {
|
|
146
|
+
const queue = [entrypoint];
|
|
147
|
+
const visited = new Set();
|
|
148
|
+
const errors = [];
|
|
149
|
+
while (queue.length > 0) {
|
|
150
|
+
const relative = queue.shift();
|
|
151
|
+
if (visited.has(relative)) continue;
|
|
152
|
+
visited.add(relative);
|
|
153
|
+
let absolute;
|
|
154
|
+
let source;
|
|
155
|
+
try {
|
|
156
|
+
absolute = await assertRegularInside(contentRoot, relative);
|
|
157
|
+
source = await readFile(absolute, 'utf8');
|
|
158
|
+
} catch (error) {
|
|
159
|
+
errors.push(error);
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
const result = validateGameplaySource({ path: relative, source, side, contract });
|
|
163
|
+
errors.push(...result.errors.filter(error => relative === entrypoint || error.code !== 'MISSING_GAMEPLAY_EXPORT'));
|
|
164
|
+
const syntax = await syntaxIssue(absolute, relative);
|
|
165
|
+
if (syntax) errors.push(syntax);
|
|
166
|
+
for (const specifier of staticImports(source)) {
|
|
167
|
+
if (!specifier.startsWith('./')) continue;
|
|
168
|
+
const imported = slash(path.posix.normalize(path.posix.join(path.posix.dirname(relative), specifier)));
|
|
169
|
+
if (!imported.startsWith(`gameplay/${side}/`) || !imported.endsWith('.js')) {
|
|
170
|
+
errors.push(issue('ILLEGAL_IMPORT', relative, 'Relative import crosses its Gameplay side boundary.', `Keep relative imports under gameplay/${side}/.`));
|
|
171
|
+
} else {
|
|
172
|
+
queue.push(imported);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return errors;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function validateProvenance(provenance, manifest, sceneAssetGraph) {
|
|
180
|
+
const errors = [];
|
|
181
|
+
if (!provenance || provenance.schemaVersion !== VERSION || typeof provenance.generator?.tool !== 'string' || typeof provenance.generator?.version !== 'string' || !Array.isArray(provenance.inputs) || !Array.isArray(provenance.resources)) {
|
|
182
|
+
return [issue('INVALID_FIELD_TYPE', manifest.provenance, 'Provenance document is invalid.', 'Match contracts/ugc/v1/provenance.schema.json.')];
|
|
183
|
+
}
|
|
184
|
+
const declared = new Set(manifest.resources.map(resource => resource.id));
|
|
185
|
+
const covered = new Set();
|
|
186
|
+
const declarationText = (value, max) => typeof value === 'string' && value.trim().length > 0
|
|
187
|
+
&& value.length <= max && !/[\u0000-\u001f\u007f]/.test(value);
|
|
188
|
+
for (const [index, resource] of provenance.resources.entries()) {
|
|
189
|
+
const at = `${manifest.provenance}#resources[${index}]`;
|
|
190
|
+
if (!declared.has(resource?.resourceId)) {
|
|
191
|
+
errors.push(issue('INVALID_RESOURCE', at, 'Resource declaration does not match a manifest resource.', 'Bind the declaration to an existing manifest resource ID.'));
|
|
192
|
+
} else if (covered.has(resource.resourceId)) {
|
|
193
|
+
errors.push(issue('INVALID_RESOURCE', at, 'Resource has more than one declaration.', 'Keep one declaration per resource ID.'));
|
|
194
|
+
} else if (!resource || !['license,resourceId,source', 'license,managedBy,resourceId,source']
|
|
195
|
+
.includes(Object.keys(resource).sort().join(','))
|
|
196
|
+
|| !declarationText(resource.source, 512) || !declarationText(resource.license, 128)
|
|
197
|
+
|| Object.hasOwn(resource, 'managedBy')
|
|
198
|
+
&& !Object.entries(CREATOR_TESTING_PROVENANCE).every(([key, value]) => resource[key] === value)) {
|
|
199
|
+
errors.push(issue('INVALID_RESOURCE', at, 'Resource source or permitted use is missing or malformed.',
|
|
200
|
+
'Use nonempty source and license text for this resource; preserve explicit third-party terms and do not set managedBy for them.'));
|
|
201
|
+
} else {
|
|
202
|
+
covered.add(resource.resourceId);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
for (const id of declared) if (!covered.has(id)) errors.push(issue('INVALID_RESOURCE', manifest.provenance, `Resource ${id} has no provenance entry.`, 'Add its source and license without embedding sensitive prompt text.'));
|
|
206
|
+
for (const [index, input] of provenance.inputs.entries()) {
|
|
207
|
+
if (!['prompt', 'reference', 'asset', 'code'].includes(input?.kind) || !/^[a-f0-9]{64}$/.test(input?.sha256 ?? '')) errors.push(issue('INVALID_FIELD_TYPE', `${manifest.provenance}#inputs[${index}]`, 'Provenance input must contain a kind and SHA-256.', 'Store only the input kind and lowercase SHA-256.'));
|
|
208
|
+
}
|
|
209
|
+
const scene = validateSceneSources({ provenance, sceneAssetGraph });
|
|
210
|
+
for (const error of scene.errors) errors.push(issue('INVALID_RESOURCE', `${manifest.provenance}#${error.field}`,
|
|
211
|
+
'Scene source declaration does not match the verified media graph.', 'Keep explicit source terms and bind each declared file to its current stored bytes.'));
|
|
212
|
+
return errors;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function validateDeclaredCases(document, displayPath) {
|
|
216
|
+
if (!document || document.schemaVersion !== VERSION || !Array.isArray(document.cases)) {
|
|
217
|
+
return [issue('INVALID_FIELD_TYPE', displayPath, 'Test document must contain a cases array.', 'Use the reviewed template test document shape.')];
|
|
218
|
+
}
|
|
219
|
+
const errors = [];
|
|
220
|
+
const ids = new Set();
|
|
221
|
+
for (const [index, testCase] of document.cases.entries()) {
|
|
222
|
+
const at = `${displayPath}#cases[${index}]`;
|
|
223
|
+
try { normalizeTestCase(testCase); }
|
|
224
|
+
catch (error) {
|
|
225
|
+
errors.push(issue('INVALID_FIELD_TYPE', `${at}${error.suffix ?? ''}`, 'Gameplay test has invalid lifecycle, fields, fixture or budgets.', 'Follow contracts/ugc/gameplay-tests/v1/cases.schema.json and its semantic rules.'));
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
if (ids.has(testCase.id)) errors.push(issue('INVALID_FIELD_TYPE', `${at}.id`, 'Test case id is duplicated.', 'Give every test case a stable unique id.'));
|
|
229
|
+
ids.add(testCase.id);
|
|
230
|
+
}
|
|
231
|
+
return errors;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function validateBudgetTests(document, displayPath) {
|
|
235
|
+
if (!document || document.schemaVersion !== VERSION || !Number.isInteger(document.maxCapabilityCallsPerCase) || document.maxCapabilityCallsPerCase < 0 || !Number.isInteger(document.maxPresentationCommandsPerCase) || document.maxPresentationCommandsPerCase < 0) {
|
|
236
|
+
return [issue('INVALID_FIELD_TYPE', displayPath, 'Budget test document is invalid.', 'Declare non-negative integer per-case limits from the reviewed template.')];
|
|
237
|
+
}
|
|
238
|
+
return [];
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
async function validateGltf(bytes, resource) {
|
|
242
|
+
const errors = [];
|
|
243
|
+
if (resource.kind === 'gltf') {
|
|
244
|
+
let document;
|
|
245
|
+
try {
|
|
246
|
+
document = JSON.parse(bytes.toString('utf8'));
|
|
247
|
+
} catch {
|
|
248
|
+
return [issue('INVALID_RESOURCE', resource.path, 'glTF resource is not valid JSON.', 'Export a valid glTF 2.0 file.')];
|
|
249
|
+
}
|
|
250
|
+
if (document.asset?.version !== '2.0') errors.push(issue('INVALID_RESOURCE', resource.path, 'Only glTF 2.0 is supported.', 'Export the asset as glTF 2.0.'));
|
|
251
|
+
const uris = [...(document.buffers ?? []), ...(document.images ?? [])].map(entry => entry?.uri).filter(Boolean);
|
|
252
|
+
for (const uri of uris) {
|
|
253
|
+
if (!uri.startsWith('data:') && (!/^[a-zA-Z0-9._/-]+$/.test(uri) || uri.startsWith('/') || uri.includes('..') || uri.includes('://'))) {
|
|
254
|
+
errors.push(issue('INVALID_RESOURCE', resource.path, 'glTF contains a remote or escaping URI.', 'Embed the resource or use a package-relative URI inside assets/runtime/.'));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
} else if (resource.kind === 'glb') {
|
|
258
|
+
if (bytes.length < 12 || bytes.toString('ascii', 0, 4) !== 'glTF' || bytes.readUInt32LE(4) !== 2 || bytes.readUInt32LE(8) !== bytes.length) errors.push(issue('INVALID_RESOURCE', resource.path, 'GLB header or declared length is invalid.', 'Export a valid glTF 2.0 binary GLB.'));
|
|
259
|
+
}
|
|
260
|
+
return errors;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
async function validateAssets(contentRoot, manifest, allFiles, graph, maxAssetBytes, documentPresentation) {
|
|
264
|
+
const errors = [];
|
|
265
|
+
const graphPaths = new Set(graph?.files.map(file => file.path) ?? []);
|
|
266
|
+
const declaredPaths = new Set(graphPaths);
|
|
267
|
+
let totalBytes = graph?.totalBytes ?? 0;
|
|
268
|
+
for (const resource of documentPresentation?.resources ?? []) {
|
|
269
|
+
try {
|
|
270
|
+
const bytes = await readBoundedContentAsset(contentRoot, resource.path, Math.min(resource.bytes, maxAssetBytes));
|
|
271
|
+
if (bytes.length !== resource.bytes || `sha256:${createHash('sha256').update(bytes).digest('hex')}` !== resource.sha256)
|
|
272
|
+
throw new Error();
|
|
273
|
+
if (!declaredPaths.has(resource.path)) totalBytes += bytes.length;
|
|
274
|
+
declaredPaths.add(resource.path);
|
|
275
|
+
} catch { errors.push(issue('INVALID_RESOURCE', resource.path, 'Document resource is unavailable, linked, oversized or differs from its exact inventory.',
|
|
276
|
+
'Restore the resource bytes or regenerate the source inventory from the actual edited content.')); }
|
|
277
|
+
}
|
|
278
|
+
for (const resource of manifest.resources) {
|
|
279
|
+
if (!resource.path.startsWith('assets/runtime/')) {
|
|
280
|
+
errors.push(issue('INVALID_RESOURCE', resource.path, 'Runtime resources must stay under assets/runtime/.', 'Move the file into content/assets/runtime/ and update the manifest.'));
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
if (graphPaths.has(resource.path)) {
|
|
284
|
+
errors.push(issue('INVALID_RESOURCE', resource.path, 'A resource cannot be both bootstrap and streamed.', 'Remove the duplicate Manifest resource; retain the indexed scene dependency.'));
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
const alreadyCounted = declaredPaths.has(resource.path);
|
|
288
|
+
declaredPaths.add(resource.path);
|
|
289
|
+
let bytes;
|
|
290
|
+
try {
|
|
291
|
+
bytes = await readBoundedContentAsset(contentRoot, resource.path, alreadyCounted ? maxAssetBytes : Math.max(0, maxAssetBytes - totalBytes));
|
|
292
|
+
} catch (error) {
|
|
293
|
+
errors.push(issue(error.code === 'WORLD_SCENE_BUDGET_EXCEEDED' ? 'ASSET_BUDGET_EXCEEDED' : 'INVALID_RESOURCE', resource.path,
|
|
294
|
+
'Asset is unavailable, changed, non-regular or exceeds the combined byte budget.', 'Repair the resource and its declaration without increasing platform limits.'));
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
if (!alreadyCounted) totalBytes += bytes.length;
|
|
298
|
+
const digest = createHash('sha256').update(bytes).digest('hex');
|
|
299
|
+
if (bytes.length !== resource.bytes || digest !== resource.sha256) errors.push(issue('INVALID_RESOURCE', resource.path, 'Resource bytes or SHA-256 do not match the manifest.', 'Recompute the exact byte length and lowercase SHA-256 after the final asset export.'));
|
|
300
|
+
errors.push(...await validateGltf(bytes, resource));
|
|
301
|
+
}
|
|
302
|
+
if (totalBytes > maxAssetBytes) errors.push(issue('ASSET_BUDGET_EXCEEDED', 'content/',
|
|
303
|
+
'Combined declared resources exceed the effective asset budget.', 'Reduce bytes or request an explicitly supported budget; values are not silently clamped.'));
|
|
304
|
+
for (const relative of allFiles.filter(file => file.startsWith('assets/runtime/') || file.startsWith('scene/'))) {
|
|
305
|
+
if (!declaredPaths.has(relative)) errors.push(issue('INVALID_RESOURCE', relative, 'Runtime asset is not declared in the manifest or verified scene graph.', 'Declare the required dependency or remove the unused runtime file.'));
|
|
306
|
+
}
|
|
307
|
+
return errors;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export async function validateProject({ projectRoot, platformRoot }) {
|
|
311
|
+
const root = await realpath(path.resolve(projectRoot));
|
|
312
|
+
const platform = await realpath(path.resolve(platformRoot));
|
|
313
|
+
const contentRoot = path.join(root, 'content');
|
|
314
|
+
const errors = [
|
|
315
|
+
...await verifySnapshot(platform, 'chrona.contract.lock.json'),
|
|
316
|
+
...await verifySnapshot(platform, 'chrona.registry.lock.json'),
|
|
317
|
+
...await verifySnapshot(platform, 'chrona.wiring.lock.json')
|
|
318
|
+
];
|
|
319
|
+
for (const kind of ['pipeline', 'ecs', 'core', 'sandbox', 'gameplay-tests', 'resource-bindings', 'ground-rules', 'scene-interaction', 'private-state', 'private-state-view', 'private-events', 'private-event-view', 'controlled-presentation', 'world-scene', 'world-scene-runtime', 'scene-presentation']) {
|
|
320
|
+
try { await verifyRuntimeSnapshot(platform, kind); }
|
|
321
|
+
catch { errors.push(issue('SCHEMA_VERSION_INCOMPATIBLE', `chrona.${kind}.lock.json`, 'Platform runtime snapshot is missing, altered or incompatible.', 'Restore the complete locked Kit release; do not edit or regenerate platform locks.')); }
|
|
322
|
+
}
|
|
323
|
+
for (const kind of ['document-presentation', 'ground-spaces', 'ground-endpoint', 'scene-interaction-v2', 'personal-state']) {
|
|
324
|
+
if (!hasRuntimeSnapshot(kind)) continue;
|
|
325
|
+
try { await verifyRuntimeSnapshot(platform, kind); }
|
|
326
|
+
catch { errors.push(issue('SCHEMA_VERSION_INCOMPATIBLE', `${kind}.snapshot.lock.json`,
|
|
327
|
+
'The shared material Reader snapshot is missing or altered.', 'Restore the complete locked Kit; do not edit source or platform locks to bypass this check.')); }
|
|
328
|
+
}
|
|
329
|
+
if (errors.length) return { report: baseReport({ status: 'failed', errors }), resolution: null };
|
|
330
|
+
// The package validator imports event and scene models. Verify their pinned runtime
|
|
331
|
+
// snapshot before importing, including when this runs in a generated project.
|
|
332
|
+
const { validatePackageModel } = await import('../contracts/ugc/v1/conformance/js/package-validator.mjs');
|
|
333
|
+
let tree = { files: [], errors: [] };
|
|
334
|
+
try {
|
|
335
|
+
tree = await walkContent(contentRoot);
|
|
336
|
+
errors.push(...tree.errors);
|
|
337
|
+
} catch {
|
|
338
|
+
errors.push(issue('INVALID_PACKAGE_PATH', 'content/', 'Creator project has no readable content directory.', 'Create content/ from a reviewed Kit template.'));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
let manifest;
|
|
342
|
+
try {
|
|
343
|
+
manifest = await readJson(path.join(contentRoot, 'manifest.json'), 'content/manifest.json');
|
|
344
|
+
} catch (error) {
|
|
345
|
+
errors.push(error);
|
|
346
|
+
return { report: baseReport({ status: 'failed', errors }), resolution: null };
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
const documents = {};
|
|
350
|
+
for (const [name, relative] of Object.entries({
|
|
351
|
+
components: manifest.ecs?.components,
|
|
352
|
+
prefabs: manifest.ecs?.prefabs,
|
|
353
|
+
scene: manifest.ecs?.scene
|
|
354
|
+
})) {
|
|
355
|
+
try {
|
|
356
|
+
const absolute = await assertRegularInside(contentRoot, relative ?? '');
|
|
357
|
+
if ((await lstat(absolute)).size > 262144) throw issue('INVALID_COMPONENT_DOCUMENT', relative, 'ECS model file exceeds the initialization budget.', 'Reduce the ECS declarations and scene data.');
|
|
358
|
+
documents[name] = await readJson(absolute, relative ?? `ecs/${name}.json`);
|
|
359
|
+
} catch (error) {
|
|
360
|
+
errors.push(error);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
let packageResult;
|
|
365
|
+
if (Object.hasOwn(manifest, 'documentPresentation')) {
|
|
366
|
+
try {
|
|
367
|
+
if (manifest.documentPresentation !== 'presentation/document.json') throw issue('INVALID_PACKAGE_PATH', '$.documentPresentation',
|
|
368
|
+
'Document source path is fixed.', 'Use presentation/document.json inside content/.');
|
|
369
|
+
const bytes = await readBoundedContentAsset(contentRoot, manifest.documentPresentation, 2097152);
|
|
370
|
+
documents.documentPresentation = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes));
|
|
371
|
+
} catch (error) { errors.push(error.path ? error : issue('INVALID_MANIFEST', 'presentation/document.json',
|
|
372
|
+
'Document source is missing, linked, invalid UTF-8 JSON or exceeds 2 MiB.',
|
|
373
|
+
'Restore the declared regular source and exact inventory; do not increase the shared limit.')); }
|
|
374
|
+
} else if (tree.files.includes('presentation/document.json')) errors.push(issue('INVALID_MANIFEST', 'presentation/document.json',
|
|
375
|
+
'Document source requires its explicit manifest marker.', 'Declare documentPresentation and keep the required execution Profile; a file alone cannot authorize the mode.'));
|
|
376
|
+
if (Object.hasOwn(manifest, 'personalState')) {
|
|
377
|
+
try {
|
|
378
|
+
// The finite declaration is authored data, not an Auth/Writer grant.
|
|
379
|
+
// Parse raw bytes through the same pinned gate used by Builder, before
|
|
380
|
+
// JSON.parse can discard duplicate or escaped-alias property names.
|
|
381
|
+
if (!hasRuntimeSnapshot('personal-state')) throw new Error();
|
|
382
|
+
const { validatePersonalStateMarker, parsePersonalStateDeclaration } = await import('../contracts/ugc/personal-state/v1/declaration.mjs');
|
|
383
|
+
const marker = validatePersonalStateMarker(manifest.personalState);
|
|
384
|
+
documents.personalState = parsePersonalStateDeclaration(await readBoundedContentAsset(contentRoot, marker.path, 65536), manifest);
|
|
385
|
+
} catch { errors.push(issue('PERSONAL_STATE_INVALID', 'rules/personal-state.json',
|
|
386
|
+
'Personal declaration is missing, linked, oversized, invalid UTF-8, duplicated or incompatible with content identity.',
|
|
387
|
+
'Use the fixed marker and shared personal-state/v1 declaration; restore the locked Reader, not a storage permission.')); }
|
|
388
|
+
} else if (tree.files.includes('rules/personal-state.json')) errors.push(issue('INVALID_MANIFEST', 'rules/personal-state.json',
|
|
389
|
+
'Personal declaration requires its explicit Document marker.', 'Declare personalState only for supported Document content; a data file cannot authorize a policy.'));
|
|
390
|
+
if (Object.hasOwn(manifest, 'scenePresentation')) {
|
|
391
|
+
try {
|
|
392
|
+
if (manifest.scenePresentation !== 'presentation/scene.json') throw new Error();
|
|
393
|
+
const bytes = await readBoundedContentAsset(contentRoot, manifest.scenePresentation, 65536);
|
|
394
|
+
documents.scenePresentation = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes));
|
|
395
|
+
} catch { errors.push(issue('INVALID_MANIFEST', 'presentation/scene.json', 'Scene presentation is missing, invalid, linked or exceeds 64 KiB.', 'Repair the declared data file without changing platform limits.')); }
|
|
396
|
+
} else if (tree.files.some(file => file.path === 'presentation/scene.json' || file === 'presentation/scene.json')) {
|
|
397
|
+
errors.push(issue('INVALID_MANIFEST', 'presentation/scene.json', 'Scene presentation requires an explicit manifest marker.', 'Declare the marker and keep its required Capability.'));
|
|
398
|
+
}
|
|
399
|
+
if (Object.hasOwn(manifest, 'worldScene')) {
|
|
400
|
+
try {
|
|
401
|
+
if (manifest.worldScene !== 'scene/world.json') throw issue('INVALID_PACKAGE_PATH', '$.worldScene', 'World scene path is fixed.', 'Use scene/world.json inside content/.');
|
|
402
|
+
let bytes;
|
|
403
|
+
try { bytes = await readBoundedContentAsset(contentRoot, manifest.worldScene, 65536); }
|
|
404
|
+
catch (error) { throw issue(error.code === 'WORLD_SCENE_BUDGET_EXCEEDED' ? 'INVALID_MANIFEST' : 'INVALID_PACKAGE_PATH', manifest.worldScene,
|
|
405
|
+
'World scene declaration is unavailable, changed, non-regular or exceeds 64 KiB.', 'Restore the regular declaration inside content/ without increasing platform limits.'); }
|
|
406
|
+
try { documents.worldScene = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); }
|
|
407
|
+
catch { throw issue('INVALID_MANIFEST', manifest.worldScene, 'World scene declaration requires valid UTF-8 JSON.', 'Repair the declaration against world-scene/v2.'); }
|
|
408
|
+
} catch (error) { errors.push(error); }
|
|
409
|
+
}
|
|
410
|
+
if (Object.hasOwn(manifest, 'resourceBindings')) {
|
|
411
|
+
try {
|
|
412
|
+
// Do not resolve arbitrary author input as a path, even before Manifest validation.
|
|
413
|
+
if (manifest.resourceBindings !== 'bindings/resources.json') throw issue('INVALID_PACKAGE_PATH', '$.resourceBindings', 'Resource binding path is fixed.', 'Use bindings/resources.json inside content/.');
|
|
414
|
+
const absolute = await assertRegularInside(contentRoot, manifest.resourceBindings);
|
|
415
|
+
if ((await lstat(absolute)).size > 65536) throw issue('INVALID_RESOURCE', manifest.resourceBindings, 'Resource binding document exceeds 64 KiB.', 'Reduce the binding declaration; do not increase platform limits.');
|
|
416
|
+
documents.resourceBindings = await readJson(absolute, manifest.resourceBindings);
|
|
417
|
+
} catch (error) { errors.push(error); }
|
|
418
|
+
}
|
|
419
|
+
if (Object.hasOwn(manifest, 'groundRules')) {
|
|
420
|
+
try {
|
|
421
|
+
if (manifest.groundRules !== 'rules/ground.json') throw issue('INVALID_PACKAGE_PATH', '$.groundRules', 'Ground rules path is fixed.', 'Use rules/ground.json inside content/.');
|
|
422
|
+
const absolute = await assertRegularInside(contentRoot, manifest.groundRules);
|
|
423
|
+
if ((await lstat(absolute)).size > 65536) throw issue('INVALID_MANIFEST', manifest.groundRules, 'Ground rules document exceeds 64 KiB.', 'Reduce the declaration; do not increase platform limits.');
|
|
424
|
+
documents.groundRules = await readJson(absolute, manifest.groundRules);
|
|
425
|
+
} catch (error) { errors.push(error); }
|
|
426
|
+
}
|
|
427
|
+
if (Object.hasOwn(manifest, 'sceneInteractions')) {
|
|
428
|
+
try {
|
|
429
|
+
if (manifest.sceneInteractions !== 'rules/interactions.json') throw issue('INVALID_PACKAGE_PATH', '$.sceneInteractions', 'Scene interaction path is fixed.', 'Use rules/interactions.json inside content/.');
|
|
430
|
+
const absolute = await assertRegularInside(contentRoot, manifest.sceneInteractions);
|
|
431
|
+
if ((await lstat(absolute)).size > 65536) throw issue('INVALID_MANIFEST', manifest.sceneInteractions, 'Scene interaction document exceeds 64 KiB.', 'Reduce the declaration; do not increase platform limits.');
|
|
432
|
+
documents.sceneInteractions = await readJson(absolute, manifest.sceneInteractions);
|
|
433
|
+
} catch (error) { errors.push(error); }
|
|
434
|
+
}
|
|
435
|
+
if (Object.hasOwn(manifest, 'privateEvents')) {
|
|
436
|
+
try {
|
|
437
|
+
if (manifest.privateEvents !== 'ecs/events.json') throw issue('INVALID_PACKAGE_PATH', '$.privateEvents', 'Private event path is fixed.', 'Use ecs/events.json inside content/.');
|
|
438
|
+
const absolute = await assertRegularInside(contentRoot, manifest.privateEvents);
|
|
439
|
+
if ((await lstat(absolute)).size > 131072) throw issue('INVALID_MANIFEST', manifest.privateEvents, 'Private event declaration exceeds 128 KiB.', 'Reduce the declaration without increasing platform limits.');
|
|
440
|
+
const bytes = await readFile(absolute);
|
|
441
|
+
if (bytes.length > 131072) throw issue('INVALID_MANIFEST', manifest.privateEvents, 'Private event declaration exceeds 128 KiB.', 'Reduce the declaration without increasing platform limits.');
|
|
442
|
+
try { documents.privateEvents = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); }
|
|
443
|
+
catch { throw issue('INVALID_MANIFEST', manifest.privateEvents, 'Private event declaration requires valid UTF-8 JSON.', 'Repair the declaration against private-events/v1.'); }
|
|
444
|
+
} catch (error) { errors.push(error); }
|
|
445
|
+
}
|
|
446
|
+
if (documents.components && documents.prefabs && documents.scene) {
|
|
447
|
+
packageResult = validatePackageModel({ manifest, ...documents });
|
|
448
|
+
errors.push(...packageResult.errors);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
let resolution = null;
|
|
452
|
+
let privateModel = null;
|
|
453
|
+
let capabilityResult = null;
|
|
454
|
+
let sceneAssetGraph = null, maxAssetBytes = 0;
|
|
455
|
+
if (packageResult?.valid) {
|
|
456
|
+
const [registry, policy, creatorContract] = await Promise.all([
|
|
457
|
+
readJson(path.join(platform, 'contracts/ugc/registry/v1/registry.json'), 'contracts/ugc/registry/v1/registry.json'),
|
|
458
|
+
readJson(path.join(platform, 'contracts/ugc/registry/v1/resolution-policy.json'), 'contracts/ugc/registry/v1/resolution-policy.json'),
|
|
459
|
+
readJson(path.join(platform, 'contracts/ugc/v1/creator-sdk.json'), 'contracts/ugc/v1/creator-sdk.json')
|
|
460
|
+
]);
|
|
461
|
+
resolution = resolveCapabilities({ manifest, registry, policy });
|
|
462
|
+
maxAssetBytes = Math.min(manifest.requestedBudgets.maxAssetBytes, policy.budgetCaps[manifest.executionTier].maxAssetBytes);
|
|
463
|
+
if (resolution.status === 'needs_capability') capabilityResult = resolution;
|
|
464
|
+
else errors.push(...resolution.errors);
|
|
465
|
+
if (resolution.status === 'passed') {
|
|
466
|
+
try { privateModel = privateEcsModel({ contentId: manifest.contentId, ...documents, maxEntities: resolution.effectiveBudgets.effective.maxEntities }); }
|
|
467
|
+
catch { errors.push(issue('INVALID_COMPONENT_FIELD', 'content/ecs', 'Private ECS defaults, prefab/scene values, references or effective budgets are invalid.', 'Check components, prefabs and scene against contracts/ugc/ecs-runtime/v1/api.json; do not change platform limits.')); }
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
if (capabilityResult) {
|
|
471
|
+
try {
|
|
472
|
+
const proposalAbsolute = await assertRegularInside(root, capabilityResult.proposalPath);
|
|
473
|
+
const proposal = await readJson(proposalAbsolute, capabilityResult.proposalPath);
|
|
474
|
+
const proposalResult = validateCapabilityProposal(proposal);
|
|
475
|
+
errors.push(...proposalResult.errors.map(error => ({ ...error, path: capabilityResult.proposalPath })));
|
|
476
|
+
if (proposal.requestedCapability?.id !== capabilityResult.requestedCapability.id || proposal.requestedCapability?.version !== capabilityResult.requestedCapability.version || proposal.content?.contentId !== manifest.contentId || proposal.content?.contentVersion !== manifest.contentVersion) {
|
|
477
|
+
errors.push(issue('INVALID_CAPABILITY_PROPOSAL', capabilityResult.proposalPath, 'Proposal does not match the missing Capability and content version.', 'Bind the proposal to the exact required Capability and current manifest identity.'));
|
|
478
|
+
}
|
|
479
|
+
} catch (error) {
|
|
480
|
+
if (error.code !== 'INVALID_PACKAGE_PATH') errors.push(error);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
for (const side of ['shared', 'client']) {
|
|
485
|
+
if (manifest.entrypoints[side]) errors.push(...await validateSourceGraph({ contentRoot, entrypoint: manifest.entrypoints[side], side, contract: creatorContract }));
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
if (packageResult?.valid) {
|
|
490
|
+
if (manifest.worldScene) {
|
|
491
|
+
try { sceneAssetGraph = await inspectProjectScene({ contentRoot, manifest, declaration: documents.worldScene, maxAssetBytes }); }
|
|
492
|
+
catch (error) { errors.push(issue(error.code, manifest.worldScene, 'Scene dependency graph is missing, inconsistent or exceeds the asset budget.', 'Repair the complete indexed scene using the locked world-scene contract; missing Capabilities remain required.')); }
|
|
493
|
+
}
|
|
494
|
+
errors.push(...await validateAssets(contentRoot, manifest, tree.files, sceneAssetGraph, maxAssetBytes, documents.documentPresentation));
|
|
495
|
+
try {
|
|
496
|
+
const bytes = await readBoundedContentAsset(contentRoot, manifest.provenance, 2097152);
|
|
497
|
+
errors.push(...validateProvenance(JSON.parse(bytes), manifest, sceneAssetGraph));
|
|
498
|
+
} catch (error) {
|
|
499
|
+
errors.push(issue('INVALID_RESOURCE', manifest.provenance, 'Provenance is missing, oversized or invalid.', 'Use a regular bounded provenance JSON document.'));
|
|
500
|
+
}
|
|
501
|
+
const testDocuments = [];
|
|
502
|
+
for (const name of ['rules', 'scenarios']) {
|
|
503
|
+
const relative = manifest.tests[name];
|
|
504
|
+
try {
|
|
505
|
+
const testPath = await assertRegularInside(contentRoot, relative);
|
|
506
|
+
const document = await readJson(testPath, relative);
|
|
507
|
+
testDocuments.push(document);
|
|
508
|
+
errors.push(...validateDeclaredCases(document, relative));
|
|
509
|
+
} catch (error) {
|
|
510
|
+
errors.push(error);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
try { normalizeTestDocuments(testDocuments); }
|
|
514
|
+
catch { errors.push(issue('INVALID_FIELD_TYPE', 'content/tests', 'Tests require 1-128 valid cases and at most 256 lifecycle steps.', 'Use bounded unit cases or explicit start-to-stop scenarios.')); }
|
|
515
|
+
try {
|
|
516
|
+
const budgetPath = await assertRegularInside(contentRoot, manifest.tests.budgets);
|
|
517
|
+
errors.push(...validateBudgetTests(await readJson(budgetPath, manifest.tests.budgets), manifest.tests.budgets));
|
|
518
|
+
} catch (error) {
|
|
519
|
+
errors.push(error);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
const warnings = [...(packageResult?.warnings ?? []), ...(resolution?.warnings ?? [])];
|
|
524
|
+
if (errors.length > 0) return { report: baseReport({ status: 'failed', errors, warnings }), resolution, sceneAssetGraph };
|
|
525
|
+
if (capabilityResult) return { report: baseReport({ status: 'needs_capability', errors: capabilityResult.errors, warnings, capabilityResult }), resolution, sceneAssetGraph };
|
|
526
|
+
let privateFieldTable, privateEventModel, sceneInteractionPlan;
|
|
527
|
+
try {
|
|
528
|
+
// Import only after the pinned snapshot and all source checks have passed.
|
|
529
|
+
const { PrivateStateProjection } = await import(pathToFileURL(path.join(platform, 'contracts/ugc/private-state/v1/projection.mjs')).href);
|
|
530
|
+
privateFieldTable = new PrivateStateProjection(privateModel).fieldTable();
|
|
531
|
+
if (manifest.sceneInteractions) {
|
|
532
|
+
if (['2.0.0','2.1.0'].includes(documents.sceneInteractions?.schemaVersion)) {
|
|
533
|
+
const { prepareSceneInteractionModelV2 } = await import(pathToFileURL(path.join(platform, 'contracts/ugc/scene-interaction/v2/scene-model.mjs')).href);
|
|
534
|
+
const { normalizeGroundSpatialSource, prepareGroundSpaces } = await import(pathToFileURL(path.join(platform, 'contracts/ugc/ground-rules/v2/ground-rules.mjs')).href);
|
|
535
|
+
const groundRules = documents.groundRules?.schemaVersion === '2.2.0'
|
|
536
|
+
? (await import(pathToFileURL(path.join(platform, 'contracts/ugc/ground-rules/v2.2/spatial-source.mjs')).href)).normalizeGroundEndpointSource(documents.groundRules)
|
|
537
|
+
: documents.groundRules?.schemaVersion === '2.1.0' ? normalizeGroundSpatialSource(documents.groundRules) : prepareGroundSpaces(documents.groundRules);
|
|
538
|
+
sceneInteractionPlan = prepareSceneInteractionModelV2({ source: documents.sceneInteractions, prefabs: documents.prefabs, scene: documents.scene,
|
|
539
|
+
groundRules });
|
|
540
|
+
} else sceneInteractionPlan = prepareSceneInteractionModel({ source: documents.sceneInteractions,
|
|
541
|
+
prefabs: documents.prefabs, scene: documents.scene });
|
|
542
|
+
}
|
|
543
|
+
if (manifest.privateEvents) {
|
|
544
|
+
const { preparePrivateEventModel } = await import(pathToFileURL(path.join(platform, 'contracts/ugc/private-events/v1/declaration.mjs')).href);
|
|
545
|
+
privateEventModel = preparePrivateEventModel({ manifest, scene: documents.scene, privateEvents: documents.privateEvents });
|
|
546
|
+
}
|
|
547
|
+
} catch {
|
|
548
|
+
return { report: baseReport({ status: 'failed', warnings, errors: [issue('INVALID_COMPONENT_FIELD', 'content/ecs',
|
|
549
|
+
'Private state field table could not be prepared.', 'Repair declarations using the current private-state contract; do not modify platform indices or locks.')] }), resolution };
|
|
550
|
+
}
|
|
551
|
+
return { report: baseReport({ status: 'passed', warnings }), resolution, privateModel, privateFieldTable, privateEventModel, sceneInteractionPlan,
|
|
552
|
+
documentPresentation: documents.documentPresentation, sceneAssetGraph };
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export async function runProjectTests({ projectRoot, platformRoot }) {
|
|
556
|
+
const validation = await validateProject({ projectRoot, platformRoot });
|
|
557
|
+
if (!validation.report.valid) {
|
|
558
|
+
return {
|
|
559
|
+
schemaVersion: VERSION,
|
|
560
|
+
status: validation.report.status,
|
|
561
|
+
valid: false,
|
|
562
|
+
cases: [],
|
|
563
|
+
errors: validation.report.errors,
|
|
564
|
+
warnings: validation.report.warnings,
|
|
565
|
+
sensitiveValuesRedacted: true
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
const root = path.resolve(projectRoot);
|
|
570
|
+
const contentRoot = path.join(root, 'content');
|
|
571
|
+
const manifest = await readJson(path.join(contentRoot, 'manifest.json'), 'content/manifest.json');
|
|
572
|
+
const creatorContract = await readJson(path.join(platformRoot ?? projectRoot, 'contracts/ugc/v1/creator-sdk.json'), 'contracts/ugc/v1/creator-sdk.json');
|
|
573
|
+
const [rules, scenarios, budgets] = await Promise.all([
|
|
574
|
+
readJson(path.join(contentRoot, manifest.tests.rules), manifest.tests.rules),
|
|
575
|
+
readJson(path.join(contentRoot, manifest.tests.scenarios), manifest.tests.scenarios),
|
|
576
|
+
readJson(path.join(contentRoot, manifest.tests.budgets), manifest.tests.budgets)
|
|
577
|
+
]);
|
|
578
|
+
const { errors, results } = await runLocalSharedCases({ contentRoot, platformRoot: platformRoot ?? projectRoot,
|
|
579
|
+
manifest, creatorContract, rules, scenarios, budgets, validation });
|
|
580
|
+
|
|
581
|
+
if (manifest.entrypoints.client) {
|
|
582
|
+
let privateHarness;
|
|
583
|
+
try {
|
|
584
|
+
const { createPresentation } = await import(`${pathToFileURL(path.join(contentRoot, manifest.entrypoints.client)).href}?test=${Date.now()}`);
|
|
585
|
+
const commands = [];
|
|
586
|
+
privateHarness = createPrivateHarness(validation.privateModel, 'client', {
|
|
587
|
+
capabilities: validation.resolution.capabilitiesLock.resolved, executionTier: manifest.executionTier
|
|
588
|
+
});
|
|
589
|
+
const presentation = createPresentation({
|
|
590
|
+
ecs: privateHarness.ecs,
|
|
591
|
+
presentation: { enqueue: command => { commands.push(command); } },
|
|
592
|
+
clock: { tick: 1 }
|
|
593
|
+
});
|
|
594
|
+
privateHarness.assertValid();
|
|
595
|
+
privateHarness.begin();
|
|
596
|
+
presentation.onEvent?.({ type: 'combat.resolved', payload: { actorId: 'player-a' } });
|
|
597
|
+
privateHarness.assertValid();
|
|
598
|
+
const passed = commands.length <= budgets.maxPresentationCommandsPerCase;
|
|
599
|
+
results.push({ id: 'client-presentation-smoke', status: passed ? 'passed' : 'failed' });
|
|
600
|
+
if (!passed) errors.push(issue('INVALID_GAMEPLAY_SOURCE', manifest.entrypoints.client, 'Client presentation exceeded its declared per-case command budget.', 'Reduce presentation commands or request a reviewed budget change.'));
|
|
601
|
+
} catch {
|
|
602
|
+
results.push({ id: 'client-presentation-smoke', status: 'failed' });
|
|
603
|
+
errors.push(issue('INVALID_GAMEPLAY_SOURCE', manifest.entrypoints.client, 'Client presentation could not run its local smoke test.', 'Repair the client export and injected API usage.'));
|
|
604
|
+
} finally { privateHarness?.rollback(); }
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
return {
|
|
608
|
+
schemaVersion: VERSION,
|
|
609
|
+
status: errors.length === 0 ? 'passed' : 'failed',
|
|
610
|
+
valid: errors.length === 0,
|
|
611
|
+
cases: results,
|
|
612
|
+
errors,
|
|
613
|
+
warnings: validation.report.warnings,
|
|
614
|
+
sensitiveValuesRedacted: true
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// Platform engineering entry, never a CLI/MCP grant override. Only call with
|
|
619
|
+
// validated inputs and trusted local source; public builds use QuickJS instead.
|
|
620
|
+
export async function runLocalSharedCases({ contentRoot, platformRoot, manifest, creatorContract, rules, scenarios, budgets, validation }) {
|
|
621
|
+
await verifyRuntimeSnapshot(platformRoot, 'private-events');
|
|
622
|
+
await verifyRuntimeSnapshot(platformRoot, 'gameplay-tests');
|
|
623
|
+
const { createLocalEventRuntime } = await import('./private-event-harness.mjs');
|
|
624
|
+
const errors = [], results = [];
|
|
625
|
+
for (const testCase of normalizeTestDocuments([rules, scenarios])) {
|
|
626
|
+
const calls = [];
|
|
627
|
+
let totalCalls = 0;
|
|
628
|
+
let currentStep;
|
|
629
|
+
let tickCalls = [];
|
|
630
|
+
const granted = new Map(validation.resolution.capabilitiesLock.resolved.map(capability => [capability.id, capability]));
|
|
631
|
+
let gatewayFailed = false;
|
|
632
|
+
const recordCall = (id, payload, encoded = payload) => {
|
|
633
|
+
const capability = granted.get(id);
|
|
634
|
+
if (!currentStep || !capability || !capability.executionSides.includes('node-host')
|
|
635
|
+
|| tickCalls.filter(call => call.id === id).length >= capability.limits.maxCallsPerTick
|
|
636
|
+
|| tickCalls.length >= validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick
|
|
637
|
+
|| totalCalls + calls.length >= budgets.maxCapabilityCallsPerCase
|
|
638
|
+
|| Buffer.byteLength(JSON.stringify(encoded)) > capability.limits.maxInputBytes) throw new Error('Capability call rejected.');
|
|
639
|
+
const call = { id, payload: structuredClone(payload) };
|
|
640
|
+
calls.push(call); tickCalls.push(call);
|
|
641
|
+
};
|
|
642
|
+
let eventRuntime, privateHarness, temporary;
|
|
643
|
+
try {
|
|
644
|
+
const sceneDriver = testCase.steps.some(step => step.lifecycle === 'scene')
|
|
645
|
+
? createSceneTestDriver({ plan: validation.sceneInteractionPlan, capabilities: [...granted.values()] }) : null;
|
|
646
|
+
eventRuntime = createLocalEventRuntime({ model: validation.privateEventModel, privateModel: validation.privateModel,
|
|
647
|
+
capabilities: [...granted.values()], maxCallsPerTick: validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick, recordCall });
|
|
648
|
+
privateHarness = createPrivateHarness(validation.privateModel, 'shared', {
|
|
649
|
+
capabilities: [...granted.values()], executionTier: manifest.executionTier, eventRuntime
|
|
650
|
+
});
|
|
651
|
+
const api = {
|
|
652
|
+
ecs: privateHarness.ecs,
|
|
653
|
+
capabilities: createLocalCapabilityGateway({ granted, creatorContract, isActive: () => Boolean(currentStep),
|
|
654
|
+
recordCall, onReject: () => { gatewayFailed = true; } }),
|
|
655
|
+
events: privateHarness.events,
|
|
656
|
+
clock: Object.freeze({ get tick() { return currentStep?.tick ?? 0; } }),
|
|
657
|
+
random: Object.freeze({ seeded: key => createHash('sha256').update(`${currentStep?.seed ?? 0}:${String(key)}`).digest().readUInt32BE(0) / 0x100000000 })
|
|
658
|
+
};
|
|
659
|
+
// Fresh file URLs for the complete same-side module graph, not only
|
|
660
|
+
// a cache-busting entrypoint. This is still trusted native execution.
|
|
661
|
+
temporary = await mkdtemp(path.join(os.tmpdir(), 'chrona-local-scenario-'));
|
|
662
|
+
await cp(path.join(contentRoot, 'gameplay/shared'), path.join(temporary, 'shared'), { recursive: true });
|
|
663
|
+
await cp(path.join(platformRoot, 'sdk'), path.join(temporary, 'sdk'), { recursive: true });
|
|
664
|
+
await writeFile(path.join(temporary, 'package.json'), JSON.stringify({ type: 'module', imports: { '#chrona/shared': './sdk/shared/index.js' } }));
|
|
665
|
+
const entry = path.relative('gameplay/shared', manifest.entrypoints.shared);
|
|
666
|
+
const { createSystem } = await import(pathToFileURL(path.join(temporary, 'shared', entry)).href);
|
|
667
|
+
const system = createSystem(api);
|
|
668
|
+
privateHarness.assertValid();
|
|
669
|
+
if (gatewayFailed || calls.length > 0 || !system || typeof system !== 'object' || typeof system.then === 'function') throw new Error('Invalid factory.');
|
|
670
|
+
let passed = true;
|
|
671
|
+
for (const step of testCase.steps) {
|
|
672
|
+
if (currentStep?.tick !== step.tick) tickCalls = [];
|
|
673
|
+
currentStep = step;
|
|
674
|
+
calls.length = 0;
|
|
675
|
+
let input = step.input;
|
|
676
|
+
if (step.lifecycle === 'scene') {
|
|
677
|
+
const evaluated = sceneDriver.evaluate(step), { status, code, duplicate } = evaluated.result;
|
|
678
|
+
if (canonicalJson({status,code,duplicate}) !== canonicalJson(step.expectedSceneResult)) { passed = false; break; }
|
|
679
|
+
input = evaluated.event;
|
|
680
|
+
if (!input) {
|
|
681
|
+
if (step.expectedCapabilityCalls.length) { passed = false; break; }
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
const capability = granted.get('interaction.scene-target');
|
|
685
|
+
if (tickCalls.filter(call=>call.id==='interaction.scene-target').length >= capability.limits.maxCallsPerTick
|
|
686
|
+
|| tickCalls.length >= validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick
|
|
687
|
+
|| totalCalls >= budgets.maxCapabilityCallsPerCase) throw new Error('Scene input budget rejected.');
|
|
688
|
+
tickCalls.push({id:'interaction.scene-target'});totalCalls++;
|
|
689
|
+
}
|
|
690
|
+
privateHarness.begin(step.coreFixture, step.tick);
|
|
691
|
+
const handler = system[{ start: 'onStart', tick: 'onTick', event: 'onEvent', scene: 'onEvent', stop: 'onStop' }[step.lifecycle]];
|
|
692
|
+
if (handler !== undefined && typeof handler !== 'function') throw new Error('Invalid lifecycle handler.');
|
|
693
|
+
const output = handler?.call(system, structuredClone(input));
|
|
694
|
+
if (output && (typeof output.then === 'function' || Object.prototype.toString.call(output) === '[object Promise]')) throw new Error('Asynchronous lifecycle.');
|
|
695
|
+
privateHarness.assertValid();
|
|
696
|
+
totalCalls += calls.length;
|
|
697
|
+
passed = !gatewayFailed && canonicalJson(calls) === canonicalJson(step.expectedCapabilityCalls) && totalCalls <= budgets.maxCapabilityCallsPerCase;
|
|
698
|
+
if (!passed) break;
|
|
699
|
+
privateHarness.commit();
|
|
700
|
+
}
|
|
701
|
+
results.push({ id: testCase.id, status: passed ? 'passed' : 'failed' });
|
|
702
|
+
if (!passed) errors.push(issue('INVALID_GAMEPLAY_SOURCE', manifest.tests.scenarios, `Declared case ${testCase.id} did not produce its expected Capability calls.`, 'Repair the shared rule or the scenario expectation without weakening required behavior.'));
|
|
703
|
+
} catch {
|
|
704
|
+
results.push({ id: testCase.id, status: 'failed' });
|
|
705
|
+
errors.push(issue('INVALID_GAMEPLAY_SOURCE', manifest.entrypoints.shared, `Declared case ${testCase.id} raised an exception.`, 'Repair the shared rule using only the injected SDK input.'));
|
|
706
|
+
} finally {
|
|
707
|
+
privateHarness?.rollback();
|
|
708
|
+
eventRuntime?.close();
|
|
709
|
+
if (temporary) await rm(temporary, { recursive: true, force: true });
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return { results, errors };
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export async function writeJsonReport(absolute, value) {
|
|
716
|
+
await mkdir(path.dirname(absolute), { recursive: true });
|
|
717
|
+
await writeFile(absolute, `${JSON.stringify(value, null, 2)}\n`, { mode: 0o600 });
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
// Read actual validator/build-producer outcomes rather than maintaining a
|
|
721
|
+
// second capability support list. Building here never imports author modules
|
|
722
|
+
// and never opens a Runtime Host. It does not synchronize author provenance.
|
|
723
|
+
export async function assessCreatorTargetSupport({ projectRoot, probeLocalBuild = true } = {}) {
|
|
724
|
+
if (typeof projectRoot !== 'string' || typeof probeLocalBuild !== 'boolean') {
|
|
725
|
+
throw Object.assign(new Error('Invalid support request.'), { code: 'INVALID_SUPPORT_REQUEST' });
|
|
726
|
+
}
|
|
727
|
+
const { kitRoot, readCreatorProject } = await import('./creator-project.mjs');
|
|
728
|
+
// Prepared imports can report verified source facts before normal Creator
|
|
729
|
+
// binding exists. They must not pretend to be valid/uploadable projects.
|
|
730
|
+
try {
|
|
731
|
+
await lstat(path.join(projectRoot, 'chrona.project.json'));
|
|
732
|
+
} catch (error) {
|
|
733
|
+
if (error.code !== 'ENOENT') throw error;
|
|
734
|
+
const { assessPreparedDocumentSupport } = await import('./document-presentation.mjs');
|
|
735
|
+
return assessPreparedDocumentSupport(kitRoot, projectRoot);
|
|
736
|
+
}
|
|
737
|
+
const project = await readCreatorProject(projectRoot);
|
|
738
|
+
const checked = await validateProject({ projectRoot: project.root, platformRoot: kitRoot });
|
|
739
|
+
const unknown = () => ({ support: 'unknown', ready: false, observed: false, reason: 'TARGET_EXECUTION_NOT_OBSERVED' });
|
|
740
|
+
const targets = { local: { ...unknown(), buildSupport: 'unknown' }, preview: unknown(), public: unknown() };
|
|
741
|
+
let localBuilder = null, temporary;
|
|
742
|
+
if (checked.report.valid && probeLocalBuild) {
|
|
743
|
+
const { verifyLocalBuilderSnapshot } = await import('./local-builder.mjs');
|
|
744
|
+
localBuilder = await verifyLocalBuilderSnapshot();
|
|
745
|
+
temporary = await realpath(await mkdtemp(path.join(os.tmpdir(), 'chrona-support-')));
|
|
746
|
+
try {
|
|
747
|
+
const producer = await import(pathToFileURL(path.join(kitRoot, 'compiler/source', localBuilder.entrypoint)));
|
|
748
|
+
await producer.buildLocalContentSnapshot({ projectRoot: project.root, kitRoot, outputDirectory: path.join(temporary, 'snapshot') });
|
|
749
|
+
targets.local = { ...unknown(), buildSupport: 'supported', buildObserved: true, reason: 'RUNTIME_EXECUTION_NOT_OBSERVED' };
|
|
750
|
+
} catch (error) {
|
|
751
|
+
const code = typeof error?.code === 'string' && /^[A-Z][A-Z0-9_]{2,79}$/.test(error.code) ? error.code : 'LOCAL_BUILD_OBSERVATION_FAILED';
|
|
752
|
+
// These are producer policy rejections, not a new capability whitelist.
|
|
753
|
+
const rejected = ['LOCAL_SCENE_PROFILE_REQUIRED', 'LOCAL_PRIVATE_CAPABILITY_UNSUPPORTED', 'NEEDS_CAPABILITY'].includes(code);
|
|
754
|
+
targets.local = { ...unknown(), support: rejected ? 'unsupported' : 'unknown', buildSupport: rejected ? 'unsupported' : 'unknown',
|
|
755
|
+
buildObserved: true, reason: code };
|
|
756
|
+
} finally { await rm(temporary, { recursive: true, force: true }); }
|
|
757
|
+
}
|
|
758
|
+
return { schemaVersion: '1.0.0', operation: 'creation-support', status: 'passed', toolchain: project.toolchain,
|
|
759
|
+
validation: checked.report, targets, localBuilder, generatedCodeExecuted: false,
|
|
760
|
+
executedCreatorCode: false, runtimeStarted: false, published: false,
|
|
761
|
+
nextAction: !checked.report.valid ? 'repair-validation' : targets.local.buildSupport === 'unsupported'
|
|
762
|
+
? 'review-local-producer-rejection-before-generating-assets' : 'verify-selected-runtime-and-target-before-claiming-playable' };
|
|
763
|
+
}
|