@chrona-city/ugc-kit 1.5.12 → 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 +89 -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 +83 -22
- package/docs/live-rule-slots.md +57 -0
- package/docs/mcp-tools.md +39 -0
- package/docs/meshy.md +17 -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 +22 -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 +367 -144
- 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 +940 -119
- 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 +379 -66
- 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 +337 -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 +128 -25
- package/lib/creator-source-package.mjs +2 -2
- package/lib/creator-submit.mjs +252 -101
- package/lib/creator-toolchain-compat.mjs +476 -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-cli.mjs +23 -0
- package/lib/meshy-store.mjs +34 -11
- 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/node_modules/pngjs/CHANGELOG.md +128 -0
- package/package.json +251 -23
- 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/@esbuild/darwin-arm64/README.md +0 -3
- package/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-arm64/package.json +0 -20
- package/node_modules/@esbuild/darwin-x64/README.md +0 -3
- package/node_modules/@esbuild/darwin-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-x64/package.json +0 -20
- package/node_modules/@esbuild/linux-arm64/README.md +0 -3
- package/node_modules/@esbuild/linux-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-arm64/package.json +0 -20
- package/node_modules/@esbuild/linux-x64/README.md +0 -3
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +0 -20
- 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/esbuild/LICENSE.md +0 -21
- package/node_modules/esbuild/README.md +0 -3
- package/node_modules/esbuild/bin/esbuild +0 -223
- package/node_modules/esbuild/install.js +0 -289
- package/node_modules/esbuild/lib/main.d.ts +0 -716
- package/node_modules/esbuild/lib/main.js +0 -2242
- package/node_modules/esbuild/package.json +0 -49
- 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
package/lib/creator-cli.mjs
CHANGED
|
@@ -1,30 +1,61 @@
|
|
|
1
|
+
import { generateProjectDeclarations } from './declaration-generator.mjs';
|
|
2
|
+
import { isCreatorPackageName } from './creator-package-identity.mjs';
|
|
3
|
+
import { compareReleaseVersions, parseReleaseVersion } from './release-version.mjs';
|
|
1
4
|
import path from 'node:path';
|
|
2
5
|
import { readFile } from 'node:fs/promises';
|
|
3
|
-
import { createMinimalProject, importLocalPresentationProject, bindPreparedDocumentProject, failure, installedToolchain, kitRoot, readCreatorProject, validateCreatorProject } from './creator-project.mjs';
|
|
6
|
+
import { fuzzCreatorProjectRules, createMinimalProject, writeAuthorTools, importLocalPresentationProject, bindPreparedDocumentProject, failure, installedToolchain, kitRoot, readCreatorProject, testCreatorProjectRules, validateCreatorProject } from './creator-project.mjs';
|
|
7
|
+
import { kitRuleSet } from './creator-rules.mjs';
|
|
4
8
|
import { assessCreatorTargetSupport } from './project-validation.mjs';
|
|
5
|
-
import {
|
|
9
|
+
import { kitRules, loadVerifiedRuleSet, reportRuleDownloadProgress, resolveKitRules } from './rule-selection.mjs';
|
|
6
10
|
import { initializeHarness } from './creator-init.mjs';
|
|
7
|
-
import { initializeInstalledCreator, creatorInstallContract, safeInstallTimings, safeInstallDiagnostic } from './creator-install.mjs';
|
|
11
|
+
import { initializeInstalledCreator, creatorInstallContract, inspectCreatorDoctor, platformReinstallCommand, readCreatorReleaseDefaults, safeInstallTimings, safeInstallDiagnostic } from './creator-install.mjs';
|
|
12
|
+
import { shellQuote } from './creator-entry.mjs';
|
|
13
|
+
import { creatorOrigin, creatorRequestOptions } from './creator-api.mjs';
|
|
14
|
+
import { kitUpdateNotice, worldEntryStatsResult } from './creator-platform.mjs';
|
|
8
15
|
import { beginCreatorSession, completeCreatorSession, cancelCreatorSession, inspectCreatorSession, useCreatorSession, requestCreatorPreview, creatorUploadScopes } from './creator-session.mjs';
|
|
9
16
|
import { submitCreatorSource, creatorJobSummary, creatorProjectSummary, discoverCreatorProject } from './creator-submit.mjs';
|
|
10
17
|
import { submitCreatorContribution, readCreatorContribution } from './creator-contribution.mjs';
|
|
11
18
|
import { downloadCreatorSource } from './creator-source-download.mjs';
|
|
12
19
|
import { downloadCreatorProjectSnapshot } from './creator-project-snapshot.mjs';
|
|
13
|
-
import { updateCreatorProjectSource } from './creator-project-update.mjs';
|
|
14
|
-
import {
|
|
20
|
+
import { diffCreatorProjectSource, updateCreatorProjectSource } from './creator-project-update.mjs';
|
|
21
|
+
import { rebundleCreatorProject } from './creator-rebundle.mjs';
|
|
22
|
+
import { restoreCreatorAssets } from './creator-assets-restore.mjs';
|
|
23
|
+
import { preparePreview, openPreview, localNotices } from './creator-preview.mjs';
|
|
24
|
+
import { runLocalSnapshot, readPublicRuntimeCatalog, readInstalledPlatform, selectPublicRuntime, validatePublicRuntimeCatalog, describeRuntimeSupport } from './local-development.mjs';
|
|
15
25
|
import { buildCreatorLocalSnapshot } from './local-builder.mjs';
|
|
16
26
|
import { listLocalCreatorProjects } from './creator-discovery.mjs';
|
|
17
27
|
import { listCreatorMaterials } from './creator-materials.mjs';
|
|
18
28
|
import { upgradeCreatorProject, recoverCreatorUpgrade } from './creator-upgrade.mjs';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
29
|
+
import { migrateCreatorProject } from './creator-migrate.mjs';
|
|
30
|
+
import { readLegacyPatternSummary } from './legacy-patterns.mjs';
|
|
31
|
+
import { creatorReleaseResult, republishActions } from './creator-platform.mjs';
|
|
32
|
+
import { runMeshyCli, meshyMessages, meshyFailureDetails } from './meshy-cli.mjs';
|
|
33
|
+
import { runSceneCli, sceneHelp, sceneImportMessages, sceneImportFailureDetails } from './scene-import.mjs';
|
|
34
|
+
import { compressModel, compressModelFailureDetails, compressModelHelp, compressModelMessages, parseCompressModelOptions } from './compress-model.mjs';
|
|
35
|
+
import { writeLiveBaseline } from './live-baseline.mjs';
|
|
36
|
+
import { runtimeSourceOptions, runtimeCatalogAddresses } from './runtime-source.mjs';
|
|
22
37
|
import { preparePresentationResources } from './presentation-resources.mjs';
|
|
23
38
|
import { prepareCreatorSourceGit } from './creator-source-git.mjs';
|
|
24
|
-
import { updatePreparedPresentationProject } from './presentation-project-update.mjs';
|
|
39
|
+
import { updatePreparedPresentationProject, createDocumentProject, importPresentationIntoProject } from './presentation-project-update.mjs';
|
|
25
40
|
import { runtimeHostRejectionCodes, runtimeHostFailureDetails } from './runtime-host-client.mjs';
|
|
41
|
+
import { relayRejectNotice } from './relay-notice.mjs';
|
|
42
|
+
import { DOCUMENT_DEFERRED_FEATURE } from '../contracts/ugc/document-presentation/v1/document.mjs';
|
|
43
|
+
import { explainRule, issueFromError, issuesFromValidation, kitMessage } from './creator-issue.mjs';
|
|
44
|
+
import { namedFailureMessages } from './failure-messages.mjs';
|
|
45
|
+
import { BUILTIN_WRITE_CODE } from './builtin-write.mjs';
|
|
46
|
+
import { capabilityMapResult } from './creator-capability-map.mjs';
|
|
26
47
|
|
|
27
48
|
const messages = {
|
|
49
|
+
...namedFailureMessages,
|
|
50
|
+
...compressModelMessages,
|
|
51
|
+
CREATOR_AGENT_AUTH_UNAVAILABLE: 'The approved personal model sign-in supplier is unavailable. Keep the original profile and request; project upload authorization does not grant model configuration authority. Do not substitute an API key or platform account.',
|
|
52
|
+
CREATOR_AGENT_AUTH_PROTOCOL_INVALID: 'The official sign-in response did not match its supported protocol. Preserve the original operation and inspect its safe status; do not paste raw output, tokens or device codes into chat.',
|
|
53
|
+
CREATOR_AGENT_AUTH_FAILED: 'The original official model sign-in reported failure. Inspect that operation before choosing another explicit action; no model verification or activation is implied.',
|
|
54
|
+
CREATOR_AGENT_AUTH_OUTCOME_UNKNOWN: 'Read the original model sign-in operation by its existing request identity. Do not start a replacement login, resend a code or infer that credentials were saved or writers stopped.',
|
|
55
|
+
CREATOR_AGENT_AUTH_CANCELLED: 'The original model sign-in reports cancellation. Read its own cleanup status; this does not revoke existing credentials or verify, activate or call a model.',
|
|
56
|
+
CREATOR_AGENT_AUTH_EXIT_UNKNOWN: 'Read the original model sign-in request and its owned-writer status. Do not repeat sign-in or launch a replacement while exit or cleanup remains unknown.',
|
|
57
|
+
LIVE_RULE_REJECTED: 'A rule slot in the live baseline breaks the slot contract (see change, reason, line and limit). Nothing was written. Fix the slot code or its declaration within the platform limits, then write the baseline again.',
|
|
58
|
+
LIVE_BASELINE_INVALID: 'The live baseline, or the content/manifest.json resource that declares it, is not usable (see reason and field). Nothing was written. Fix the named entry, then run chrona live-baseline --project DIR --input FILE --apply true again.',
|
|
28
59
|
CREATOR_PREVIEW_REQUEST_UNCERTAIN: 'Preserve the original private request intent, key and lifetime. Do not POST again or switch keys; latest-job preview-status cannot prove a by-key outcome.',
|
|
29
60
|
INVALID_CREATOR_PREVIEW_INTENT: 'The private preview request history is invalid or changed. Preserve it; no request was sent.',
|
|
30
61
|
CREATOR_PREVIEW_HISTORY_FULL: 'The bounded private preview history is full. Preserve this session and its request records; no request was sent.',
|
|
@@ -53,25 +84,44 @@ const messages = {
|
|
|
53
84
|
PRESENTATION_SOURCE_CHANGED: 'Source bytes do not match the declared inventory or changed during import. Preserve the original source and verify its fixed export.',
|
|
54
85
|
PRESENTATION_SOURCE_BUDGET_EXCEEDED: 'The source closure exceeds 5000 files or 64 MiB. Review the source inventory; platform budgets were not increased.',
|
|
55
86
|
PRESENTATION_ENTRY_MISSING: 'The selected package-relative HTML entry is absent. Select its real file; no substitute starter was created.',
|
|
87
|
+
PRESENTATION_MANIFEST_REQUIRED: 'This prepared page has no work around it, so there is nothing to bind. Use the Document route in docs/ai-index.md: run chrona create NAME --content-id ID --document-source ABSOLUTE_PAGE_DIR, or chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR for an existing work. Nothing was changed.',
|
|
88
|
+
PRESENTATION_SOURCE_NOT_FOUND: 'No page code was found to rebuild: there is no remembered page directory and no content/presentation/index.html. Run chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR once; later rebundle and preview use that directory.',
|
|
89
|
+
ASSET_MANIFEST_INVALID: 'chrona.assets.json must list files under content/ with path, sha256 (sha256:<hex>) and bytes. Restore it from Git; nothing was written.',
|
|
90
|
+
ASSET_SOURCE_UNAVAILABLE: 'The platform did not say where its published files are (chrona-config.json sandboxOrigin). Check the network and run the same command again, or pass --from with a local copy of the files.',
|
|
56
91
|
PRESENTATION_BUNDLE_REJECTED: 'Bundle one ES module entry using only the fixed package files and local import map. External code, package dependencies or unknown module imports were not executed.',
|
|
57
92
|
PRESENTATION_DOCUMENT_BUDGET_EXCEEDED: 'The derived document exceeds the 64 MiB fixed-file boundary. Source files were preserved; do not increase host limits locally.',
|
|
58
93
|
PRESENTATION_DOCUMENT_BUNDLE_REQUIRED: 'Prepare the actual local bundle and shared Document source declaration. This is not a Creator project, upload approval or observed target execution.',
|
|
59
|
-
DOCUMENT_RESOURCE_MIME_UNSUPPORTED: 'This
|
|
94
|
+
DOCUMENT_RESOURCE_MIME_UNSUPPORTED: 'This resource type or extension is not accepted here. A .wasm file or a Worker script needs document profile 1.1.0: keep it in the page source as *.wasm or *.worker.js and run chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR, which declares it and sets the profile, then call chronaDocument.loadWasm(path) or createWorker(path). See docs/reference.md. For any other file, preserve the original and use the supported asset conversion; do not change its hash to bypass the Reader.',
|
|
95
|
+
DOCUMENT_PROFILE_UNSUPPORTED: 'The profile in content/presentation/document.json does not match its resources: a .wasm file or a kind "worker" script needs version 1.3.0 (or 1.1.0 on the older profile that loads files as blobs), and a work without them needs 1.2.0 (or 1.0.0). Run chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR to set it, or edit profile.version, then run chrona check --project DIR.',
|
|
60
96
|
DOCUMENT_IDENTITY_MISMATCH: 'Choose the real author content identity and stable content version. Source declarations cannot supply a final content hash or publication identity.',
|
|
61
97
|
DOCUMENT_RESOURCE_PATH_INVALID: 'Use a bounded package-relative resource path from the fixed source inventory. Do not use URLs, links or escaping paths.',
|
|
62
98
|
DOCUMENT_BUDGET_EXCEEDED: 'The Document source exceeds the shared technical boundary. Preserve requested resources and inspect the effective target budget; no silent reduction was applied.',
|
|
63
99
|
INVALID_SUPPORT_REQUEST: 'Select a pinned local Creator project for support assessment. Target execution remains unknown until actually observed.',
|
|
64
100
|
CREATOR_SOURCE_TOOLCHAIN_UNKNOWN: 'The source toolchain hash is not a registered trusted identity. Preserve the source pin; do not replace its hash or guess a version.',
|
|
65
|
-
CREATOR_SOURCE_VERSION_UNSUPPORTED: 'This
|
|
101
|
+
CREATOR_SOURCE_VERSION_UNSUPPORTED: 'This work was made with a Kit this one cannot take over: a prerelease not registered for project compatibility, or a rule set the platform no longer accepts (reason ruleset-retired, with ruleSet and the accepted list). Open the work with this Kit and run chrona upgrade --project DIR, then publish again; the owner does not need to republish for diagnosis.',
|
|
66
102
|
CREATOR_SOURCE_VERSION_TOO_OLD: 'This source is below the minimum supported stable Kit 1.3.0. A reviewed migration is required; existing files and main were preserved.',
|
|
67
103
|
CREATOR_SOURCE_VERSION_TOO_NEW: 'This source requires a newer supported Kit. Upgrade your own tool; do not downgrade the project or rewrite its source identity.',
|
|
68
104
|
CREATOR_SOURCE_CONTRACT_UNSUPPORTED: 'The trusted source uses unsupported SDK declarations. Preserve the source and request the supported migration; content still requires current validation.',
|
|
69
105
|
CREATOR_PREFLIGHT_EXPIRED: 'Platform preflight has expired. Read it again; do not replace the installed policy or tool pins.',
|
|
70
|
-
|
|
106
|
+
SCHEMA_VERSION_INCOMPATIBLE: 'A rule file carried by this Kit differs from its lock. Reinstall the published Kit; do not edit platform contracts or locks. Nothing was changed.',
|
|
107
|
+
RULES_PACK_REQUIRED: 'This Kit needs its rule set and has no verified copy here. Connect to the network and run the command again (for example chrona validate --project DIR) to download and cache it; nothing was changed.',
|
|
108
|
+
RULES_PACK_NOT_PUBLISHED: 'The platform in platformOrigin does not publish the rule set this Kit needs (ruleSet). Install the Kit that platform recommends (chrona doctor shows it); if this Kit is meant for another platform, run chrona init --platform ORIGIN there first. Nothing was changed.',
|
|
109
|
+
RULES_PACK_CATALOG_UNAVAILABLE: 'The platform rule-pack catalog could not be read. Check the network and try again; nothing was changed.',
|
|
110
|
+
INVALID_RULE_PACK_CATALOG: 'The platform rule-pack catalog is not valid. Nothing was installed; report this with the platform address.',
|
|
111
|
+
RULES_PACK_INVALID: 'A downloaded rule pack did not match its catalog or lock coverage and was not installed. Try again later; do not copy rule files by hand.',
|
|
112
|
+
RULES_PACK_MISMATCH: 'A downloaded rule pack does not reproduce this Kit rule set and was not used. Try again later; do not copy rule files by hand.',
|
|
113
|
+
RULES_DIRECTORY_UNVERIFIED: 'Rule code may only be loaded from a rule directory this Kit has just verified. Nothing was executed.',
|
|
114
|
+
CREATOR_PLATFORM_CAPACITY_EXCEEDED: 'The work asks for more players per room (requestedMaxPlayers) than this platform allows (roomMaxPlayers). Lower requestedMaxPlayers in the ground rules or world scene to roomMaxPlayers or fewer, then submit again; nothing was uploaded.',
|
|
115
|
+
CREATOR_PLATFORM_RULES_UNSUPPORTED: 'The platform no longer accepts this Kit (see reason). Preserve the work, install kitRecommended, then plan and apply the project upgrade (nextActions); no upload was made.',
|
|
116
|
+
CREATOR_PLATFORM_TOOLCHAIN_MISMATCH: 'The project toolchain differs from the Kit the platform runs (platformKitPackage@platformKitVersion). Preserve the work, install that Kit, then plan and apply the project upgrade (nextActions); replacing hashes is not a fix and no upload was made.',
|
|
71
117
|
CREATOR_PLATFORM_CAPABILITY_UNSUPPORTED: 'The platform does not have the resolved capability version. Preserve required capabilities and report needs_capability; no upload was made.',
|
|
72
118
|
RELEASE_REQUEST_READ_ONLY: 'This is an independent-review history record, not an automatic execution. It cannot be retried or cancelled through the automatic workflow.',
|
|
73
119
|
RELEASE_ACTION_NOT_ALLOWED: 'The current release does not allow this action for the current actor. No mutation was sent.',
|
|
74
|
-
|
|
120
|
+
CREATOR_SOURCE_TOOLCHAIN_UNSUPPORTED: 'The platform no longer accepts the Kit this submitted source records, so nothing was queued or published. Install the Kit the platform recommends (chrona doctor shows it), run chrona upgrade --project DIR, commit, submit again and publish the new job.',
|
|
121
|
+
RELEASE_SETTLING: 'This release has already failed and is still cleaning up, so it cannot be cancelled; nothing was changed. Read release-status until it ends, then publish again.',
|
|
122
|
+
RELEASE_RETRY_V2_REQUIRES_REPUBLISH: 'This failed release cannot be retried. Edit the work, then submit and publish again as a new version; nothing was changed.',
|
|
123
|
+
PRESENTATION_IMPORT_RECORD_MISSING: 'This work was not imported with import-presentation: chrona.import.json is missing (reason names which side), so update-presentation-project cannot update it. Run chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR instead: it replaces the page in any work. Nothing was changed.',
|
|
124
|
+
TESTING_RELEASE_NOT_AUTHORIZED: 'The current project owner lacks a valid Testing publishing invitation, so nothing was queued or published. Ask the platform team to enable Testing publishing for this account. Uploading content does not grant publishing authority.',
|
|
75
125
|
RELEASE_STORE_UNAVAILABLE: 'Release storage is unavailable. This is not evidence that the release failed; read its status later before retrying an action.',
|
|
76
126
|
CREATOR_PREFLIGHT_UNAVAILABLE: 'The installed platform preflight is unavailable. No compatible platform identity can be assumed.',
|
|
77
127
|
CREATOR_PROJECT_SELECTION_REQUIRED: 'Select the existing platform project once. No remote project was created or source uploaded.',
|
|
@@ -81,7 +131,7 @@ const messages = {
|
|
|
81
131
|
CREATOR_DISCOVERY_LIMIT: 'Project discovery exceeded its bounded read limit. No complete list or zero-match conclusion is available; do not create another project.',
|
|
82
132
|
CREATOR_PROJECT_CREATION_UNKNOWN: 'Project creation has an unknown outcome. Do not repeat creation or infer absence from discovery: a new empty project has no content association. Check the project page before choosing an existing project.',
|
|
83
133
|
CREATOR_SOURCE_HEAD_REQUIRED: 'No verified platform source head is available. Read the current platform source or the previous submission receipt; never assume an existing project is empty.',
|
|
84
|
-
CREATOR_PROJECT_BINDING_MISMATCH: 'This work is associated with another platform or project.
|
|
134
|
+
CREATOR_PROJECT_BINDING_MISMATCH: 'This work is associated with another platform or project, so nothing was uploaded. Do not edit or delete its record. When the local record (build/creator-upload.json) is the cause, boundOrigin and boundProjectId name the recorded project and nextActions shows how to keep it or send a copy of the work elsewhere.',
|
|
85
135
|
CREATOR_SUBMISSION_PENDING: 'A submission reply is unresolved. Retry the same committed source and saved parameters before submitting a different version; do not delete the record or overwrite the server head.',
|
|
86
136
|
CREATOR_CONTRIBUTION_PENDING: 'A candidate result is unresolved. Read its saved key before submitting edited source; do not overwrite the owner submission or main branch.',
|
|
87
137
|
CREATOR_CONTRIBUTION_KEY_REQUIRED: 'Read a locally saved candidate intent or provide its original idempotency key. Do not invent a replacement key.',
|
|
@@ -91,37 +141,52 @@ const messages = {
|
|
|
91
141
|
CREATOR_CONTRIBUTION_KEY_CONFLICT: 'This key belongs to another committed candidate source. Keep its original intent and choose a new key only for a genuinely new candidate.',
|
|
92
142
|
CREATOR_CONTRIBUTION_ALREADY_SUBMITTED: 'This committed source is already a candidate under its saved key. Read that candidate instead of creating a duplicate.',
|
|
93
143
|
CREATOR_CONTRIBUTION_RESULT_UNKNOWN: 'The saved completed candidate is not visible by its original key. Preserve the record and resolve visibility; do not create a replacement.',
|
|
144
|
+
RUNTIME_DOWNLOAD_TIMEOUT: 'The runtime download received no data for two minutes. What was already downloaded is kept; run again with the same --state-directory to resume.',
|
|
145
|
+
RUNTIME_PROXY_REJECTED: 'The proxy named in HTTPS_PROXY refused to connect to the runtime host. Check the proxy, or unset HTTPS_PROXY to download directly; nothing was installed.',
|
|
94
146
|
CONTRIBUTION_BASE_CHANGED: 'The pinned main source head changed. Read the current source and prepare a new explicit candidate based on that head; no candidate was sent.',
|
|
147
|
+
CONTRIBUTION_EMPTY: 'Nothing under content/ differs from the main version this contribution is based on, so there is nothing to submit. Only files under content/ are submitted; files in the project root (such as notes or README files) stay local. Change files under content/, commit, then contribute again; nothing was sent.',
|
|
95
148
|
SOURCE_SNAPSHOT_EXPIRED: 'The server-pinned project snapshot expired. Do not mix old chunks with a new ticket; request a new snapshot after checking current membership.',
|
|
96
149
|
SOURCE_SNAPSHOT_NOT_FOUND: 'The server no longer has this project snapshot. No local project was created.',
|
|
97
150
|
SOURCE_SNAPSHOT_CAPACITY: 'The server refused a new project snapshot at its bounded capacity. No local project was created.',
|
|
98
151
|
SOURCE_SNAPSHOT_ARCHIVE_MISMATCH: 'The project source archive does not match its pinned files or digest. No local project was created.',
|
|
152
|
+
SOURCE_SNAPSHOT_FILE_MISMATCH: 'A downloaded project source file does not match its pinned size or digest. No local project was created.',
|
|
153
|
+
SOURCE_COMMIT_NOT_FOUND: 'The project has no readable source commit at the pinned main. No local project was created; read the project source state again before retrying.',
|
|
154
|
+
SOURCE_OBJECT_NOT_FOUND: 'A source file of the pinned main is not available to this project. No local project was created; read the project source state again before retrying.',
|
|
99
155
|
SOURCE_SNAPSHOT_CONTENT_INVALID: 'The pinned project source does not contain a valid public content identity. No local project was created.',
|
|
100
|
-
CREATOR_UPLOAD_BUSY: 'Another upload owns this project. Wait for its actual process to finish. A
|
|
156
|
+
CREATOR_UPLOAD_BUSY: 'Another upload owns this project. Wait for its actual process to finish. A lock left by a process that no longer runs on this machine is cleared on the next submit; an empty build/creator-upload.lock written by an older Kit is not: confirm no chrona submit is running, delete that file, then run the same submit again to continue with the same key. Do not remove a live lock.',
|
|
101
157
|
CREATOR_UPLOAD_STATE_INVALID: 'The local upload record is unsafe or malformed. Preserve it; it cannot supply project authority or be silently replaced.',
|
|
102
158
|
CREATOR_UPLOAD_STATE_CHANGED: 'The local upload record changed during this operation. Preserve the record and inspect the competing operation.',
|
|
103
159
|
INVALID_UPGRADE_OPTIONS: 'Use upgrade --project DIR for a plan, --apply true --expected-head SHA to apply, or --recover true for an interrupted upgrade.',
|
|
104
|
-
|
|
160
|
+
INVALID_MIGRATE_OPTIONS: 'Use migrate --project DIR for a plan and --apply true to write it; --expected-head takes a full commit SHA.',
|
|
161
|
+
UPGRADE_SOURCE_UNSUPPORTED: 'Only explicitly supported fixed source tool identities can be migrated. Check this installed version’s upgrade guide. If the work records a different Kit package that this version cannot migrate (reason kit-package-differs), install that package or create a new work (nextActions). Existing files were preserved.',
|
|
105
162
|
UPGRADE_TARGET_UNSUPPORTED: 'This upgrade requires the fixed installed Kit version and toolchain snapshot.',
|
|
106
|
-
UPGRADE_METADATA_INVALID: '
|
|
163
|
+
UPGRADE_METADATA_INVALID: 'chrona.project.json, chrona.toolchain.json, package.json or .gitignore differs from what the Kit generated, or AGENTS.md is missing. Nothing was changed. Restore those files from Git, or add an empty AGENTS.md if you deleted it, commit, then run chrona upgrade again. AGENTS.md may hold any text of yours: the upgrade keeps it.',
|
|
107
164
|
UPGRADE_DEPENDENCY_LOCK_UNSUPPORTED: 'Preserve the existing dependency lock and request a reviewed migration; this entry does not rewrite npm locks.',
|
|
108
165
|
UPGRADE_PROJECT_CHANGED: 'The project changed after inspection. Preserve edits and plan the upgrade again.',
|
|
109
166
|
UPGRADE_BUSY: 'Another upgrade or recovery is active. Do not remove its transaction.',
|
|
167
|
+
UPGRADE_UPLOAD_ARCHIVE_EXISTS: 'build/creator-upload.pre-1.6.json already exists, so the record of the earlier platform cannot be kept beside it. Nothing was changed; keep both files and send this error to support.',
|
|
110
168
|
UPGRADE_RECOVERY_REQUIRED: 'An unfinished upgrade exists. Stop editing, inspect its owner and use explicit recovery after the owner exits.',
|
|
111
169
|
UPGRADE_RECOVERY_CONFLICT: 'Recovery conflicts with the committed source or current files. Preserve the transaction for operator inspection.',
|
|
112
170
|
CREATOR_SESSION_ORIGIN_MISMATCH: 'The saved session belongs to another platform. Preserve it and inspect auth-status for its Origin. Authorize the intended platform explicitly before further writes; installing or upgrading a Kit does not migrate authorization.',
|
|
113
|
-
CREATOR_SESSION_SCOPE_REQUIRED: '
|
|
114
|
-
CREATOR_SESSION_PROJECT_MISMATCH: 'This
|
|
171
|
+
CREATOR_SESSION_SCOPE_REQUIRED: 'This session lacks the scopes in missingScopes; the operation needs every scope in requiredScopes. Keep this session and start a new authorization: in a new private session directory run chrona login --platform ORIGIN --session-directory NEW_DIR --project-id PROJECT_ID --scopes followed by requiredScopes joined with commas, approve in the browser, run chrona login-complete --session-directory NEW_DIR, then retry with NEW_DIR. No permission was added or revoked.',
|
|
172
|
+
CREATOR_SESSION_PROJECT_MISMATCH: 'This sign-in is not bound to this project. Sign in again in a new session directory with chrona login --platform ORIGIN --session-directory NEW_ABSOLUTE_DIR --project-id ID --scopes projects:read,source:read,contributions:write; do not edit the saved session.',
|
|
115
173
|
CREATOR_SESSION_RENEWAL_REQUIRED: 'The existing authorization is expired, revoked or uncertain. Preserve it and explicitly configure a new authorization session.',
|
|
116
174
|
PROJECT_DISCOVERY_LIMIT: 'Workspace discovery exceeds 1024 entries. Select a narrower creator workspace.',
|
|
117
175
|
PROJECT_DISCOVERY_FAILED: 'Workspace discovery could not finish. No project was selected or modified.',
|
|
118
176
|
INVALID_COMMAND: 'Use chrona help for supported commands.',
|
|
177
|
+
RULE_ID_UNKNOWN: 'No rule has this id or error code. suggestions lists the closest rule ids; run chrona explain with one of them. Nothing was changed.',
|
|
119
178
|
INVALID_PROJECT_NAME: 'Use a project name with 3 to 64 lowercase letters, digits or hyphens.',
|
|
120
179
|
INVALID_CONTENT_ID: 'Use a valid ugc-prefixed content identifier.',
|
|
121
180
|
PROJECT_EXISTS: 'The target exists. Select a new project directory; existing files were not overwritten.',
|
|
181
|
+
INVALID_EXAMPLE: 'Unknown example or combined with a source package. Use --example coin-rush or --example open-creation without --source-package.',
|
|
122
182
|
INVALID_PROJECT_PATH: 'Use a regular project inside the configured workspace, without symlinks.',
|
|
123
|
-
|
|
183
|
+
GENERATE_DECLARATION_MISSING: 'Write chrona.generate.json in the project root before running generate.',
|
|
184
|
+
GENERATE_DECLARATION_INVALID: 'Fix the chrona.generate.json entry named by path; names must match a declared component, prefab, target or test player.',
|
|
185
|
+
GENERATE_VEHICLE_MODEL_REPEATED: 'Two templates in content/rules/authored-motion.json use the same model (path names the second). A page finds a running vehicle from its model, so give each template its own, then run chrona generate again.',
|
|
186
|
+
GENERATE_SCENARIO_TOO_LONG: 'This scenario expands to more than 64 steps. Shorten its waits or split it; start it from a state close to the moment you test.',
|
|
187
|
+
KIT_VERSION_MISMATCH: 'The work records a different Kit (projectKitPackage, projectKitVersion) than this one (kitPackage, kitVersion). If only the version differs and this Kit is newer, plan and then apply chrona upgrade for the work (nextActions); if it is older, install the Kit the work records. If the package name differs (reason kit-package-differs), chrona upgrade moves a work between @chrona-city/ugc-kit and @chrona-world/ugc-kit when this Kit is the same version or newer, and migrates a registered earlier Kit to this package; otherwise install the Kit package the work records, or create a new work with this Kit and copy content/ into it. Do not rewrite the toolchain identity to bypass this check.',
|
|
124
188
|
KIT_SNAPSHOT_INCOMPATIBLE: 'Restore the complete fixed Kit package.',
|
|
189
|
+
LOCAL_OUTPUT_PARENT_MISSING: 'The directory that should contain the build output does not exist. Create it first or choose an output inside an existing directory; nothing was written.',
|
|
125
190
|
INVALID_PROJECT_IDENTITY: 'Project metadata is invalid. Restore the platform-generated identity.',
|
|
126
191
|
PROJECT_SDK_MAPPING_INVALID: 'Restore the generated SDK imports, fixed dependency and safe scripts; project code cannot replace the platform SDK.',
|
|
127
192
|
CONTENT_IDENTITY_MISMATCH: 'The manifest does not match its project content identity.',
|
|
@@ -132,7 +197,7 @@ const messages = {
|
|
|
132
197
|
INSTALL_RELEASE_CHANGED: 'The official current release and immutable metadata differ. No connection was written; retry after the release is consistent.',
|
|
133
198
|
INVALID_HARNESS_CONFIG: 'The selected Harness configuration is not a supported regular file.',
|
|
134
199
|
HARNESS_CONFIG_BUSY: 'Another initialization owns this configuration. Retry after it finishes.',
|
|
135
|
-
HARNESS_CONFIG_CONFLICT: 'The existing AI registration was preserved. Inspect its executable, workspace, platform and session. Use --replace-from only for the same binding; a different platform requires an explicit registration and its own authorization, not an edited session.',
|
|
200
|
+
HARNESS_CONFIG_CONFLICT: 'The existing AI registration was preserved. Inspect its executable, workspace, platform and session. Use --replace-from only for the same binding, passing exactly the chrona.mjs that registration runs (registeredExecutable; normally INSTALLATION_ROOT/node_modules/@chrona-city/ugc-kit/bin/chrona.mjs, the earlier init result replaceFrom); a different platform requires an explicit registration and its own authorization, not an edited session.',
|
|
136
201
|
HARNESS_CONFIG_CHANGED: 'The configuration changed during initialization. Inspect it before retrying.',
|
|
137
202
|
RUNTIME_NOT_AVAILABLE: 'Isolated tests and dev require a compatible public runtime. No creator code was executed.',
|
|
138
203
|
INVALID_RUNTIME_SOURCE: 'Use the packaged catalog or an explicitly selected literal loopback runtime origin with --runtime-source local --runtime-origin ORIGIN --allow-local-http true. Upload origins and project catalogs cannot supply runtime trust.',
|
|
@@ -145,13 +210,13 @@ for (const code of ['INVALID_CREATOR_ORIGIN', 'INVALID_CREATOR_OPTIONS', 'INVALI
|
|
|
145
210
|
'CREATOR_REQUEST_REJECTED', 'INVALID_CREATOR_REQUEST', 'CREATOR_ACCESS_DENIED', 'CREATOR_NOT_FOUND', 'AUTHORIZATION_PENDING',
|
|
146
211
|
'AUTHORIZATION_EXPIRED', 'AUTHORIZATION_DENIED', 'AUTHORIZATION_CONSUMED', 'AUTHORIZATION_CANCELLED', 'INVALID_PKCE_PROOF',
|
|
147
212
|
'CREATOR_CONFLICT', 'CREATOR_STORE_UNAVAILABLE', 'CREATOR_RATE_LIMITED', 'CREATOR_AUTHENTICATION_REQUIRED', 'INVALID_PLATFORM_SOURCE',
|
|
148
|
-
'SOURCE_RECEIVE_CONFLICT', 'SOURCE_BLOB_MISSING', 'SOURCE_RECEIVER_UNAVAILABLE', 'INVALID_CREATOR_SESSION_PATH', 'INVALID_CREATOR_SESSION_FILE',
|
|
213
|
+
'SOURCE_RECEIVE_CONFLICT', 'SOURCE_BLOB_MISSING', 'SOURCE_RECEIVER_UNAVAILABLE', 'SOURCE_UPLOAD_STALLED', 'INVALID_CREATOR_SESSION_PATH', 'INVALID_CREATOR_SESSION_FILE',
|
|
149
214
|
'CREATOR_SESSION_CHANGED', 'CREATOR_SESSION_BUSY', 'CREATOR_SESSION_EXISTS', 'CREATOR_SESSION_NOT_PENDING', 'CREATOR_AUTHORIZATION_POLL_EARLY',
|
|
150
215
|
'CREATOR_SESSION_NOT_AUTHORIZED', 'INVALID_AUTHORIZATION_SESSION', 'INVALID_CREATOR_PROJECT_ID', 'INVALID_CREATOR_JOB_ID',
|
|
151
|
-
'INVALID_SOURCE_REPOSITORY', 'SOURCE_REPOSITORY_DIRTY', 'SOURCE_REPOSITORY_CHANGED', 'SOURCE_VALIDATION_FAILED', 'SOURCE_BUDGET_EXCEEDED', 'NEEDS_CAPABILITY', 'CREATOR_SESSION_INSIDE_REPOSITORY',
|
|
216
|
+
'CONTENT_PATH_ESCAPED', 'CONTENT_CREDENTIAL_FILE', 'INVALID_SOURCE_REPOSITORY', 'SOURCE_REPOSITORY_DIRTY', 'SOURCE_ASSET_MISSING', 'SOURCE_ASSET_MISMATCH', 'SOURCE_ASSET_MANIFEST_INVALID', 'SOURCE_REPOSITORY_CHANGED', 'SOURCE_VALIDATION_FAILED', 'SOURCE_BUDGET_EXCEEDED', 'NEEDS_CAPABILITY', 'CREATOR_SESSION_INSIDE_REPOSITORY',
|
|
152
217
|
'SOURCE_PROVENANCE_UPDATED', 'SOURCE_PROVENANCE_BUSY', 'SOURCE_PROVENANCE_CHANGED', 'SOURCE_PROVENANCE_CONTROLLED_UNKNOWN',
|
|
153
218
|
'INVALID_CREATOR_PREVIEW_ID', 'INVALID_CREATOR_RELEASE_ID', 'PREVIEW_POLICY_UNAVAILABLE', 'PREVIEW_NOT_FOUND', 'PREVIEW_REQUEST_CONFLICT',
|
|
154
|
-
'PREVIEW_EXPIRED', 'PREVIEW_MEMBERSHIP_REVOKED', 'PREVIEW_CAPACITY_EXCEEDED', 'RELEASE_REQUEST_NOT_FOUND', 'RELEASE_REQUEST_CONFLICT',
|
|
219
|
+
'PREVIEW_EXPIRED', 'PREVIEW_MEMBERSHIP_REVOKED', 'PREVIEW_CAPACITY_EXCEEDED', 'PREVIEW_ACCESS_CANCELED', 'RELEASE_REQUEST_NOT_FOUND', 'RELEASE_REQUEST_CONFLICT',
|
|
155
220
|
'RELEASE_REQUEST_CAPACITY_EXCEEDED', 'INVALID_RELEASE_REQUEST', 'INVALID_SOURCE_PACKAGE_PATH', 'INVALID_SOURCE_PACKAGE_FILE',
|
|
156
221
|
'SOURCE_PACKAGE_CHANGED', 'SOURCE_PACKAGE_CONTRACT_MISMATCH', 'INVALID_SOURCE_PACKAGE_INPUT', 'SOURCE_PACKAGE_IDENTITY_MISMATCH',
|
|
157
222
|
'SOURCE_ARCHIVE_MISMATCH', 'SOURCE_ARCHIVE_READ_FAILED', 'SOURCE_ARCHIVE_WRITE_FAILED', 'INVALID_SOURCE_PACKAGE', 'SOURCE_PACKAGE_BUDGET_EXCEEDED', 'SOURCE_TREE_MISMATCH', 'SOURCE_PACKAGE_CONTENT_MISMATCH',
|
|
@@ -165,7 +230,7 @@ for (const code of ['INVALID_CREATOR_ORIGIN', 'INVALID_CREATOR_OPTIONS', 'INVALI
|
|
|
165
230
|
for (const code of [...runtimeHostRejectionCodes, 'INVALID_RUNTIME_DOWNLOAD', 'INVALID_RUNTIME_CACHE', 'RUNTIME_CACHE_BUSY', 'RUNTIME_CACHE_FULL',
|
|
166
231
|
'RUNTIME_CACHE_INVALID', 'RUNTIME_CACHE_MISS', 'RUNTIME_CACHE_WRITE_FAILED', 'RUNTIME_DOWNLOAD_CANCELLED',
|
|
167
232
|
'RUNTIME_DOWNLOAD_FAILED', 'RUNTIME_DOWNLOAD_HASH_MISMATCH', 'RUNTIME_DOWNLOAD_REJECTED',
|
|
168
|
-
'RUNTIME_DOWNLOAD_SIZE_MISMATCH',
|
|
233
|
+
'RUNTIME_DOWNLOAD_SIZE_MISMATCH',
|
|
169
234
|
'INVALID_RUNTIME_CATALOG', 'RUNTIME_SELECTION_REQUIRED', 'RUNTIME_SELECTION_AMBIGUOUS', 'RUNTIME_NOT_TRUSTED', 'INVALID_LOCAL_DEVELOPMENT_INPUT',
|
|
170
235
|
'LOCAL_DEVELOPMENT_INPUT_CHANGED', 'INVALID_LOCAL_QUALIFICATION', 'LOCAL_IDENTITY_MISMATCH', 'INVALID_LOCAL_DEVELOPMENT_STATE',
|
|
171
236
|
'INVALID_LOCAL_SNAPSHOT', 'INVALID_LOCAL_FILES', 'LOCAL_FILE_MISMATCH', 'INVALID_LOCAL_DOCUMENTS',
|
|
@@ -178,15 +243,65 @@ for (const code of [...runtimeHostRejectionCodes, 'INVALID_RUNTIME_DOWNLOAD', 'I
|
|
|
178
243
|
'RUNTIME_INSTALLED_FILE_MISMATCH', 'RUNTIME_INSTALLED_FILE_SET_MISMATCH', 'INVALID_RUNTIME_INSTALLATION',
|
|
179
244
|
'LOCAL_BUILDER_SOURCE_MISMATCH', 'INVALID_LOCAL_BUILD_INPUT', 'INVALID_LOCAL_OUTPUT', 'LOCAL_SNAPSHOT_EXISTS',
|
|
180
245
|
'LOCAL_SOURCE_CHANGED', 'INVALID_LOCAL_PATH', 'LOCAL_SNAPSHOT_BUDGET_EXCEEDED', 'LOCAL_VALIDATION_FAILED',
|
|
181
|
-
'LOCAL_SCENE_PROFILE_REQUIRED', 'LOCAL_PRIVATE_CAPABILITY_UNSUPPORTED', 'INVALID_GAMEPLAY_SOURCE',
|
|
246
|
+
'LOCAL_SCENE_PROFILE_REQUIRED', 'LOCAL_PRIVATE_CAPABILITY_UNSUPPORTED', 'LOCAL_SCENE_INTERACTION_UNSUPPORTED', 'INVALID_GAMEPLAY_SOURCE',
|
|
182
247
|
'INVALID_GAMEPLAY_IMPORT', 'LOCAL_MODULE_BUDGET_EXCEEDED']) messages[code] = code;
|
|
248
|
+
messages.CREATOR_SESSION_DIRECTORY_UNWRITABLE = 'This process may not create or write the session directory (permission denied, read-only or full disk), which is common inside a sandbox. Nothing was sent to the platform. Choose an absolute session directory in a place this process may write, outside every Git repository, then run chrona login again.';
|
|
249
|
+
messages.INVALID_GAMEPLAY_IMPORT = 'A gameplay file pulls in a file the runtime does not allow. Gameplay files may import only other .js files under their own gameplay/client, gameplay/server or gameplay/shared folder with a relative path such as ./helper.js, plus the injected SDK; npm packages, node: modules and files outside that folder are refused. This error does not name the file: run chrona check --project DIR, which lists the file and the import (ILLEGAL_IMPORT), change that import to a relative one inside the same folder, commit, then run the command again.';
|
|
250
|
+
messages.INVALID_CREATOR_ORIGIN = 'The platform address is missing or not a plain https origin such as https://chrona.world. Pass --platform with the address you installed the Kit from (the website install command records it). Nothing was sent.';
|
|
251
|
+
messages.INVALID_LOCAL_BUILD_INPUT = 'chrona build needs --output-directory NEW_DIR, a new directory outside the project and the Kit: chrona build --project DIR --output-directory NEW_DIR. Nothing was built.';
|
|
252
|
+
messages.INVALID_RUNTIME_CACHE = 'The runtime cache must be an existing private directory: a real directory (not a symlink) that you own with mode 0700, at its canonical path. reason names what differs; for mode-not-0700 run chmod 700 on it, or choose another cache directory.';
|
|
183
253
|
|
|
184
254
|
for (const code of ['INVALID_INSTALL_RELEASE', 'INSTALL_DOWNLOAD_FAILED', 'INSTALL_ARCHIVE_MISMATCH', 'INVALID_INSTALL_PATH',
|
|
185
255
|
'INSTALL_INVENTORY_INVALID', 'INSTALL_PLATFORM_UNSUPPORTED', 'INSTALL_NODE_UNSUPPORTED', 'INSTALL_PREREQUISITE_MISSING',
|
|
186
256
|
'INSTALL_CALLER_MISMATCH', 'INSTALL_BUSY', 'INSTALL_CONFLICT', 'INSTALL_NPM_FAILED']) messages[code] = code;
|
|
187
257
|
Object.assign(messages, {
|
|
258
|
+
PREVIEW_CAPACITY_EXCEEDED: 'Too many previews are running for this work, so no new one was started. End one with chrona preview-cancel or wait for it to expire, then run the same command again.',
|
|
259
|
+
PREVIEW_ACCESS_CANCELED: 'This preview was cancelled, or a newer preview of the same work replaced it, and its room is closed. The work is fine. Start a new preview with the same command.',
|
|
260
|
+
PREVIEW_ROOMS_FULL: 'Member preview rooms are full on this platform right now. The work is fine, so do not change it. Wait a minute or two, then run the same command again.',
|
|
261
|
+
PREVIEW_DOCUMENT_UNSUPPORTED: 'This Document preview did not open. The work does not need changing. Start a new preview with chrona preview.',
|
|
262
|
+
PREVIEW_NOT_SUPPORTED: 'Member preview cannot start here, and the platform did not say which of two causes applies: this project has no World yet, or this environment has no preview runner. Publishing to the testing channel is the next step for both.',
|
|
263
|
+
PREVIEW_CONFIG_INVALID: 'The platform preview configuration is invalid. This is a platform problem, not the work; contact the platform operator, or publish to the testing channel and enter the work from there.',
|
|
264
|
+
PREVIEW_SOURCE_KIT_MISMATCH: 'Preview does not accept the Kit this job records. Run chrona upgrade --project DIR, commit, submit again and preview the new job.',
|
|
265
|
+
PREVIEW_SOURCE_KIT_NOT_SUPPORTED: 'Preview does not support the Kit this job records. Run chrona upgrade --project DIR, commit, submit again and preview the new job.',
|
|
266
|
+
PREVIEW_KIT_POLICY_CHANGED: 'The platform preview policy for the Kit changed while this preview was being set up. Request the preview again later; the work does not need to change.',
|
|
267
|
+
PREVIEW_RUNTIME_POLICY_CHANGED: 'The platform preview policy for the Runtime changed while this preview was being set up. Request the preview again later; the work does not need to change.',
|
|
268
|
+
PREVIEW_RESOURCE_POLICY_CHANGED: 'The platform preview resource policy changed while this preview was being set up. Request the preview again later; the work does not need to change.',
|
|
269
|
+
CREATOR_SERVICE_UNAVAILABLE: 'A platform service did not answer (the gateway returned 502, 503 or 504). This is not evidence that the operation failed or changed; wait retryAfterMs if given, then read the status again or retry the same command with the same idempotency key.',
|
|
270
|
+
CREATOR_REQUEST_FAILED: 'The platform could not be reached; nothing is known to have changed. Check the network and that the platform Origin is reachable, then retry the same command; mutating commands keep their idempotency key.',
|
|
271
|
+
SOURCE_UPLOAD_STALLED: 'The upload stopped before the submission was sent: a file check or upload got no answer twice. Nothing was submitted and nothing changed. Run the same command again; files already stored are not sent again.',
|
|
272
|
+
CREATOR_REQUEST_TIMEOUT: 'The platform did not answer in time; the outcome of a mutating request is unknown. Retry the same command with the same idempotency key, or read the current state first (status, preview-status or release-status) before starting anything new.',
|
|
273
|
+
AUTHORIZATION_PENDING: 'The browser approval has not been completed yet. Ask the user to approve the authorization URL, wait a few seconds, then run login-complete (MCP sign_in (action complete)) again.',
|
|
274
|
+
AUTHORIZATION_EXPIRED: 'The pending browser authorization expired before approval. Start again with chrona login (MCP sign_in (action begin)), approve the new URL, then complete it.',
|
|
275
|
+
AUTHORIZATION_DENIED: 'The user declined the authorization in the browser and nothing was granted. Only if the user wants to continue, run chrona login again (MCP sign_in (action begin)) and approve the new URL.',
|
|
276
|
+
AUTHORIZATION_CONSUMED: 'This authorization was already exchanged and cannot be used twice. Run auth-status; if it is not authorized, start a new chrona login.',
|
|
277
|
+
CREATOR_SESSION_EXISTS: 'This session directory already holds a live or unfinished login. Use it with auth-status and login-complete, or choose a different empty directory for a separate login; a sign-in that expired can be renewed in place with chrona login.',
|
|
278
|
+
RELEASE_REVIEW_MEMBERSHIP_REVOKED: 'The review permission for this release was withdrawn. Check the signed-in account with the project owner, then publish again if you still need to.',
|
|
279
|
+
RELEASE_REVIEW_REQUEST_INACTIVE: 'This release review request is no longer active. Read release-status, then publish again from the latest job if you still need to.',
|
|
280
|
+
RELEASE_SUPERSEDED: 'A release from newer source already exists, so this older release was refused. Publish the newest job instead.',
|
|
281
|
+
CREATOR_WORLD_STATE_UNAVAILABLE: 'The platform could not read this World just now. Nothing changed. Wait a moment and run the same command again.',
|
|
282
|
+
RELEASE_BUILD_STATE_UNAVAILABLE: 'The platform could not read the build state of this release just now. Wait a moment and run release-status again; nothing is known to have changed.',
|
|
283
|
+
RELEASE_PUBLICATION_STATE_UNAVAILABLE: 'The platform could not read the publication state of this release just now. Wait a moment and run release-status again; nothing is known to have changed.',
|
|
284
|
+
CREATOR_SESSION_NOT_AUTHORIZED: 'This session is not signed in. Sign in first with chrona login --platform ORIGIN --session-directory DIR, approve the URL in the browser, then finish with login-complete. Run the original command again afterwards. auth-status shows the current state.',
|
|
285
|
+
CREATOR_SESSION_NOT_PENDING: 'There is no pending browser authorization to complete in this session. Run auth-status; start a new chrona login if it is not authorized.',
|
|
286
|
+
SOURCE_ASSET_MISSING: 'A file that chrona.assets.json lists is not in the project (path). Nothing was uploaded. Restore the listed asset files at their paths from the asset store, for example with the restore command in the work\'s README, then run chrona submit again (MCP submit_source).',
|
|
287
|
+
SOURCE_ASSET_MISMATCH: 'A file that chrona.assets.json lists is not the recorded file: its size or sha256 differs (path, with expected and actual values). Nothing was uploaded. Restore that file from the asset store; if the change is intended, put the new file in the asset store, update its entry in chrona.assets.json and commit that, then run chrona submit again.',
|
|
288
|
+
SOURCE_ASSET_MANIFEST_INVALID: 'chrona.assets.json is not a usable asset list (at names the place). It must be committed and read { "schemaVersion": 1, "files": [{ "path": "content/...", "sha256": "sha256:<64 lowercase hex>", "bytes": N }] }, with each path under content/, listed once and not also committed to Git. Nothing was uploaded.',
|
|
289
|
+
SOURCE_REPOSITORY_DIRTY: 'The project has uncommitted changes, and only a committed source can be submitted. Run git status in the project, commit the intended changes, then run chrona submit again (MCP submit_source).',
|
|
290
|
+
CREATOR_RULE_TESTS_FAILED: 'Declared rule cases failed on this machine. Nothing was uploaded. ruleTests.failed names each failed case with its step, and with expected and actual values when the case compared a result; a case that raised an exception has neither, and its text is withheld. Fix the rule or the case, commit, then run the same command again (chrona submit or chrona contribute; MCP submit_source or submit_contribution); chrona test-rules --project DIR repeats the check. If this machine and the platform disagree, ask the user, then submit with --skip-rule-tests true (MCP skipRuleTests: true).',
|
|
291
|
+
CREATOR_RULE_TESTS_TIMEOUT: 'Declared rule cases did not finish within the time limit (timeoutMs) and were stopped, so the unfinished cases are unknown. Nothing was uploaded. The two usual causes are a loop that never ends in the shared rules and a machine too busy to finish in time. Run chrona test-rules again when the machine is quieter; if it stops at the limit again, look for the loop, fix it, commit, then run the same command again. If this machine and the platform disagree, ask the user, then submit with --skip-rule-tests true (MCP skipRuleTests: true).',
|
|
292
|
+
RULE_BUILTIN_PROTOTYPE_WRITE: 'A rule writes a built-in prototype, which the local rule run keeps read-only, so its cases cannot run here. Nothing was uploaded. Move the extension into a plain function, commit, then run the same command again; issues gives the file and an example.',
|
|
293
|
+
CREATOR_RULE_TESTS_UNAVAILABLE: 'The restricted process could not run the declared rule cases, so nothing is known about them. Nothing was uploaded. reason and exitCode say what stopped it; check that Node meets the Kit requirement and run chrona test-rules --project DIR. If it keeps failing, ask the user, then submit with --skip-rule-tests true (MCP skipRuleTests: true).',
|
|
294
|
+
SOURCE_VALIDATION_FAILED: 'The project did not pass static validation, so nothing was uploaded or changed. Fix the paths reported in validationErrors (or by chrona validate --project DIR), commit, then run the same command again.',
|
|
295
|
+
LOCAL_SCENE_PROFILE_REQUIRED: 'The manifest declares only one of worldScene and scenePresentation. Declare both for a world scene work, or neither: a work without a world scene runs locally in the platform ground room. Nothing was executed.',
|
|
296
|
+
LOCAL_PRIVATE_CAPABILITY_UNSUPPORTED: 'The local runtime cannot run works that use events.private or presentation.controlled (the coin-rush and open-creation examples use presentation.controlled). Custom actions, state and spawnPrefabs need neither: to preview a ground work locally, request presentation.effect ^1.1.0 instead and remove the controlled commands from its client code, see docs/open-creation.md. Otherwise submit and publish the work to play it on the platform. Nothing was executed.',
|
|
297
|
+
LOCAL_SCENE_INTERACTION_UNSUPPORTED: 'The local ground runtime does not run scene interactions yet; on the platform they need controlled presentation. Submit and publish the work to play it on the platform. Nothing was executed.',
|
|
298
|
+
CREATOR_SESSION_BUSY: 'Another creator command is using this session directory. Wait for it to finish and retry; a lock left by a stopped command on this machine is cleared automatically.',
|
|
299
|
+
CREATOR_LOGIN_REQUIRED: 'The saved sign-in has expired or was revoked and could not be renewed; projects and local work are unchanged. Sign in again in the same session directory: with MCP call sign_in (action begin), have the user approve in the browser, then call sign_in (action complete); with the CLI run chrona login --session-directory DIR --platform ORIGIN, approve, then chrona login-complete --session-directory DIR. Then retry the original command.',
|
|
300
|
+
CREATOR_TOKEN_EXPIRED: 'The access token has expired and could not be renewed here. Sign in again with chrona login; nothing was changed.',
|
|
301
|
+
CREATOR_REFRESH_INVALID: 'The saved sign-in can no longer be renewed. Sign in again with chrona login; nothing was changed.',
|
|
302
|
+
CREATOR_RATE_LIMITED: 'The platform is limiting repeated requests (repeated sign-in within about a minute is the usual cause). Wait for retryAfterMs, then retry once; nothing was changed.',
|
|
188
303
|
RUNTIME_TARGET_UNSUPPORTED: 'The selected runtime or catalog does not support this OS, architecture and Node version. Check node --version and the selected Kit runtime targets. Preserve the project and runtime pins; do not rewrite versions. This local refusal does not describe cloud candidate checks.',
|
|
189
|
-
RUNTIME_CONTENT_INCOMPATIBLE: 'No selected runtime declares a matching builder, tool and contracts row for this snapshot. Check the selected CLI, snapshot and trusted runtime catalog. Preserve the source identity; do not rewrite hashes or reupload to bypass this local refusal. Cloud candidate checks are separate.',
|
|
304
|
+
RUNTIME_CONTENT_INCOMPATIBLE: 'No selected runtime declares a matching builder, tool and contracts row for this snapshot. Check the selected CLI, snapshot and trusted runtime catalog. Preserve the source identity; do not rewrite hashes or reupload to bypass this local refusal. Cloud candidate checks are separate. If this snapshot was built by another Kit version, build it again with this Kit, or run it with the Kit that built it.',
|
|
190
305
|
INVALID_RESOURCE: 'A resource declaration is missing, malformed or no longer bound to verified content. Review the indicated provenance entry before submitting; explicit author or third-party terms are not rewritten.',
|
|
191
306
|
SOURCE_PROVENANCE_UPDATED: 'Testing creator declarations were updated from verified asset bytes before source freeze. Review and commit the intended content changes with your normal Git harness, then retry submit. Nothing was uploaded; no extra source questionnaire is required.',
|
|
192
307
|
SOURCE_PROVENANCE_CONTROLLED_UNKNOWN: 'This imported project lacks explicit controlled scene provenance. Restore its original source-package declarations with the supported preparation path; do not relabel controlled assets as AI-generated.',
|
|
@@ -199,147 +314,707 @@ Object.assign(messages, {
|
|
|
199
314
|
INSTALL_CONFLICT: 'The existing installation differs or is incomplete. Preserve it and use a separate tools root for explicit recovery; existing AI configuration was not replaced.',
|
|
200
315
|
INSTALL_BUSY: 'Another initialization owns this exact installation. Wait for that process; do not delete its lock.',
|
|
201
316
|
INSTALL_NPM_FAILED: 'Dependency installation failed. Check access to the public npm registry and retry the official entry; no partial program was registered.',
|
|
317
|
+
INSTALL_NATIVE_MISSING: 'The exact esbuild dependency or its current-platform optional package is missing. Use the original installer with optional dependencies enabled and the fixed npm cache; no AI registration was changed.',
|
|
318
|
+
INSTALL_NATIVE_VERSION_MISMATCH: 'The installed esbuild version differs from this Kit dependency. Preserve the installation and use the original fixed-package installer; do not substitute latest or another architecture.',
|
|
319
|
+
INSTALL_NATIVE_EXECUTION_FAILED: 'The installed current-platform esbuild could not complete its compiler probe. Preserve the installation and inspect the native dependency result; npm success alone does not prove it works.',
|
|
202
320
|
INSTALL_CALLER_MISMATCH: 'The initializer and selected release package/version do not match. Preserve the installed tool and verify the explicit platform and matching release metadata. Do not downgrade to an older webpage recommendation, rename the package or rewrite hashes.',
|
|
203
|
-
INSTALL_PLATFORM_UNSUPPORTED: 'This release
|
|
321
|
+
INSTALL_PLATFORM_UNSUPPORTED: 'This release does not support this OS and architecture; its metadata `platforms` lists the supported ones. On Windows, run the same command inside WSL2 (Linux x64). Intel macOS and native Windows have no Runtime. Preserve the project and do not edit the release metadata.',
|
|
204
322
|
INSTALL_NODE_UNSUPPORTED: 'The initializer requires Node.js 22.16.0 or newer; this is not a requirement to match its build Node patch. Runtime execution has its own declared support. The initializer does not change your Node installation.',
|
|
205
323
|
INSTALL_PREREQUISITE_MISSING: 'Install the documented Node.js/npm and Git prerequisites, then retry. The initializer does not install system tools.',
|
|
206
324
|
SOURCE_UPDATE_BASE_UNAVAILABLE: 'No verified old base is available for this project or candidate. Preserve the original project and pending key; update cannot safely infer the old main.',
|
|
325
|
+
SOURCE_UPDATE_RESOLUTION_INVALID: 'Each --resolve must be PATH=mine or PATH=main, once per path, and name a file that actually conflicts; resolutionPaths lists the ones that do not. Run chrona diff to see the conflicts; nothing was changed.',
|
|
207
326
|
SOURCE_UPDATE_CONFLICT: 'The same files changed locally and on the new main. Review the listed paths in your original project; no file or candidate was overwritten.',
|
|
208
327
|
SOURCE_UPDATE_OUTSIDE_CONTENT: 'Platform-managed files or untracked files outside content differ. The original project was preserved; update only content through the supported workflow.'
|
|
209
328
|
});
|
|
210
329
|
|
|
211
|
-
|
|
212
|
-
|
|
330
|
+
for (const code of Object.keys(messages)) if (messages[code] === code) messages[code] = kitMessage(code) ?? code;
|
|
331
|
+
|
|
332
|
+
export const creatorMessageCodes = () => Object.keys(messages);
|
|
333
|
+
const shellPath = value => /^[A-Za-z0-9_./:@-]+$/.test(value) ? value : shellQuote(value);
|
|
334
|
+
const knownOrigin = origin => { try { return creatorOrigin(origin, true) === origin; } catch { return false; } };
|
|
335
|
+
const legacyActions = result => result?.legacyPatterns ? nextAction('migrate', `This work still has ${result.legacyPatterns.count} places of old realtime writing, so players may see lag or the platform features cannot help it. Before the next version, plan the move to the current writing; nothing changes until --apply true.`,
|
|
336
|
+
result.legacyPatterns.command, result.legacyPatterns.mcp) : [];
|
|
337
|
+
const initCommand = (options, harness) => {
|
|
338
|
+
const origin = options['--platform'] ?? options.origin;
|
|
339
|
+
if (!knownOrigin(origin)) return ['chrona init', ...(harness ? [`--harness ${harness}`] : [])].join(' ');
|
|
340
|
+
return platformReinstallCommand(origin).replace('--harness auto', `--harness ${harness ?? options['--harness'] ?? 'auto'}`) + (options['--allow-local-http'] === 'true' ? ' --allow-local-http true' : '');
|
|
341
|
+
};
|
|
342
|
+
const initSelectionDetails = (result, options) => {
|
|
343
|
+
if (result.code === 'HARNESS_SELECTION_REQUIRED') return { ...result,
|
|
344
|
+
message: 'No Claude Code or Codex was found: no running session, no configuration, no command on PATH. Nothing was installed or changed. Install one of them, or name the one you will use, then run init again.',
|
|
345
|
+
nextActions: [...nextAction('choose-claude', 'Use Claude Code.', initCommand(options, 'claude')), ...nextAction('choose-codex', 'Use Codex.', initCommand(options, 'codex')),
|
|
346
|
+
...nextAction('other-ai-tool', 'Use another MCP tool: register into its configuration file. This writes the connection only.', 'chrona init --config FILE --format json|codex --platform ORIGIN')] };
|
|
347
|
+
if (result.code === 'WORKSPACE_SELECTION_REQUIRED') return { ...result,
|
|
348
|
+
message: 'This directory is too broad for a Chrona workspace (home, root, Desktop, Documents, Downloads or an AI configuration directory). Nothing was installed or changed. Make a project directory, then run init inside it.',
|
|
349
|
+
nextActions: nextAction('choose-workspace', 'Create a directory for the work and init there; replace the path if the author wants another.', `mkdir -p ~/chrona-works && cd ~/chrona-works && ${initCommand(options)}`) };
|
|
350
|
+
return result;
|
|
351
|
+
};
|
|
352
|
+
const callerMismatchDetails = (code, error) => {
|
|
353
|
+
if (code !== 'INSTALL_CALLER_MISMATCH' || !knownOrigin(error?.platformOrigin)) return {};
|
|
354
|
+
const origin = error.platformOrigin, online = platformReinstallCommand(origin).replace('--prefer-offline', '--prefer-online');
|
|
355
|
+
if (!isCreatorPackageName(error.releasePackage) || !parseReleaseVersion(error.releaseVersion) || !isCreatorPackageName(error.kitPackage) || !parseReleaseVersion(error.kitVersion)) return {
|
|
356
|
+
reason: 'package-contents-differ', platformOrigin: origin,
|
|
357
|
+
message: `The package npm unpacked differs from the release ${origin} publishes, usually an old npm cache. Nothing was registered and existing installs are unchanged. Run the platform's command with a fresh download.`,
|
|
358
|
+
nextActions: nextAction('reinstall', 'Install what the platform publishes, downloading it again.', online) };
|
|
359
|
+
const identity = { platformOrigin: origin, releasePackage: error.releasePackage, releaseVersion: error.releaseVersion, kitPackage: error.kitPackage, kitVersion: error.kitVersion };
|
|
360
|
+
const stated = `This Kit is ${error.kitPackage} ${error.kitVersion}; ${origin} publishes ${error.releasePackage} ${error.releaseVersion}. Nothing was registered and existing installs are unchanged.`;
|
|
361
|
+
if (error.kitPackage === error.releasePackage && compareReleaseVersions(error.kitVersion, error.releaseVersion) > 0) return { ...identity, reason: 'kit-newer-than-platform',
|
|
362
|
+
message: `${stated} This Kit is newer than the platform's release, so do not downgrade to get past this. Use the Kit you already have, or wait for the platform to publish this version; doctor shows what it accepts.`,
|
|
363
|
+
nextActions: nextAction('doctor', 'See which Kit versions this platform accepts.', `chrona doctor --platform ${origin}`) };
|
|
364
|
+
return { ...identity, reason: error.kitPackage === error.releasePackage ? 'kit-older-than-platform' : 'kit-package-differs',
|
|
365
|
+
message: `${stated} Run the platform's own command, which installs the package and version it publishes.`,
|
|
366
|
+
nextActions: nextAction('reinstall', 'Install what the platform publishes, downloading it again.', online) };
|
|
367
|
+
};
|
|
368
|
+
const projectUpgradeActions = (directory = 'DIR') => [
|
|
369
|
+
...nextAction('plan-upgrade', 'Plan the project upgrade with the new Kit; nothing is changed yet.', `chrona upgrade --project ${directory}`),
|
|
370
|
+
...nextAction('apply-upgrade', 'Apply exactly the planned upgrade, then commit the changed metadata and submit again.', `chrona upgrade --project ${directory} --apply true --expected-head SHA`)];
|
|
371
|
+
const kitInstallCommand = (packageName, version, origin) => knownOrigin(origin) ? platformReinstallCommand(origin) : `npx ${packageName}@${version} init`;
|
|
372
|
+
const kitUpgradeActions = (packageName, version, origin) => [
|
|
373
|
+
...nextAction('install-kit', 'Install the Kit version the platform accepts; existing works and sessions stay as they are.', kitInstallCommand(packageName, version, origin)),
|
|
374
|
+
...projectUpgradeActions()];
|
|
375
|
+
const toolchainMismatchDetails = (code, error) => code !== 'CREATOR_PLATFORM_TOOLCHAIN_MISMATCH' || !isCreatorPackageName(error?.platformKitPackage)
|
|
376
|
+
|| !parseReleaseVersion(error.platformKitVersion) ? {} : { platformKitPackage: error.platformKitPackage, platformKitVersion: error.platformKitVersion,
|
|
377
|
+
nextActions: kitUpgradeActions(error.platformKitPackage, error.platformKitVersion, error.platformOrigin) };
|
|
378
|
+
const distributionTwins = error => ['@chrona-city/ugc-kit', '@chrona-world/ugc-kit'].includes(error?.projectKitPackage) && ['@chrona-city/ugc-kit', '@chrona-world/ugc-kit'].includes(error?.kitPackage);
|
|
379
|
+
const kitPackageDiffers = (code, error) => ['KIT_VERSION_MISMATCH', 'UPGRADE_SOURCE_UNSUPPORTED'].includes(code)
|
|
380
|
+
&& isCreatorPackageName(error?.projectKitPackage) && isCreatorPackageName(error?.kitPackage) && error.projectKitPackage !== error.kitPackage
|
|
381
|
+
&& parseReleaseVersion(error?.projectKitVersion) && parseReleaseVersion(error?.kitVersion);
|
|
382
|
+
const kitMismatchMessage = (error, actions) => `This work records ${[error.projectKitPackage, error.projectKitVersion].filter(Boolean).join(' ')}; this Kit is ${[error.kitPackage, error.kitVersion].filter(Boolean).join(' ')}. ${messages.KIT_VERSION_MISMATCH} Next command: ${actions[0].cli}`;
|
|
383
|
+
const kitPackageDetails = (code, error, directory) => {
|
|
384
|
+
const nextActions = [
|
|
385
|
+
...(code === 'KIT_VERSION_MISMATCH' && compareReleaseVersions(error.kitVersion, error.projectKitVersion) >= (distributionTwins(error) ? 0 : 1) ? projectUpgradeActions(directory) : []),
|
|
386
|
+
...nextAction('install-kit', 'Install the Kit package this work records; the work stays as it is.', kitInstallCommand(error.projectKitPackage, error.projectKitVersion, error.platformOrigin)),
|
|
387
|
+
...nextAction('create-work', 'Or create a new work with this Kit and copy content/ into it.', 'chrona create NAME --content-id ugc.example.name')];
|
|
388
|
+
return { reason: 'kit-package-differs', projectKitPackage: error.projectKitPackage, projectKitVersion: error.projectKitVersion, kitPackage: error.kitPackage, kitVersion: error.kitVersion,
|
|
389
|
+
...(code === 'KIT_VERSION_MISMATCH' ? { message: kitMismatchMessage(error, nextActions) } : {}), nextActions };
|
|
390
|
+
};
|
|
391
|
+
const kitMismatchDetails = (code, error, directory) => {
|
|
392
|
+
if (kitPackageDiffers(code, error)) return kitPackageDetails(code, error, directory);
|
|
393
|
+
if (code !== 'KIT_VERSION_MISMATCH' || !parseReleaseVersion(error?.projectKitVersion) || !parseReleaseVersion(error?.kitVersion)) return {};
|
|
394
|
+
const versions = { projectKitVersion: error.projectKitVersion, kitVersion: error.kitVersion };
|
|
395
|
+
if (compareReleaseVersions(error.kitVersion, error.projectKitVersion) === 0 && error.projectKitPackage === error.kitPackage) {
|
|
396
|
+
const nextActions = projectUpgradeActions(directory);
|
|
397
|
+
const sets = typeof error.projectRuleSet === 'string' && typeof error.kitRuleSet === 'string' && error.projectRuleSet !== error.kitRuleSet;
|
|
398
|
+
const built = sets ? `rule set ${error.projectRuleSet}, and this Kit has rule set ${error.kitRuleSet}` : 'an earlier build of the same version, with different rules or contracts';
|
|
399
|
+
return { ...versions, ...(sets ? { projectRuleSet: error.projectRuleSet, kitRuleSet: error.kitRuleSet } : {}), reason: 'same-version-other-build',
|
|
400
|
+
message: `This work records ${error.kitPackage} ${error.projectKitVersion} with ${built}. Plan and then apply chrona upgrade to move its Kit record to this build; only metadata changes, content stays as it is. Next command: ${nextActions[0].cli}`, nextActions };
|
|
401
|
+
}
|
|
402
|
+
if (compareReleaseVersions(error.kitVersion, error.projectKitVersion) > 0) {
|
|
403
|
+
const nextActions = projectUpgradeActions(directory);
|
|
404
|
+
return { ...versions, message: kitMismatchMessage(error, nextActions), nextActions };
|
|
405
|
+
}
|
|
406
|
+
if (!isCreatorPackageName(error.kitPackage)) return versions;
|
|
407
|
+
const nextActions = nextAction('install-kit', 'Install the Kit version this work records; the work stays as it is.', kitInstallCommand(error.kitPackage, error.projectKitVersion, error.platformOrigin));
|
|
408
|
+
return { ...versions, message: kitMismatchMessage(error, nextActions), nextActions };
|
|
409
|
+
};
|
|
410
|
+
const assetDetails = (code, error) => !['SOURCE_ASSET_MISSING', 'SOURCE_ASSET_MISMATCH', 'SOURCE_ASSET_MANIFEST_INVALID'].includes(code) ? {}
|
|
411
|
+
: Object.fromEntries(['path', 'at', 'expectedBytes', 'actualBytes', 'expectedSha256', 'actualSha256'].filter(key => error?.[key] !== undefined && error?.[key] !== null).map(key => [key, error[key]]));
|
|
412
|
+
const bindingDetails = (code, error) => code !== 'CREATOR_PROJECT_BINDING_MISMATCH' || !/^https:\/\/[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?$/.test(error?.boundOrigin ?? '')
|
|
413
|
+
|| !/^[a-f0-9]{32}$/.test(error?.boundProjectId ?? '') ? {} : {
|
|
414
|
+
boundOrigin: error.boundOrigin, boundProjectId: error.boundProjectId,
|
|
415
|
+
nextActions: nextAction('copy-work', `This folder is recorded (build/creator-upload.json) as sending to project ${error.boundProjectId} on ${error.boundOrigin}. To keep sending there, use a session signed in to ${error.boundOrigin}. To send the same work to ${typeof error.requestedOrigin === 'string' && /^https:\/\//.test(error.requestedOrigin) ? error.requestedOrigin : 'another platform or project'}, copy the folder without build/ and submit the copy; the record in this folder stays as it is.`,
|
|
416
|
+
'cp -R WORK NEW_WORK && rm -rf NEW_WORK/build && chrona submit --project NEW_WORK --session-directory OTHER_PRIVATE_DIR') };
|
|
417
|
+
const uploadStallDetails = (code, error) => code !== 'SOURCE_UPLOAD_STALLED' || !Number.isSafeInteger(error?.fileIndex) ? {} : {
|
|
418
|
+
step: error.step, fileIndex: error.fileIndex, files: error.files, ...(typeof error.requestCode === 'string' ? { requestCode: error.requestCode } : {}),
|
|
419
|
+
detail: `${error.step === 'upload' ? 'uploading' : 'checking'} file ${error.fileIndex} of ${error.files}`, submissionSent: false };
|
|
420
|
+
const capacityFailureDetails = (code, error) => code !== 'CREATOR_PLATFORM_CAPACITY_EXCEEDED' || !Number.isSafeInteger(error?.requestedMaxPlayers)
|
|
421
|
+
|| !Number.isSafeInteger(error?.roomMaxPlayers) ? {} : { requestedMaxPlayers: error.requestedMaxPlayers, roomMaxPlayers: error.roomMaxPlayers,
|
|
422
|
+
detail: `requested-${error.requestedMaxPlayers}-allowed-${error.roomMaxPlayers}` };
|
|
423
|
+
const rulesFailureDetails = (code, error) => code !== 'CREATOR_PLATFORM_RULES_UNSUPPORTED'
|
|
424
|
+
|| !['rule-set-not-accepted', 'kit-below-minimum', 'rules-digest-mismatch'].includes(error?.reason) || !isCreatorPackageName(error.kitPackage)
|
|
425
|
+
|| !parseReleaseVersion(error.kitMinimum) || !parseReleaseVersion(error.kitRecommended) ? {} : {
|
|
426
|
+
reason: error.reason, kitMinimum: error.kitMinimum, kitRecommended: error.kitRecommended,
|
|
427
|
+
nextActions: kitUpgradeActions(error.kitPackage, error.kitRecommended, error.platformOrigin) };
|
|
428
|
+
const rulePackDetails = (code, error) => {
|
|
429
|
+
if (code === 'RULES_PACK_CATALOG_UNAVAILABLE') {
|
|
430
|
+
let origin;
|
|
431
|
+
try { origin = new URL(error.catalogUrl).origin; } catch { return {}; }
|
|
432
|
+
if (!/^https?:\/\/[^/\s]+$/.test(origin)) return {};
|
|
433
|
+
return { catalogUrl: `${origin}${new URL(error.catalogUrl).pathname}`, platformOrigin: origin,
|
|
434
|
+
message: `The rule-pack catalog could not be read at ${origin}${new URL(error.catalogUrl).pathname}. If that is not the platform you installed this Kit from, run the website install command again; otherwise check the network and retry. Nothing was changed.`,
|
|
435
|
+
nextActions: [{ action: 'reinstall', kind: 'next', note: 'Install again from the platform you use; init records that address and doctor and the rule download use it.', cli: platformReinstallCommand(origin) }] };
|
|
436
|
+
}
|
|
437
|
+
if (code !== 'RULES_PACK_NOT_PUBLISHED' || typeof error?.platformOrigin !== 'string' || !/^https?:\/\/[^/\s]+$/.test(error.platformOrigin)
|
|
438
|
+
|| !/^r[1-9][0-9]*$/.test(error.ruleSet?.version ?? '') || !/^sha256:[a-f0-9]{64}$/.test(error.ruleSet?.sha256 ?? '')) return {};
|
|
439
|
+
return { platformOrigin: error.platformOrigin, ruleSet: { version: error.ruleSet.version, sha256: error.ruleSet.sha256 },
|
|
440
|
+
nextActions: [{ action: 'doctor', kind: 'next', note: 'See which Kit this platform recommends and install it.', cli: 'chrona doctor' },
|
|
441
|
+
{ action: 'init', kind: 'next', note: 'Only if this Kit is meant for another platform: initialize it for that platform so it fetches the rule set there.',
|
|
442
|
+
cli: 'chrona init --platform ORIGIN' }] };
|
|
443
|
+
};
|
|
444
|
+
const runtimeCacheReasons = ['parent-missing', 'symlink', 'not-directory', 'owner-mismatch', 'mode-not-0700', 'path-not-canonical', 'unavailable'];
|
|
445
|
+
const runtimeCacheBusyDetails = (error, includeLocalPaths) => {
|
|
446
|
+
const lock = includeLocalPaths && typeof error?.lock === 'string' && path.isAbsolute(error.lock) ? shellPath(error.lock) : 'CACHE_DIRECTORY/.download-lock';
|
|
447
|
+
const holderPid = Number.isSafeInteger(error?.holderPid) ? { holderPid: error.holderPid } : {};
|
|
448
|
+
if (error?.reason === 'holder-gone') return { reason: 'holder-gone', ...holderPid, retry: 'terminal',
|
|
449
|
+
message: `The process that was downloading into this cache (pid ${error.holderPid}) has ended and left its lock behind. Nothing is downloading. Remove the lock, then run the same command again; the download resumes.`,
|
|
450
|
+
nextActions: nextAction('remove-stale-lock', 'Remove the lock left by the ended process, then run the same command again.', `rm -r ${lock}`) };
|
|
451
|
+
if (error?.reason === 'holder-running') return { reason: 'holder-running', ...holderPid,
|
|
452
|
+
message: `Another Chrona command (pid ${error.holderPid}) is still downloading into this cache, and this one waited for it. The work is unchanged. Let it finish and run the same command again; it will reuse the download.`,
|
|
453
|
+
nextActions: nextAction('wait-and-retry', 'Wait for the other command to finish, then run the same command again.', `ps -p ${error.holderPid}`) };
|
|
454
|
+
if (error?.reason === 'holder-unknown') return { reason: 'holder-unknown',
|
|
455
|
+
message: 'This cache has a download lock and nothing says who holds it; an older Kit or a stopped process may have left it. The work is unchanged. If no other chrona command is running, remove the lock and run the same command again.',
|
|
456
|
+
nextActions: nextAction('remove-stale-lock', 'Only when no other chrona command is running: remove the lock, then run the same command again.', `rm -r ${lock}`) };
|
|
457
|
+
return {};
|
|
458
|
+
};
|
|
459
|
+
const runtimeCacheDetails = (code, error, includeLocalPaths) => code === 'RUNTIME_CACHE_BUSY' ? runtimeCacheBusyDetails(error, includeLocalPaths)
|
|
460
|
+
: code === 'INVALID_RUNTIME_CACHE' && runtimeCacheReasons.includes(error?.reason) ? { reason: error.reason } : {};
|
|
461
|
+
const ruleSuggestionDetails = (code, error) => code !== 'RULE_ID_UNKNOWN' || !Array.isArray(error?.suggestions) || !error.suggestions.length ? {} : {
|
|
462
|
+
suggestions: [...error.suggestions], nextActions: nextAction('explain', 'Read the closest rule.', `chrona explain ${error.suggestions[0]}`) };
|
|
463
|
+
const runtimeDownloadDetails = code => code !== 'RUNTIME_DOWNLOAD_TIMEOUT' ? {} : {
|
|
464
|
+
nextActions: nextAction('resume-download', 'Resume with the same state directory. The earlier build is already done, so test that snapshot; a new build needs a new --output-directory.',
|
|
465
|
+
'chrona test --snapshot DIR --state-directory SAME_PRIVATE_DIR') };
|
|
466
|
+
export function parseResolutions(values) {
|
|
467
|
+
const resolutions = {};
|
|
468
|
+
for (const value of values) {
|
|
469
|
+
const at = value.lastIndexOf('='), file = value.slice(0, at), choice = value.slice(at + 1);
|
|
470
|
+
if (at < 1 || !['mine', 'main'].includes(choice) || Object.hasOwn(resolutions, file)) throw failure('SOURCE_UPDATE_RESOLUTION_INVALID');
|
|
471
|
+
resolutions[file] = choice;
|
|
472
|
+
}
|
|
473
|
+
return resolutions;
|
|
474
|
+
}
|
|
475
|
+
const sourceUpdateCli = projectId => `chrona project-source-update --session-directory DIR --project-id ${projectId} --project DIR --workspace ABSOLUTE_DIR --name NEW_NAME`;
|
|
476
|
+
const diffAction = projectId => nextAction('diff', 'See each file you and main changed since your base, and which ones conflict.',
|
|
477
|
+
`chrona diff --project DIR --session-directory DIR --project-id ${projectId}`, { tool: 'project', action: 'diff' });
|
|
478
|
+
const resolveConflictsAction = projectId => nextAction('resolve-conflicts',
|
|
479
|
+
'Decide each listed file: rerun the update adding --resolve PATH=mine to keep your version or --resolve PATH=main to take main\'s, once per conflicting path. To keep both, take one side and merge the other by hand in the new project. Then commit in the new project and submit from there.',
|
|
480
|
+
`${sourceUpdateCli(projectId)} --resolve content/PATH=mine|main`, { tool: 'project', action: 'update_source' });
|
|
481
|
+
const contributionBaseDetails = (code, error) => {
|
|
482
|
+
if (code !== 'CONTRIBUTION_BASE_CHANGED' || !error?.baseRefusal) return {};
|
|
483
|
+
const { reason, recordedBase, currentHead } = error.baseRefusal;
|
|
484
|
+
const unknown = reason === 'local-base-unknown';
|
|
485
|
+
return { reason, recordedBase, currentHead,
|
|
486
|
+
message: unknown
|
|
487
|
+
? 'This project has no record of the main head it started from, so submitting could overwrite changes on main. Download the project, or name the head you started from with --expected-head; no candidate was sent.'
|
|
488
|
+
: 'Main has moved since this project was downloaded. Submitting now would drop the changes merged since. Bring them into a new project first; no candidate was sent.',
|
|
489
|
+
nextActions: unknown
|
|
490
|
+
? nextAction('download-source', 'Start from current main and carry the work over.', 'chrona project-source-download --session-directory DIR --project-id ID --workspace ABSOLUTE_DIR --name NEW_NAME', { tool: 'start_project', action: 'download_source' })
|
|
491
|
+
: [...nextAction('update-source', 'Create a new project from current main with local edits merged; conflicts are listed, not overwritten.', sourceUpdateCli('ID')),
|
|
492
|
+
...diffAction('ID')] };
|
|
493
|
+
};
|
|
494
|
+
const sourceUpdateDetails = code => code === 'SOURCE_UPDATE_CONFLICT' ? { nextActions: [...diffAction('ID'), ...resolveConflictsAction('ID')] }
|
|
495
|
+
: code === 'SOURCE_UPDATE_BASE_UNAVAILABLE' ? { nextActions: nextAction('download-source',
|
|
496
|
+
'Download current main into a new project; it records the base that diff and update compare against. Carry your edits over, then commit.',
|
|
497
|
+
'chrona project-source-download --session-directory DIR --project-id ID --workspace ABSOLUTE_DIR --name NEW_NAME', { tool: 'start_project', action: 'download_source' }) } : {};
|
|
498
|
+
const repositoryDetails = (code, error) => code === 'INVALID_SOURCE_REPOSITORY' && error?.reason === 'no-commit' ? { reason: 'no-commit',
|
|
499
|
+
message: 'This project is a Git repository with no commit yet; project-source-download leaves the downloaded files uncommitted. Commit them first, then run the same command again; nothing was sent.',
|
|
500
|
+
nextActions: nextAction('commit', 'Commit everything in the project, then run the original command again.', 'git -C DIR add -A && git -C DIR commit -m "Start from main"') } : {};
|
|
501
|
+
const memberLoginDetails = (code, error) => code === 'CREATOR_ACCESS_DENIED' && error?.memberLogin === true ? {
|
|
502
|
+
message: 'The platform refused an owner sign-in for this project. A project member signs in with the member scopes instead; nothing was changed.',
|
|
503
|
+
nextActions: nextAction('login', 'Sign in as a project member in a new session directory.', 'chrona login --platform ORIGIN --session-directory NEW_ABSOLUTE_DIR --project-id ID --scopes projects:read,source:read,contributions:write') } : {};
|
|
504
|
+
const submitBaseDetails = (code, error) => {
|
|
505
|
+
if (code !== 'SOURCE_RECEIVE_CONFLICT' || !['base-not-received', 'base-changed'].includes(error?.platformReason)) return {};
|
|
506
|
+
return error.platformReason === 'base-not-received' ? { reason: 'base-not-received',
|
|
507
|
+
message: 'The platform has no record of you receiving the main version this project is based on, so it will not let this submission replace main. Download current main into a new project, carry your edits over, commit and submit from there; nothing was changed.',
|
|
508
|
+
nextActions: nextAction('download-source', 'Start from the main version the platform knows you have.', 'chrona project-source-download --session-directory DIR --project-id ID --workspace ABSOLUTE_DIR --name NEW_NAME', { tool: 'start_project', action: 'download_source' }) }
|
|
509
|
+
: { reason: 'base-changed',
|
|
510
|
+
message: 'Main has moved since this project was based on it. Submitting now would drop the changes made since. Bring them into a new project first; nothing was changed.',
|
|
511
|
+
nextActions: nextAction('update-source', 'Create a new project from current main with your edits merged; conflicts are listed, not overwritten.', 'chrona project-source-update --session-directory DIR --project-id ID --project DIR --workspace ABSOLUTE_DIR --name NEW_NAME') };
|
|
512
|
+
};
|
|
513
|
+
const previewCauses = {
|
|
514
|
+
'ground-work': { message: 'Member preview does not support ground works yet (no document presentation and no declared scene). The work is fine, and retrying will not change this.',
|
|
515
|
+
note: 'Publish the submitted job as a private world, then have project members enter it to play.' },
|
|
516
|
+
'world-unbound': { message: 'This project has no World yet, so there is nothing to preview. Publish it to the testing channel once, then request preview again.',
|
|
517
|
+
note: 'Publish the submitted job to the testing channel once to create the World, then request preview again.' },
|
|
518
|
+
'preview-executor-missing': { message: 'This environment has no preview runner. Submit the work, then publish it to the testing channel and enter it from there.',
|
|
519
|
+
note: 'Preview is not available here; publish the submitted job to the testing channel and enter the work from there.' }
|
|
520
|
+
};
|
|
521
|
+
const previewUnsupportedDetails = (code, error) => {
|
|
522
|
+
if (code !== 'PREVIEW_NOT_SUPPORTED') return {};
|
|
523
|
+
const cause = Object.hasOwn(previewCauses, error?.platformReason) ? previewCauses[error.platformReason] : null;
|
|
524
|
+
return { reason: code, ...(cause ? { message: cause.message, platformHint: undefined } : {}),
|
|
525
|
+
nextActions: nextAction('publish', cause?.note ?? 'Publish the submitted job to the testing channel. If the project had no World yet, request preview again afterwards; otherwise enter the work from the testing channel.',
|
|
526
|
+
'chrona publish --session-directory DIR --project-id ID --job-id ID --channel testing --idempotency-key KEY', { tool: 'release', action: 'request' }) };
|
|
527
|
+
};
|
|
528
|
+
const liveBaselineDetails = (code, error) => !['LIVE_BASELINE_INVALID', 'LIVE_RULE_REJECTED'].includes(code) ? {} : Object.fromEntries(['reason', 'field', 'resourceId', 'problem', 'limit', 'duplicate', 'change', 'line']
|
|
529
|
+
.filter(key => ['string', 'number'].includes(typeof error?.[key])).map(key => [key, error[key]]));
|
|
530
|
+
const republishDetails = code => code === 'RELEASE_RETRY_V2_REQUIRES_REPUBLISH' ? { nextActions: republishActions() }
|
|
531
|
+
: code === 'RELEASE_SETTLING' ? { nextActions: [...nextAction('release-status', 'The failed release is still cleaning up. Read its status until it ends; cancelling again changes nothing.',
|
|
532
|
+
'chrona release-status --session-directory DIR --project-id ID --release-request-id ID', { tool: 'release', action: 'status' }), ...republishActions()] } : {};
|
|
533
|
+
const toolchainRefusalDetails = code => ['CREATOR_SOURCE_TOOLCHAIN_UNSUPPORTED', 'PREVIEW_SOURCE_KIT_MISMATCH', 'PREVIEW_SOURCE_KIT_NOT_SUPPORTED'].includes(code)
|
|
534
|
+
? { nextActions: projectUpgradeActions() } : {};
|
|
535
|
+
const importRecordDetails = (code, error) => code === 'PRESENTATION_IMPORT_RECORD_MISSING'
|
|
536
|
+
&& ['project-not-imported', 'prepared-source-not-imported'].includes(error?.reason) ? { reason: error.reason } : {};
|
|
537
|
+
const runtimeFeatureDetails = (code, error) => {
|
|
538
|
+
const missing = error?.missingRuntimeFeatures;
|
|
539
|
+
if (code !== 'NEEDS_CAPABILITY' || !Array.isArray(missing) || !missing.length || missing.length > 16
|
|
540
|
+
|| missing.some(v => typeof v !== 'string' || !/^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*@[1-9][0-9]*$/.test(v))) return {};
|
|
541
|
+
return { missingRuntimeFeatures: [...missing], message: `The local Runtime selected for this machine does not support ${missing.join(', ')}, which this work requires. `
|
|
542
|
+
+ (missing.includes(DOCUMENT_DEFERRED_FEATURE) ? 'To run it locally now, remove "load": "deferred" from content/presentation/document.json, or update' : 'Update')
|
|
543
|
+
+ ' to a Kit whose local Runtime supports it.' };
|
|
544
|
+
};
|
|
545
|
+
const platformFailureDetails = error => Number.isSafeInteger(error?.platformCode) && error.platformCode !== 0 ? { platformCode: error.platformCode,
|
|
546
|
+
...Object.fromEntries(['platformName', 'platformCategory', 'platformNext', 'platformHint', 'platformReason'].filter(key => typeof error[key] === 'string').map(key => [key, error[key]])),
|
|
547
|
+
...(typeof error.platformMessage === 'string' ? { platformMessage: error.platformMessage } : {}),
|
|
548
|
+
...(typeof error.requestId === 'string' ? { requestId: error.requestId } : {}) } : {};
|
|
549
|
+
|
|
550
|
+
function runtimeSupportDetails(error) {
|
|
551
|
+
const value = error?.runtimeSupport, current = value?.current;
|
|
552
|
+
if (error?.code !== 'RUNTIME_TARGET_UNSUPPORTED' || !current || !['darwin', 'linux', 'win32'].includes(current.os)
|
|
553
|
+
|| !['arm64', 'x64'].includes(current.arch) || !/^\d{1,4}\.\d{1,4}\.\d{1,4}$/.test(current.nodeVersion ?? '')
|
|
554
|
+
|| !Array.isArray(value.required) || value.required.length > 8
|
|
555
|
+
|| value.required.some(v => typeof v !== 'string' || !/^(?:\d{1,4}\.\d{1,4}\.\d{1,4}|\d{1,4}\.x \(\d{1,4}\.\d{1,4}\.\d{1,4} or newer\))$/.test(v))) return {};
|
|
556
|
+
const safe = { os: current.os, arch: current.arch, nodeVersion: current.nodeVersion };
|
|
557
|
+
return { runtimeSupport: { current: safe, required: [...value.required], instruction: describeRuntimeSupport(safe, value.required) } };
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
const nextOperations = { 'project.validate': 'validate', submit_source: 'submit', submit_contribution: 'contribute',
|
|
561
|
+
'start_project.new': 'create', 'project.entry_stats': 'entry-stats', 'start_project.new_document': 'import-presentation', 'start_project.import_document': 'import-presentation', 'start_project.download_source': 'create', 'project-source-download': 'create', 'start_project.from_material': 'create',
|
|
562
|
+
'asset.download': 'create', 'project.show': 'inspect', 'project.list': 'projects', 'sign_in.begin': 'login',
|
|
563
|
+
'sign_in.complete': 'login-complete', 'sign_in.status': 'auth-status', create_platform_project: 'remote-create',
|
|
564
|
+
'project.find_platform': 'remote-projects', list_materials: 'materials', 'release.preview': 'preview', 'release.cancel_preview': 'preview',
|
|
565
|
+
'release.request': 'publish', 'release.retry': 'publish', 'release-retry': 'publish', 'release.cancel': 'publish', 'release-cancel': 'publish',
|
|
566
|
+
'preview-cancel': 'preview', 'release.job': 'status', 'project.diff': 'diff' };
|
|
567
|
+
const nextAction = (action, note, cli, mcp) => [{ action, kind: 'next', note, cli, ...(mcp ? { mcp } : {}) }];
|
|
568
|
+
const otherRegistrationDetails = error => {
|
|
569
|
+
const workspace = typeof error.registeredWorkspace === 'string' ? error.registeredWorkspace : undefined;
|
|
570
|
+
const kept = `The AI tool already has a chrona-creator registration for another workspace${workspace ? ` (${workspace})` : ''}, usually from an earlier Kit. It was kept, and this Kit is installed but not registered. To use this Kit here, remove that registration and run the same init again; to keep the old one, do nothing.`;
|
|
571
|
+
const rerun = typeof error.retryCommand === 'string' ? nextAction('rerun-init', 'Then run the same init again; it registers this Kit for this workspace.', error.retryCommand) : [];
|
|
572
|
+
return { ...(workspace ? { registeredWorkspace: workspace } : {}), message: kept,
|
|
573
|
+
nextActions: error.userScopeClaude === true ? [...nextAction('remove-registration', kept, 'claude mcp remove chrona-creator -s user'), ...rerun]
|
|
574
|
+
: rerun.length ? [{ ...rerun[0], note: `${kept} Remove the chrona-creator entry from the AI tool's configuration first${error.format === 'codex' ? ' (the block between the Chrona creator managed MCP markers)' : ''}.` }] : [] };
|
|
575
|
+
};
|
|
576
|
+
export async function withLocalPlay(validation, projectRoot) {
|
|
577
|
+
if (validation?.valid !== true) return validation;
|
|
578
|
+
const local = (await assessCreatorTargetSupport({ projectRoot, probeLocalBuild: true })).targets?.local;
|
|
579
|
+
const { projectHostRunnableNotice } = await import('./authority-notice.mjs');
|
|
580
|
+
const { checkHostConsistency } = await import('./host-consistency.mjs');
|
|
581
|
+
return { ...validation, localPlay: { buildSupport: local?.buildSupport ?? 'unknown', reason: local?.reason ?? null },
|
|
582
|
+
hostRunnable: await projectHostRunnableNotice(projectRoot), hostConsistency: await checkHostConsistency() };
|
|
583
|
+
}
|
|
584
|
+
const firstRepair = (issues = []) => {
|
|
585
|
+
const open = issues.filter(row => row.level !== 'warn');
|
|
586
|
+
const issue = ['auto-fix', 'agent-fix', 'security-refuse', 'author-decide'].map(level => open.find(row => row.level === level)).find(Boolean);
|
|
587
|
+
if (!issue) return undefined;
|
|
588
|
+
const where = issue.file ? `${issue.file}${issue.line ? `:${issue.line}` : ''}: ` : '';
|
|
589
|
+
const lead = issue.level === 'author-decide' ? 'Ask the author about this first' : 'Do this one first';
|
|
590
|
+
const rest = open.length > 1 ? ` ${open.length - 1} more after it; chrona check lists them all.` : '';
|
|
591
|
+
return nextAction('repair-first', `${lead}. ${where}${issue.cause} ${issue.fix}${issue.doc ? ` See ${issue.doc}.` : ''}${rest}`,
|
|
592
|
+
issue.level === 'auto-fix' && issue.nextCommand ? issue.nextCommand : 'chrona check --project DIR', { tool: 'check' });
|
|
593
|
+
};
|
|
594
|
+
export function creatorNextActions(operation, result) {
|
|
595
|
+
if (/^document-imported/.test(result?.stage ?? '') && result.nextActions === undefined) return nextAction('check',
|
|
596
|
+
result.valid ? 'The page is in the work. Run every check, then commit.' : 'The page is in the work, and errors lists what to repair. Repair it, then run every check.',
|
|
597
|
+
'chrona check --project DIR', { tool: 'check' });
|
|
598
|
+
if (result?.status === 'selection-required' && result.next === undefined && result.nextActions === undefined
|
|
599
|
+
&& ['submit', 'remote-projects'].includes(nextOperations[operation] ?? operation)) {
|
|
600
|
+
if (result.code === 'CREATOR_PROJECT_NOT_ASSOCIATED' && result.canCreateProject === true) return nextAction('remote-create',
|
|
601
|
+
'No platform project belongs to this work yet. Create one with a name the user agrees to, then submit to it.',
|
|
602
|
+
'chrona remote-create --session-directory DIR --name NAME', { tool: 'create_platform_project' });
|
|
603
|
+
if (result.code === 'CREATOR_PROJECT_SELECTION_REQUIRED') return nextAction('choose-project',
|
|
604
|
+
'Several platform projects match. Let the user choose one of the listed projects, then submit to it.',
|
|
605
|
+
'chrona submit --session-directory DIR --project DIR --project-id ID', { tool: 'submit_source' });
|
|
606
|
+
return undefined;
|
|
607
|
+
}
|
|
608
|
+
if ((nextOperations[operation] ?? operation) === 'check' && result?.status === 'failed' && result.nextActions === undefined) return firstRepair(result.issues);
|
|
609
|
+
if (!['passed', 'passed-with-unchecked'].includes(result?.status) || result.next !== undefined && operation !== 'migrate' || result.nextActions !== undefined) return undefined;
|
|
610
|
+
const login = () => nextAction('login', 'Not signed in. Start sign-in only if the user wants platform access; they approve it in their own browser.',
|
|
611
|
+
'chrona login --platform ORIGIN --session-directory NEW_ABSOLUTE_DIR', { tool: 'sign_in', action: 'begin' });
|
|
612
|
+
const loginAgain = origin => nextAction('login', 'The sign-in expired and cannot be renewed. Sign in again in the same session directory; projects and local work are unchanged. Expiry here comes from the local record, so correct this device clock first if it is wrong.',
|
|
613
|
+
`chrona login --platform ${origin ?? 'ORIGIN'} --session-directory DIR`, { tool: 'sign_in', action: 'begin' });
|
|
614
|
+
const loginComplete = () => nextAction('login-complete', 'After the user approves the authorization URL in the browser, complete sign-in once.',
|
|
615
|
+
'chrona login-complete --session-directory DIR', { tool: 'sign_in', action: 'complete' });
|
|
616
|
+
const submit = (prefix) => nextAction('submit', `${prefix} Commit the intended changes, then submit the committed source.`,
|
|
617
|
+
'chrona submit --session-directory DIR --project DIR', { tool: 'submit_source' });
|
|
618
|
+
switch (nextOperations[operation] ?? operation) {
|
|
619
|
+
case 'validate': return result.valid !== true ? undefined : result.localPlay?.buildSupport === 'unsupported'
|
|
620
|
+
? submit('Static checks passed. This work cannot run in the isolated local runtime yet; play it on the platform after submitting.')
|
|
621
|
+
: [...nextAction('play', 'Static checks passed. Build a local snapshot and play it in the local runtime before submitting.',
|
|
622
|
+
'chrona build --project DIR --output-directory BUILD_DIR && chrona dev --snapshot BUILD_DIR --state-directory PRIVATE_DIR'),
|
|
623
|
+
...submit('When local play looks right:')];
|
|
624
|
+
case 'entry-stats': {
|
|
625
|
+
const top = result.failures?.[0];
|
|
626
|
+
if (!top) return undefined;
|
|
627
|
+
const note = `Most common failure: ${top.reasonCode}, ${top.count} times${top.action ? `; action: ${top.action}` : ''}.${top.hint ? ` ${top.hint}` : ''}`;
|
|
628
|
+
return top.owner === 'creator' ? nextAction('repair-work', `${note} Repair the work, then check it.`, 'chrona check --project DIR', { tool: 'check' })
|
|
629
|
+
: nextAction('read-reason', `${note} Read the rule behind this code.`, `chrona explain ${top.reasonCode}`, { tool: 'explain_rule' });
|
|
630
|
+
}
|
|
631
|
+
case 'refresh-document': return result.phase === 'planned' ? nextAction('apply-refresh', 'Review the listed files, then write them into document.json.', 'chrona refresh-document --project DIR --apply true')
|
|
632
|
+
: nextAction('check', result.phase === 'applied' ? 'document.json matches the files now. Check the work, then commit it.' : 'document.json already matches the files.', 'chrona check --project DIR', { tool: 'check' });
|
|
633
|
+
case 'test-rules': return submit('Rule cases passed.');
|
|
634
|
+
case 'import-presentation': return result.stage === 'source-prepared' && result.path
|
|
635
|
+
? nextAction('import-into-work', 'The page is prepared, not a work yet. Put the page into a work with one command instead: this also sets the manifest.', 'chrona import-presentation --project DIR --source ABSOLUTE_PAGE_DIR', { tool: 'start_project', action: 'import_document' }) : undefined;
|
|
636
|
+
case 'check': return submit(result.status === 'passed' ? 'Every check passed.' : 'Every check that ran passed; steps says which were not checked.');
|
|
637
|
+
case 'status': {
|
|
638
|
+
const job = result.result ?? result;
|
|
639
|
+
return job?.phase === 'source-received' && job.state === 'queued' && job.reason === 'PIPELINE_ADAPTER_PENDING' && job.jobId && job.projectId
|
|
640
|
+
? nextAction('publish', 'Source received. Nothing runs until a publish request; request the Testing workflow for this job when the user wants to publish.',
|
|
641
|
+
`chrona publish --session-directory DIR --project-id ${job.projectId} --job-id ${job.jobId} --channel testing --idempotency-key KEY`, { tool: 'release', action: 'request' })
|
|
642
|
+
: undefined;
|
|
643
|
+
}
|
|
644
|
+
case 'build': return nextAction('test', 'Local snapshot built. Exercise it locally before submitting.', 'chrona test --snapshot DIR --state-directory PRIVATE_DIR');
|
|
645
|
+
case 'test': return submit('Local test passed.');
|
|
646
|
+
case 'submit': return result.job?.jobId ? [...nextAction('publish', 'Source received. Nothing is checked yet: review and build run when this job is published to Testing. A project that was never published has no World yet and must be published once before any preview. Do not submit the same commit again.',
|
|
647
|
+
`chrona publish --session-directory DIR --project-id ${result.job.projectId} --job-id ${result.job.jobId} --channel testing --idempotency-key KEY`, { tool: 'release', action: 'request' }),
|
|
648
|
+
...nextAction('preview', 'Or, once the project has a World, request a private preview of this job to have it checked and play it without publishing.',
|
|
649
|
+
`chrona preview --session-directory DIR --project-id ${result.job.projectId} --job-id ${result.job.jobId} --idempotency-key KEY`, { tool: 'release', action: 'preview' }),
|
|
650
|
+
...(result.kitUpdate ? nextAction('update-kit', result.kitUpdate.instruction, result.kitUpdate.cli, { tool: 'kit_status' }) : []), ...legacyActions(result)] : undefined;
|
|
651
|
+
case 'contribute': return nextAction('contribution-status', 'Candidate received. Read its check result by the same key; do not submit it again.',
|
|
652
|
+
'chrona contribution-status --session-directory DIR --project DIR --project-id ID --idempotency-key KEY', { tool: 'release', action: 'contribution' });
|
|
653
|
+
case 'create': return nextAction('edit-then-check', 'The work is ready. Read AGENTS.md in it, change only content/**, for example the rules in content/gameplay/shared/, then run this after every change. It reports every problem at once.',
|
|
654
|
+
`chrona check --project ${typeof result.path === 'string' ? shellPath(path.basename(result.path)) : 'DIR'}`, { tool: 'check' });
|
|
655
|
+
case 'inspect': return nextAction('validate', 'Check the project statically before editing further or submitting.',
|
|
656
|
+
'chrona validate --project DIR', { tool: 'project', action: 'validate' });
|
|
657
|
+
case 'projects': return result.projects?.length ? nextAction('validate', 'Choose a listed project with the user, then check it statically.',
|
|
658
|
+
'chrona validate --project DIR', { tool: 'project', action: 'validate' })
|
|
659
|
+
: nextAction('create', 'No project here yet. Create one with a name and content ID the user agrees to.',
|
|
660
|
+
'chrona create NAME --content-id ugc.example.name', { tool: 'start_project', action: 'new' });
|
|
661
|
+
case 'auth-status': return result.authorization?.phase === 'not-started' ? login()
|
|
662
|
+
: result.authorization?.phase === 'pending' ? loginComplete()
|
|
663
|
+
: result.authorization?.phase === 'expired' ? loginAgain(result.authorization.origin) : undefined;
|
|
664
|
+
case 'login': return result.authorization?.phase === 'pending' ? loginComplete() : undefined;
|
|
665
|
+
case 'login-complete': return result.authorization?.phase === 'authorized' ? nextAction('remote-projects',
|
|
666
|
+
'Signed in. Find the platform project that belongs to this local work.', 'chrona remote-projects --session-directory DIR --project DIR',
|
|
667
|
+
{ tool: 'project', action: 'find_platform' }) : undefined;
|
|
668
|
+
case 'remote-create': case 'remote-projects': {
|
|
669
|
+
const id = result.result?.projectId ?? result.selectedProjectId;
|
|
670
|
+
return id ? nextAction('submit', 'Platform project ready. Commit the intended changes, then submit the committed source to it.',
|
|
671
|
+
`chrona submit --session-directory DIR --project DIR --project-id ${id}`, { tool: 'submit_source' }) : undefined;
|
|
672
|
+
}
|
|
673
|
+
case 'materials': return result.items?.length ? nextAction('create-from-material', 'Let the user choose a material by its displayName and version, then create a new project from it.',
|
|
674
|
+
'chrona source-download --session-directory DIR --project-id ID --manifest-hash sha256:HASH --output-directory NEW_DIR', { tool: 'start_project', action: 'from_material' }) : undefined;
|
|
675
|
+
case 'preview': return nextAction('preview-status', 'Read the preview state until it settles; validated is not ready.',
|
|
676
|
+
`chrona preview-status --session-directory DIR --project-id ${result.result?.projectId ?? 'ID'} --job-id ${result.result?.jobId ?? 'ID'}`,
|
|
677
|
+
{ tool: 'release', action: 'preview_status' });
|
|
678
|
+
case 'publish': return [...nextAction('release-status', 'Read publishing progress serially until it settles; queued is not playable.',
|
|
679
|
+
`chrona release-status --session-directory DIR --project-id ${result.result?.projectId ?? 'ID'} --release-request-id ${result.result?.releaseRequestId ?? 'ID'}`,
|
|
680
|
+
{ tool: 'release', action: 'status' }), ...legacyActions(result)];
|
|
681
|
+
case 'asset.create': return nextAction('check-asset', 'Wait, then read this paid task once; never create it again under a new ID.',
|
|
682
|
+
`chrona meshy poll --operation-id ${result.operationId}`, { tool: 'asset', action: 'check' });
|
|
683
|
+
case 'asset.check': return result.phase === 'SUCCEEDED' ? nextAction('download-asset', 'The task finished. Download and inspect it into the project.',
|
|
684
|
+
`chrona meshy download --project DIR --operation-id ${result.operationId}`, { tool: 'asset', action: 'download' }) : undefined;
|
|
685
|
+
case 'diff': return result.conflictPaths?.length ? resolveConflictsAction(result.projectId)
|
|
686
|
+
: result.summary?.mainChanged ? nextAction('update-source', 'Main changed since your base and nothing conflicts. Create a new project from current main with your edits merged.',
|
|
687
|
+
sourceUpdateCli(result.projectId)) : undefined;
|
|
688
|
+
case 'upgrade':
|
|
689
|
+
if (result.phase === 'planned') return nextAction('apply-upgrade', 'Review the listed metadata changes, then apply this exact plan.',
|
|
690
|
+
`chrona upgrade --project DIR --apply true --expected-head ${result.head}`);
|
|
691
|
+
if (result.phase === 'applied') return nextAction('validate', 'Metadata upgraded and content unchanged. Validate, commit the changed metadata files, then test or submit. To also move old realtime writing to the current writing, run chrona migrate --project DIR.',
|
|
692
|
+
'chrona validate --project DIR', { tool: 'project', action: 'validate' });
|
|
693
|
+
return undefined;
|
|
694
|
+
case 'migrate':
|
|
695
|
+
if (result.phase === 'clean') return nextAction('check', result.next, 'chrona check --project DIR', { tool: 'check' });
|
|
696
|
+
if (result.steps?.length && result.phase !== 'applied') return nextAction('apply-migrate', result.next, 'chrona migrate --project DIR --apply true', { tool: 'migrate' });
|
|
697
|
+
return nextAction('work-through-todos', result.next, 'chrona migrate --project DIR', { tool: 'migrate' });
|
|
698
|
+
default: return undefined;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
const transientCodes = new Set(['RUNTIME_IPC_TIMEOUT', 'CREATOR_REQUEST_TIMEOUT', 'CREATOR_REQUEST_FAILED', 'CREATOR_SERVICE_UNAVAILABLE', 'CREATOR_RATE_LIMITED', 'CREATOR_STORE_UNAVAILABLE',
|
|
703
|
+
'SOURCE_RECEIVER_UNAVAILABLE', 'SOURCE_UPLOAD_STALLED', 'CREATOR_SESSION_BUSY', 'SOURCE_PROVENANCE_BUSY', 'SOURCE_DOWNLOAD_BUSY', 'AUTHORIZATION_PENDING',
|
|
704
|
+
'CREATOR_AUTHORIZATION_POLL_EARLY', 'PREVIEW_CAPACITY_EXCEEDED', 'PREVIEW_ROOMS_FULL', 'RELEASE_REQUEST_CAPACITY_EXCEEDED', 'RUNTIME_CACHE_BUSY',
|
|
705
|
+
'RUNTIME_INSTALL_BUSY', 'RUNTIME_DOWNLOAD_TIMEOUT', 'RUNTIME_DOWNLOAD_FAILED', 'INSTALL_BUSY', 'COMPRESS_MODEL_TOOL_DOWNLOAD_FAILED']);
|
|
706
|
+
|
|
707
|
+
export function missingRequiredOptions(command, options = {}) {
|
|
708
|
+
if (!Object.hasOwn(commandHelp, command)) return [];
|
|
709
|
+
let depth = 0, outside = '';
|
|
710
|
+
for (const character of commandHelp[command].split(' (')[0]) {
|
|
711
|
+
if (character === '[') depth++; else if (character === ']') depth--; else if (depth === 0) outside += character;
|
|
712
|
+
}
|
|
713
|
+
return (outside.match(/--[a-z][a-z-]*/g) ?? []).filter(option => !Object.hasOwn(options, option));
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
const writableDetails = (error, includeLocalPaths) => {
|
|
717
|
+
if (typeof error?.writableFile !== 'string' || !/^0[0-7]{3}$/.test(error.writableMode ?? '')) return {};
|
|
718
|
+
const file = includeLocalPaths ? error.writableFile : path.basename(error.writableFile), target = includeLocalPaths ? shellPath(file) : 'PATH';
|
|
719
|
+
return { reason: 'writable-by-others', file, mode: error.writableMode,
|
|
720
|
+
message: `${file} has mode ${error.writableMode}, so another account on this machine could change it, and the Kit does not trust it. Nothing was changed. Run chmod go-w ${target}, then run the same command again.`,
|
|
721
|
+
nextActions: nextAction('fix-permissions', 'Remove write access for other accounts, then run the same command again.', `chmod go-w ${target}`) };
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
const presentationRefusalDetails = (code, error) => ['INVALID_PRESENTATION_IMPORT', 'PRESENTATION_BUNDLE_REJECTED', 'PRESENTATION_SOURCE_REJECTED', 'DOCUMENT_RESOURCE_MIME_UNSUPPORTED'].includes(code) && typeof error?.reason === 'string' && typeof error?.detail === 'string'
|
|
725
|
+
? { reason: error.reason, message: `${error.detail} No source was executed or overwritten.`, ...(typeof error.path === 'string' ? { file: error.path } : {}) } : {};
|
|
726
|
+
const requestOptionDetails = (code, error) => {
|
|
727
|
+
if (code !== 'INVALID_CREATOR_REQUEST' || !Object.hasOwn(creatorRequestOptions, error?.option)) return {};
|
|
728
|
+
const { option, expected } = creatorRequestOptions[error.option];
|
|
729
|
+
return { option, expected, message: `${option} is missing or malformed: expected ${expected}. This is about the value passed to the command, not your project files. Correct it and run the command again.`,
|
|
730
|
+
nextActions: nextAction('fix-option', `Set ${option} to ${expected}, then run the same command again.`, 'chrona help') };
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
const VALIDATION_ERROR_CODE = /^[A-Z][A-Z0-9_]{2,63}$/;
|
|
734
|
+
const VALIDATION_ROWS_LIMIT = 65536;
|
|
735
|
+
function validationFailureDetails(code, error) {
|
|
736
|
+
if (code !== 'SOURCE_VALIDATION_FAILED' || !Array.isArray(error?.validationErrors)) return {};
|
|
737
|
+
const rows = error.validationErrors.filter(row => VALIDATION_ERROR_CODE.test(row?.code ?? '')).map(row => ({ code: row.code,
|
|
738
|
+
...(typeof row.path === 'string' && row.path.length <= 200 && !row.path.startsWith('/') ? { path: row.path } : {}),
|
|
739
|
+
...(typeof row.message === 'string' ? { message: row.message.slice(0, 400) } : {}),
|
|
740
|
+
...(typeof row.repairHint === 'string' ? { repairHint: row.repairHint.slice(0, 400) } : {}) }));
|
|
741
|
+
let size = 2, kept = 0;
|
|
742
|
+
while (kept < rows.length && (size += JSON.stringify(rows[kept]).length + 1) <= VALIDATION_ROWS_LIMIT) kept++;
|
|
743
|
+
return rows.length ? { validationErrors: rows.slice(0, kept), ...(kept < rows.length ? { validationErrorsOmitted: rows.length - kept } : {}) } : {};
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
const ruleTestFailureDetails = (code, error) => ['CREATOR_RULE_TESTS_FAILED', BUILTIN_WRITE_CODE].includes(code) ? { ruleTests: error?.ruleTests }
|
|
747
|
+
: code === 'CREATOR_RULE_TESTS_TIMEOUT' ? { timeoutMs: error?.timeoutMs }
|
|
748
|
+
: code === 'CREATOR_RULE_TESTS_UNAVAILABLE' ? { reason: error?.reason, exitCode: error?.exitCode, exitSignal: error?.exitSignal } : {};
|
|
749
|
+
const ruleTestCodeExecuted = { [BUILTIN_WRITE_CODE]: true, CREATOR_RULE_TESTS_FAILED: true, CREATOR_RULE_TESTS_TIMEOUT: true, CREATOR_RULE_TESTS_UNAVAILABLE: null };
|
|
750
|
+
|
|
751
|
+
function failureResult(error, { executedCreatorCode = false, cleanup, includeLocalPaths = false, missingOptions = [] } = {}) {
|
|
752
|
+
const platformNamed = error?.platformName ?? error?.platformMessageCode;
|
|
753
|
+
const named = Number.isSafeInteger(error?.platformCode) && Object.hasOwn(messages, platformNamed) ? platformNamed : error?.code;
|
|
754
|
+
const code = Object.hasOwn(messages, named) || Object.hasOwn(meshyMessages, named) || Object.hasOwn(sceneImportMessages, named) ? named : 'CREATOR_OPERATION_FAILED';
|
|
213
755
|
const provenancePath = code === 'INVALID_RESOURCE' && typeof error?.field === 'string'
|
|
214
756
|
&& /^provenance(?:\.(?:resources|sceneSources)(?:\[\d+\])?(?:\.files\[\d+\])?)?$/.test(error.field)
|
|
215
|
-
? error.field : '
|
|
757
|
+
? error.field : code.startsWith('GENERATE_') && typeof error?.path === 'string' && /^[A-Za-z0-9_.:\[\]-]{1,200}$/.test(error.path)
|
|
758
|
+
? error.path : code === 'INVALID_PLATFORM_SOURCE' && typeof error?.path === 'string' && /^content\/[^\u0000-\u001f]{1,500}$/.test(error.path) ? error.path : '$';
|
|
216
759
|
const provenanceReason = code === 'INVALID_RESOURCE' && [
|
|
217
760
|
'invalid-declaration', 'unreferenced-media', 'stored-bytes-mismatch', 'duplicate-file',
|
|
218
761
|
'invalid-file', 'protected-source-required', 'invalid-manifest', 'document-bound'
|
|
219
762
|
].includes(error?.reason) ? error.reason : null;
|
|
763
|
+
const hostDetails = runtimeHostFailureDetails(error);
|
|
764
|
+
const category = typeof error?.platformCategory === 'string' ? error.platformCategory : undefined;
|
|
765
|
+
const retry = typeof hostDetails.retryable === 'boolean' ? hostDetails.retryable
|
|
766
|
+
: category !== undefined ? ['retryable', 'capacity'].includes(category) : transientCodes.has(code);
|
|
220
767
|
return { schemaVersion: '1.0.0', status: code === 'NEEDS_CAPABILITY' ? 'needs_capability' : 'failed', valid: false,
|
|
221
|
-
errors: [{ code, path: provenancePath, message: messages[code] ?? meshyMessages[code] ?? 'The creator operation could not be completed
|
|
768
|
+
errors: [{ code, path: provenancePath, message: messages[code] ?? meshyMessages[code] ?? sceneImportMessages[code] ?? 'The creator operation could not be completed, and sensitive input was left out of this report. Run chrona doctor, then run the same command again; if it repeats, send the command to platform support.',
|
|
769
|
+
retry: retry ? 'transient' : 'terminal',
|
|
222
770
|
...(provenanceReason ? { reason: provenanceReason } : {}),
|
|
223
|
-
...
|
|
771
|
+
...(['INVALID_CREATOR_REQUEST', 'INVALID_RELEASE_REQUEST'].includes(code) && missingOptions.length ? { missingOptions: [...missingOptions] } : {}),
|
|
772
|
+
...platformFailureDetails(error),
|
|
773
|
+
...(includeLocalPaths && code === 'HARNESS_CONFIG_CONFLICT' && typeof error?.registeredExecutable === 'string'
|
|
774
|
+
&& path.isAbsolute(error.registeredExecutable) && /\/bin\/chrona\.mjs$/.test(error.registeredExecutable) ? { registeredExecutable: error.registeredExecutable,
|
|
775
|
+
...(error.sameBinding === true && typeof error.retryCommand === 'string' ? { nextActions: nextAction('replace-registration',
|
|
776
|
+
'The AI tool still starts an earlier Kit for this same workspace and sign-in, and the new Kit is installed. Run this to replace exactly that registration, then reload the AI tool.', error.retryCommand) } : {}) } : {}),
|
|
777
|
+
...(includeLocalPaths && code === 'HARNESS_CONFIG_CONFLICT' && error?.otherBinding === true ? otherRegistrationDetails(error) : {}),
|
|
778
|
+
...rulesFailureDetails(code, error),
|
|
779
|
+
...rulePackDetails(code, error),
|
|
780
|
+
...callerMismatchDetails(code, error),
|
|
781
|
+
...capacityFailureDetails(code, error),
|
|
782
|
+
...uploadStallDetails(code, error),
|
|
783
|
+
...bindingDetails(code, error),
|
|
784
|
+
...assetDetails(code, error),
|
|
785
|
+
...validationFailureDetails(code, error),
|
|
786
|
+
...ruleTestFailureDetails(code, error),
|
|
787
|
+
...presentationRefusalDetails(code, error),
|
|
788
|
+
...kitMismatchDetails(code, error, includeLocalPaths && path.isAbsolute(error?.projectRoot ?? '') ? shellPath(error.projectRoot) : undefined),
|
|
789
|
+
...toolchainMismatchDetails(code, error),
|
|
790
|
+
...previewUnsupportedDetails(code, error),
|
|
791
|
+
...republishDetails(code),
|
|
792
|
+
...liveBaselineDetails(code, error),
|
|
793
|
+
...toolchainRefusalDetails(code),
|
|
794
|
+
...importRecordDetails(code, error),
|
|
795
|
+
...runtimeFeatureDetails(code, error),
|
|
796
|
+
...submitBaseDetails(code, error),
|
|
797
|
+
...repositoryDetails(code, error),
|
|
798
|
+
...memberLoginDetails(code, error),
|
|
799
|
+
...contributionBaseDetails(code, error),
|
|
800
|
+
...sourceUpdateDetails(code),
|
|
801
|
+
...runtimeDownloadDetails(code),
|
|
802
|
+
...(code === 'RUNTIME_DOWNLOAD_REJECTED' && Number.isSafeInteger(error?.httpStatus) ? { httpStatus: error.httpStatus, url: error.url } : {}),
|
|
803
|
+
...runtimeCacheDetails(code, error, includeLocalPaths),
|
|
804
|
+
...ruleSuggestionDetails(code, error),
|
|
805
|
+
...writableDetails(error, includeLocalPaths),
|
|
806
|
+
...requestOptionDetails(code, error),
|
|
807
|
+
...compressModelFailureDetails(error),
|
|
808
|
+
...hostDetails,
|
|
809
|
+
...runtimeSupportDetails(error),
|
|
224
810
|
...(code === 'CREATOR_SESSION_SCOPE_REQUIRED' ? { requiredScopes: Array.isArray(error?.requiredScopes) ? error.requiredScopes.filter(scope => ['projects:read', 'source:read', 'contributions:write'].includes(scope)) : [...creatorUploadScopes],
|
|
225
811
|
missingScopes: (Array.isArray(error?.requiredScopes) ? error.requiredScopes : creatorUploadScopes).filter(scope => Array.isArray(error?.missingScopes) && error.missingScopes.includes(scope)) } : {}) }],
|
|
226
|
-
executedCreatorCode: executedCreatorCode === false ? false : null, published: false, sensitiveValuesRedacted: true,
|
|
812
|
+
executedCreatorCode: Object.hasOwn(ruleTestCodeExecuted, code) ? ruleTestCodeExecuted[code] : executedCreatorCode === false ? false : null, published: false, sensitiveValuesRedacted: true,
|
|
813
|
+
...meshyFailureDetails(error, { includeLocalPaths }),
|
|
814
|
+
...sceneImportFailureDetails(error),
|
|
227
815
|
...(safeInstallTimings(error?.installationTimings) ? { installationTimings: safeInstallTimings(error.installationTimings) } : {}),
|
|
228
816
|
...(safeInstallDiagnostic(error?.installationDiagnostic) ? { installationDiagnostic: safeInstallDiagnostic(error.installationDiagnostic) } : {}),
|
|
817
|
+
...(code === 'SOURCE_UPDATE_RESOLUTION_INVALID' && Array.isArray(error?.resolutionPaths) ? { resolutionPaths: error.resolutionPaths
|
|
818
|
+
.filter(value => typeof value === 'string' && /^content\/(?:[A-Za-z0-9_.-]+\/)*[A-Za-z0-9_.-]+$/.test(value)).slice(0, 100) } : {}),
|
|
229
819
|
...(code === 'SOURCE_UPDATE_CONFLICT' && Array.isArray(error?.conflicts) ? { conflictPaths: error.conflicts
|
|
230
820
|
.filter(value => typeof value === 'string' && /^content\/(?:[A-Za-z0-9_.-]+\/)*[A-Za-z0-9_.-]+$/.test(value)).slice(0, 100) } : {}),
|
|
231
821
|
...(Number.isSafeInteger(error?.retryAfterMs) && error.retryAfterMs >= 0 ? { retryAfterMs: error.retryAfterMs } : {}),
|
|
232
822
|
...(cleanup ? { cleanup } : {}) };
|
|
233
823
|
}
|
|
234
824
|
|
|
825
|
+
export function safeFailure(error, options) {
|
|
826
|
+
const result = failureResult(error, options), [row] = result.errors;
|
|
827
|
+
const builtinWrites = row.ruleTests?.failed?.filter(item => item.code === BUILTIN_WRITE_CODE);
|
|
828
|
+
return { ...result, issues: builtinWrites?.length ? issuesFromValidation({ errors: builtinWrites })
|
|
829
|
+
: row.validationErrors ? issuesFromValidation({ errors: row.validationErrors, omitted: row.validationErrorsOmitted }) : [issueFromError(row, { message: row.message })] };
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export function withIssues(result) {
|
|
833
|
+
if (!result || result.issues !== undefined) return result;
|
|
834
|
+
const issues = issuesFromValidation(result);
|
|
835
|
+
return issues.length ? { ...result, issues } : result;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
const ruleText = rule => [`${rule.id} ${rule.title}`, `Level: ${rule.level}`, `Stages: ${rule.stages.join(', ')}`,
|
|
839
|
+
`Judged by: ${rule.judges.map(judge => `${judge.owner} (${judge.where})`).join('; ')}`,
|
|
840
|
+
...(rule.codes.length ? [`Codes: ${rule.codes.join(', ')}`] : []), `Fix: ${rule.fix.summary}`,
|
|
841
|
+
...(rule.fix.command ? [`Next: ${rule.fix.command}`] : []), ...(rule.fix.doc ? [`Doc: ${rule.fix.doc}`] : []), ''].join('\n');
|
|
842
|
+
|
|
843
|
+
function explainCommand(id, format) {
|
|
844
|
+
if (!id || id.startsWith('--') || ![undefined, 'text', 'json'].includes(format)) throw failure('INVALID_COMMAND');
|
|
845
|
+
if (format === 'json') return { status: 'passed', rule: explainRule(id) };
|
|
846
|
+
try {
|
|
847
|
+
process.stdout.write(ruleText(explainRule(id)));
|
|
848
|
+
process.exitCode = 0;
|
|
849
|
+
} catch (error) {
|
|
850
|
+
if (error?.code !== 'RULE_ID_UNKNOWN') throw error;
|
|
851
|
+
process.stdout.write(`No rule has this id. Closest: ${error.suggestions.join(', ')}\n`);
|
|
852
|
+
process.exitCode = 1;
|
|
853
|
+
}
|
|
854
|
+
return null;
|
|
855
|
+
}
|
|
856
|
+
|
|
235
857
|
export async function listCreatorCapabilities(id) {
|
|
236
|
-
const
|
|
858
|
+
const resolved = await kitRules(kitRoot), rules = await loadVerifiedRuleSet(resolved), registry = rules.registry;
|
|
237
859
|
const template = await import('./project-validation.mjs');
|
|
238
|
-
const checked = await template.validateProject({ projectRoot: path.join(kitRoot, 'templates/public-untrusted'), platformRoot:
|
|
860
|
+
const checked = await template.validateProject({ projectRoot: path.join(kitRoot, 'templates/public-untrusted'), platformRoot: resolved.directory });
|
|
239
861
|
if (!checked.report.valid) throw failure('KIT_SNAPSHOT_INCOMPATIBLE');
|
|
240
|
-
return queryCapabilities({ registry, query: { schemaVersion: '1.0.0', registryVersion: registry.registryVersion,
|
|
862
|
+
return rules.queryCapabilities({ registry, query: { schemaVersion: '1.0.0', registryVersion: registry.registryVersion,
|
|
241
863
|
executionTier: 'public-untrusted', ...(id ? { id } : {}) } });
|
|
242
864
|
}
|
|
243
865
|
|
|
244
866
|
const optionsFor = {
|
|
245
867
|
'update-presentation-project': ['--project','--prepared-source','--expected-head','--expected-changes','--apply'],
|
|
246
868
|
'prepare-source-git': ['--project', '--build-result', '--preserve-paths', '--binary-paths', '--apply'],
|
|
869
|
+
'compress-model': ['--input', '--output', '--texture-size', '--simplify', '--route', '--apply'],
|
|
870
|
+
'live-baseline': ['--project', '--input', '--apply'],
|
|
247
871
|
'bind-presentation-project': ['--project', '--name', '--apply'],
|
|
248
|
-
'import-presentation': ['--source', '--workspace', '--name', '--entry', '--apply', '--bundle', '--content-id', '--content-version', '--resource-recipe', '--resource-cache'],
|
|
872
|
+
'import-presentation': ['--source', '--project', '--workspace', '--name', '--entry', '--apply', '--bundle', '--content-id', '--content-version', '--resource-recipe', '--resource-cache'],
|
|
249
873
|
'prepare-presentation-resources': ['--recipe', '--cache-directory', '--offline'],
|
|
250
874
|
'creation-support': ['--project', '--probe-local-build'],
|
|
251
|
-
upgrade: ['--project', '--apply', '--expected-head', '--recover'],
|
|
875
|
+
upgrade: ['--project', '--apply', '--expected-head', '--recover', '--platform', '--allow-local-http'],
|
|
876
|
+
migrate: ['--project', '--apply', '--expected-head'],
|
|
252
877
|
materials: ['--session-directory', '--project-id'],
|
|
253
878
|
projects: ['--workspace'],
|
|
254
879
|
'remote-projects': ['--session-directory', '--project'],
|
|
255
|
-
create: ['--workspace', '--content-id', '--source-package', '--source-manifest-hash'], init: ['--workspace', '--config', '--format', '--session-directory', '--platform', '--allow-local-http', '--release-url', '--harness', '--tools-root', '--replace-from', '--runtime-source', '--runtime-origin', '--offline'],
|
|
256
|
-
validate: ['--project'], inspect: ['--project'], capabilities: ['--id'], mcp: ['--workspace', '--session-directory', '--platform', '--allow-local-http', '--runtime-source', '--runtime-origin', '--offline'],
|
|
257
|
-
build: ['--project', '--output-directory'],
|
|
258
|
-
|
|
259
|
-
|
|
880
|
+
create: ['--workspace', '--content-id', '--source-package', '--source-manifest-hash', '--example', '--document-source', '--document-entry'], init: ['--workspace', '--config', '--format', '--session-directory', '--platform', '--allow-local-http', '--release-url', '--harness', '--tools-root', '--replace-from', '--runtime-source', '--runtime-origin', '--offline'],
|
|
881
|
+
'fuzz-rules': ['--project', '--seed', '--runs', '--ticks', '--players'], explain: ['--format'], validate: ['--project', '--platform', '--allow-local-http'], check: ['--project', '--format', '--session-directory', '--project-id', '--fix', '--apply', '--platform', '--allow-local-http'], 'test-rules': ['--project', '--platform', '--allow-local-http'], generate: ['--project', '--apply'], inspect: ['--project'], capabilities: ['--id', '--map'], mcp: ['--workspace', '--session-directory', '--platform', '--allow-local-http', '--runtime-source', '--runtime-origin', '--offline'],
|
|
882
|
+
build: ['--project', '--output-directory', '--platform', '--allow-local-http'],
|
|
883
|
+
'local-preview': ['--project', '--no-open', '--state-directory', '--runtime-id', '--platform', '--allow-local-http', '--offline'],
|
|
884
|
+
rebundle: ['--project', '--entry'],
|
|
885
|
+
'author-tools': ['--project', '--apply'],
|
|
886
|
+
'restore-assets': ['--project', '--from', '--check'],
|
|
887
|
+
dev: ['--snapshot', '--project', '--output-directory', '--runtime-id', '--state-directory', '--runtime-source', '--runtime-origin', '--platform', '--allow-local-http', '--offline'],
|
|
888
|
+
test: ['--snapshot', '--project', '--output-directory', '--runtime-id', '--state-directory', '--runtime-source', '--runtime-origin', '--platform', '--allow-local-http', '--offline'],
|
|
889
|
+
playtest: ['--snapshot', '--project', '--output-directory', '--artifacts-directory', '--keys', '--guest-keys', '--vehicles', '--vehicle-keys', '--players', '--seconds', '--timeout-seconds', '--browser', '--runtime-id', '--state-directory', '--runtime-source', '--runtime-origin', '--platform', '--allow-local-http', '--offline', '--compare'],
|
|
260
890
|
login: ['--platform', '--session-directory', '--project-id', '--scopes', '--allow-local-http'],
|
|
261
891
|
'login-complete': ['--session-directory'], logout: ['--session-directory'],
|
|
262
892
|
'auth-status': ['--session-directory'], 'remote-create': ['--session-directory', '--name'],
|
|
263
893
|
'source-download': ['--session-directory', '--project-id', '--manifest-hash', '--output-directory'],
|
|
264
894
|
'project-source-download': ['--session-directory', '--project-id', '--workspace', '--name'],
|
|
265
|
-
'project-source-update': ['--session-directory', '--project-id', '--project', '--workspace', '--name'],
|
|
895
|
+
'project-source-update': ['--session-directory', '--project-id', '--project', '--workspace', '--name', '--resolve'],
|
|
896
|
+
diff: ['--project', '--session-directory', '--project-id'],
|
|
266
897
|
status: ['--session-directory', '--project-id', '--job-id'],
|
|
898
|
+
docs: [],
|
|
899
|
+
'refresh-document': ['--project', '--apply'],
|
|
267
900
|
preflight: ['--session-directory', '--project-id'],
|
|
901
|
+
'entry-stats': ['--session-directory', '--project-id'],
|
|
268
902
|
'source-status': ['--session-directory', '--project-id'],
|
|
269
903
|
preview: ['--session-directory', '--project-id', '--job-id', '--idempotency-key', '--lifetime-seconds'],
|
|
270
904
|
'preview-status': ['--session-directory', '--project-id', '--job-id'],
|
|
271
905
|
'preview-cancel': ['--session-directory', '--project-id', '--job-id', '--preview-id'],
|
|
272
|
-
publish: ['--session-directory', '--project-id', '--job-id', '--channel', '--idempotency-key'],
|
|
906
|
+
publish: ['--session-directory', '--project-id', '--job-id', '--channel', '--idempotency-key', '--project'],
|
|
273
907
|
'release-status': ['--session-directory', '--project-id', '--release-request-id'],
|
|
274
908
|
'release-cancel': ['--session-directory', '--project-id', '--release-request-id', '--expected-progress-revision'],
|
|
275
909
|
'release-retry': ['--session-directory', '--project-id', '--release-request-id', '--expected-progress-revision', '--idempotency-key'],
|
|
276
|
-
submit: ['--session-directory', '--project', '--project-id', '--expected-head', '--idempotency-key'],
|
|
277
|
-
contribute: ['--session-directory', '--project', '--project-id', '--expected-head', '--idempotency-key'],
|
|
910
|
+
submit: ['--session-directory', '--project', '--project-id', '--expected-head', '--idempotency-key', '--skip-rule-tests'],
|
|
911
|
+
contribute: ['--session-directory', '--project', '--project-id', '--expected-head', '--idempotency-key', '--skip-rule-tests'],
|
|
278
912
|
'contribution-status': ['--session-directory', '--project', '--project-id', '--idempotency-key'],
|
|
279
|
-
version: [], help: []
|
|
913
|
+
version: [], help: [], doctor: ['--platform', '--session-directory', '--project-id', '--config', '--format', '--allow-local-http']
|
|
280
914
|
};
|
|
281
915
|
|
|
916
|
+
const commandHelp = Object.freeze({
|
|
917
|
+
'bind-presentation-project': 'bind-presentation-project --project PREPARED_DIR --name NAME [--apply true] (plan by default; explicit author manifest/ECS/rules required; unchanged content, no template gameplay, upload or approval)',
|
|
918
|
+
'import-presentation': 'import-presentation --source ABSOLUTE_DIR [--project DIR, to put the page into a work and set its manifest] [--workspace ABSOLUTE_DIR --name NEW_NAME, to only prepare it] [--entry index.html] [--bundle true] [--content-id ugc.ID --content-version X.Y.Z] [--resource-recipe FIXED_JSON --resource-cache PRIVATE_CACHE] [--apply true] (plan by default; fixed bundling and shared Document source declaration; outer Builder binding pending, no upload)',
|
|
919
|
+
'prepare-presentation-resources': 'prepare-presentation-resources --recipe FIXED_JSON --cache-directory PRIVATE_CACHE [--offline true] (fixed bytes/digest and original license files, no runtime network)',
|
|
920
|
+
'creation-support': 'creation-support [--project DIR] [--probe-local-build false] (validator and original static producer, no author execution or Host; preview/public unknown without observations)',
|
|
921
|
+
meshy: 'meshy help (optional creator-owned Meshy key, generation and resumable tasks; no platform credits)',
|
|
922
|
+
scene: sceneHelp.import,
|
|
923
|
+
'compress-model': compressModelHelp,
|
|
924
|
+
'live-baseline': 'live-baseline --project DIR --input FILE [--apply true] (write the saved live changes into content/assets/runtime/live-baseline.json and declare it in content/manifest.json resources as live-baseline with its sha256, bytes and provenance; plan by default)',
|
|
925
|
+
upgrade: 'upgrade --project DIR [--apply true --expected-head SHA | --recover true] [--platform ORIGIN] (plan by default; preserve content and project identity; no dependency install, commit or upload)',
|
|
926
|
+
migrate: 'migrate --project DIR [--apply true] [--expected-head SHA] (move a work to the current realtime writing; plan by default; --apply true upgrades the Kit record and makes the mechanical changes; the rest comes back as todos with file, line, old writing, new writing and document; rerun until clean; no commit or upload)',
|
|
927
|
+
materials: 'materials --session-directory DIR --project-id ID (current authorized source names and pins; no download or grant)',
|
|
928
|
+
projects: 'projects [--workspace DIR] (read-only direct project discovery; no automatic selection)',
|
|
929
|
+
'remote-projects': 'remote-projects --session-directory DIR [--project DIR] (complete authenticated discovery by local stable identity; no creation or upload)',
|
|
930
|
+
init: 'init (official release defaults; current project directory; persistent install, preserved config, no login). Optional: --harness auto|codex|claude --tools-root DIR --workspace DIR --release-url URL. Local persistent install: --platform http://127.0.0.1:8137 --allow-local-http true (same-Origin release and runtime mirror; no Testing fallback). Explicit registration: --config FILE --format json|codex --platform ORIGIN. Explicit same-scope upgrade: --replace-from ABSOLUTE_OLD_BIN',
|
|
931
|
+
create: 'create NAME --content-id ugc.example.name [--workspace DIR] [--source-package DIR --source-manifest-hash sha256:HASH | --example coin-rush|open-creation] [--document-source ABSOLUTE_PAGE_DIR [--document-entry index.html]]',
|
|
932
|
+
explain: 'explain ID [--format text|json] (read-only: full rule by id such as CHK-KIT-001 or by error code; an unknown id lists the closest rules)',
|
|
933
|
+
validate: 'validate [--project DIR] [--platform ORIGIN] (--platform fetches this Kit\'s rule set from that platform when it is not cached; also on check, test-rules, build and upgrade)', inspect: 'inspect [--project DIR]',
|
|
934
|
+
check: 'check --project DIR [--fix true [--apply true]] [--format json] [--session-directory DIR] [--project-id ID] (every check in one pass, stopping at none: static validation, declared rule cases in the same restricted child process as test-rules, entity budget, resource size, rule set and Kit version, platform preflight. Exit 0 with only warnings. Platform items need a session and report not-checked without one, or when the platform cannot answer; then status is passed-with-unchecked, never passed)',
|
|
935
|
+
generate: 'generate [--project DIR] [--apply true] (plan by default; expand chrona.generate.json into components, prefabs, scene targets, interactions, network intents and lifecycle test steps; rules, budgets and presentation stay hand-written)',
|
|
936
|
+
'fuzz-rules': 'fuzz-rules [--project DIR] [--seed N] [--runs 1..64] [--ticks 1..3600] [--players 1..50] (drive the shared rules with random declared actions, ticks, joins and leaves in the same restricted child process as test-rules; fails only when a rule throws or goes over a limit, it does not judge behavior; no browser, no upload)',
|
|
937
|
+
'test-rules': 'test-rules [--project DIR] (run the declared shared rule cases in a restricted child process on this machine: no network, no writes outside its private temporary directory; no runtime download, scene profile or platform preview)',
|
|
938
|
+
build: 'build [--project DIR] --output-directory NEW_DIR [--platform ORIGIN] (static local snapshot; not formal review)',
|
|
939
|
+
'local-preview': 'local-preview [--project DIR] [--no-open true] [--state-directory PRIVATE_DIR] [--runtime-id ID] [--platform ORIGIN [--allow-local-http true]] [--offline true] (rebuild the page bundle of a Document work when its code changed, start the local room and open it in the default browser; one player only; Ctrl-C ends it)',
|
|
940
|
+
'author-tools': 'author-tools [--project DIR] [--apply true] (plan by default; write setup.sh, setup.command, setup.ps1, preview.command, preview.ps1 and scripts/install-kit.mjs into the work for this platform, never overwriting a file; commit them afterwards)',
|
|
941
|
+
rebundle: 'rebundle [--project DIR] [--entry index.html] (rebuild view/module.bundle.js of a Document work from its page code, from the remembered page directory or content/presentation; says whether anything changed and what to commit)',
|
|
942
|
+
'restore-assets': 'restore-assets [--project DIR] [--from DIR] [--check true] (put back the files listed in chrona.assets.json, fetched by digest from the platform\'s public copy of published files or from a local copy; --check only reports)',
|
|
943
|
+
dev: 'dev (--snapshot DIR | --project DIR --output-directory NEW_DIR) [--runtime-id ID] --state-directory PRIVATE_DIR [--runtime-source catalog|local --runtime-origin LOOPBACK_ORIGIN --allow-local-http true] [--offline true] (local never falls back; foreground; Ctrl-C stops this run)',
|
|
944
|
+
test: 'test (--snapshot DIR | --project DIR --output-directory NEW_DIR) [--runtime-id ID] --state-directory PRIVATE_DIR [--runtime-source catalog|local --runtime-origin LOOPBACK_ORIGIN --allow-local-http true] [--offline true] (fixed isolated declaration suite)',
|
|
945
|
+
playtest: 'playtest [--project DIR | --snapshot DIR] [--keys SCRIPT] [--guest-keys SCRIPT] [--vehicles true|false] [--vehicle-keys SCRIPT] [--players 1|2] [--seconds N] [--timeout-seconds N] [--artifacts-directory NEW_DIR] [--compare EARLIER_REPORT] [--output-directory NEW_DIR] [--state-directory PRIVATE_DIR] [--browser PATH] [--runtime-id ID] [--runtime-source catalog|local --runtime-origin LOOPBACK_ORIGIN --allow-local-http true] [--platform ORIGIN] [--offline true] (runs the work in the local room in a headless Chrome-family browser with a new temporary profile, presses keys and prints one JSON report: frame rate, long tasks, input to next frame, action results, update rate, resource times, console errors, first error; a work that declares vehicles also gets in, out and in again; see docs/playtest.md)',
|
|
946
|
+
capabilities: 'capabilities [--id ID] [--map] (--map: what a work can do, what needs a workaround and what is out of reach)', mcp: 'mcp [--workspace DIR] [--session-directory DIR] [--platform ORIGIN]', version: 'version', doctor: 'doctor [--platform ORIGIN] [--session-directory DIR [--project-id ID]] [--config FILE --format json|codex] (read-only: Kit version and package against the platform, local Node for local play, sign-in state, AI registration and the chrona on PATH, each with the next command; writes nothing except an expired sign-in renewed for --project-id)',
|
|
947
|
+
login: 'login --platform ORIGIN --session-directory NEW_ABSOLUTE_DIR [--project-id ID] [--scopes CSV] [--allow-local-http true] (contributions:write requires an explicit project ID; it does not authorize owner submission or release)',
|
|
948
|
+
'login-complete': 'login-complete --session-directory DIR', logout: 'logout --session-directory DIR',
|
|
949
|
+
'prepare-source-git': 'prepare-source-git --project DIR --build-result FILE --preserve-paths exact,paths [--binary-paths exact,paths] [--apply true] (Git metadata only; preserve imported bytes and normal authored-source checks)',
|
|
950
|
+
'update-presentation-project': 'update-presentation-project --project DIR --prepared-source DIR --expected-head SHA [--expected-changes exact,paths --apply true] (normal prepared content update; preserve existing project identity)',
|
|
951
|
+
'auth-status': 'auth-status --session-directory DIR', 'remote-create': 'remote-create --session-directory DIR --name NAME',
|
|
952
|
+
'source-download': 'source-download --session-directory DIR --project-id ID --manifest-hash sha256:HASH --output-directory ABSOLUTE_PRIVATE_DIR',
|
|
953
|
+
'project-source-download': 'project-source-download --session-directory DIR --project-id ID --workspace ABSOLUTE_DIR --name NEW_NAME (server-pinned current main; creates a new uncommitted local project)',
|
|
954
|
+
'project-source-update': 'project-source-update --session-directory DIR --project-id ID --project EXISTING_DIR --workspace ABSOLUTE_DIR --name NEW_NAME [--resolve content/PATH=mine|main ...] (verified old base + current main; never overwrites the original; conflicts list files; --resolve once per conflicting file keeps your version or takes main\'s)',
|
|
955
|
+
diff: 'diff [--project DIR] [--session-directory DIR --project-id ID] (read-only: content files added, modified or deleted since the downloaded main base; with a session also what main changed since that base and which files project-source-update would refuse as conflicts)',
|
|
956
|
+
status: 'status --session-directory DIR --project-id ID [--job-id ID]',
|
|
957
|
+
preflight: 'preflight --session-directory DIR --project-id ID (installed tools, capabilities and current eligibility; no grant)',
|
|
958
|
+
'refresh-document': 'refresh-document --project DIR [--apply true] (for a Document work that was not imported: recompute the byte length and digest of each file document.json lists; plan by default, keeps kind, type and load)',
|
|
959
|
+
docs: 'docs [NAME] (print a Kit document by name or by any docs/ or contracts/ path a guide gives, such as ai-index or contracts/ugc/gameplay-tests/v1/README.md; without NAME, list them)',
|
|
960
|
+
'entry-stats': 'entry-stats --session-directory DIR --project-id ID (how players entered the published World in the last 24 hours: counts, success rate, time to play and failure reasons with hints; read-only, no player identity)',
|
|
961
|
+
'source-status': 'source-status --session-directory DIR --project-id ID (verified association and current server head; no mutation)',
|
|
962
|
+
submit: 'submit --session-directory DIR --project DIR [--project-id ID] [--expected-head none|SHA] [--idempotency-key KEY] [--skip-rule-tests true]',
|
|
963
|
+
contribute: 'contribute --session-directory DIR --project DIR --project-id ID [--expected-head MAIN_SHA] [--idempotency-key KEY] [--skip-rule-tests true] (separate candidate blobs and pending key; no owner submission or publication)',
|
|
964
|
+
'contribution-status': 'contribution-status --session-directory DIR --project DIR --project-id ID [--idempotency-key KEY] (author-only by-key identity, then exact candidate GET for uncertain check/accept; missing preserves pending)',
|
|
965
|
+
preview: 'preview --session-directory DIR --project-id ID --job-id ID --idempotency-key KEY [--lifetime-seconds 900..4500] (omitted server default 900; original key/lifetime retained, no unknown POST retry)',
|
|
966
|
+
'preview-status': 'preview-status --session-directory DIR --project-id ID --job-id ID',
|
|
967
|
+
'preview-cancel': 'preview-cancel --session-directory DIR --project-id ID --job-id ID --preview-id ID',
|
|
968
|
+
publish: 'publish --session-directory DIR --project-id ID --job-id ID --channel testing --idempotency-key KEY [--project DIR] (explicit Testing request; queued is not playable; --project, default the current directory, adds a legacyPatterns summary of old realtime writing)',
|
|
969
|
+
'release-status': 'release-status --session-directory DIR --project-id ID --release-request-id ID (release reads/retry: registered HTTP loopback 240s, hosted HTTPS 270s; other limits unchanged; no automatic retry)',
|
|
970
|
+
'release-cancel': 'release-cancel --session-directory DIR --project-id ID --release-request-id ID [--expected-progress-revision N] (reads current revision when omitted; cancellation intent is not completed cleanup)',
|
|
971
|
+
'release-retry': 'release-retry --session-directory DIR --project-id ID --release-request-id ID --idempotency-key KEY [--expected-progress-revision N] (explicit allowed failure retry; preserve key and revision after an uncertain reply)'
|
|
972
|
+
});
|
|
973
|
+
|
|
282
974
|
export async function runCreatorCli(args, { initialize = initializeInstalledCreator } = {}) {
|
|
283
975
|
const emit = value => process.stdout.write(`${JSON.stringify(value, null, 2)}\n`);
|
|
284
|
-
|
|
976
|
+
reportRuleDownloadProgress(({ url, receivedBytes, totalBytes, resumedFrom }) => process.stderr.write(`${JSON.stringify({
|
|
977
|
+
type: 'creator-rules-download-progress', url, receivedBytes, totalBytes, resumedFrom })}\n`));
|
|
978
|
+
let localExecution = { executedCreatorCode: false }, invocation = null;
|
|
285
979
|
try {
|
|
286
980
|
const values = [...args];
|
|
287
981
|
let command = values.shift() ?? 'help';
|
|
288
982
|
if (command === '--help') command = 'help';
|
|
289
983
|
if (command === '--version') command = 'version';
|
|
984
|
+
if (command === 'help' && Object.hasOwn(commandHelp, values[0] ?? '') || values.some(value => value === '--help' || value === '-h')) {
|
|
985
|
+
const topic = command === 'help' ? values[0] : command;
|
|
986
|
+
if (!Object.hasOwn(commandHelp, topic)) throw failure('INVALID_COMMAND');
|
|
987
|
+
emit({ status: 'passed', command: topic, usage: commandHelp[topic] }); process.exitCode = 0; return;
|
|
988
|
+
}
|
|
290
989
|
if (command === 'meshy') {
|
|
291
|
-
const result = await runMeshyCli(values); emit(result); process.exitCode = result.status === 'passed' ? 0 : 1; return;
|
|
990
|
+
const result = await runMeshyCli(values); emit(withIssues(result)); process.exitCode = result.status === 'passed' ? 0 : 1; return;
|
|
991
|
+
}
|
|
992
|
+
if (command === 'scene') {
|
|
993
|
+
const result = await runSceneCli(values); emit(withIssues(result)); process.exitCode = result.status === 'passed' ? 0 : 1; return;
|
|
292
994
|
}
|
|
293
995
|
if (!Object.hasOwn(optionsFor, command)) throw failure('INVALID_COMMAND');
|
|
294
|
-
const name =
|
|
295
|
-
|
|
996
|
+
const name = ['create', 'explain', 'docs'].includes(command) ? values.shift() : undefined;
|
|
997
|
+
let options = {};
|
|
296
998
|
for (let i = 0; i < values.length; i += 2) {
|
|
297
|
-
if (
|
|
298
|
-
|
|
999
|
+
if (command === 'capabilities' && values[i] === '--map') { options['--map'] = 'true'; i--; continue; }
|
|
1000
|
+
const repeated = values[i] === '--resolve';
|
|
1001
|
+
if (!optionsFor[command].includes(values[i]) || !repeated && Object.hasOwn(options, values[i]) || !values[i + 1] || values[i + 1].startsWith('--')) throw failure('INVALID_COMMAND');
|
|
1002
|
+
if (repeated) (options[values[i]] ??= []).push(values[i + 1]); else options[values[i]] = values[i + 1];
|
|
1003
|
+
}
|
|
1004
|
+
invocation = { command, options };
|
|
1005
|
+
if (options['--platform'] !== undefined && ['validate', 'check', 'test-rules', 'build', 'upgrade'].includes(command)) {
|
|
1006
|
+
const allowLocalHttp = options['--allow-local-http'] === 'true';
|
|
1007
|
+
await resolveKitRules({ platform: creatorOrigin(options['--platform'], allowLocalHttp), allowLocalHttp });
|
|
299
1008
|
}
|
|
300
1009
|
let result;
|
|
1010
|
+
if (command === 'explain') {
|
|
1011
|
+
result = explainCommand(name, options['--format']);
|
|
1012
|
+
if (!result) return;
|
|
1013
|
+
}
|
|
301
1014
|
const workspaceRoot = options['--workspace'] ?? process.cwd();
|
|
302
1015
|
if (['init', 'mcp'].includes(command) && options['--allow-local-http'] !== undefined
|
|
303
1016
|
&& (options['--allow-local-http'] !== 'true' || options['--platform'] === undefined && options['--runtime-source'] !== 'local')) throw failure('INVALID_COMMAND');
|
|
304
|
-
if (command === 'help') result = { status: 'passed', commands:
|
|
305
|
-
'bind-presentation-project': 'bind-presentation-project --project PREPARED_DIR --name NAME [--apply true] (plan by default; explicit author manifest/ECS/rules required; unchanged content, no template gameplay, upload or approval)',
|
|
306
|
-
'import-presentation': 'import-presentation --source ABSOLUTE_DIR --workspace ABSOLUTE_DIR --name NEW_NAME [--entry index.html] [--bundle true] [--content-id ugc.ID --content-version X.Y.Z] [--resource-recipe FIXED_JSON --resource-cache PRIVATE_CACHE] [--apply true] (plan by default; fixed bundling and shared Document source declaration; outer Builder binding pending, no upload)',
|
|
307
|
-
'prepare-presentation-resources': 'prepare-presentation-resources --recipe FIXED_JSON --cache-directory PRIVATE_CACHE [--offline true] (fixed bytes/digest and original license files, no runtime network)',
|
|
308
|
-
'creation-support': 'creation-support [--project DIR] [--probe-local-build false] (validator and original static producer, no author execution or Host; preview/public unknown without observations)',
|
|
309
|
-
meshy: 'meshy help (optional creator-owned Meshy key, generation and resumable tasks; no platform credits)',
|
|
310
|
-
upgrade: 'upgrade --project DIR [--apply true --expected-head SHA | --recover true] (plan by default; preserve content and project identity; no dependency install, commit or upload)',
|
|
311
|
-
materials: 'materials --session-directory DIR --project-id ID (current authorized source names and pins; no download or grant)',
|
|
312
|
-
projects: 'projects [--workspace DIR] (read-only direct project discovery; no automatic selection)',
|
|
313
|
-
'remote-projects': 'remote-projects --session-directory DIR [--project DIR] (complete authenticated discovery by local stable identity; no creation or upload)',
|
|
314
|
-
init: 'init (official release defaults; current project directory; persistent install, preserved config, no login). Optional: --harness auto|codex|claude --tools-root DIR --workspace DIR --release-url URL. Local persistent install: --platform http://127.0.0.1:8137 --allow-local-http true (same-Origin release and runtime mirror; no Testing fallback). Explicit registration: --config FILE --format json|codex --platform ORIGIN. Explicit same-scope upgrade: --replace-from ABSOLUTE_OLD_BIN',
|
|
315
|
-
create: 'create NAME --content-id ugc.example.name [--workspace DIR] [--source-package DIR --source-manifest-hash sha256:HASH]',
|
|
316
|
-
validate: 'validate [--project DIR]', inspect: 'inspect [--project DIR]',
|
|
317
|
-
build: 'build [--project DIR] --output-directory NEW_DIR (static local snapshot; not formal review)',
|
|
318
|
-
dev: 'dev (--snapshot DIR | --project DIR --output-directory NEW_DIR) [--runtime-id ID] --state-directory PRIVATE_DIR [--runtime-source catalog|local --runtime-origin LOOPBACK_ORIGIN --allow-local-http true] [--offline true] (local never falls back; foreground; Ctrl-C stops this run)',
|
|
319
|
-
test: 'test (--snapshot DIR | --project DIR --output-directory NEW_DIR) [--runtime-id ID] --state-directory PRIVATE_DIR [--runtime-source catalog|local --runtime-origin LOOPBACK_ORIGIN --allow-local-http true] [--offline true] (fixed isolated declaration suite)',
|
|
320
|
-
capabilities: 'capabilities [--id ID]', mcp: 'mcp [--workspace DIR] [--session-directory DIR] [--platform ORIGIN]', version: 'version',
|
|
321
|
-
login: 'login --platform ORIGIN --session-directory NEW_ABSOLUTE_DIR [--project-id ID] [--scopes CSV] [--allow-local-http true] (contributions:write requires an explicit project ID; it does not authorize owner submission or release)',
|
|
322
|
-
'login-complete': 'login-complete --session-directory DIR', logout: 'logout --session-directory DIR',
|
|
323
|
-
'prepare-source-git': 'prepare-source-git --project DIR --build-result FILE --preserve-paths exact,paths [--binary-paths exact,paths] [--apply true] (Git metadata only; preserve imported bytes and normal authored-source checks)',
|
|
324
|
-
'update-presentation-project': 'update-presentation-project --project DIR --prepared-source DIR --expected-head SHA [--expected-changes exact,paths --apply true] (normal prepared content update; preserve existing project identity)',
|
|
325
|
-
'auth-status': 'auth-status --session-directory DIR', 'remote-create': 'remote-create --session-directory DIR --name NAME',
|
|
326
|
-
'source-download': 'source-download --session-directory DIR --project-id ID --manifest-hash sha256:HASH --output-directory ABSOLUTE_PRIVATE_DIR',
|
|
327
|
-
'project-source-download': 'project-source-download --session-directory DIR --project-id ID --workspace ABSOLUTE_DIR --name NEW_NAME (server-pinned current main; creates a new uncommitted local project)',
|
|
328
|
-
'project-source-update': 'project-source-update --session-directory DIR --project-id ID --project EXISTING_DIR --workspace ABSOLUTE_DIR --name NEW_NAME (verified old base + current main; never overwrites the original; conflicts list files)',
|
|
329
|
-
status: 'status --session-directory DIR --project-id ID [--job-id ID]',
|
|
330
|
-
preflight: 'preflight --session-directory DIR --project-id ID (installed tools, capabilities and current eligibility; no grant)',
|
|
331
|
-
'source-status': 'source-status --session-directory DIR --project-id ID (verified association and current server head; no mutation)',
|
|
332
|
-
submit: 'submit --session-directory DIR --project DIR [--project-id ID] [--expected-head none|SHA] [--idempotency-key KEY]',
|
|
333
|
-
contribute: 'contribute --session-directory DIR --project DIR --project-id ID [--expected-head MAIN_SHA] [--idempotency-key KEY] (separate candidate blobs and pending key; no owner submission or publication)',
|
|
334
|
-
'contribution-status': 'contribution-status --session-directory DIR --project DIR --project-id ID [--idempotency-key KEY] (author-only by-key identity, then exact candidate GET for uncertain check/accept; missing preserves pending)',
|
|
335
|
-
preview: 'preview --session-directory DIR --project-id ID --job-id ID --idempotency-key KEY [--lifetime-seconds 900..4500] (omitted server default 900; original key/lifetime retained, no unknown POST retry)',
|
|
336
|
-
'preview-status': 'preview-status --session-directory DIR --project-id ID --job-id ID',
|
|
337
|
-
'preview-cancel': 'preview-cancel --session-directory DIR --project-id ID --job-id ID --preview-id ID',
|
|
338
|
-
publish: 'publish --session-directory DIR --project-id ID --job-id ID --channel testing --idempotency-key KEY (explicit Testing request; queued is not playable)',
|
|
339
|
-
'release-status': 'release-status --session-directory DIR --project-id ID --release-request-id ID (release reads/retry: registered HTTP loopback 240s, hosted HTTPS 270s; other limits unchanged; no automatic retry)',
|
|
340
|
-
'release-cancel': 'release-cancel --session-directory DIR --project-id ID --release-request-id ID [--expected-progress-revision N] (reads current revision when omitted; cancellation intent is not completed cleanup)',
|
|
341
|
-
'release-retry': 'release-retry --session-directory DIR --project-id ID --release-request-id ID --idempotency-key KEY [--expected-progress-revision N] (explicit allowed failure retry; preserve key and revision after an uncertain reply)'
|
|
342
|
-
}, installation: creatorInstallContract, executionTier: 'public-untrusted', runtimeSelection: 'platform-catalog-required',
|
|
1017
|
+
if (command === 'help') result = { status: 'passed', commands: commandHelp, installation: creatorInstallContract, executionTier: 'public-untrusted', runtimeSelection: 'platform-catalog-required',
|
|
343
1018
|
runtimeSourceConfiguration: 'Explicit init/mcp registration accepts --runtime-source catalog|local --runtime-origin LOOPBACK_ORIGIN [--offline true]. Local HTTP requires --allow-local-http true; runtime origin is independent of --platform. Missing local source rejects dev/test, never falls back.' };
|
|
344
1019
|
if (command === 'projects') result = await listLocalCreatorProjects(workspaceRoot);
|
|
345
1020
|
if (command === 'upgrade') {
|
|
@@ -349,42 +1024,101 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
349
1024
|
result = options['--recover'] ? await recoverCreatorUpgrade({ projectRoot: options['--project'] })
|
|
350
1025
|
: await upgradeCreatorProject({ projectRoot: options['--project'], apply: options['--apply'] === 'true', expectedHead: options['--expected-head'] });
|
|
351
1026
|
}
|
|
1027
|
+
if (command === 'migrate') {
|
|
1028
|
+
if (options['--apply'] !== undefined && options['--apply'] !== 'true') throw failure('INVALID_MIGRATE_OPTIONS');
|
|
1029
|
+
result = await migrateCreatorProject({ projectRoot: options['--project'], apply: options['--apply'] === 'true', expectedHead: options['--expected-head'] });
|
|
1030
|
+
}
|
|
1031
|
+
if (command === 'live-baseline') {
|
|
1032
|
+
if (!options['--project'] || !options['--input'] || (options['--apply'] !== undefined && options['--apply'] !== 'true')) throw failure('INVALID_CREATOR_REQUEST');
|
|
1033
|
+
let input;
|
|
1034
|
+
try { input = JSON.parse(await readFile(path.resolve(options['--input']), 'utf8')); }
|
|
1035
|
+
catch { throw Object.assign(new Error('LIVE_BASELINE_INVALID'), { code: 'LIVE_BASELINE_INVALID', reason: 'not-json' }); }
|
|
1036
|
+
result = await writeLiveBaseline(options['--project'], input, { apply: options['--apply'] === 'true' });
|
|
1037
|
+
}
|
|
1038
|
+
if (command === 'compress-model') {
|
|
1039
|
+
const controller = new AbortController(), cancel = () => controller.abort();
|
|
1040
|
+
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
1041
|
+
try {
|
|
1042
|
+
result = await compressModel({ ...parseCompressModelOptions(options), signal: controller.signal, onProgress: row => process.stderr.write(`${JSON.stringify(row)}\n`) });
|
|
1043
|
+
} finally { process.off('SIGINT', cancel); process.off('SIGTERM', cancel); }
|
|
1044
|
+
}
|
|
352
1045
|
if (command === 'build') result = await buildCreatorLocalSnapshot({ projectRoot: options['--project'] ?? process.cwd(), outputDirectory: options['--output-directory'] });
|
|
353
|
-
if (
|
|
1046
|
+
if (command === 'author-tools') {
|
|
1047
|
+
if (options['--apply'] !== undefined && options['--apply'] !== 'true') throw failure('INVALID_COMMAND');
|
|
1048
|
+
result = await writeAuthorTools({ projectRoot: options['--project'] ?? process.cwd(), apply: options['--apply'] === 'true' });
|
|
1049
|
+
}
|
|
1050
|
+
if (command === 'rebundle') result = await rebundleCreatorProject({ projectRoot: options['--project'] ?? process.cwd(), entrypoint: options['--entry'] });
|
|
1051
|
+
if (command === 'restore-assets') {
|
|
1052
|
+
if (options['--check'] !== undefined && options['--check'] !== 'true') throw failure('INVALID_COMMAND');
|
|
1053
|
+
result = await restoreCreatorAssets({ projectRoot: options['--project'] ?? process.cwd(), from: options['--from'], check: options['--check'] === 'true',
|
|
1054
|
+
platform: options['--from'] === undefined ? await readInstalledPlatform() : undefined });
|
|
1055
|
+
}
|
|
1056
|
+
let preview = null;
|
|
1057
|
+
if (command === 'local-preview') {
|
|
1058
|
+
if (options['--no-open'] !== undefined && options['--no-open'] !== 'true') throw failure('INVALID_COMMAND');
|
|
1059
|
+
preview = await preparePreview({ projectRoot: options['--project'] ?? process.cwd(), stateDirectory: options['--state-directory'] });
|
|
1060
|
+
emit({ event: 'preview-prepared', kitUpdate: preview.kitUpdate, rebundle: preview.rebundle });
|
|
1061
|
+
options = { ...options, '--project': preview.projectRoot, '--output-directory': preview.outputDirectory, '--state-directory': preview.stateDirectory };
|
|
1062
|
+
}
|
|
1063
|
+
if (['dev', 'test', 'local-preview'].includes(command)) {
|
|
1064
|
+
const notices = preview?.notices ?? (command === 'dev' && options['--project'] ? await localNotices(path.resolve(options['--project'])) : null);
|
|
354
1065
|
const controller = new AbortController(), cancel = () => controller.abort();
|
|
355
1066
|
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
356
1067
|
try {
|
|
357
1068
|
const source = runtimeSourceOptions({ runtimeSource: options['--runtime-source'], runtimeOrigin: options['--runtime-origin'],
|
|
1069
|
+
runtimePlatform: options['--platform'] ?? ((options['--runtime-source'] ?? 'catalog') === 'catalog' ? await readInstalledPlatform() : undefined),
|
|
358
1070
|
allowLocalHttp: options['--allow-local-http'] === undefined ? false : options['--allow-local-http'] === 'true' ? true : options['--allow-local-http'],
|
|
359
1071
|
offline: options['--offline'] === undefined ? false : options['--offline'] === 'true' ? true : options['--offline'] });
|
|
360
1072
|
let snapshotDirectory = options['--snapshot'];
|
|
361
1073
|
const fromProject = options['--project'] !== undefined || options['--output-directory'] !== undefined;
|
|
362
1074
|
if (snapshotDirectory && fromProject || fromProject && (!options['--project'] || !options['--output-directory'])) throw failure('INVALID_COMMAND');
|
|
363
1075
|
if (fromProject) {
|
|
364
|
-
const catalog = validatePublicRuntimeCatalog(await readPublicRuntimeCatalog());
|
|
1076
|
+
const catalog = validatePublicRuntimeCatalog(runtimeCatalogAddresses(await readPublicRuntimeCatalog(), source), source);
|
|
365
1077
|
if (options['--runtime-id'] !== undefined) selectPublicRuntime(catalog, options['--runtime-id']);
|
|
366
1078
|
const built = await buildCreatorLocalSnapshot({ projectRoot: options['--project'], outputDirectory: options['--output-directory'] });
|
|
367
1079
|
emit({ event: 'local-built', ...built }); snapshotDirectory = built.snapshotRoot;
|
|
368
1080
|
}
|
|
369
|
-
result = await runLocalSnapshot({ operation: command,
|
|
1081
|
+
result = await runLocalSnapshot({ operation: command === 'local-preview' ? 'dev' : command,
|
|
370
1082
|
...source,
|
|
371
1083
|
snapshotDirectory: snapshotDirectory ? path.resolve(snapshotDirectory) : undefined,
|
|
372
1084
|
stateDirectory: options['--state-directory'] ? path.resolve(options['--state-directory']) : undefined,
|
|
373
1085
|
runtimeId: options['--runtime-id'], signal: controller.signal,
|
|
374
1086
|
onExecution: value => { localExecution = value; },
|
|
375
|
-
onStatus: status => emit({ event: 'local-status', status }),
|
|
376
|
-
onStarted: value =>
|
|
1087
|
+
onStatus: status => { const relayReject = relayRejectNotice(status); emit({ event: 'local-status', status, ...(relayReject ? { relayReject } : {}) }); },
|
|
1088
|
+
onStarted: value => {
|
|
1089
|
+
emit({ event: 'local-started', ...value, ...(notices ? { notices } : {}) });
|
|
1090
|
+
if (preview) openPreview(value, { open: options['--no-open'] !== 'true', notices: preview.notices });
|
|
1091
|
+
} });
|
|
377
1092
|
} catch (e) { if (e.localExecution) localExecution = e.localExecution; throw e; }
|
|
378
|
-
finally {
|
|
1093
|
+
finally {
|
|
1094
|
+
process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel);
|
|
1095
|
+
if (preview) await preview.cleanup();
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
if (command === 'playtest') {
|
|
1099
|
+
if (options['--snapshot'] && (options['--project'] || options['--output-directory'])) throw failure('INVALID_COMMAND');
|
|
1100
|
+
const controller = new AbortController(), cancel = () => controller.abort();
|
|
1101
|
+
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
1102
|
+
const flag = name => options[name] === undefined ? undefined : options[name] === 'true' ? true : options[name];
|
|
1103
|
+
const { runCreatorPlaytest } = await import('./creator-playtest.mjs');
|
|
1104
|
+
try {
|
|
1105
|
+
result = await runCreatorPlaytest({ projectRoot: options['--project'], snapshotDirectory: options['--snapshot'], outputDirectory: options['--output-directory'],
|
|
1106
|
+
artifactsDirectory: options['--artifacts-directory'], stateDirectory: options['--state-directory'], keys: options['--keys'], guestKeys: options['--guest-keys'],
|
|
1107
|
+
vehicles: options['--vehicles'] === 'false' ? false : flag('--vehicles'), vehicleKeys: options['--vehicle-keys'],
|
|
1108
|
+
players: options['--players'], seconds: options['--seconds'], timeoutSeconds: options['--timeout-seconds'], browser: options['--browser'], runtimeId: options['--runtime-id'],
|
|
1109
|
+
runtimeSource: options['--runtime-source'], runtimeOrigin: options['--runtime-origin'], runtimePlatform: options['--platform'], allowLocalHttp: flag('--allow-local-http'), offline: flag('--offline'), compare: options['--compare'],
|
|
1110
|
+
signal: controller.signal, onProgress: value => process.stderr.write(`${JSON.stringify({ type: 'creator-playtest-progress', ...value })}\n`) });
|
|
1111
|
+
} finally { process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel); }
|
|
379
1112
|
}
|
|
380
1113
|
if (command === 'login') {
|
|
381
1114
|
if (options['--allow-local-http'] !== undefined && options['--allow-local-http'] !== 'true') throw failure('INVALID_COMMAND');
|
|
382
1115
|
result = await beginCreatorSession({ directory: options['--session-directory'], origin: options['--platform'],
|
|
383
|
-
allowLocalHttp: options['--allow-local-http'] === 'true', projectId: options['--project-id'], requestedScopes: options['--scopes']?.split(',') })
|
|
1116
|
+
allowLocalHttp: options['--allow-local-http'] === 'true', projectId: options['--project-id'], requestedScopes: options['--scopes']?.split(',') })
|
|
1117
|
+
.catch(error => { throw error?.code === 'CREATOR_ACCESS_DENIED' && options['--project-id'] && !options['--scopes'] ? Object.assign(error, { memberLogin: true }) : error; });
|
|
384
1118
|
}
|
|
385
1119
|
if (command === 'login-complete') result = await completeCreatorSession(options['--session-directory']);
|
|
386
1120
|
if (command === 'logout') result = await cancelCreatorSession(options['--session-directory']);
|
|
387
|
-
if (command === 'auth-status') result = await inspectCreatorSession(options['--session-directory']);
|
|
1121
|
+
if (command === 'auth-status') result = await inspectCreatorSession(options['--session-directory'], { deviceClock: true });
|
|
388
1122
|
if (command === 'materials') result = await listCreatorMaterials({ sessionDirectory: options['--session-directory'], projectId: options['--project-id'] });
|
|
389
1123
|
if (command === 'source-download') {
|
|
390
1124
|
const controller = new AbortController(), cancel = () => controller.abort();
|
|
@@ -399,7 +1133,8 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
399
1133
|
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
400
1134
|
try {
|
|
401
1135
|
result = await downloadCreatorProjectSnapshot({ sessionDirectory: options['--session-directory'], projectId: options['--project-id'],
|
|
402
|
-
workspaceRoot: options['--workspace'], name: options['--name'], signal: controller.signal
|
|
1136
|
+
workspaceRoot: options['--workspace'], name: options['--name'], signal: controller.signal,
|
|
1137
|
+
onProgress: value => process.stderr.write(`${JSON.stringify(value)}\n`) });
|
|
403
1138
|
} finally { process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel); }
|
|
404
1139
|
}
|
|
405
1140
|
if (command === 'project-source-update') {
|
|
@@ -408,7 +1143,17 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
408
1143
|
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
409
1144
|
try {
|
|
410
1145
|
result = await updateCreatorProjectSource({ sessionDirectory: options['--session-directory'], projectId: options['--project-id'],
|
|
411
|
-
projectRoot: options['--project'], workspaceRoot: options['--workspace'], name: options['--name'], signal: controller.signal
|
|
1146
|
+
projectRoot: options['--project'], workspaceRoot: options['--workspace'], name: options['--name'], signal: controller.signal,
|
|
1147
|
+
resolutions: parseResolutions(options['--resolve'] ?? []) });
|
|
1148
|
+
} finally { process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel); }
|
|
1149
|
+
}
|
|
1150
|
+
if (command === 'diff') {
|
|
1151
|
+
if ((options['--session-directory'] === undefined) !== (options['--project-id'] === undefined)) throw failure('INVALID_COMMAND');
|
|
1152
|
+
const controller = new AbortController(), cancel = () => controller.abort();
|
|
1153
|
+
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
1154
|
+
try {
|
|
1155
|
+
result = await diffCreatorProjectSource({ projectRoot: options['--project'] ?? process.cwd(), sessionDirectory: options['--session-directory'],
|
|
1156
|
+
projectId: options['--project-id'], signal: controller.signal });
|
|
412
1157
|
} finally { process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel); }
|
|
413
1158
|
}
|
|
414
1159
|
if (command === 'preview') {
|
|
@@ -417,14 +1162,17 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
417
1162
|
const payload = { idempotencyKey: options['--idempotency-key'],
|
|
418
1163
|
...(lifetime === undefined ? {} : { lifetimeSeconds: Number(lifetime) }) };
|
|
419
1164
|
result = creatorReleaseResult('preview', await requestCreatorPreview(options['--session-directory'],
|
|
420
|
-
options['--project-id'], options['--job-id'], payload));
|
|
1165
|
+
options['--project-id'], options['--job-id'], payload), { origin: (await inspectCreatorSession(options['--session-directory'])).authorization.origin });
|
|
421
1166
|
}
|
|
422
1167
|
if (['preflight', 'source-status', 'preview-status', 'preview-cancel', 'publish', 'release-status', 'release-cancel', 'release-retry'].includes(command)) {
|
|
423
1168
|
const revisionText = options['--expected-progress-revision'];
|
|
424
1169
|
if (revisionText !== undefined && (!/^[1-9][0-9]*$/.test(revisionText) || !Number.isSafeInteger(Number(revisionText)))) throw failure('INVALID_RELEASE_REQUEST');
|
|
425
1170
|
const remote = await useCreatorSession(options['--session-directory'], async (api, credential) => {
|
|
426
1171
|
const p = options['--project-id'], j = options['--job-id'], config = { credential };
|
|
427
|
-
if (command === 'preflight')
|
|
1172
|
+
if (command === 'preflight') {
|
|
1173
|
+
const preflight = await api.getPreflight(p, config), kitUpdate = kitUpdateNotice(preflight, await installedToolchain(), api.origin);
|
|
1174
|
+
return kitUpdate ? { ...preflight, kitUpdate } : preflight;
|
|
1175
|
+
}
|
|
428
1176
|
if (command === 'source-status') return api.getSourceState(p, config);
|
|
429
1177
|
if (command === 'preview-status') return api.getPreview(p, j, config);
|
|
430
1178
|
if (command === 'preview-cancel') return api.cancelPreview(p, j, options['--preview-id'], config);
|
|
@@ -434,37 +1182,54 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
434
1182
|
if (command === 'release-retry') return api.retryRelease(p, options['--release-request-id'], { ...mutation, idempotencyKey: options['--idempotency-key'] });
|
|
435
1183
|
return api.cancelRelease(p, options['--release-request-id'], mutation);
|
|
436
1184
|
});
|
|
437
|
-
result = creatorReleaseResult(command === 'publish' ? 'request-review' : command, remote
|
|
1185
|
+
result = creatorReleaseResult(command === 'publish' ? 'request-review' : command, remote,
|
|
1186
|
+
command === 'preview-status' ? { origin: (await inspectCreatorSession(options['--session-directory'])).authorization.origin } : {});
|
|
1187
|
+
if (command === 'publish') { const legacyPatterns = await readLegacyPatternSummary(options['--project'] ?? process.cwd()); if (legacyPatterns) result = { ...result, legacyPatterns }; }
|
|
438
1188
|
}
|
|
1189
|
+
if (command === 'refresh-document') {
|
|
1190
|
+
if (options['--apply'] !== undefined && options['--apply'] !== 'true') throw failure('INVALID_COMMAND');
|
|
1191
|
+
result = await (await import('./document-refresh.mjs')).refreshDocumentResources({ projectRoot: options['--project'] ?? process.cwd(), apply: options['--apply'] === 'true' });
|
|
1192
|
+
}
|
|
1193
|
+
if (command === 'docs') result = await (await import('./creator-docs.mjs')).readCreatorDoc(name);
|
|
1194
|
+
if (command === 'entry-stats') result = worldEntryStatsResult(await useCreatorSession(options['--session-directory'], (api, credential) => api.getWorldEntryStats(options['--project-id'], { credential })));
|
|
439
1195
|
if (command === 'remote-projects') result = await discoverCreatorProject({ projectRoot: options['--project'] ?? process.cwd(), sessionDirectory: options['--session-directory'] });
|
|
440
1196
|
if (command === 'remote-create') result = { status: 'passed', project: await useCreatorSession(options['--session-directory'], async (api, credential) => creatorProjectSummary(await api.createProject(options['--name'], { credential }), api)), published: false };
|
|
441
1197
|
if (command === 'status') result = { status: 'passed', result: await useCreatorSession(options['--session-directory'], async (api, credential) => options['--job-id']
|
|
442
1198
|
? creatorJobSummary(await api.getJob(options['--project-id'], options['--job-id'], { credential }), api) : creatorProjectSummary(await api.getProject(options['--project-id'], { credential }), api)), published: false };
|
|
443
1199
|
if (command === 'submit') {
|
|
1200
|
+
if (options['--skip-rule-tests'] !== undefined && options['--skip-rule-tests'] !== 'true') throw failure('INVALID_COMMAND');
|
|
444
1201
|
const controller = new AbortController(), cancel = () => controller.abort();
|
|
445
1202
|
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
446
1203
|
try {
|
|
447
1204
|
result = await submitCreatorSource({ projectRoot: options['--project'] ?? process.cwd(), sessionDirectory: options['--session-directory'],
|
|
448
1205
|
projectId: options['--project-id'], expectedHead: options['--expected-head'] === 'none' ? null : options['--expected-head'],
|
|
449
|
-
idempotencyKey: options['--idempotency-key'], signal: controller.signal,
|
|
1206
|
+
idempotencyKey: options['--idempotency-key'], skipRuleTests: options['--skip-rule-tests'] === 'true', signal: controller.signal,
|
|
450
1207
|
onProgress: value => process.stderr.write(`${JSON.stringify(value)}\n`) });
|
|
451
1208
|
} finally { process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel); }
|
|
452
1209
|
}
|
|
453
1210
|
if (command === 'contribute' || command === 'contribution-status') {
|
|
1211
|
+
if (options['--skip-rule-tests'] !== undefined && options['--skip-rule-tests'] !== 'true') throw failure('INVALID_COMMAND');
|
|
454
1212
|
const controller = new AbortController(), cancel = () => controller.abort();
|
|
455
1213
|
process.once('SIGINT', cancel); process.once('SIGTERM', cancel);
|
|
456
1214
|
try {
|
|
457
1215
|
const input = { projectRoot: options['--project'] ?? process.cwd(), sessionDirectory: options['--session-directory'],
|
|
458
1216
|
projectId: options['--project-id'], idempotencyKey: options['--idempotency-key'], signal: controller.signal };
|
|
459
1217
|
result = command === 'contribute'
|
|
460
|
-
? await submitCreatorContribution({ ...input, expectedHead: options['--expected-head'],
|
|
1218
|
+
? await submitCreatorContribution({ ...input, expectedHead: options['--expected-head'], skipRuleTests: options['--skip-rule-tests'] === 'true',
|
|
461
1219
|
onProgress: value => process.stderr.write(`${JSON.stringify(value)}\n`) })
|
|
462
1220
|
: await readCreatorContribution(input);
|
|
463
1221
|
} finally { process.removeListener('SIGINT', cancel); process.removeListener('SIGTERM', cancel); }
|
|
464
1222
|
}
|
|
465
|
-
if (command === 'version') result = { status: 'passed', toolchain: await installedToolchain() };
|
|
466
|
-
if (command === '
|
|
467
|
-
|
|
1223
|
+
if (command === 'version') result = { status: 'passed', toolchain: await installedToolchain(), ruleSet: await kitRuleSet() };
|
|
1224
|
+
if (command === 'doctor') result = await inspectCreatorDoctor({ platform: options['--platform'], allowLocalHttp: options['--allow-local-http'] === 'true',
|
|
1225
|
+
sessionDirectory: options['--session-directory'], projectId: options['--project-id'], configFile: options['--config'], format: options['--format'] });
|
|
1226
|
+
if (command === 'create') {
|
|
1227
|
+
const created = { workspaceRoot, name, contentId: options['--content-id'], sourcePackageRoot: options['--source-package'],
|
|
1228
|
+
sourceManifestHash: options['--source-manifest-hash'], example: options['--example'] };
|
|
1229
|
+
if (options['--document-entry'] !== undefined && options['--document-source'] === undefined) throw Object.assign(failure('INVALID_PRESENTATION_IMPORT'), { reason: 'option', detail: '--document-entry needs --document-source.' });
|
|
1230
|
+
result = options['--document-source'] === undefined ? await createMinimalProject(created)
|
|
1231
|
+
: await createDocumentProject({ ...created, documentSource: options['--document-source'], entrypoint: options['--document-entry'] });
|
|
1232
|
+
}
|
|
468
1233
|
if (command === 'init') {
|
|
469
1234
|
const registrationOnly = options['--config'] && options['--format'] && !options['--release-url'] && !options['--harness'] && !options['--tools-root'];
|
|
470
1235
|
if (!registrationOnly) {
|
|
@@ -492,6 +1257,7 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
492
1257
|
}
|
|
493
1258
|
} finally { prompt.close(); }
|
|
494
1259
|
}
|
|
1260
|
+
if (result.status === 'selection-required') result = initSelectionDetails(result, { ...options, origin: await readCreatorReleaseDefaults().then(value => value.platformOrigin, () => undefined) });
|
|
495
1261
|
} else {
|
|
496
1262
|
if (options['--harness'] || options['--tools-root']) throw failure('INVALID_INIT_OPTIONS');
|
|
497
1263
|
result = await initializeHarness({ configFile: options['--config'], format: options['--format'], workspaceRoot,
|
|
@@ -499,7 +1265,12 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
499
1265
|
sessionDirectory: options['--session-directory'], platform: options['--platform'], allowLocalHttp: options['--allow-local-http'] === 'true', replaceFrom: options['--replace-from'] });
|
|
500
1266
|
}
|
|
501
1267
|
}
|
|
502
|
-
if (command === 'import-presentation') {
|
|
1268
|
+
if (command === 'import-presentation' && options['--project'] !== undefined) {
|
|
1269
|
+
const extra = ['--workspace', '--name', '--bundle', '--content-id', '--content-version', ...(options['--apply'] === 'true' ? [] : ['--apply'])].filter(option => options[option] !== undefined);
|
|
1270
|
+
if (extra.length) throw Object.assign(failure('INVALID_PRESENTATION_IMPORT'), { reason: 'option', detail: `--project takes the name, identity and version from the work, so drop ${extra.join(', ')}.` });
|
|
1271
|
+
result = await importPresentationIntoProject({ projectRoot: options['--project'], sourceRoot: options['--source'], entrypoint: options['--entry'],
|
|
1272
|
+
resourceRecipeFile: options['--resource-recipe'], resourceCacheDirectory: options['--resource-cache'] });
|
|
1273
|
+
} else if (command === 'import-presentation') {
|
|
503
1274
|
if (options['--apply'] !== undefined && !['true', 'false'].includes(options['--apply'])) throw failure('INVALID_COMMAND');
|
|
504
1275
|
if (options['--bundle'] !== undefined && !['true', 'false'].includes(options['--bundle'])) throw failure('INVALID_COMMAND');
|
|
505
1276
|
result = await importLocalPresentationProject({ sourceRoot: options['--source'], workspaceRoot, name: options['--name'],
|
|
@@ -529,19 +1300,69 @@ export async function runCreatorCli(args, { initialize = initializeInstalledCrea
|
|
|
529
1300
|
if (options['--probe-local-build'] !== undefined && !['true', 'false'].includes(options['--probe-local-build'])) throw failure('INVALID_COMMAND');
|
|
530
1301
|
result = await assessCreatorTargetSupport({ projectRoot: options['--project'] ?? process.cwd(), probeLocalBuild: options['--probe-local-build'] !== 'false' });
|
|
531
1302
|
}
|
|
532
|
-
if (command === 'validate') result = await validateCreatorProject(options['--project'] ?? process.cwd());
|
|
1303
|
+
if (command === 'validate') result = await withLocalPlay(await validateCreatorProject(options['--project'] ?? process.cwd()), options['--project'] ?? process.cwd());
|
|
1304
|
+
if (command === 'test-rules') result = await testCreatorProjectRules(options['--project'] ?? process.cwd());
|
|
1305
|
+
if (command === 'fuzz-rules') {
|
|
1306
|
+
const bounded = (name, low, high, fallback) => {
|
|
1307
|
+
if (options[name] === undefined) return fallback;
|
|
1308
|
+
const value = Number(options[name]);
|
|
1309
|
+
if (!Number.isSafeInteger(value) || value < low || value > high) throw failure('INVALID_COMMAND');
|
|
1310
|
+
return value;
|
|
1311
|
+
};
|
|
1312
|
+
result = await fuzzCreatorProjectRules(options['--project'] ?? process.cwd(), { seed: bounded('--seed', 0, 2147483647, 1), runs: bounded('--runs', 1, 64, 8),
|
|
1313
|
+
ticks: bounded('--ticks', 1, 3600, 240), players: bounded('--players', 1, 50, 4) });
|
|
1314
|
+
}
|
|
1315
|
+
if (command === 'check') {
|
|
1316
|
+
if (options['--format'] !== undefined && options['--format'] !== 'json') throw failure('INVALID_COMMAND');
|
|
1317
|
+
const { checkCreatorProject, renderCheckReport } = await import('./creator-check.mjs');
|
|
1318
|
+
const checked = { projectRoot: options['--project'] ?? process.cwd(), sessionDirectory: options['--session-directory'], projectId: options['--project-id'] };
|
|
1319
|
+
if (options['--fix'] !== undefined && options['--fix'] !== 'true' || options['--apply'] !== undefined && (options['--apply'] !== 'true' || options['--fix'] !== 'true')) throw failure('INVALID_COMMAND');
|
|
1320
|
+
result = await checkCreatorProject(checked);
|
|
1321
|
+
if (options['--fix'] === 'true') {
|
|
1322
|
+
const { planCheckFixes } = await import('./creator-fix.mjs');
|
|
1323
|
+
const fix = await planCheckFixes({ projectRoot: checked.projectRoot, issues: result.issues, apply: options['--apply'] === 'true' });
|
|
1324
|
+
result = fix.phase === 'applied' ? { ...(await checkCreatorProject({ ...checked, trackRepeats: false })), fix } : { ...result, fix };
|
|
1325
|
+
}
|
|
1326
|
+
if (options['--format'] === undefined) {
|
|
1327
|
+
const { renderFixReport } = await import('./creator-fix.mjs');
|
|
1328
|
+
const first = result.status === 'failed' ? creatorNextActions('check', result)?.[0] : undefined;
|
|
1329
|
+
process.stdout.write(renderCheckReport(result) + renderFixReport(result) + (first ? `\n${first.note}\n ${first.cli}\n` : ''));
|
|
1330
|
+
process.exitCode = result.status === 'failed' ? 1 : 0;
|
|
1331
|
+
return;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
if (command === 'generate') {
|
|
1335
|
+
if (options['--apply'] !== undefined && options['--apply'] !== 'true') throw failure('INVALID_COMMAND');
|
|
1336
|
+
result = await generateProjectDeclarations(options['--project'] ?? process.cwd(), { apply: options['--apply'] === 'true' });
|
|
1337
|
+
}
|
|
533
1338
|
if (command === 'inspect') {
|
|
534
1339
|
const project = await readCreatorProject(options['--project'] ?? process.cwd());
|
|
535
|
-
|
|
1340
|
+
const { projectAuthorityNotice } = await import('./authority-notice.mjs');
|
|
1341
|
+
result = { status: 'passed', project: project.descriptor, toolchain: project.toolchain, authority: await projectAuthorityNotice(project.root), executedCreatorCode: false, published: false };
|
|
536
1342
|
}
|
|
537
|
-
if (command === 'capabilities') result = await listCreatorCapabilities(options['--id']);
|
|
1343
|
+
if (command === 'capabilities') result = options['--map'] ? await capabilityMapResult() : await listCreatorCapabilities(options['--id']);
|
|
538
1344
|
if (command === 'mcp') {
|
|
539
1345
|
const { startCreatorMcp } = await import('./creator-mcp.mjs');
|
|
540
1346
|
await startCreatorMcp(workspaceRoot, { sessionDirectory: options['--session-directory'], platform: options['--platform'], allowLocalHttp: options['--allow-local-http'] === 'true',
|
|
541
1347
|
runtimeSource: options['--runtime-source'], runtimeOrigin: options['--runtime-origin'], offline: options['--offline'] === undefined ? false : options['--offline'] === 'true' ? true : options['--offline'] });
|
|
542
1348
|
return;
|
|
543
1349
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
1350
|
+
const nextActions = creatorNextActions(command, result);
|
|
1351
|
+
emit(withIssues(nextActions ? { ...result, nextActions } : result));
|
|
1352
|
+
process.exitCode = ['passed', 'passed-with-unchecked'].includes(result.status) ? 0 : result.status === 'needs_capability' ? 2 : result.status === 'cancelled' ? 130 : 1;
|
|
1353
|
+
} catch (error) {
|
|
1354
|
+
if (error?.code === 'HARNESS_CONFIG_CONFLICT' && error.otherBinding === true && invocation?.command === 'init') {
|
|
1355
|
+
const origin = invocation.options['--platform'] ?? (await readCreatorReleaseDefaults().catch(() => null))?.platformOrigin;
|
|
1356
|
+
error.retryCommand = initCommand({ ...invocation.options, ...(origin ? { '--platform': origin } : {}) });
|
|
1357
|
+
}
|
|
1358
|
+
if (error?.code === 'HARNESS_CONFIG_CONFLICT' && error.sameBinding === true && invocation?.command === 'init' && typeof error.registeredExecutable === 'string') {
|
|
1359
|
+
const options = invocation.options, explicit = options['--config'] && options['--format'] && !options['--release-url'] && !options['--harness'] && !options['--tools-root'];
|
|
1360
|
+
const origin = options['--platform'] ?? (await readCreatorReleaseDefaults().catch(() => null))?.platformOrigin;
|
|
1361
|
+
const base = explicit ? ['chrona init', '--config', shellPath(options['--config']), '--format', options['--format'], ...(options['--workspace'] ? ['--workspace', shellPath(options['--workspace'])] : [])].join(' ')
|
|
1362
|
+
: initCommand({ ...options, ...(origin ? { '--platform': origin } : {}) });
|
|
1363
|
+
error.retryCommand = `${base} --replace-from ${shellPath(error.registeredExecutable)}`;
|
|
1364
|
+
}
|
|
1365
|
+
if (error?.code === 'KIT_VERSION_MISMATCH') error.platformOrigin ??= invocation?.options['--platform'] ?? (await readCreatorReleaseDefaults().catch(() => null))?.platformOrigin;
|
|
1366
|
+
const result = safeFailure(error, { ...localExecution, includeLocalPaths: true,
|
|
1367
|
+
missingOptions: invocation ? missingRequiredOptions(invocation.command, invocation.options) : [] }); emit(result); process.exitCode = result.status === 'needs_capability' ? 2 : 1; }
|
|
547
1368
|
}
|