@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
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
import { lstat, readFile, readdir } from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { rulesAcceptMovementAuthority } from './movement-authority.mjs';
|
|
4
|
+
|
|
5
|
+
const PATTERNS_DOC = 'docs/realtime-patterns.md';
|
|
6
|
+
export const MIGRATE_COMMAND = 'chrona migrate --project DIR';
|
|
7
|
+
export const STATE_BUDGET_TARGET = 65536;
|
|
8
|
+
export const FIRST_FRAME_HINT_BYTES = 20971520;
|
|
9
|
+
export const FIRST_FILE_HINT_BYTES = 2097152;
|
|
10
|
+
const MAX_SCRIPT_BYTES = 8388608;
|
|
11
|
+
const MAX_FINDINGS_PER_PATTERN = 20;
|
|
12
|
+
const LARGE_STRING = 1024;
|
|
13
|
+
const SHARD_STRING = 512;
|
|
14
|
+
|
|
15
|
+
export const realtimeRoutes = Object.freeze({
|
|
16
|
+
movement: { status: 'ready', writing: 'chronaDocument.inputIntent({ move: { x, z }, yaw, buttons }) from the render loop, every frame, including when nothing is pressed, each move value a finite number; the player stops after 500 ms with no call; buttons is 0, or 2 to run', doc: `${PATTERNS_DOC}#movement` },
|
|
17
|
+
action: { status: 'ready', writing: "Declare the action by meaning in chrona.generate.json and run chrona generate. Send const seq = chronaDocument.customAction('ugc.<work>:<Name>', data) when it happens: data is a plain object of at most 1024 encoded bytes, and seq is null if the page has closed. Results arrive in onActionResult with intentSequence equal to seq and an actionId field: status 'accepted' or 'duplicate' count as done, status 'rejected' with a code means it did not take effect and the page stays open. Rules receive it in onEvent as event.type === 'chrona.action'", doc: `${PATTERNS_DOC}#actions` },
|
|
18
|
+
vehicle: { status: 'ready', writing: "Declare vehicles in rules/authored-motion.json and put their glb in content/assets/runtime/ and manifest.resources. Read chronaDocument.entities.list() in onState (each row has pose { x, y, z, yaw }), get in with requestSeat(requestId, vehicleEntityId, seat), take control with requestOwnership(requestId, entityId, target), drive with submitPoses(poses) from the render loop, and watch chronaDocument.onAuthored(cb). A refusal is { queued: false, code } or authored.refused and the page stays open", doc: `${PATTERNS_DOC}#vehicles` },
|
|
19
|
+
dynamicEntity: { status: 'ready', writing: 'Declare dynamicEntities with entities [{ prefab }] in chrona.generate.json and run chrona generate, create with motion.spawn(prefab, { kind, position, velocity }), call motion.set(id, ...) only when the motion changes, end with motion.despawn(id), and draw from chronaDocument.dynamicEntities.list() each frame', doc: `${PATTERNS_DOC}#npcs-and-projectiles` },
|
|
20
|
+
continuousAction: { status: 'ready', writing: 'A continuous action sends only its state changes: one customAction when it starts and one when it stops, plus a renewal about every 1.2 seconds while held, not one per shot or per frame. The rules end it by themselves when the renewals stop, so a lost stop cannot leave it running. Retry a null or refused stop, and end it on pointercancel, lostpointercapture, blur and when the page is hidden. Draw each shot locally. A room holds at most 8 waiting actions, so a stream per player runs into that limit with several players', doc: `${PATTERNS_DOC}#actions` },
|
|
21
|
+
state: { status: 'ready', writing: 'Small typed fields written only when the value changes', doc: `${PATTERNS_DOC}#high-frequency-state` },
|
|
22
|
+
ready: { status: 'ready', writing: "Send nothing before ready(): import { readyGateFor } from './ready-gate.js' and use its sdk, or await whenReady() before starting the send loop", doc: `${PATTERNS_DOC}#ready-before-you-send` },
|
|
23
|
+
resources: { status: 'ready', writing: 'Keep the first frame small, and let a Start button wait only for the current scene and the player\'s own model: shrink models with chrona compress-model, mark what it does not need "load": "deferred" in document.json, and request it with await chronaDocument.loadAsset(path) after the first frame', doc: `${PATTERNS_DOC}#resources` }
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const patterns = Object.freeze({
|
|
27
|
+
'scene-action-input': { code: 'LEGACY_SCENE_ACTION_INPUT', title: 'Input sent through sceneAction' },
|
|
28
|
+
'custom-action-loop': { code: 'LEGACY_CUSTOM_ACTION_LOOP', title: 'customAction sent from a loop' },
|
|
29
|
+
'wait-before-ready': { code: 'LEGACY_WAIT_BEFORE_READY', title: 'Page waits with no limit before ready()' },
|
|
30
|
+
'camera-lag': { code: 'LEGACY_CAMERA_LAG', title: 'Camera position chases one point while looking at another' },
|
|
31
|
+
'held-action-end': { code: 'LEGACY_HELD_ACTION_END', title: 'Held input with no way to end when the release is lost' },
|
|
32
|
+
'input-on-key': { code: 'LEGACY_INPUT_ON_KEY', title: 'inputIntent sent only from key handlers' },
|
|
33
|
+
'buttons-action': { code: 'LEGACY_BUTTONS_ACTION', title: 'Actions packed into inputIntent buttons' },
|
|
34
|
+
'large-state-string': { code: 'LEGACY_LARGE_STATE_STRING', title: 'Large string in frequently written state' },
|
|
35
|
+
'state-sharding': { code: 'LEGACY_STATE_SHARDING', title: 'One value cut across several fields' },
|
|
36
|
+
'ready-gate': { code: 'LEGACY_READY_GATE', title: 'Sending before ready()' },
|
|
37
|
+
'first-frame-load': { code: 'LEGACY_FIRST_FRAME_LOAD', title: 'Everything loads in the first frame' },
|
|
38
|
+
'state-budget': { code: 'LEGACY_STATE_BUDGET', title: 'State budget below the current default' },
|
|
39
|
+
'movement-authority': { code: 'LEGACY_MOVEMENT_AUTHORITY', title: 'Movement authority not declared' },
|
|
40
|
+
'fixed-slots': { code: 'LEGACY_FIXED_SLOTS', title: 'Entities created ahead of time as fixed slots' },
|
|
41
|
+
'core-read-per-player': { code: 'LEGACY_CORE_READ_PER_PLAYER', title: 'Core components read for every player in one lifecycle' },
|
|
42
|
+
'unreadable-bundle': { code: 'LEGACY_BUNDLE_NOT_JUDGED', title: 'Bundled script only partly judged' }
|
|
43
|
+
});
|
|
44
|
+
export const legacyPatternCodes = Object.freeze(Object.values(patterns).map(row => row.code));
|
|
45
|
+
|
|
46
|
+
const finding = (pattern, certainty, { level, file, line, old, replace, doc, ...extra }) => ({ pattern, code: patterns[pattern].code, certainty,
|
|
47
|
+
level: level ?? (certainty === 'proven' ? 'agent-fix' : 'warn'), file, ...(line ? { line } : {}), old: String(old).slice(0, 200), replace, doc, ...extra });
|
|
48
|
+
|
|
49
|
+
const lineAt = (text, offset) => {
|
|
50
|
+
let line = 1;
|
|
51
|
+
for (let at = text.indexOf('\n'); at !== -1 && at < offset; at = text.indexOf('\n', at + 1)) line++;
|
|
52
|
+
return line;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const REGEX_BEFORE = new Set('(,=:[!&|?{};+-*%<>~^\n'.split(''));
|
|
56
|
+
const KEYWORD_BEFORE = /(?:^|[^\w$.])(?:return|typeof|case|in|of|do|else|void|delete|throw|new|yield|await)$/;
|
|
57
|
+
|
|
58
|
+
export function readSource(text) {
|
|
59
|
+
const code = text.split(''), shape = text.split('');
|
|
60
|
+
const blank = (target, from, to) => { for (let at = from; at < to; at++) if (target[at] !== '\n') target[at] = ' '; };
|
|
61
|
+
const skipQuoted = (at, quote) => {
|
|
62
|
+
for (let cursor = at + 1; cursor < text.length; cursor++) {
|
|
63
|
+
if (text[cursor] === '\\') { cursor++; continue; }
|
|
64
|
+
if (text[cursor] === quote) return cursor + 1;
|
|
65
|
+
if (text[cursor] === '\n') return cursor;
|
|
66
|
+
}
|
|
67
|
+
return text.length;
|
|
68
|
+
};
|
|
69
|
+
const skipTemplate = at => {
|
|
70
|
+
for (let cursor = at + 1; cursor < text.length; cursor++) {
|
|
71
|
+
if (text[cursor] === '\\') { cursor++; continue; }
|
|
72
|
+
if (text[cursor] === '`') return cursor + 1;
|
|
73
|
+
if (text[cursor] !== '$' || text[cursor + 1] !== '{') continue;
|
|
74
|
+
let depth = 1;
|
|
75
|
+
for (cursor += 2; cursor < text.length && depth > 0; cursor++) {
|
|
76
|
+
const char = text[cursor];
|
|
77
|
+
if (char === '{') depth++;
|
|
78
|
+
else if (char === '}') depth--;
|
|
79
|
+
else if (char === '`') cursor = skipTemplate(cursor) - 1;
|
|
80
|
+
else if (char === '"' || char === "'") cursor = skipQuoted(cursor, char) - 1;
|
|
81
|
+
}
|
|
82
|
+
cursor--;
|
|
83
|
+
}
|
|
84
|
+
return text.length;
|
|
85
|
+
};
|
|
86
|
+
const skipRegex = at => {
|
|
87
|
+
let inClass = false;
|
|
88
|
+
for (let cursor = at + 1; cursor < text.length; cursor++) {
|
|
89
|
+
const char = text[cursor];
|
|
90
|
+
if (char === '\n') return null;
|
|
91
|
+
if (char === '\\') cursor++;
|
|
92
|
+
else if (char === '[') inClass = true;
|
|
93
|
+
else if (char === ']') inClass = false;
|
|
94
|
+
else if (char === '/' && !inClass) return cursor + 1;
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
};
|
|
98
|
+
let last = '', recent = '';
|
|
99
|
+
for (let at = 0; at < text.length;) {
|
|
100
|
+
const char = text[at], next = text[at + 1];
|
|
101
|
+
if (char === '/' && next === '/') {
|
|
102
|
+
const end = text.indexOf('\n', at), stop = end === -1 ? text.length : end;
|
|
103
|
+
blank(code, at, stop); blank(shape, at, stop); at = stop; continue;
|
|
104
|
+
}
|
|
105
|
+
if (char === '/' && next === '*') {
|
|
106
|
+
const end = text.indexOf('*/', at + 2), stop = end === -1 ? text.length : end + 2;
|
|
107
|
+
blank(code, at, stop); blank(shape, at, stop); at = stop; continue;
|
|
108
|
+
}
|
|
109
|
+
if (char === '"' || char === "'" || char === '`') {
|
|
110
|
+
const stop = char === '`' ? skipTemplate(at) : skipQuoted(at, char);
|
|
111
|
+
blank(shape, at, stop); at = stop; last = char; recent = ''; continue;
|
|
112
|
+
}
|
|
113
|
+
if (char === '/' && (last === '' || REGEX_BEFORE.has(last) || KEYWORD_BEFORE.test(recent))) {
|
|
114
|
+
const stop = skipRegex(at);
|
|
115
|
+
if (stop !== null) { blank(shape, at, stop); at = stop; last = '/'; recent = ''; continue; }
|
|
116
|
+
}
|
|
117
|
+
if (!/\s/.test(char)) { last = char; recent = `${recent}${char}`.slice(-12); } else if (recent) recent = `${recent} `.slice(-12);
|
|
118
|
+
at++;
|
|
119
|
+
}
|
|
120
|
+
return { code: code.join(''), shape: shape.join('') };
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function closingOf(shape, open) {
|
|
124
|
+
let depth = 0;
|
|
125
|
+
for (let at = open; at < shape.length; at++) {
|
|
126
|
+
const char = shape[at];
|
|
127
|
+
if (char === '(' || char === '[' || char === '{') depth++;
|
|
128
|
+
else if (char === ')' || char === ']' || char === '}') { if (--depth === 0) return at; }
|
|
129
|
+
}
|
|
130
|
+
return -1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const NOT_METHOD = new Set(['if', 'for', 'while', 'switch', 'catch', 'function', 'return', 'typeof', 'await', 'with']);
|
|
134
|
+
|
|
135
|
+
function expressionEnd(shape, at, { newline = false } = {}) {
|
|
136
|
+
let depth = 0;
|
|
137
|
+
for (let cursor = at; cursor < shape.length; cursor++) {
|
|
138
|
+
const char = shape[cursor];
|
|
139
|
+
if ('([{'.includes(char)) depth++;
|
|
140
|
+
else if (')]}'.includes(char)) { if (depth === 0) return cursor; depth--; }
|
|
141
|
+
else if (depth === 0 && (char === ',' || char === ';' || newline && char === '\n')) return cursor;
|
|
142
|
+
}
|
|
143
|
+
return shape.length;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function findFunctions(shape) {
|
|
147
|
+
const found = [];
|
|
148
|
+
const add = (name, start, parameterOpen, bodyAt) => {
|
|
149
|
+
const brace = /^\s*\{/.exec(shape.slice(bodyAt, bodyAt + 200));
|
|
150
|
+
if (!brace) return;
|
|
151
|
+
const open = bodyAt + brace[0].length - 1, end = closingOf(shape, open);
|
|
152
|
+
if (end !== -1) found.push({ name, start, bodyStart: open, end, parameter: firstParameter(shape, parameterOpen) });
|
|
153
|
+
};
|
|
154
|
+
for (const match of shape.matchAll(/\bfunction\s*\*?\s*([A-Za-z_$][\w$]*)?\s*\(/g)) {
|
|
155
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
156
|
+
const assigned = /([A-Za-z_$][\w$]*)\s*[:=]\s*(?:async\s+)?$/.exec(shape.slice(Math.max(0, match.index - 80), match.index))?.[1];
|
|
157
|
+
if (close !== -1) add(match[1] ?? assigned, match.index, open, close + 1);
|
|
158
|
+
}
|
|
159
|
+
for (const match of shape.matchAll(/(?:([A-Za-z_$][\w$]*)\s*[:=]\s*)?(?:async\s+)?(\([^()]*\)|[A-Za-z_$][\w$]*)\s*=>\s*/g)) {
|
|
160
|
+
const bodyAt = match.index + match[0].length;
|
|
161
|
+
const parameter = /^\(?\s*([A-Za-z_$][\w$]*)/.exec(match[2])?.[1];
|
|
162
|
+
if (shape[bodyAt] === '{') { const end = closingOf(shape, bodyAt); if (end !== -1) found.push({ name: match[1], start: match.index, bodyStart: bodyAt, end, parameter }); }
|
|
163
|
+
else found.push({ name: match[1], start: match.index, bodyStart: bodyAt, end: expressionEnd(shape, bodyAt, { newline: true }), parameter });
|
|
164
|
+
}
|
|
165
|
+
for (const match of shape.matchAll(/(?<![\w$.])([A-Za-z_$][\w$]*)\s*\(/g)) {
|
|
166
|
+
if (NOT_METHOD.has(match[1])) continue;
|
|
167
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
168
|
+
if (close !== -1 && /^\s*\{/.test(shape.slice(close + 1, close + 40)) && !/\bfunction\s*\*?\s*$/.test(shape.slice(Math.max(0, match.index - 12), match.index))) add(match[1], match.index, open, close + 1);
|
|
169
|
+
}
|
|
170
|
+
return found;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const firstParameter = (shape, open) => /^\(\s*([A-Za-z_$][\w$]*)/.exec(shape.slice(open, open + 80))?.[1];
|
|
174
|
+
|
|
175
|
+
function callbackSpan(shape, at, functions) {
|
|
176
|
+
const rest = shape.slice(at, at + 200);
|
|
177
|
+
const named = /^\s*([A-Za-z_$][\w$]*)\s*[,)]/.exec(rest);
|
|
178
|
+
if (named) return functions.filter(row => row.name === named[1]).map(row => ({ start: row.bodyStart, end: row.end, parameter: row.parameter, name: named[1] }));
|
|
179
|
+
const offset = /^\s*/.exec(rest)[0].length, parameter = /^(?:async\s+)?(?:function\s*[\w$]*\s*)?\(?\s*([A-Za-z_$][\w$]*)/.exec(rest.slice(offset))?.[1];
|
|
180
|
+
return [{ start: at, end: expressionEnd(shape, at), parameter: parameter === 'function' ? undefined : parameter }];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function handlerSpans({ code, shape }, functions) {
|
|
184
|
+
const spans = [];
|
|
185
|
+
for (const match of code.matchAll(/\baddEventListener\s*\(\s*(['"`])(key(?:down|up|press))\1\s*,/g))
|
|
186
|
+
for (const span of callbackSpan(shape, match.index + match[0].length, functions)) spans.push({ ...span, kind: 'key' });
|
|
187
|
+
for (const match of shape.matchAll(/\bon(?:keydown|keyup|keypress)\s*=(?!=)\s*/g))
|
|
188
|
+
for (const span of callbackSpan(shape, match.index + match[0].length, functions)) spans.push({ ...span, kind: 'key' });
|
|
189
|
+
for (const match of shape.matchAll(/\brequestAnimationFrame\s*\(/g))
|
|
190
|
+
for (const span of callbackSpan(shape, match.index + match[0].length, functions)) spans.push({ ...span, kind: 'frame', startedAt: match.index });
|
|
191
|
+
for (const match of shape.matchAll(/\bsetInterval\s*\(/g)) {
|
|
192
|
+
const close = closingOf(shape, match.index + match[0].length - 1);
|
|
193
|
+
const delay = close === -1 ? null : /,\s*(\d+)\s*$/.exec(code.slice(match.index, close))?.[1];
|
|
194
|
+
if (delay !== undefined && delay !== null && Number(delay) > 1000) continue;
|
|
195
|
+
for (const span of callbackSpan(shape, match.index + match[0].length, functions)) spans.push({ ...span, kind: 'frame', startedAt: match.index });
|
|
196
|
+
}
|
|
197
|
+
return spans;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const SEND = /(?<![\w$])(?:[A-Za-z_$][\w$]*\s*\??\.\s*)*(sceneAction|inputIntent|customAction|localFirst)\s*\(/g;
|
|
201
|
+
|
|
202
|
+
function findSends({ code, shape }) {
|
|
203
|
+
const sends = [];
|
|
204
|
+
for (const match of shape.matchAll(SEND)) {
|
|
205
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
206
|
+
if (close === -1 || /^\s*\{/.test(shape.slice(close + 1, close + 20)) && !match[0].includes('.')) continue;
|
|
207
|
+
const comma = expressionEnd(shape, open + 1);
|
|
208
|
+
sends.push({ name: match[1], at: match.index, argument: code.slice(open + 1, Math.min(comma, close)).trim(), whole: code.slice(open + 1, close).trim() });
|
|
209
|
+
}
|
|
210
|
+
return sends;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const ENCODED_TARGET = /^(?:`input[-_:.]?[^`]*\$\{|(['"])input[-_:.]?\1\s*\+|(['"])input[-_:.]?\d+\2$)/i;
|
|
214
|
+
const STATIC_TARGET = /^(['"`])[^'"`$]*\1$/;
|
|
215
|
+
const GATED = /\b(?:readyGateFor|createReadyGate|whenReady)\b/;
|
|
216
|
+
const GUARD = /\b(?:is|page|has)?[Rr]eady\b|\bbooted\b|\bbootComplete\b/;
|
|
217
|
+
const keyDerived = (parameter, text) => parameter ? new RegExp(`(?<![\\w$])${parameter.replace(/\$/g, '\\$')}\\s*\\.\\s*(?:key|code|keyCode|which)\\b`).test(text) : false;
|
|
218
|
+
|
|
219
|
+
function derivedFromKey(code, span, argument) {
|
|
220
|
+
if (keyDerived(span.parameter, argument)) return true;
|
|
221
|
+
const variable = /^[A-Za-z_$][\w$]*/.exec(argument)?.[0];
|
|
222
|
+
if (!variable) return false;
|
|
223
|
+
const escaped = variable.replace(/\$/g, '\\$');
|
|
224
|
+
const assigned = new RegExp(`(?<![\\w$.])${escaped}\\s*=(?![=>])([^;\\n]*)`).exec(code.slice(span.start, span.end));
|
|
225
|
+
return assigned ? keyDerived(span.parameter, assigned[1]) : false;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const numbersIn = expression => {
|
|
229
|
+
const text = expression.replace(/\[[^\]]*\]/g, ' ').replace(/(\d+)\s*<<\s*(\d+)/g, (_, base, bits) => String(Number(base) * 2 ** Number(bits)))
|
|
230
|
+
.replace(/(?:[!=]==?|[<>]=?)\s*(?:0x[0-9a-f]+|\d+)/gi, ' ');
|
|
231
|
+
return [...text.matchAll(/(?<![\w$.])(0x[0-9a-f]+|\d+)(?![\w$.])/gi)].map(row => Number(row[1]));
|
|
232
|
+
};
|
|
233
|
+
const actionBits = expression => numbersIn(expression).filter(value => value !== 0 && value !== 2);
|
|
234
|
+
|
|
235
|
+
function buttonsFindings({ file, source, sends, bundled }) {
|
|
236
|
+
const found = [];
|
|
237
|
+
const report = (at, text, bits) => found.push(finding('buttons-action', 'proven', { file, line: lineAt(source.code, at), old: text,
|
|
238
|
+
replace: `buttons only means running: 0 or 2. Value ${bits[0]} does nothing and the room refuses it. Move every other key to ${realtimeRoutes.action.writing}`, doc: realtimeRoutes.action.doc }));
|
|
239
|
+
for (const { name, whole, at } of sends) {
|
|
240
|
+
if (name !== 'inputIntent') continue;
|
|
241
|
+
const inline = /\bbuttons\s*:\s*/.exec(whole);
|
|
242
|
+
if (inline) {
|
|
243
|
+
const start = inline.index + inline[0].length, expression = whole.slice(start, expressionEnd(readSource(whole).shape, start));
|
|
244
|
+
const bits = actionBits(expression);
|
|
245
|
+
if (bits.length) { report(at, `inputIntent(${whole})`, bits); continue; }
|
|
246
|
+
if (/^[\w$.]+$/.test(expression.trim()) && !/^\d/.test(expression.trim())) found.push(...assignedButtons(file, source, expression.trim(), bundled, report));
|
|
247
|
+
} else if (/(?:[{,]\s*)buttons\s*[,}]/.test(whole)) found.push(...assignedButtons(file, source, 'buttons', bundled, report));
|
|
248
|
+
}
|
|
249
|
+
return found;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function assignedButtons(file, source, name, bundled, report) {
|
|
253
|
+
if (bundled) return [];
|
|
254
|
+
const variable = name.split('.').at(-1).replace(/\$/g, '\\$');
|
|
255
|
+
for (const match of source.code.matchAll(new RegExp(`(?<![\\w$])${variable}\\s*(\\|=|=(?![=>]))\\s*([^;\\n]*)`, 'g'))) {
|
|
256
|
+
const bits = actionBits(match[2]);
|
|
257
|
+
if (bits.length) { report(match.index, match[0], bits); break; }
|
|
258
|
+
}
|
|
259
|
+
return [];
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function sceneActionFindings({ file, source, sends, spans, functions, bundled, declaredInputs }) {
|
|
263
|
+
const found = [], seen = new Set();
|
|
264
|
+
const replace = `Moving keys go through ${realtimeRoutes.movement.writing}. Every other key is an action: ${realtimeRoutes.action.writing}. If a key drives a vehicle: ${realtimeRoutes.vehicle.writing}. Send after ready().`;
|
|
265
|
+
const add = (certainty, at, text, reason) => {
|
|
266
|
+
const line = lineAt(source.code, at);
|
|
267
|
+
if (seen.has(line)) return;
|
|
268
|
+
seen.add(line);
|
|
269
|
+
found.push(finding('scene-action-input', certainty, { file, line, old: text, reason, replace, doc: realtimeRoutes.action.doc }));
|
|
270
|
+
};
|
|
271
|
+
for (const send of sends.filter(row => row.name === 'sceneAction')) {
|
|
272
|
+
const text = `sceneAction(${send.argument})`, around = spans.filter(span => send.at >= span.start && send.at <= span.end);
|
|
273
|
+
if (ENCODED_TARGET.test(send.argument)) add('proven', send.at, text, 'the target ID is built from an input number or key');
|
|
274
|
+
else if (around.some(span => span.kind === 'key' && derivedFromKey(source.code, span, send.argument))) add('proven', send.at, text, 'the target ID comes from the pressed key');
|
|
275
|
+
else if (declaredInputs >= 2 && !STATIC_TARGET.test(send.argument)) add('proven', send.at, text, `the work declares ${declaredInputs} numbered input-N scene targets and picks one at run time`);
|
|
276
|
+
else if (!bundled && around.some(span => span.kind === 'frame')) add('suspected', send.at, text, 'it runs from a frame loop or a short timer; sceneAction is for one interaction with one entity');
|
|
277
|
+
else if (!bundled && around.some(span => span.kind === 'key') && !STATIC_TARGET.test(send.argument)) add('suspected', send.at, text, 'it runs from a key handler with a target chosen at run time; a single "press E to open" is fine, a key channel is not');
|
|
278
|
+
}
|
|
279
|
+
if (!bundled) for (const owner of functions) {
|
|
280
|
+
const inside = sends.filter(row => row.name === 'sceneAction' && row.at >= owner.bodyStart && row.at <= owner.end);
|
|
281
|
+
if (!inside.length || !owner.name) continue;
|
|
282
|
+
const call = new RegExp(`(?<![\\w$.])${owner.name.replace(/\$/g, '\\$')}\\s*\\(`, 'g');
|
|
283
|
+
for (const span of spans.filter(row => row.kind === 'frame')) {
|
|
284
|
+
call.lastIndex = span.start;
|
|
285
|
+
const hit = call.exec(source.shape);
|
|
286
|
+
if (hit && hit.index <= span.end) add('suspected', hit.index, `${owner.name}(...)`, `${owner.name} calls sceneAction and runs from a frame loop or a short timer`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const moves = sends.filter(row => row.name === 'inputIntent');
|
|
290
|
+
if (moves.length && sends.some(row => row.name === 'sceneAction') && moves.every(row => /\bmove\s*:\s*\{\s*x\s*:\s*0\s*,\s*z\s*:\s*0\s*\}/.test(row.whole)))
|
|
291
|
+
add('suspected', moves[0].at, `inputIntent(${moves[0].whole})`, 'every inputIntent sends zero movement while sceneAction exists, so the platform cannot predict movement');
|
|
292
|
+
return found;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const UNBOUNDED_WAIT = /(?:while\s*\(\s*!|for\s*\(\s*;\s*!)\s*([^;{}]{1,80}?)\s*;?\s*\)\s*\{?\s*await\b/g;
|
|
296
|
+
|
|
297
|
+
function waitBeforeReadyFindings({ file, source, bundled }) {
|
|
298
|
+
const ready = [...source.code.matchAll(/\.ready\s*\(/g)].at(-1)?.index;
|
|
299
|
+
if (ready === undefined) return [];
|
|
300
|
+
return [...source.code.matchAll(UNBOUNDED_WAIT)].filter(match => (bundled || match.index < ready) && !/chronaDocument/.test(match[1])).slice(0, 1)
|
|
301
|
+
.map(match => finding('wait-before-ready', 'suspected', { file, line: lineAt(source.code, match.index), old: match[0].slice(0, 60),
|
|
302
|
+
reason: 'it loops with no limit before ready(), so if the condition never holds the player stays on the loading screen with no error',
|
|
303
|
+
replace: 'Draw a default and call ready() without waiting for room state, then swap when state arrives in onState', doc: `${PATTERNS_DOC}#ready-before-you-send` }));
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
const CAMERA_LAG = /([\w$]+)\.position\.lerp\(\s*([\w$]+)\s*,[^;]{0,80}?\)\s*[;,]\s*\1\.lookAt\(\s*([\w$]+)\s*\)/g;
|
|
307
|
+
|
|
308
|
+
function cameraLagFindings({ file, source }) {
|
|
309
|
+
const match = [...source.shape.matchAll(CAMERA_LAG)].filter(row => row[2] !== row[3]).at(-1);
|
|
310
|
+
return match ? [finding('camera-lag', 'suspected', { file, line: lineAt(source.code, match.index), old: match[0].slice(0, 80),
|
|
311
|
+
reason: 'the camera falls behind what it looks at, so the distance changes while the height does not and the view tilts up and down when the player walks',
|
|
312
|
+
replace: 'Work out one follow point, put the camera at a fixed offset from it and look at that same point', doc: `${PATTERNS_DOC}#follow-camera` })] : [];
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function heldActionFindings({ file, source }) {
|
|
316
|
+
if (!/\bcustomAction\b/.test(source.code)) return [];
|
|
317
|
+
const press = /\b(?:pointerdown|mousedown|onpointerdown|onmousedown)\b/.exec(source.code);
|
|
318
|
+
if (!press || !/\b(?:pointerup|mouseup)\b/.test(source.code) || /\b(?:pointercancel|lostpointercapture)\b/.test(source.code)) return [];
|
|
319
|
+
return [finding('held-action-end', 'suspected', { file, line: lineAt(source.code, press.index), old: press[0],
|
|
320
|
+
reason: 'it sends actions and handles press and release but not pointercancel or lostpointercapture, so a held state can stay on after the release is lost',
|
|
321
|
+
replace: realtimeRoutes.continuousAction.writing, doc: `${PATTERNS_DOC}#continuous-actions` })];
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
function inputOnKeyFindings({ file, source, sends, spans, functions, bundled }) {
|
|
325
|
+
if (bundled) return [];
|
|
326
|
+
const moves = sends.filter(row => row.name === 'inputIntent');
|
|
327
|
+
const calledIn = (owner, span) => {
|
|
328
|
+
const call = new RegExp(`(?<![\\w$.])${owner.name.replace(/\$/g, '\\$')}\\s*\\(`, 'g');
|
|
329
|
+
call.lastIndex = span.start;
|
|
330
|
+
const hit = call.exec(source.shape);
|
|
331
|
+
return !!hit && hit.index <= span.end;
|
|
332
|
+
};
|
|
333
|
+
const reaches = (send, kind) => spans.some(span => span.kind === kind && (send.at >= span.start && send.at <= span.end
|
|
334
|
+
|| functions.some(owner => owner.name && send.at >= owner.bodyStart && send.at <= owner.end && calledIn(owner, span))));
|
|
335
|
+
const pressed = moves.find(send => reaches(send, 'key'));
|
|
336
|
+
if (!pressed || moves.some(send => reaches(send, 'frame'))) return [];
|
|
337
|
+
return [finding('input-on-key', 'suspected', { file, line: lineAt(source.code, pressed.at), old: `inputIntent(${pressed.whole})`,
|
|
338
|
+
reason: 'it runs only from key handlers, and the player stops after 500 ms with no inputIntent, so a held key stops moving',
|
|
339
|
+
replace: realtimeRoutes.movement.writing, doc: realtimeRoutes.movement.doc })];
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
function actionLoopFindings({ file, source, sends, spans, functions, bundled }) {
|
|
343
|
+
if (bundled) return [];
|
|
344
|
+
const found = [], seen = new Set();
|
|
345
|
+
const add = (at, text) => {
|
|
346
|
+
const line = lineAt(source.code, at);
|
|
347
|
+
if (seen.has(line)) return;
|
|
348
|
+
seen.add(line);
|
|
349
|
+
found.push(finding('custom-action-loop', 'suspected', { file, line, old: text, reason: 'it runs from a frame loop or a short timer; fine if it only fires when the state changes', replace: realtimeRoutes.continuousAction.writing, doc: realtimeRoutes.continuousAction.doc }));
|
|
350
|
+
};
|
|
351
|
+
const loops = spans.filter(span => span.kind === 'frame'), actions = sends.filter(row => row.name === 'customAction');
|
|
352
|
+
for (const send of actions) if (loops.some(span => send.at >= span.start && send.at <= span.end)) add(send.at, `customAction(${send.argument})`);
|
|
353
|
+
for (const owner of functions.filter(row => row.name && actions.some(send => send.at >= row.bodyStart && send.at <= row.end))) {
|
|
354
|
+
const call = new RegExp(`(?<![\\w$.])(?<!function\\s+)${owner.name.replace(/\$/g, '\\$')}\\s*\\(`, 'g');
|
|
355
|
+
for (const match of source.shape.matchAll(call)) if (loops.some(span => match.index >= span.start && match.index <= span.end) && !(match.index >= owner.bodyStart && match.index <= owner.end)) add(match.index, `${owner.name}(...)`);
|
|
356
|
+
}
|
|
357
|
+
return found;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
function readyFindings({ file, source, sends, spans, functions, bundled }) {
|
|
361
|
+
if (bundled) return [];
|
|
362
|
+
if (GATED.test(source.code)) {
|
|
363
|
+
const direct = /(?<![\w$.])(?:(?:window|globalThis|self)\.)?chronaDocument\.ready\s*\(/.exec(source.shape);
|
|
364
|
+
return direct ? [finding('ready-gate', 'suspected', { file, line: lineAt(source.code, direct.index), old: direct[0], reason: 'it calls ready() past the gate, so the gate stays closed and players cannot act',
|
|
365
|
+
replace: 'Call ready() on the sdk from readyGateFor, or use renderedFrame() from the assets template.', doc: realtimeRoutes.ready.doc })] : [];
|
|
366
|
+
}
|
|
367
|
+
const found = [], seen = new Set(), { shape } = source;
|
|
368
|
+
const readyCalls = [...shape.matchAll(/(?:\.\s*ready|\bmarkBootComplete)\s*\(/g)].map(row => row.index);
|
|
369
|
+
const owner = at => functions.filter(row => at >= row.bodyStart && at <= row.end).sort((a, b) => (a.end - a.bodyStart) - (b.end - b.bodyStart))[0];
|
|
370
|
+
const add = (certainty, at, text, reason) => {
|
|
371
|
+
const line = lineAt(source.code, at);
|
|
372
|
+
if (seen.has(line)) return;
|
|
373
|
+
seen.add(line);
|
|
374
|
+
found.push(finding('ready-gate', certainty, { file, line, old: text, reason, replace: realtimeRoutes.ready.writing, doc: realtimeRoutes.ready.doc }));
|
|
375
|
+
};
|
|
376
|
+
for (const send of sends) {
|
|
377
|
+
const text = `${send.name}(${send.argument})`.slice(0, 120), body = owner(send.at);
|
|
378
|
+
const laterReady = readyCalls.find(at => at > send.at && owner(at) === body);
|
|
379
|
+
const earlierReady = readyCalls.some(at => at < send.at && owner(at) === body);
|
|
380
|
+
if (laterReady !== undefined && !earlierReady) { add('proven', send.at, text, 'it runs before ready() in the same function'); continue; }
|
|
381
|
+
const loop = spans.find(span => span.kind === 'frame' && send.at >= span.start && send.at <= span.end);
|
|
382
|
+
if (!loop || GUARD.test(source.code.slice(loop.start, send.at))) continue;
|
|
383
|
+
const starts = loop.name ? [...shape.matchAll(new RegExp(`(?<![\\w$.])(?<!function\\s+)${loop.name.replace(/\$/g, '\\$')}\\s*\\(`, 'g'))].map(row => row.index).filter(at => at < loop.start || at > loop.end) : [loop.startedAt];
|
|
384
|
+
if (starts.length && readyCalls.length && starts.every(at => readyCalls.some(ready => ready < at))) continue;
|
|
385
|
+
add('suspected', send.at, text, 'it runs from a loop that nothing keeps closed until ready()');
|
|
386
|
+
}
|
|
387
|
+
return found;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const templateAdapters = [['bindDocumentAuthority', 'templates/document-presentation/authority.js'], ['bindDocumentAssets', 'templates/document-presentation/assets.js']];
|
|
391
|
+
export const ungatedTemplate = code => /\bsdk\s*=\s*globalThis\.chronaDocument\b/.test(code) && !GATED.test(code)
|
|
392
|
+
&& templateAdapters.some(([name]) => new RegExp(`\\bexport\\s+function\\s+${name}\\b`).test(code));
|
|
393
|
+
|
|
394
|
+
function bundledScript(file, text) {
|
|
395
|
+
if (/(?:^|[./-])(?:bundle|min)\.[cm]?js$/i.test(file)) return true;
|
|
396
|
+
const lines = text.split('\n');
|
|
397
|
+
return text.length / lines.length > 300 || lines.some(line => line.length >= 5000);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
async function regularText(file, maximum = MAX_SCRIPT_BYTES) {
|
|
401
|
+
const stat = await lstat(file).catch(() => null);
|
|
402
|
+
if (!stat?.isFile() || stat.size > maximum) return undefined;
|
|
403
|
+
return readFile(file, 'utf8').catch(() => undefined);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const readJson = async file => {
|
|
407
|
+
const text = await regularText(file);
|
|
408
|
+
if (text === undefined) return {};
|
|
409
|
+
try { return { text, value: JSON.parse(text) }; } catch { return { text }; }
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
const SAFE_PATH = /^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*[A-Za-z0-9_-][A-Za-z0-9_.-]*$/;
|
|
413
|
+
|
|
414
|
+
async function gameplayScripts(content) {
|
|
415
|
+
const names = await readdir(path.join(content, 'gameplay'), { recursive: true }).catch(() => []);
|
|
416
|
+
const rows = await Promise.all(names.filter(name => name.endsWith('.js')).map(async name => {
|
|
417
|
+
const relative = `gameplay/${name.split(path.sep).join('/')}`;
|
|
418
|
+
return { relative, text: await regularText(path.join(content, relative)) };
|
|
419
|
+
}));
|
|
420
|
+
return rows.filter(row => typeof row.text === 'string');
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
function declaredStrings(components, personal) {
|
|
424
|
+
const rows = [];
|
|
425
|
+
for (const component of Array.isArray(components?.components) ? components.components : [])
|
|
426
|
+
for (const field of Array.isArray(component?.fields) ? component.fields : [])
|
|
427
|
+
if (field?.type === 'string' && component.scope === 'shared') rows.push({ owner: component.id, name: field.name, maxLength: Number.isSafeInteger(field.maxLength) ? field.maxLength : 0, file: 'content/ecs/components.json' });
|
|
428
|
+
for (const namespace of Array.isArray(personal?.namespaces) ? personal.namespaces : [])
|
|
429
|
+
for (const [name, field] of Object.entries(namespace?.fields ?? {}))
|
|
430
|
+
if (field?.type === 'string') rows.push({ owner: namespace.namespace, name, maxLength: Number.isSafeInteger(field.maxLength) ? field.maxLength : 0, file: 'content/rules/personal-state.json', personal: true });
|
|
431
|
+
return rows;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
function tickSpans(shape, functions) {
|
|
435
|
+
const ticks = functions.filter(row => row.name === 'onTick');
|
|
436
|
+
const called = functions.filter(row => row.name && ticks.some(tick => new RegExp(`(?<![\\w$.])${row.name.replace(/\$/g, '\\$')}\\s*\\(`).test(shape.slice(tick.bodyStart, tick.end))));
|
|
437
|
+
return [...new Set([...ticks, ...called])].map(row => ({ start: row.bodyStart, end: row.end }));
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
const declarationLine = (text, name) => { const at = text?.indexOf(`"${name}"`) ?? -1; return at < 0 ? undefined : lineAt(text, at); };
|
|
441
|
+
|
|
442
|
+
function largeStringFindings(strings, scripts, texts) {
|
|
443
|
+
const found = [], replace = `${realtimeRoutes.state.writing}: ${realtimeRoutes.dynamicEntity.writing}.`;
|
|
444
|
+
for (const field of strings.filter(row => row.maxLength >= LARGE_STRING)) {
|
|
445
|
+
const name = field.name.replace(/\$/g, '\\$');
|
|
446
|
+
const direct = new RegExp(`(?<![\\w$])${name}['"]?\\s*[:=](?!=)\\s*JSON\\.stringify\\s*\\(`, 'g');
|
|
447
|
+
let hit = null;
|
|
448
|
+
for (const script of scripts) {
|
|
449
|
+
for (const match of script.source.code.matchAll(direct)) {
|
|
450
|
+
const hot = script.spans.some(span => span.kind === 'frame' && match.index >= span.start && match.index <= span.end) || script.tick.some(span => match.index >= span.start && match.index <= span.end);
|
|
451
|
+
if (!hit || hot && !hit.hot) hit = { script, at: match.index, hot };
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
const old = `${field.owner}.${field.name} (string, maxLength ${field.maxLength})`;
|
|
455
|
+
if (hit) found.push(finding('large-state-string', hit.hot ? 'proven' : 'suspected', { file: hit.script.file, line: lineAt(hit.script.source.code, hit.at), old: `${old} = JSON.stringify(...)`,
|
|
456
|
+
reason: hit.hot ? 'it is rewritten as JSON text on every tick or frame, so one change resends the whole string' : 'JSON text goes into this field; if it changes often, one change resends the whole string', replace, doc: realtimeRoutes.state.doc }));
|
|
457
|
+
else found.push(finding('large-state-string', 'suspected', { file: field.file, line: declarationLine(texts[field.file], field.name), old, reason: 'large strings resend everything on each write; fine for rare text, costly when written often', replace, doc: realtimeRoutes.state.doc }));
|
|
458
|
+
}
|
|
459
|
+
return found;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function shardFindings(strings, scripts, texts) {
|
|
463
|
+
const groups = new Map(), found = [];
|
|
464
|
+
for (const field of strings) {
|
|
465
|
+
const match = /^(.*?[A-Za-z_])(\d+)$/.exec(field.name ?? '');
|
|
466
|
+
if (!match) continue;
|
|
467
|
+
const key = `${field.owner}|${match[1]}`;
|
|
468
|
+
groups.set(key, [...(groups.get(key) ?? []), { ...field, prefix: match[1], index: Number(match[2]) }]);
|
|
469
|
+
}
|
|
470
|
+
for (const rows of groups.values()) {
|
|
471
|
+
const fields = rows.filter(row => row.personal || row.maxLength >= SHARD_STRING);
|
|
472
|
+
if (fields.length < 2) continue;
|
|
473
|
+
const { prefix, owner, file } = fields[0], ordered = fields.map(row => row.index).sort((a, b) => a - b), escaped = prefix.replace(/\$/g, '\\$');
|
|
474
|
+
const first = `${escaped}${ordered[0]}`, second = `${escaped}${ordered[1]}`;
|
|
475
|
+
const evidence = [new RegExp(`\`${escaped}\\$\\{`), new RegExp(`['"]${escaped}['"]\\s*\\+`), new RegExp(`\\.${first}\\b[^;\\n]{0,200}\\.${second}\\b`), new RegExp(`${first}['"]?\\s*:[^;\\n]{0,200}\\.(?:slice|substring|substr)\\(`)];
|
|
476
|
+
const proof = scripts.map(script => ({ script, match: evidence.map(pattern => pattern.exec(script.source.code)).find(Boolean) })).find(row => row.match);
|
|
477
|
+
const old = `${owner}: ${fields.map(row => row.name).slice(0, 6).join(', ')}`;
|
|
478
|
+
const replace = `${realtimeRoutes.state.writing}: ${realtimeRoutes.dynamicEntity.writing}. Do not cut one value across fields.`;
|
|
479
|
+
if (proof) found.push(finding('state-sharding', 'proven', { file: proof.script.file, line: lineAt(proof.script.source.code, proof.match.index), old, reason: 'the code joins or cuts these numbered string fields as one value', replace, doc: realtimeRoutes.state.doc }));
|
|
480
|
+
else if (fields.length >= 3) found.push(finding('state-sharding', 'suspected', { file, line: declarationLine(texts[file], fields[0].name), old, reason: 'numbered string fields look like one value cut into parts; ignore this if each holds its own text', replace, doc: realtimeRoutes.state.doc }));
|
|
481
|
+
}
|
|
482
|
+
return found;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
const FIXED_SLOT_LOOP = /\bfor\s*\(\s*(?:let|var)\s+[A-Za-z_$][\w$]*\s*=\s*\d+\s*;\s*[A-Za-z_$][\w$]*\s*<=?\s*(\d+|[A-Z][A-Z0-9_]*)\s*;[^)]*\)\s*\{?[^}]{0,400}?\.spawn\s*\(/g;
|
|
486
|
+
const FIXED_SLOT_COUNT = 16;
|
|
487
|
+
|
|
488
|
+
function fixedSlotFindings(rules) {
|
|
489
|
+
const found = [];
|
|
490
|
+
for (const script of rules) for (const match of script.source.code.matchAll(FIXED_SLOT_LOOP)) {
|
|
491
|
+
const bound = /^\d+$/.test(match[1]) ? Number(match[1]) : Number(new RegExp(`\\b${match[1]}\\s*=\\s*(\\d+)`).exec(script.source.code)?.[1] ?? NaN);
|
|
492
|
+
if (!(bound >= FIXED_SLOT_COUNT)) continue;
|
|
493
|
+
found.push(finding('fixed-slots', 'suspected', { file: script.file, line: lineAt(script.source.code, match.index), old: `a loop creates ${bound} entities`,
|
|
494
|
+
reason: 'every slot is sent to every player whether it is used or not',
|
|
495
|
+
replace: `Create an entity when it is needed and despawn it when it finishes. ${realtimeRoutes.dynamicEntity.writing}`, doc: `${PATTERNS_DOC}#spawned-entities-without-motion` }));
|
|
496
|
+
}
|
|
497
|
+
return found;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
const CORE_OPERATIONS = 128;
|
|
501
|
+
const LOOP_METHOD = /\.\s*(?:forEach|map|filter|flatMap|some|every|find|findIndex|reduce)\s*\(/g;
|
|
502
|
+
|
|
503
|
+
function openingOf(shape, close) {
|
|
504
|
+
let depth = 0;
|
|
505
|
+
for (let at = close; at >= 0; at--) {
|
|
506
|
+
const char = shape[at];
|
|
507
|
+
if (char === ')' || char === ']' || char === '}') depth++;
|
|
508
|
+
else if (char === '(' || char === '[' || char === '{') { if (--depth === 0) return at; }
|
|
509
|
+
}
|
|
510
|
+
return -1;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
function topArguments(source, open, close) {
|
|
514
|
+
const args = [];
|
|
515
|
+
let depth = 0, start = open + 1;
|
|
516
|
+
for (let at = open + 1; at < close; at++) {
|
|
517
|
+
const char = source.shape[at];
|
|
518
|
+
if ('([{'.includes(char)) depth++;
|
|
519
|
+
else if (')]}'.includes(char)) depth--;
|
|
520
|
+
else if (char === ',' && depth === 0) { args.push(source.code.slice(start, at).trim()); start = at + 1; }
|
|
521
|
+
}
|
|
522
|
+
args.push(source.code.slice(start, close).trim());
|
|
523
|
+
return args;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export function corePerPlayerReads(source) {
|
|
527
|
+
const { code, shape } = source;
|
|
528
|
+
const coreNames = new Set([...code.matchAll(/\b(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(['"`])core:[A-Za-z]+\2/g)].map(match => match[1]));
|
|
529
|
+
const isCore = text => /^(['"`])core:[A-Za-z]+\1$/.test(text) || coreNames.has(text);
|
|
530
|
+
const queries = [];
|
|
531
|
+
for (const match of shape.matchAll(/\.\s*query\s*\(/g)) {
|
|
532
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
533
|
+
if (close === -1) continue;
|
|
534
|
+
const args = code.slice(open + 1, close);
|
|
535
|
+
if (!args.trim() || /['"`]core:/.test(args) || [...coreNames].some(name => new RegExp(`(?<![\\w$])${name.replace(/\$/g, '\\$')}(?![\\w$])`).test(args))) queries.push({ start: match.index, close });
|
|
536
|
+
}
|
|
537
|
+
const lists = new Set();
|
|
538
|
+
for (const match of shape.matchAll(/\b(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*/g)) {
|
|
539
|
+
const at = match.index + match[0].length, end = expressionEnd(shape, at);
|
|
540
|
+
if (queries.some(query => query.start >= at && query.start < end)) lists.add(match[1]);
|
|
541
|
+
}
|
|
542
|
+
const namesList = text => [...lists].some(name => new RegExp(`(?<![\\w$.])${name.replace(/\$/g, '\\$')}(?![\\w$])`).test(text));
|
|
543
|
+
const listedBetween = (from, to) => queries.some(query => query.start >= from && query.start < to) || namesList(shape.slice(from, to));
|
|
544
|
+
const receiverIsList = at => {
|
|
545
|
+
let end = at;
|
|
546
|
+
for (let guard = 0; guard < 16; guard++) {
|
|
547
|
+
const before = shape.slice(Math.max(0, end - 200), end);
|
|
548
|
+
const name = /([A-Za-z_$][\w$]*)\s*$/.exec(before);
|
|
549
|
+
if (name && !/\)\s*$/.test(before)) return lists.has(name[1]);
|
|
550
|
+
const close = before.search(/\)\s*$/);
|
|
551
|
+
if (close === -1) return false;
|
|
552
|
+
const closeAt = end - before.length + close, open = openingOf(shape, closeAt);
|
|
553
|
+
if (open === -1) return false;
|
|
554
|
+
if (queries.some(query => query.close === closeAt)) return true;
|
|
555
|
+
const method = /\.\s*[A-Za-z_$][\w$]*\s*$/.exec(shape.slice(Math.max(0, open - 80), open));
|
|
556
|
+
if (!method) return false;
|
|
557
|
+
end = open - method[0].length;
|
|
558
|
+
}
|
|
559
|
+
return false;
|
|
560
|
+
};
|
|
561
|
+
const loops = [];
|
|
562
|
+
for (const match of shape.matchAll(/\bfor\s*(?:await\s*)?\(/g)) {
|
|
563
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
564
|
+
if (close === -1 || !listedBetween(open, close)) continue;
|
|
565
|
+
const bodyAt = close + 1 + /^\s*/.exec(shape.slice(close + 1))[0].length;
|
|
566
|
+
const end = shape[bodyAt] === '{' ? closingOf(shape, bodyAt) : expressionEnd(shape, bodyAt);
|
|
567
|
+
if (end !== -1) loops.push({ start: match.index, from: bodyAt, end });
|
|
568
|
+
}
|
|
569
|
+
for (const match of shape.matchAll(LOOP_METHOD)) {
|
|
570
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
571
|
+
if (close !== -1 && receiverIsList(match.index)) loops.push({ start: match.index, from: open, end: close });
|
|
572
|
+
}
|
|
573
|
+
const reads = [];
|
|
574
|
+
for (const match of shape.matchAll(/\.\s*(?:read|readOwn)\s*\(/g)) {
|
|
575
|
+
const open = match.index + match[0].length - 1, close = closingOf(shape, open);
|
|
576
|
+
if (close === -1) continue;
|
|
577
|
+
const args = topArguments(source, open, close);
|
|
578
|
+
const receiver = /(?:[A-Za-z_$][\w$]*\s*\??\.\s*)*[A-Za-z_$][\w$]*\s*$/.exec(shape.slice(Math.max(0, match.index - 120), match.index))?.[0] ?? '';
|
|
579
|
+
if (args.length >= 2 && isCore(args[1])) reads.push({ at: match.index, text: code.slice(match.index - receiver.length, close + 1) });
|
|
580
|
+
}
|
|
581
|
+
const used = new Set(), found = [];
|
|
582
|
+
for (const loop of loops.sort((a, b) => a.start - b.start)) {
|
|
583
|
+
const inside = reads.filter(read => read.at > loop.from && read.at < loop.end && !used.has(read.at));
|
|
584
|
+
if (!inside.length) continue;
|
|
585
|
+
inside.forEach(read => used.add(read.at));
|
|
586
|
+
found.push({ at: loop.start, reads: inside.length, text: inside[0].text, players: Math.floor((CORE_OPERATIONS - 1) / inside.length) });
|
|
587
|
+
}
|
|
588
|
+
return found;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
function corePerPlayerFindings(rules) {
|
|
592
|
+
const found = [];
|
|
593
|
+
for (const script of rules) {
|
|
594
|
+
if (script.bundled) continue;
|
|
595
|
+
for (const row of corePerPlayerReads(script.source)) found.push(finding('core-read-per-player', 'suspected', { file: script.file, line: lineAt(script.source.code, row.at), old: `${row.text} in a loop over every player`,
|
|
596
|
+
reason: `each player costs ${row.reads} of the ${CORE_OPERATIONS} core reads and queries one lifecycle allows, shared by all rules, so with more than about ${row.players} players in the room the rule work of that lifecycle is discarded`,
|
|
597
|
+
replace: 'Read only the players this lifecycle needs, not every player: the player who sent the action (event.payload.actorEntityId), the players a narrower api.ecs.query filter returns, or in a live rule the nearby players from players.near', doc: `${PATTERNS_DOC}#reading-every-player` }));
|
|
598
|
+
}
|
|
599
|
+
return found;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
function budgetFinding(manifest, text) {
|
|
603
|
+
const value = manifest?.requestedBudgets?.maxStateBytesPerSecond;
|
|
604
|
+
if (!Number.isSafeInteger(value) || value >= STATE_BUDGET_TARGET) return [];
|
|
605
|
+
return [finding('state-budget', 'proven', { level: 'warn', file: 'content/manifest.json', line: declarationLine(text, 'maxStateBytesPerSecond'), old: `"maxStateBytesPerSecond": ${value}`,
|
|
606
|
+
reason: 'the room delays what does not fit, so low budgets look like lag', replace: `"maxStateBytesPerSecond": ${STATE_BUDGET_TARGET}`, doc: realtimeRoutes.state.doc,
|
|
607
|
+
mechanical: { kind: 'state-budget', from: value, to: STATE_BUDGET_TARGET } })];
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
function briefMovement({ text, value }) {
|
|
611
|
+
if (text === undefined) return 'client';
|
|
612
|
+
const decides = value?.movementDecidesWinner;
|
|
613
|
+
if (value === null || typeof value !== 'object' || ![undefined, true, false].includes(decides)) return null;
|
|
614
|
+
return decides ? 'authoritative' : 'client';
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
const MOVEMENT_NOTES = {
|
|
618
|
+
client: 'Declare "movementAuthority": "client". This moves the work to the new behaviour: each player\'s own movement is trusted, players stop blocking each other and are no longer pulled back, and walking now hits vehicles that declare a body. If position decides the winner, set movementDecidesWinner to true in content/brief.json first',
|
|
619
|
+
authoritative: 'Declare "movementAuthority": "authoritative": content/brief.json says movement decides the winner, so the room keeps judging movement. This also moves the work to the new behaviour: walking now hits vehicles that declare a body'
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
async function movementAuthorityFinding(manifest, content, rulesDirectory) {
|
|
623
|
+
if (Object.hasOwn(manifest, 'movementAuthority') || !await rulesAcceptMovementAuthority({ rulesDirectory })) return [];
|
|
624
|
+
const value = briefMovement(await readJson(path.join(content, 'brief.json')));
|
|
625
|
+
return [finding('movement-authority', 'proven', { level: 'warn', file: 'content/manifest.json', old: 'no "movementAuthority" field',
|
|
626
|
+
reason: 'without it this stays an old work: the room judges every step, so walking and driving lag behind the player, and walking passes through vehicles', replace: value ? `"movementAuthority": "${value}"` : 'Fix content/brief.json as docs/work-brief.md says, then rerun chrona migrate', doc: `${PATTERNS_DOC}#movement-authority`,
|
|
627
|
+
mechanical: { kind: 'movement-authority', value, note: MOVEMENT_NOTES[value] } })];
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
const deferrable = r => r?.kind === 'asset' && typeof r.mimeType === 'string' && (r.mimeType === 'model/gltf-binary' || r.mimeType === 'application/json' || /^(?:image|audio)\//.test(r.mimeType));
|
|
631
|
+
const mebibytes = bytes => (bytes / 1048576).toFixed(1).replace(/\.0$/, '');
|
|
632
|
+
|
|
633
|
+
function loadsThroughAsset(record, scriptTexts, staticTexts) {
|
|
634
|
+
if (record.mimeType !== 'model/gltf-binary') return false;
|
|
635
|
+
const base = path.posix.basename(record.path), escaped = base.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
636
|
+
if (staticTexts.some(text => text.includes(base))) return false;
|
|
637
|
+
const named = new RegExp(`\\b(?:loadGLB|loadAsset)\\s*\\([^)]{0,200}['"\`][^'"\`]*${escaped}['"\`]`);
|
|
638
|
+
return scriptTexts.some(text => /\bloadAsset\b/.test(text)) && scriptTexts.some(text => named.test(text));
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
function firstFrameFindings(document, scriptTexts, staticTexts) {
|
|
642
|
+
const resources = Array.isArray(document?.resources) ? document.resources : [];
|
|
643
|
+
const initial = resources.filter(r => r?.load !== 'deferred' && Number.isSafeInteger(r?.bytes));
|
|
644
|
+
const total = initial.reduce((sum, r) => sum + r.bytes, 0);
|
|
645
|
+
if (total <= FIRST_FRAME_HINT_BYTES) return [];
|
|
646
|
+
const large = initial.filter(r => deferrable(r) && r.bytes > FIRST_FILE_HINT_BYTES).sort((a, b) => b.bytes - a.bytes || a.path.localeCompare(b.path));
|
|
647
|
+
const safe = large.filter(r => loadsThroughAsset(r, scriptTexts, staticTexts)).map(r => r.path);
|
|
648
|
+
const rest = large.filter(r => !safe.includes(r.path));
|
|
649
|
+
return [finding('first-frame-load', 'proven', { level: 'warn', file: 'content/presentation/document.json', old: `${mebibytes(total)} MiB in the first frame, ${initial.length} files, ${resources.length - initial.length} deferred`,
|
|
650
|
+
reason: `first-frame resources exceed ${mebibytes(FIRST_FRAME_HINT_BYTES)} MiB`, replace: `${realtimeRoutes.resources.writing}. Largest first: ${rest.slice(0, 8).map(r => `${r.path} (${mebibytes(r.bytes)} MiB)`).join(', ') || 'shrink the listed first-frame models with chrona compress-model'}.`, doc: realtimeRoutes.resources.doc,
|
|
651
|
+
...(safe.length ? { mechanical: { kind: 'defer-resources', paths: safe } } : {}), remaining: rest.length })];
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export async function scanLegacyPatterns(projectRoot, { rulesDirectory } = {}) {
|
|
655
|
+
const content = path.join(projectRoot, 'content');
|
|
656
|
+
const manifestRead = await readJson(path.join(content, 'manifest.json'));
|
|
657
|
+
if (!manifestRead.value) return [];
|
|
658
|
+
const manifest = manifestRead.value;
|
|
659
|
+
const relative = name => typeof name === 'string' && SAFE_PATH.test(name) ? name : null;
|
|
660
|
+
const documentPath = relative(manifest.documentPresentation);
|
|
661
|
+
const documentRead = documentPath ? await readJson(path.join(content, documentPath)) : {};
|
|
662
|
+
const document = documentRead.value;
|
|
663
|
+
const resources = Array.isArray(document?.resources) ? document.resources.filter(r => SAFE_PATH.test(r?.path ?? '')) : [];
|
|
664
|
+
const interactions = relative(manifest.sceneInteractions) ? (await readJson(path.join(content, manifest.sceneInteractions))).value : undefined;
|
|
665
|
+
const declaredInputs = (Array.isArray(interactions?.targets) ? interactions.targets : []).filter(target => /^input[-_:.]?\d+$/i.test(target?.entityId ?? '')).length;
|
|
666
|
+
const pagePaths = resources.filter(r => r.kind === 'javascript' || r.path === document?.entrypoint).map(r => r.path);
|
|
667
|
+
const pages = (await Promise.all(pagePaths.map(async name => ({ relative: name, text: await regularText(path.join(content, name)) })))).filter(row => typeof row.text === 'string');
|
|
668
|
+
const analyse = ({ relative: name, text }) => {
|
|
669
|
+
const source = readSource(text), bundled = bundledScript(name, text), functions = bundled ? [] : findFunctions(source.shape), file = `content/${name}`;
|
|
670
|
+
return { file, text, source, functions, sends: findSends(source), spans: handlerSpans(source, functions), bundled, tick: tickSpans(source.shape, functions) };
|
|
671
|
+
};
|
|
672
|
+
const scripts = pages.map(analyse), rules = (await gameplayScripts(content)).map(analyse);
|
|
673
|
+
const componentsPath = relative(manifest.ecs?.components), personalPath = relative(manifest.personalState?.path);
|
|
674
|
+
const components = componentsPath ? await readJson(path.join(content, componentsPath)) : {}, personal = personalPath ? await readJson(path.join(content, personalPath)) : {};
|
|
675
|
+
const strings = declaredStrings(components.value, personal.value), texts = { 'content/ecs/components.json': components.text, 'content/rules/personal-state.json': personal.text };
|
|
676
|
+
const staticTexts = (await Promise.all(resources.filter(r => r.kind === 'stylesheet' || r.path === document?.entrypoint).map(r => regularText(path.join(content, r.path))))).filter(text => typeof text === 'string');
|
|
677
|
+
const found = [];
|
|
678
|
+
for (const script of scripts) {
|
|
679
|
+
const context = { ...script, declaredInputs };
|
|
680
|
+
found.push(...sceneActionFindings(context), ...buttonsFindings({ ...context, source: script.source }), ...actionLoopFindings(context), ...inputOnKeyFindings(context), ...heldActionFindings(context), ...cameraLagFindings(context), ...waitBeforeReadyFindings(context), ...readyFindings(context));
|
|
681
|
+
if (!script.bundled && ungatedTemplate(script.source.code)) found.push(finding('ready-gate', 'suspected', { file: script.file, old: 'sdk = globalThis.chronaDocument', reason: 'this copy of the Kit adapter has no ready gate',
|
|
682
|
+
replace: realtimeRoutes.ready.writing, doc: realtimeRoutes.ready.doc, mechanical: { kind: 'ready-gate-template', file: script.file } }));
|
|
683
|
+
if (script.bundled && script.sends.length) found.push(finding('unreadable-bundle', 'unknown', { level: 'warn', file: script.file, old: 'bundled script', reason: 'names and call order are gone in bundled code, so only literal target IDs and button values were judged; key handlers, frame loops and ready order were not',
|
|
684
|
+
replace: 'Judge those in the source this bundle comes from, against the same page of rules.', doc: PATTERNS_DOC }));
|
|
685
|
+
}
|
|
686
|
+
found.push(...fixedSlotFindings(rules), ...corePerPlayerFindings(rules), ...largeStringFindings(strings, [...rules, ...scripts], texts), ...shardFindings(strings, [...rules, ...scripts], texts), ...budgetFinding(manifest, manifestRead.text), ...await movementAuthorityFinding(manifest, content, rulesDirectory),
|
|
687
|
+
...(document ? firstFrameFindings(document, scripts.map(row => row.source.code), staticTexts) : []));
|
|
688
|
+
const counts = new Map();
|
|
689
|
+
return found.filter(row => { const count = (counts.get(row.pattern) ?? 0) + 1; counts.set(row.pattern, count); return count <= MAX_FINDINGS_PER_PATTERN; });
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export const legacyIssue = row => ({ level: row.level, code: row.code, file: row.file, ...(row.line ? { line: row.line } : {}),
|
|
693
|
+
cause: `${patterns[row.pattern].title}: ${row.old}${row.reason ? ` (${row.reason})` : ''}.`, fix: row.replace, nextCommand: MIGRATE_COMMAND, doc: row.doc });
|
|
694
|
+
|
|
695
|
+
export function legacyPatternSummary(findings) {
|
|
696
|
+
const actionable = findings.filter(row => row.certainty !== 'unknown');
|
|
697
|
+
if (!actionable.length) return undefined;
|
|
698
|
+
const brief = actionable.slice(0, 8).map(({ pattern, code, certainty, file, line }) => ({ pattern, code, certainty, file, ...(line ? { line } : {}) }));
|
|
699
|
+
return { count: actionable.length, proven: actionable.filter(row => row.certainty === 'proven').length, items: brief, omitted: actionable.length - brief.length,
|
|
700
|
+
command: MIGRATE_COMMAND, mcp: { tool: 'migrate' }, doc: PATTERNS_DOC };
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export async function readLegacyPatternSummary(projectRoot) {
|
|
704
|
+
try { return legacyPatternSummary(await scanLegacyPatterns(projectRoot)); } catch { return undefined; }
|
|
705
|
+
}
|