@chrona-city/ugc-kit 1.5.13 → 1.6.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/.agents/skills/chrona-3d-assets/SKILL.md +15 -0
- package/.agents/skills/chrona-ecs-creator/SKILL.md +17 -0
- package/.agents/skills/chrona-gameplay-js/SKILL.md +19 -0
- package/.agents/skills/chrona-realtime/SKILL.md +23 -0
- package/.agents/skills/chrona-repair/SKILL.md +13 -0
- package/README.md +26 -8
- package/bin/chrona.mjs +6 -2
- package/chrona.contract.lock.json +74 -6
- package/chrona.controlled-presentation.lock.json +8 -8
- package/chrona.core.lock.json +16 -12
- package/chrona.document-presentation.lock.json +52 -0
- package/chrona.ecs.lock.json +3 -3
- package/chrona.gameplay-tests.lock.json +9 -9
- package/chrona.ground-endpoint.lock.json +28 -0
- package/chrona.ground-spaces.lock.json +40 -0
- package/chrona.personal-state.lock.json +28 -0
- package/chrona.pipeline.lock.json +10 -10
- package/chrona.private-state-view.lock.json +2 -2
- package/chrona.private-state.lock.json +2 -2
- package/chrona.registry.lock.json +2 -2
- package/chrona.sandbox.lock.json +11 -7
- package/chrona.scene-interaction-v2.lock.json +28 -0
- package/chrona.world-scene-runtime.lock.json +49 -9
- package/chrona.world-scene.lock.json +9 -5
- package/compiler/local-builder.lock.json +1 -1
- package/compiler/source/contracts/creator/rules/v1/rules.mjs +99 -0
- package/compiler/source/contracts/creator/rules/v1/ugc-rules.json +807 -0
- package/compiler/source/contracts/ugc/authored-motion/v1/declaration.mjs +124 -0
- package/compiler/source/contracts/ugc/core-ecs/v1/core-view.mjs +146 -0
- package/compiler/source/contracts/ugc/core-ecs/v1/limits.json +4 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/document.mjs +148 -27
- package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.1.0.json +25 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.2.0.json +25 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.3.0.json +26 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.5.0.json +25 -0
- package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.6.0.json +26 -0
- package/compiler/source/contracts/ugc/ecs-runtime/v1/private-world.mjs +313 -0
- package/compiler/source/contracts/ugc/live-rule-slot/v1/slot.json +58 -0
- package/compiler/source/contracts/ugc/local-content/v1/document-snapshot.mjs +13 -29
- package/compiler/source/contracts/ugc/local-content/v1/ground-snapshot.mjs +89 -0
- package/compiler/source/contracts/ugc/local-content/v1/snapshot.mjs +49 -6
- package/compiler/source/contracts/ugc/open-creation/v1/custom-actions.mjs +92 -0
- package/compiler/source/contracts/ugc/open-creation/v1/data-authority.mjs +37 -0
- package/compiler/source/contracts/ugc/open-creation/v1/declaration.mjs +28 -0
- package/compiler/source/contracts/ugc/open-creation/v1/dynamic-entities.mjs +186 -0
- package/compiler/source/contracts/ugc/open-creation/v1/open-world.mjs +269 -0
- package/compiler/source/contracts/ugc/pipeline/v1/conformance/js/pipeline-validator.mjs +35 -7
- package/compiler/source/contracts/ugc/private-state/v1/projection.mjs +178 -0
- package/compiler/source/contracts/ugc/registry/v1/resolution-policy.json +3 -3
- package/compiler/source/contracts/ugc/runtime-content/v1/asset-budget.mjs +21 -0
- package/compiler/source/contracts/ugc/runtime-content/v1/limits.json +5 -0
- package/compiler/source/contracts/ugc/runtime-content/v1/validate.mjs +420 -0
- package/compiler/source/contracts/ugc/sandbox/v1/sha256.mjs +47 -0
- package/compiler/source/contracts/ugc/server-entities/v1/entities.mjs +221 -0
- package/compiler/source/contracts/ugc/server-entities/v1/events.mjs +336 -0
- package/compiler/source/contracts/ugc/server-entities/v1/limits.json +112 -0
- package/compiler/source/contracts/ugc/server-entities/v1/roads.mjs +164 -0
- package/compiler/source/contracts/ugc/v1/conformance/js/package-validator.mjs +51 -5
- package/compiler/source/contracts/ugc/v1/host-runnable.mjs +23 -0
- package/compiler/source/contracts/ugc/world-scene/v2/asset-graph.mjs +8 -12
- package/compiler/source/contracts/ugc/world-scene/v2/contract-set.json +1 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v1/runtime-plan.schema.json +41 -13
- package/compiler/source/contracts/ugc/world-scene-runtime/v1/runtime-policy.mjs +2 -2
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/contract-set.json +10 -0
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/report.mjs +21 -14
- package/compiler/source/contracts/ugc/world-scene-runtime/v2/runtime-policy.mjs +17 -3
- package/compiler/source/services/game-worker/src/runtime/content/flight-runtime.js +2 -1
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-collision.js +55 -30
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-motion.js +99 -0
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-preparation.js +3 -2
- package/compiler/source/services/game-worker/src/runtime/rooms/flight-room-controller.js +130 -24
- package/compiler/source/services/ugc-pipeline/src/asset-inspection.mjs +78 -28
- package/compiler/source/services/ugc-pipeline/src/document-presentation-model.mjs +2 -2
- package/compiler/source/services/ugc-pipeline/src/ground-rules-model.mjs +4 -5
- package/compiler/source/services/ugc-pipeline/src/local-content.mjs +29 -16
- package/compiler/source/services/ugc-pipeline/src/registry-release.mjs +4 -1
- package/compiler/source/services/ugc-pipeline/src/resource-bindings-model.mjs +3 -3
- package/compiler/source/services/ugc-pipeline/src/rules-locks.mjs +18 -0
- package/compiler/source/services/ugc-pipeline/src/scene-interaction-model.mjs +4 -5
- package/compiler/source/services/ugc-pipeline/src/visual-closure-v2.mjs +2 -2
- package/compiler/source/services/ugc-pipeline/src/world-scene-model.mjs +3 -3
- package/compiler/source/services/ugc-pipeline/src/world-scene-policies.json +138 -0
- package/compiler/source/services/ugc-pipeline/src/world-scene-runtime.mjs +4 -3
- package/consistency-vectors.snapshot.lock.json +14 -0
- package/contracts/creator/check/v1/rule-table.json +433 -0
- package/contracts/creator/check/v1/rules/client.json +924 -0
- package/contracts/creator/check/v1/rules/kit.json +1702 -0
- package/contracts/creator/check/v1/rules/platform.json +608 -0
- package/contracts/creator/check/v1/rules/publish.json +2484 -0
- package/contracts/creator/check/v1/rules/room.json +279 -0
- package/contracts/creator/rules/v1/rules.mjs +69 -0
- package/contracts/creator/rules/v1/vectors.json +39 -0
- package/contracts/ecs/realtime/consistency/v1/vectors.json +2437 -0
- package/contracts/errors/registry/v1/codes.json +13255 -0
- package/contracts/gameplay/step-input/step-input.mjs +16 -0
- package/contracts/network/realtime/authored-entity.mjs +67 -0
- package/contracts/network/realtime/revision-selection.mjs +65 -0
- package/contracts/testdata/gameplay-consistency/vectors.json +149 -0
- package/contracts/ugc/authored-motion/v1/declaration.mjs +124 -0
- package/contracts/ugc/core-ecs/v1/core-view.mjs +13 -5
- package/contracts/ugc/core-ecs/v1/limits.json +4 -0
- package/contracts/ugc/creator-source/v1/SOURCE-PACKAGE.md +1 -1
- package/contracts/ugc/creator-source/v1/source-package.mjs +24 -7
- package/contracts/ugc/creator-source/v1/source-package.schema.json +3 -3
- package/contracts/ugc/creator-source/v1/source-package.test.mjs +20 -2
- package/contracts/ugc/document-presentation/v1/document.mjs +148 -27
- package/contracts/ugc/document-presentation/v1/profile-1.1.0.json +25 -0
- package/contracts/ugc/document-presentation/v1/profile-1.2.0.json +25 -0
- package/contracts/ugc/document-presentation/v1/profile-1.3.0.json +26 -0
- package/contracts/ugc/document-presentation/v1/profile-1.5.0.json +25 -0
- package/contracts/ugc/document-presentation/v1/profile-1.6.0.json +26 -0
- package/contracts/ugc/ecs-runtime/v1/private-world.mjs +21 -7
- package/contracts/ugc/live-rule-slot/v1/slot.json +58 -0
- package/contracts/ugc/live-rule-slot/v1/slot.mjs +80 -0
- package/contracts/ugc/local-content/v1/README.md +10 -0
- package/contracts/ugc/local-content/v1/document-snapshot.mjs +13 -29
- package/contracts/ugc/local-content/v1/ground-snapshot.mjs +89 -0
- package/contracts/ugc/local-content/v1/snapshot.mjs +49 -6
- package/contracts/ugc/local-content/v1/spatial-plan.mjs +24 -0
- package/contracts/ugc/open-creation/v1/custom-actions.mjs +92 -0
- package/contracts/ugc/open-creation/v1/data-authority.mjs +37 -0
- package/contracts/ugc/open-creation/v1/declaration.mjs +28 -0
- package/contracts/ugc/open-creation/v1/dynamic-entities.mjs +186 -0
- package/contracts/ugc/open-creation/v1/open-world.mjs +269 -0
- package/contracts/ugc/public-runtime/v1/README.md +13 -1
- package/contracts/ugc/public-runtime/v1/compatibility-rows.test.mjs +79 -0
- package/contracts/ugc/public-runtime/v1/document-runtime.test.mjs +20 -5
- package/contracts/ugc/public-runtime/v1/manifest.mjs +24 -12
- package/contracts/ugc/public-runtime/v1/revision-vectors.test.mjs +49 -0
- package/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +119 -6
- package/contracts/ugc/runtime-content/v1/asset-budget.mjs +21 -0
- package/contracts/ugc/runtime-content/v1/limits.json +5 -0
- package/contracts/ugc/runtime-content/v1/validate.mjs +420 -0
- package/contracts/ugc/sandbox/v1/conformance/js/sandbox-validator.mjs +85 -6
- package/contracts/ugc/server-entities/v1/entities.mjs +221 -0
- package/contracts/ugc/server-entities/v1/events.mjs +336 -0
- package/contracts/ugc/server-entities/v1/limits.json +112 -0
- package/contracts/ugc/server-entities/v1/roads.mjs +164 -0
- package/contracts/ugc/v1/conformance/js/package-validator.mjs +51 -5
- package/contracts/ugc/v1/host-runnable.mjs +23 -0
- package/contracts/ugc/world-scene-runtime/v1/runtime-policy.mjs +2 -2
- package/contracts/ugc/world-scene-runtime/v2/runtime-policy.mjs +17 -3
- package/creator-check.source-lock.json +40 -0
- package/creator-release.json +1 -1
- package/docs/ai-index.md +193 -0
- package/docs/assets-3d-spec.md +114 -3
- package/docs/audio.md +110 -0
- package/docs/authored-avatars.md +67 -0
- package/docs/authored-entities.md +165 -0
- package/docs/capability-map.json +57 -0
- package/docs/controlled-presentation.md +53 -0
- package/docs/core-ecs.md +46 -0
- package/docs/declaration-generator.md +292 -0
- package/docs/document-presentation.md +14 -0
- package/docs/gameplay-inputs.md +77 -0
- package/docs/gameplay-lifecycle-tests.md +89 -0
- package/docs/ground-rules.md +63 -0
- package/docs/harness-onboarding.md +45 -22
- package/docs/live-rule-slots.md +57 -0
- package/docs/mcp-tools.md +39 -0
- package/docs/meshy.md +4 -4
- package/docs/migrate-1.6.md +63 -0
- package/docs/npm-creator.md +419 -254
- package/docs/open-creation.md +259 -0
- package/docs/player-private-components.md +51 -0
- package/docs/player-saves.md +175 -0
- package/docs/player-visible-state.md +65 -0
- package/docs/playtest.md +223 -0
- package/docs/private-ecs.md +48 -0
- package/docs/private-events.md +82 -0
- package/docs/private-state.md +30 -0
- package/docs/realtime-patterns.md +624 -0
- package/docs/recipes.md +397 -0
- package/docs/reference.md +365 -0
- package/docs/runtime-download.md +13 -5
- package/docs/scene-import.md +132 -0
- package/docs/scene-interactions.md +28 -0
- package/docs/server-entities.md +83 -0
- package/docs/weather.md +77 -0
- package/docs/work-brief.md +71 -0
- package/document-action-result.source-lock.json +8 -4
- package/error-codes.snapshot.lock.json +14 -0
- package/gameplay-consistency.source-lock.json +20 -0
- package/lib/authority-notice.mjs +76 -0
- package/lib/behavior-radius-check.mjs +71 -0
- package/lib/builtin-write.mjs +70 -0
- package/lib/capability-harness.mjs +4 -3
- package/lib/compress-model.mjs +266 -0
- package/lib/creator-agent-live.mjs +3 -0
- package/lib/creator-api.mjs +301 -148
- package/lib/creator-assets-restore.mjs +102 -0
- package/lib/creator-capability-map.mjs +28 -0
- package/lib/creator-check.mjs +338 -0
- package/lib/creator-cli.mjs +929 -118
- package/lib/creator-contribution.mjs +46 -37
- package/lib/creator-docs.mjs +56 -0
- package/lib/creator-entry.mjs +134 -0
- package/lib/creator-fix.mjs +208 -0
- package/lib/creator-init-paths.mjs +22 -13
- package/lib/creator-init.mjs +22 -9
- package/lib/creator-install.mjs +335 -65
- package/lib/creator-installed-platform.mjs +13 -0
- package/lib/creator-intent-rules.mjs +15 -0
- package/lib/creator-intent.mjs +147 -0
- package/lib/creator-issue.mjs +241 -0
- package/lib/creator-mcp.mjs +336 -140
- package/lib/creator-migrate.mjs +194 -0
- package/lib/creator-onboarding.mjs +3 -1
- package/lib/creator-platform.mjs +223 -29
- package/lib/creator-playtest.mjs +398 -0
- package/lib/creator-preview.mjs +80 -0
- package/lib/creator-project-snapshot.mjs +182 -108
- package/lib/creator-project-update.mjs +132 -102
- package/lib/creator-project.mjs +213 -62
- package/lib/creator-provenance.mjs +12 -10
- package/lib/creator-rebundle.mjs +68 -0
- package/lib/creator-rules.mjs +76 -0
- package/lib/creator-session.mjs +123 -25
- package/lib/creator-source-package.mjs +2 -2
- package/lib/creator-submit.mjs +252 -101
- package/lib/creator-toolchain-compat.mjs +473 -3
- package/lib/creator-upgrade.mjs +58 -33
- package/lib/creator-upload-state.mjs +61 -6
- package/lib/creator-workspace-guide.mjs +79 -0
- package/lib/declaration-generator.mjs +609 -0
- package/lib/declaration-problems.mjs +108 -0
- package/lib/document-action-result.mjs +7 -4
- package/lib/document-prechecks.mjs +633 -0
- package/lib/document-presentation.mjs +47 -15
- package/lib/document-refresh.mjs +46 -0
- package/lib/ecs-access.mjs +179 -0
- package/lib/failure-messages.mjs +42 -0
- package/lib/gameplay-imports.mjs +34 -0
- package/lib/host-consistency.mjs +74 -0
- package/lib/host-ipc/distribution-static-room-semantic-contract/contracts/ugc/public-runtime/v1/manifest.mjs +24 -12
- package/lib/host-ipc/distribution-static-room-semantic-contract/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +119 -6
- package/lib/host-ipc/host-ipc.schema.json +80 -0
- package/lib/host-ipc/runtime-contract.mjs +2 -0
- package/lib/host-ipc/source-lock.json +5 -5
- package/lib/host-runnable-scope.mjs +19 -0
- package/lib/legacy-patterns.mjs +705 -0
- package/lib/live-baseline-shape.mjs +30 -0
- package/lib/live-baseline.mjs +108 -0
- package/lib/live-rule-check.mjs +96 -0
- package/lib/local-builder.mjs +20 -5
- package/lib/local-content.mjs +6 -4
- package/lib/local-development.mjs +96 -24
- package/lib/local-room.mjs +12 -0
- package/lib/meshy-api.mjs +57 -1
- package/lib/meshy-store.mjs +1 -1
- package/lib/movement-authority.mjs +24 -0
- package/lib/platform-discovery.mjs +61 -0
- package/lib/platform-limits.mjs +6 -0
- package/lib/playtest-browser.mjs +121 -0
- package/lib/playtest-compare.mjs +42 -0
- package/lib/playtest-page.mjs +372 -0
- package/lib/playtest-vehicle.mjs +234 -0
- package/lib/presentation-project-update.mjs +126 -4
- package/lib/private-ecs-harness.mjs +39 -17
- package/lib/private-event-harness.mjs +3 -5
- package/lib/project-validation.mjs +852 -167
- package/lib/publish-prechecks.mjs +28 -0
- package/lib/relay-notice.mjs +13 -0
- package/lib/rule-fuzz.mjs +45 -0
- package/lib/rule-pack.mjs +150 -0
- package/lib/rule-selection.mjs +130 -0
- package/lib/rule-tests-child.mjs +40 -0
- package/lib/rule-tests-sandbox.mjs +75 -0
- package/lib/runtime-content.mjs +49 -0
- package/lib/runtime-download.mjs +94 -31
- package/lib/runtime-host-client.mjs +30 -12
- package/lib/runtime-host.mjs +7 -10
- package/lib/runtime-install.mjs +46 -6
- package/lib/runtime-prechecks.mjs +133 -0
- package/lib/runtime-proxy-fetch.mjs +117 -0
- package/lib/runtime-snapshot.mjs +20 -20
- package/lib/runtime-source.mjs +30 -14
- package/lib/sandbox-projection/v1/room-state-projection.mjs +116 -0
- package/lib/scene-assets.mjs +5 -5
- package/lib/scene-import-profiles.mjs +8 -0
- package/lib/scene-import.mjs +737 -0
- package/lib/server-entities-check.mjs +160 -0
- package/lib/toolchain-history.json +602 -0
- package/lib/vendor/mcp.mjs +33787 -0
- package/lib/vendor/smol-toml.mjs +744 -0
- package/lib/writable-by-others.mjs +8 -0
- package/live-rule-slot.source-lock.json +20 -0
- package/llms.txt +43 -0
- package/local-builder.snapshot.lock.json +3 -3
- package/local-content.snapshot.lock.json +112 -8
- package/package.json +251 -22
- package/public-runtime.snapshot.lock.json +13 -9
- package/realtime-revision.source-lock.json +20 -0
- package/runtime-catalog.json +16 -16
- package/sandbox-projection.source-lock.json +15 -0
- package/sdk/client/index.js +3 -2
- package/source-package.snapshot.lock.json +5 -5
- package/templates/document-presentation/README.md +5 -0
- package/templates/document-presentation/assets.js +36 -10
- package/templates/document-presentation/authority.js +25 -7
- package/templates/document-presentation/live-view.js +100 -0
- package/templates/document-presentation/local-first.js +45 -0
- package/templates/document-presentation/motion.js +2 -0
- package/templates/document-presentation/ready-gate.js +37 -0
- package/templates/document-presentation/state-view.js +26 -0
- package/templates/document-presentation/weather-blend.js +57 -0
- package/templates/document-presentation/weather-particles.js +192 -0
- package/templates/document-presentation/wet-ripples.js +61 -0
- package/templates/examples/coin-rush/README.md +5 -0
- package/templates/examples/coin-rush/chrona.generate.json +63 -0
- package/templates/examples/coin-rush/content/assets/runtime/arena.gltf +399 -0
- package/templates/examples/coin-rush/content/assets/runtime/runner.gltf +197 -0
- package/templates/examples/coin-rush/content/bindings/resources.json +19 -0
- package/templates/examples/coin-rush/content/gameplay/client/presentation.js +44 -0
- package/templates/examples/coin-rush/content/gameplay/shared/rules.js +49 -0
- package/templates/examples/coin-rush/content/manifest.json +100 -0
- package/templates/examples/coin-rush/content/provenance.json +20 -0
- package/templates/examples/coin-rush/content/rules/ground.json +45 -0
- package/templates/examples/coin-rush/content/tests/budgets.json +5 -0
- package/templates/examples/coin-rush/content/tests/rules.json +16 -0
- package/templates/examples/open-creation/README.md +5 -0
- package/templates/examples/open-creation/chrona.generate.json +55 -0
- package/templates/examples/open-creation/content/assets/runtime/arena.gltf +399 -0
- package/templates/examples/open-creation/content/assets/runtime/runner.gltf +197 -0
- package/templates/examples/open-creation/content/bindings/resources.json +19 -0
- package/templates/examples/open-creation/content/gameplay/client/presentation.js +33 -0
- package/templates/examples/open-creation/content/gameplay/shared/rules.js +29 -0
- package/templates/examples/open-creation/content/manifest.json +100 -0
- package/templates/examples/open-creation/content/provenance.json +20 -0
- package/templates/examples/open-creation/content/rules/ground.json +45 -0
- package/templates/examples/open-creation/content/tests/budgets.json +5 -0
- package/templates/examples/open-creation/content/tests/rules.json +16 -0
- package/templates/live-rule-slot/score-slot.js +16 -0
- package/templates/npm-project/AGENTS.md +101 -4
- package/templates/npm-project/preview.command +7 -0
- package/templates/npm-project/preview.ps1 +6 -0
- package/templates/npm-project/scripts/install-kit.mjs +70 -0
- package/templates/npm-project/setup.command +3 -0
- package/templates/npm-project/setup.ps1 +14 -0
- package/templates/npm-project/setup.sh +11 -0
- package/templates/public-untrusted/content/gameplay/client/local-first.js +45 -0
- package/templates/public-untrusted/content/gameplay/client/smoothing.js +83 -0
- package/templates/public-untrusted/content/manifest.json +2 -1
- package/templates/public-untrusted/content/tests/scenarios.json +20 -2
- package/contracts/ugc/capability-wiring/v1/capability-proposal.schema.json +0 -82
- package/contracts/ugc/capability-wiring/v1/conformance/js/wiring-validator.mjs +0 -95
- package/contracts/ugc/capability-wiring/v1/conformance/web/index.html +0 -5
- package/contracts/ugc/capability-wiring/v1/conformance/web/runner.mjs +0 -32
- package/contracts/ugc/capability-wiring/v1/contract-set.json +0 -8
- package/contracts/ugc/capability-wiring/v1/error-codes.json +0 -15
- package/contracts/ugc/capability-wiring/v1/needs-capability.schema.json +0 -18
- package/contracts/ugc/capability-wiring/v1/testdata/vectors.json +0 -128
- package/contracts/ugc/capability-wiring/v1/wiring-release.schema.json +0 -66
- package/contracts/ugc/controlled-presentation/v1/README.md +0 -175
- package/contracts/ugc/controlled-presentation/v1/approval.schema.json +0 -53
- package/contracts/ugc/controlled-presentation/v1/command.schema.json +0 -243
- package/contracts/ugc/controlled-presentation/v1/conformance/run-vectors.mjs +0 -39
- package/contracts/ugc/controlled-presentation/v1/conformance/run-view-vectors.mjs +0 -54
- package/contracts/ugc/controlled-presentation/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/controlled-presentation/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/controlled-presentation/v1/conformance/web/view-runner.mjs +0 -5
- package/contracts/ugc/controlled-presentation/v1/conformance/web/view.html +0 -1
- package/contracts/ugc/controlled-presentation/v1/context.schema.json +0 -19
- package/contracts/ugc/controlled-presentation/v1/contract-set.json +0 -33
- package/contracts/ugc/controlled-presentation/v1/export-view.mjs +0 -44
- package/contracts/ugc/controlled-presentation/v1/grant.schema.json +0 -120
- package/contracts/ugc/controlled-presentation/v1/presentation.mjs +0 -180
- package/contracts/ugc/controlled-presentation/v1/testdata/vectors.json +0 -565
- package/contracts/ugc/controlled-presentation/v1/view.mjs +0 -46
- package/contracts/ugc/controlled-presentation/v1/view.schema.json +0 -90
- package/contracts/ugc/core-ecs/v1/README.md +0 -13
- package/contracts/ugc/core-ecs/v1/api.json +0 -28
- package/contracts/ugc/core-ecs/v1/conformance/run-vectors.mjs +0 -33
- package/contracts/ugc/core-ecs/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/core-ecs/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/core-ecs/v1/test-fixture.schema.json +0 -169
- package/contracts/ugc/core-ecs/v1/testdata/vectors.json +0 -57
- package/contracts/ugc/document-presentation/v1/README.md +0 -167
- package/contracts/ugc/document-presentation/v1/contract-set.json +0 -18
- package/contracts/ugc/document-presentation/v1/document.schema.json +0 -161
- package/contracts/ugc/document-presentation/v1/document.test.mjs +0 -138
- package/contracts/ugc/document-presentation/v1/source.schema.json +0 -88
- package/contracts/ugc/ecs-runtime/v1/README.md +0 -25
- package/contracts/ugc/ecs-runtime/v1/api.json +0 -46
- package/contracts/ugc/ecs-runtime/v1/conformance/run-vectors.mjs +0 -41
- package/contracts/ugc/ecs-runtime/v1/conformance/web/index.html +0 -3
- package/contracts/ugc/ecs-runtime/v1/conformance/web/runner.mjs +0 -5
- package/contracts/ugc/ecs-runtime/v1/testdata/vectors.json +0 -1318
- package/contracts/ugc/gameplay-tests/v1/README.md +0 -78
- package/contracts/ugc/gameplay-tests/v1/cases.mjs +0 -70
- package/contracts/ugc/gameplay-tests/v1/cases.schema.json +0 -262
- package/contracts/ugc/gameplay-tests/v1/conformance/run-vectors.mjs +0 -21
- package/contracts/ugc/gameplay-tests/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/gameplay-tests/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/gameplay-tests/v1/contract-set.json +0 -9
- package/contracts/ugc/gameplay-tests/v1/scene-step.mjs +0 -49
- package/contracts/ugc/gameplay-tests/v1/testdata/vectors.json +0 -1504
- package/contracts/ugc/ground-rules/v1/README.md +0 -44
- package/contracts/ugc/ground-rules/v1/conformance/run-vectors.mjs +0 -31
- package/contracts/ugc/ground-rules/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/ground-rules/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/ground-rules/v1/contract-set.json +0 -9
- package/contracts/ugc/ground-rules/v1/effective-ground-rules.schema.json +0 -27
- package/contracts/ugc/ground-rules/v1/ground-rules.schema.json +0 -33
- package/contracts/ugc/ground-rules/v1/testdata/vectors.json +0 -57
- package/contracts/ugc/ground-rules/v2/README.md +0 -88
- package/contracts/ugc/ground-rules/v2/contract-set.json +0 -20
- package/contracts/ugc/ground-rules/v2/ground-rules.schema.json +0 -373
- package/contracts/ugc/ground-rules/v2/spaces.test.mjs +0 -58
- package/contracts/ugc/ground-rules/v2/spatial-source.schema.json +0 -788
- package/contracts/ugc/ground-rules/v2/spatial.test.mjs +0 -142
- package/contracts/ugc/ground-rules/v2.2/README.md +0 -73
- package/contracts/ugc/ground-rules/v2.2/center-band.test.mjs +0 -149
- package/contracts/ugc/ground-rules/v2.2/contract-set.json +0 -8
- package/contracts/ugc/ground-rules/v2.2/spatial-source.schema.json +0 -1049
- package/contracts/ugc/personal-state/v1/README.md +0 -181
- package/contracts/ugc/personal-state/v1/declaration.schema.json +0 -295
- package/contracts/ugc/personal-state/v1/declaration.test.mjs +0 -26
- package/contracts/ugc/personal-state/v1/marker.schema.json +0 -9
- package/contracts/ugc/personal-state/v1/node-plan.test.mjs +0 -65
- package/contracts/ugc/pipeline/v1/PLATFORM-SOURCE.md +0 -54
- package/contracts/ugc/pipeline/v1/PRESENTATION.md +0 -13
- package/contracts/ugc/pipeline/v1/build-record.schema.json +0 -93
- package/contracts/ugc/pipeline/v1/conformance/js/pipeline-validator.mjs +0 -196
- package/contracts/ugc/pipeline/v1/conformance/js/platform-release-validator.mjs +0 -78
- package/contracts/ugc/pipeline/v1/conformance/web/index.html +0 -5
- package/contracts/ugc/pipeline/v1/conformance/web/runner.mjs +0 -30
- package/contracts/ugc/pipeline/v1/contract-set.json +0 -30
- package/contracts/ugc/pipeline/v1/error-codes.json +0 -95
- package/contracts/ugc/pipeline/v1/platform-publication-binding.schema.json +0 -56
- package/contracts/ugc/pipeline/v1/public-release-descriptor.schema.json +0 -264
- package/contracts/ugc/pipeline/v1/publication-operation.schema.json +0 -97
- package/contracts/ugc/pipeline/v1/release-index.schema.json +0 -192
- package/contracts/ugc/pipeline/v1/review-decision.schema.json +0 -212
- package/contracts/ugc/pipeline/v1/submission-receipt.schema.json +0 -15
- package/contracts/ugc/pipeline/v1/testdata/vectors.json +0 -1713
- package/contracts/ugc/private-event-view/v1/README.md +0 -83
- package/contracts/ugc/private-event-view/v1/conformance/run-vectors.mjs +0 -65
- package/contracts/ugc/private-event-view/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/private-event-view/v1/conformance/web/runner.mjs +0 -5
- package/contracts/ugc/private-event-view/v1/contract-set.json +0 -9
- package/contracts/ugc/private-event-view/v1/export.mjs +0 -22
- package/contracts/ugc/private-event-view/v1/testdata/vectors.json +0 -22
- package/contracts/ugc/private-event-view/v1/view.mjs +0 -130
- package/contracts/ugc/private-event-view/v1/view.schema.json +0 -204
- package/contracts/ugc/private-events/v1/README.md +0 -102
- package/contracts/ugc/private-events/v1/conformance/run-vectors.mjs +0 -52
- package/contracts/ugc/private-events/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/private-events/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/private-events/v1/contract-set.json +0 -9
- package/contracts/ugc/private-events/v1/events.schema.json +0 -19
- package/contracts/ugc/private-events/v1/grant.schema.json +0 -15
- package/contracts/ugc/private-events/v1/output.schema.json +0 -15
- package/contracts/ugc/private-events/v1/testdata/vectors.json +0 -55
- package/contracts/ugc/private-state/v1/README.md +0 -95
- package/contracts/ugc/private-state/v1/conformance/run-vectors.mjs +0 -40
- package/contracts/ugc/private-state/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/private-state/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/private-state/v1/contract-set.json +0 -9
- package/contracts/ugc/private-state/v1/field-table.schema.json +0 -136
- package/contracts/ugc/private-state/v1/projection.schema.json +0 -515
- package/contracts/ugc/private-state/v1/testdata/vectors.json +0 -76
- package/contracts/ugc/private-state-view/v1/README.md +0 -91
- package/contracts/ugc/private-state-view/v1/conformance/run-vectors.mjs +0 -52
- package/contracts/ugc/private-state-view/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/private-state-view/v1/conformance/web/runner.mjs +0 -5
- package/contracts/ugc/private-state-view/v1/contract-set.json +0 -24
- package/contracts/ugc/private-state-view/v1/export.mjs +0 -29
- package/contracts/ugc/private-state-view/v1/publication.schema.json +0 -82
- package/contracts/ugc/private-state-view/v1/testdata/vectors.json +0 -21
- package/contracts/ugc/private-state-view/v1/view.mjs +0 -199
- package/contracts/ugc/private-state-view/v1/view.schema.json +0 -255
- package/contracts/ugc/public-runtime/v1/static-room-runtime.test.mjs +0 -225
- package/contracts/ugc/registry/v1/capabilities-lock.schema.json +0 -110
- package/contracts/ugc/registry/v1/capability-query-result.schema.json +0 -33
- package/contracts/ugc/registry/v1/capability-query.schema.json +0 -14
- package/contracts/ugc/registry/v1/capability-registry.schema.json +0 -83
- package/contracts/ugc/registry/v1/conformance/web/index.html +0 -5
- package/contracts/ugc/registry/v1/conformance/web/runner.mjs +0 -68
- package/contracts/ugc/registry/v1/contract-set.json +0 -23
- package/contracts/ugc/registry/v1/effective-budgets.schema.json +0 -34
- package/contracts/ugc/registry/v1/error-codes.json +0 -11
- package/contracts/ugc/registry/v1/network-profile-lock.schema.json +0 -26
- package/contracts/ugc/registry/v1/registry.json +0 -1
- package/contracts/ugc/registry/v1/resolution-policy.json +0 -70
- package/contracts/ugc/registry/v1/resolution-result.schema.json +0 -49
- package/contracts/ugc/registry/v1/testdata/vectors.json +0 -405
- package/contracts/ugc/resource-bindings/v1/AUTHORED-AVATAR.md +0 -133
- package/contracts/ugc/resource-bindings/v1/README.md +0 -61
- package/contracts/ugc/resource-bindings/v1/authored-avatar.schema.json +0 -48
- package/contracts/ugc/resource-bindings/v1/bindings.schema.json +0 -45
- package/contracts/ugc/resource-bindings/v1/conformance/authored-avatar-vectors.mjs +0 -26
- package/contracts/ugc/resource-bindings/v1/conformance/run-vectors.mjs +0 -32
- package/contracts/ugc/resource-bindings/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/resource-bindings/v1/conformance/web/runner.mjs +0 -13
- package/contracts/ugc/resource-bindings/v1/contract-set.json +0 -9
- package/contracts/ugc/resource-bindings/v1/testdata/authored-avatar-vectors.json +0 -146
- package/contracts/ugc/resource-bindings/v1/testdata/authored-avatar.json +0 -13
- package/contracts/ugc/resource-bindings/v1/testdata/vectors.json +0 -68
- package/contracts/ugc/sandbox/v1/conformance/web/index.html +0 -5
- package/contracts/ugc/sandbox/v1/conformance/web/runner.mjs +0 -26
- package/contracts/ugc/sandbox/v1/contract-set.json +0 -19
- package/contracts/ugc/sandbox/v1/error-codes.json +0 -25
- package/contracts/ugc/sandbox/v1/execution-result.schema.json +0 -80
- package/contracts/ugc/sandbox/v1/launch-request.schema.json +0 -96
- package/contracts/ugc/sandbox/v1/lifecycle-message.schema.json +0 -18
- package/contracts/ugc/sandbox/v1/local-launch-request.schema.json +0 -34
- package/contracts/ugc/sandbox/v1/private-ecs-grant.schema.json +0 -32
- package/contracts/ugc/sandbox/v1/sandbox-profile.schema.json +0 -70
- package/contracts/ugc/sandbox/v1/testdata/vectors.json +0 -89
- package/contracts/ugc/scene-interaction/v1/README.md +0 -63
- package/contracts/ugc/scene-interaction/v1/conformance/run-vectors.mjs +0 -26
- package/contracts/ugc/scene-interaction/v1/conformance/web/index.html +0 -1
- package/contracts/ugc/scene-interaction/v1/conformance/web/runner.mjs +0 -4
- package/contracts/ugc/scene-interaction/v1/contract-set.json +0 -26
- package/contracts/ugc/scene-interaction/v1/effective-targets.schema.json +0 -76
- package/contracts/ugc/scene-interaction/v1/request.schema.json +0 -30
- package/contracts/ugc/scene-interaction/v1/result.schema.json +0 -88
- package/contracts/ugc/scene-interaction/v1/targets.schema.json +0 -49
- package/contracts/ugc/scene-interaction/v1/testdata/vectors.json +0 -732
- package/contracts/ugc/scene-interaction/v2/README.md +0 -63
- package/contracts/ugc/scene-interaction/v2/contract-set.json +0 -19
- package/contracts/ugc/scene-interaction/v2/metric.test.mjs +0 -99
- package/contracts/ugc/scene-interaction/v2/targets.schema.json +0 -229
- package/contracts/ugc/scene-presentation/v1/INK-MATH.md +0 -64
- package/contracts/ugc/scene-presentation/v1/README.md +0 -126
- package/contracts/ugc/scene-presentation/v1/RENDER-POLICY.md +0 -63
- package/contracts/ugc/scene-presentation/v1/conformance/ink-vectors.mjs +0 -34
- package/contracts/ugc/scene-presentation/v1/conformance/render-policy-vectors.mjs +0 -62
- package/contracts/ugc/scene-presentation/v1/conformance/vectors.mjs +0 -128
- package/contracts/ugc/scene-presentation/v1/contract-set.json +0 -6
- package/contracts/ugc/scene-presentation/v1/ink-math.mjs +0 -70
- package/contracts/ugc/scene-presentation/v1/render-policy.schema.json +0 -27
- package/contracts/ugc/scene-presentation/v1/scene.schema.json +0 -66
- package/contracts/ugc/v1/COVER.md +0 -38
- package/contracts/ugc/v1/SCENE-PROVENANCE.md +0 -54
- package/contracts/ugc/v1/candidate-submission.schema.json +0 -16
- package/contracts/ugc/v1/capability-request.schema.json +0 -29
- package/contracts/ugc/v1/compatibility.json +0 -32
- package/contracts/ugc/v1/components.schema.json +0 -77
- package/contracts/ugc/v1/conformance/js/capability-operations.mjs +0 -13
- package/contracts/ugc/v1/conformance/js/scene-provenance.mjs +0 -121
- package/contracts/ugc/v1/conformance/js/source-validator.mjs +0 -99
- package/contracts/ugc/v1/conformance/web/index.html +0 -5
- package/contracts/ugc/v1/conformance/web/runner.mjs +0 -82
- package/contracts/ugc/v1/contract-set.json +0 -38
- package/contracts/ugc/v1/creator-sdk.json +0 -84
- package/contracts/ugc/v1/error-codes.json +0 -53
- package/contracts/ugc/v1/manifest.schema.json +0 -215
- package/contracts/ugc/v1/network-intent.schema.json +0 -15
- package/contracts/ugc/v1/prefabs.schema.json +0 -29
- package/contracts/ugc/v1/provenance.schema.json +0 -160
- package/contracts/ugc/v1/scene.schema.json +0 -37
- package/contracts/ugc/v1/testdata/capability-operation-vectors.json +0 -243
- package/contracts/ugc/v1/testdata/cover-vectors.json +0 -25
- package/contracts/ugc/v1/testdata/invalid/authored-avatar-missing-capability.json +0 -44
- package/contracts/ugc/v1/testdata/invalid/authored-avatar-wrong-capability.json +0 -51
- package/contracts/ugc/v1/testdata/invalid/budget-overflow.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/build-field-override.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/creator-server-entrypoint.json +0 -5
- package/contracts/ugc/v1/testdata/invalid/forbidden-network-control.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/ground-authority.json +0 -57
- package/contracts/ugc/v1/testdata/invalid/ground-budget.json +0 -56
- package/contracts/ugc/v1/testdata/invalid/ground-dependency.json +0 -49
- package/contracts/ugc/v1/testdata/invalid/ground-identity.json +0 -56
- package/contracts/ugc/v1/testdata/invalid/ground-missing.json +0 -13
- package/contracts/ugc/v1/testdata/invalid/ground-optional.json +0 -60
- package/contracts/ugc/v1/testdata/invalid/ground-path.json +0 -56
- package/contracts/ugc/v1/testdata/invalid/ground-run-dependency.json +0 -56
- package/contracts/ugc/v1/testdata/invalid/ground-version.json +0 -56
- package/contracts/ugc/v1/testdata/invalid/missing-required-field.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/missing-shared-entrypoint.json +0 -5
- package/contracts/ugc/v1/testdata/invalid/path-escape.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/private-events-authority.json +0 -35
- package/contracts/ugc/v1/testdata/invalid/private-events-budget.json +0 -35
- package/contracts/ugc/v1/testdata/invalid/private-events-dependency.json +0 -27
- package/contracts/ugc/v1/testdata/invalid/private-events-empty.json +0 -20
- package/contracts/ugc/v1/testdata/invalid/private-events-identity.json +0 -34
- package/contracts/ugc/v1/testdata/invalid/private-events-missing.json +0 -13
- package/contracts/ugc/v1/testdata/invalid/private-events-optional.json +0 -38
- package/contracts/ugc/v1/testdata/invalid/private-events-path.json +0 -34
- package/contracts/ugc/v1/testdata/invalid/private-events-type.json +0 -34
- package/contracts/ugc/v1/testdata/invalid/private-events-unknown-ref.json +0 -34
- package/contracts/ugc/v1/testdata/invalid/private-events-version.json +0 -34
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-identity.json +0 -18
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-kind.json +0 -19
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-missing.json +0 -6
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-path.json +0 -6
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-type.json +0 -8
- package/contracts/ugc/v1/testdata/invalid/resource-bindings-unknown.json +0 -18
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-authority.json +0 -61
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-core-unknown.json +0 -61
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-dependency.json +0 -53
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-identity.json +0 -60
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-missing-transform.json +0 -50
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-missing.json +0 -49
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-optional.json +0 -64
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-partial-transform.json +0 -59
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-path.json +0 -60
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-radius.json +0 -60
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-unknown-target.json +0 -60
- package/contracts/ugc/v1/testdata/invalid/scene-interactions-version.json +0 -60
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-authority.json +0 -166
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-capability.json +0 -158
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-identity.json +0 -165
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-missing.json +0 -13
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-optional.json +0 -169
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-path.json +0 -165
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-undeclared.json +0 -163
- package/contracts/ugc/v1/testdata/invalid/scene-presentation-unknown-material.json +0 -165
- package/contracts/ugc/v1/testdata/invalid/schema-incompatible.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/unknown-required-component.json +0 -1
- package/contracts/ugc/v1/testdata/invalid/world-scene-dual-motion.json +0 -7
- package/contracts/ugc/v1/testdata/invalid/world-scene-identity.json +0 -90
- package/contracts/ugc/v1/testdata/invalid/world-scene-missing-capability.json +0 -85
- package/contracts/ugc/v1/testdata/invalid/world-scene-missing.json +0 -28
- package/contracts/ugc/v1/testdata/invalid/world-scene-optional-capability.json +0 -94
- package/contracts/ugc/v1/testdata/invalid/world-scene-path.json +0 -6
- package/contracts/ugc/v1/testdata/invalid/world-scene-version.json +0 -90
- package/contracts/ugc/v1/testdata/scene-provenance-vectors.json +0 -56
- package/contracts/ugc/v1/testdata/source-vectors.json +0 -83
- package/contracts/ugc/v1/testdata/valid/authored-avatar.json +0 -51
- package/contracts/ugc/v1/testdata/valid/boundary.json +0 -1
- package/contracts/ugc/v1/testdata/valid/components.json +0 -15
- package/contracts/ugc/v1/testdata/valid/cosmetic.json +0 -9
- package/contracts/ugc/v1/testdata/valid/ground-rules.json +0 -56
- package/contracts/ugc/v1/testdata/valid/minimal.json +0 -15
- package/contracts/ugc/v1/testdata/valid/prefabs.json +0 -11
- package/contracts/ugc/v1/testdata/valid/private-events.json +0 -34
- package/contracts/ugc/v1/testdata/valid/resource-bindings.json +0 -18
- package/contracts/ugc/v1/testdata/valid/scene-interactions.json +0 -60
- package/contracts/ugc/v1/testdata/valid/scene-presentation.json +0 -165
- package/contracts/ugc/v1/testdata/valid/scene.json +0 -6
- package/contracts/ugc/v1/testdata/valid/unknown-optional-component.json +0 -1
- package/contracts/ugc/v1/testdata/valid/world-scene.json +0 -90
- package/contracts/ugc/v1/testdata/vectors.json +0 -555
- package/contracts/ugc/v1/validation-report.schema.json +0 -61
- package/contracts/ugc/world-scene/v1/collision-identity.mjs +0 -73
- package/contracts/ugc/world-scene/v1/collision-target.schema.json +0 -18
- package/contracts/ugc/world-scene/v1/conformance/flight-avatar-vectors.mjs +0 -27
- package/contracts/ugc/world-scene/v1/conformance/run-vectors.mjs +0 -29
- package/contracts/ugc/world-scene/v1/coordinates.schema.json +0 -16
- package/contracts/ugc/world-scene/v1/flight-avatar-actions.mjs +0 -3
- package/contracts/ugc/world-scene/v1/flight-avatar-sample.schema.json +0 -14
- package/contracts/ugc/world-scene/v1/scene-declaration.schema.json +0 -40
- package/contracts/ugc/world-scene/v1/testdata/flight-avatar-actions.json +0 -48
- package/contracts/ugc/world-scene/v1/testdata/scene-declaration-vectors.json +0 -103
- package/contracts/ugc/world-scene/v1/testdata/vectors.json +0 -55
- package/contracts/ugc/world-scene/v1/visual-tileset.mjs +0 -112
- package/contracts/ugc/world-scene/v1/visual-tileset.schema.json +0 -35
- package/contracts/ugc/world-scene/v2/ASSET-GRAPH.md +0 -13
- package/contracts/ugc/world-scene/v2/ENCODED-RESOURCES.md +0 -117
- package/contracts/ugc/world-scene/v2/PARTITION.md +0 -59
- package/contracts/ugc/world-scene/v2/VISUAL-TILESET.md +0 -80
- package/contracts/ugc/world-scene/v2/asset-graph.mjs +0 -169
- package/contracts/ugc/world-scene/v2/collision-index.schema.json +0 -29
- package/contracts/ugc/world-scene/v2/collision-partition.schema.json +0 -37
- package/contracts/ugc/world-scene/v2/conformance/asset-graph-vectors.mjs +0 -52
- package/contracts/ugc/world-scene/v2/conformance/collision-index-vectors.mjs +0 -29
- package/contracts/ugc/world-scene/v2/conformance/encoded-resource-vectors.mjs +0 -17
- package/contracts/ugc/world-scene/v2/conformance/partition-vectors.mjs +0 -74
- package/contracts/ugc/world-scene/v2/conformance/visual-vectors.mjs +0 -24
- package/contracts/ugc/world-scene/v2/contract-set.json +0 -50
- package/contracts/ugc/world-scene/v2/encoded-resource.schema.json +0 -17
- package/contracts/ugc/world-scene/v2/scene-declaration.schema.json +0 -21
- package/contracts/ugc/world-scene/v2/testdata/asset-graph-vectors.json +0 -3354
- package/contracts/ugc/world-scene/v2/testdata/collision-index-vectors.json +0 -103
- package/contracts/ugc/world-scene/v2/testdata/encoded-resource-vectors.json +0 -372
- package/contracts/ugc/world-scene/v2/testdata/visual-vectors.json +0 -43
- package/contracts/ugc/world-scene/v2/vendor/pako-raw-inflate.provenance.json +0 -43
- package/contracts/ugc/world-scene/v2/visual-tileset.mjs +0 -107
- package/contracts/ugc/world-scene/v2/visual-tileset.schema.json +0 -33
- package/contracts/ugc/world-scene-runtime/v1/runtime-plan.schema.json +0 -660
- package/contracts/ugc/world-scene-runtime/v1/testdata/policy-vectors.json +0 -40
- package/contracts/ugc/world-scene-runtime/v2/COLLISION-CAPACITY.md +0 -74
- package/contracts/ugc/world-scene-runtime/v2/REPORT.md +0 -91
- package/contracts/ugc/world-scene-runtime/v2/RUNTIME-PROJECTION.md +0 -110
- package/contracts/ugc/world-scene-runtime/v2/VISUAL-WORK.md +0 -72
- package/contracts/ugc/world-scene-runtime/v2/collision-capacity.schema.json +0 -62
- package/contracts/ugc/world-scene-runtime/v2/conformance/capacity-vectors.mjs +0 -25
- package/contracts/ugc/world-scene-runtime/v2/conformance/report-vectors.mjs +0 -141
- package/contracts/ugc/world-scene-runtime/v2/conformance/runtime-vectors.mjs +0 -41
- package/contracts/ugc/world-scene-runtime/v2/conformance/visual-work-vectors.mjs +0 -21
- package/contracts/ugc/world-scene-runtime/v2/contract-set.json +0 -45
- package/contracts/ugc/world-scene-runtime/v2/report.mjs +0 -184
- package/contracts/ugc/world-scene-runtime/v2/runtime-plan.schema.json +0 -38
- package/contracts/ugc/world-scene-runtime/v2/testdata/capacity-vectors.json +0 -30
- package/contracts/ugc/world-scene-runtime/v2/testdata/report-fixture.json +0 -250
- package/contracts/ugc/world-scene-runtime/v2/testdata/runtime-vectors.json +0 -39
- package/contracts/ugc/world-scene-runtime/v2/testdata/visual-work-vectors.json +0 -28
- package/contracts/ugc/world-scene-runtime/v2/visual-work-policy.mjs +0 -59
- package/document-presentation.snapshot.lock.json +0 -40
- package/ground-endpoint.snapshot.lock.json +0 -36
- package/ground-spaces.snapshot.lock.json +0 -57
- package/lib/creator-source-archive.mjs +0 -182
- package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/core/README.md +0 -40
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts +0 -8501
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +0 -1678
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +0 -2899
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts +0 -8501
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -175
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -201
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -99
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -99
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/package.json +0 -85
- package/node_modules/@modelcontextprotocol/server/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/server/README.md +0 -30
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +0 -7514
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +0 -1071
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +0 -1071
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +0 -7531
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +0 -986
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +0 -74
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +0 -74
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +0 -981
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +0 -60
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +0 -42
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts +0 -4043
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts +0 -4045
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +0 -46
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +0 -34
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs +0 -2055
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +0 -739
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +0 -739
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs +0 -1870
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs +0 -2022
- package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs +0 -1931
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +0 -23
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +0 -11
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +0 -11
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +0 -22
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +0 -12
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +0 -3
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +0 -3
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +0 -4
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +0 -30
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +0 -10
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +0 -10
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +0 -29
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs +0 -7606
- package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs +0 -8104
- package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +0 -564
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +0 -107
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +0 -107
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +0 -562
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +0 -1099
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +0 -1099
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +0 -5
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +0 -3
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +0 -3
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +0 -3
- package/node_modules/@modelcontextprotocol/server/package.json +0 -160
- package/node_modules/smol-toml/LICENSE +0 -24
- package/node_modules/smol-toml/README.md +0 -236
- package/node_modules/smol-toml/dist/date.d.ts +0 -41
- package/node_modules/smol-toml/dist/date.js +0 -127
- package/node_modules/smol-toml/dist/error.d.ts +0 -38
- package/node_modules/smol-toml/dist/error.js +0 -63
- package/node_modules/smol-toml/dist/extract.d.ts +0 -30
- package/node_modules/smol-toml/dist/extract.js +0 -109
- package/node_modules/smol-toml/dist/index.cjs +0 -906
- package/node_modules/smol-toml/dist/index.d.ts +0 -43
- package/node_modules/smol-toml/dist/index.js +0 -33
- package/node_modules/smol-toml/dist/parse.d.ts +0 -37
- package/node_modules/smol-toml/dist/parse.js +0 -148
- package/node_modules/smol-toml/dist/primitive.d.ts +0 -31
- package/node_modules/smol-toml/dist/primitive.js +0 -178
- package/node_modules/smol-toml/dist/stringify.d.ts +0 -31
- package/node_modules/smol-toml/dist/stringify.js +0 -163
- package/node_modules/smol-toml/dist/struct.d.ts +0 -32
- package/node_modules/smol-toml/dist/struct.js +0 -194
- package/node_modules/smol-toml/dist/util.d.ts +0 -42
- package/node_modules/smol-toml/dist/util.js +0 -106
- package/node_modules/smol-toml/package.json +0 -54
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -218
- package/node_modules/zod/compile.cjs +0 -77
- package/node_modules/zod/compile.d.cts +0 -1
- package/node_modules/zod/compile.d.ts +0 -1
- package/node_modules/zod/compile.js +0 -52
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -3
- package/node_modules/zod/index.d.ts +0 -3
- package/node_modules/zod/index.js +0 -7
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -7
- package/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -7
- package/node_modules/zod/package.json +0 -146
- package/node_modules/zod/src/compile.ts +0 -56
- package/node_modules/zod/src/index.ts +0 -7
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -340
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -586
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -431
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -922
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -33
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -78
- package/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
- package/node_modules/zod/src/v4/classic/errors.ts +0 -97
- package/node_modules/zod/src/v4/classic/external.ts +0 -55
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -721
- package/node_modules/zod/src/v4/classic/in-out.ts +0 -45
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -20
- package/node_modules/zod/src/v4/classic/parse.ts +0 -88
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2862
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -83
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -720
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -836
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -296
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -979
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1310
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -281
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -107
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -183
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -342
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -362
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -950
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -234
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -662
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -190
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1346
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -780
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4537
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -76
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1859
- package/node_modules/zod/src/v4/core/checks.ts +0 -1306
- package/node_modules/zod/src/v4/core/compile.ts +0 -2188
- package/node_modules/zod/src/v4/core/core.ts +0 -232
- package/node_modules/zod/src/v4/core/doc.ts +0 -48
- package/node_modules/zod/src/v4/core/errors.ts +0 -546
- package/node_modules/zod/src/v4/core/index.ts +0 -19
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -830
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -148
- package/node_modules/zod/src/v4/core/memoizer.ts +0 -284
- package/node_modules/zod/src/v4/core/parse.ts +0 -288
- package/node_modules/zod/src/v4/core/regexes.ts +0 -207
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -5028
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -969
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -1639
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -31
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -855
- package/node_modules/zod/src/v4/core/util.ts +0 -1209
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/visit.ts +0 -193
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -118
- package/node_modules/zod/src/v4/locales/az.ts +0 -114
- package/node_modules/zod/src/v4/locales/be.ts +0 -186
- package/node_modules/zod/src/v4/locales/bg.ts +0 -131
- package/node_modules/zod/src/v4/locales/bn.ts +0 -121
- package/node_modules/zod/src/v4/locales/ca.ts +0 -119
- package/node_modules/zod/src/v4/locales/ckb.ts +0 -138
- package/node_modules/zod/src/v4/locales/cs.ts +0 -121
- package/node_modules/zod/src/v4/locales/da.ts +0 -126
- package/node_modules/zod/src/v4/locales/de.ts +0 -119
- package/node_modules/zod/src/v4/locales/el.ts +0 -122
- package/node_modules/zod/src/v4/locales/en.ts +0 -134
- package/node_modules/zod/src/v4/locales/eo.ts +0 -121
- package/node_modules/zod/src/v4/locales/es.ts +0 -143
- package/node_modules/zod/src/v4/locales/fa.ts +0 -129
- package/node_modules/zod/src/v4/locales/fi.ts +0 -124
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -119
- package/node_modules/zod/src/v4/locales/fr.ts +0 -137
- package/node_modules/zod/src/v4/locales/gu.ts +0 -121
- package/node_modules/zod/src/v4/locales/he.ts +0 -251
- package/node_modules/zod/src/v4/locales/hi.ts +0 -124
- package/node_modules/zod/src/v4/locales/hr.ts +0 -133
- package/node_modules/zod/src/v4/locales/hu.ts +0 -120
- package/node_modules/zod/src/v4/locales/hy.ts +0 -173
- package/node_modules/zod/src/v4/locales/id.ts +0 -118
- package/node_modules/zod/src/v4/locales/index.ts +0 -62
- package/node_modules/zod/src/v4/locales/is.ts +0 -122
- package/node_modules/zod/src/v4/locales/it.ts +0 -119
- package/node_modules/zod/src/v4/locales/ja.ts +0 -117
- package/node_modules/zod/src/v4/locales/ka.ts +0 -126
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -122
- package/node_modules/zod/src/v4/locales/kn.ts +0 -124
- package/node_modules/zod/src/v4/locales/ko.ts +0 -124
- package/node_modules/zod/src/v4/locales/lt.ts +0 -241
- package/node_modules/zod/src/v4/locales/mk.ts +0 -121
- package/node_modules/zod/src/v4/locales/ms.ts +0 -118
- package/node_modules/zod/src/v4/locales/ne.ts +0 -126
- package/node_modules/zod/src/v4/locales/nl.ts +0 -124
- package/node_modules/zod/src/v4/locales/nn.ts +0 -119
- package/node_modules/zod/src/v4/locales/no.ts +0 -119
- package/node_modules/zod/src/v4/locales/ota.ts +0 -120
- package/node_modules/zod/src/v4/locales/pl.ts +0 -121
- package/node_modules/zod/src/v4/locales/ps.ts +0 -129
- package/node_modules/zod/src/v4/locales/pt-BR.ts +0 -159
- package/node_modules/zod/src/v4/locales/pt.ts +0 -157
- package/node_modules/zod/src/v4/locales/ro.ts +0 -130
- package/node_modules/zod/src/v4/locales/ru.ts +0 -186
- package/node_modules/zod/src/v4/locales/sk.ts +0 -121
- package/node_modules/zod/src/v4/locales/sl.ts +0 -121
- package/node_modules/zod/src/v4/locales/sv.ts +0 -122
- package/node_modules/zod/src/v4/locales/ta.ts +0 -121
- package/node_modules/zod/src/v4/locales/th.ts +0 -122
- package/node_modules/zod/src/v4/locales/tk.ts +0 -111
- package/node_modules/zod/src/v4/locales/tr.ts +0 -114
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -120
- package/node_modules/zod/src/v4/locales/ur.ts +0 -122
- package/node_modules/zod/src/v4/locales/uz.ts +0 -118
- package/node_modules/zod/src/v4/locales/vi.ts +0 -120
- package/node_modules/zod/src/v4/locales/yo.ts +0 -127
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -119
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -118
- package/node_modules/zod/src/v4/mini/checks.ts +0 -33
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
- package/node_modules/zod/src/v4/mini/external.ts +0 -50
- package/node_modules/zod/src/v4/mini/in-out.ts +0 -45
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -16
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -2026
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1060
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -373
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -148
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -143
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -7
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3779
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3697
- package/node_modules/zod/v4/classic/checks.cjs +0 -34
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -48
- package/node_modules/zod/v4/classic/compat.d.ts +0 -48
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/deep-partial.cjs +0 -39
- package/node_modules/zod/v4/classic/deep-partial.d.cts +0 -14
- package/node_modules/zod/v4/classic/deep-partial.d.ts +0 -14
- package/node_modules/zod/v4/classic/deep-partial.js +0 -13
- package/node_modules/zod/v4/classic/errors.cjs +0 -83
- package/node_modules/zod/v4/classic/errors.d.cts +0 -29
- package/node_modules/zod/v4/classic/errors.d.ts +0 -29
- package/node_modules/zod/v4/classic/errors.js +0 -57
- package/node_modules/zod/v4/classic/external.cjs +0 -76
- package/node_modules/zod/v4/classic/external.d.cts +0 -19
- package/node_modules/zod/v4/classic/external.d.ts +0 -19
- package/node_modules/zod/v4/classic/external.js +0 -17
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -686
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -660
- package/node_modules/zod/v4/classic/in-out.cjs +0 -63
- package/node_modules/zod/v4/classic/in-out.d.cts +0 -8
- package/node_modules/zod/v4/classic/in-out.d.ts +0 -8
- package/node_modules/zod/v4/classic/in-out.js +0 -36
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -3
- package/node_modules/zod/v4/classic/index.d.ts +0 -3
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -49
- package/node_modules/zod/v4/classic/iso.d.cts +0 -7
- package/node_modules/zod/v4/classic/iso.d.ts +0 -7
- package/node_modules/zod/v4/classic/iso.js +0 -15
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/classic/parse.cjs +0 -44
- package/node_modules/zod/v4/classic/parse.d.cts +0 -44
- package/node_modules/zod/v4/classic/parse.d.ts +0 -44
- package/node_modules/zod/v4/classic/parse.js +0 -16
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1611
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -802
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -802
- package/node_modules/zod/v4/classic/schemas.js +0 -1491
- package/node_modules/zod/v4/core/api.cjs +0 -1246
- package/node_modules/zod/v4/core/api.d.cts +0 -329
- package/node_modules/zod/v4/core/api.d.ts +0 -329
- package/node_modules/zod/v4/core/api.js +0 -1104
- package/node_modules/zod/v4/core/checks.cjs +0 -607
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -581
- package/node_modules/zod/v4/core/compile.cjs +0 -1813
- package/node_modules/zod/v4/core/compile.d.cts +0 -51
- package/node_modules/zod/v4/core/compile.d.ts +0 -51
- package/node_modules/zod/v4/core/compile.js +0 -1783
- package/node_modules/zod/v4/core/core.cjs +0 -148
- package/node_modules/zod/v4/core/core.d.cts +0 -82
- package/node_modules/zod/v4/core/core.d.ts +0 -82
- package/node_modules/zod/v4/core/core.js +0 -141
- package/node_modules/zod/v4/core/doc.cjs +0 -37
- package/node_modules/zod/v4/core/doc.d.cts +0 -16
- package/node_modules/zod/v4/core/doc.d.ts +0 -16
- package/node_modules/zod/v4/core/doc.js +0 -33
- package/node_modules/zod/v4/core/errors.cjs +0 -301
- package/node_modules/zod/v4/core/errors.d.cts +0 -225
- package/node_modules/zod/v4/core/errors.d.ts +0 -225
- package/node_modules/zod/v4/core/errors.js +0 -270
- package/node_modules/zod/v4/core/index.cjs +0 -51
- package/node_modules/zod/v4/core/index.d.cts +0 -19
- package/node_modules/zod/v4/core/index.d.ts +0 -19
- package/node_modules/zod/v4/core/index.js +0 -19
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -103
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -99
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -813
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -747
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -89
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -89
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/memoizer.cjs +0 -272
- package/node_modules/zod/v4/core/memoizer.d.cts +0 -15
- package/node_modules/zod/v4/core/memoizer.d.ts +0 -15
- package/node_modules/zod/v4/core/memoizer.js +0 -265
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/core/parse.cjs +0 -193
- package/node_modules/zod/v4/core/parse.d.cts +0 -52
- package/node_modules/zod/v4/core/parse.d.ts +0 -52
- package/node_modules/zod/v4/core/parse.js +0 -154
- package/node_modules/zod/v4/core/regexes.cjs +0 -184
- package/node_modules/zod/v4/core/regexes.d.cts +0 -87
- package/node_modules/zod/v4/core/regexes.d.ts +0 -87
- package/node_modules/zod/v4/core/regexes.js +0 -150
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2481
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1253
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1253
- package/node_modules/zod/v4/core/schemas.js +0 -2440
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -660
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -153
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -153
- package/node_modules/zod/v4/core/to-json-schema.js +0 -650
- package/node_modules/zod/v4/core/util.cjs +0 -915
- package/node_modules/zod/v4/core/util.d.cts +0 -257
- package/node_modules/zod/v4/core/util.d.ts +0 -257
- package/node_modules/zod/v4/core/util.js +0 -846
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/core/visit.cjs +0 -195
- package/node_modules/zod/v4/core/visit.d.cts +0 -30
- package/node_modules/zod/v4/core/visit.d.ts +0 -30
- package/node_modules/zod/v4/core/visit.js +0 -169
- package/node_modules/zod/v4/index.cjs +0 -32
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -4
- package/node_modules/zod/v4/locales/ar.cjs +0 -136
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -109
- package/node_modules/zod/v4/locales/az.cjs +0 -135
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -108
- package/node_modules/zod/v4/locales/be.cjs +0 -193
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -166
- package/node_modules/zod/v4/locales/bg.cjs +0 -150
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -123
- package/node_modules/zod/v4/locales/bn.cjs +0 -138
- package/node_modules/zod/v4/locales/bn.d.cts +0 -5
- package/node_modules/zod/v4/locales/bn.d.ts +0 -4
- package/node_modules/zod/v4/locales/bn.js +0 -111
- package/node_modules/zod/v4/locales/ca.cjs +0 -137
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -110
- package/node_modules/zod/v4/locales/ckb.cjs +0 -158
- package/node_modules/zod/v4/locales/ckb.d.cts +0 -5
- package/node_modules/zod/v4/locales/ckb.d.ts +0 -4
- package/node_modules/zod/v4/locales/ckb.js +0 -131
- package/node_modules/zod/v4/locales/cs.cjs +0 -141
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -114
- package/node_modules/zod/v4/locales/da.cjs +0 -145
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -118
- package/node_modules/zod/v4/locales/de.cjs +0 -138
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -111
- package/node_modules/zod/v4/locales/el.cjs +0 -137
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -110
- package/node_modules/zod/v4/locales/en.cjs +0 -150
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -123
- package/node_modules/zod/v4/locales/eo.cjs +0 -139
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -112
- package/node_modules/zod/v4/locales/es.cjs +0 -161
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -134
- package/node_modules/zod/v4/locales/fa.cjs +0 -144
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -117
- package/node_modules/zod/v4/locales/fi.cjs +0 -142
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -115
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -137
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -110
- package/node_modules/zod/v4/locales/fr.cjs +0 -154
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -127
- package/node_modules/zod/v4/locales/gu.cjs +0 -138
- package/node_modules/zod/v4/locales/gu.d.cts +0 -5
- package/node_modules/zod/v4/locales/gu.d.ts +0 -4
- package/node_modules/zod/v4/locales/gu.js +0 -111
- package/node_modules/zod/v4/locales/he.cjs +0 -246
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -219
- package/node_modules/zod/v4/locales/hi.cjs +0 -136
- package/node_modules/zod/v4/locales/hi.d.cts +0 -5
- package/node_modules/zod/v4/locales/hi.d.ts +0 -4
- package/node_modules/zod/v4/locales/hi.js +0 -109
- package/node_modules/zod/v4/locales/hr.cjs +0 -151
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -124
- package/node_modules/zod/v4/locales/hu.cjs +0 -138
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -111
- package/node_modules/zod/v4/locales/hy.cjs +0 -183
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -156
- package/node_modules/zod/v4/locales/id.cjs +0 -136
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -109
- package/node_modules/zod/v4/locales/index.cjs +0 -131
- package/node_modules/zod/v4/locales/index.d.cts +0 -62
- package/node_modules/zod/v4/locales/index.d.ts +0 -62
- package/node_modules/zod/v4/locales/index.js +0 -62
- package/node_modules/zod/v4/locales/is.cjs +0 -139
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -112
- package/node_modules/zod/v4/locales/it.cjs +0 -138
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -111
- package/node_modules/zod/v4/locales/ja.cjs +0 -137
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -110
- package/node_modules/zod/v4/locales/ka.cjs +0 -142
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -115
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -140
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -113
- package/node_modules/zod/v4/locales/kn.cjs +0 -141
- package/node_modules/zod/v4/locales/kn.d.cts +0 -5
- package/node_modules/zod/v4/locales/kn.d.ts +0 -4
- package/node_modules/zod/v4/locales/kn.js +0 -114
- package/node_modules/zod/v4/locales/ko.cjs +0 -141
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -114
- package/node_modules/zod/v4/locales/lt.cjs +0 -232
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -205
- package/node_modules/zod/v4/locales/mk.cjs +0 -139
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -112
- package/node_modules/zod/v4/locales/ms.cjs +0 -137
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -110
- package/node_modules/zod/v4/locales/ne.cjs +0 -136
- package/node_modules/zod/v4/locales/ne.d.cts +0 -5
- package/node_modules/zod/v4/locales/ne.d.ts +0 -4
- package/node_modules/zod/v4/locales/ne.js +0 -109
- package/node_modules/zod/v4/locales/nl.cjs +0 -140
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -113
- package/node_modules/zod/v4/locales/nn.cjs +0 -138
- package/node_modules/zod/v4/locales/nn.d.cts +0 -5
- package/node_modules/zod/v4/locales/nn.d.ts +0 -4
- package/node_modules/zod/v4/locales/nn.js +0 -111
- package/node_modules/zod/v4/locales/no.cjs +0 -138
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -111
- package/node_modules/zod/v4/locales/ota.cjs +0 -139
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -112
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/pl.cjs +0 -139
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -112
- package/node_modules/zod/v4/locales/ps.cjs +0 -144
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -117
- package/node_modules/zod/v4/locales/pt-BR.cjs +0 -168
- package/node_modules/zod/v4/locales/pt-BR.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt-BR.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt-BR.js +0 -141
- package/node_modules/zod/v4/locales/pt.cjs +0 -167
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -140
- package/node_modules/zod/v4/locales/ro.cjs +0 -147
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -120
- package/node_modules/zod/v4/locales/ru.cjs +0 -193
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -166
- package/node_modules/zod/v4/locales/sk.cjs +0 -141
- package/node_modules/zod/v4/locales/sk.d.cts +0 -5
- package/node_modules/zod/v4/locales/sk.d.ts +0 -4
- package/node_modules/zod/v4/locales/sk.js +0 -114
- package/node_modules/zod/v4/locales/sl.cjs +0 -139
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -112
- package/node_modules/zod/v4/locales/sv.cjs +0 -140
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -113
- package/node_modules/zod/v4/locales/ta.cjs +0 -140
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -113
- package/node_modules/zod/v4/locales/th.cjs +0 -140
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -113
- package/node_modules/zod/v4/locales/tk.cjs +0 -132
- package/node_modules/zod/v4/locales/tk.d.cts +0 -5
- package/node_modules/zod/v4/locales/tk.d.ts +0 -4
- package/node_modules/zod/v4/locales/tk.js +0 -105
- package/node_modules/zod/v4/locales/tr.cjs +0 -135
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -108
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -138
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -111
- package/node_modules/zod/v4/locales/ur.cjs +0 -140
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -113
- package/node_modules/zod/v4/locales/uz.cjs +0 -138
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -111
- package/node_modules/zod/v4/locales/vi.cjs +0 -138
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -111
- package/node_modules/zod/v4/locales/yo.cjs +0 -137
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -110
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -139
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -112
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -137
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -110
- package/node_modules/zod/v4/mini/checks.cjs +0 -35
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/deep-partial.cjs +0 -39
- package/node_modules/zod/v4/mini/deep-partial.d.cts +0 -14
- package/node_modules/zod/v4/mini/deep-partial.d.ts +0 -14
- package/node_modules/zod/v4/mini/deep-partial.js +0 -13
- package/node_modules/zod/v4/mini/external.cjs +0 -74
- package/node_modules/zod/v4/mini/external.d.cts +0 -16
- package/node_modules/zod/v4/mini/external.d.ts +0 -16
- package/node_modules/zod/v4/mini/external.js +0 -16
- package/node_modules/zod/v4/mini/in-out.cjs +0 -63
- package/node_modules/zod/v4/mini/in-out.d.cts +0 -8
- package/node_modules/zod/v4/mini/in-out.d.ts +0 -8
- package/node_modules/zod/v4/mini/in-out.js +0 -36
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/mini/parse.cjs +0 -18
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1111
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -475
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -475
- package/node_modules/zod/v4/mini/schemas.js +0 -987
- package/node_modules/zod/v4/package.json +0 -7
- package/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -7
- package/personal-state.snapshot.lock.json +0 -40
- package/scene-interaction-v2.snapshot.lock.json +0 -36
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { execFile } from 'node:child_process';
|
|
2
2
|
import { createHash } from 'node:crypto';
|
|
3
|
-
import {
|
|
3
|
+
import { copyFile, lstat, mkdir, mkdtemp, readFile, readdir, realpath, rm, writeFile } from 'node:fs/promises';
|
|
4
4
|
import os from 'node:os';
|
|
5
5
|
import path from 'node:path';
|
|
6
|
-
import {
|
|
6
|
+
import { checkRuntimeContent } from './runtime-content.mjs';
|
|
7
|
+
import { isDeepStrictEqual, promisify } from 'node:util';
|
|
7
8
|
import { pathToFileURL } from 'node:url';
|
|
8
|
-
import {
|
|
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';
|
|
9
|
+
import { createLocalCapabilityGateway, platformGrantedCapabilities } from './capability-harness.mjs';
|
|
13
10
|
import { hasRuntimeSnapshot, verifyRuntimeSnapshot } from './runtime-snapshot.mjs';
|
|
14
11
|
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
12
|
import { readBoundedContentAsset, inspectProjectScene } from './scene-assets.mjs';
|
|
13
|
+
import { checkServerEntities, loadServerEntitiesContract } from './server-entities-check.mjs';
|
|
14
|
+
import { loadRuleSet } from './creator-rules.mjs';
|
|
15
|
+
import { assetBudgetProblem, customActionProblem, documentProblem, sceneInteractionProblem, withRepair } from './declaration-problems.mjs';
|
|
16
|
+
import { PLATFORM_MAX_INPUT_BYTES, jsonBytes, sandboxLifecycleInput } from './platform-limits.mjs';
|
|
17
|
+
import { gameplayImportProblems } from './gameplay-imports.mjs';
|
|
18
|
+
import { builtinWriteIssue, frozenWriteProperty, gameplaySource, locatedBuiltinWrite } from './builtin-write.mjs';
|
|
19
|
+
import { START_FAILED, ecsAccessIssue, ecsAccessJudge, ecsAccessProblems, ruleCallSite, startCapabilityIssue, startWarnIssue, watchEcsAccess } from './ecs-access.mjs';
|
|
20
|
+
import { worldSceneAssetBudget } from '../contracts/ugc/runtime-content/v1/asset-budget.mjs';
|
|
21
|
+
import { documentAssetBudget } from '../contracts/ugc/document-presentation/v1/document.mjs';
|
|
22
|
+
import { LIVE_BASELINE_RESOURCE, validateLiveBaseline } from './live-baseline-shape.mjs';
|
|
23
|
+
import { liveRuleProblems } from './live-rule-check.mjs';
|
|
24
|
+
import { ROOM_PRIVATE_STATE_BYTES, roomStateProjector } from './sandbox-projection/v1/room-state-projection.mjs';
|
|
19
25
|
|
|
20
26
|
const execFileAsync = promisify(execFile);
|
|
21
27
|
const VERSION = '1.0.0';
|
|
@@ -36,6 +42,178 @@ const issue = (code, at, message, repairHint, extra = {}) => ({
|
|
|
36
42
|
...extra
|
|
37
43
|
});
|
|
38
44
|
|
|
45
|
+
async function localAuthoredEntities(contentRoot, file) {
|
|
46
|
+
const declared = JSON.parse(await readFile(path.join(contentRoot, file), 'utf8'));
|
|
47
|
+
const rows = (Array.isArray(declared?.entities) ? declared.entities : []).map(entity => ({ entityId: entity.id ?? entity.entityId, playerId: null, controlled: false, controllerPlayerId: null, ownershipGeneration: 0, attachment: null }));
|
|
48
|
+
const requests = [], queue = (requestId, entityId, target) => { requests.push({ requestId, entityId, target }); return { queued: true }; };
|
|
49
|
+
const api = { list: () => structuredClone(rows), submitPoses: poses => ({ accepted: Array.isArray(poses) ? poses.length : 0, refused: [] }),
|
|
50
|
+
requestOwnership: (requestId, entityId, target) => queue(requestId, entityId, target), requestSeat: (requestId, entityId) => queue(requestId, entityId) };
|
|
51
|
+
const drive = presentation => {
|
|
52
|
+
for (const { requestId, entityId, target } of requests.splice(0)) {
|
|
53
|
+
const row = rows.find(item => item.entityId === entityId);
|
|
54
|
+
if (target === 'self' && row) Object.assign(row, { controlled: true, controllerPlayerId: 'player:local', ownershipGeneration: 1 });
|
|
55
|
+
presentation.onAuthoredResult?.({ requestId, ok: true, result: { entityId, ownershipGeneration: 1, controllerPlayerId: 'player:local' } });
|
|
56
|
+
if (target === 'self') presentation.onAuthoredControl?.({ entityId, controlled: true });
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return { api, drive };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const PLAYER_SELF_VISIBILITY = Object.freeze(['owner', 'all-participants']);
|
|
63
|
+
const visibleComponents = (manifest, visibilities) => new Set((manifest.networkIntents ?? []).filter(intent => visibilities.includes(intent.visibility)).map(intent => intent.component));
|
|
64
|
+
|
|
65
|
+
async function presentationContractJudge(root, manifest, model, rules) {
|
|
66
|
+
if (!manifest.requestedCapabilities?.some(capability => capability.id === 'presentation.controlled')) return () => [];
|
|
67
|
+
const { ControlledPresentation } = await import(pathToFileURL(path.join(root, 'contracts/ugc/controlled-presentation/v1/presentation.mjs')).href);
|
|
68
|
+
const shared = visibleComponents(manifest, ['all-participants']), own = visibleComponents(manifest, PLAYER_SELF_VISIBILITY);
|
|
69
|
+
const tableIds = new rules.PrivateStateProjection(model).fieldTable().components.map(component => component.componentId);
|
|
70
|
+
const componentIds = tableIds.filter(id => shared.has(id)).sort();
|
|
71
|
+
const playerPrefab = model.prefabs.prefabs.find(prefab => prefab.id === model.scene.playerPrefab);
|
|
72
|
+
const playerComponentIds = tableIds.filter(id => own.has(id) && Object.hasOwn(playerPrefab?.components ?? {}, id)).sort();
|
|
73
|
+
const sceneEntityIds = model.scene.entities.map(entity => entity.id).sort();
|
|
74
|
+
let controller;
|
|
75
|
+
try {
|
|
76
|
+
controller = new ControlledPresentation(model, { capability: { id: 'presentation.controlled', version: '1.0.0' }, commands: ['marker.upsert', 'ui.task.upsert', 'view.remove'], componentIds, playerComponentIds, sceneEntityIds, interactionTargetIds: [], effectIds: [],
|
|
77
|
+
maxCommandsPerLifecycle: 32, maxCommandsPerTick: 32, maxCommandBytes: 2048, maxBatchBytes: 16384, maxViews: 64, maxViewBytes: 32768 });
|
|
78
|
+
} catch { return () => []; }
|
|
79
|
+
return command => {
|
|
80
|
+
if (!['marker.upsert', 'ui.task.upsert', 'view.remove'].includes(command?.type)) return [];
|
|
81
|
+
try { controller.validate(command); return []; }
|
|
82
|
+
catch (error) { return [{ code: typeof error?.code === 'string' ? error.code : 'INVALID_PRESENTATION_COMMAND', message: `Presentation command ${shownValue(command.type)} ${shownValue(command.id)} would be refused in the room with ${error?.code}.` }]; }
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async function presentationBindingJudge(root, contentRoot, manifest) {
|
|
87
|
+
const { PLAYER_SELF_ENTITY } = await import(pathToFileURL(path.join(root, 'contracts/ugc/controlled-presentation/v1/presentation.mjs')).href);
|
|
88
|
+
const read = file => readFile(path.join(contentRoot, file), 'utf8').then(JSON.parse);
|
|
89
|
+
const [scene, prefabs, components] = await Promise.all([read(manifest.ecs.scene), read(manifest.ecs.prefabs), read(manifest.ecs.components)]);
|
|
90
|
+
const inventory = new Map((scene.entities ?? []).map(entity => [entity.id, new Set([...Object.keys(prefabs.prefabs?.find(prefab => prefab.id === entity.prefab)?.components ?? {}), ...Object.keys(entity.components ?? {})])]));
|
|
91
|
+
const shared = visibleComponents(manifest, ['all-participants']), own = visibleComponents(manifest, PLAYER_SELF_VISIBILITY);
|
|
92
|
+
const playerComponents = Object.keys(prefabs.prefabs?.find(prefab => prefab.id === scene.playerPrefab)?.components ?? {});
|
|
93
|
+
const fields = new Map((components.components ?? []).map(component => [component.id, (component.fields ?? []).map(field => field.name)]));
|
|
94
|
+
const refused = (id, text) => `Task card ${shownValue(id)} ${text}`;
|
|
95
|
+
return command => {
|
|
96
|
+
if (command?.type !== 'ui.task.upsert') return [];
|
|
97
|
+
const missing = command.completeWhen ? [] : [refused(command.id, 'has no completeWhen. A task card needs completeWhen: { binding, equals }.')];
|
|
98
|
+
return [...missing, ...[['completeWhen.binding', command.completeWhen?.binding], ['progress.current', command.progress?.current], ['progress.total', command.progress?.total]].filter(([, binding]) => binding).flatMap(([at, binding]) => {
|
|
99
|
+
if (typeof binding !== 'object') return [refused(command.id, `sets ${at} to ${shownValue(binding)}. It must bind a field: { entityId, componentId, field }.`)];
|
|
100
|
+
const { entityId, componentId, field } = binding;
|
|
101
|
+
if (entityId === PLAYER_SELF_ENTITY) {
|
|
102
|
+
if (!playerComponents.includes(componentId)) return [refused(command.id, `binds ${shownValue(componentId)} on ${PLAYER_SELF_ENTITY}, which the scene.playerPrefab prefab ${shownValue(scene.playerPrefab)} does not have. It has: ${listed(playerComponents)}.`)];
|
|
103
|
+
if (!own.has(componentId)) return [refused(command.id, `binds ${shownValue(componentId)} on ${PLAYER_SELF_ENTITY}, which has no networkIntents entry of visibility owner or all-participants.`)];
|
|
104
|
+
return fields.get(componentId)?.includes(field) ? [] : [refused(command.id, `binds field ${shownValue(field)}, which ${shownValue(componentId)} does not declare. Fields: ${listed(fields.get(componentId) ?? [])}.`)];
|
|
105
|
+
}
|
|
106
|
+
if (!inventory.has(entityId)) return [refused(command.id, `binds entity ${shownValue(entityId)}, which is not in ecs/scene.json. Scene entities: ${listed([...inventory.keys()])}.`)];
|
|
107
|
+
if (!inventory.get(entityId).has(componentId)) return [refused(command.id, `binds ${shownValue(componentId)}, which entity ${shownValue(entityId)} does not have. It has: ${listed([...inventory.get(entityId)])}.`)];
|
|
108
|
+
if (!shared.has(componentId)) return [refused(command.id, `binds ${shownValue(componentId)}, which has no networkIntents entry of visibility all-participants.`)];
|
|
109
|
+
if (!fields.get(componentId)?.includes(field)) return [refused(command.id, `binds field ${shownValue(field)}, which ${shownValue(componentId)} does not declare. Fields: ${listed(fields.get(componentId) ?? [])}.`)];
|
|
110
|
+
return [];
|
|
111
|
+
})];
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const clientFailureText = (stage, error) => `The client entry failed in ${stage}: ${typeof error?.name === 'string' ? error.name : 'Error'}: ${String(error?.message ?? error).replace(/[\u0000-\u001f\u007f]/g, ' ').slice(0, 240)}.`;
|
|
116
|
+
|
|
117
|
+
function clientFailureLine(error, clientRoot) {
|
|
118
|
+
const found = typeof error?.stack === 'string' ? error.stack.split(clientRoot).slice(1).map(part => /^[^:\s]+:(\d+):/.exec(part)?.[1]).find(Boolean) : undefined;
|
|
119
|
+
return found ? { line: Number(found) } : {};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function documentResourceProblem(contentRoot, resource, maxAssetBytes) {
|
|
123
|
+
const named = `Document resource ${resource.path}`;
|
|
124
|
+
const stat = await lstat(path.join(contentRoot, resource.path)).catch(() => null);
|
|
125
|
+
if (!stat) return `${named} is listed in document.json but the file is missing.`;
|
|
126
|
+
if (stat.isSymbolicLink() || !stat.isFile()) return `${named} must be a regular file, not a link or directory.`;
|
|
127
|
+
if (stat.size > maxAssetBytes) return `${named} has ${stat.size} bytes, above the asset budget of ${maxAssetBytes}.`;
|
|
128
|
+
if (stat.size !== resource.bytes) return `${named} has ${stat.size} bytes, but document.json records ${resource.bytes}, so the file changed after import.`;
|
|
129
|
+
return `${named} has the recorded size but different content from document.json, so the file changed after import.`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const groundMeaning = {
|
|
133
|
+
INVALID_GROUND_RULES: 'A field is missing, extra or of the wrong type. Check schemaVersion, mode (flat-ground), groundHeightMeters, spawnPoints, bounds, obstacles and movement; walk speed is 0.1 to 10 and run speed is null or between walk speed and 10.',
|
|
134
|
+
GROUND_BUDGET_EXCEEDED: 'There are too many spawn points or obstacles for the platform limit. Remove some.',
|
|
135
|
+
INVALID_GROUND_GEOMETRY: 'bounds, an obstacle or a spawn point has an impossible value: bounds must be at least 0.9 m wide on both axes, min below max, and obstacle radius at least 0.1.',
|
|
136
|
+
INVALID_GROUND_SPAWN: 'A spawn point is unusable: each must be inside bounds by at least 0.45 m, clear of every obstacle by 0.45 m, and at least 0.9 m from other spawn points.'
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
async function groundProblem(row, documents, platform) {
|
|
140
|
+
if (row?.code !== 'INVALID_MANIFEST' || !/^Ground declaration violates/.test(row.message ?? '')) return row;
|
|
141
|
+
const version = documents.groundRules?.schemaVersion;
|
|
142
|
+
const load = async (file, name) => (await import(pathToFileURL(path.join(platform, 'contracts/ugc/ground-rules', file)).href))[name];
|
|
143
|
+
try {
|
|
144
|
+
if (version === '2.2.0') (await load('v2.2/spatial-source.mjs', 'normalizeGroundEndpointSource'))(documents.groundRules);
|
|
145
|
+
else if (version === '2.1.0') (await load('v2/spatial-source.mjs', 'normalizeGroundSpatialSource'))(documents.groundRules);
|
|
146
|
+
else if (version === '2.0.0') (await load('v2/ground-rules.mjs', 'prepareGroundSpaces'))(documents.groundRules);
|
|
147
|
+
else (await load('v1/ground-rules.mjs', 'prepareGroundRules'))(documents.groundRules);
|
|
148
|
+
return row;
|
|
149
|
+
} catch (error) {
|
|
150
|
+
return { ...row, message: `Ground declaration (schema ${shownValue(version)}) was refused with ${typeof error?.code === 'string' ? error.code : 'an unknown reason'}. ${groundMeaning[error?.code] ?? ''}`.trim(),
|
|
151
|
+
repairHint: 'Repair rules/ground.json. docs/ground-rules.md has the fields; a working example is contracts/ugc/v1/testdata/valid/ground-rules.json in the rule pack.' };
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const runtimeReasonHints = { vehicle: 'vehicle may have only deck, obstacles, seats and body. seats is 1 to 16 rows of { seat, position, yaw, exits }, with unique seat numbers and 1 to 4 exits of { x, z }. body is { halfExtents: { x, y, z } }, each above 0. deck is 1 to 16 circle or convex polygon regions. obstacles is up to 64 circle or segment shapes.' };
|
|
156
|
+
const runtimeCheckDocs = { 'authored-motion': 'docs/authored-entities.md', 'authored-motion-host': 'docs/authored-entities.md', 'ground-effective': 'docs/ground-rules.md', 'document-ground-version': 'docs/ground-rules.md' };
|
|
157
|
+
const shownValue = value => JSON.stringify(value)?.replace(/[\u0000-\u001f\u007f]/g, ' ').slice(0, 80) ?? 'undefined';
|
|
158
|
+
const listed = values => values.length ? values.slice(0, 24).join(', ') : 'none';
|
|
159
|
+
|
|
160
|
+
const stepShapes = { start: 'input is { roomId }', stop: 'input is { roomId }', tick: 'input is { tick, deltaSeconds }, tick equals the step tick and deltaSeconds is above 0 and at most 1', event: 'input is { type, payload? }', scene: 'input is the scene request' };
|
|
161
|
+
function testCaseProblem(testCase, suffix) {
|
|
162
|
+
const index = /^\.steps\[(\d+)\]/.exec(suffix)?.[1], step = index === undefined ? undefined : testCase?.steps?.[Number(index)];
|
|
163
|
+
const name = `Case ${shownValue(testCase?.id)}`;
|
|
164
|
+
if (suffix === '.id') return `${name}: id must have 1 to 128 letters, digits or ._- and be unique.`;
|
|
165
|
+
if (suffix === '.steps') return `${name}: a case with steps has only id and steps, and 2 to 64 steps. It has ${Array.isArray(testCase?.steps) ? testCase.steps.length : 'no'} steps and keys ${listed(Object.keys(testCase ?? {}))}.`;
|
|
166
|
+
if (suffix === '') return `${name}: use either { id, event, expectedCapabilityCalls } with optional coreFixture and expectedPrivateState, or { id, steps }. It has keys ${listed(Object.keys(testCase ?? {}))}.`;
|
|
167
|
+
if (suffix.endsWith('.expectedPrivateState')) return `${name}: expectedPrivateState is 1 to 32 rows of { entityId, component, fields }, component is ugc.id:Name, and fields has 1 to 16 entries.`;
|
|
168
|
+
if (suffix.endsWith('.coreFixture')) return `${name}: coreFixture does not match the core fixture format in docs/reference.md.`;
|
|
169
|
+
if (suffix.endsWith('.lifecycle')) return `${name} step ${index} has lifecycle ${shownValue(step?.lifecycle)} at tick ${shownValue(step?.tick)}. The first step must be start at tick 0, the last must be stop, and the steps between are tick, event or scene.`;
|
|
170
|
+
if (suffix.endsWith('.input')) return `${name} step ${index}: for lifecycle ${shownValue(step?.lifecycle)}, ${stepShapes[step?.lifecycle] ?? 'the input shape is unknown'}. It has ${shownValue(step?.input)}.`;
|
|
171
|
+
if (index !== undefined) return `${name} step ${index}: a step needs lifecycle, tick, seed, input and expectedCapabilityCalls, and may have coreFixture and expectedPrivateState. Ticks must not go down, and each expected call is { id, payload }. It has keys ${listed(Object.keys(step ?? {}))}.`;
|
|
172
|
+
return name;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function openCreationProblem(row, manifest, documents) {
|
|
176
|
+
if (row?.code === 'INVALID_MANIFEST' && row.path === '$.openCreation.spawnPrefabs' && Array.isArray(manifest.openCreation?.spawnPrefabs)) {
|
|
177
|
+
const declared = new Set((documents?.prefabs?.prefabs ?? []).map(item => item?.id));
|
|
178
|
+
const missing = manifest.openCreation.spawnPrefabs.filter(id => !declared.has(id));
|
|
179
|
+
if (missing.length) return { ...row, message: `openCreation.spawnPrefabs lists ${listed(missing)}, which content/ecs/prefabs.json does not declare.`,
|
|
180
|
+
repairHint: `Remove ${listed(missing)} from openCreation.spawnPrefabs in content/manifest.json, or declare ${missing.length === 1 ? 'that prefab' : 'those prefabs'} in content/ecs/prefabs.json. If no prefab is spawned at run time any more, remove spawnPrefabs.` };
|
|
181
|
+
}
|
|
182
|
+
if (row?.code !== 'INVALID_MANIFEST' || row.path !== '$.openCreation') return row;
|
|
183
|
+
return { ...row, message: `${row.message} It has keys ${listed(Object.keys(manifest.openCreation ?? {}))}, executionTier ${shownValue(manifest.executionTier)} and shared entry ${shownValue(manifest.entrypoints?.shared)}.`,
|
|
184
|
+
repairHint: 'Use { "schemaVersion": "1.0.0", "customActions": "ecs/actions.json", "spawnPrefabs": ["prefab-id"] } with at least one of customActions and spawnPrefabs, as docs/open-creation.md says. The work needs executionTier public-untrusted and an entrypoints.shared file.' };
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function playerPrefabProblem(row, manifest, documents) {
|
|
188
|
+
if (row?.code !== 'UNKNOWN_REQUIRED_COMPONENT' || !/#playerPrefab$/.test(row.path ?? '')) return row;
|
|
189
|
+
const prefab = documents.prefabs.prefabs?.find(item => item.id === documents.scene.playerPrefab);
|
|
190
|
+
const used = Object.keys(prefab?.components ?? {}), foreign = used.filter(id => !id.startsWith(`${manifest.contentId}:`));
|
|
191
|
+
const declared = (documents.components.components ?? []).map(component => component.id).filter(id => id.startsWith(`${manifest.contentId}:`));
|
|
192
|
+
return { ...row, message: `Player prefab ${shownValue(documents.scene.playerPrefab)} may instantiate only declared content-private components. ${used.length ? `Not allowed here: ${listed(foreign)}.` : 'It has no components.'} Declared: ${listed(declared)}.`,
|
|
193
|
+
repairHint: `Give it at least one component from the declared list, named ${manifest.contentId}:Name, and remove the others. Movement and collision come from the platform, so core: components do not belong here.` };
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function testBoundsIssue(documents, error) {
|
|
197
|
+
const cases = documents.flatMap(document => Array.isArray(document?.cases) ? document.cases : []);
|
|
198
|
+
const steps = cases.reduce((total, testCase) => total + (Array.isArray(testCase?.steps) ? testCase.steps.length : 0), 0);
|
|
199
|
+
const seen = new Set(), duplicate = cases.find(testCase => seen.size === seen.add(testCase?.id).size)?.id;
|
|
200
|
+
const found = `The declared tests have ${documents.length} file${documents.length === 1 ? '' : 's'}, ${cases.length} case${cases.length === 1 ? '' : 's'} and ${steps} step${steps === 1 ? '' : 's'}.`;
|
|
201
|
+
const reason = !cases.length ? 'At least 1 case is required.' : cases.length > 128 ? 'At most 128 cases are allowed.' : steps > 256 ? 'At most 256 steps are allowed across all cases.'
|
|
202
|
+
: duplicate !== undefined ? `Case id ${duplicate} is used twice.` : `One case or step has the wrong shape${typeof error?.message === 'string' && error.message ? `: ${error.message.slice(0, 200)}` : ''}.`;
|
|
203
|
+
return issue('INVALID_FIELD_TYPE', 'content/tests', `${found} ${reason}`, 'Merge or remove cases until the totals fit, or fix the case named here. Each test file must have only schemaVersion and cases.');
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function undeclaredActionIssue(manifest, stepNumber, actionId, declaredActions) {
|
|
207
|
+
const file = manifest.openCreation?.customActions ?? 'ecs/actions.json';
|
|
208
|
+
const name = typeof actionId === 'string' ? actionId : '(no actionId given)';
|
|
209
|
+
const declared = declaredActions?.length ? `Declared actions: ${declaredActions.join(', ')}` : 'The work declares no actions yet';
|
|
210
|
+
return {
|
|
211
|
+
at: file,
|
|
212
|
+
message: `The action ${name} in step ${stepNumber} is not declared in content/${file}, so the rule never receives it and this step has no effect.`,
|
|
213
|
+
repairHint: `Pick one of two paths; no rule code needs to change. To make it take effect: add it to actions in chrona.generate.json and run chrona generate (if you hand-write content/${file}, add an entry there). If it should not take effect: change this case to use a declared action, or change this step\'s expectation to no effect. ${declared}.`
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
39
217
|
const baseReport = ({ status, errors = [], warnings = [], capabilityResult }) => ({
|
|
40
218
|
schemaVersion: VERSION,
|
|
41
219
|
status,
|
|
@@ -50,6 +228,84 @@ const baseReport = ({ status, errors = [], warnings = [], capabilityResult }) =>
|
|
|
50
228
|
sensitiveValuesRedacted: true
|
|
51
229
|
});
|
|
52
230
|
|
|
231
|
+
function entityBudgetOf({ maxEntities, scene }) {
|
|
232
|
+
return { maxEntities, sceneEntities: scene.entities.length, playerReserve: 0, headroom: maxEntities - scene.entities.length };
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const invalidTarget = error => typeof error?.component === 'string' ? `${error.component}${typeof error?.field === 'string' ? `.${error.field}` : ''}` : 'a component field';
|
|
236
|
+
|
|
237
|
+
const INTEGER_RANGES = { uint32: [0, 4294967295], int32: [-2147483648, 2147483647] };
|
|
238
|
+
export function actionDataProblem(declarations, actionId, data) {
|
|
239
|
+
const action = declarations?.actions?.find(row => row?.id === actionId);
|
|
240
|
+
if (!action) return `${actionId} is not declared in ecs/actions.json`;
|
|
241
|
+
if (data === null || typeof data !== 'object' || Array.isArray(data)) return 'data is not an object';
|
|
242
|
+
const fields = Array.isArray(action.fields) ? action.fields : [];
|
|
243
|
+
const extra = Object.keys(data).find(key => !fields.some(field => field.name === key));
|
|
244
|
+
if (extra) return `${extra} is not a declared field`;
|
|
245
|
+
for (const field of fields) {
|
|
246
|
+
const value = data[field.name];
|
|
247
|
+
if (value === undefined) { if (field.required) return `${field.name} is missing`; continue; }
|
|
248
|
+
const range = INTEGER_RANGES[field.type];
|
|
249
|
+
if (range && !Number.isInteger(value)) return `${field.name} is ${JSON.stringify(value)}, not an integer`;
|
|
250
|
+
if (field.type === 'float32' && !Number.isFinite(value)) return `${field.name} is ${JSON.stringify(value)}, not a number`;
|
|
251
|
+
if (field.type === 'boolean' && typeof value !== 'boolean') return `${field.name} is ${JSON.stringify(value)}, not true or false`;
|
|
252
|
+
if (field.type === 'string' && typeof value !== 'string') return `${field.name} is not a string`;
|
|
253
|
+
if (field.type === 'string' && Number.isInteger(field.maxLength) && value.length > field.maxLength) return `${field.name} is ${value.length} characters, more than maxLength ${field.maxLength}`;
|
|
254
|
+
const low = field.minimum ?? range?.[0], high = field.maximum ?? range?.[1];
|
|
255
|
+
if (typeof value === 'number' && Number.isFinite(low) && value < low) return `${field.name} is ${value}, below its minimum ${low}`;
|
|
256
|
+
if (typeof value === 'number' && Number.isFinite(high) && value > high) return `${field.name} is ${value}, above its maximum ${high}`;
|
|
257
|
+
}
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function authoredPlayersWarnings(manifest) {
|
|
262
|
+
const flight = Array.isArray(manifest?.requestedCapabilities) && manifest.requestedCapabilities.some(row => row?.id === 'locomotion.flight');
|
|
263
|
+
if (!manifest?.authoredMotion || manifest.groundRules || flight) return [];
|
|
264
|
+
return [issue('AUTHORED_MOTION_DRIVES_PLAYERS', 'content/manifest.json',
|
|
265
|
+
'The work declares authoredMotion but neither groundRules nor locomotion.flight, so the room moves players only through authored entities. A player who is not in a vehicle does not move when WASD is pressed, and the room refuses walking input.',
|
|
266
|
+
'If players should walk, add groundRules (docs/ground-rules.md). Otherwise moving a player outside a vehicle is up to your own code: the platform gives no walking in this kind of room, so make sure players start in a vehicle or can reach one.')];
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
async function vehicleBodyWarnings(contentRoot, manifest) {
|
|
270
|
+
if (typeof manifest?.authoredMotion !== 'string') return [];
|
|
271
|
+
let source;
|
|
272
|
+
try { source = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(await readBoundedContentAsset(contentRoot, manifest.authoredMotion, 1048576))); } catch { return []; }
|
|
273
|
+
const open = [source?.entities, source?.templates].flatMap(rows => Array.isArray(rows) ? rows : [])
|
|
274
|
+
.filter(row => typeof row?.id === 'string' && Array.isArray(row.vehicle?.seats) && row.vehicle.seats.length > 0 && row.vehicle.body === undefined);
|
|
275
|
+
if (!open.length) return [];
|
|
276
|
+
const names = open.slice(0, 8).map(row => row.id).join(', ');
|
|
277
|
+
return [issue('VEHICLE_BODY_MISSING', manifest.authoredMotion,
|
|
278
|
+
`${open.length === 1 ? 'A vehicle has' : `${open.length} vehicles have`} seats but no body: ${names}${open.length > 8 ? ' and more' : ''}. The room and the page only stop a walking player at a vehicle that declares vehicle.body, so players walk straight through ${open.length === 1 ? 'this one' : 'these'}.`,
|
|
279
|
+
'Add "body": { "halfExtents": { "x": HALF_WIDTH, "y": HALF_HEIGHT, "z": HALF_LENGTH } } inside "vehicle", in meters, measured from the model: half of its width, height and length, centred on the vehicle origin. Leave it out only when players should pass through the vehicle. docs/authored-entities.md has the fields.')];
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const OLD_DEFAULT_FLOOR = { minX: -12, maxX: 12, minZ: -12, maxZ: 12 };
|
|
283
|
+
const OLD_DEFAULT_GROUND = { schemaVersion: '2.0.0', mode: 'multi-space-ground',
|
|
284
|
+
spaces: [{ id: 'main', bounds: OLD_DEFAULT_FLOOR, regions: [{ id: 'floor', bounds: OLD_DEFAULT_FLOOR, groundHeightMeters: 0 }], barriers: [] }],
|
|
285
|
+
spawnPoints: [-3, -1, 1, 3].map((x, index) => ({ id: `spawn-${index + 1}`, spaceId: 'main', x, z: 9, yawRadians: Math.PI })),
|
|
286
|
+
portals: [], movement: { walkSpeedMetersPerSecond: 5, runSpeedMetersPerSecond: null }, requestedMaxPlayers: 4 };
|
|
287
|
+
|
|
288
|
+
function defaultGroundWarnings(manifest, ground) {
|
|
289
|
+
if (manifest?.movementAuthority !== 'client' || !ground || typeof ground !== 'object') return [];
|
|
290
|
+
const { contentId: _contentId, contentVersion: _contentVersion, ...shape } = ground;
|
|
291
|
+
if (!isDeepStrictEqual(shape, OLD_DEFAULT_GROUND)) return [];
|
|
292
|
+
return [issue('GROUND_DEFAULT_WITH_CLIENT_MOVEMENT', `content/${manifest.groundRules}`,
|
|
293
|
+
`content/${manifest.groundRules} is still the flat 24 by 24 meter ground with four spawn points that chrona create --document-source used to add, and movementAuthority is client. The room takes its bounds, spawn points, walking speed and 4 players per room from this file, so a page that moves players itself is held to a ground it never chose.`,
|
|
294
|
+
'If your page moves players itself, delete this file and remove "groundRules" and the locomotion.ground capability from content/manifest.json. If players walk on the platform ground, change the bounds, spawn points and requestedMaxPlayers to fit your world (docs/ground-rules.md).')];
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function entityBudgetWarnings(budget, manifest) {
|
|
298
|
+
const warnings = [];
|
|
299
|
+
const counted = `maxEntities ${budget.maxEntities} minus ${budget.sceneEntities} scene entities; players do not count`;
|
|
300
|
+
if (budget.headroom <= 4) warnings.push(issue('ENTITY_BUDGET_HEADROOM_LOW', 'content/manifest.json',
|
|
301
|
+
`Only ${budget.headroom} entities are left for spawns (${counted}).`,
|
|
302
|
+
'Raise requestedBudgets.maxEntities or use fewer scene entities; a spawn over the budget throws ECS_BUDGET_EXCEEDED.'));
|
|
303
|
+
if (manifest.openCreation?.spawnPrefabs?.length > 0) warnings.push(issue('ENTITY_BUDGET_RUNTIME_SPAWN', 'content/manifest.json',
|
|
304
|
+
`Rules spawn entities at runtime; ${budget.headroom} entities are free for them (${counted}).`,
|
|
305
|
+
'Remove old entities with api.ecs.despawn or cap how many exist before spawning, or raise requestedBudgets.maxEntities. A spawn over the budget throws ECS_BUDGET_EXCEEDED and only that spawn fails: catch it to keep the rest of the lifecycle; if it leaves your handler, that lifecycle fails and its writes are rolled back.'));
|
|
306
|
+
return warnings;
|
|
307
|
+
}
|
|
308
|
+
|
|
53
309
|
const inside = (root, target) => target === root || target.startsWith(`${root}${path.sep}`);
|
|
54
310
|
const slash = value => value.split(path.sep).join('/');
|
|
55
311
|
|
|
@@ -69,20 +325,46 @@ async function readJson(absolute, displayPath) {
|
|
|
69
325
|
async function assertRegularInside(root, relative) {
|
|
70
326
|
const absolute = path.resolve(root, relative);
|
|
71
327
|
if (!inside(root, absolute)) {
|
|
72
|
-
throw issue('
|
|
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}.`);
|
|
328
|
+
throw issue('CONTENT_PATH_ESCAPED', relative, 'Path escapes the content package.', 'Use a package-relative path inside content/.');
|
|
81
329
|
}
|
|
330
|
+
const unusable = () => issue('INVALID_PACKAGE_PATH', relative, 'Path is missing or is not a regular file.', `Create a regular file at content/${relative}.`);
|
|
331
|
+
const linked = () => issue('CONTENT_PATH_ESCAPED', relative, 'Path goes through a symlink.', 'Replace the symlink with a regular package file.');
|
|
332
|
+
const stats = await lstat(absolute).catch(() => { throw unusable(); });
|
|
333
|
+
if (stats.isSymbolicLink()) throw linked();
|
|
334
|
+
if (!stats.isFile()) throw unusable();
|
|
335
|
+
const resolved = await realpath(absolute).catch(() => { throw unusable(); });
|
|
336
|
+
if (!inside(root, resolved)) throw linked();
|
|
82
337
|
return absolute;
|
|
83
338
|
}
|
|
84
339
|
|
|
85
|
-
async function
|
|
340
|
+
async function copyTree(source, target) {
|
|
341
|
+
await mkdir(target, { recursive: true });
|
|
342
|
+
for (const entry of await readdir(source, { withFileTypes: true })) {
|
|
343
|
+
const from = path.join(source, entry.name), to = path.join(target, entry.name);
|
|
344
|
+
if (entry.isDirectory()) await copyTree(from, to);
|
|
345
|
+
else if (entry.isFile()) await copyFile(from, to);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export const platformAcceptsPath = name => typeof name === 'string' && name.length <= 512
|
|
350
|
+
&& /^content\/(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*[A-Za-z0-9_-][A-Za-z0-9_.-]*$/.test(name)
|
|
351
|
+
&& !name.split('/').some(p => ['node_modules', 'package.json', 'package-lock.json', 'capabilities.lock.json', 'effective-budgets.json', 'network-profile.lock.json', 'replication.lock.json', 'credentials.json', 'secrets.json'].includes(p))
|
|
352
|
+
&& !/\.(?:pem|key|p12|pfx)$/i.test(name);
|
|
353
|
+
|
|
354
|
+
async function platformRefusedFiles({ root, files, reported, restricted }) {
|
|
355
|
+
if (restricted) return [];
|
|
356
|
+
const refused = files.filter(file => !platformAcceptsPath(`content/${file}`) && !reported.has(`content/${file}`));
|
|
357
|
+
if (!refused.length) return refused;
|
|
358
|
+
try {
|
|
359
|
+
const query = execFileAsync('git', ['-C', root, 'check-ignore', '--stdin'], { timeout: 10000, maxBuffer: 16777216 });
|
|
360
|
+
query.child.stdin.on('error', () => {});
|
|
361
|
+
query.child.stdin.end(refused.map(file => `content/${file}\n`).join(''));
|
|
362
|
+
const ignored = new Set((await query).stdout.split('\n'));
|
|
363
|
+
return refused.filter(file => !ignored.has(`content/${file}`));
|
|
364
|
+
} catch { return refused; }
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export async function walkContent(directory, root = directory) {
|
|
86
368
|
const entries = await readdir(directory, { withFileTypes: true });
|
|
87
369
|
const files = [];
|
|
88
370
|
const errors = [];
|
|
@@ -90,7 +372,7 @@ async function walkContent(directory, root = directory) {
|
|
|
90
372
|
const absolute = path.join(directory, entry.name);
|
|
91
373
|
const relative = slash(path.relative(root, absolute));
|
|
92
374
|
if (entry.isSymbolicLink()) {
|
|
93
|
-
errors.push(issue('
|
|
375
|
+
errors.push(issue('CONTENT_PATH_ESCAPED', `content/${relative}`, 'Symlinks are forbidden in content packages.', 'Replace the symlink with a regular package file.'));
|
|
94
376
|
continue;
|
|
95
377
|
}
|
|
96
378
|
if (entry.isDirectory()) {
|
|
@@ -100,7 +382,7 @@ async function walkContent(directory, root = directory) {
|
|
|
100
382
|
} else if (entry.isFile()) {
|
|
101
383
|
files.push(relative);
|
|
102
384
|
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('
|
|
385
|
+
if (SENSITIVE_NAMES.has(entry.name) || /\.(?:pem|key|p12|pfx)$/i.test(entry.name)) errors.push(issue('CONTENT_CREDENTIAL_FILE', `content/${relative}`, 'Credential-like files are forbidden in content packages.', 'Remove the sensitive file and rotate any exposed credential.'));
|
|
104
386
|
} else {
|
|
105
387
|
errors.push(issue('INVALID_PACKAGE_PATH', `content/${relative}`, 'Only regular files and directories are allowed.', 'Remove the unsupported filesystem entry.'));
|
|
106
388
|
}
|
|
@@ -131,18 +413,24 @@ async function verifySnapshot(platformRoot, lockName) {
|
|
|
131
413
|
return errors;
|
|
132
414
|
}
|
|
133
415
|
|
|
134
|
-
async function syntaxIssue(absolute, displayPath) {
|
|
416
|
+
export async function syntaxIssue(absolute, displayPath, timeout = SYNTAX_CHECK_TIMEOUT_MS) {
|
|
417
|
+
const source = await readFile(absolute);
|
|
135
418
|
try {
|
|
136
|
-
|
|
419
|
+
const check = execFileAsync(process.execPath, ['--input-type=module', '--check', '-'], { timeout });
|
|
420
|
+
check.child.stdin.on('error', () => {});
|
|
421
|
+
check.child.stdin.end(source);
|
|
422
|
+
await check;
|
|
137
423
|
return null;
|
|
138
|
-
} catch {
|
|
139
|
-
return issue('
|
|
424
|
+
} catch (error) {
|
|
425
|
+
if (error.killed) return issue('SOURCE_CHECK_TIMEOUT', displayPath, 'The syntax check did not finish in time on this machine, so the file is unchecked. This is not a syntax error.', 'Run the check again when the machine is less busy.');
|
|
426
|
+
const line = Number(/^\[stdin\]:(\d+)/.exec(error.stderr ?? '')?.[1]);
|
|
427
|
+
return issue('INVALID_GAMEPLAY_SOURCE', displayPath, 'Gameplay JavaScript has a syntax error.', 'Repair the JavaScript syntax without adding forbidden dependencies.', line ? { line } : {});
|
|
140
428
|
}
|
|
141
429
|
}
|
|
142
430
|
|
|
143
431
|
const staticImports = source => [...source.matchAll(IMPORT_PATTERN)].map(match => match[1]);
|
|
144
432
|
|
|
145
|
-
async function validateSourceGraph({ contentRoot, entrypoint, side, contract }) {
|
|
433
|
+
async function validateSourceGraph({ contentRoot, entrypoint, side, contract, rules, restricted }) {
|
|
146
434
|
const queue = [entrypoint];
|
|
147
435
|
const visited = new Set();
|
|
148
436
|
const errors = [];
|
|
@@ -159,9 +447,9 @@ async function validateSourceGraph({ contentRoot, entrypoint, side, contract })
|
|
|
159
447
|
errors.push(error);
|
|
160
448
|
continue;
|
|
161
449
|
}
|
|
162
|
-
const result = validateGameplaySource({ path: relative, source, side, contract });
|
|
450
|
+
const result = rules.validateGameplaySource({ path: relative, source, side, contract });
|
|
163
451
|
errors.push(...result.errors.filter(error => relative === entrypoint || error.code !== 'MISSING_GAMEPLAY_EXPORT'));
|
|
164
|
-
const syntax = await syntaxIssue(absolute, relative);
|
|
452
|
+
const syntax = restricted ? null : await syntaxIssue(absolute, relative);
|
|
165
453
|
if (syntax) errors.push(syntax);
|
|
166
454
|
for (const specifier of staticImports(source)) {
|
|
167
455
|
if (!specifier.startsWith('./')) continue;
|
|
@@ -176,7 +464,7 @@ async function validateSourceGraph({ contentRoot, entrypoint, side, contract })
|
|
|
176
464
|
return errors;
|
|
177
465
|
}
|
|
178
466
|
|
|
179
|
-
function validateProvenance(provenance, manifest, sceneAssetGraph) {
|
|
467
|
+
function validateProvenance(provenance, manifest, sceneAssetGraph, rules) {
|
|
180
468
|
const errors = [];
|
|
181
469
|
if (!provenance || provenance.schemaVersion !== VERSION || typeof provenance.generator?.tool !== 'string' || typeof provenance.generator?.version !== 'string' || !Array.isArray(provenance.inputs) || !Array.isArray(provenance.resources)) {
|
|
182
470
|
return [issue('INVALID_FIELD_TYPE', manifest.provenance, 'Provenance document is invalid.', 'Match contracts/ugc/v1/provenance.schema.json.')];
|
|
@@ -188,14 +476,14 @@ function validateProvenance(provenance, manifest, sceneAssetGraph) {
|
|
|
188
476
|
for (const [index, resource] of provenance.resources.entries()) {
|
|
189
477
|
const at = `${manifest.provenance}#resources[${index}]`;
|
|
190
478
|
if (!declared.has(resource?.resourceId)) {
|
|
191
|
-
errors.push(issue('INVALID_RESOURCE', at,
|
|
479
|
+
errors.push(issue('INVALID_RESOURCE', at, `Resource declaration ${shownValue(resource?.resourceId)} does not match a manifest resource. Declared IDs: ${listed([...declared])}.`, 'Use a declared ID, add the resource to manifest.resources, or remove this entry.'));
|
|
192
480
|
} else if (covered.has(resource.resourceId)) {
|
|
193
481
|
errors.push(issue('INVALID_RESOURCE', at, 'Resource has more than one declaration.', 'Keep one declaration per resource ID.'));
|
|
194
482
|
} else if (!resource || !['license,resourceId,source', 'license,managedBy,resourceId,source']
|
|
195
483
|
.includes(Object.keys(resource).sort().join(','))
|
|
196
484
|
|| !declarationText(resource.source, 512) || !declarationText(resource.license, 128)
|
|
197
485
|
|| Object.hasOwn(resource, 'managedBy')
|
|
198
|
-
&& !Object.entries(CREATOR_TESTING_PROVENANCE).every(([key, value]) => resource[key] === value)) {
|
|
486
|
+
&& !Object.entries(rules.CREATOR_TESTING_PROVENANCE).every(([key, value]) => resource[key] === value)) {
|
|
199
487
|
errors.push(issue('INVALID_RESOURCE', at, 'Resource source or permitted use is missing or malformed.',
|
|
200
488
|
'Use nonempty source and license text for this resource; preserve explicit third-party terms and do not set managedBy for them.'));
|
|
201
489
|
} else {
|
|
@@ -206,13 +494,19 @@ function validateProvenance(provenance, manifest, sceneAssetGraph) {
|
|
|
206
494
|
for (const [index, input] of provenance.inputs.entries()) {
|
|
207
495
|
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
496
|
}
|
|
209
|
-
const scene = validateSceneSources({ provenance, sceneAssetGraph });
|
|
497
|
+
const scene = rules.validateSceneSources({ provenance, sceneAssetGraph });
|
|
210
498
|
for (const error of scene.errors) errors.push(issue('INVALID_RESOURCE', `${manifest.provenance}#${error.field}`,
|
|
211
499
|
'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
500
|
return errors;
|
|
213
501
|
}
|
|
214
502
|
|
|
215
|
-
|
|
503
|
+
const declaredStateRow = (model, row) => model.components.components.some(component => component.id === row.component && component.scope === 'shared')
|
|
504
|
+
&& (row.entityId.startsWith('player:') ? Boolean(model.scene.playerPrefab) : model.scene.entities.some(entity => entity.id === row.entityId));
|
|
505
|
+
|
|
506
|
+
const describeMismatch = ({ entityId, component, field, expected, actual }) =>
|
|
507
|
+
`${entityId} ${component}.${field} expected ${JSON.stringify(expected)}, actual ${JSON.stringify(actual)}`;
|
|
508
|
+
|
|
509
|
+
function validateDeclaredCases(document, displayPath, privateModel, rules) {
|
|
216
510
|
if (!document || document.schemaVersion !== VERSION || !Array.isArray(document.cases)) {
|
|
217
511
|
return [issue('INVALID_FIELD_TYPE', displayPath, 'Test document must contain a cases array.', 'Use the reviewed template test document shape.')];
|
|
218
512
|
}
|
|
@@ -220,12 +514,16 @@ function validateDeclaredCases(document, displayPath) {
|
|
|
220
514
|
const ids = new Set();
|
|
221
515
|
for (const [index, testCase] of document.cases.entries()) {
|
|
222
516
|
const at = `${displayPath}#cases[${index}]`;
|
|
223
|
-
try { normalizeTestCase(testCase); }
|
|
517
|
+
try { rules.normalizeTestCase(testCase); }
|
|
224
518
|
catch (error) {
|
|
225
|
-
errors.push(issue('INVALID_FIELD_TYPE', `${at}${error.suffix ?? ''}`,
|
|
519
|
+
errors.push(issue('INVALID_FIELD_TYPE', `${at}${error.suffix ?? ''}`, `Gameplay test has invalid lifecycle, fields, fixture or budgets. ${testCaseProblem(testCase, error.suffix ?? '')}`, 'Compare with the step shapes in docs/reference.md. The full format is contracts/ugc/gameplay-tests/v1/cases.schema.json in the rule pack.'));
|
|
226
520
|
continue;
|
|
227
521
|
}
|
|
228
522
|
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.'));
|
|
523
|
+
for (const [step, row] of rules.normalizeTestCase(testCase).flatMap((step, index) => (step.expectedPrivateState ?? []).map(row => [index, row])))
|
|
524
|
+
if (privateModel && !declaredStateRow(privateModel, row)) errors.push(issue('INVALID_FIELD_TYPE', `${at}.expectedPrivateState`,
|
|
525
|
+
`Test case ${testCase.id} step ${step + 1} asserts ${row.entityId} ${row.component}, which the ECS model does not declare as shared state.`,
|
|
526
|
+
'Name a static scene entity or a player entity and a shared-scope content component declared in content/ecs.'));
|
|
229
527
|
ids.add(testCase.id);
|
|
230
528
|
}
|
|
231
529
|
return errors;
|
|
@@ -260,20 +558,70 @@ async function validateGltf(bytes, resource) {
|
|
|
260
558
|
return errors;
|
|
261
559
|
}
|
|
262
560
|
|
|
263
|
-
|
|
561
|
+
const WORLD_SCENE_FILE_CEILING = 1073741824, SYNTAX_CHECK_TIMEOUT_MS = 60000;
|
|
562
|
+
const DOCUMENT_INITIAL_TOTAL_HINT = 20971520, DOCUMENT_INITIAL_FILE_HINT = 2097152;
|
|
563
|
+
const mebibytes = bytes => (bytes / 1048576).toFixed(1);
|
|
564
|
+
const deferrableDocumentResource = r => r?.kind === 'worker' || r?.kind === 'asset' && typeof r.mimeType === 'string'
|
|
565
|
+
&& (r.mimeType === 'model/gltf-binary' || r.mimeType === 'application/json' || r.mimeType === 'application/wasm' || /^(?:image|audio)\//.test(r.mimeType));
|
|
566
|
+
export function documentInitialLoadWarnings(document) {
|
|
567
|
+
const initial = (Array.isArray(document?.resources) ? document.resources : [])
|
|
568
|
+
.filter(r => r?.load !== 'deferred' && Number.isSafeInteger(r?.bytes) && r.bytes >= 0);
|
|
569
|
+
const total = initial.reduce((sum, r) => sum + r.bytes, 0), warnings = [];
|
|
570
|
+
if (total > DOCUMENT_INITIAL_TOTAL_HINT) warnings.push({ code: 'DOCUMENT_INITIAL_LOAD_LARGE',
|
|
571
|
+
path: 'content/presentation/document.json', bytes: total, hintBytes: DOCUMENT_INITIAL_TOTAL_HINT,
|
|
572
|
+
message: `First-frame resources total ${mebibytes(total)} MiB, above the ${mebibytes(DOCUMENT_INITIAL_TOTAL_HINT)} MiB reminder, so players wait longer to enter.`,
|
|
573
|
+
repairHint: 'Mark resources the first frame does not need with "load": "deferred" in content/presentation/document.json and load them after markBootComplete().' });
|
|
574
|
+
const large = initial.filter(r => deferrableDocumentResource(r) && r.bytes > DOCUMENT_INITIAL_FILE_HINT)
|
|
575
|
+
.sort((a, b) => b.bytes - a.bytes || String(a.path).localeCompare(String(b.path)));
|
|
576
|
+
for (const r of large.slice(0, 16)) warnings.push({ code: 'DOCUMENT_INITIAL_FILE_LARGE', path: `content/${r.path}`,
|
|
577
|
+
bytes: r.bytes, hintBytes: DOCUMENT_INITIAL_FILE_HINT, suggestion: 'load-deferred',
|
|
578
|
+
message: `This first-frame file is ${mebibytes(r.bytes)} MiB, above the ${mebibytes(DOCUMENT_INITIAL_FILE_HINT)} MiB reminder.`,
|
|
579
|
+
repairHint: 'Set "load": "deferred" on this resource in content/presentation/document.json if the first frame can render without it.' });
|
|
580
|
+
if (large.length > 16) warnings.push({ code: 'DOCUMENT_INITIAL_FILE_LARGE_TRUNCATED', omitted: large.length - 16,
|
|
581
|
+
message: `${large.length - 16} more large first-frame files are not listed.`, repairHint: 'Defer the listed files, then validate again to see the rest.' });
|
|
582
|
+
return warnings;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export function worldSceneBudgetProblem({ files, maxAssetBytes, inspection }) {
|
|
586
|
+
if (worldSceneAssetBudget({ files, maxAssetBytes }) !== 'fits') return `A world scene file exceeds the per-file asset budget of ${maxAssetBytes} bytes.`;
|
|
587
|
+
if (!inspection) return null;
|
|
588
|
+
const total = files.reduce((sum, file) => sum + file.bytes, 0);
|
|
589
|
+
if (total > inspection.maxTotalBytes) return `World scene files total ${total} bytes, above the profile limit of ${inspection.maxTotalBytes}.`;
|
|
590
|
+
return files.length > inspection.maxFiles ? `World scene has ${files.length} files, above the profile limit of ${inspection.maxFiles} files.` : null;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
async function worldSceneInspection(declaration, executionTier) {
|
|
594
|
+
const { sceneImportProfiles } = await import('./scene-import-profiles.mjs');
|
|
595
|
+
const { id, version } = declaration?.requestedProfile ?? {};
|
|
596
|
+
return sceneImportProfiles(executionTier).find(profile => profile.id === id && profile.version === version)?.inspection;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
async function sceneFilesBehindBudget(scene) {
|
|
600
|
+
try { return new Set((await inspectProjectScene({ ...scene, maxAssetBytes: WORLD_SCENE_FILE_CEILING })).files.map(file => file.path)); }
|
|
601
|
+
catch { return new Set(); }
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
async function validateAssets(contentRoot, manifest, allFiles, graph, effectiveMaxAssetBytes, documentPresentation, worldScene, behindBudget) {
|
|
605
|
+
const maxAssetBytes = documentPresentation ? documentAssetBudget(documentPresentation.profile?.version, effectiveMaxAssetBytes) : effectiveMaxAssetBytes;
|
|
264
606
|
const errors = [];
|
|
265
607
|
const graphPaths = new Set(graph?.files.map(file => file.path) ?? []);
|
|
266
608
|
const declaredPaths = new Set(graphPaths);
|
|
609
|
+
const worldFiles = [...(graph?.files ?? [])];
|
|
267
610
|
let totalBytes = graph?.totalBytes ?? 0;
|
|
611
|
+
const count = bytes => { totalBytes += bytes; worldFiles.push({ bytes }); };
|
|
268
612
|
for (const resource of documentPresentation?.resources ?? []) {
|
|
269
613
|
try {
|
|
270
614
|
const bytes = await readBoundedContentAsset(contentRoot, resource.path, Math.min(resource.bytes, maxAssetBytes));
|
|
271
615
|
if (bytes.length !== resource.bytes || `sha256:${createHash('sha256').update(bytes).digest('hex')}` !== resource.sha256)
|
|
272
616
|
throw new Error();
|
|
273
|
-
if (!declaredPaths.has(resource.path))
|
|
617
|
+
if (!declaredPaths.has(resource.path)) count(bytes.length);
|
|
274
618
|
declaredPaths.add(resource.path);
|
|
275
|
-
} catch {
|
|
276
|
-
|
|
619
|
+
} catch {
|
|
620
|
+
const problem = await documentResourceProblem(contentRoot, resource, maxAssetBytes);
|
|
621
|
+
errors.push(issue('INVALID_RESOURCE', resource.path, problem, problem.endsWith('so the file changed after import.')
|
|
622
|
+
? 'The page changed after it was last bundled. Run npx chrona rebundle --project DIR to rebuild presentation/view/ and presentation/document.json, then commit them together with your change. If the page source lives outside the work, run chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR instead.'
|
|
623
|
+
: 'Do not edit presentation/ by hand. Change the page source, then run chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR, as the Document route in docs/ai-index.md says.'));
|
|
624
|
+
}
|
|
277
625
|
}
|
|
278
626
|
for (const resource of manifest.resources) {
|
|
279
627
|
if (!resource.path.startsWith('assets/runtime/')) {
|
|
@@ -288,27 +636,60 @@ async function validateAssets(contentRoot, manifest, allFiles, graph, maxAssetBy
|
|
|
288
636
|
declaredPaths.add(resource.path);
|
|
289
637
|
let bytes;
|
|
290
638
|
try {
|
|
291
|
-
bytes = await readBoundedContentAsset(contentRoot, resource.path, alreadyCounted ? maxAssetBytes : Math.max(0, maxAssetBytes - totalBytes));
|
|
639
|
+
bytes = await readBoundedContentAsset(contentRoot, resource.path, graph || alreadyCounted ? maxAssetBytes : Math.max(0, maxAssetBytes - totalBytes));
|
|
292
640
|
} catch (error) {
|
|
293
641
|
errors.push(issue(error.code === 'WORLD_SCENE_BUDGET_EXCEEDED' ? 'ASSET_BUDGET_EXCEEDED' : 'INVALID_RESOURCE', resource.path,
|
|
294
642
|
'Asset is unavailable, changed, non-regular or exceeds the combined byte budget.', 'Repair the resource and its declaration without increasing platform limits.'));
|
|
295
643
|
continue;
|
|
296
644
|
}
|
|
297
|
-
if (!alreadyCounted)
|
|
645
|
+
if (!alreadyCounted) count(bytes.length);
|
|
298
646
|
const digest = createHash('sha256').update(bytes).digest('hex');
|
|
299
647
|
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
648
|
errors.push(...await validateGltf(bytes, resource));
|
|
301
649
|
}
|
|
302
|
-
if (
|
|
650
|
+
if (graph) {
|
|
651
|
+
const problem = worldSceneBudgetProblem({ files: worldFiles, maxAssetBytes, inspection: await worldSceneInspection(worldScene, manifest.executionTier) });
|
|
652
|
+
if (problem) errors.push(issue('ASSET_BUDGET_EXCEEDED', 'content/', problem, 'Reduce scene chunks or textures, or split the work; values are not silently clamped.'));
|
|
653
|
+
} else if (totalBytes > maxAssetBytes) errors.push(issue('ASSET_BUDGET_EXCEEDED', 'content/',
|
|
303
654
|
'Combined declared resources exceed the effective asset budget.', 'Reduce bytes or request an explicitly supported budget; values are not silently clamped.'));
|
|
304
655
|
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,
|
|
656
|
+
if (!declaredPaths.has(relative) && !behindBudget.has(relative)) errors.push(issue('INVALID_RESOURCE', relative, `Runtime asset ${relative} is not declared in the manifest or verified scene graph. It has ${(await readFile(path.join(contentRoot, relative))).length} bytes and sha256 ${createHash('sha256').update(await readFile(path.join(contentRoot, relative))).digest('hex')}.`, 'Add it to manifest.resources with those values, as docs/reference.md shows, or delete the file. Declare the required dependency or remove the unused runtime file.'));
|
|
306
657
|
}
|
|
307
658
|
return errors;
|
|
308
659
|
}
|
|
309
660
|
|
|
310
|
-
export
|
|
311
|
-
|
|
661
|
+
export function ruleModelFailure(documents, error) {
|
|
662
|
+
if (['2.0.0', '2.1.0'].includes(documents.sceneInteractions?.schemaVersion) && !documents.groundRules) return issue('INVALID_MANIFEST', '$.groundRules',
|
|
663
|
+
`Scene interactions ${documents.sceneInteractions.schemaVersion} place their targets on ground, and this work declares no ground rules.`,
|
|
664
|
+
'Add "groundRules": "rules/ground.json" to content/manifest.json with a ground document of schema 2.0.0 or later, or use scene interactions 1.x. Read chrona docs ground-rules.');
|
|
665
|
+
const code = /^[A-Z][A-Z0-9_]{2,95}$/.test(error?.code ?? '') ? error.code : 'an unknown reason';
|
|
666
|
+
return issue('INVALID_COMPONENT_FIELD', 'content/ecs', `The rule models could not be prepared (${code}).`,
|
|
667
|
+
'Repair the declarations named by that code; do not modify platform indices or locks. chrona explain gives the rule behind a code.');
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
function prepareRuleModels({ rules, manifest, documents, privateModel }) {
|
|
671
|
+
const privateFieldTable = new rules.PrivateStateProjection(privateModel).fieldTable();
|
|
672
|
+
let sceneInteractionPlan, privateEventModel;
|
|
673
|
+
if (manifest.sceneInteractions) {
|
|
674
|
+
if (['2.0.0','2.1.0'].includes(documents.sceneInteractions?.schemaVersion)) {
|
|
675
|
+
const groundRules = documents.groundRules?.schemaVersion === '2.2.0'
|
|
676
|
+
? rules.normalizeGroundEndpointSource(documents.groundRules)
|
|
677
|
+
: documents.groundRules?.schemaVersion === '2.1.0' ? rules.normalizeGroundSpatialSource(documents.groundRules) : rules.prepareGroundSpaces(documents.groundRules);
|
|
678
|
+
sceneInteractionPlan = rules.prepareSceneInteractionModelV2({ source: documents.sceneInteractions, prefabs: documents.prefabs, scene: documents.scene,
|
|
679
|
+
groundRules });
|
|
680
|
+
} else sceneInteractionPlan = rules.prepareSceneInteractionModel({ source: documents.sceneInteractions,
|
|
681
|
+
prefabs: documents.prefabs, scene: documents.scene });
|
|
682
|
+
}
|
|
683
|
+
if (manifest.privateEvents) {
|
|
684
|
+
privateEventModel = rules.preparePrivateEventModel({ manifest, scene: documents.scene, privateEvents: documents.privateEvents });
|
|
685
|
+
}
|
|
686
|
+
const customActionContract = documents.customActions
|
|
687
|
+
? new rules.CustomActionContract(documents.customActions, documents.scene.entities.map(entity => entity.id)) : undefined;
|
|
688
|
+
return { privateFieldTable, privateEventModel, sceneInteractionPlan, customActionIds: customActionContract?.actionIds(), customActionContract, customActionDeclarations: documents.customActions };
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export async function validateProject({ projectRoot, platformRoot, restricted = false, keepRuleModels = false }) {
|
|
692
|
+
const root = restricted ? path.resolve(projectRoot) : await realpath(path.resolve(projectRoot));
|
|
312
693
|
const platform = await realpath(path.resolve(platformRoot));
|
|
313
694
|
const contentRoot = path.join(root, 'content');
|
|
314
695
|
const errors = [
|
|
@@ -316,20 +697,13 @@ export async function validateProject({ projectRoot, platformRoot }) {
|
|
|
316
697
|
...await verifySnapshot(platform, 'chrona.registry.lock.json'),
|
|
317
698
|
...await verifySnapshot(platform, 'chrona.wiring.lock.json')
|
|
318
699
|
];
|
|
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'
|
|
700
|
+
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',
|
|
701
|
+
'document-presentation', 'ground-spaces', 'ground-endpoint', 'scene-interaction-v2', 'personal-state']) {
|
|
320
702
|
try { await verifyRuntimeSnapshot(platform, kind); }
|
|
321
703
|
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
704
|
}
|
|
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
705
|
if (errors.length) return { report: baseReport({ status: 'failed', errors }), resolution: null };
|
|
330
|
-
|
|
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');
|
|
706
|
+
const rules = await loadRuleSet(platform);
|
|
333
707
|
let tree = { files: [], errors: [] };
|
|
334
708
|
try {
|
|
335
709
|
tree = await walkContent(contentRoot);
|
|
@@ -338,6 +712,13 @@ export async function validateProject({ projectRoot, platformRoot }) {
|
|
|
338
712
|
errors.push(issue('INVALID_PACKAGE_PATH', 'content/', 'Creator project has no readable content directory.', 'Create content/ from a reviewed Kit template.'));
|
|
339
713
|
}
|
|
340
714
|
|
|
715
|
+
const refusedFiles = await platformRefusedFiles({ root, files: tree.files, reported: new Set(tree.errors.map(error => error.path)), restricted });
|
|
716
|
+
for (const file of refusedFiles) errors.push(issue('INVALID_PLATFORM_SOURCE', `content/${file}`,
|
|
717
|
+
'The platform refuses this file: names may use only letters, digits and ._-, and package.json, package-lock.json, node_modules, lock files and credentials do not belong under content/.',
|
|
718
|
+
path.posix.basename(file) === '.DS_Store'
|
|
719
|
+
? `Delete content/${file} and add a .DS_Store line at the end of .gitignore; macOS Finder creates this file, so it comes back otherwise.`
|
|
720
|
+
: 'Rename the file or remove it from content/; project-level files stay in the project root.'));
|
|
721
|
+
|
|
341
722
|
let manifest;
|
|
342
723
|
try {
|
|
343
724
|
manifest = await readJson(path.join(contentRoot, 'manifest.json'), 'content/manifest.json');
|
|
@@ -373,18 +754,44 @@ export async function validateProject({ projectRoot, platformRoot }) {
|
|
|
373
754
|
'Restore the declared regular source and exact inventory; do not increase the shared limit.')); }
|
|
374
755
|
} else if (tree.files.includes('presentation/document.json')) errors.push(issue('INVALID_MANIFEST', 'presentation/document.json',
|
|
375
756
|
'Document source requires its explicit manifest marker.', 'Declare documentPresentation and keep the required execution Profile; a file alone cannot authorize the mode.'));
|
|
757
|
+
const liveWarnings = [];
|
|
758
|
+
const liveBaseline = Array.isArray(manifest.resources) ? manifest.resources.find(resource => resource?.id === LIVE_BASELINE_RESOURCE.id) : undefined;
|
|
759
|
+
if (liveBaseline) {
|
|
760
|
+
try {
|
|
761
|
+
if (liveBaseline.kind !== LIVE_BASELINE_RESOURCE.kind || liveBaseline.path !== LIVE_BASELINE_RESOURCE.path || liveBaseline.mimeType !== LIVE_BASELINE_RESOURCE.mimeType)
|
|
762
|
+
throw Object.assign(new Error('LIVE_BASELINE_INVALID'), { reason: 'resource-declaration' });
|
|
763
|
+
let value;
|
|
764
|
+
try { value = JSON.parse(await readBoundedContentAsset(contentRoot, LIVE_BASELINE_RESOURCE.path, 1048576)); }
|
|
765
|
+
catch { throw Object.assign(new Error('LIVE_BASELINE_INVALID'), { reason: 'not-json' }); }
|
|
766
|
+
validateLiveBaseline(value);
|
|
767
|
+
for (const [index, change] of value.changes.entries()) {
|
|
768
|
+
const found = await liveRuleProblems(change.value, manifest.contentId, { rulesDirectory: platform });
|
|
769
|
+
if (!found) continue;
|
|
770
|
+
const first = found.error;
|
|
771
|
+
if (first) errors.push(issue('LIVE_RULE_REJECTED', `content/${LIVE_BASELINE_RESOURCE.path}`,
|
|
772
|
+
`Saved rule slot change-${index} (${change.field}) is not usable: ${first.reason}${first.field ? ` ${first.field}` : ''}${first.line ? ` at line ${first.line}` : ''}${first.limit !== undefined ? `, limit ${JSON.stringify(first.limit)}` : ''}.`,
|
|
773
|
+
'Fix the slot code or declaration, write the baseline again with chrona live-baseline --project DIR --input FILE --apply true, and check again.', { change: index, reason: first.reason }));
|
|
774
|
+
for (const warning of found.warnings) liveWarnings.push(issue('LIVE_RULE_STATE_OUTSIDE_COMPONENTS',
|
|
775
|
+
`content/${LIVE_BASELINE_RESOURCE.path}`, `Saved rule slot change-${index} keeps ${warning.name} at line ${warning.line} outside components; it resets when the slot code is swapped.`, warning.fix, { change: index }));
|
|
776
|
+
}
|
|
777
|
+
} catch (error) {
|
|
778
|
+
errors.push(issue('LIVE_BASELINE_INVALID', `content/${LIVE_BASELINE_RESOURCE.path}`,
|
|
779
|
+
`The saved live changes are not usable (${error.reason ?? 'shape'}${error.field ? `, ${error.field}` : ''}).`,
|
|
780
|
+
'Write the baseline again with chrona live-baseline --project DIR --input FILE --apply true, or remove the live-baseline resource and its file.',
|
|
781
|
+
{ reason: error.reason ?? 'shape', ...(error.field ? { field: error.field } : {}) }));
|
|
782
|
+
}
|
|
783
|
+
}
|
|
376
784
|
if (Object.hasOwn(manifest, 'personalState')) {
|
|
377
785
|
try {
|
|
378
786
|
// The finite declaration is authored data, not an Auth/Writer grant.
|
|
379
787
|
// Parse raw bytes through the same pinned gate used by Builder, before
|
|
380
788
|
// JSON.parse can discard duplicate or escaped-alias property names.
|
|
381
789
|
if (!hasRuntimeSnapshot('personal-state')) throw new Error();
|
|
382
|
-
const
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
'
|
|
387
|
-
'Use the fixed marker and shared personal-state/v1 declaration; restore the locked Reader, not a storage permission.')); }
|
|
790
|
+
const marker = rules.validatePersonalStateMarker(manifest.personalState);
|
|
791
|
+
documents.personalState = rules.parsePersonalStateDeclaration(await readBoundedContentAsset(contentRoot, marker.path, 65536), manifest);
|
|
792
|
+
} catch (error) { errors.push(issue('PERSONAL_STATE_INVALID', 'rules/personal-state.json',
|
|
793
|
+
`Personal declaration is missing, linked, oversized, invalid UTF-8, duplicated or incompatible with content identity.${typeof error?.code === 'string' ? ` Reason: ${error.code}.` : ''}${tree.files.includes('rules/personal-state.json') ? '' : ' The file rules/personal-state.json does not exist.'}`,
|
|
794
|
+
'Let chrona generate write this file and the personalState field, as docs/player-saves.md says, or remove personalState. The manifest field is { "path": "rules/personal-state.json" }.')); }
|
|
388
795
|
} else if (tree.files.includes('rules/personal-state.json')) errors.push(issue('INVALID_MANIFEST', 'rules/personal-state.json',
|
|
389
796
|
'Personal declaration requires its explicit Document marker.', 'Declare personalState only for supported Document content; a data file cannot authorize a policy.'));
|
|
390
797
|
if (Object.hasOwn(manifest, 'scenePresentation')) {
|
|
@@ -443,128 +850,166 @@ export async function validateProject({ projectRoot, platformRoot }) {
|
|
|
443
850
|
catch { throw issue('INVALID_MANIFEST', manifest.privateEvents, 'Private event declaration requires valid UTF-8 JSON.', 'Repair the declaration against private-events/v1.'); }
|
|
444
851
|
} catch (error) { errors.push(error); }
|
|
445
852
|
}
|
|
853
|
+
if (manifest.openCreation?.customActions !== undefined) {
|
|
854
|
+
try {
|
|
855
|
+
if (manifest.openCreation.customActions !== 'ecs/actions.json') throw issue('INVALID_PACKAGE_PATH', '$.openCreation.customActions', 'Custom action path is fixed.', 'Use ecs/actions.json inside content/.');
|
|
856
|
+
const absolute = await assertRegularInside(contentRoot, manifest.openCreation.customActions);
|
|
857
|
+
const bytes = await readFile(absolute);
|
|
858
|
+
if (bytes.length > 131072) throw issue('INVALID_MANIFEST', manifest.openCreation.customActions, 'Custom action declaration exceeds 128 KiB.', 'Reduce the declaration without increasing platform limits.');
|
|
859
|
+
try { documents.customActions = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); }
|
|
860
|
+
catch { throw issue('INVALID_MANIFEST', manifest.openCreation.customActions, 'Custom action declaration requires valid UTF-8 JSON.', 'Repair ecs/actions.json against the custom action contract.'); }
|
|
861
|
+
} catch (error) { errors.push(error); }
|
|
862
|
+
}
|
|
446
863
|
if (documents.components && documents.prefabs && documents.scene) {
|
|
447
|
-
packageResult = validatePackageModel({ manifest, ...documents });
|
|
448
|
-
|
|
864
|
+
packageResult = rules.validatePackageModel({ manifest, ...documents });
|
|
865
|
+
const detailed = row => withRepair(assetBudgetProblem(documentProblem(customActionProblem(sceneInteractionProblem(row, { manifest, documents, rules }), { manifest, documents, rules }), { manifest, documents, rules }), { manifest, documents, rules }));
|
|
866
|
+
errors.push(...await Promise.all(packageResult.errors.map(row => groundProblem(openCreationProblem(playerPrefabProblem(detailed(row), manifest, documents), manifest, documents), documents, platform))));
|
|
449
867
|
}
|
|
450
868
|
|
|
451
869
|
let resolution = null;
|
|
452
870
|
let privateModel = null;
|
|
871
|
+
let entityBudget = null;
|
|
453
872
|
let capabilityResult = null;
|
|
454
|
-
let sceneAssetGraph = null, maxAssetBytes = 0;
|
|
873
|
+
let sceneAssetGraph = null, maxAssetBytes = 0, sourceRefused = false, testsRefused = false;
|
|
455
874
|
if (packageResult?.valid) {
|
|
456
875
|
const [registry, policy, creatorContract] = await Promise.all([
|
|
457
876
|
readJson(path.join(platform, 'contracts/ugc/registry/v1/registry.json'), 'contracts/ugc/registry/v1/registry.json'),
|
|
458
877
|
readJson(path.join(platform, 'contracts/ugc/registry/v1/resolution-policy.json'), 'contracts/ugc/registry/v1/resolution-policy.json'),
|
|
459
878
|
readJson(path.join(platform, 'contracts/ugc/v1/creator-sdk.json'), 'contracts/ugc/v1/creator-sdk.json')
|
|
460
879
|
]);
|
|
461
|
-
resolution = resolveCapabilities({ manifest, registry, policy });
|
|
880
|
+
resolution = rules.resolveCapabilities({ manifest, registry, policy });
|
|
462
881
|
maxAssetBytes = Math.min(manifest.requestedBudgets.maxAssetBytes, policy.budgetCaps[manifest.executionTier].maxAssetBytes);
|
|
463
882
|
if (resolution.status === 'needs_capability') capabilityResult = resolution;
|
|
464
883
|
else errors.push(...resolution.errors);
|
|
465
884
|
if (resolution.status === 'passed') {
|
|
466
|
-
|
|
885
|
+
if (manifest.sceneInteractions === undefined && resolution.capabilitiesLock.resolved.some(capability => capability.id === 'interaction.scene-target'))
|
|
886
|
+
errors.push(issue('INVALID_SCENE_INTERACTION_TARGETS', '$.requestedCapabilities', 'The work requests interaction.scene-target but declares no sceneInteractions, so the platform build refuses it.',
|
|
887
|
+
'Remove interaction.scene-target from requestedCapabilities in content/manifest.json, or add "sceneInteractions": "rules/interactions.json" with its targets.'));
|
|
888
|
+
try { privateModel = privateEcsModel({ contentId: manifest.contentId, ...documents, maxEntities: resolution.effectiveBudgets.effective.maxEntities, rules }); }
|
|
467
889
|
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
890
|
}
|
|
891
|
+
if (privateModel) entityBudget = entityBudgetOf({ maxEntities: privateModel.limits.maxEntities, scene: documents.scene, groundRules: documents.groundRules });
|
|
469
892
|
|
|
470
893
|
if (capabilityResult) {
|
|
471
894
|
try {
|
|
472
895
|
const proposalAbsolute = await assertRegularInside(root, capabilityResult.proposalPath);
|
|
473
896
|
const proposal = await readJson(proposalAbsolute, capabilityResult.proposalPath);
|
|
474
|
-
const proposalResult = validateCapabilityProposal(proposal);
|
|
897
|
+
const proposalResult = rules.validateCapabilityProposal(proposal);
|
|
475
898
|
errors.push(...proposalResult.errors.map(error => ({ ...error, path: capabilityResult.proposalPath })));
|
|
476
899
|
if (proposal.requestedCapability?.id !== capabilityResult.requestedCapability.id || proposal.requestedCapability?.version !== capabilityResult.requestedCapability.version || proposal.content?.contentId !== manifest.contentId || proposal.content?.contentVersion !== manifest.contentVersion) {
|
|
477
900
|
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
901
|
}
|
|
479
902
|
} catch (error) {
|
|
480
|
-
if (error.code
|
|
903
|
+
if (!['INVALID_PACKAGE_PATH', 'CONTENT_PATH_ESCAPED'].includes(error.code)) errors.push(error);
|
|
481
904
|
}
|
|
482
905
|
}
|
|
483
906
|
|
|
484
907
|
for (const side of ['shared', 'client']) {
|
|
485
|
-
if (manifest.entrypoints[side])
|
|
908
|
+
if (!manifest.entrypoints[side]) continue;
|
|
909
|
+
const sourceErrors = await validateSourceGraph({ contentRoot, entrypoint: manifest.entrypoints[side], side, contract: creatorContract, rules, restricted });
|
|
910
|
+
if (!restricted && !sourceErrors.length) for (const { file, specifier, line, unresolved } of await gameplayImportProblems({ contentRoot, entrypoint: manifest.entrypoints[side], side })) {
|
|
911
|
+
sourceErrors.push(issue('ILLEGAL_IMPORT', file, unresolved ? `Import ${specifier} does not resolve to a file in the work.` : `Import ${specifier} reaches outside gameplay/${side}/.`,
|
|
912
|
+
`Copy what it needs under gameplay/${side}/ and import it with a ./ path; npm packages and files outside that folder are not available.`, line ? { line } : {}));
|
|
913
|
+
}
|
|
914
|
+
sourceRefused ||= sourceErrors.length > 0;
|
|
915
|
+
errors.push(...sourceErrors);
|
|
486
916
|
}
|
|
917
|
+
if (privateModel && !sourceRefused) errors.push(...await ecsAccessProblems(contentRoot, judgeOf(rules, resolution, manifest, privateModel)));
|
|
487
918
|
}
|
|
488
919
|
|
|
489
920
|
if (packageResult?.valid) {
|
|
921
|
+
let behindBudget = new Set();
|
|
490
922
|
if (manifest.worldScene) {
|
|
491
|
-
|
|
492
|
-
|
|
923
|
+
const scene = { contentRoot, manifest, declaration: documents.worldScene, rules };
|
|
924
|
+
try { sceneAssetGraph = await inspectProjectScene({ ...scene, maxAssetBytes }); }
|
|
925
|
+
catch (error) {
|
|
926
|
+
if (error.code === 'WORLD_SCENE_BUDGET_EXCEEDED') behindBudget = await sceneFilesBehindBudget(scene);
|
|
927
|
+
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.'));
|
|
928
|
+
}
|
|
493
929
|
}
|
|
494
|
-
errors.push(...await validateAssets(contentRoot, manifest, tree.files, sceneAssetGraph, maxAssetBytes, documents.documentPresentation));
|
|
930
|
+
errors.push(...await validateAssets(contentRoot, manifest, tree.files, sceneAssetGraph, maxAssetBytes, documents.documentPresentation, documents.worldScene, behindBudget));
|
|
495
931
|
try {
|
|
496
932
|
const bytes = await readBoundedContentAsset(contentRoot, manifest.provenance, 2097152);
|
|
497
|
-
errors.push(...validateProvenance(JSON.parse(bytes), manifest, sceneAssetGraph));
|
|
933
|
+
errors.push(...validateProvenance(JSON.parse(bytes), manifest, sceneAssetGraph, rules));
|
|
498
934
|
} catch (error) {
|
|
499
935
|
errors.push(issue('INVALID_RESOURCE', manifest.provenance, 'Provenance is missing, oversized or invalid.', 'Use a regular bounded provenance JSON document.'));
|
|
500
936
|
}
|
|
501
|
-
const testDocuments = [];
|
|
937
|
+
const testDocuments = [], errorsBeforeTests = errors.length;
|
|
502
938
|
for (const name of ['rules', 'scenarios']) {
|
|
503
939
|
const relative = manifest.tests[name];
|
|
504
940
|
try {
|
|
505
941
|
const testPath = await assertRegularInside(contentRoot, relative);
|
|
506
942
|
const document = await readJson(testPath, relative);
|
|
507
943
|
testDocuments.push(document);
|
|
508
|
-
errors.push(...validateDeclaredCases(document, relative));
|
|
944
|
+
errors.push(...validateDeclaredCases(document, relative, privateModel, rules));
|
|
509
945
|
} catch (error) {
|
|
510
946
|
errors.push(error);
|
|
511
947
|
}
|
|
512
948
|
}
|
|
513
|
-
try { normalizeTestDocuments(testDocuments); }
|
|
514
|
-
catch { errors.push(
|
|
949
|
+
try { rules.normalizeTestDocuments(testDocuments); }
|
|
950
|
+
catch (error) { errors.push(testBoundsIssue(testDocuments, error)); }
|
|
515
951
|
try {
|
|
516
952
|
const budgetPath = await assertRegularInside(contentRoot, manifest.tests.budgets);
|
|
517
953
|
errors.push(...validateBudgetTests(await readJson(budgetPath, manifest.tests.budgets), manifest.tests.budgets));
|
|
518
954
|
} catch (error) {
|
|
519
955
|
errors.push(error);
|
|
520
956
|
}
|
|
957
|
+
testsRefused = errors.length > errorsBeforeTests;
|
|
521
958
|
}
|
|
522
959
|
|
|
523
|
-
const
|
|
524
|
-
|
|
960
|
+
const serverEntities = await checkServerEntities({ contentRoot, manifest,
|
|
961
|
+
contract: manifest.openCreation?.serverEntities !== undefined ? await loadServerEntitiesContract(platform) : null,
|
|
962
|
+
readJson: async (absolute, relative) => readJson(await assertRegularInside(contentRoot, relative), relative), issue });
|
|
963
|
+
errors.push(...serverEntities.errors);
|
|
964
|
+
const warnings = [...serverEntities.warnings, ...liveWarnings, ...(packageResult?.warnings ?? []), ...(resolution?.warnings ?? []),
|
|
965
|
+
...documentInitialLoadWarnings(documents.documentPresentation), ...(entityBudget ? entityBudgetWarnings(entityBudget, manifest) : []), ...authoredPlayersWarnings(manifest),
|
|
966
|
+
...defaultGroundWarnings(manifest, documents.groundRules), ...await vehicleBodyWarnings(contentRoot, manifest)];
|
|
967
|
+
if (errors.length > 0) {
|
|
968
|
+
const failed = { report: baseReport({ status: 'failed', errors, warnings }), resolution, sceneAssetGraph, entityBudget };
|
|
969
|
+
if (!keepRuleModels || !privateModel || sourceRefused || testsRefused) return failed;
|
|
970
|
+
try { return { ...failed, privateModel, ...prepareRuleModels({ rules, manifest, documents, privateModel }), ruleTestsRunnable: true }; }
|
|
971
|
+
catch { return failed; }
|
|
972
|
+
}
|
|
525
973
|
if (capabilityResult) return { report: baseReport({ status: 'needs_capability', errors: capabilityResult.errors, warnings, capabilityResult }), resolution, sceneAssetGraph };
|
|
526
|
-
let
|
|
974
|
+
let ruleModels;
|
|
527
975
|
try {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
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 };
|
|
976
|
+
ruleModels = prepareRuleModels({ rules, manifest, documents, privateModel });
|
|
977
|
+
} catch (error) {
|
|
978
|
+
return { report: baseReport({ status: 'failed', warnings, errors: [ruleModelFailure(documents, error)] }), resolution };
|
|
979
|
+
}
|
|
980
|
+
const runtimeContent = await checkRuntimeContent({ rules, manifest, contentRoot, evidence: { effectiveBudgets: resolution.effectiveBudgets } });
|
|
981
|
+
if (runtimeContent.status === 'failed') {
|
|
982
|
+
const { code, check, path: at, reason } = runtimeContent.error;
|
|
983
|
+
return { report: baseReport({ status: 'failed', warnings, errors: [issue(code, at, `The platform would refuse to start this work: check ${check}${reason ? ` (${reason})` : ''}.`,
|
|
984
|
+
`Fix the reported file${runtimeCheckDocs[check] ? ` using ${runtimeCheckDocs[check]}` : ''}; the platform runs the same check when it starts a room.${runtimeReasonHints[reason] ? ` ${runtimeReasonHints[reason]}` : ''}`, { check, ...(reason ? { reason } : {}) })] }), resolution, runtimeContent, entityBudget };
|
|
550
985
|
}
|
|
551
|
-
return { report: baseReport({ status: 'passed', warnings }), resolution, privateModel,
|
|
552
|
-
documentPresentation: documents.documentPresentation, sceneAssetGraph };
|
|
986
|
+
return { report: baseReport({ status: 'passed', warnings }), resolution, privateModel, ...ruleModels,
|
|
987
|
+
documentPresentation: documents.documentPresentation, sceneAssetGraph, runtimeContent, entityBudget };
|
|
553
988
|
}
|
|
554
989
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
990
|
+
const judgeOf = (rules, resolution, manifest, model) => ecsAccessJudge(rules, { capabilities: resolution.capabilitiesLock.resolved, tier: manifest.executionTier, model });
|
|
991
|
+
|
|
992
|
+
async function builtinWriteFailure(error, contentRoot, at, details) {
|
|
993
|
+
const sources = await gameplaySource(contentRoot).catch(() => []), property = frozenWriteProperty(error, sources);
|
|
994
|
+
if (property === undefined) return null;
|
|
995
|
+
const written = builtinWriteIssue({ property, file: `content/${at}`, ...locatedBuiltinWrite(property, sources) });
|
|
996
|
+
return { ...written, path: at, message: `Declared case ${details.caseId} writes a built-in object (property ${property}), which the local rule run keeps read-only.`, repairHint: written.fix, ...details };
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export const invalidProjectTests = report => ({
|
|
1000
|
+
schemaVersion: VERSION,
|
|
1001
|
+
status: report.status,
|
|
1002
|
+
valid: false,
|
|
1003
|
+
cases: [],
|
|
1004
|
+
errors: report.errors,
|
|
1005
|
+
warnings: report.warnings,
|
|
1006
|
+
sensitiveValuesRedacted: true
|
|
1007
|
+
});
|
|
1008
|
+
|
|
1009
|
+
export async function runProjectTests({ projectRoot, platformRoot, sdkRoot = platformRoot, restricted = false, despiteStaticErrors = false, probeStart = false }) {
|
|
1010
|
+
const validation = await validateProject({ projectRoot, platformRoot, restricted, keepRuleModels: despiteStaticErrors });
|
|
1011
|
+
if (!validation.report.valid && !validation.ruleTestsRunnable) return invalidProjectTests(validation.report);
|
|
1012
|
+
const { CUSTOM_ACTION_LIMITS } = await import('../contracts/ugc/open-creation/v1/custom-actions.mjs');
|
|
568
1013
|
|
|
569
1014
|
const root = path.resolve(projectRoot);
|
|
570
1015
|
const contentRoot = path.join(root, 'content');
|
|
@@ -575,141 +1020,380 @@ export async function runProjectTests({ projectRoot, platformRoot }) {
|
|
|
575
1020
|
readJson(path.join(contentRoot, manifest.tests.scenarios), manifest.tests.scenarios),
|
|
576
1021
|
readJson(path.join(contentRoot, manifest.tests.budgets), manifest.tests.budgets)
|
|
577
1022
|
]);
|
|
578
|
-
const
|
|
579
|
-
|
|
1023
|
+
const sharedRun = { contentRoot, platformRoot: platformRoot ?? projectRoot, sdkRoot: sdkRoot ?? projectRoot, manifest, creatorContract, rules, scenarios, budgets, validation };
|
|
1024
|
+
const { errors, results, inputWarnings, states, privateState } = await runLocalSharedCases(sharedRun);
|
|
580
1025
|
|
|
581
1026
|
if (manifest.entrypoints.client) {
|
|
582
|
-
let privateHarness;
|
|
1027
|
+
let privateHarness, clientRoot, access, judge, smokeStage = 'import', sentActions = 0, overSent, drawn = '';
|
|
583
1028
|
try {
|
|
584
|
-
|
|
585
|
-
|
|
1029
|
+
clientRoot = await mkdtemp(path.join(os.tmpdir(), 'chrona-local-client-'));
|
|
1030
|
+
await copyTree(path.join(contentRoot, 'gameplay'), path.join(clientRoot, 'gameplay'));
|
|
1031
|
+
await copyTree(path.join(sdkRoot ?? projectRoot, 'sdk'), path.join(clientRoot, 'sdk'));
|
|
1032
|
+
await writeFile(path.join(clientRoot, 'package.json'), JSON.stringify({ type: 'module',
|
|
1033
|
+
imports: { '#chrona/client': './sdk/client/index.js', '#chrona/shared': './sdk/shared/index.js' } }));
|
|
1034
|
+
const { createPresentation } = await import(pathToFileURL(path.join(clientRoot, manifest.entrypoints.client)).href);
|
|
1035
|
+
const commands = [], bindingProblems = [];
|
|
1036
|
+
const judgeBinding = await presentationBindingJudge(platformRoot ?? projectRoot, contentRoot, manifest);
|
|
1037
|
+
const ruleSet = await loadRuleSet(platformRoot ?? projectRoot);
|
|
1038
|
+
const judgeCommand = await presentationContractJudge(platformRoot ?? projectRoot, manifest, validation.privateModel, ruleSet);
|
|
586
1039
|
privateHarness = createPrivateHarness(validation.privateModel, 'client', {
|
|
587
|
-
capabilities: validation.resolution.capabilitiesLock.resolved, executionTier: manifest.executionTier
|
|
1040
|
+
capabilities: validation.resolution.capabilitiesLock.resolved, executionTier: manifest.executionTier, rules: ruleSet,
|
|
1041
|
+
spawnPrefabs: manifest.openCreation?.spawnPrefabs
|
|
588
1042
|
});
|
|
1043
|
+
judge = judgeOf(ruleSet, validation.resolution, manifest, validation.privateModel);
|
|
1044
|
+
access = watchEcsAccess(privateHarness.ecs, judge, 'client',
|
|
1045
|
+
stack => ruleCallSite(stack, `/${path.basename(clientRoot)}/gameplay/`, 'content/gameplay/'), `content/${manifest.entrypoints.client}`);
|
|
1046
|
+
smokeStage = 'createPresentation';
|
|
1047
|
+
const authored = manifest.authoredMotion === undefined ? null : await localAuthoredEntities(contentRoot, manifest.authoredMotion);
|
|
589
1048
|
const presentation = createPresentation({
|
|
590
|
-
ecs:
|
|
591
|
-
presentation: { enqueue: command => { commands.push(command); } },
|
|
592
|
-
clock: { tick: 1 }
|
|
1049
|
+
ecs: access.ecs,
|
|
1050
|
+
presentation: { enqueue: command => { commands.push(command); bindingProblems.push(...[...judgeBinding(command).map(message => ({ code: 'PRESENTATION_ACCESS_DENIED', message })), ...judgeCommand(command)].map(problem => ({ ...problem, message: `${problem.message}${drawn}` }))); } },
|
|
1051
|
+
clock: { tick: 1, tickRate: await publishedTickRate(platformRoot ?? projectRoot) },
|
|
1052
|
+
...(manifest.openCreation?.customActions ? { actions: { send: () => {
|
|
1053
|
+
sentActions++;
|
|
1054
|
+
if (sentActions > CUSTOM_ACTION_LIMITS.burst) { overSent = { stage: smokeStage, count: sentActions }; return { queued: false, code: 'CUSTOM_ACTION_RATE_LIMITED' }; }
|
|
1055
|
+
return { queued: true };
|
|
1056
|
+
} } } : {}),
|
|
1057
|
+
...(authored ? { entities: authored.api } : {})
|
|
593
1058
|
});
|
|
594
1059
|
privateHarness.assertValid();
|
|
595
1060
|
privateHarness.begin();
|
|
1061
|
+
smokeStage = 'onMount'; sentActions = 0;
|
|
1062
|
+
presentation.onMount?.({ tick: 0 });
|
|
1063
|
+
smokeStage = 'onEvent'; sentActions = 0;
|
|
596
1064
|
presentation.onEvent?.({ type: 'combat.resolved', payload: { actorId: 'player-a' } });
|
|
597
1065
|
privateHarness.assertValid();
|
|
598
1066
|
const passed = commands.length <= budgets.maxPresentationCommandsPerCase;
|
|
1067
|
+
try { authored?.drive(presentation); presentation.onState?.({ tick: 1 }); } catch {}
|
|
1068
|
+
smokeStage = 'onState';
|
|
1069
|
+
for (const { caseId, step, tick, snapshot, coreFixture } of states) {
|
|
1070
|
+
sentActions = 0; drawn = ` Sent from onState with the state after case ${caseId} step ${step}.`;
|
|
1071
|
+
try { privateHarness.show(snapshot, coreFixture); presentation.onState?.({ tick })?.catch?.(() => {}); } catch {}
|
|
1072
|
+
}
|
|
1073
|
+
if (bindingProblems.length) errors.push(issue(bindingProblems[0].code, manifest.entrypoints.client, bindingProblems[0].message,
|
|
1074
|
+
'Players cannot enter a world whose page sends this. Bind shared values to a component on an entity in ecs/scene.json, with a networkIntents entry of visibility all-participants. Bind the viewer\'s own values with entityId player:self, to a component on the scene.playerPrefab prefab with a networkIntents entry of visibility owner or all-participants. A card cannot bind another player: keep such values on a scene entity.', { caseId: 'client-presentation-smoke' }));
|
|
1075
|
+
if (overSent) inputWarnings.push(issue('CUSTOM_ACTION_RATE_LIMITED', manifest.entrypoints.client, `The client called actions.send at least ${overSent.count} times in ${overSent.stage}. The page queues ${CUSTOM_ACTION_LIMITS.burst} per lifecycle and refuses the rest.`,
|
|
1076
|
+
'Send fewer actions per lifecycle, or merge them into one action with more fields. Check the queued field of the result.'));
|
|
599
1077
|
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 {
|
|
1078
|
+
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.', { caseId: 'client-presentation-smoke' }));
|
|
1079
|
+
} catch (error) {
|
|
602
1080
|
results.push({ id: 'client-presentation-smoke', status: 'failed' });
|
|
603
|
-
errors.push(
|
|
604
|
-
|
|
1081
|
+
errors.push((access?.denial ? ecsAccessIssue(judge, access.denial, ' Rejected during the presentation smoke run.', { caseId: 'client-presentation-smoke' }) : null)
|
|
1082
|
+
?? await builtinWriteFailure(error, contentRoot, manifest.entrypoints.client, { caseId: 'client-presentation-smoke' })
|
|
1083
|
+
?? issue('INVALID_GAMEPLAY_SOURCE', manifest.entrypoints.client, clientFailureText(smokeStage, error), 'Fix this in the client entry. A failure here stops the room from opening for every player, so publishing will not help. Only the api passed to createPresentation is available there.', { caseId: 'client-presentation-smoke', ...clientFailureLine(error, clientRoot) }));
|
|
1084
|
+
} finally {
|
|
1085
|
+
privateHarness?.rollback();
|
|
1086
|
+
if (clientRoot) await rm(clientRoot, { recursive: true, force: true });
|
|
1087
|
+
}
|
|
605
1088
|
}
|
|
606
1089
|
|
|
1090
|
+
const startProbe = probeStart ? await runStartProbe(sharedRun) : undefined;
|
|
607
1091
|
return {
|
|
608
1092
|
schemaVersion: VERSION,
|
|
609
1093
|
status: errors.length === 0 ? 'passed' : 'failed',
|
|
610
1094
|
valid: errors.length === 0,
|
|
611
1095
|
cases: results,
|
|
612
1096
|
errors,
|
|
613
|
-
warnings: validation.report.warnings,
|
|
1097
|
+
warnings: [...validation.report.warnings, ...inputWarnings],
|
|
1098
|
+
inputWarnings,
|
|
1099
|
+
...(privateState ? { privateState } : {}),
|
|
1100
|
+
...(startProbe ? { startProbe } : {}),
|
|
614
1101
|
sensitiveValuesRedacted: true
|
|
615
1102
|
};
|
|
616
1103
|
}
|
|
617
1104
|
|
|
1105
|
+
export async function runProjectFuzz({ projectRoot, platformRoot, sdkRoot = platformRoot, restricted = false, seed = 1, runs = 8, ticks = 240, players = 4 }) {
|
|
1106
|
+
const validation = await validateProject({ projectRoot, platformRoot, restricted });
|
|
1107
|
+
if (!validation.report.valid) return invalidProjectTests(validation.report);
|
|
1108
|
+
const { CUSTOM_ACTION_EVENT } = await import('../contracts/ugc/open-creation/v1/custom-actions.mjs');
|
|
1109
|
+
const { fuzzCase } = await import('./rule-fuzz.mjs');
|
|
1110
|
+
const contentRoot = path.join(path.resolve(projectRoot), 'content');
|
|
1111
|
+
const manifest = await readJson(path.join(contentRoot, 'manifest.json'), 'content/manifest.json');
|
|
1112
|
+
const creatorContract = await readJson(path.join(platformRoot, 'contracts/ugc/v1/creator-sdk.json'), 'contracts/ugc/v1/creator-sdk.json');
|
|
1113
|
+
const budgets = { ...await readJson(path.join(contentRoot, manifest.tests.budgets), manifest.tests.budgets), maxCapabilityCallsPerCase: Number.MAX_SAFE_INTEGER };
|
|
1114
|
+
const actionsFile = manifest.openCreation?.customActions;
|
|
1115
|
+
const actions = actionsFile ? (await readJson(path.join(contentRoot, actionsFile), actionsFile)).actions : [];
|
|
1116
|
+
const ruleSet = await loadRuleSet(platformRoot), tickRate = await publishedTickRate(platformRoot);
|
|
1117
|
+
const normalized = testCase => {
|
|
1118
|
+
const first = testCase.steps[0], last = testCase.steps.at(-1), middle = testCase.steps.slice(1, -1), steps = [];
|
|
1119
|
+
for (let at = 0; at < middle.length || !at; at += 62) {
|
|
1120
|
+
const part = ruleSet.normalizeTestDocuments([{ schemaVersion: '1.0.0', cases: [{ id: testCase.id, steps: [first, ...middle.slice(at, at + 62), last] }] }])[0].steps;
|
|
1121
|
+
if (!at) steps.push(part[0]);
|
|
1122
|
+
steps.push(...part.slice(1, -1));
|
|
1123
|
+
if (at + 62 >= middle.length) steps.push(part.at(-1));
|
|
1124
|
+
}
|
|
1125
|
+
return { id: testCase.id, steps };
|
|
1126
|
+
};
|
|
1127
|
+
const failures = [], cases = [];
|
|
1128
|
+
let steps = 0;
|
|
1129
|
+
for (let run = 0; run < runs; run++) {
|
|
1130
|
+
const testCase = fuzzCase({ id: `fuzz-${seed + run}`, actions, seed: seed + run, players, ticks, tickRate, actionEvent: CUSTOM_ACTION_EVENT });
|
|
1131
|
+
const ready = normalized(testCase);
|
|
1132
|
+
steps += ready.steps.length;
|
|
1133
|
+
const { errors, results } = await runLocalSharedCases({ contentRoot, platformRoot, sdkRoot, manifest, creatorContract, budgets, validation, cases: [ready], fuzz: true });
|
|
1134
|
+
cases.push(...results);
|
|
1135
|
+
for (const error of errors) failures.push({ ...error, seed: seed + run, event: error.step ? testCase.steps[error.step - 1]?.input : undefined });
|
|
1136
|
+
}
|
|
1137
|
+
return { schemaVersion: '1.0.0', status: failures.length ? 'failed' : 'passed', valid: !failures.length, cases, errors: failures, fuzz: { seed, runs, ticks, players, steps, actions: actions.length },
|
|
1138
|
+
executedCreatorCode: true, published: false, sensitiveValuesRedacted: true };
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
async function runStartProbe(run) {
|
|
1142
|
+
const ruleSet = await loadRuleSet(run.platformRoot);
|
|
1143
|
+
const [{ steps: [first] }] = ruleSet.normalizeTestDocuments([run.rules, run.scenarios]);
|
|
1144
|
+
const start = { lifecycle: 'start', tick: 0, seed: 0, input: { roomId: 'start.probe' }, coreFixture: first.coreFixture, expectedCapabilityCalls: [] };
|
|
1145
|
+
const { errors: [issue] } = await runLocalSharedCases({ ...run, cases: [{ id: 'start-probe', steps: [start] }], probe: true });
|
|
1146
|
+
return issue ? { status: issue.level === 'warn' ? 'warned' : 'failed', issue } : { status: 'passed' };
|
|
1147
|
+
}
|
|
1148
|
+
|
|
618
1149
|
// Platform engineering entry, never a CLI/MCP grant override. Only call with
|
|
619
1150
|
// validated inputs and trusted local source; public builds use QuickJS instead.
|
|
620
|
-
|
|
1151
|
+
const publishedTickRate = root => readJson(path.join(root, 'contracts/ugc/runtime-content/v1/limits.json'), 'contracts/ugc/runtime-content/v1/limits.json').then(limits => limits.tickRate);
|
|
1152
|
+
|
|
1153
|
+
const MEASURE_LIMIT_BYTES = 1048576, MEASURE_ENTITY_LIMIT = 512, ROOM_PLAYER_LIMIT = 50;
|
|
1154
|
+
const widened = model => ({ ...model, limits: { ...model.limits, maxStateBytes: MEASURE_LIMIT_BYTES, maxEntities: MEASURE_ENTITY_LIMIT } });
|
|
1155
|
+
|
|
1156
|
+
export function committedStateMeter(rules, model, spawnPrefabs) {
|
|
1157
|
+
const wide = widened(model);
|
|
1158
|
+
const projector = spawnPrefabs ? new rules.OpenStateProjection(wide, { spawnPrefabs }) : new rules.PrivateStateProjection(wide);
|
|
1159
|
+
const components = projector.fieldTable().components, ids = components.map(component => component.componentId);
|
|
1160
|
+
const nameOf = new Map(components.map(component => [component.componentIndex, component.componentId]));
|
|
1161
|
+
let omitted = 0;
|
|
1162
|
+
const room = roomStateProjector(value => spawnPrefabs ? new rules.OpenStateProjection(value, { spawnPrefabs }) : new rules.PrivateStateProjection(value), model, count => { omitted = count; });
|
|
1163
|
+
return snapshot => {
|
|
1164
|
+
const { components: rows } = projector.project(snapshot, ids), size = value => Buffer.byteLength(JSON.stringify(value));
|
|
1165
|
+
const byComponent = new Map(), players = new Set();
|
|
1166
|
+
let playerBytes = 0;
|
|
1167
|
+
for (const row of rows) {
|
|
1168
|
+
const id = nameOf.get(row.componentIndex) ?? String(row.componentIndex), bytes = size(row);
|
|
1169
|
+
byComponent.set(id, (byComponent.get(id) ?? 0) + bytes);
|
|
1170
|
+
if (row.entityId.startsWith('player:')) { players.add(row.entityId); playerBytes += bytes; }
|
|
1171
|
+
}
|
|
1172
|
+
const nonPlayer = rows.filter(row => !row.entityId.startsWith('player:'));
|
|
1173
|
+
let refused = false;
|
|
1174
|
+
omitted = 0;
|
|
1175
|
+
try { room.project(snapshot, ids); } catch { refused = true; }
|
|
1176
|
+
return { bytes: size({ schemaVersion: '1.0.0', contentId: model.contentId, components: nonPlayer }), limit: model.limits.maxStateBytes,
|
|
1177
|
+
totalBytes: size({ schemaVersion: '1.0.0', contentId: model.contentId, components: rows }), totalLimit: ROOM_PRIVATE_STATE_BYTES, omitted, refused, players: players.size,
|
|
1178
|
+
perPlayerBytes: players.size ? Math.round(playerBytes / players.size) : 0,
|
|
1179
|
+
largest: [...byComponent].sort((a, b) => b[1] - a[1]).slice(0, 3).map(([id, bytes]) => `${id} ${bytes} bytes`).join(', ') };
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
const COMMITTED_STATE_FIX = 'To fit, do not go back to packing state into strings. Every shared field costs about 50 bytes per row. Give components that only the rules read "scope": "server": they stay out of committed state. Remove what the platform already keeps: player position is in core:Transform and vehicles are in authored entities. Keep what only the page needs on the page, or in scope client.';
|
|
1184
|
+
const committedStateIssue = (at, label, state) => issue('PRIVATE_STATE_BUDGET_EXCEEDED', at,
|
|
1185
|
+
`${label} commits state the room cannot publish: scene entities and spawned entities (everything but players) need ${state.bytes} bytes of the ${state.limit}-byte budget even after the newest spawned entities are left out, or the whole room state is over ${state.totalLimit} bytes (${state.totalBytes} now, ${state.players} players). Players do not count toward the ${state.limit} bytes. In a real room the room keeps its last published state and players see nothing new. About ${state.perPlayerBytes} bytes per player. Largest: ${state.largest}.`,
|
|
1186
|
+
COMMITTED_STATE_FIX, { actualBytes: state.bytes, limitBytes: state.limit, players: state.players, perPlayerBytes: state.perPlayerBytes });
|
|
1187
|
+
|
|
1188
|
+
export async function runLocalSharedCases({ contentRoot, platformRoot, sdkRoot = platformRoot, manifest, creatorContract, rules, scenarios, budgets, validation, cases, probe = false, fuzz = false }) {
|
|
621
1189
|
await verifyRuntimeSnapshot(platformRoot, 'private-events');
|
|
622
1190
|
await verifyRuntimeSnapshot(platformRoot, 'gameplay-tests');
|
|
1191
|
+
const ruleSet = await loadRuleSet(platformRoot);
|
|
623
1192
|
const { createLocalEventRuntime } = await import('./private-event-harness.mjs');
|
|
624
|
-
const
|
|
625
|
-
|
|
1193
|
+
const { sandboxStepInput } = await import('../contracts/gameplay/step-input/step-input.mjs');
|
|
1194
|
+
const { CUSTOM_ACTION_EVENT, CUSTOM_ACTION_LIMITS } = await import('../contracts/ugc/open-creation/v1/custom-actions.mjs');
|
|
1195
|
+
const playerEntities = Boolean(validation.privateModel?.scene?.playerPrefab);
|
|
1196
|
+
const errors = [], results = [], inputWarnings = [], states = [], judge = judgeOf(ruleSet, validation.resolution, manifest, validation.privateModel);
|
|
1197
|
+
const usage = { peakBytes: 0, peakTotalBytes: 0, omitted: 0, omittedAt: null };
|
|
1198
|
+
const meter = validation.privateModel && !probe ? committedStateMeter(ruleSet, validation.privateModel, manifest.openCreation?.spawnPrefabs) : null;
|
|
1199
|
+
const sharedFile = `content/${manifest.entrypoints.shared}`;
|
|
1200
|
+
for (const testCase of cases ?? ruleSet.normalizeTestDocuments([rules, scenarios])) {
|
|
626
1201
|
const calls = [];
|
|
627
1202
|
let totalCalls = 0;
|
|
1203
|
+
const tickRate = await publishedTickRate(platformRoot);
|
|
628
1204
|
let currentStep;
|
|
629
1205
|
let tickCalls = [];
|
|
630
1206
|
const granted = new Map(validation.resolution.capabilitiesLock.resolved.map(capability => [capability.id, capability]));
|
|
631
|
-
|
|
1207
|
+
const callable = new Map([...granted.values(), ...platformGrantedCapabilities].map(capability => [capability.id, capability]));
|
|
1208
|
+
let gatewayFailed = false, gatewayDenied, overCaseBudget = false, failedStep = 0;
|
|
1209
|
+
const caseBudgetExceeded = () => { overCaseBudget = true; return new Error('Case Capability budget exceeded.'); };
|
|
632
1210
|
const recordCall = (id, payload, encoded = payload) => {
|
|
633
|
-
const capability =
|
|
1211
|
+
const capability = callable.get(id);
|
|
1212
|
+
if (currentStep && capability && totalCalls + calls.length >= budgets.maxCapabilityCallsPerCase) throw caseBudgetExceeded();
|
|
634
1213
|
if (!currentStep || !capability || !capability.executionSides.includes('node-host')
|
|
635
|
-
|| tickCalls.filter(call => call.id === id).length >= capability.limits.maxCallsPerTick
|
|
1214
|
+
|| tickCalls.filter(call => capability.platformGranted ? callable.get(call.id)?.platformGranted : call.id === id).length >= capability.limits.maxCallsPerTick
|
|
636
1215
|
|| tickCalls.length >= validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick
|
|
637
|
-
|| totalCalls + calls.length >= budgets.maxCapabilityCallsPerCase
|
|
638
1216
|
|| Buffer.byteLength(JSON.stringify(encoded)) > capability.limits.maxInputBytes) throw new Error('Capability call rejected.');
|
|
639
1217
|
const call = { id, payload: structuredClone(payload) };
|
|
640
1218
|
calls.push(call); tickCalls.push(call);
|
|
641
1219
|
};
|
|
642
|
-
let eventRuntime, privateHarness, temporary;
|
|
1220
|
+
let eventRuntime, privateHarness, temporary, access;
|
|
1221
|
+
const sharedSite = stack => ruleCallSite(stack, `/${path.basename(temporary ?? '')}/shared/`, 'content/gameplay/shared/');
|
|
1222
|
+
const probeIssue = error => access?.denial ? ecsAccessIssue(judge, access.denial, ` ${START_FAILED}`)
|
|
1223
|
+
: gatewayDenied ? startCapabilityIssue({ id: gatewayDenied.id, file: sharedFile })
|
|
1224
|
+
: error ? startWarnIssue({ file: sharedFile, ...sharedSite(error.stack) }) : undefined;
|
|
643
1225
|
try {
|
|
644
1226
|
const sceneDriver = testCase.steps.some(step => step.lifecycle === 'scene')
|
|
645
|
-
? createSceneTestDriver({ plan: validation.sceneInteractionPlan, capabilities: [...granted.values()] }) : null;
|
|
1227
|
+
? ruleSet.createSceneTestDriver({ plan: validation.sceneInteractionPlan, capabilities: [...granted.values()] }) : null;
|
|
646
1228
|
eventRuntime = createLocalEventRuntime({ model: validation.privateEventModel, privateModel: validation.privateModel,
|
|
647
|
-
capabilities: [...granted.values()], maxCallsPerTick: validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick, recordCall });
|
|
1229
|
+
capabilities: [...granted.values()], maxCallsPerTick: validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick, recordCall, rules: ruleSet });
|
|
648
1230
|
privateHarness = createPrivateHarness(validation.privateModel, 'shared', {
|
|
649
|
-
capabilities: [...granted.values()], executionTier: manifest.executionTier, eventRuntime
|
|
1231
|
+
capabilities: [...granted.values()], executionTier: manifest.executionTier, eventRuntime, rules: ruleSet,
|
|
1232
|
+
spawnPrefabs: manifest.openCreation?.spawnPrefabs
|
|
650
1233
|
});
|
|
1234
|
+
access = watchEcsAccess(privateHarness.ecs, judge, 'shared', sharedSite, sharedFile);
|
|
1235
|
+
const gateway = createLocalCapabilityGateway({ granted: callable, creatorContract, isActive: () => Boolean(currentStep),
|
|
1236
|
+
recordCall, onReject: () => { gatewayFailed = true; }, rules: ruleSet });
|
|
651
1237
|
const api = {
|
|
652
|
-
ecs:
|
|
653
|
-
capabilities:
|
|
654
|
-
|
|
1238
|
+
ecs: access.ecs,
|
|
1239
|
+
capabilities: Object.freeze({ has: gateway.has, invoke(id, payload) {
|
|
1240
|
+
const receipt = gateway.invoke(id, payload);
|
|
1241
|
+
if (receipt.code === 'CAPABILITY_OPERATION_DENIED') gatewayDenied ??= { id };
|
|
1242
|
+
return receipt;
|
|
1243
|
+
} }),
|
|
655
1244
|
events: privateHarness.events,
|
|
656
|
-
clock: Object.freeze({ get tick() { return currentStep?.tick ?? 0; } }),
|
|
1245
|
+
clock: Object.freeze({ get tick() { return currentStep?.tick ?? 0; }, tickRate }),
|
|
657
1246
|
random: Object.freeze({ seeded: key => createHash('sha256').update(`${currentStep?.seed ?? 0}:${String(key)}`).digest().readUInt32BE(0) / 0x100000000 })
|
|
658
1247
|
};
|
|
659
1248
|
// Fresh file URLs for the complete same-side module graph, not only
|
|
660
1249
|
// a cache-busting entrypoint. This is still trusted native execution.
|
|
661
1250
|
temporary = await mkdtemp(path.join(os.tmpdir(), 'chrona-local-scenario-'));
|
|
662
|
-
await
|
|
663
|
-
await
|
|
1251
|
+
await copyTree(path.join(contentRoot, 'gameplay/shared'), path.join(temporary, 'shared'));
|
|
1252
|
+
await copyTree(path.join(sdkRoot, 'sdk'), path.join(temporary, 'sdk'));
|
|
664
1253
|
await writeFile(path.join(temporary, 'package.json'), JSON.stringify({ type: 'module', imports: { '#chrona/shared': './sdk/shared/index.js' } }));
|
|
665
1254
|
const entry = path.relative('gameplay/shared', manifest.entrypoints.shared);
|
|
666
1255
|
const { createSystem } = await import(pathToFileURL(path.join(temporary, 'shared', entry)).href);
|
|
667
1256
|
const system = createSystem(api);
|
|
668
1257
|
privateHarness.assertValid();
|
|
669
1258
|
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) {
|
|
1259
|
+
let passed = true, mismatches = null, difference = {}, oversized, overCommitted, burstTick, burstActions = 0, burstWarned = false;
|
|
1260
|
+
for (const [index, step] of testCase.steps.entries()) {
|
|
1261
|
+
failedStep = index + 1;
|
|
672
1262
|
if (currentStep?.tick !== step.tick) tickCalls = [];
|
|
673
1263
|
currentStep = step;
|
|
674
1264
|
calls.length = 0;
|
|
675
|
-
let input = step.
|
|
1265
|
+
let { event: input, ownEntityId } = sandboxStepInput(step, validation.customActionIds);
|
|
676
1266
|
if (step.lifecycle === 'scene') {
|
|
677
1267
|
const evaluated = sceneDriver.evaluate(step), { status, code, duplicate } = evaluated.result;
|
|
678
|
-
if (canonicalJson({status,code,duplicate}) !== canonicalJson(step.expectedSceneResult)) {
|
|
1268
|
+
if (ruleSet.canonicalJson({status,code,duplicate}) !== ruleSet.canonicalJson(step.expectedSceneResult)) {
|
|
1269
|
+
passed = false; difference = { expected: step.expectedSceneResult, actual: { status, code, duplicate } }; break;
|
|
1270
|
+
}
|
|
679
1271
|
input = evaluated.event;
|
|
680
1272
|
if (!input) {
|
|
681
|
-
if (step.expectedCapabilityCalls.length) { passed = false; break; }
|
|
1273
|
+
if (step.expectedCapabilityCalls.length) { passed = false; difference = { expected: step.expectedCapabilityCalls, actual: [] }; break; }
|
|
682
1274
|
continue;
|
|
683
1275
|
}
|
|
684
1276
|
const capability = granted.get('interaction.scene-target');
|
|
1277
|
+
if (totalCalls >= budgets.maxCapabilityCallsPerCase) throw caseBudgetExceeded();
|
|
685
1278
|
if (tickCalls.filter(call=>call.id==='interaction.scene-target').length >= capability.limits.maxCallsPerTick
|
|
686
1279
|
|| tickCalls.length >= validation.resolution.effectiveBudgets.effective.maxCapabilityCallsPerTick
|
|
687
|
-
|
|
1280
|
+
) throw new Error('Scene input budget rejected.');
|
|
688
1281
|
tickCalls.push({id:'interaction.scene-target'});totalCalls++;
|
|
689
1282
|
}
|
|
690
|
-
|
|
1283
|
+
const inputBytes = jsonBytes(sandboxLifecycleInput({ event: input, tick: step.tick, ownEntityId, entities: step.coreFixture.entities, playerEntities }));
|
|
1284
|
+
if (!probe && inputBytes > PLATFORM_MAX_INPUT_BYTES) {
|
|
1285
|
+
passed = false; oversized = { bytes: inputBytes, fixtureBytes: jsonBytes(step.coreFixture.entities), entities: step.coreFixture.entities.length }; break;
|
|
1286
|
+
}
|
|
1287
|
+
if (!probe && input?.type === CUSTOM_ACTION_EVENT) {
|
|
1288
|
+
const { actionId, data } = input.payload;
|
|
1289
|
+
try { validation.customActionContract?.encode(actionId, data); }
|
|
1290
|
+
catch { const problem = actionDataProblem(validation.customActionDeclarations, actionId, data); inputWarnings.push(issue('CUSTOM_ACTION_INVALID', manifest.tests.scenarios, `Declared case ${testCase.id} step ${failedStep} sends action ${actionId}, but the page could not send this data: ${problem ?? `it differs from the declared fields or encodes to more than ${CUSTOM_ACTION_LIMITS.maxEncodedBytes} bytes`}.`,
|
|
1291
|
+
'Match the fields in ecs/actions.json and keep one action small. A case with data the page cannot send proves nothing about a real room.', { caseId: testCase.id, step: failedStep })); }
|
|
1292
|
+
if (burstTick !== step.tick) { burstTick = step.tick; burstActions = 0; }
|
|
1293
|
+
if (++burstActions > CUSTOM_ACTION_LIMITS.maxPendingPerRoom && !burstWarned) {
|
|
1294
|
+
burstWarned = true;
|
|
1295
|
+
inputWarnings.push(issue('CUSTOM_ACTION_RATE_LIMITED', manifest.tests.scenarios, `Declared case ${testCase.id} sends ${burstActions} custom actions in tick ${step.tick}. A room keeps ${CUSTOM_ACTION_LIMITS.maxPendingPerRoom} waiting at once and each player gets ${CUSTOM_ACTION_LIMITS.ratePerSecond} per second, so a real room can refuse the rest.`,
|
|
1296
|
+
'Spread the actions over more ticks, or merge them. Handle CUSTOM_ACTION_RATE_LIMITED in the page.', { caseId: testCase.id, step: failedStep }));
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
privateHarness.begin(step.coreFixture, step.tick, ownEntityId);
|
|
691
1300
|
const handler = system[{ start: 'onStart', tick: 'onTick', event: 'onEvent', scene: 'onEvent', stop: 'onStop' }[step.lifecycle]];
|
|
692
1301
|
if (handler !== undefined && typeof handler !== 'function') throw new Error('Invalid lifecycle handler.');
|
|
693
1302
|
const output = handler?.call(system, structuredClone(input));
|
|
694
1303
|
if (output && (typeof output.then === 'function' || Object.prototype.toString.call(output) === '[object Promise]')) throw new Error('Asynchronous lifecycle.');
|
|
695
1304
|
privateHarness.assertValid();
|
|
696
1305
|
totalCalls += calls.length;
|
|
697
|
-
|
|
698
|
-
|
|
1306
|
+
if (totalCalls > budgets.maxCapabilityCallsPerCase) throw caseBudgetExceeded();
|
|
1307
|
+
passed = probe || fuzz || !gatewayFailed && ruleSet.canonicalJson(calls) === ruleSet.canonicalJson(step.expectedCapabilityCalls);
|
|
1308
|
+
if (!passed) { difference = { expected: step.expectedCapabilityCalls, actual: structuredClone(calls) }; break; }
|
|
699
1309
|
privateHarness.commit();
|
|
1310
|
+
if (!probe && !fuzz) states.push({ caseId: testCase.id, step: failedStep, tick: step.tick, snapshot: privateHarness.committed('client'), coreFixture: step.coreFixture });
|
|
1311
|
+
if (meter) {
|
|
1312
|
+
let state = null;
|
|
1313
|
+
try { state = meter(privateHarness.committed()); } catch { state = null; }
|
|
1314
|
+
if (state?.refused) { overCommitted = state; passed = false; break; }
|
|
1315
|
+
if (state) {
|
|
1316
|
+
usage.peakBytes = Math.max(usage.peakBytes, state.bytes); usage.peakTotalBytes = Math.max(usage.peakTotalBytes, state.totalBytes);
|
|
1317
|
+
if (state.omitted > usage.omitted) Object.assign(usage, { omitted: state.omitted, omittedAt: `${testCase.id} step ${failedStep}` });
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
if (step.expectedPrivateState) {
|
|
1321
|
+
const compared = ruleSet.comparePrivateState(step.expectedPrivateState, privateHarness.committed());
|
|
1322
|
+
if (!compared.passed) {
|
|
1323
|
+
passed = false; mismatches = compared.mismatches;
|
|
1324
|
+
const shown = mismatches.slice(0, 4), value = side => shown.map(({ entityId, component, field, [side]: found }) => ({ entityId, component, field, value: found }));
|
|
1325
|
+
difference = { expected: value('expected'), actual: value('actual') }; break;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
700
1328
|
}
|
|
1329
|
+
if (probe) { const found = probeIssue(); if (found) errors.push(found); continue; }
|
|
701
1330
|
results.push({ id: testCase.id, status: passed ? 'passed' : 'failed' });
|
|
702
|
-
if (
|
|
703
|
-
|
|
1331
|
+
if (privateHarness?.failureCode === 'ECS_BUDGET_EXCEEDED' && !errors.some(row => row.code === 'ECS_BUDGET_EXCEEDED' && row.caseId === testCase.id)) inputWarnings.push({ ...issue('ECS_BUDGET_EXCEEDED', manifest.entrypoints.shared,
|
|
1332
|
+
`Declared case ${testCase.id} spawned over maxEntities ${validation.privateModel.limits.maxEntities} and the rule caught it, so only that spawn failed, as in a room.`,
|
|
1333
|
+
'Fine if intended; otherwise despawn or reuse entities before the budget runs out, or raise requestedBudgets.maxEntities.', { caseId: testCase.id }), level: 'warn' });
|
|
1334
|
+
if (overCommitted) {
|
|
1335
|
+
errors.push(committedStateIssue(manifest.tests.scenarios, `Declared case ${testCase.id} step ${failedStep}`, overCommitted));
|
|
1336
|
+
} else if (oversized) {
|
|
1337
|
+
const { lifecycle, tick } = testCase.steps[failedStep - 1];
|
|
1338
|
+
errors.push(issue('INPUT_BUDGET_EXCEEDED', manifest.tests.scenarios, `Declared case ${testCase.id} step ${failedStep} (tick ${tick}, ${lifecycle}) gives the rule ${oversized.bytes} bytes of input. The platform limit is ${PLATFORM_MAX_INPUT_BYTES} bytes. The ${oversized.entities} coreFixture entities are ${oversized.fixtureBytes} of those bytes.`,
|
|
1339
|
+
'Use fewer or smaller coreFixture entities in this step, shorten long player ids, or split the case. The platform build stops on this step with INPUT_BUDGET_EXCEEDED, so publishing will not help.',
|
|
1340
|
+
{ caseId: testCase.id, step: failedStep, actualBytes: oversized.bytes, limitBytes: PLATFORM_MAX_INPUT_BYTES }));
|
|
1341
|
+
} else if (!passed) {
|
|
1342
|
+
const failed = testCase.steps[failedStep - 1];
|
|
1343
|
+
const undeclared = sandboxStepInput(failed, validation.customActionIds).refused
|
|
1344
|
+
? undeclaredActionIssue(manifest, failedStep, failed.input.payload?.actionId, validation.customActionIds) : null;
|
|
1345
|
+
const outcome = mismatches
|
|
1346
|
+
? `Declared case ${testCase.id} step ${failedStep} left the wrong private state: ${mismatches.slice(0, 4).map(describeMismatch).join('; ')}${mismatches.length > 4 ? `; ${mismatches.length - 4} more` : ''}.`
|
|
1347
|
+
: `Declared case ${testCase.id} did not produce its expected Capability calls.`;
|
|
1348
|
+
errors.push(issue('INVALID_GAMEPLAY_SOURCE', undeclared?.at ?? manifest.tests.scenarios, undeclared ? `${undeclared.message} ${outcome}` : outcome,
|
|
1349
|
+
undeclared?.repairHint ?? 'Repair the shared rule or the scenario expectation without weakening required behavior.',
|
|
1350
|
+
{ caseId: testCase.id, step: failedStep, ...difference }));
|
|
1351
|
+
}
|
|
1352
|
+
} catch (error) {
|
|
1353
|
+
if (probe) { errors.push(probeIssue({ stack: error?.stack })); continue; }
|
|
704
1354
|
results.push({ id: testCase.id, status: 'failed' });
|
|
705
|
-
|
|
1355
|
+
const step = testCase.steps[failedStep - 1];
|
|
1356
|
+
const location = { caseId: testCase.id, ...(failedStep ? { step: failedStep } : {}) };
|
|
1357
|
+
if (access?.denial) { errors.push(ecsAccessIssue(judge, access.denial, ` Rejected while running case ${testCase.id}${failedStep ? ` at step ${failedStep}` : ''}.`, location)); continue; }
|
|
1358
|
+
const builtinWrite = overCaseBudget ? null : await builtinWriteFailure(error, contentRoot, manifest.entrypoints.shared, location);
|
|
1359
|
+
errors.push(builtinWrite ?? (overCaseBudget
|
|
1360
|
+
? issue('INVALID_GAMEPLAY_SOURCE', manifest.tests.budgets, `Declared case ${testCase.id} step ${failedStep} needs more Capability calls than maxCapabilityCallsPerCase (${budgets.maxCapabilityCallsPerCase}); accepted scene interactions count too.`, 'Raise maxCapabilityCallsPerCase in the budgets file or shorten the case.',
|
|
1361
|
+
{ caseId: testCase.id, step: failedStep })
|
|
1362
|
+
: error?.code === 'CUSTOM_ACTION_INVALID'
|
|
1363
|
+
? issue('CUSTOM_ACTION_INVALID', manifest.tests.scenarios, `Declared case ${testCase.id} step ${failedStep} sends a custom action with an invalid actorEntityId or data.`, 'Use a player:<id> actorEntityId and an object for data, the same shape a real room delivers.',
|
|
1364
|
+
{ caseId: testCase.id, step: failedStep })
|
|
1365
|
+
: (privateHarness?.failureCode ?? error?.code) === 'ECS_BUDGET_EXCEEDED' && step
|
|
1366
|
+
? issue('ECS_BUDGET_EXCEEDED', manifest.entrypoints.shared, `Declared case ${testCase.id} step ${failedStep} (tick ${step.tick}, ${step.lifecycle}) went over a private ECS budget: entities (maxEntities ${validation.privateModel.limits.maxEntities}, counting scene entities and spawns; players do not count), private state bytes or ECS operations per lifecycle.`,
|
|
1367
|
+
'Remove old entities with api.ecs.despawn or cap how many exist before spawning, or raise requestedBudgets.maxEntities in content/manifest.json. A spawn over the entity budget fails only itself and can be caught; one that leaves your handler fails that lifecycle and rolls back its writes, as in a room (the room stays open).',
|
|
1368
|
+
{ caseId: testCase.id, step: failedStep, tick: step.tick, lifecycle: step.lifecycle })
|
|
1369
|
+
: (privateHarness?.failureCode ?? error?.code) === 'ECS_INVALID_VALUE'
|
|
1370
|
+
? issue('ECS_INVALID_VALUE', manifest.entrypoints.shared, `Declared case ${testCase.id}${failedStep ? ` step ${failedStep}` : ''}${step ? ` (tick ${step.tick}, ${step.lifecycle})` : ''} wrote a value that ${invalidTarget(error)} does not accept: out of its range or of the wrong type.`,
|
|
1371
|
+
'Check the value against the field in content/ecs/components.json before writing it, for example clamp it to the minimum and maximum declared there. In a room the same write closes the room.',
|
|
1372
|
+
{ ...location, ...(typeof error?.component === 'string' ? { component: error.component } : {}), ...(typeof error?.field === 'string' ? { field: error.field } : {}) })
|
|
1373
|
+
: issue('INVALID_GAMEPLAY_SOURCE', manifest.entrypoints.shared, `Declared case ${testCase.id} raised an exception.`, 'Repair the shared rule using only the injected SDK input.',
|
|
1374
|
+
location)));
|
|
706
1375
|
} finally {
|
|
707
1376
|
privateHarness?.rollback();
|
|
708
1377
|
eventRuntime?.close();
|
|
709
1378
|
if (temporary) await rm(temporary, { recursive: true, force: true });
|
|
710
1379
|
}
|
|
711
1380
|
}
|
|
712
|
-
|
|
1381
|
+
if (meter) {
|
|
1382
|
+
const spawnPrefabs = manifest.openCreation?.spawnPrefabs, model = widened(validation.privateModel);
|
|
1383
|
+
let state = null;
|
|
1384
|
+
try {
|
|
1385
|
+
const world = spawnPrefabs ? new ruleSet.OpenEcsWorld(model, { spawnPrefabs }) : new ruleSet.PrivateEcsWorld(model);
|
|
1386
|
+
world.syncPlayers(Array.from({ length: ROOM_PLAYER_LIMIT }, (_, index) => `player:budget-${index}`));
|
|
1387
|
+
state = meter(world.snapshot('shared'));
|
|
1388
|
+
} catch { state = null; }
|
|
1389
|
+
if (state?.refused) inputWarnings.push({ ...committedStateIssue('content/ecs', `A room with ${ROOM_PLAYER_LIMIT} players at default values`, state), level: 'warn' });
|
|
1390
|
+
}
|
|
1391
|
+
const privateState = meter ? { nonPlayerPeakBytes: usage.peakBytes, nonPlayerLimitBytes: validation.privateModel.limits.maxStateBytes,
|
|
1392
|
+
roomPeakBytes: usage.peakTotalBytes, roomLimitBytes: ROOM_PRIVATE_STATE_BYTES, omittedSpawned: usage.omitted } : undefined;
|
|
1393
|
+
if (usage.omitted) inputWarnings.push({ ...issue('PRIVATE_STATE_BUDGET_EXCEEDED', manifest.tests.scenarios,
|
|
1394
|
+
`At ${usage.omittedAt} the ${usage.omitted} newest spawned entities do not fit in the ${privateState.nonPlayerLimitBytes} bytes for state other than players, so the room does not show them to players; the world keeps them.`,
|
|
1395
|
+
'Despawn or reuse spawned entities before this many exist, or keep their shared fields small; players do not count toward this budget.'), level: 'warn' });
|
|
1396
|
+
return { results, errors, inputWarnings, states, privateState };
|
|
713
1397
|
}
|
|
714
1398
|
|
|
715
1399
|
export async function writeJsonReport(absolute, value) {
|
|
@@ -724,7 +1408,7 @@ export async function assessCreatorTargetSupport({ projectRoot, probeLocalBuild
|
|
|
724
1408
|
if (typeof projectRoot !== 'string' || typeof probeLocalBuild !== 'boolean') {
|
|
725
1409
|
throw Object.assign(new Error('Invalid support request.'), { code: 'INVALID_SUPPORT_REQUEST' });
|
|
726
1410
|
}
|
|
727
|
-
const { kitRoot, readCreatorProject } = await import('./creator-project.mjs');
|
|
1411
|
+
const { kitRoot, readCreatorProject, projectRules } = await import('./creator-project.mjs');
|
|
728
1412
|
// Prepared imports can report verified source facts before normal Creator
|
|
729
1413
|
// binding exists. They must not pretend to be valid/uploadable projects.
|
|
730
1414
|
try {
|
|
@@ -735,7 +1419,8 @@ export async function assessCreatorTargetSupport({ projectRoot, probeLocalBuild
|
|
|
735
1419
|
return assessPreparedDocumentSupport(kitRoot, projectRoot);
|
|
736
1420
|
}
|
|
737
1421
|
const project = await readCreatorProject(projectRoot);
|
|
738
|
-
const
|
|
1422
|
+
const rules = await projectRules(kitRoot);
|
|
1423
|
+
const checked = await validateProject({ projectRoot: project.root, platformRoot: rules.directory });
|
|
739
1424
|
const unknown = () => ({ support: 'unknown', ready: false, observed: false, reason: 'TARGET_EXECUTION_NOT_OBSERVED' });
|
|
740
1425
|
const targets = { local: { ...unknown(), buildSupport: 'unknown' }, preview: unknown(), public: unknown() };
|
|
741
1426
|
let localBuilder = null, temporary;
|
|
@@ -745,18 +1430,18 @@ export async function assessCreatorTargetSupport({ projectRoot, probeLocalBuild
|
|
|
745
1430
|
temporary = await realpath(await mkdtemp(path.join(os.tmpdir(), 'chrona-support-')));
|
|
746
1431
|
try {
|
|
747
1432
|
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') });
|
|
1433
|
+
await producer.buildLocalContentSnapshot({ projectRoot: project.root, kitRoot, rulesRoot: rules.directory, outputDirectory: path.join(temporary, 'snapshot') });
|
|
749
1434
|
targets.local = { ...unknown(), buildSupport: 'supported', buildObserved: true, reason: 'RUNTIME_EXECUTION_NOT_OBSERVED' };
|
|
750
1435
|
} catch (error) {
|
|
751
1436
|
const code = typeof error?.code === 'string' && /^[A-Z][A-Z0-9_]{2,79}$/.test(error.code) ? error.code : 'LOCAL_BUILD_OBSERVATION_FAILED';
|
|
752
1437
|
// 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);
|
|
1438
|
+
const rejected = ['LOCAL_SCENE_PROFILE_REQUIRED', 'LOCAL_PRIVATE_CAPABILITY_UNSUPPORTED', 'LOCAL_SCENE_INTERACTION_UNSUPPORTED', 'NEEDS_CAPABILITY'].includes(code);
|
|
754
1439
|
targets.local = { ...unknown(), support: rejected ? 'unsupported' : 'unknown', buildSupport: rejected ? 'unsupported' : 'unknown',
|
|
755
1440
|
buildObserved: true, reason: code };
|
|
756
1441
|
} finally { await rm(temporary, { recursive: true, force: true }); }
|
|
757
1442
|
}
|
|
758
1443
|
return { schemaVersion: '1.0.0', operation: 'creation-support', status: 'passed', toolchain: project.toolchain,
|
|
759
|
-
validation: checked.report, targets, localBuilder, generatedCodeExecuted: false,
|
|
1444
|
+
rules: { version: rules.version, sha256: rules.sha256, source: rules.source }, validation: checked.report, targets, localBuilder, generatedCodeExecuted: false,
|
|
760
1445
|
executedCreatorCode: false, runtimeStarted: false, published: false,
|
|
761
1446
|
nextAction: !checked.report.valid ? 'repair-validation' : targets.local.buildSupport === 'unsupported'
|
|
762
1447
|
? 'review-local-producer-rejection-before-generating-assets' : 'verify-selected-runtime-and-target-before-claiming-playable' };
|