@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,201 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { executeBridgePayload } from "../../bridge/index.js";
|
|
3
|
+
import { withTransitionBinding } from "../../bridge/types.js";
|
|
4
|
+
import { waitForEditorTransitionEnd } from "../editor/readiness.js";
|
|
5
|
+
import { rejectUnavailableEditorState } from "../editor/state.js";
|
|
6
|
+
import { blockerNextActions, blockerTimeoutMessage, blockersFromDetails, StructuredToolError } from "../errors.js";
|
|
7
|
+
/** 以一个公开requestId启动Occlusion durable root,只在terminal scene/Umbra proof后返回。 */
|
|
8
|
+
export async function runOcclusionBake(input, context) {
|
|
9
|
+
const binding = await bind(context, "occlusion.bake", true);
|
|
10
|
+
const deadline = deadlineOf(context);
|
|
11
|
+
const request = { expectedEditorSessionId: binding.sessionId, ...input };
|
|
12
|
+
if (context.execution.dryRun) {
|
|
13
|
+
const planned = await call(childId(context.requestId, "_occlusion_plan"), "internal.occlusion.bake.plan", request, binding.flags, context, withTransitionBinding({ mode: "read", mutation: false, absoluteDeadlineMs: deadline }));
|
|
14
|
+
return normalizeDryRun(record(planned.data));
|
|
15
|
+
}
|
|
16
|
+
const execute = withTransitionBinding({ mode: "execute", mutation: true, absoluteDeadlineMs: deadline });
|
|
17
|
+
const observe = withTransitionBinding({ mode: "read", mutation: false, absoluteDeadlineMs: deadline });
|
|
18
|
+
let accepted = false;
|
|
19
|
+
let terminalReceived = false;
|
|
20
|
+
try {
|
|
21
|
+
let root = record((await call(context.requestId, "internal.occlusion.bake.start", request, binding.flags, context, execute)).data);
|
|
22
|
+
accepted = root.accepted === true || root.terminal === true;
|
|
23
|
+
const rootRequestDigest = root.terminal === true ? undefined : typeof root.rootRequestDigest === "string" && /^[a-f0-9]{64}$/.test(root.rootRequestDigest) ? root.rootRequestDigest : undefined;
|
|
24
|
+
if (root.terminal !== true && !rootRequestDigest)
|
|
25
|
+
throw invalid("start omitted its exact root digest");
|
|
26
|
+
while (root.terminal !== true) {
|
|
27
|
+
if (root.terminal !== false || root.accepted !== true)
|
|
28
|
+
throw invalid("start returned neither acceptance nor a root terminal");
|
|
29
|
+
if (Date.now() >= deadline)
|
|
30
|
+
throw timeout("occlusion.bake", "E_EXECUTION_TIMEOUT");
|
|
31
|
+
await delay(Math.min(100, Math.max(1, deadline - Date.now())));
|
|
32
|
+
root = record((await call(childId(context.requestId, "_occlusion_status"), "internal.occlusion.bake.status", { rootRequestId: context.requestId, rootRequestDigest }, binding.flags, context, observe)).data);
|
|
33
|
+
}
|
|
34
|
+
terminalReceived = true;
|
|
35
|
+
return terminal(root, context.requestId);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
if (terminalReceived || !accepted || (error instanceof StructuredToolError && error.code === "E_EXECUTION_TIMEOUT"))
|
|
39
|
+
throw error;
|
|
40
|
+
const cause = error instanceof StructuredToolError ? error : undefined;
|
|
41
|
+
throw timeout("occlusion.bake", cause?.code ?? "BRIDGE_CONNECTION_FAILED", cause?.details);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** 读取当前process session的有界Occlusion状态,不获取mutation lease。 */
|
|
45
|
+
export async function readOcclusionBakeStatus(context) {
|
|
46
|
+
const deadline = deadlineOf(context);
|
|
47
|
+
const flags = { ...(context.flags ?? {}) };
|
|
48
|
+
const response = await call(childId(context.requestId, "_occlusion_snapshot"), "internal.occlusion.bake.snapshot", {}, flags, context, withTransitionBinding({ mode: "read", mutation: false, absoluteDeadlineMs: deadline }));
|
|
49
|
+
return normalizeStatus(record(response.data));
|
|
50
|
+
}
|
|
51
|
+
/** 冻结exact operationId;仅queued operation可到达cancelled terminal,running返回false。 */
|
|
52
|
+
export async function cancelOcclusionBake(requestedOperationId, context) {
|
|
53
|
+
const deadline = deadlineOf(context);
|
|
54
|
+
const flags = { ...(context.flags ?? {}) };
|
|
55
|
+
const observe = withTransitionBinding({ mode: "read", mutation: false, absoluteDeadlineMs: deadline });
|
|
56
|
+
let status;
|
|
57
|
+
let operationId = requestedOperationId;
|
|
58
|
+
if (operationId === undefined) {
|
|
59
|
+
status = normalizeStatus(record((await call(childId(context.requestId, "_occlusion_cancel_snapshot"), "internal.occlusion.bake.snapshot", {}, flags, context, observe)).data));
|
|
60
|
+
if (!status.active || status.state !== "running" || !status.operationId)
|
|
61
|
+
return { cancelled: false, operationId: null, status };
|
|
62
|
+
operationId = status.operationId;
|
|
63
|
+
}
|
|
64
|
+
await context.commitEffect?.();
|
|
65
|
+
const cancellation = record((await call(childId(context.requestId, "_occlusion_cancel"), "internal.occlusion.bake.cancel", { operationId }, flags, context, withTransitionBinding({ mode: "execute", mutation: true, absoluteDeadlineMs: deadline }))).data);
|
|
66
|
+
status = normalizeStatus(record(cancellation.status));
|
|
67
|
+
if (cancellation.cancelled !== true)
|
|
68
|
+
return { cancelled: false, operationId, status };
|
|
69
|
+
if (!status.active && status.operationId === operationId && status.state === "cancelled")
|
|
70
|
+
return { cancelled: true, operationId, status };
|
|
71
|
+
if (!status.active && status.operationId === operationId && status.state === "failed")
|
|
72
|
+
throw timeout("occlusion.bake-cancel", "E_EXECUTION_TIMEOUT");
|
|
73
|
+
while (Date.now() < deadline) {
|
|
74
|
+
status = normalizeStatus(record((await call(childId(context.requestId, "_occlusion_cancel_readback"), "internal.occlusion.bake.snapshot", {}, flags, context, observe)).data));
|
|
75
|
+
if (!status.active && status.operationId === operationId && status.state === "cancelled")
|
|
76
|
+
return { cancelled: true, operationId, status };
|
|
77
|
+
if (!status.active && status.operationId === operationId && status.state === "failed")
|
|
78
|
+
throw timeout("occlusion.bake-cancel", "E_EXECUTION_TIMEOUT");
|
|
79
|
+
await delay(Math.min(100, Math.max(1, deadline - Date.now())));
|
|
80
|
+
}
|
|
81
|
+
throw timeout("occlusion.bake-cancel", "E_EXECUTION_TIMEOUT");
|
|
82
|
+
}
|
|
83
|
+
async function bind(context, tool, requireEditMode) {
|
|
84
|
+
const deadline = deadlineOf(context);
|
|
85
|
+
const state = await waitForEditorTransitionEnd(context, childId(context.requestId, "_occlusion_state"), deadline);
|
|
86
|
+
if (state.status === "blocked")
|
|
87
|
+
throw new StructuredToolError("E_UNITY_BLOCKED", `${tool} cannot run while the Editor is blocked.`, ["Resolve the Editor blocker, then retry."], { blockers: state.blockers });
|
|
88
|
+
rejectUnavailableEditorState(state, tool);
|
|
89
|
+
if (!state.session.known || !state.session.editorSessionId)
|
|
90
|
+
throw new StructuredToolError("E_EDITOR_SESSION_REPLACED", `${tool} could not bind one verified Editor session.`, ["Inspect editor.state and retry after the session is stable."]);
|
|
91
|
+
if (requireEditMode && isPlaying(state.state.playMode.value))
|
|
92
|
+
throw new StructuredToolError("E_TOOL_PLAYMODE_UNAVAILABLE", `${tool} is available only in Edit Mode.`, ["Exit Play Mode, then retry."]);
|
|
93
|
+
return { flags: { ...(context.flags ?? {}), instance: state.identity.instanceId }, sessionId: state.session.editorSessionId };
|
|
94
|
+
}
|
|
95
|
+
async function call(requestId, command, input, flags, context, invocation) {
|
|
96
|
+
const response = await executeBridgePayload(requestId, command, input, flags, { dataDir: context.dataDir, rootAdmission: context.rootAdmission, bridgeExecute: context.bridgeExecute }, undefined, invocation);
|
|
97
|
+
if (!response.ok)
|
|
98
|
+
throw StructuredToolError.from(response.error ?? { code: "BRIDGE_CONNECTION_FAILED", message: "Occlusion bridge command failed." });
|
|
99
|
+
return { data: response.data };
|
|
100
|
+
}
|
|
101
|
+
function terminal(root, requestId) {
|
|
102
|
+
const envelope = record(root.rootEnvelope);
|
|
103
|
+
if (envelope.requestId !== requestId || typeof envelope.ok !== "boolean")
|
|
104
|
+
throw invalid("returned an invalid root terminal envelope");
|
|
105
|
+
if (envelope.ok !== true) {
|
|
106
|
+
const error = record(envelope.error);
|
|
107
|
+
throw new StructuredToolError(string(error.code) ?? "E_EXECUTION_TIMEOUT", string(error.message) ?? "Occlusion bake failed without a structured terminal.", strings(error.nextActions), optionalRecord(error.details), error.transient === true, integer(error.retryAfterMs) ? error.retryAfterMs : 0);
|
|
108
|
+
}
|
|
109
|
+
return normalizeTerminal(record(envelope.data));
|
|
110
|
+
}
|
|
111
|
+
function normalizeDryRun(value) {
|
|
112
|
+
const targetCount = nonnegative(value.targetCount);
|
|
113
|
+
const scenes = Array.isArray(value.scenes) ? value.scenes.map(normalizeScene) : undefined;
|
|
114
|
+
const effectiveSettings = normalizeSettings(record(value.effectiveSettings));
|
|
115
|
+
const before = normalizeSnapshot(record(value.before));
|
|
116
|
+
const effects = normalizeEffects(value.plannedEffects, targetCount);
|
|
117
|
+
if (value.dryRun !== true || targetCount === undefined || targetCount === 0 || !scenes || scenes.length !== targetCount || !effectiveSettings || !before || !effects)
|
|
118
|
+
throw invalid("returned an invalid dry-run plan");
|
|
119
|
+
return { dryRun: true, targetCount, scenes, effectiveSettings, before, plannedEffects: effects };
|
|
120
|
+
}
|
|
121
|
+
function normalizeTerminal(value) {
|
|
122
|
+
const durationMs = nonnegative(value.durationMs);
|
|
123
|
+
const effectiveSettings = normalizeSettings(record(value.effectiveSettings));
|
|
124
|
+
const before = normalizeSnapshot(record(value.before));
|
|
125
|
+
const after = normalizeSnapshot(record(value.after));
|
|
126
|
+
const scenes = Array.isArray(value.scenes) ? value.scenes.map(normalizeScene) : undefined;
|
|
127
|
+
const effects = normalizeEffects(value.plannedEffects, scenes?.length);
|
|
128
|
+
if (!string(value.operationId) || value.status !== "completed" || !timestamp(value.startedAt) || !timestamp(value.finishedAt)
|
|
129
|
+
|| Date.parse(value.finishedAt) < Date.parse(value.startedAt) || durationMs === undefined || !effectiveSettings || !before || !after
|
|
130
|
+
|| !scenes || scenes.length === 0 || !effects || !sameSettings(effectiveSettings, after.settings))
|
|
131
|
+
throw invalid("returned an invalid business terminal");
|
|
132
|
+
return { operationId: value.operationId, status: "completed", startedAt: value.startedAt, finishedAt: value.finishedAt, durationMs, effectiveSettings, before, after, scenes, plannedEffects: effects };
|
|
133
|
+
}
|
|
134
|
+
function normalizeStatus(value) {
|
|
135
|
+
const states = new Set(["idle", "running", "completed", "cancelled", "failed"]);
|
|
136
|
+
const phases = new Set(["queued", "starting", "baking", "terminal", "unknown"]);
|
|
137
|
+
const durationMs = nonnegative(value.durationMs);
|
|
138
|
+
const targetCount = nonnegative(value.targetCount);
|
|
139
|
+
const umbraDataSizeBytes = nonnegative(value.umbraDataSizeBytes);
|
|
140
|
+
const settings = normalizeObservedSettings(record(value.settings));
|
|
141
|
+
const progress = value.progress === null ? null : finiteRange(value.progress, 0, 1);
|
|
142
|
+
if (!states.has(value.state) || typeof value.active !== "boolean" || durationMs === undefined || targetCount === undefined || umbraDataSizeBytes === undefined
|
|
143
|
+
|| typeof value.doesSceneHaveManualPortals !== "boolean" || !settings || progress === undefined || (value.operationId !== null && !string(value.operationId))
|
|
144
|
+
|| (value.phase !== null && !phases.has(value.phase)) || (value.startedAt !== null && !timestamp(value.startedAt)) || (value.finishedAt !== null && !timestamp(value.finishedAt))
|
|
145
|
+
|| (value.state === "running") !== value.active || (value.active && !string(value.operationId)))
|
|
146
|
+
throw invalid("returned an invalid status snapshot");
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
function normalizeSettings(value) {
|
|
150
|
+
const smallestOccluder = finiteRange(value.smallestOccluder, 0.000001, 1_000_000);
|
|
151
|
+
const smallestHole = finiteRange(value.smallestHole, 0.000001, 1_000_000);
|
|
152
|
+
const backfaceThreshold = finiteRange(value.backfaceThreshold, 1, 100);
|
|
153
|
+
return smallestOccluder !== undefined && smallestHole !== undefined && backfaceThreshold !== undefined ? { smallestOccluder, smallestHole, backfaceThreshold } : undefined;
|
|
154
|
+
}
|
|
155
|
+
/** status是Unity当前值的只读观察,不把mutation输入下限误用于cancel前置读取。 */
|
|
156
|
+
function normalizeObservedSettings(value) {
|
|
157
|
+
const smallestOccluder = finiteRange(value.smallestOccluder, 0, 1_000_000);
|
|
158
|
+
const smallestHole = finiteRange(value.smallestHole, 0, 1_000_000);
|
|
159
|
+
const backfaceThreshold = finiteRange(value.backfaceThreshold, 0, 100);
|
|
160
|
+
return smallestOccluder !== undefined && smallestHole !== undefined && backfaceThreshold !== undefined ? { smallestOccluder, smallestHole, backfaceThreshold } : undefined;
|
|
161
|
+
}
|
|
162
|
+
function normalizeSnapshot(value) {
|
|
163
|
+
const umbraDataSizeBytes = nonnegative(value.umbraDataSizeBytes);
|
|
164
|
+
const settings = normalizeSettings(record(value.settings));
|
|
165
|
+
return umbraDataSizeBytes !== undefined && typeof value.doesSceneHaveManualPortals === "boolean" && settings ? { umbraDataSizeBytes, doesSceneHaveManualPortals: value.doesSceneHaveManualPortals, settings } : undefined;
|
|
166
|
+
}
|
|
167
|
+
function normalizeScene(value) {
|
|
168
|
+
const item = record(value);
|
|
169
|
+
if (!string(item.path) || !String(item.path).startsWith("Assets/") || !String(item.path).endsWith(".unity") || !/^[a-f0-9]{32}$/.test(String(item.guid)) || !sha(item.sha256) || !positive(item.sizeBytes) || item.dirty !== false)
|
|
170
|
+
throw invalid("returned an invalid scene persistence proof");
|
|
171
|
+
return item;
|
|
172
|
+
}
|
|
173
|
+
function normalizeEffects(value, targetCount) {
|
|
174
|
+
if (!Array.isArray(value) || value.length !== 1)
|
|
175
|
+
return undefined;
|
|
176
|
+
const item = record(value[0]);
|
|
177
|
+
const count = nonnegative(item.targetCount);
|
|
178
|
+
if (item.type !== "occlusion.bake" || item.target !== "open-scenes" || count === undefined || count === 0 || (targetCount !== undefined && count !== targetCount))
|
|
179
|
+
return undefined;
|
|
180
|
+
return [{ type: "occlusion.bake", target: "open-scenes", targetCount: count }];
|
|
181
|
+
}
|
|
182
|
+
function sameSettings(left, right) { return close(left.smallestOccluder, right.smallestOccluder) && close(left.smallestHole, right.smallestHole) && close(left.backfaceThreshold, right.backfaceThreshold); }
|
|
183
|
+
function close(left, right) { return Math.abs(left - right) <= 0.00001; }
|
|
184
|
+
function deadlineOf(context) { return context.absoluteDeadlineMs ?? Date.now() + (context.execution.timeoutMs ?? 30_000); }
|
|
185
|
+
function timeout(tool, causeCode, details) { const blockers = blockersFromDetails(details); return new StructuredToolError("E_EXECUTION_TIMEOUT", blockerTimeoutMessage(tool, blockers), blockers ? blockerNextActions() : ["Run occlusion.bake-status and inspect the affected scenes before deciding whether to submit a new request."], { causeCode, ...(blockers ? { blockers } : {}) }, false, 0); }
|
|
186
|
+
function invalid(reason) { return new StructuredToolError("E_TOOL_COMPLETION_PROOF_INVALID", `Occlusion coordinator ${reason}.`, ["Inspect UnityCliBridge.log and occlusion.bake-status before retrying."]); }
|
|
187
|
+
function childId(root, suffix) { if (root.length + suffix.length <= 200)
|
|
188
|
+
return root + suffix; return `${root.slice(0, 160)}_${createHash("sha256").update(root).digest("hex").slice(0, 24)}${suffix}`; }
|
|
189
|
+
function isPlaying(value) { const item = record(value); return value === "play" || value === "playing" || value === "transitioning" || item.isPlaying === true || item.isPlayingOrWillChangePlaymode === true; }
|
|
190
|
+
function record(value) { return value && typeof value === "object" && !Array.isArray(value) ? value : {}; }
|
|
191
|
+
function optionalRecord(value) { const item = record(value); return Object.keys(item).length ? item : undefined; }
|
|
192
|
+
function string(value) { return typeof value === "string" && value.length > 0 ? value : undefined; }
|
|
193
|
+
function strings(value) { return Array.isArray(value) ? value.filter((item) => typeof item === "string") : []; }
|
|
194
|
+
function integer(value) { return typeof value === "number" && Number.isSafeInteger(value) && value >= 0; }
|
|
195
|
+
function nonnegative(value) { return integer(value) ? value : undefined; }
|
|
196
|
+
function positive(value) { return typeof value === "number" && Number.isSafeInteger(value) && value > 0; }
|
|
197
|
+
function finiteRange(value, min, max) { return typeof value === "number" && Number.isFinite(value) && value >= min && value <= max ? value : undefined; }
|
|
198
|
+
function timestamp(value) { return typeof value === "string" && Number.isFinite(Date.parse(value)); }
|
|
199
|
+
function sha(value) { return typeof value === "string" && /^[a-f0-9]{64}$/i.test(value); }
|
|
200
|
+
function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
|
|
201
|
+
//# sourceMappingURL=live.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live.js","sourceRoot":"","sources":["../../../src/tools/occlusion/live.ts"],"names":[],"mappings":"AAAA,OAAO,EA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RemovePlannedEffect {
|
|
5
|
+
type?: string;
|
|
6
|
+
package?: string;
|
|
7
|
+
bridgePath?: string;
|
|
8
|
+
installMetadataPath?: string;
|
|
9
|
+
managedFileCount?: number;
|
|
10
|
+
previousVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PackageBridgeRemoveResult {
|
|
13
|
+
action: "bridge-remove";
|
|
14
|
+
projectPath: string;
|
|
15
|
+
manifestPath: string;
|
|
16
|
+
bridgePath: string;
|
|
17
|
+
dependencyName: string;
|
|
18
|
+
packageVersion: string;
|
|
19
|
+
installMetadataPath: string;
|
|
20
|
+
fileManifestPath: string;
|
|
21
|
+
managedFileCount: number;
|
|
22
|
+
dryRun: boolean;
|
|
23
|
+
plannedEffects: PackageBridgeRemovePlannedEffect[];
|
|
24
|
+
}
|
|
25
|
+
declare const _default: import("../define.js").ToolDefinition<PackageBridgeRemoveRequest, PackageBridgeRemoveResult>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import { removePackageBridge } from "../../package-manager.js";
|
|
3
|
+
import { defineTool } from "../define.js";
|
|
4
|
+
// 执行真正的 Bridge 移除;destructive 确认由 tools run 分发层在进入 defineTool 前完成。
|
|
5
|
+
async function runPackageBridgeRemove(request, context) {
|
|
6
|
+
const projectPath = resolve(request.project ?? context.projectPath);
|
|
7
|
+
const prepared = await removePackageBridge(projectPath, { dryRun: true });
|
|
8
|
+
if (context.execution.dryRun)
|
|
9
|
+
return { action: "bridge-remove", ...prepared };
|
|
10
|
+
await context.commitEffect?.();
|
|
11
|
+
const removal = await removePackageBridge(projectPath);
|
|
12
|
+
return { action: "bridge-remove", ...removal };
|
|
13
|
+
}
|
|
14
|
+
export default defineTool({
|
|
15
|
+
name: "package.bridge-remove",
|
|
16
|
+
summary: "Remove the copied com.alpsckr.unitycli Bridge package installed by init.",
|
|
17
|
+
description: "Remove the copied com.alpsckr.unitycli Bridge package installed by init. Destructive: deletes Packages/com.alpsckr.unitycli and unitycli.install.json. Supports --dry-run to preview deleted files without changing the project. Use this only when intentionally uninstalling the UnityCLI Bridge from a project.",
|
|
18
|
+
group: "package",
|
|
19
|
+
destructiveHint: true,
|
|
20
|
+
supportsDryRun: true,
|
|
21
|
+
sideEffects: ["project-file-delete", "session-affecting"],
|
|
22
|
+
playModeSupport: "session-affecting",
|
|
23
|
+
handler: "offline",
|
|
24
|
+
supportStatus: "cli-only",
|
|
25
|
+
examples: [
|
|
26
|
+
{ description: "Preview Bridge package removal", argv: ["tools", "run", "package.bridge-remove", "--input", "{\"project\":\".\"}", "--dry-run"] }
|
|
27
|
+
],
|
|
28
|
+
async execute(request, context) {
|
|
29
|
+
return runPackageBridgeRemove(request, context);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=bridge-remove.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-remove.js","sourceRoot":"","sources":["../../../src/tools/package/bridge-remove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAoB,MAAM,cAAc,CAAC;AA6B5D,mEAAmE;AACnE,KAAK,UAAU,sBAAsB,CAAC,OAAmC,EAAE,OAAoB;IAC7F,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,MAAM,mBAAmB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM;QAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9E,MAAM,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACvD,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;AACjD,CAAC;AAED,eAAe,UAAU,CAAwD;IAC/E,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,0EAA0E;IACnF,WAAW,EAAE,oTAAoT;IACjU,KAAK,EAAE,SAAS;IAChB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;IACpB,WAAW,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;IACzD,eAAe,EAAE,mBAAmB;IACpC,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,UAAU;IACzB,QAAQ,EAAE;QACR,EAAE,WAAW,EAAE,gCAAgC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,qBAAqB,EAAE,WAAW,CAAC,EAAE;KAClJ;IACD,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO;QAC5B,OAAO,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type LiveResolveResult } from "./live-resolve.js";
|
|
2
|
+
export interface PackageDeployRequest {
|
|
3
|
+
source: string;
|
|
4
|
+
packageName?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PackageDeployPlannedEffect {
|
|
7
|
+
type?: string;
|
|
8
|
+
package?: string;
|
|
9
|
+
from?: string;
|
|
10
|
+
to?: string;
|
|
11
|
+
targetPath?: string;
|
|
12
|
+
packageVersion?: string | null;
|
|
13
|
+
fileCount?: number;
|
|
14
|
+
reason?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PackageDeployFilesProof {
|
|
17
|
+
proven: true;
|
|
18
|
+
targetPath: string;
|
|
19
|
+
sourceHash: string;
|
|
20
|
+
targetHash: string;
|
|
21
|
+
copiedFileCount: number;
|
|
22
|
+
metadataPath: string;
|
|
23
|
+
metadataHash: string;
|
|
24
|
+
backupPath?: string;
|
|
25
|
+
backupHash?: string;
|
|
26
|
+
backupPackageVersion?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface PackageDeployResult {
|
|
29
|
+
action: string;
|
|
30
|
+
status: string;
|
|
31
|
+
manifestPath: string;
|
|
32
|
+
packageName: string;
|
|
33
|
+
packageVersion: string;
|
|
34
|
+
sourcePath: string;
|
|
35
|
+
sourceHash: string;
|
|
36
|
+
targetPath: string;
|
|
37
|
+
backupPath?: string;
|
|
38
|
+
backupPackageVersion?: string;
|
|
39
|
+
backupCreated: boolean;
|
|
40
|
+
repeatedDeployment: boolean;
|
|
41
|
+
copiedFileCount: number;
|
|
42
|
+
dryRun: boolean;
|
|
43
|
+
plannedEffects: PackageDeployPlannedEffect[];
|
|
44
|
+
metadataPath: string;
|
|
45
|
+
files?: PackageDeployFilesProof;
|
|
46
|
+
resolve?: LiveResolveResult;
|
|
47
|
+
}
|
|
48
|
+
declare const _default: import("../define.js").ToolDefinition<PackageDeployRequest, PackageDeployResult>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { deployPackageSource, hashPackageTree, inspectPackageDeploymentFiles } from "../../package-manager.js";
|
|
5
|
+
import { defineTool } from "../define.js";
|
|
6
|
+
import { runPackageFileMutationWorker } from "./file-mutation-worker.js";
|
|
7
|
+
import { bindLivePackageProject, runLivePackageResolve } from "./live-resolve.js";
|
|
8
|
+
import { projectRelativePath, publicPackageEffects } from "./public-result.js";
|
|
9
|
+
/** deploy 的 backup/copy、Resolve 与 PackageInfo readback 共用一个 durable root。 */
|
|
10
|
+
async function runPackageDeploy(request, context) {
|
|
11
|
+
if (context.execution.dryRun) {
|
|
12
|
+
await bindLivePackageProject(context, "deploy");
|
|
13
|
+
const projectPath = resolve(context.projectPath);
|
|
14
|
+
const prepared = await deployPackageSource(projectPath, request.source, { packageName: request.packageName, dryRun: true });
|
|
15
|
+
return publicDeployResult(projectPath, request.source, "dry_run", prepared);
|
|
16
|
+
}
|
|
17
|
+
return runLivePackageResolve(context, "deploy", { source: request.source, packageName: request.packageName }, {
|
|
18
|
+
async prepare(signal) {
|
|
19
|
+
const projectPath = resolve(context.projectPath);
|
|
20
|
+
signal.throwIfAborted();
|
|
21
|
+
const prepared = await deployPackageSource(projectPath, request.source, { packageName: request.packageName, dryRun: true });
|
|
22
|
+
const observed = await inspectPackageDeploymentFiles(projectPath, prepared.packageName, prepared.targetPath, prepared.backupPath);
|
|
23
|
+
signal.throwIfAborted();
|
|
24
|
+
return {
|
|
25
|
+
...prepared,
|
|
26
|
+
requestedSource: request.source,
|
|
27
|
+
requestedPackageName: request.packageName ?? null,
|
|
28
|
+
previousTargetExists: observed.targetExists,
|
|
29
|
+
previousTargetHash: observed.targetHash,
|
|
30
|
+
previousRecordIdentity: observed.recordIdentity,
|
|
31
|
+
previousBackupExists: observed.backupExists,
|
|
32
|
+
previousBackupHash: observed.backupHash,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
async apply(plan, signal, stopAtMs) {
|
|
36
|
+
const projectPath = resolve(context.projectPath);
|
|
37
|
+
const expected = deployPlan(plan);
|
|
38
|
+
const deployed = await runPackageFileMutationWorker("deploy", projectPath, plan, stopAtMs, signal);
|
|
39
|
+
return deployBundle(projectPath, expected, deployed);
|
|
40
|
+
},
|
|
41
|
+
async recover(plan, signal) {
|
|
42
|
+
const projectPath = resolve(context.projectPath);
|
|
43
|
+
signal.throwIfAborted();
|
|
44
|
+
const expected = deployPlan(plan);
|
|
45
|
+
const bundle = await deployBundle(projectPath, expected, { ...expected, dryRun: false });
|
|
46
|
+
signal.throwIfAborted();
|
|
47
|
+
return bundle;
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async function deployBundle(projectPath, plan, deployed) {
|
|
52
|
+
if (deployed.packageName !== plan.packageName || deployed.packageVersion !== plan.packageVersion
|
|
53
|
+
|| deployed.sourceHash !== plan.sourceHash || deployed.targetPath !== plan.targetPath
|
|
54
|
+
|| (deployed.backupPath ?? null) !== (plan.backupPath ?? null)
|
|
55
|
+
|| deployed.backupCreated !== plan.backupCreated || deployed.repeatedDeployment !== plan.repeatedDeployment
|
|
56
|
+
|| deployed.copiedFileCount !== plan.copiedFileCount) {
|
|
57
|
+
throw new Error("Deployed package does not match its durable file plan.");
|
|
58
|
+
}
|
|
59
|
+
const observed = await inspectPackageDeploymentFiles(projectPath, plan.packageName, plan.targetPath, plan.backupPath);
|
|
60
|
+
const currentSourceHash = await hashPackageTree(plan.sourcePath);
|
|
61
|
+
if (!observed.targetExists || observed.targetHash !== plan.sourceHash || observed.targetFileCount !== plan.copiedFileCount || currentSourceHash !== plan.sourceHash)
|
|
62
|
+
throw new Error("Deployed package target does not match the committed source tree.");
|
|
63
|
+
if (!observed.record || observed.record.packageName !== plan.packageName || observed.record.packageVersion !== plan.packageVersion
|
|
64
|
+
|| observed.record.sourcePath !== plan.sourcePath || observed.record.sourceHash !== plan.sourceHash || observed.record.targetPath !== plan.targetPath
|
|
65
|
+
|| (observed.record.backupPath ?? null) !== (plan.backupPath ?? null)
|
|
66
|
+
|| (observed.record.backupPackageVersion ?? null) !== (plan.backupPackageVersion ?? null))
|
|
67
|
+
throw new Error("Package deployment metadata does not match the committed plan.");
|
|
68
|
+
const expectedBackupHash = plan.backupCreated ? plan.previousTargetHash : plan.previousBackupHash;
|
|
69
|
+
if (expectedBackupHash && observed.backupHash !== expectedBackupHash)
|
|
70
|
+
throw new Error("Package deployment backup does not match its committed pre-state.");
|
|
71
|
+
const manifestHash = await hash(plan.manifestPath);
|
|
72
|
+
const files = {
|
|
73
|
+
proven: true, targetPath: plan.targetPath, sourceHash: plan.sourceHash, targetHash: observed.targetHash,
|
|
74
|
+
copiedFileCount: observed.targetFileCount, metadataPath: observed.metadataPath, metadataHash: observed.metadataHash,
|
|
75
|
+
...(plan.backupPath ? { backupPath: plan.backupPath } : {}), ...(observed.backupHash ? { backupHash: observed.backupHash } : {}),
|
|
76
|
+
...(plan.backupPackageVersion ? { backupPackageVersion: plan.backupPackageVersion } : {}),
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
expectedManifestSha256: manifestHash,
|
|
80
|
+
predicates: [{ name: plan.packageName, version: plan.packageVersion, present: true, resolvedPath: plan.targetPath }],
|
|
81
|
+
filesProof: files,
|
|
82
|
+
publicResultSeed: publicDeployResult(projectPath, plan.requestedSource, "deployed", { ...plan, dryRun: false }, files),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
/** 从内部 durable 文件结果构造公开 DTO;绝对路径只保留在 journal 与完成证明中。 */
|
|
86
|
+
function publicDeployResult(projectPath, requestedSource, status, deployed, files) {
|
|
87
|
+
const sourceAliases = new Map([[resolve(deployed.sourcePath), requestedSource]]);
|
|
88
|
+
const publicFiles = files ? {
|
|
89
|
+
...files,
|
|
90
|
+
targetPath: projectRelativePath(projectPath, files.targetPath, "files.targetPath"),
|
|
91
|
+
metadataPath: projectRelativePath(projectPath, files.metadataPath, "files.metadataPath"),
|
|
92
|
+
...(files.backupPath ? { backupPath: projectRelativePath(projectPath, files.backupPath, "files.backupPath") } : {}),
|
|
93
|
+
} : undefined;
|
|
94
|
+
return {
|
|
95
|
+
action: "deploy",
|
|
96
|
+
status,
|
|
97
|
+
manifestPath: projectRelativePath(projectPath, deployed.manifestPath, "manifestPath"),
|
|
98
|
+
packageName: deployed.packageName,
|
|
99
|
+
packageVersion: deployed.packageVersion,
|
|
100
|
+
sourcePath: requestedSource,
|
|
101
|
+
sourceHash: deployed.sourceHash,
|
|
102
|
+
targetPath: projectRelativePath(projectPath, deployed.targetPath, "targetPath"),
|
|
103
|
+
...(deployed.backupPath ? { backupPath: projectRelativePath(projectPath, deployed.backupPath, "backupPath") } : {}),
|
|
104
|
+
...(deployed.backupPackageVersion ? { backupPackageVersion: deployed.backupPackageVersion } : {}),
|
|
105
|
+
backupCreated: deployed.backupCreated,
|
|
106
|
+
repeatedDeployment: deployed.repeatedDeployment,
|
|
107
|
+
copiedFileCount: deployed.copiedFileCount,
|
|
108
|
+
dryRun: deployed.dryRun,
|
|
109
|
+
plannedEffects: publicPackageEffects(projectPath, deployed.plannedEffects, sourceAliases),
|
|
110
|
+
metadataPath: projectRelativePath(projectPath, deployed.metadataPath, "metadataPath"),
|
|
111
|
+
...(publicFiles ? { files: publicFiles } : {}),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function deployPlan(value) {
|
|
115
|
+
for (const key of ["projectPath", "manifestPath", "packageName", "packageVersion", "sourcePath", "sourceHash", "targetPath", "metadataPath", "requestedSource"])
|
|
116
|
+
if (typeof value[key] !== "string")
|
|
117
|
+
throw new Error(`Durable package.deploy file plan is missing ${key}.`);
|
|
118
|
+
if (value.requestedPackageName !== null && typeof value.requestedPackageName !== "string")
|
|
119
|
+
throw new Error("Durable package.deploy file plan has an invalid requestedPackageName.");
|
|
120
|
+
if (typeof value.backupCreated !== "boolean" || typeof value.repeatedDeployment !== "boolean" || typeof value.copiedFileCount !== "number"
|
|
121
|
+
|| typeof value.previousTargetExists !== "boolean" || typeof value.previousRecordIdentity !== "string"
|
|
122
|
+
|| typeof value.previousBackupExists !== "boolean" || !Array.isArray(value.plannedEffects))
|
|
123
|
+
throw new Error("Durable package.deploy file plan is corrupt.");
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
async function hash(path) { return createHash("sha256").update(await readFile(path)).digest("hex"); }
|
|
127
|
+
export default defineTool({
|
|
128
|
+
name: "package.deploy", summary: "Deploy a local Unity package source folder into Packages/<packageName> with an automatic restore backup.",
|
|
129
|
+
description: "Deploy a local Unity package source folder into the target project's Packages/<packageName> directory. The source folder must contain package.json with name/version and must be outside the target project's Packages directory. If a package directory already exists, package.deploy backs it up under Packages/.unitycli_deploy_backups before copying the source. Destructive: writes project package files and can trigger Unity import/compile. Supports --dry-run to preview backup/copy effects without writing.",
|
|
130
|
+
group: "package", destructiveHint: true, supportsDryRun: true, sideEffects: ["project-file-write", "project-file-delete", "session-affecting"], playModeSupport: "session-affecting", handler: "hybrid", supportStatus: "live-bridge", timeoutMs: 120_000,
|
|
131
|
+
examples: [{ description: "Preview deploying a local package", argv: ["tools", "run", "package.deploy", "--input", "{\"source\":\"./Packages/my-package\"}", "--dry-run"] }],
|
|
132
|
+
async execute(request, context) { return runPackageDeploy(request, context); }
|
|
133
|
+
});
|
|
134
|
+
//# sourceMappingURL=deploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/tools/package/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,6BAA6B,EAAuD,MAAM,0BAA0B,CAAC;AACpK,OAAO,EAAE,UAAU,EAAoB,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAA0D,MAAM,mBAAmB,CAAC;AAC1I,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAqB/E,6EAA6E;AAC7E,KAAK,UAAU,gBAAgB,CAAC,OAA6B,EAAE,OAAoB;IACjF,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAC7B,MAAM,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAChD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAA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
|
3
|
+
}
|
|
4
|
+
export interface PackageEmbedPlannedEffect {
|
|
5
|
+
type: "package.embed";
|
|
6
|
+
path: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PackageEmbedResult {
|
|
9
|
+
packageId: string;
|
|
10
|
+
embeddedPath: string;
|
|
11
|
+
plannedEffects: PackageEmbedPlannedEffect[];
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("../define.js").ToolDefinition<PackageEmbedRequest, PackageEmbedResult>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { executeBridgePayload } from "../../bridge/index.js";
|
|
3
|
+
import { withTransitionBinding } from "../../bridge/types.js";
|
|
4
|
+
import { defineTool } from "../define.js";
|
|
5
|
+
import { waitForEditorTransitionEnd } from "../editor/readiness.js";
|
|
6
|
+
import { rejectUnavailableEditorState } from "../editor/state.js";
|
|
7
|
+
import { StructuredToolError } from "../errors.js";
|
|
8
|
+
export default defineTool({
|
|
9
|
+
name: "package.embed",
|
|
10
|
+
summary: "Embed an installed registry package and return its verified local package readback.",
|
|
11
|
+
description: "Use PackageClient.Embed to copy an installed registry package into Packages/<id>, absorb package import/reload, and succeed only when PackageInfo reports source=Embedded and a real resolved directory. The embedded local copy replaces registry resolution until it is removed.",
|
|
12
|
+
group: "package",
|
|
13
|
+
destructiveHint: true,
|
|
14
|
+
supportsDryRun: true,
|
|
15
|
+
sideEffects: ["package-write"],
|
|
16
|
+
target: "editor",
|
|
17
|
+
playModeSupport: "editor-only",
|
|
18
|
+
timeoutMs: 120_000,
|
|
19
|
+
handler: "hybrid",
|
|
20
|
+
supportStatus: "live-bridge",
|
|
21
|
+
examples: [{ description: "Embed the installed ProBuilder package", argv: ["tools", "run", "package.embed", "--input", "{\"package\":\"com.unity.probuilder\"}"] }],
|
|
22
|
+
async execute(request, context) {
|
|
23
|
+
if (!request.package)
|
|
24
|
+
throw new StructuredToolError("E_PACKAGE_ID_REQUIRED", "package.embed requires --package <id>.", ["Pass a package id like com.unity.x."]);
|
|
25
|
+
if (context.execution.dryRun)
|
|
26
|
+
return { packageId: request.package, embeddedPath: `Packages/${request.package}`, plannedEffects: [{ type: "package.embed", path: request.package }] };
|
|
27
|
+
const deadline = context.absoluteDeadlineMs ?? Date.now() + (context.execution.timeoutMs ?? 120_000);
|
|
28
|
+
const state = await waitForEditorTransitionEnd(context, childId(context.requestId, "_package_embed_state"), deadline);
|
|
29
|
+
if (state.status === "blocked")
|
|
30
|
+
throw new StructuredToolError("E_UNITY_BLOCKED", "Unity Editor is blocked and cannot embed packages.", ["Resolve the Editor blocker, then retry."], { blockers: state.blockers });
|
|
31
|
+
rejectUnavailableEditorState(state, "package.embed");
|
|
32
|
+
if (!state.session.known || !state.session.editorSessionId)
|
|
33
|
+
throw new StructuredToolError("E_EDITOR_SESSION_REPLACED", "package.embed could not bind one verified Editor session.", ["Inspect editor.state and retry after the session is stable."]);
|
|
34
|
+
if (state.status !== "ready")
|
|
35
|
+
throw new StructuredToolError("E_UNITY_TRANSITIONING", "package.embed requires a stable Editor generation.", ["Wait for editor.state to become ready, then retry."], undefined, true, 250);
|
|
36
|
+
if (state.state.playMode.value !== "edit")
|
|
37
|
+
throw new StructuredToolError("E_TOOL_PLAYMODE_UNAVAILABLE", "package.embed is editor-only and cannot run in Play Mode.", ["Exit Play Mode before running package.embed."], { toolName: "package.embed", playModeSupport: "editor-only" });
|
|
38
|
+
const flags = { ...(context.flags ?? {}), instance: state.identity.instanceId };
|
|
39
|
+
const execute = withTransitionBinding({ mode: "execute", mutation: true, absoluteDeadlineMs: deadline });
|
|
40
|
+
const observe = withTransitionBinding({ mode: "read", mutation: false, absoluteDeadlineMs: deadline });
|
|
41
|
+
let root = record((await bridge(context.requestId, "internal.package.embed.start", { ...request }, flags, context, execute)).data);
|
|
42
|
+
if (root.terminal !== true && (root.terminal !== false || root.accepted !== true))
|
|
43
|
+
throw invalid();
|
|
44
|
+
const rootRequestDigest = root.terminal === true ? undefined : typeof root.rootRequestDigest === "string" && /^[a-f0-9]{64}$/.test(root.rootRequestDigest) ? root.rootRequestDigest : undefined;
|
|
45
|
+
if (root.terminal !== true && !rootRequestDigest)
|
|
46
|
+
throw invalid();
|
|
47
|
+
while (root.terminal !== true) {
|
|
48
|
+
if (Date.now() >= deadline)
|
|
49
|
+
throw timeout();
|
|
50
|
+
await delay(100);
|
|
51
|
+
try {
|
|
52
|
+
root = record((await bridge(childId(context.requestId, "_package_embed_status"), "internal.package.embed.status", { rootRequestId: context.requestId, rootRequestDigest }, flags, context, observe)).data);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw timeout();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return terminal(root, context.requestId);
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
async function bridge(requestId, command, input, flags, context, invocation) {
|
|
62
|
+
const result = await executeBridgePayload(requestId, command, input, flags, { dataDir: context.dataDir, rootAdmission: context.rootAdmission, bridgeExecute: context.bridgeExecute }, undefined, invocation);
|
|
63
|
+
if (!result.ok)
|
|
64
|
+
throw StructuredToolError.from(result.error ?? { code: "BRIDGE_CONNECTION_FAILED", message: "Live package embed bridge failed." });
|
|
65
|
+
return { data: result.data };
|
|
66
|
+
}
|
|
67
|
+
function terminal(root, requestId) {
|
|
68
|
+
const envelope = record(root.rootEnvelope);
|
|
69
|
+
if (envelope.requestId !== requestId || envelope.ok !== true)
|
|
70
|
+
throw terminalError(envelope, requestId);
|
|
71
|
+
const data = record(envelope.data);
|
|
72
|
+
const effects = effectsOf(data.plannedEffects);
|
|
73
|
+
if (typeof data.packageId !== "string" || typeof data.embeddedPath !== "string" || data.embeddedPath.length === 0 || !effects || effects.length !== 1 || effects[0].path !== data.packageId)
|
|
74
|
+
throw invalid();
|
|
75
|
+
return { packageId: data.packageId, embeddedPath: data.embeddedPath, plannedEffects: effects };
|
|
76
|
+
}
|
|
77
|
+
function terminalError(envelope, requestId) { const error = record(envelope.error); if (envelope.requestId === requestId && envelope.ok === false && typeof error.code === "string" && typeof error.message === "string")
|
|
78
|
+
throw new StructuredToolError(error.code, error.message, strings(error.nextActions), recordOrUndefined(error.details), error.transient === true, typeof error.retryAfterMs === "number" ? error.retryAfterMs : undefined); throw invalid(); }
|
|
79
|
+
function effectsOf(value) { if (!Array.isArray(value))
|
|
80
|
+
return undefined; const result = []; for (const raw of value) {
|
|
81
|
+
const effect = record(raw);
|
|
82
|
+
if (effect.type !== "package.embed" || typeof effect.path !== "string")
|
|
83
|
+
return undefined;
|
|
84
|
+
result.push({ type: "package.embed", path: effect.path });
|
|
85
|
+
} return result; }
|
|
86
|
+
function timeout() { return new StructuredToolError("E_EXECUTION_TIMEOUT", "package.embed did not return a terminal result before the request deadline.", ["Inspect editor.state and Package Manager before deciding whether to submit a new request."]); }
|
|
87
|
+
function invalid() { return new StructuredToolError("E_TOOL_COMPLETION_PROOF_INVALID", "package.embed did not return a stable terminal readback.", ["Inspect UnityCliBridge.log before retrying."]); }
|
|
88
|
+
function record(value) { return value && typeof value === "object" && !Array.isArray(value) ? value : {}; }
|
|
89
|
+
function recordOrUndefined(value) { const result = record(value); return Object.keys(result).length > 0 ? result : undefined; }
|
|
90
|
+
function strings(value) { return Array.isArray(value) ? value.filter((item) => typeof item === "string") : []; }
|
|
91
|
+
function childId(root, suffix) { return root.length + suffix.length <= 200 ? root + suffix : `${root.slice(0, 160)}_${createHash("sha256").update(root).digest("hex").slice(0, 24)}${suffix}`; }
|
|
92
|
+
function delay(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); }
|
|
93
|
+
//# sourceMappingURL=embed.js.map
|