@alpsckr/unitycli 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +389 -0
- package/contracts/command-contract.json +3972 -0
- package/contracts/stable-session/admission-acquire-v1.schema.json +16 -0
- package/contracts/stable-session/admission-response-v1.schema.json +30 -0
- package/contracts/stable-session/admission-revoke-v1.schema.json +15 -0
- package/contracts/stable-session/admission-transport-v1.json +36 -0
- package/contracts/stable-session/bridge-request-v2.schema.json +26 -0
- package/contracts/stable-session/canonical-path-v1-golden.json +23 -0
- package/contracts/stable-session/completion-contract.schema.json +46 -0
- package/contracts/stable-session/direct-call-semantics.json +102 -0
- package/contracts/stable-session/editor-state.schema.json +92 -0
- package/contracts/stable-session/health-v3.schema.json +47 -0
- package/contracts/stable-session/instance-registry-v3.schema.json +152 -0
- package/contracts/stable-session/removal-map.json +27 -0
- package/contracts/stable-session/request-digest-v1-golden.json +7 -0
- package/contracts/stable-session/runtime-config-v2.schema.json +27 -0
- package/contracts/static-capability-catalog.json +48226 -0
- package/contracts/tool-completion-contract.json +11322 -0
- package/dist/args.d.ts +27 -0
- package/dist/args.js +109 -0
- package/dist/args.js.map +1 -0
- package/dist/bridge/admission.d.ts +28 -0
- package/dist/bridge/admission.js +29 -0
- package/dist/bridge/admission.js.map +1 -0
- package/dist/bridge/args.d.ts +16 -0
- package/dist/bridge/args.js +123 -0
- package/dist/bridge/args.js.map +1 -0
- package/dist/bridge/domains/animation.d.ts +2 -0
- package/dist/bridge/domains/animation.js +199 -0
- package/dist/bridge/domains/animation.js.map +1 -0
- package/dist/bridge/domains/asset.d.ts +2 -0
- package/dist/bridge/domains/asset.js +85 -0
- package/dist/bridge/domains/asset.js.map +1 -0
- package/dist/bridge/domains/build.d.ts +2 -0
- package/dist/bridge/domains/build.js +35 -0
- package/dist/bridge/domains/build.js.map +1 -0
- package/dist/bridge/domains/camera.d.ts +2 -0
- package/dist/bridge/domains/camera.js +54 -0
- package/dist/bridge/domains/camera.js.map +1 -0
- package/dist/bridge/domains/code.d.ts +2 -0
- package/dist/bridge/domains/code.js +17 -0
- package/dist/bridge/domains/code.js.map +1 -0
- package/dist/bridge/domains/console.d.ts +2 -0
- package/dist/bridge/domains/console.js +34 -0
- package/dist/bridge/domains/console.js.map +1 -0
- package/dist/bridge/domains/diagnose.d.ts +2 -0
- package/dist/bridge/domains/diagnose.js +11 -0
- package/dist/bridge/domains/diagnose.js.map +1 -0
- package/dist/bridge/domains/editor.d.ts +2 -0
- package/dist/bridge/domains/editor.js +66 -0
- package/dist/bridge/domains/editor.js.map +1 -0
- package/dist/bridge/domains/extension.d.ts +8 -0
- package/dist/bridge/domains/extension.js +20 -0
- package/dist/bridge/domains/extension.js.map +1 -0
- package/dist/bridge/domains/game-object.d.ts +2 -0
- package/dist/bridge/domains/game-object.js +179 -0
- package/dist/bridge/domains/game-object.js.map +1 -0
- package/dist/bridge/domains/graphics.d.ts +2 -0
- package/dist/bridge/domains/graphics.js +185 -0
- package/dist/bridge/domains/graphics.js.map +1 -0
- package/dist/bridge/domains/material.d.ts +2 -0
- package/dist/bridge/domains/material.js +70 -0
- package/dist/bridge/domains/material.js.map +1 -0
- package/dist/bridge/domains/navmesh.d.ts +2 -0
- package/dist/bridge/domains/navmesh.js +34 -0
- package/dist/bridge/domains/navmesh.js.map +1 -0
- package/dist/bridge/domains/object.d.ts +2 -0
- package/dist/bridge/domains/object.js +43 -0
- package/dist/bridge/domains/object.js.map +1 -0
- package/dist/bridge/domains/occlusion.d.ts +2 -0
- package/dist/bridge/domains/occlusion.js +12 -0
- package/dist/bridge/domains/occlusion.js.map +1 -0
- package/dist/bridge/domains/package.d.ts +2 -0
- package/dist/bridge/domains/package.js +2 -0
- package/dist/bridge/domains/package.js.map +1 -0
- package/dist/bridge/domains/physics.d.ts +2 -0
- package/dist/bridge/domains/physics.js +139 -0
- package/dist/bridge/domains/physics.js.map +1 -0
- package/dist/bridge/domains/prefab.d.ts +2 -0
- package/dist/bridge/domains/prefab.js +104 -0
- package/dist/bridge/domains/prefab.js.map +1 -0
- package/dist/bridge/domains/profiler.d.ts +2 -0
- package/dist/bridge/domains/profiler.js +105 -0
- package/dist/bridge/domains/profiler.js.map +1 -0
- package/dist/bridge/domains/project-tool.d.ts +2 -0
- package/dist/bridge/domains/project-tool.js +46 -0
- package/dist/bridge/domains/project-tool.js.map +1 -0
- package/dist/bridge/domains/reflection.d.ts +2 -0
- package/dist/bridge/domains/reflection.js +48 -0
- package/dist/bridge/domains/reflection.js.map +1 -0
- package/dist/bridge/domains/runtime-tool.d.ts +2 -0
- package/dist/bridge/domains/runtime-tool.js +48 -0
- package/dist/bridge/domains/runtime-tool.js.map +1 -0
- package/dist/bridge/domains/scene.d.ts +2 -0
- package/dist/bridge/domains/scene.js +100 -0
- package/dist/bridge/domains/scene.js.map +1 -0
- package/dist/bridge/domains/screenshot.d.ts +2 -0
- package/dist/bridge/domains/screenshot.js +85 -0
- package/dist/bridge/domains/screenshot.js.map +1 -0
- package/dist/bridge/domains/scriptable-object.d.ts +2 -0
- package/dist/bridge/domains/scriptable-object.js +53 -0
- package/dist/bridge/domains/scriptable-object.js.map +1 -0
- package/dist/bridge/domains/shader.d.ts +2 -0
- package/dist/bridge/domains/shader.js +66 -0
- package/dist/bridge/domains/shader.js.map +1 -0
- package/dist/bridge/domains/texture.d.ts +2 -0
- package/dist/bridge/domains/texture.js +78 -0
- package/dist/bridge/domains/texture.js.map +1 -0
- package/dist/bridge/domains/timeline.d.ts +2 -0
- package/dist/bridge/domains/timeline.js +75 -0
- package/dist/bridge/domains/timeline.js.map +1 -0
- package/dist/bridge/domains/ui.d.ts +2 -0
- package/dist/bridge/domains/ui.js +193 -0
- package/dist/bridge/domains/ui.js.map +1 -0
- package/dist/bridge/index.d.ts +9 -0
- package/dist/bridge/index.js +124 -0
- package/dist/bridge/index.js.map +1 -0
- package/dist/bridge/registry.d.ts +19 -0
- package/dist/bridge/registry.js +114 -0
- package/dist/bridge/registry.js.map +1 -0
- package/dist/bridge/session-supervisor.d.ts +138 -0
- package/dist/bridge/session-supervisor.js +873 -0
- package/dist/bridge/session-supervisor.js.map +1 -0
- package/dist/bridge/types.d.ts +61 -0
- package/dist/bridge/types.js +17 -0
- package/dist/bridge/types.js.map +1 -0
- package/dist/capabilities.d.ts +5 -0
- package/dist/capabilities.js +84 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/cli-commands/command.d.ts +7 -0
- package/dist/cli-commands/command.js +513 -0
- package/dist/cli-commands/command.js.map +1 -0
- package/dist/cli-commands/extension-auto-detect.d.ts +62 -0
- package/dist/cli-commands/extension-auto-detect.js +119 -0
- package/dist/cli-commands/extension-auto-detect.js.map +1 -0
- package/dist/cli-commands/extensions.d.ts +24 -0
- package/dist/cli-commands/extensions.js +428 -0
- package/dist/cli-commands/extensions.js.map +1 -0
- package/dist/cli-commands/package.d.ts +4 -0
- package/dist/cli-commands/package.js +151 -0
- package/dist/cli-commands/package.js.map +1 -0
- package/dist/cli-commands/skill-installer.d.ts +83 -0
- package/dist/cli-commands/skill-installer.js +703 -0
- package/dist/cli-commands/skill-installer.js.map +1 -0
- package/dist/cli-commands/types.d.ts +17 -0
- package/dist/cli-commands/types.js +2 -0
- package/dist/cli-commands/types.js.map +1 -0
- package/dist/cli.d.ts +17 -0
- package/dist/cli.js +302 -0
- package/dist/cli.js.map +1 -0
- package/dist/contracts/command-contract.d.ts +21 -0
- package/dist/contracts/command-contract.js +143 -0
- package/dist/contracts/command-contract.js.map +1 -0
- package/dist/contracts/csharp-command-extractor.d.ts +1 -0
- package/dist/contracts/csharp-command-extractor.js +89 -0
- package/dist/contracts/csharp-command-extractor.js.map +1 -0
- package/dist/contracts/validate-command-contract.d.ts +1 -0
- package/dist/contracts/validate-command-contract.js +86 -0
- package/dist/contracts/validate-command-contract.js.map +1 -0
- package/dist/doctor.d.ts +22 -0
- package/dist/doctor.js +498 -0
- package/dist/doctor.js.map +1 -0
- package/dist/editor-blocker-observer.d.ts +45 -0
- package/dist/editor-blocker-observer.js +55 -0
- package/dist/editor-blocker-observer.js.map +1 -0
- package/dist/editor-dialogs.d.ts +53 -0
- package/dist/editor-dialogs.js +79 -0
- package/dist/editor-dialogs.js.map +1 -0
- package/dist/extension-availability.d.ts +30 -0
- package/dist/extension-availability.js +83 -0
- package/dist/extension-availability.js.map +1 -0
- package/dist/extensions/.generated-bridge-domains/cinemachine.d.ts +2 -0
- package/dist/extensions/.generated-bridge-domains/cinemachine.js +104 -0
- package/dist/extensions/.generated-bridge-domains/cinemachine.js.map +1 -0
- package/dist/extensions/.generated-bridge-domains/hdrp.d.ts +2 -0
- package/dist/extensions/.generated-bridge-domains/hdrp.js +35 -0
- package/dist/extensions/.generated-bridge-domains/hdrp.js.map +1 -0
- package/dist/extensions/.generated-bridge-domains/probuilder.d.ts +13 -0
- package/dist/extensions/.generated-bridge-domains/probuilder.js +342 -0
- package/dist/extensions/.generated-bridge-domains/probuilder.js.map +1 -0
- package/dist/extensions/.generated-bridge-domains/urp.d.ts +2 -0
- package/dist/extensions/.generated-bridge-domains/urp.js +52 -0
- package/dist/extensions/.generated-bridge-domains/urp.js.map +1 -0
- package/dist/extensions/.generated-bridge-domains/vfx.d.ts +2 -0
- package/dist/extensions/.generated-bridge-domains/vfx.js +312 -0
- package/dist/extensions/.generated-bridge-domains/vfx.js.map +1 -0
- package/dist/extensions/.generated-registry-data.d.ts +7 -0
- package/dist/extensions/.generated-registry-data.js +895 -0
- package/dist/extensions/.generated-registry-data.js.map +1 -0
- package/dist/extensions/contribution-loader.d.ts +27 -0
- package/dist/extensions/contribution-loader.js +60 -0
- package/dist/extensions/contribution-loader.js.map +1 -0
- package/dist/extensions/descriptor-loader.d.ts +73 -0
- package/dist/extensions/descriptor-loader.js +126 -0
- package/dist/extensions/descriptor-loader.js.map +1 -0
- package/dist/extensions/index.d.ts +19 -0
- package/dist/extensions/index.js +23 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/installer.d.ts +80 -0
- package/dist/extensions/installer.js +594 -0
- package/dist/extensions/installer.js.map +1 -0
- package/dist/extensions/metadata/index.d.ts +15 -0
- package/dist/extensions/metadata/index.js +41 -0
- package/dist/extensions/metadata/index.js.map +1 -0
- package/dist/extensions/metadata/types.d.ts +38 -0
- package/dist/extensions/metadata/types.js +11 -0
- package/dist/extensions/metadata/types.js.map +1 -0
- package/dist/extensions/project-resolver.d.ts +35 -0
- package/dist/extensions/project-resolver.js +61 -0
- package/dist/extensions/project-resolver.js.map +1 -0
- package/dist/extensions/registry.d.ts +86 -0
- package/dist/extensions/registry.js +262 -0
- package/dist/extensions/registry.js.map +1 -0
- package/dist/extensions/tool-manifest.d.ts +29 -0
- package/dist/extensions/tool-manifest.js +53 -0
- package/dist/extensions/tool-manifest.js.map +1 -0
- package/dist/extensions/types.d.ts +115 -0
- package/dist/extensions/types.js +12 -0
- package/dist/extensions/types.js.map +1 -0
- package/dist/instances.d.ts +163 -0
- package/dist/instances.js +1137 -0
- package/dist/instances.js.map +1 -0
- package/dist/output.d.ts +119 -0
- package/dist/output.js +204 -0
- package/dist/output.js.map +1 -0
- package/dist/package-manager.d.ts +280 -0
- package/dist/package-manager.js +1832 -0
- package/dist/package-manager.js.map +1 -0
- package/dist/platform.d.ts +3 -0
- package/dist/platform.js +19 -0
- package/dist/platform.js.map +1 -0
- package/dist/project-identity.d.ts +48 -0
- package/dist/project-identity.js +254 -0
- package/dist/project-identity.js.map +1 -0
- package/dist/project-tool-discovery.d.ts +23 -0
- package/dist/project-tool-discovery.js +292 -0
- package/dist/project-tool-discovery.js.map +1 -0
- package/dist/protocol/envelope.d.ts +64 -0
- package/dist/protocol/envelope.js +8 -0
- package/dist/protocol/envelope.js.map +1 -0
- package/dist/protocol/index.d.ts +7 -0
- package/dist/protocol/index.js +2 -0
- package/dist/protocol/index.js.map +1 -0
- package/dist/runtime-code.d.ts +20 -0
- package/dist/runtime-code.js +232 -0
- package/dist/runtime-code.js.map +1 -0
- package/dist/schema/any-json.d.ts +4 -0
- package/dist/schema/any-json.js +2 -0
- package/dist/schema/any-json.js.map +1 -0
- package/dist/schema/validator.d.ts +7 -0
- package/dist/schema/validator.js +135 -0
- package/dist/schema/validator.js.map +1 -0
- package/dist/services/docs-reflect-cache.d.ts +106 -0
- package/dist/services/docs-reflect-cache.js +301 -0
- package/dist/services/docs-reflect-cache.js.map +1 -0
- package/dist/services/docs-service.d.ts +16 -0
- package/dist/services/docs-service.js +208 -0
- package/dist/services/docs-service.js.map +1 -0
- package/dist/services/reflect-service.d.ts +12 -0
- package/dist/services/reflect-service.js +122 -0
- package/dist/services/reflect-service.js.map +1 -0
- package/dist/static-capability-catalog.d.ts +13 -0
- package/dist/static-capability-catalog.js +41 -0
- package/dist/static-capability-catalog.js.map +1 -0
- package/dist/test-results.d.ts +13 -0
- package/dist/test-results.js +44 -0
- package/dist/test-results.js.map +1 -0
- package/dist/tools/.generated-completion-registry.d.ts +17 -0
- package/dist/tools/.generated-completion-registry.js +5862 -0
- package/dist/tools/.generated-completion-registry.js.map +1 -0
- package/dist/tools/.generated-registry.d.ts +53 -0
- package/dist/tools/.generated-registry.js +55 -0
- package/dist/tools/.generated-registry.js.map +1 -0
- package/dist/tools/.generated-schemas.d.ts +1 -0
- package/dist/tools/.generated-schemas.js +56 -0
- package/dist/tools/.generated-schemas.js.map +1 -0
- package/dist/tools/asset/refresh.d.ts +26 -0
- package/dist/tools/asset/refresh.js +97 -0
- package/dist/tools/asset/refresh.js.map +1 -0
- package/dist/tools/build/run.d.ts +45 -0
- package/dist/tools/build/run.js +115 -0
- package/dist/tools/build/run.js.map +1 -0
- package/dist/tools/catalog.d.ts +33 -0
- package/dist/tools/catalog.js +202 -0
- package/dist/tools/catalog.js.map +1 -0
- package/dist/tools/code/exec.d.ts +53 -0
- package/dist/tools/code/exec.js +59 -0
- package/dist/tools/code/exec.js.map +1 -0
- package/dist/tools/commands.d.ts +5 -0
- package/dist/tools/commands.js +45 -0
- package/dist/tools/commands.js.map +1 -0
- package/dist/tools/completion-probe.d.ts +22 -0
- package/dist/tools/completion-probe.js +2 -0
- package/dist/tools/completion-probe.js.map +1 -0
- package/dist/tools/define.d.ts +77 -0
- package/dist/tools/define.js +58 -0
- package/dist/tools/define.js.map +1 -0
- package/dist/tools/diagnose/capabilities.d.ts +13 -0
- package/dist/tools/diagnose/capabilities.js +34 -0
- package/dist/tools/diagnose/capabilities.js.map +1 -0
- package/dist/tools/dispatcher.d.ts +27 -0
- package/dist/tools/dispatcher.js +971 -0
- package/dist/tools/dispatcher.js.map +1 -0
- package/dist/tools/docs/get.d.ts +22 -0
- package/dist/tools/docs/get.js +22 -0
- package/dist/tools/docs/get.js.map +1 -0
- package/dist/tools/docs/search.d.ts +31 -0
- package/dist/tools/docs/search.js +22 -0
- package/dist/tools/docs/search.js.map +1 -0
- package/dist/tools/editor/compile.d.ts +66 -0
- package/dist/tools/editor/compile.js +225 -0
- package/dist/tools/editor/compile.js.map +1 -0
- package/dist/tools/editor/dialog/click.d.ts +12 -0
- package/dist/tools/editor/dialog/click.js +71 -0
- package/dist/tools/editor/dialog/click.js.map +1 -0
- package/dist/tools/editor/dialogs.d.ts +12 -0
- package/dist/tools/editor/dialogs.js +58 -0
- package/dist/tools/editor/dialogs.js.map +1 -0
- package/dist/tools/editor/readiness.d.ts +13 -0
- package/dist/tools/editor/readiness.js +24 -0
- package/dist/tools/editor/readiness.js.map +1 -0
- package/dist/tools/editor/refresh.d.ts +25 -0
- package/dist/tools/editor/refresh.js +154 -0
- package/dist/tools/editor/refresh.js.map +1 -0
- package/dist/tools/editor/state.d.ts +63 -0
- package/dist/tools/editor/state.js +286 -0
- package/dist/tools/editor/state.js.map +1 -0
- package/dist/tools/errors.d.ts +30 -0
- package/dist/tools/errors.js +46 -0
- package/dist/tools/errors.js.map +1 -0
- package/dist/tools/metadata/derived.d.ts +34 -0
- package/dist/tools/metadata/derived.js +136 -0
- package/dist/tools/metadata/derived.js.map +1 -0
- package/dist/tools/metadata/index.d.ts +34 -0
- package/dist/tools/metadata/index.js +130 -0
- package/dist/tools/metadata/index.js.map +1 -0
- package/dist/tools/metadata/schemas.d.ts +3 -0
- package/dist/tools/metadata/schemas.js +19 -0
- package/dist/tools/metadata/schemas.js.map +1 -0
- package/dist/tools/metadata/status.d.ts +4 -0
- package/dist/tools/metadata/status.js +61 -0
- package/dist/tools/metadata/status.js.map +1 -0
- package/dist/tools/metadata/types.d.ts +79 -0
- package/dist/tools/metadata/types.js +2 -0
- package/dist/tools/metadata/types.js.map +1 -0
- package/dist/tools/navmesh/bake-cancel.d.ts +7 -0
- package/dist/tools/navmesh/bake-cancel.js +21 -0
- package/dist/tools/navmesh/bake-cancel.js.map +1 -0
- package/dist/tools/navmesh/bake-status.d.ts +5 -0
- package/dist/tools/navmesh/bake-status.js +18 -0
- package/dist/tools/navmesh/bake-status.js.map +1 -0
- package/dist/tools/navmesh/bake.d.ts +5 -0
- package/dist/tools/navmesh/bake.js +23 -0
- package/dist/tools/navmesh/bake.js.map +1 -0
- package/dist/tools/navmesh/live.d.ts +86 -0
- package/dist/tools/navmesh/live.js +206 -0
- package/dist/tools/navmesh/live.js.map +1 -0
- package/dist/tools/navmesh/surface-bake.d.ts +5 -0
- package/dist/tools/navmesh/surface-bake.js +24 -0
- package/dist/tools/navmesh/surface-bake.js.map +1 -0
- package/dist/tools/occlusion/bake-cancel.d.ts +7 -0
- package/dist/tools/occlusion/bake-cancel.js +21 -0
- package/dist/tools/occlusion/bake-cancel.js.map +1 -0
- package/dist/tools/occlusion/bake-status.d.ts +5 -0
- package/dist/tools/occlusion/bake-status.js +18 -0
- package/dist/tools/occlusion/bake-status.js.map +1 -0
- package/dist/tools/occlusion/bake.d.ts +11 -0
- package/dist/tools/occlusion/bake.js +23 -0
- package/dist/tools/occlusion/bake.js.map +1 -0
- package/dist/tools/occlusion/live.d.ts +74 -0
- package/dist/tools/occlusion/live.js +201 -0
- package/dist/tools/occlusion/live.js.map +1 -0
- package/dist/tools/package/bridge-remove.d.ts +26 -0
- package/dist/tools/package/bridge-remove.js +32 -0
- package/dist/tools/package/bridge-remove.js.map +1 -0
- package/dist/tools/package/deploy.d.ts +49 -0
- package/dist/tools/package/deploy.js +134 -0
- package/dist/tools/package/deploy.js.map +1 -0
- package/dist/tools/package/embed.d.ts +14 -0
- package/dist/tools/package/embed.js +93 -0
- package/dist/tools/package/embed.js.map +1 -0
- package/dist/tools/package/file-mutation-worker.d.ts +6 -0
- package/dist/tools/package/file-mutation-worker.js +154 -0
- package/dist/tools/package/file-mutation-worker.js.map +1 -0
- package/dist/tools/package/info.d.ts +19 -0
- package/dist/tools/package/info.js +27 -0
- package/dist/tools/package/info.js.map +1 -0
- package/dist/tools/package/install.d.ts +24 -0
- package/dist/tools/package/install.js +65 -0
- package/dist/tools/package/install.js.map +1 -0
- package/dist/tools/package/list.d.ts +27 -0
- package/dist/tools/package/list.js +21 -0
- package/dist/tools/package/list.js.map +1 -0
- package/dist/tools/package/live-resolve.d.ts +46 -0
- package/dist/tools/package/live-resolve.js +497 -0
- package/dist/tools/package/live-resolve.js.map +1 -0
- package/dist/tools/package/public-result.d.ts +4 -0
- package/dist/tools/package/public-result.js +25 -0
- package/dist/tools/package/public-result.js.map +1 -0
- package/dist/tools/package/registry-clear.d.ts +15 -0
- package/dist/tools/package/registry-clear.js +27 -0
- package/dist/tools/package/registry-clear.js.map +1 -0
- package/dist/tools/package/registry-get.d.ts +10 -0
- package/dist/tools/package/registry-get.js +22 -0
- package/dist/tools/package/registry-get.js.map +1 -0
- package/dist/tools/package/registry-set.d.ts +17 -0
- package/dist/tools/package/registry-set.js +28 -0
- package/dist/tools/package/registry-set.js.map +1 -0
- package/dist/tools/package/remove.d.ts +47 -0
- package/dist/tools/package/remove.js +67 -0
- package/dist/tools/package/remove.js.map +1 -0
- package/dist/tools/package/resolve.d.ts +6 -0
- package/dist/tools/package/resolve.js +14 -0
- package/dist/tools/package/resolve.js.map +1 -0
- package/dist/tools/package/restore.d.ts +42 -0
- package/dist/tools/package/restore.js +122 -0
- package/dist/tools/package/restore.js.map +1 -0
- package/dist/tools/package/scoped-registry-add.d.ts +25 -0
- package/dist/tools/package/scoped-registry-add.js +30 -0
- package/dist/tools/package/scoped-registry-add.js.map +1 -0
- package/dist/tools/package/scoped-registry-list.d.ts +14 -0
- package/dist/tools/package/scoped-registry-list.js +22 -0
- package/dist/tools/package/scoped-registry-list.js.map +1 -0
- package/dist/tools/package/scoped-registry-remove.d.ts +29 -0
- package/dist/tools/package/scoped-registry-remove.js +31 -0
- package/dist/tools/package/scoped-registry-remove.js.map +1 -0
- package/dist/tools/package/search.d.ts +17 -0
- package/dist/tools/package/search.js +39 -0
- package/dist/tools/package/search.js.map +1 -0
- package/dist/tools/package/status.d.ts +21 -0
- package/dist/tools/package/status.js +37 -0
- package/dist/tools/package/status.js.map +1 -0
- package/dist/tools/reflect/member.d.ts +22 -0
- package/dist/tools/reflect/member.js +22 -0
- package/dist/tools/reflect/member.js.map +1 -0
- package/dist/tools/reflect/search.d.ts +30 -0
- package/dist/tools/reflect/search.js +22 -0
- package/dist/tools/reflect/search.js.map +1 -0
- package/dist/tools/reflect/type.d.ts +21 -0
- package/dist/tools/reflect/type.js +22 -0
- package/dist/tools/reflect/type.js.map +1 -0
- package/dist/tools/runtime/console.d.ts +24 -0
- package/dist/tools/runtime/console.js +17 -0
- package/dist/tools/runtime/console.js.map +1 -0
- package/dist/tools/runtime/input/key.d.ts +23 -0
- package/dist/tools/runtime/input/key.js +18 -0
- package/dist/tools/runtime/input/key.js.map +1 -0
- package/dist/tools/runtime/input/pointer.d.ts +34 -0
- package/dist/tools/runtime/input/pointer.js +18 -0
- package/dist/tools/runtime/input/pointer.js.map +1 -0
- package/dist/tools/runtime/log.d.ts +20 -0
- package/dist/tools/runtime/log.js +17 -0
- package/dist/tools/runtime/log.js.map +1 -0
- package/dist/tools/runtime/state.d.ts +45 -0
- package/dist/tools/runtime/state.js +17 -0
- package/dist/tools/runtime/state.js.map +1 -0
- package/dist/tools/runtime/target-framerate/set.d.ts +16 -0
- package/dist/tools/runtime/target-framerate/set.js +17 -0
- package/dist/tools/runtime/target-framerate/set.js.map +1 -0
- package/dist/tools/runtime/time-scale/set.d.ts +16 -0
- package/dist/tools/runtime/time-scale/set.js +17 -0
- package/dist/tools/runtime/time-scale/set.js.map +1 -0
- package/dist/tools/runtime/ui/capture-element.d.ts +31 -0
- package/dist/tools/runtime/ui/capture-element.js +17 -0
- package/dist/tools/runtime/ui/capture-element.js.map +1 -0
- package/dist/tools/test/cancel.d.ts +19 -0
- package/dist/tools/test/cancel.js +94 -0
- package/dist/tools/test/cancel.js.map +1 -0
- package/dist/tools/test/run.d.ts +39 -0
- package/dist/tools/test/run.js +101 -0
- package/dist/tools/test/run.js.map +1 -0
- package/dist/tools/tools/describe.d.ts +27 -0
- package/dist/tools/tools/describe.js +35 -0
- package/dist/tools/tools/describe.js.map +1 -0
- package/dist/tools/tools/group-list.d.ts +20 -0
- package/dist/tools/tools/group-list.js +39 -0
- package/dist/tools/tools/group-list.js.map +1 -0
- package/dist/tools/tools/group-summaries.d.ts +3 -0
- package/dist/tools/tools/group-summaries.js +52 -0
- package/dist/tools/tools/group-summaries.js.map +1 -0
- package/dist/tools/tools/group.d.ts +13 -0
- package/dist/tools/tools/group.js +34 -0
- package/dist/tools/tools/group.js.map +1 -0
- package/dist/tools/tools/search.d.ts +17 -0
- package/dist/tools/tools/search.js +42 -0
- package/dist/tools/tools/search.js.map +1 -0
- package/dist/types.d.ts +5 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/unity-project-processes.d.ts +12 -0
- package/dist/unity-project-processes.js +59 -0
- package/dist/unity-project-processes.js.map +1 -0
- package/dist/util.d.ts +11 -0
- package/dist/util.js +22 -0
- package/dist/util.js.map +1 -0
- package/dist/windows-editor-state.d.ts +31 -0
- package/dist/windows-editor-state.js +98 -0
- package/dist/windows-editor-state.js.map +1 -0
- package/docs/README.md +43 -0
- package/docs/availability-differences.md +97 -0
- package/docs/command-execution.md +89 -0
- package/docs/error-codes.md +204 -0
- package/docs/extensions.md +132 -0
- package/docs/risk-and-side-effects.md +93 -0
- package/docs/safety-boundaries.md +103 -0
- package/docs/target-and-instance.md +83 -0
- package/docs/tool-discovery.md +104 -0
- package/docs/tool-execution.md +178 -0
- package/extensions/cinemachine/bridge/domains/cinemachine.ts +115 -0
- package/extensions/cinemachine/docs/cinemachine.md +50 -0
- package/extensions/cinemachine/extension.json +129 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/CinemachineExtensionToolSupport.cs +15 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/CinemachineToolSupport.cs +854 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/aim.cs +96 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/blend.cs +140 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/body.cs +96 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/brain-ensure.cs +16 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/brain-status.cs +12 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/create.cs +147 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/extension-add.cs +13 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/extension-list.cs +13 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/extension-remove.cs +13 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/lens.cs +142 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/noise.cs +126 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/ping.cs +43 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/priority.cs +113 -0
- package/extensions/cinemachine/unitypkg/Editor/Cinemachine/target.cs +84 -0
- package/extensions/cinemachine/unitypkg/UnityCli.Extensions.Cinemachine.Editor.asmdef +18 -0
- package/extensions/hdrp/bridge/domains/hdrp.ts +41 -0
- package/extensions/hdrp/docs/hdrp.md +15 -0
- package/extensions/hdrp/extension.json +31 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/HdrpToolSupport.cs +607 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/settings-get.cs +29 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/settings-set.cs +47 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/volume-add-effect.cs +28 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/volume-create.cs +28 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/volume-info.cs +25 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/volume-list.cs +25 -0
- package/extensions/hdrp/unitypkg/Editor/Hdrp/volume-set.cs +28 -0
- package/extensions/hdrp/unitypkg/UnityCli.Extensions.Hdrp.Editor.asmdef +19 -0
- package/extensions/probuilder/bridge/domains/probuilder.ts +386 -0
- package/extensions/probuilder/docs/probuilder.md +125 -0
- package/extensions/probuilder/extension.json +291 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderAppendCompletionProof.cs +254 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderAtomicReadback.cs +293 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderBevelCompletionProof.cs +299 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderCanonicalMeshSnapshot.cs +951 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderConnectCompletionProof.cs +407 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderEdgeCompletionProof.cs +318 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderErrors.cs +83 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderFaceCompletionProof.cs +152 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderFaceExtrudeCompletionProof.cs +283 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderFlipCompletionProof.cs +170 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderInput.cs +85 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderInsertCompletionProof.cs +674 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderOperationProof.cs +137 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderReflection.cs +1064 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderRefreshUvProof.cs +53 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderSceneTool.cs +184 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderShapeTopologyRecords.g.cs +82 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ProBuilderVertexObjectCompletionProof.cs +346 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/append-vertices-to-edge.cs +118 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/auto-smooth.cs +104 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/bevel-edges.cs +119 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/bridge-edges.cs +113 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/center-pivot.cs +43 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/combine-meshes.cs +58 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/connect-elements.cs +128 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/convert-to-probuilder.cs +40 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/create-poly-shape.cs +55 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/create-polygon.cs +28 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/create-shape.cs +168 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/delete-faces.cs +42 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/detach-faces.cs +46 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/duplicate-and-flip.cs +100 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/extrude-edges.cs +118 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/extrude-faces.cs +110 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/flip-normals.cs +102 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/freeze-transform.cs +45 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/insert-vertex.cs +132 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/merge-faces.cs +44 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/merge-objects.cs +130 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/merge-vertices.cs +109 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/mesh-info.cs +117 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/move-vertices.cs +33 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/ping.cs +51 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/repair-mesh.cs +40 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/select-faces.cs +161 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/set-face-color.cs +24 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/set-face-material.cs +23 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/set-face-uvs.cs +28 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/set-pivot.cs +42 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/set-smoothing.cs +23 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/split-vertices.cs +64 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/subdivide.cs +111 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/validate-mesh.cs +75 -0
- package/extensions/probuilder/unitypkg/Editor/ProBuilder/weld-vertices.cs +112 -0
- package/extensions/probuilder/unitypkg/UnityCli.Extensions.ProBuilder.Editor.asmdef +25 -0
- package/extensions/urp/bridge/domains/urp.ts +62 -0
- package/extensions/urp/docs/urp.md +20 -0
- package/extensions/urp/extension.json +41 -0
- package/extensions/urp/unitypkg/Editor/Urp/UrpFeatureToolSupport.cs +336 -0
- package/extensions/urp/unitypkg/Editor/Urp/UrpToolSupport.cs +801 -0
- package/extensions/urp/unitypkg/Editor/Urp/feature-add.cs +12 -0
- package/extensions/urp/unitypkg/Editor/Urp/feature-configure.cs +12 -0
- package/extensions/urp/unitypkg/Editor/Urp/feature-list.cs +12 -0
- package/extensions/urp/unitypkg/Editor/Urp/feature-remove.cs +12 -0
- package/extensions/urp/unitypkg/Editor/Urp/feature-toggle.cs +12 -0
- package/extensions/urp/unitypkg/Editor/Urp/settings-get.cs +27 -0
- package/extensions/urp/unitypkg/Editor/Urp/settings-set.cs +47 -0
- package/extensions/urp/unitypkg/Editor/Urp/volume-add-effect.cs +33 -0
- package/extensions/urp/unitypkg/Editor/Urp/volume-create.cs +33 -0
- package/extensions/urp/unitypkg/Editor/Urp/volume-info.cs +31 -0
- package/extensions/urp/unitypkg/Editor/Urp/volume-list.cs +39 -0
- package/extensions/urp/unitypkg/Editor/Urp/volume-set.cs +33 -0
- package/extensions/urp/unitypkg/UnityCli.Extensions.Urp.Editor.asmdef +19 -0
- package/extensions/vfx-graph/bridge/domains/vfx.ts +337 -0
- package/extensions/vfx-graph/docs/vfx.md +28 -0
- package/extensions/vfx-graph/extension.json +72 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/VfxActionToolSupport.cs +248 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/VfxToolSupport.cs +1325 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/control-pause.cs +37 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/control-play.cs +40 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/control-reinitialize.cs +37 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/control-set-rate.cs +36 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/control-set-seed.cs +42 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/control-stop.cs +37 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/effect-add.cs +55 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/effect-assign.cs +44 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/effect-info.cs +30 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/graph-create.cs +62 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/graph-info.cs +32 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/line-create.cs +75 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/line-positions.cs +100 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/parameter.cs +216 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-clear.cs +39 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-create.cs +80 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-emission.cs +126 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-info.cs +55 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-main.cs +75 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-pause.cs +38 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-play.cs +38 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-shape.cs +148 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/particle-stop.cs +41 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/template-create.cs +58 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/template-list.cs +31 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/trail-create.cs +41 -0
- package/extensions/vfx-graph/unitypkg/Editor/Vfx/trail-set.cs +44 -0
- package/extensions/vfx-graph/unitypkg/UnityCli.Extensions.VfxGraph.Editor.asmdef +18 -0
- package/package.json +46 -0
- package/schemas/error-code.schema.json +70 -0
- package/schemas/extension-descriptor.schema.json +88 -0
- package/schemas/extension-manifest.schema.json +125 -0
- package/schemas/request-envelope.schema.json +34 -0
- package/schemas/response-envelope.schema.json +42 -0
- package/schemas/tool-metadata.schema.json +111 -0
- package/skills/unitycli/SKILL.md +61 -0
- package/skills/unitycli/agents/interface.yaml +30 -0
- package/skills/unitycli/evals/history/2026-08-05-governed-baseline.json +44 -0
- package/skills/unitycli/evals/output/cases.jsonl +5 -0
- package/skills/unitycli/evals/output/fixtures/feedback-scenario.json +27 -0
- package/skills/unitycli/evals/output/schema.json +32 -0
- package/skills/unitycli/evals/semantic_config.json +46 -0
- package/skills/unitycli/evals/trigger_cases.json +39 -0
- package/skills/unitycli/examples/feedback-event.input.json +8 -0
- package/skills/unitycli/examples/feedback-record.output.json +12 -0
- package/skills/unitycli/manifest.json +112 -0
- package/skills/unitycli/references/custom-tools.md +111 -0
- package/skills/unitycli/references/feedback.md +59 -0
- package/skills/unitycli/references/operation-protocol.md +83 -0
- package/skills/unitycli/reports/output_quality_scorecard.md +56 -0
- package/skills/unitycli/reports/trust-report.md +57 -0
- package/skills/unitycli/scripts/record-feedback.ps1 +210 -0
- package/skills/unitycli/security/network_policy.json +18 -0
- package/skills/unitycli/security/permission_policy.json +40 -0
- package/unitypkg/Editor/Bridge/BridgeCommandContext.cs +64 -0
- package/unitypkg/Editor/Bridge/BridgeCommandException.cs +39 -0
- package/unitypkg/Editor/Bridge/BridgeCommandRegistry.cs +172 -0
- package/unitypkg/Editor/Bridge/BridgeHttpServer.cs +534 -0
- package/unitypkg/Editor/Bridge/BridgeResponse.cs +58 -0
- package/unitypkg/Editor/Bridge/BridgeWorkQueue.cs +325 -0
- package/unitypkg/Editor/BridgeStartupStateMachine.cs +81 -0
- package/unitypkg/Editor/Commands/ProjectToolCommands.cs +43 -0
- package/unitypkg/Editor/Commands/RuntimeToolCommands.cs +43 -0
- package/unitypkg/Editor/Generated/UnityCliToolCompletionRegistry.g.cs +428 -0
- package/unitypkg/Editor/Infrastructure/CodeExecSupport.cs +664 -0
- package/unitypkg/Editor/Infrastructure/RegistryOwnershipResolver.cs +148 -0
- package/unitypkg/Editor/Infrastructure/UnityCliActiveOperation.cs +411 -0
- package/unitypkg/Editor/Infrastructure/UnityCliAdmission.cs +485 -0
- package/unitypkg/Editor/Infrastructure/UnityCliArtifacts.cs +110 -0
- package/unitypkg/Editor/Infrastructure/UnityCliAssetRefreshCoordinator.cs +106 -0
- package/unitypkg/Editor/Infrastructure/UnityCliBridgeHelpers.cs +155 -0
- package/unitypkg/Editor/Infrastructure/UnityCliCanonicalProjectPath.cs +325 -0
- package/unitypkg/Editor/Infrastructure/UnityCliCompilationEventBroker.cs +192 -0
- package/unitypkg/Editor/Infrastructure/UnityCliCompileCoordinator.cs +271 -0
- package/unitypkg/Editor/Infrastructure/UnityCliCompletionProbe.cs +515 -0
- package/unitypkg/Editor/Infrastructure/UnityCliEditorStateSnapshot.cs +84 -0
- package/unitypkg/Editor/Infrastructure/UnityCliInstanceRegistry.cs +558 -0
- package/unitypkg/Editor/Infrastructure/UnityCliJson.cs +155 -0
- package/unitypkg/Editor/Infrastructure/UnityCliLargeOutput.cs +128 -0
- package/unitypkg/Editor/Infrastructure/UnityCliLiveBuildCoordinator.cs +230 -0
- package/unitypkg/Editor/Infrastructure/UnityCliLiveRefreshCoordinator.cs +164 -0
- package/unitypkg/Editor/Infrastructure/UnityCliLog.cs +127 -0
- package/unitypkg/Editor/Infrastructure/UnityCliNavMeshBakeCoordinator.cs +2073 -0
- package/unitypkg/Editor/Infrastructure/UnityCliObjectPatch.cs +193 -0
- package/unitypkg/Editor/Infrastructure/UnityCliObjectRef.cs +278 -0
- package/unitypkg/Editor/Infrastructure/UnityCliObjectSerializer.cs +620 -0
- package/unitypkg/Editor/Infrastructure/UnityCliOcclusionBakeCoordinator.cs +1739 -0
- package/unitypkg/Editor/Infrastructure/UnityCliOperationCoordinator.cs +828 -0
- package/unitypkg/Editor/Infrastructure/UnityCliPackageEmbedCoordinator.cs +147 -0
- package/unitypkg/Editor/Infrastructure/UnityCliPackageResolveCoordinator.cs +454 -0
- package/unitypkg/Editor/Infrastructure/UnityCliPackageResolveState.cs +561 -0
- package/unitypkg/Editor/Infrastructure/UnityCliPipelineHandoff.cs +742 -0
- package/unitypkg/Editor/Infrastructure/UnityCliProjectSettings.cs +92 -0
- package/unitypkg/Editor/Infrastructure/UnityCliProtocolRequest.cs +116 -0
- package/unitypkg/Editor/Infrastructure/UnityCliReflection.cs +477 -0
- package/unitypkg/Editor/Infrastructure/UnityCliReloadOperation.cs +664 -0
- package/unitypkg/Editor/Infrastructure/UnityCliRequestDigest.cs +34 -0
- package/unitypkg/Editor/Infrastructure/UnityCliRuntimeBuildInjection.cs +121 -0
- package/unitypkg/Editor/Infrastructure/UnityCliRuntimeExecutor.cs +391 -0
- package/unitypkg/Editor/Infrastructure/UnityCliSceneMutation.cs +84 -0
- package/unitypkg/Editor/Infrastructure/UnityCliScriptableObjectHelpers.cs +235 -0
- package/unitypkg/Editor/Infrastructure/UnityCliSerializer.cs +580 -0
- package/unitypkg/Editor/Infrastructure/UnityCliSessionMutationLease.cs +568 -0
- package/unitypkg/Editor/Infrastructure/UnityCliStateIO.cs +73 -0
- package/unitypkg/Editor/Infrastructure/UnityCliTestRunCoordinator.cs +598 -0
- package/unitypkg/Editor/Infrastructure/UnityCliTransactionLog.cs +112 -0
- package/unitypkg/Editor/Infrastructure/UnityCliValueConverter.cs +146 -0
- package/unitypkg/Editor/Infrastructure/UnityCliWaiter.cs +716 -0
- package/unitypkg/Editor/ProjectTools/IUnityCliTool.cs +152 -0
- package/unitypkg/Editor/ProjectTools/OfficialAttributeToolRegistry.cs +992 -0
- package/unitypkg/Editor/ProjectTools/ProjectToolRegistry.cs +938 -0
- package/unitypkg/Editor/ProjectTools/ProjectToolSchemaValidator.cs +258 -0
- package/unitypkg/Editor/ProjectTools/RegisteredTool.cs +75 -0
- package/unitypkg/Editor/ProjectTools/UnityCliProjectToolContext.cs +68 -0
- package/unitypkg/Editor/ProjectTools/UnityCliSchemaDeriver.cs +297 -0
- package/unitypkg/Editor/Protocol/ProtocolEnvelopeFactory.cs +92 -0
- package/unitypkg/Editor/Protocol/envelope.cs +50 -0
- package/unitypkg/Editor/Roslyn/LICENSE.txt +23 -0
- package/unitypkg/Editor/Roslyn/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/unitypkg/Editor/Roslyn/Microsoft.CodeAnalysis.dll +0 -0
- package/unitypkg/Editor/Roslyn/System.Collections.Immutable.dll +0 -0
- package/unitypkg/Editor/Roslyn/System.Reflection.Metadata.dll +0 -0
- package/unitypkg/Editor/Tools/animation/AnimationToolSupport.cs +335 -0
- package/unitypkg/Editor/Tools/animation/AnimatorRuntimeToolSupport.cs +24 -0
- package/unitypkg/Editor/Tools/animation/animator/crossfade.cs +117 -0
- package/unitypkg/Editor/Tools/animation/animator/get-info.cs +24 -0
- package/unitypkg/Editor/Tools/animation/animator/get-parameter.cs +36 -0
- package/unitypkg/Editor/Tools/animation/animator/set-enabled.cs +33 -0
- package/unitypkg/Editor/Tools/animation/animator/set-parameter.cs +71 -0
- package/unitypkg/Editor/Tools/animation/animator/set-speed.cs +33 -0
- package/unitypkg/Editor/Tools/animation/clip/create.cs +48 -0
- package/unitypkg/Editor/Tools/animation/clip/modify.cs +43 -0
- package/unitypkg/Editor/Tools/animation/clip.cs +23 -0
- package/unitypkg/Editor/Tools/animation/play.cs +41 -0
- package/unitypkg/Editor/Tools/animation/state.cs +25 -0
- package/unitypkg/Editor/Tools/animation/stop.cs +45 -0
- package/unitypkg/Editor/Tools/asset/AssetImportSettingsToolSupport.cs +633 -0
- package/unitypkg/Editor/Tools/asset/AssetToolSupport.cs +253 -0
- package/unitypkg/Editor/Tools/asset/create.cs +84 -0
- package/unitypkg/Editor/Tools/asset/delete.cs +88 -0
- package/unitypkg/Editor/Tools/asset/duplicate.cs +68 -0
- package/unitypkg/Editor/Tools/asset/get-components.cs +177 -0
- package/unitypkg/Editor/Tools/asset/get-data.cs +73 -0
- package/unitypkg/Editor/Tools/asset/import-settings/set.cs +127 -0
- package/unitypkg/Editor/Tools/asset/import-settings.cs +54 -0
- package/unitypkg/Editor/Tools/asset/import.cs +132 -0
- package/unitypkg/Editor/Tools/asset/info.cs +48 -0
- package/unitypkg/Editor/Tools/asset/modify.cs +69 -0
- package/unitypkg/Editor/Tools/asset/move.cs +70 -0
- package/unitypkg/Editor/Tools/asset/preview.cs +86 -0
- package/unitypkg/Editor/Tools/asset/rename.cs +84 -0
- package/unitypkg/Editor/Tools/asset/search-built-in.cs +90 -0
- package/unitypkg/Editor/Tools/asset/search.cs +83 -0
- package/unitypkg/Editor/Tools/build/BuildSceneStateTool.cs +37 -0
- package/unitypkg/Editor/Tools/build/BuildSettingsToolSupport.cs +4 -0
- package/unitypkg/Editor/Tools/build/BuildToolDtos.cs +15 -0
- package/unitypkg/Editor/Tools/build/BuildToolSupport.cs +111 -0
- package/unitypkg/Editor/Tools/build/platform/get.cs +12 -0
- package/unitypkg/Editor/Tools/build/platform/set.cs +45 -0
- package/unitypkg/Editor/Tools/build/profile/create.cs +44 -0
- package/unitypkg/Editor/Tools/build/profile/list.cs +12 -0
- package/unitypkg/Editor/Tools/build/profile/modify.cs +42 -0
- package/unitypkg/Editor/Tools/build/profile/switch.cs +30 -0
- package/unitypkg/Editor/Tools/build/scene/add.cs +45 -0
- package/unitypkg/Editor/Tools/build/scene/disable.cs +3 -0
- package/unitypkg/Editor/Tools/build/scene/enable.cs +4 -0
- package/unitypkg/Editor/Tools/build/scene/list.cs +4 -0
- package/unitypkg/Editor/Tools/build/scene/remove.cs +29 -0
- package/unitypkg/Editor/Tools/build/settings/get.cs +3 -0
- package/unitypkg/Editor/Tools/build/settings/set.cs +74 -0
- package/unitypkg/Editor/Tools/camera/CameraToolSupport.cs +292 -0
- package/unitypkg/Editor/Tools/camera/create.cs +114 -0
- package/unitypkg/Editor/Tools/camera/info.cs +49 -0
- package/unitypkg/Editor/Tools/camera/lens.cs +119 -0
- package/unitypkg/Editor/Tools/camera/list.cs +52 -0
- package/unitypkg/Editor/Tools/camera/multiview.cs +96 -0
- package/unitypkg/Editor/Tools/camera/screenshot.cs +65 -0
- package/unitypkg/Editor/Tools/camera/target.cs +94 -0
- package/unitypkg/Editor/Tools/component/add.cs +125 -0
- package/unitypkg/Editor/Tools/component/get.cs +73 -0
- package/unitypkg/Editor/Tools/component/list-types.cs +90 -0
- package/unitypkg/Editor/Tools/component/modify.cs +103 -0
- package/unitypkg/Editor/Tools/component/remove.cs +147 -0
- package/unitypkg/Editor/Tools/component/set.cs +93 -0
- package/unitypkg/Editor/Tools/console/clear.cs +38 -0
- package/unitypkg/Editor/Tools/console/get.cs +28 -0
- package/unitypkg/Editor/Tools/controller/add-blend-tree-child.cs +88 -0
- package/unitypkg/Editor/Tools/controller/add-layer.cs +43 -0
- package/unitypkg/Editor/Tools/controller/add-parameter.cs +51 -0
- package/unitypkg/Editor/Tools/controller/add-state.cs +44 -0
- package/unitypkg/Editor/Tools/controller/add-transition.cs +71 -0
- package/unitypkg/Editor/Tools/controller/assign.cs +38 -0
- package/unitypkg/Editor/Tools/controller/create-blend-tree-1d.cs +40 -0
- package/unitypkg/Editor/Tools/controller/create-blend-tree-2d.cs +42 -0
- package/unitypkg/Editor/Tools/controller/create.cs +31 -0
- package/unitypkg/Editor/Tools/controller/get-info.cs +27 -0
- package/unitypkg/Editor/Tools/controller/remove-layer.cs +57 -0
- package/unitypkg/Editor/Tools/controller/set-layer-weight.cs +42 -0
- package/unitypkg/Editor/Tools/diagnose/preflight.cs +269 -0
- package/unitypkg/Editor/Tools/editor/EditorActionToolSupport.cs +117 -0
- package/unitypkg/Editor/Tools/editor/EditorSearchToolSupport.cs +146 -0
- package/unitypkg/Editor/Tools/editor/EditorToolSupport.cs +132 -0
- package/unitypkg/Editor/Tools/editor/EditorWindowFocusToolSupport.cs +194 -0
- package/unitypkg/Editor/Tools/editor/active-tool/set.cs +33 -0
- package/unitypkg/Editor/Tools/editor/active-tool.cs +100 -0
- package/unitypkg/Editor/Tools/editor/autotick/set.cs +102 -0
- package/unitypkg/Editor/Tools/editor/console.cs +26 -0
- package/unitypkg/Editor/Tools/editor/focus.cs +80 -0
- package/unitypkg/Editor/Tools/editor/menu-items.cs +50 -0
- package/unitypkg/Editor/Tools/editor/menu.cs +53 -0
- package/unitypkg/Editor/Tools/editor/pause.cs +38 -0
- package/unitypkg/Editor/Tools/editor/play.cs +43 -0
- package/unitypkg/Editor/Tools/editor/redo.cs +56 -0
- package/unitypkg/Editor/Tools/editor/resolution.cs +34 -0
- package/unitypkg/Editor/Tools/editor/search.cs +55 -0
- package/unitypkg/Editor/Tools/editor/selection/set.cs +37 -0
- package/unitypkg/Editor/Tools/editor/selection.cs +153 -0
- package/unitypkg/Editor/Tools/editor/stop.cs +43 -0
- package/unitypkg/Editor/Tools/editor/tool-states.cs +140 -0
- package/unitypkg/Editor/Tools/editor/undo.cs +56 -0
- package/unitypkg/Editor/Tools/editor/windows.cs +87 -0
- package/unitypkg/Editor/Tools/extension/status.cs +87 -0
- package/unitypkg/Editor/Tools/go/GameObjectToolSupport.cs +524 -0
- package/unitypkg/Editor/Tools/go/create.cs +333 -0
- package/unitypkg/Editor/Tools/go/delete.cs +87 -0
- package/unitypkg/Editor/Tools/go/duplicate.cs +76 -0
- package/unitypkg/Editor/Tools/go/find.cs +152 -0
- package/unitypkg/Editor/Tools/go/inspect.cs +49 -0
- package/unitypkg/Editor/Tools/go/look-at.cs +76 -0
- package/unitypkg/Editor/Tools/go/modify.cs +156 -0
- package/unitypkg/Editor/Tools/go/move-relative.cs +74 -0
- package/unitypkg/Editor/Tools/go/set-parent.cs +84 -0
- package/unitypkg/Editor/Tools/graphics/GraphicsToolSupport.cs +396 -0
- package/unitypkg/Editor/Tools/graphics/bake-cancel.cs +27 -0
- package/unitypkg/Editor/Tools/graphics/bake-clear.cs +31 -0
- package/unitypkg/Editor/Tools/graphics/bake-reflection-probe.cs +35 -0
- package/unitypkg/Editor/Tools/graphics/bake-settings.cs +131 -0
- package/unitypkg/Editor/Tools/graphics/bake-start.cs +27 -0
- package/unitypkg/Editor/Tools/graphics/bake-status.cs +31 -0
- package/unitypkg/Editor/Tools/graphics/light-probe-group.cs +56 -0
- package/unitypkg/Editor/Tools/graphics/pipeline-info.cs +19 -0
- package/unitypkg/Editor/Tools/graphics/pipeline-quality.cs +24 -0
- package/unitypkg/Editor/Tools/graphics/pipeline-settings.cs +46 -0
- package/unitypkg/Editor/Tools/graphics/probe-positions.cs +58 -0
- package/unitypkg/Editor/Tools/graphics/quality.cs +85 -0
- package/unitypkg/Editor/Tools/graphics/reflection-probe.cs +73 -0
- package/unitypkg/Editor/Tools/graphics/scene-debug.cs +37 -0
- package/unitypkg/Editor/Tools/graphics/settings.cs +104 -0
- package/unitypkg/Editor/Tools/graphics/skybox-get.cs +33 -0
- package/unitypkg/Editor/Tools/graphics/skybox-set-ambient.cs +24 -0
- package/unitypkg/Editor/Tools/graphics/skybox-set-fog.cs +24 -0
- package/unitypkg/Editor/Tools/graphics/skybox-set-material.cs +33 -0
- package/unitypkg/Editor/Tools/graphics/skybox-set-properties.cs +51 -0
- package/unitypkg/Editor/Tools/graphics/skybox-set-reflection.cs +31 -0
- package/unitypkg/Editor/Tools/graphics/skybox-set-sun.cs +35 -0
- package/unitypkg/Editor/Tools/graphics/stats-counters.cs +28 -0
- package/unitypkg/Editor/Tools/graphics/stats-memory.cs +21 -0
- package/unitypkg/Editor/Tools/graphics/stats.cs +17 -0
- package/unitypkg/Editor/Tools/graphics/volume.cs +59 -0
- package/unitypkg/Editor/Tools/instances/list.cs +71 -0
- package/unitypkg/Editor/Tools/material/MaterialToolSupport.cs +401 -0
- package/unitypkg/Editor/Tools/material/assign.cs +124 -0
- package/unitypkg/Editor/Tools/material/create.cs +82 -0
- package/unitypkg/Editor/Tools/material/info.cs +55 -0
- package/unitypkg/Editor/Tools/material/set-renderer-color.cs +108 -0
- package/unitypkg/Editor/Tools/material/set.cs +114 -0
- package/unitypkg/Editor/Tools/navmesh/NavMeshToolSupport.cs +404 -0
- package/unitypkg/Editor/Tools/navmesh/bake-clear.cs +70 -0
- package/unitypkg/Editor/Tools/navmesh/settings/set.cs +73 -0
- package/unitypkg/Editor/Tools/navmesh/settings.cs +37 -0
- package/unitypkg/Editor/Tools/object/ObjectToolSupport.cs +99 -0
- package/unitypkg/Editor/Tools/object/get-data.cs +69 -0
- package/unitypkg/Editor/Tools/object/modify.cs +126 -0
- package/unitypkg/Editor/Tools/occlusion/OcclusionToolSupport.cs +422 -0
- package/unitypkg/Editor/Tools/occlusion/bake-clear.cs +67 -0
- package/unitypkg/Editor/Tools/physics/PhysicsJointToolSupport.cs +13 -0
- package/unitypkg/Editor/Tools/physics/PhysicsToolSupport.cs +389 -0
- package/unitypkg/Editor/Tools/physics/assign-material.cs +88 -0
- package/unitypkg/Editor/Tools/physics/collision-matrix.cs +90 -0
- package/unitypkg/Editor/Tools/physics/force.cs +127 -0
- package/unitypkg/Editor/Tools/physics/joint/add.cs +99 -0
- package/unitypkg/Editor/Tools/physics/joint/remove.cs +4 -0
- package/unitypkg/Editor/Tools/physics/linecast.cs +59 -0
- package/unitypkg/Editor/Tools/physics/material.cs +73 -0
- package/unitypkg/Editor/Tools/physics/overlap.cs +84 -0
- package/unitypkg/Editor/Tools/physics/raycast-all.cs +67 -0
- package/unitypkg/Editor/Tools/physics/raycast.cs +96 -0
- package/unitypkg/Editor/Tools/physics/rigidbody.cs +116 -0
- package/unitypkg/Editor/Tools/physics/settings.cs +116 -0
- package/unitypkg/Editor/Tools/physics/shapecast.cs +127 -0
- package/unitypkg/Editor/Tools/physics/simulation.cs +89 -0
- package/unitypkg/Editor/Tools/physics/validate.cs +67 -0
- package/unitypkg/Editor/Tools/prefab/PrefabOverrideToolSupport.cs +355 -0
- package/unitypkg/Editor/Tools/prefab/PrefabToolSupport.cs +446 -0
- package/unitypkg/Editor/Tools/prefab/create.cs +125 -0
- package/unitypkg/Editor/Tools/prefab/hierarchy.cs +157 -0
- package/unitypkg/Editor/Tools/prefab/info.cs +44 -0
- package/unitypkg/Editor/Tools/prefab/instantiate.cs +106 -0
- package/unitypkg/Editor/Tools/prefab/modify.cs +112 -0
- package/unitypkg/Editor/Tools/prefab/overrides/apply.cs +51 -0
- package/unitypkg/Editor/Tools/prefab/overrides/revert.cs +51 -0
- package/unitypkg/Editor/Tools/prefab/stage-close.cs +67 -0
- package/unitypkg/Editor/Tools/prefab/stage-open.cs +69 -0
- package/unitypkg/Editor/Tools/prefab/stage-save.cs +64 -0
- package/unitypkg/Editor/Tools/prefab/stage.cs +68 -0
- package/unitypkg/Editor/Tools/prefab/unpack.cs +80 -0
- package/unitypkg/Editor/Tools/prefab/variant/create.cs +53 -0
- package/unitypkg/Editor/Tools/profiler/ProfilerFrameDebuggerSupport.cs +68 -0
- package/unitypkg/Editor/Tools/profiler/ProfilerMemorySnapshotSupport.cs +30 -0
- package/unitypkg/Editor/Tools/profiler/ProfilerToolSupport.cs +515 -0
- package/unitypkg/Editor/Tools/profiler/areas.cs +36 -0
- package/unitypkg/Editor/Tools/profiler/capture.cs +188 -0
- package/unitypkg/Editor/Tools/profiler/clear.cs +57 -0
- package/unitypkg/Editor/Tools/profiler/counter.cs +34 -0
- package/unitypkg/Editor/Tools/profiler/deep.cs +48 -0
- package/unitypkg/Editor/Tools/profiler/export.cs +85 -0
- package/unitypkg/Editor/Tools/profiler/frame-debugger/disable.cs +53 -0
- package/unitypkg/Editor/Tools/profiler/frame-debugger/enable.cs +66 -0
- package/unitypkg/Editor/Tools/profiler/frame-debugger/events.cs +140 -0
- package/unitypkg/Editor/Tools/profiler/frame.cs +38 -0
- package/unitypkg/Editor/Tools/profiler/hierarchy.cs +183 -0
- package/unitypkg/Editor/Tools/profiler/load.cs +85 -0
- package/unitypkg/Editor/Tools/profiler/memory-snapshot/compare.cs +78 -0
- package/unitypkg/Editor/Tools/profiler/memory-snapshot/list.cs +73 -0
- package/unitypkg/Editor/Tools/profiler/memory-snapshot/take.cs +147 -0
- package/unitypkg/Editor/Tools/profiler/memory.cs +34 -0
- package/unitypkg/Editor/Tools/profiler/module-enable.cs +52 -0
- package/unitypkg/Editor/Tools/profiler/modules.cs +33 -0
- package/unitypkg/Editor/Tools/profiler/object-memory.cs +49 -0
- package/unitypkg/Editor/Tools/profiler/pause.cs +49 -0
- package/unitypkg/Editor/Tools/profiler/rendering-stats.cs +109 -0
- package/unitypkg/Editor/Tools/profiler/script-stats.cs +35 -0
- package/unitypkg/Editor/Tools/profiler/start.cs +55 -0
- package/unitypkg/Editor/Tools/profiler/status.cs +36 -0
- package/unitypkg/Editor/Tools/profiler/stop.cs +53 -0
- package/unitypkg/Editor/Tools/project/ProjectSettingsReader.cs +31 -0
- package/unitypkg/Editor/Tools/project/ProjectSettingsToolSupport.cs +757 -0
- package/unitypkg/Editor/Tools/project/ProjectTagLayerToolSupport.cs +23 -0
- package/unitypkg/Editor/Tools/project/audio-settings/set.cs +35 -0
- package/unitypkg/Editor/Tools/project/audio-settings.cs +31 -0
- package/unitypkg/Editor/Tools/project/info.cs +52 -0
- package/unitypkg/Editor/Tools/project/input-settings/set.cs +35 -0
- package/unitypkg/Editor/Tools/project/input-settings.cs +35 -0
- package/unitypkg/Editor/Tools/project/layer/add.cs +3 -0
- package/unitypkg/Editor/Tools/project/layer/remove.cs +3 -0
- package/unitypkg/Editor/Tools/project/layers.cs +61 -0
- package/unitypkg/Editor/Tools/project/player-settings/set.cs +35 -0
- package/unitypkg/Editor/Tools/project/player-settings.cs +31 -0
- package/unitypkg/Editor/Tools/project/tag/add.cs +3 -0
- package/unitypkg/Editor/Tools/project/tag/remove.cs +3 -0
- package/unitypkg/Editor/Tools/project/tags.cs +45 -0
- package/unitypkg/Editor/Tools/project/time-settings/set.cs +35 -0
- package/unitypkg/Editor/Tools/project/time-settings.cs +31 -0
- package/unitypkg/Editor/Tools/reflection/method/call.cs +114 -0
- package/unitypkg/Editor/Tools/reflection/method/find.cs +72 -0
- package/unitypkg/Editor/Tools/reflection/type/schema.cs +56 -0
- package/unitypkg/Editor/Tools/scene/SceneToolSupport.cs +181 -0
- package/unitypkg/Editor/Tools/scene/active.cs +62 -0
- package/unitypkg/Editor/Tools/scene/build-settings.cs +69 -0
- package/unitypkg/Editor/Tools/scene/create.cs +78 -0
- package/unitypkg/Editor/Tools/scene/data.cs +125 -0
- package/unitypkg/Editor/Tools/scene/gameobject/component.cs +63 -0
- package/unitypkg/Editor/Tools/scene/gameobject/components.cs +77 -0
- package/unitypkg/Editor/Tools/scene/gameobject-support.cs +101 -0
- package/unitypkg/Editor/Tools/scene/gameobject.cs +83 -0
- package/unitypkg/Editor/Tools/scene/hierarchy.cs +250 -0
- package/unitypkg/Editor/Tools/scene/list-opened.cs +77 -0
- package/unitypkg/Editor/Tools/scene/load.cs +68 -0
- package/unitypkg/Editor/Tools/scene/move-object.cs +122 -0
- package/unitypkg/Editor/Tools/scene/save.cs +231 -0
- package/unitypkg/Editor/Tools/scene/set-active.cs +76 -0
- package/unitypkg/Editor/Tools/scene/unload.cs +109 -0
- package/unitypkg/Editor/Tools/scene/validate.cs +115 -0
- package/unitypkg/Editor/Tools/scene/view-frame.cs +218 -0
- package/unitypkg/Editor/Tools/screenshot/EditorElementCaptureToolSupport.cs +181 -0
- package/unitypkg/Editor/Tools/screenshot/ScreenshotToolSupport.cs +196 -0
- package/unitypkg/Editor/Tools/screenshot/editor-element.cs +87 -0
- package/unitypkg/Editor/Tools/screenshot/game-view.cs +116 -0
- package/unitypkg/Editor/Tools/screenshot/isolated-object.cs +93 -0
- package/unitypkg/Editor/Tools/screenshot/orbit.cs +103 -0
- package/unitypkg/Editor/Tools/screenshot/scene-view.cs +99 -0
- package/unitypkg/Editor/Tools/screenshot/screen.cs +89 -0
- package/unitypkg/Editor/Tools/screenshot/surround.cs +181 -0
- package/unitypkg/Editor/Tools/scriptable-object/ScriptableObjectToolSupport.cs +196 -0
- package/unitypkg/Editor/Tools/scriptable-object/create.cs +79 -0
- package/unitypkg/Editor/Tools/scriptable-object/info.cs +49 -0
- package/unitypkg/Editor/Tools/scriptable-object/list-types.cs +103 -0
- package/unitypkg/Editor/Tools/scriptable-object/modify.cs +208 -0
- package/unitypkg/Editor/Tools/shader/ShaderToolSupport.cs +326 -0
- package/unitypkg/Editor/Tools/shader/create.cs +82 -0
- package/unitypkg/Editor/Tools/shader/delete.cs +90 -0
- package/unitypkg/Editor/Tools/shader/get-data.cs +125 -0
- package/unitypkg/Editor/Tools/shader/info.cs +48 -0
- package/unitypkg/Editor/Tools/shader/list.cs +82 -0
- package/unitypkg/Editor/Tools/shader/read.cs +84 -0
- package/unitypkg/Editor/Tools/shader/update.cs +71 -0
- package/unitypkg/Editor/Tools/tests/list.cs +98 -0
- package/unitypkg/Editor/Tools/texture/TextureToolSupport.cs +327 -0
- package/unitypkg/Editor/Tools/texture/create.cs +182 -0
- package/unitypkg/Editor/Tools/texture/delete.cs +89 -0
- package/unitypkg/Editor/Tools/texture/generate.cs +189 -0
- package/unitypkg/Editor/Tools/texture/import-settings.cs +104 -0
- package/unitypkg/Editor/Tools/texture/info.cs +50 -0
- package/unitypkg/Editor/Tools/texture/modify.cs +154 -0
- package/unitypkg/Editor/Tools/texture/sprite.cs +132 -0
- package/unitypkg/Editor/Tools/timeline/TimelineMutationToolSupport.cs +696 -0
- package/unitypkg/Editor/Tools/timeline/TimelineReadToolSupport.cs +439 -0
- package/unitypkg/Editor/Tools/timeline/TimelineToolSupport.cs +203 -0
- package/unitypkg/Editor/Tools/timeline/clip/add.cs +93 -0
- package/unitypkg/Editor/Tools/timeline/create.cs +88 -0
- package/unitypkg/Editor/Tools/timeline/info.cs +54 -0
- package/unitypkg/Editor/Tools/timeline/track/add.cs +91 -0
- package/unitypkg/Editor/Tools/ui/UiToolSupport.cs +162 -0
- package/unitypkg/Editor/Tools/ui/UiUguiToolSupport.cs +24 -0
- package/unitypkg/Editor/Tools/ui/attach-document.cs +46 -0
- package/unitypkg/Editor/Tools/ui/button/create.cs +58 -0
- package/unitypkg/Editor/Tools/ui/canvas/create.cs +40 -0
- package/unitypkg/Editor/Tools/ui/create-panel-settings.cs +44 -0
- package/unitypkg/Editor/Tools/ui/detach-document.cs +41 -0
- package/unitypkg/Editor/Tools/ui/document/create.cs +49 -0
- package/unitypkg/Editor/Tools/ui/document/delete.cs +33 -0
- package/unitypkg/Editor/Tools/ui/document/info.cs +33 -0
- package/unitypkg/Editor/Tools/ui/document/update.cs +36 -0
- package/unitypkg/Editor/Tools/ui/get-visual-tree.cs +34 -0
- package/unitypkg/Editor/Tools/ui/hierarchy.cs +27 -0
- package/unitypkg/Editor/Tools/ui/image/create.cs +47 -0
- package/unitypkg/Editor/Tools/ui/link-stylesheet.cs +54 -0
- package/unitypkg/Editor/Tools/ui/list-documents.cs +34 -0
- package/unitypkg/Editor/Tools/ui/modify-visual-element.cs +76 -0
- package/unitypkg/Editor/Tools/ui/render-preview.cs +128 -0
- package/unitypkg/Editor/Tools/ui/text/create.cs +45 -0
- package/unitypkg/Editor/Tools/ui/update-panel-settings.cs +49 -0
- package/unitypkg/Editor/UnityCliBridge.cs +431 -0
- package/unitypkg/Editor/UnityCliBridgeBuildInfo.cs +9 -0
- package/unitypkg/Runtime/Infrastructure/UnityCliRuntimeBridge.cs +580 -0
- package/unitypkg/Runtime/Infrastructure/UnityCliRuntimeJson.cs +232 -0
- package/unitypkg/Runtime/Infrastructure/UnityCliRuntimeRegistry.cs +297 -0
- package/unitypkg/Runtime/Tools/UnityCliRuntimeTools.cs +701 -0
- package/unitypkg/Runtime/UnityCli.Runtime.asmdef +14 -0
- package/unitypkg/Shared/UnityCli.Shared.asmdef +14 -0
- package/unitypkg/Shared/UnityCliAdmissionPool.cs +426 -0
- package/unitypkg/Tests/Editor/UnityCli.Editor.Tests.asmdef +15 -0
- package/unitypkg/Tests/Editor/UnityCliAdmissionPoolTests.cs +262 -0
- package/unitypkg/UnityCli.Editor.asmdef +26 -0
- package/unitypkg/package.json +11 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { executeBridgePayload } from "../../bridge/index.js";
|
|
5
|
+
import { withTransitionBinding } from "../../bridge/types.js";
|
|
6
|
+
import { defaultDataDir } from "../../platform.js";
|
|
7
|
+
import { waitForEditorTransitionEnd } from "../editor/readiness.js";
|
|
8
|
+
import { rejectUnavailableEditorState } from "../editor/state.js";
|
|
9
|
+
import { blockerNextActions, blockerTimeoutMessage, blockersFromDetails, StructuredToolError } from "../errors.js";
|
|
10
|
+
const FILE_CONTROL_RESERVE_MS = 1_000;
|
|
11
|
+
/** Package Resolve 是首个 effect 时也必须走同一个公开 requestId root。 */
|
|
12
|
+
export async function runLivePackageResolve(context, operation, input, files, existingBinding) {
|
|
13
|
+
const binding = existingBinding ?? await bindLivePackageProject(context, operation);
|
|
14
|
+
const executorCapability = randomBytes(32).toString("hex");
|
|
15
|
+
const rootInput = JSON.parse(JSON.stringify(input));
|
|
16
|
+
const rootInputSha256 = hashRecord(rootInput);
|
|
17
|
+
let root = await startRoot(context, binding, operation, rootInput, executorCapability);
|
|
18
|
+
if (root.terminal)
|
|
19
|
+
return terminalResult(context.requestId, root);
|
|
20
|
+
const rootRequestDigest = root.rootRequestDigest;
|
|
21
|
+
if (!rootRequestDigest)
|
|
22
|
+
throw invalidPackageRootDigest();
|
|
23
|
+
if (operation === "resolve") {
|
|
24
|
+
await context.commitEffect?.();
|
|
25
|
+
}
|
|
26
|
+
else if (root.phase === "awaiting_files") {
|
|
27
|
+
if (!files)
|
|
28
|
+
throw new StructuredToolError("E_INTERNAL", "Package file driver is missing.", ["Report this internal package Tool error."]);
|
|
29
|
+
root = await claimFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest);
|
|
30
|
+
if (root.terminal)
|
|
31
|
+
return terminalResult(context.requestId, root);
|
|
32
|
+
if (!root.fileExecutorOwnedByCaller)
|
|
33
|
+
return waitForTerminal(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
34
|
+
let plan;
|
|
35
|
+
try {
|
|
36
|
+
plan = await runFileDriverStep(context, (signal) => files.prepare(signal));
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
root = await failFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, error);
|
|
40
|
+
return root.terminal ? terminalResult(context.requestId, root) : waitForTerminal(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
41
|
+
}
|
|
42
|
+
await context.commitEffect?.();
|
|
43
|
+
root = await commitFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, plan);
|
|
44
|
+
if (root.terminal)
|
|
45
|
+
return terminalResult(context.requestId, root);
|
|
46
|
+
if (!root.fileExecutorOwnedByCaller)
|
|
47
|
+
return waitForTerminal(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
48
|
+
try {
|
|
49
|
+
const bundle = await runFileDriverStep(context, (signal, stopAtMs) => withExactPackageLease(context, binding, context.requestId, rootRequestDigest, executorCapability, stopAtMs, signal, (guardedSignal) => files.apply(plan, guardedSignal, stopAtMs)));
|
|
50
|
+
root = await proveFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, bundle);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
root = await failFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, error);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
else if (root.phase === "files_committing" && !root.fileExecutorAlive) {
|
|
57
|
+
if (!files || !root.filePlan)
|
|
58
|
+
throw new StructuredToolError("E_EXECUTION_TIMEOUT", "Package file work did not return a terminal result before the request deadline.", ["Inspect package files before deciding whether to submit a new request."]);
|
|
59
|
+
const recoveryPlan = root.filePlan;
|
|
60
|
+
await context.commitEffect?.();
|
|
61
|
+
root = await commitFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, recoveryPlan);
|
|
62
|
+
if (root.terminal)
|
|
63
|
+
return terminalResult(context.requestId, root);
|
|
64
|
+
if (!root.fileExecutorOwnedByCaller)
|
|
65
|
+
return waitForTerminal(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
66
|
+
try {
|
|
67
|
+
const bundle = await runFileDriverStep(context, (signal) => files.recover(recoveryPlan, signal));
|
|
68
|
+
root = await proveFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, bundle);
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
root = await failFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, error);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (root.terminal)
|
|
75
|
+
return terminalResult(context.requestId, root);
|
|
76
|
+
return waitForTerminal(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
77
|
+
}
|
|
78
|
+
/** start 只接受公开 root;transport loss 后通过同一 root status 判定,不创建 child journal。 */
|
|
79
|
+
async function startRoot(context, binding, operation, input, executorCapability) {
|
|
80
|
+
const request = {
|
|
81
|
+
requestId: context.requestId,
|
|
82
|
+
command: "internal.package.resolve.start",
|
|
83
|
+
args: { expectedEditorSessionId: binding.expectedEditorSessionId, operation, input },
|
|
84
|
+
};
|
|
85
|
+
try {
|
|
86
|
+
const response = await execute(context, binding, request, true, operation);
|
|
87
|
+
return rootState(response, context.requestId);
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
const code = error instanceof StructuredToolError ? error.code : undefined;
|
|
91
|
+
if (!code || !new Set(["E_EXECUTION_TIMEOUT", "E_UNITY_TRANSITION_TIMEOUT", "BRIDGE_CONNECTION_FAILED", "E_BRIDGE_RESPONSE_INVALID", "E_BRIDGE_RESPONSE_MISMATCH"]).has(code))
|
|
92
|
+
throw error;
|
|
93
|
+
try {
|
|
94
|
+
const root = await status(context, binding, executorCapability, hashRecord(input));
|
|
95
|
+
if (root.operation === operation && root.rootInputSha256 === hashRecord(input))
|
|
96
|
+
return root;
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
// status 只有证明 exact root 已接受时才能恢复 start response loss。
|
|
100
|
+
}
|
|
101
|
+
throw error;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/** 在任何文件规划或 mutation 前取得 durable executor ownership。 */
|
|
105
|
+
async function claimFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest) {
|
|
106
|
+
return control(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, "internal.package.files.claim", "files-claim", { rootRequestId: context.requestId, executorPid: process.pid, executorCapability }, (root) => root.phase === "awaiting_files" && root.fileExecutorOwnedByCaller);
|
|
107
|
+
}
|
|
108
|
+
async function commitFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, filePlan) {
|
|
109
|
+
return control(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, "internal.package.files.commit", "files-commit", { rootRequestId: context.requestId, filePlan, executorPid: process.pid, executorCapability }, (root) => root.phase === "files_committing" && root.fileExecutorOwnedByCaller && sameRecord(root.filePlan, filePlan));
|
|
110
|
+
}
|
|
111
|
+
async function proveFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, bundle) {
|
|
112
|
+
assertSha256(bundle.expectedManifestSha256, "expectedManifestSha256");
|
|
113
|
+
return control(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, "internal.package.files.prove", "files-prove", {
|
|
114
|
+
rootRequestId: context.requestId,
|
|
115
|
+
executorPid: process.pid,
|
|
116
|
+
executorCapability,
|
|
117
|
+
expectedManifestSha256: bundle.expectedManifestSha256,
|
|
118
|
+
predicates: bundle.predicates,
|
|
119
|
+
filesProof: bundle.filesProof,
|
|
120
|
+
publicResultSeed: bundle.publicResultSeed,
|
|
121
|
+
}, (root) => root.phase !== "awaiting_files" && root.phase !== "files_committing");
|
|
122
|
+
}
|
|
123
|
+
async function failFiles(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, error) {
|
|
124
|
+
const failure = failureData(error);
|
|
125
|
+
return control(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, "internal.package.files.fail", "files-fail", { rootRequestId: context.requestId, executorPid: process.pid, executorCapability, ...failure }, (root) => root.terminal);
|
|
126
|
+
}
|
|
127
|
+
async function control(context, binding, operation, executorCapability, rootInputSha256, rootRequestDigest, command, suffix, args, recoveredTransitionHolds) {
|
|
128
|
+
const request = { requestId: childRequestId(context.requestId, suffix), command, args };
|
|
129
|
+
try {
|
|
130
|
+
const response = await execute(context, binding, request, true, operation);
|
|
131
|
+
return rootState(response, request.requestId);
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
try {
|
|
135
|
+
const root = await status(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
136
|
+
if (root.terminal || recoveredTransitionHolds(root))
|
|
137
|
+
return root;
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
// status 只有证明 exact root 已进入预期状态时才能恢复 control response loss。
|
|
141
|
+
}
|
|
142
|
+
if (isAcceptedObservationFailure(error))
|
|
143
|
+
throw acceptedExecutionTimeout(error);
|
|
144
|
+
throw error;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
async function status(context, binding, executorCapability, rootInputSha256, rootRequestDigest) {
|
|
148
|
+
const request = {
|
|
149
|
+
requestId: childRequestId(context.requestId, "status"), command: "internal.package.resolve.status",
|
|
150
|
+
args: { rootRequestId: context.requestId, rootInputSha256, ...(rootRequestDigest ? { rootRequestDigest } : {}), executorPid: process.pid, executorCapability },
|
|
151
|
+
};
|
|
152
|
+
return rootState(await execute(context, binding, request, false), request.requestId);
|
|
153
|
+
}
|
|
154
|
+
async function waitForTerminal(context, binding, executorCapability, rootInputSha256, rootRequestDigest) {
|
|
155
|
+
const deadline = context.absoluteDeadlineMs ?? Date.now() + (context.execution.timeoutMs ?? 30_000);
|
|
156
|
+
while (Date.now() < deadline) {
|
|
157
|
+
try {
|
|
158
|
+
const root = await status(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
159
|
+
if (root.terminal)
|
|
160
|
+
return terminalResult(context.requestId, root);
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
const structured = error instanceof StructuredToolError ? error : undefined;
|
|
164
|
+
if (structured && new Set(["E_EDITOR_BLOCKED", "E_UNITY_BLOCKED", "E_UNITY_TRANSITIONING", "E_UNITY_TRANSITION_TIMEOUT", "E_UNITY_UNRESPONSIVE", "E_INSTANCE_NOT_RUNNING", "E_INSTANCE_UNVERIFIABLE", "E_INSTANCE_CONFLICT", "E_EDITOR_SESSION_REPLACED", "E_EXECUTION_TIMEOUT"]).has(structured.code)) {
|
|
165
|
+
const blockers = blockersFromDetails(structured.details);
|
|
166
|
+
throw new StructuredToolError("E_EXECUTION_TIMEOUT", blockerTimeoutMessage("Package call", blockers), blockers ? blockerNextActions() : ["Inspect Package Manager and package files before submitting a new request."], { causeCode: structured.code, ...(blockers ? { blockers } : {}) }, false, 0);
|
|
167
|
+
}
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
await delay(50);
|
|
171
|
+
}
|
|
172
|
+
try {
|
|
173
|
+
const root = await status(context, binding, executorCapability, rootInputSha256, rootRequestDigest);
|
|
174
|
+
if (root.terminal)
|
|
175
|
+
return terminalResult(context.requestId, root);
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
// Deadline 后只保留统一 timeout,不泄露 control request 的 transport 细节。
|
|
179
|
+
}
|
|
180
|
+
throw new StructuredToolError("E_EXECUTION_TIMEOUT", "Package call did not return a terminal result before the immutable deadline.", ["Inspect Package Manager and package files before submitting a new request."], undefined, false, 0);
|
|
181
|
+
}
|
|
182
|
+
/** 生产路径由 SessionSupervisor 选择真实 Editor;bridgeExecute 仅用于隔离测试注入。 */
|
|
183
|
+
async function execute(context, binding, request, mutation, operation) {
|
|
184
|
+
const deadline = context.absoluteDeadlineMs ?? Date.now() + (context.execution.timeoutMs ?? 30_000);
|
|
185
|
+
const result = await executeBridgePayload(request.requestId, request.command, request.args, { ...(context.flags ?? {}), instance: binding.instanceId }, { dataDir: context.dataDir, rootAdmission: context.rootAdmission, bridgeExecute: context.bridgeExecute }, undefined, withTransitionBinding({ mode: "execute", mutation, absoluteDeadlineMs: deadline }));
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
/** 通过一次公开 editor.state 同时绑定 session 与 canonical project,文件 plan 不再读取 CLI CWD。 */
|
|
189
|
+
export async function bindLivePackageProject(context, operation) {
|
|
190
|
+
const deadline = context.absoluteDeadlineMs ?? Date.now() + (context.execution.timeoutMs ?? 30_000);
|
|
191
|
+
const state = await waitForEditorTransitionEnd(context, childRequestId(context.requestId, "package-state"), deadline);
|
|
192
|
+
if (state.status === "blocked")
|
|
193
|
+
throw new StructuredToolError("E_UNITY_BLOCKED", `package.${operation} cannot start while the Editor is blocked.`, ["Resolve the Editor blocker, then retry."], { blockers: state.blockers });
|
|
194
|
+
rejectUnavailableEditorState(state, `package.${operation}`);
|
|
195
|
+
if (!state.session.known || !state.session.editorSessionId)
|
|
196
|
+
throw new StructuredToolError("E_EDITOR_SESSION_REPLACED", `package.${operation} could not bind one verified Editor session.`, ["Inspect editor.state and retry after the session is stable."]);
|
|
197
|
+
context.projectPath = state.identity.canonicalProjectPath;
|
|
198
|
+
return { instanceId: state.identity.instanceId, expectedEditorSessionId: state.session.editorSessionId };
|
|
199
|
+
}
|
|
200
|
+
function rootState(response, requestId) {
|
|
201
|
+
if (!response.ok)
|
|
202
|
+
throw bridgeError(response);
|
|
203
|
+
const data = record(response.data);
|
|
204
|
+
if (!data)
|
|
205
|
+
throw new StructuredToolError("E_BRIDGE_PROTOCOL", "Package coordinator returned an invalid state envelope.", ["Inspect the Unity bridge and retry with a new requestId."], { requestId });
|
|
206
|
+
const nested = record(data.terminalEnvelope);
|
|
207
|
+
const state = {
|
|
208
|
+
accepted: data.accepted === true,
|
|
209
|
+
terminal: data.terminal === true,
|
|
210
|
+
phase: typeof data.phase === "string" ? data.phase : "unknown",
|
|
211
|
+
fileExecutorAlive: data.fileExecutorAlive === true,
|
|
212
|
+
fileExecutorOwnedByCaller: data.fileExecutorOwnedByCaller === true,
|
|
213
|
+
};
|
|
214
|
+
if (typeof data.operation === "string")
|
|
215
|
+
state.operation = data.operation;
|
|
216
|
+
if (typeof data.rootInputSha256 === "string")
|
|
217
|
+
state.rootInputSha256 = data.rootInputSha256;
|
|
218
|
+
if (typeof data.rootRequestDigest === "string" && /^[a-f0-9]{64}$/.test(data.rootRequestDigest))
|
|
219
|
+
state.rootRequestDigest = data.rootRequestDigest;
|
|
220
|
+
const plan = record(data.filePlan);
|
|
221
|
+
if (plan)
|
|
222
|
+
state.filePlan = plan;
|
|
223
|
+
if (nested)
|
|
224
|
+
state.terminalEnvelope = nested;
|
|
225
|
+
return state;
|
|
226
|
+
}
|
|
227
|
+
function terminalResult(rootRequestId, root) {
|
|
228
|
+
const envelope = root.terminalEnvelope;
|
|
229
|
+
if (!envelope || envelope.requestId !== rootRequestId || typeof envelope.ok !== "boolean")
|
|
230
|
+
throw new StructuredToolError("E_BRIDGE_PROTOCOL", "Package root terminal envelope is invalid.", ["Inspect package files before deciding whether to submit a new request."]);
|
|
231
|
+
if (envelope.ok === true)
|
|
232
|
+
return envelope.data;
|
|
233
|
+
const error = record(envelope.error);
|
|
234
|
+
throw new StructuredToolError(typeof error?.code === "string" ? error.code : "E_EXECUTION_FAILED", typeof error?.message === "string" ? error.message : "Package root failed.", Array.isArray(error?.nextActions) ? error.nextActions.filter((value) => typeof value === "string") : [], record(error?.details), error?.transient === true, typeof error?.retryAfterMs === "number" ? error.retryAfterMs : 0);
|
|
235
|
+
}
|
|
236
|
+
function bridgeError(response) {
|
|
237
|
+
return new StructuredToolError(response.error.code, response.error.message, response.error.nextActions ?? [], response.error.details, response.error.transient ?? false, response.error.retryAfterMs ?? 0);
|
|
238
|
+
}
|
|
239
|
+
/** 调用终态前的 selector、transport 与 blocker 失败统一为 timeout。 */
|
|
240
|
+
function isAcceptedObservationFailure(error) {
|
|
241
|
+
return error instanceof StructuredToolError && new Set([
|
|
242
|
+
"E_EDITOR_BLOCKED", "E_UNITY_BLOCKED", "E_UNITY_TRANSITIONING", "E_UNITY_TRANSITION_TIMEOUT", "E_UNITY_UNRESPONSIVE", "E_INSTANCE_NOT_RUNNING", "E_INSTANCE_UNVERIFIABLE", "E_INSTANCE_CONFLICT",
|
|
243
|
+
"E_EDITOR_SESSION_REPLACED", "E_EXECUTION_TIMEOUT", "BRIDGE_CONNECTION_FAILED", "E_BRIDGE_RESPONSE_INVALID", "E_BRIDGE_RESPONSE_MISMATCH"
|
|
244
|
+
]).has(error.code);
|
|
245
|
+
}
|
|
246
|
+
/** 保留原始 cause 与已清洗 blocker,不泄漏 control transport 细节。 */
|
|
247
|
+
function acceptedExecutionTimeout(error) {
|
|
248
|
+
const structured = error;
|
|
249
|
+
const blockers = blockersFromDetails(structured.details);
|
|
250
|
+
return new StructuredToolError("E_EXECUTION_TIMEOUT", blockerTimeoutMessage("Package call", blockers), blockers ? blockerNextActions() : ["Inspect Package Manager and package files before deciding whether to submit a new request."], { causeCode: structured.code, ...(blockers ? { blockers } : {}) }, false, 0);
|
|
251
|
+
}
|
|
252
|
+
function childRequestId(root, suffix) {
|
|
253
|
+
const value = `${root}_${suffix}`;
|
|
254
|
+
return value.length <= 200 ? value : `${root.slice(0, 180)}_${suffix}`;
|
|
255
|
+
}
|
|
256
|
+
function record(value) {
|
|
257
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : undefined;
|
|
258
|
+
}
|
|
259
|
+
/** Package root input 仅以 SHA-256 做 response-loss 等价判定,status 不回传原始输入。 */
|
|
260
|
+
function hashRecord(value) {
|
|
261
|
+
return sha256CanonicalJson(value);
|
|
262
|
+
}
|
|
263
|
+
/** 仅为 durable request 等价比较生成稳定摘要,不参与授权。 */
|
|
264
|
+
export function sha256CanonicalJson(value) {
|
|
265
|
+
return createHash("sha256").update(canonicalJson(value), "utf8").digest("hex");
|
|
266
|
+
}
|
|
267
|
+
function canonicalJson(value) {
|
|
268
|
+
if (value === null || typeof value === "string" || typeof value === "boolean")
|
|
269
|
+
return JSON.stringify(value);
|
|
270
|
+
if (typeof value === "number") {
|
|
271
|
+
if (!Number.isFinite(value))
|
|
272
|
+
throw new TypeError("Canonical JSON does not support non-finite numbers.");
|
|
273
|
+
return Object.is(value, -0) ? "0" : JSON.stringify(value);
|
|
274
|
+
}
|
|
275
|
+
if (Array.isArray(value))
|
|
276
|
+
return `[${value.map(canonicalJson).join(",")}]`;
|
|
277
|
+
if (typeof value === "object") {
|
|
278
|
+
const record = value;
|
|
279
|
+
return `{${Object.keys(record).filter((key) => record[key] !== undefined).sort().map((key) => `${JSON.stringify(key)}:${canonicalJson(record[key])}`).join(",")}}`;
|
|
280
|
+
}
|
|
281
|
+
throw new TypeError(`Canonical JSON does not support ${typeof value}.`);
|
|
282
|
+
}
|
|
283
|
+
/** 对 response-loss 后的 durable plan 做与键顺序无关的 JSON 等价比较。 */
|
|
284
|
+
function sameRecord(left, right) {
|
|
285
|
+
return left !== undefined && sameJson(left, right);
|
|
286
|
+
}
|
|
287
|
+
/** 递归比较 JSON value 与 object keys。 */
|
|
288
|
+
function sameJson(left, right) {
|
|
289
|
+
if (Object.is(left, right))
|
|
290
|
+
return true;
|
|
291
|
+
if (Array.isArray(left) || Array.isArray(right)) {
|
|
292
|
+
return Array.isArray(left) && Array.isArray(right) && left.length === right.length
|
|
293
|
+
&& left.every((value, index) => sameJson(value, right[index]));
|
|
294
|
+
}
|
|
295
|
+
const leftRecord = record(left);
|
|
296
|
+
const rightRecord = record(right);
|
|
297
|
+
if (!leftRecord || !rightRecord)
|
|
298
|
+
return false;
|
|
299
|
+
const leftKeys = Object.keys(leftRecord).sort();
|
|
300
|
+
const rightKeys = Object.keys(rightRecord).sort();
|
|
301
|
+
return leftKeys.length === rightKeys.length && leftKeys.every((key, index) => key === rightKeys[index] && sameJson(leftRecord[key], rightRecord[key]));
|
|
302
|
+
}
|
|
303
|
+
function assertSha256(value, field) {
|
|
304
|
+
if (!/^[0-9a-f]{64}$/.test(value))
|
|
305
|
+
throw new StructuredToolError("E_EXECUTION_TIMEOUT", `Package ${field} is not a fresh SHA-256 proof.`, ["Inspect package files before deciding whether to submit a new request."], undefined, false, 0);
|
|
306
|
+
}
|
|
307
|
+
function failureData(error) {
|
|
308
|
+
const candidate = error;
|
|
309
|
+
return {
|
|
310
|
+
code: typeof candidate?.code === "string" ? candidate.code : "E_EXECUTION_FAILED",
|
|
311
|
+
message: typeof candidate?.message === "string" && candidate.message ? candidate.message : "Package file mutation did not reach fresh proof.",
|
|
312
|
+
nextActions: Array.isArray(candidate?.nextActions) ? candidate.nextActions.filter((value) => typeof value === "string") : [],
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
const PACKAGE_LEASE_GUARD_SCRIPT = `
|
|
316
|
+
$ErrorActionPreference = 'Stop'
|
|
317
|
+
$path = $env:UNITY_CLI_LEASE_PATH
|
|
318
|
+
$revokePath = $env:UNITY_CLI_REVOKE_PATH
|
|
319
|
+
$rootPath = $env:UNITY_CLI_PACKAGE_ROOT_PATH
|
|
320
|
+
$epochPath = $env:UNITY_CLI_RELOAD_EPOCH_PATH
|
|
321
|
+
$requestId = $env:UNITY_CLI_ROOT_REQUEST_ID
|
|
322
|
+
$requestDigest = $env:UNITY_CLI_ROOT_REQUEST_DIGEST
|
|
323
|
+
$editorSessionId = $env:UNITY_CLI_EDITOR_SESSION_ID
|
|
324
|
+
$executorPid = [long]$env:UNITY_CLI_EXECUTOR_PID
|
|
325
|
+
$executorCapabilitySha256 = $env:UNITY_CLI_EXECUTOR_CAPABILITY_SHA256
|
|
326
|
+
function Read-Epoch {
|
|
327
|
+
$epoch = [System.IO.File]::ReadAllText($epochPath) | ConvertFrom-Json
|
|
328
|
+
if ($epoch.editorSessionId -ne $editorSessionId -or [string]::IsNullOrWhiteSpace($epoch.epoch)) { throw 'reload-epoch-invalid' }
|
|
329
|
+
return $epoch.epoch
|
|
330
|
+
}
|
|
331
|
+
function Test-Revoked([string]$baselineEpoch) {
|
|
332
|
+
try {
|
|
333
|
+
if ((Read-Epoch) -ne $baselineEpoch) { return $true }
|
|
334
|
+
$root = [System.IO.File]::ReadAllText($rootPath) | ConvertFrom-Json
|
|
335
|
+
if ($root.requestId -ne $requestId -or $root.requestDigest -ne $requestDigest -or $root.editorSessionId -ne $editorSessionId -or $root.phase -ne 'effect_started') { return $true }
|
|
336
|
+
if ($null -eq $root.packageOperation -or $root.packageOperation.phase -ne 'files_committing' -or [long]$root.packageOperation.fileExecutorPid -ne $executorPid -or $root.packageOperation.fileExecutorCapabilitySha256 -ne $executorCapabilitySha256) { return $true }
|
|
337
|
+
if ([System.IO.File]::Exists($revokePath)) {
|
|
338
|
+
$revoke = [System.IO.File]::ReadAllText($revokePath) | ConvertFrom-Json
|
|
339
|
+
if ($revoke.requestId -eq $requestId -and $revoke.requestDigest -eq $requestDigest -and $revoke.editorSessionId -eq $editorSessionId) { return $true }
|
|
340
|
+
}
|
|
341
|
+
return $false
|
|
342
|
+
}
|
|
343
|
+
catch { return $true }
|
|
344
|
+
}
|
|
345
|
+
$deadline = [DateTimeOffset]::FromUnixTimeMilliseconds([long]$env:UNITY_CLI_EFFECT_STOP_AT_MS).UtcDateTime
|
|
346
|
+
while ([DateTime]::UtcNow -lt $deadline) {
|
|
347
|
+
try {
|
|
348
|
+
$stream = [System.IO.FileStream]::new($path, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::None)
|
|
349
|
+
try {
|
|
350
|
+
$bytes = [byte[]]::new($stream.Length)
|
|
351
|
+
$read = $stream.Read($bytes, 0, $bytes.Length)
|
|
352
|
+
if ($read -ne $bytes.Length) { throw 'lease-read-incomplete' }
|
|
353
|
+
$owner = [System.Text.Encoding]::UTF8.GetString($bytes) | ConvertFrom-Json
|
|
354
|
+
if ($owner.requestId -ne $requestId -or $owner.requestDigest -ne $requestDigest) { exit 3 }
|
|
355
|
+
try { $baselineEpoch = Read-Epoch } catch { exit 4 }
|
|
356
|
+
if (Test-Revoked $baselineEpoch) { exit 4 }
|
|
357
|
+
[Console]::Out.WriteLine('READY')
|
|
358
|
+
[Console]::Out.Flush()
|
|
359
|
+
$release = [Console]::In.ReadLineAsync()
|
|
360
|
+
while (-not $release.IsCompleted) {
|
|
361
|
+
if (Test-Revoked $baselineEpoch) { exit 4 }
|
|
362
|
+
Start-Sleep -Milliseconds 5
|
|
363
|
+
}
|
|
364
|
+
exit 0
|
|
365
|
+
}
|
|
366
|
+
finally { $stream.Dispose() }
|
|
367
|
+
}
|
|
368
|
+
catch {
|
|
369
|
+
Start-Sleep -Milliseconds 5
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
exit 2
|
|
373
|
+
`;
|
|
374
|
+
/** Worker文件effect期间独占并核对exact Unity lease,阻止reload/cleanup跨过Node effect。 */
|
|
375
|
+
async function withExactPackageLease(context, binding, requestId, requestDigest, executorCapability, stopAtMs, signal, run) {
|
|
376
|
+
if (!/^[a-f0-9]{64}$/.test(requestDigest))
|
|
377
|
+
throw invalidPackageRootDigest();
|
|
378
|
+
if (!context.projectPath)
|
|
379
|
+
throw packageLeaseGuardError("Package file effect has no canonical project binding.");
|
|
380
|
+
const leasePath = path.join(context.dataDir ?? defaultDataDir(), ".temp", "requests", binding.instanceId, ".instance-resource.lock");
|
|
381
|
+
const unityCliStateRoot = path.join(context.projectPath, "Library", "UnityCli");
|
|
382
|
+
const revokePath = path.join(unityCliStateRoot, "active-package-file-revoke.json");
|
|
383
|
+
const packageRootPath = path.join(unityCliStateRoot, "active-package-resolve.json");
|
|
384
|
+
const reloadEpochPath = path.join(unityCliStateRoot, "active-package-reload-epoch.json");
|
|
385
|
+
const child = spawn("powershell.exe", ["-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", PACKAGE_LEASE_GUARD_SCRIPT], {
|
|
386
|
+
env: {
|
|
387
|
+
...process.env,
|
|
388
|
+
UNITY_CLI_LEASE_PATH: leasePath,
|
|
389
|
+
UNITY_CLI_REVOKE_PATH: revokePath,
|
|
390
|
+
UNITY_CLI_PACKAGE_ROOT_PATH: packageRootPath,
|
|
391
|
+
UNITY_CLI_RELOAD_EPOCH_PATH: reloadEpochPath,
|
|
392
|
+
UNITY_CLI_ROOT_REQUEST_ID: requestId,
|
|
393
|
+
UNITY_CLI_ROOT_REQUEST_DIGEST: requestDigest,
|
|
394
|
+
UNITY_CLI_EDITOR_SESSION_ID: binding.expectedEditorSessionId,
|
|
395
|
+
UNITY_CLI_EXECUTOR_PID: String(process.pid),
|
|
396
|
+
UNITY_CLI_EXECUTOR_CAPABILITY_SHA256: createHash("sha256").update(executorCapability).digest("hex"),
|
|
397
|
+
UNITY_CLI_EFFECT_STOP_AT_MS: String(stopAtMs),
|
|
398
|
+
},
|
|
399
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
400
|
+
windowsHide: true,
|
|
401
|
+
});
|
|
402
|
+
let stderr = "";
|
|
403
|
+
child.stderr.on("data", (chunk) => { if (stderr.length < 4096)
|
|
404
|
+
stderr += chunk.toString("utf8"); });
|
|
405
|
+
const exit = new Promise((resolve, reject) => {
|
|
406
|
+
child.once("error", reject);
|
|
407
|
+
child.once("exit", (code, childSignal) => resolve({ code, signal: childSignal }));
|
|
408
|
+
});
|
|
409
|
+
const ready = new Promise((resolve, reject) => {
|
|
410
|
+
let output = "";
|
|
411
|
+
const timer = setTimeout(() => reject(packageLeaseGuardError("The exact Package lease guard did not become ready.")), Math.max(1, stopAtMs - Date.now()));
|
|
412
|
+
const onAbort = () => reject(signal.reason ?? packageLeaseGuardError("Package file effect was cancelled before lease authorization."));
|
|
413
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
414
|
+
child.stdout.on("data", (chunk) => {
|
|
415
|
+
output += chunk.toString("utf8");
|
|
416
|
+
if (!output.includes("READY"))
|
|
417
|
+
return;
|
|
418
|
+
clearTimeout(timer);
|
|
419
|
+
signal.removeEventListener("abort", onAbort);
|
|
420
|
+
resolve();
|
|
421
|
+
});
|
|
422
|
+
exit.then(({ code }) => {
|
|
423
|
+
if (output.includes("READY"))
|
|
424
|
+
return;
|
|
425
|
+
clearTimeout(timer);
|
|
426
|
+
signal.removeEventListener("abort", onAbort);
|
|
427
|
+
reject(packageLeaseGuardError(`The exact Package lease guard exited before authorization (${code ?? "signal"}).`));
|
|
428
|
+
}, reject);
|
|
429
|
+
});
|
|
430
|
+
let releasing = false;
|
|
431
|
+
let authorized = false;
|
|
432
|
+
const guardAbort = new AbortController();
|
|
433
|
+
const abortGuard = () => guardAbort.abort(signal.reason);
|
|
434
|
+
signal.addEventListener("abort", abortGuard, { once: true });
|
|
435
|
+
exit.then(({ code }) => {
|
|
436
|
+
if (!releasing)
|
|
437
|
+
guardAbort.abort(packageLeaseGuardError(`The exact Package lease guard exited during file effect (${code ?? "signal"}).`));
|
|
438
|
+
}).catch((error) => { if (!releasing)
|
|
439
|
+
guardAbort.abort(error); });
|
|
440
|
+
try {
|
|
441
|
+
await ready;
|
|
442
|
+
authorized = true;
|
|
443
|
+
signal.throwIfAborted();
|
|
444
|
+
const result = await run(guardAbort.signal);
|
|
445
|
+
guardAbort.signal.throwIfAborted();
|
|
446
|
+
return result;
|
|
447
|
+
}
|
|
448
|
+
finally {
|
|
449
|
+
releasing = true;
|
|
450
|
+
signal.removeEventListener("abort", abortGuard);
|
|
451
|
+
if (!authorized)
|
|
452
|
+
child.kill();
|
|
453
|
+
else
|
|
454
|
+
try {
|
|
455
|
+
child.stdin.write("RELEASE\n");
|
|
456
|
+
child.stdin.end();
|
|
457
|
+
}
|
|
458
|
+
catch {
|
|
459
|
+
child.kill();
|
|
460
|
+
}
|
|
461
|
+
const settled = await exit.catch(() => ({ code: null, signal: null }));
|
|
462
|
+
if (settled.code !== 0 && !signal.aborted)
|
|
463
|
+
throw packageLeaseGuardError(`The exact Package lease guard did not release cleanly (${settled.code ?? "signal"}): ${stderr.slice(0, 256)}`);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
function invalidPackageRootDigest() {
|
|
467
|
+
return packageLeaseGuardError("Package root did not expose its exact request digest.");
|
|
468
|
+
}
|
|
469
|
+
function packageLeaseGuardError(message) {
|
|
470
|
+
return new StructuredToolError("E_EXECUTION_TIMEOUT", message, ["Inspect Package files and the selected Editor session before submitting another mutation."], undefined, false, 0);
|
|
471
|
+
}
|
|
472
|
+
/** 为 file control 回写保留 deadline 预算;生产 apply 会把同一 stopAtMs 交给独立 Worker。 */
|
|
473
|
+
async function runFileDriverStep(context, run) {
|
|
474
|
+
const deadline = context.absoluteDeadlineMs ?? Date.now() + (context.execution.timeoutMs ?? 30_000);
|
|
475
|
+
const remainingMs = deadline - Date.now();
|
|
476
|
+
const reserveMs = Math.min(FILE_CONTROL_RESERVE_MS, Math.max(100, Math.floor(remainingMs / 10)));
|
|
477
|
+
const stopAtMs = deadline - reserveMs;
|
|
478
|
+
if (stopAtMs <= Date.now())
|
|
479
|
+
throw fileDriverDeadlineError();
|
|
480
|
+
const controller = new AbortController();
|
|
481
|
+
const timer = setTimeout(() => controller.abort(fileDriverDeadlineError()), Math.max(1, stopAtMs - Date.now()));
|
|
482
|
+
try {
|
|
483
|
+
controller.signal.throwIfAborted();
|
|
484
|
+
const result = await run(controller.signal, stopAtMs);
|
|
485
|
+
controller.signal.throwIfAborted();
|
|
486
|
+
return result;
|
|
487
|
+
}
|
|
488
|
+
finally {
|
|
489
|
+
clearTimeout(timer);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
/** 将预留控制预算耗尽投影为确定的本地 timeout。 */
|
|
493
|
+
function fileDriverDeadlineError() {
|
|
494
|
+
return new StructuredToolError("E_EXECUTION_TIMEOUT", "Package file work did not settle before the reserved control deadline.", ["Inspect package files before deciding whether to submit a new request."], undefined, false, 0);
|
|
495
|
+
}
|
|
496
|
+
function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
|
|
497
|
+
//# sourceMappingURL=live-resolve.js.map
|
|
@@ -0,0 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,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IACjG,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,IAAI,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE;QAAE,MAAM,uBAAuB,EAAE,CAAC;IAC5D,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,uBAAuB,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAChH,IAAI,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACtD,UAAU,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACnC,OAAO,MAAM,CAAC;IAChB,CAAC;YAAS,CAAC;QACT,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACH,CAAC;AAED,iCAAiC;AACjC,SAAS,uBAAuB;IAC9B,OAAO,IAAI,mBAAmB,CAC5B,qBAAqB,EACrB,wEAAwE,EACxE,CAAC,wEAAwE,CAAC,EAC1E,SAAS,EACT,KAAK,EACL,CAAC,CACF,CAAC;AACJ,CAAC;AAED,SAAS,KAAK,CAAC,EAAU,IAAmB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** 将内部绝对项目路径投影为稳定的项目相对业务路径,并拒绝越界值。 */
|
|
2
|
+
export declare function projectRelativePath(projectPath: string, value: string, field: string): string;
|
|
3
|
+
/** plannedEffects 只保留业务路径;外部 source 通过调用方提供的公开别名投影。 */
|
|
4
|
+
export declare function publicPackageEffects(projectPath: string, effects: Array<Record<string, unknown>>, pathAliases?: ReadonlyMap<string, string>): Array<Record<string, unknown>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
2
|
+
/** 将内部绝对项目路径投影为稳定的项目相对业务路径,并拒绝越界值。 */
|
|
3
|
+
export function projectRelativePath(projectPath, value, field) {
|
|
4
|
+
const root = resolve(projectPath);
|
|
5
|
+
const resolved = resolve(value);
|
|
6
|
+
const projected = relative(root, resolved);
|
|
7
|
+
if (!projected || projected === ".." || projected.startsWith(`..${sep}`) || isAbsolute(projected)) {
|
|
8
|
+
throw new Error(`Package ${field} is outside the selected project or resolves to its root.`);
|
|
9
|
+
}
|
|
10
|
+
return projected.split("\\").join("/");
|
|
11
|
+
}
|
|
12
|
+
/** plannedEffects 只保留业务路径;外部 source 通过调用方提供的公开别名投影。 */
|
|
13
|
+
export function publicPackageEffects(projectPath, effects, pathAliases = new Map()) {
|
|
14
|
+
return effects.map((effect) => {
|
|
15
|
+
const projected = { ...effect };
|
|
16
|
+
for (const field of ["from", "to", "targetPath"]) {
|
|
17
|
+
const value = projected[field];
|
|
18
|
+
if (typeof value !== "string")
|
|
19
|
+
continue;
|
|
20
|
+
projected[field] = pathAliases.get(resolve(value)) ?? projectRelativePath(projectPath, value, `plannedEffects.${field}`);
|
|
21
|
+
}
|
|
22
|
+
return projected;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=public-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-result.js","sourceRoot":"","sources":["../../../src/tools/package/public-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE/D,sCAAsC;AACtC,MAAM,UAA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ackageRegistryClearRequest {
|
|
2
|
+
project?: string;
|
|
3
|
+
}
|
|
4
|
+
export interface PackageRegistryClearResult {
|
|
5
|
+
projectPath: string;
|
|
6
|
+
manifestPath: string;
|
|
7
|
+
registryCleared?: boolean;
|
|
8
|
+
dryRun?: boolean;
|
|
9
|
+
plannedEffects?: Array<{
|
|
10
|
+
type: string;
|
|
11
|
+
registry?: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("../define.js").ToolDefinition<PackageRegistryClearRequest, PackageRegistryClearResult>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import { clearRegistry } from "../../package-manager.js";
|
|
3
|
+
import { defineTool } from "../define.js";
|
|
4
|
+
export default defineTool({
|
|
5
|
+
name: "package.registry.clear",
|
|
6
|
+
summary: "Clear the primary registry URL from the project manifest.",
|
|
7
|
+
description: "Remove the primary registry URL from Packages/manifest.json. Supports --dry-run.",
|
|
8
|
+
group: "package",
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
supportsDryRun: true,
|
|
11
|
+
sideEffects: ["manifest-change"],
|
|
12
|
+
playModeSupport: "supported",
|
|
13
|
+
handler: "offline",
|
|
14
|
+
supportStatus: "cli-only",
|
|
15
|
+
examples: [
|
|
16
|
+
{ description: "Clear the primary registry", argv: ["tools", "run", "package.registry.clear", "--input", "{}"] }
|
|
17
|
+
],
|
|
18
|
+
async execute(request, context) {
|
|
19
|
+
const projectPath = resolve(request.project ?? context.projectPath);
|
|
20
|
+
const prepared = await clearRegistry(projectPath, { dryRun: true });
|
|
21
|
+
if (context.execution.dryRun)
|
|
22
|
+
return { projectPath, ...prepared };
|
|
23
|
+
await context.commitEffect?.();
|
|
24
|
+
return { projectPath, ...(await clearRegistry(projectPath)) };
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=registry-clear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-clear.js","sourceRoot":"","sources":["../../../src/tools/package/registry-clear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAoB,MAAM,cAAc,CAAC;AAc5D,eAAe,UAAU,CAA0D;IACjF,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,2DAA2D;IACpE,WAAW,EAAE,kFAAkF;IAC/F,KAAK,EAAE,SAAS;IAChB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;IACpB,WAAW,EAAE,CAAC,iBAAiB,CAAC;IAChC,eAAe,EAAE,WAAW;IAC5B,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,UAAU;IACzB,QAAQ,EAAE;QACR,EAAE,WAAW,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE;KACjH;IACD,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO;QAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACpE,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM;YAAE,OAAO,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAgC,CAAC;QAChG,MAAM,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;QAC/B,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,WAAW,CAAC,CAAC,EAAgC,CAAC;IAC9F,CAAC;CACF,CAAC,CAAC"}
|