unity-open-mcp 0.1.0 → 0.3.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/dist/agent-identity.d.ts +52 -0
- package/dist/agent-identity.js +115 -0
- package/dist/agent-identity.js.map +1 -0
- package/dist/batch-spawn.d.ts +7 -0
- package/dist/batch-spawn.js +155 -29
- package/dist/batch-spawn.js.map +1 -1
- package/dist/capabilities/build-capabilities.d.ts +45 -0
- package/dist/capabilities/build-capabilities.js +262 -27
- package/dist/capabilities/build-capabilities.js.map +1 -1
- package/dist/capabilities/cost-hints.d.ts +82 -0
- package/dist/capabilities/cost-hints.js +185 -0
- package/dist/capabilities/cost-hints.js.map +1 -0
- package/dist/capabilities/lifecycle.d.ts +40 -0
- package/dist/capabilities/lifecycle.js +353 -0
- package/dist/capabilities/lifecycle.js.map +1 -0
- package/dist/capabilities/rule-catalog.d.ts +13 -1
- package/dist/capabilities/rule-catalog.js +620 -75
- package/dist/capabilities/rule-catalog.js.map +1 -1
- package/dist/capabilities/tool-groups.d.ts +21 -0
- package/dist/capabilities/tool-groups.js +411 -14
- package/dist/capabilities/tool-groups.js.map +1 -1
- package/dist/cli/args.d.ts +32 -1
- package/dist/cli/args.js +201 -4
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/cli.d.ts +21 -0
- package/dist/cli/cli.js +68 -5
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands.d.ts +33 -0
- package/dist/cli/commands.js +400 -0
- package/dist/cli/commands.js.map +1 -1
- package/dist/cli/exit-codes.d.ts +43 -0
- package/dist/cli/exit-codes.js +78 -0
- package/dist/cli/exit-codes.js.map +1 -0
- package/dist/compile-verify.d.ts +65 -0
- package/dist/compile-verify.js +94 -0
- package/dist/compile-verify.js.map +1 -0
- package/dist/compressible-router.js +64 -11
- package/dist/compressible-router.js.map +1 -1
- package/dist/compression/asset-model.d.ts +15 -0
- package/dist/compression/compact.d.ts +5 -4
- package/dist/compression/compact.js +13 -10
- package/dist/compression/compact.js.map +1 -1
- package/dist/dialog-dismiss.d.ts +127 -74
- package/dist/dialog-dismiss.js +427 -170
- package/dist/dialog-dismiss.js.map +1 -1
- package/dist/dialog-policy.d.ts +141 -0
- package/dist/dialog-policy.js +345 -0
- package/dist/dialog-policy.js.map +1 -0
- package/dist/gate-error.d.ts +6 -0
- package/dist/gate-error.js +13 -2
- package/dist/gate-error.js.map +1 -1
- package/dist/hub-control.d.ts +247 -0
- package/dist/hub-control.js +703 -0
- package/dist/hub-control.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +46 -12
- package/dist/index.js.map +1 -1
- package/dist/live-client.d.ts +123 -3
- package/dist/live-client.js +526 -69
- package/dist/live-client.js.map +1 -1
- package/dist/offline.d.ts +105 -0
- package/dist/offline.js +816 -23
- package/dist/offline.js.map +1 -1
- package/dist/output-profile.d.ts +110 -0
- package/dist/output-profile.js +255 -0
- package/dist/output-profile.js.map +1 -0
- package/dist/retry-policy.d.ts +72 -0
- package/dist/retry-policy.js +146 -0
- package/dist/retry-policy.js.map +1 -0
- package/dist/routers.d.ts +4 -0
- package/dist/routers.js +2 -2
- package/dist/routers.js.map +1 -1
- package/dist/server-instructions.d.ts +18 -0
- package/dist/server-instructions.js +145 -0
- package/dist/server-instructions.js.map +1 -0
- package/dist/tool-router.d.ts +38 -1
- package/dist/tool-router.js +690 -37
- package/dist/tool-router.js.map +1 -1
- package/dist/tool-session-state.d.ts +37 -0
- package/dist/tool-session-state.js +78 -1
- package/dist/tool-session-state.js.map +1 -1
- package/dist/tools/apply-fix.js +16 -2
- package/dist/tools/apply-fix.js.map +1 -1
- package/dist/tools/asmdef-create.d.ts +2 -0
- package/dist/tools/asmdef-create.js +114 -0
- package/dist/tools/asmdef-create.js.map +1 -0
- package/dist/tools/asmdef-get.d.ts +2 -0
- package/dist/tools/asmdef-get.js +31 -0
- package/dist/tools/asmdef-get.js.map +1 -0
- package/dist/tools/asmdef-list.d.ts +2 -0
- package/dist/tools/asmdef-list.js +41 -0
- package/dist/tools/asmdef-list.js.map +1 -0
- package/dist/tools/asmdef-modify.d.ts +2 -0
- package/dist/tools/asmdef-modify.js +108 -0
- package/dist/tools/asmdef-modify.js.map +1 -0
- package/dist/tools/audio-listener-get.d.ts +2 -0
- package/dist/tools/audio-listener-get.js +16 -0
- package/dist/tools/audio-listener-get.js.map +1 -0
- package/dist/tools/audio-mixer-get-parameter.d.ts +2 -0
- package/dist/tools/audio-mixer-get-parameter.js +25 -0
- package/dist/tools/audio-mixer-get-parameter.js.map +1 -0
- package/dist/tools/audio-mixer-set-parameter.d.ts +2 -0
- package/dist/tools/audio-mixer-set-parameter.js +44 -0
- package/dist/tools/audio-mixer-set-parameter.js.map +1 -0
- package/dist/tools/audio-source-add.d.ts +2 -0
- package/dist/tools/audio-source-add.js +94 -0
- package/dist/tools/audio-source-add.js.map +1 -0
- package/dist/tools/audio-source-modify.d.ts +2 -0
- package/dist/tools/audio-source-modify.js +52 -0
- package/dist/tools/audio-source-modify.js.map +1 -0
- package/dist/tools/bridge-status.js +16 -6
- package/dist/tools/bridge-status.js.map +1 -1
- package/dist/tools/build-get-active-target.js +1 -2
- package/dist/tools/build-get-active-target.js.map +1 -1
- package/dist/tools/build-get-defines.js +1 -1
- package/dist/tools/build-get-defines.js.map +1 -1
- package/dist/tools/build-get-scenes.js +1 -2
- package/dist/tools/build-get-scenes.js.map +1 -1
- package/dist/tools/build-get-targets.js +1 -1
- package/dist/tools/build-get-targets.js.map +1 -1
- package/dist/tools/build-set-defines.js +1 -2
- package/dist/tools/build-set-defines.js.map +1 -1
- package/dist/tools/build-set-scenes.js +1 -1
- package/dist/tools/build-set-scenes.js.map +1 -1
- package/dist/tools/build-set-target.js +1 -1
- package/dist/tools/build-set-target.js.map +1 -1
- package/dist/tools/build-start.js +0 -1
- package/dist/tools/build-start.js.map +1 -1
- package/dist/tools/cinemachine-brain-ensure.d.ts +2 -0
- package/dist/tools/cinemachine-brain-ensure.js +27 -0
- package/dist/tools/cinemachine-brain-ensure.js.map +1 -0
- package/dist/tools/cinemachine-camera-list.d.ts +2 -0
- package/dist/tools/cinemachine-camera-list.js +15 -0
- package/dist/tools/cinemachine-camera-list.js.map +1 -0
- package/dist/tools/cinemachine-create-camera.d.ts +2 -0
- package/dist/tools/cinemachine-create-camera.js +55 -0
- package/dist/tools/cinemachine-create-camera.js.map +1 -0
- package/dist/tools/cinemachine-set-body.d.ts +2 -0
- package/dist/tools/cinemachine-set-body.js +33 -0
- package/dist/tools/cinemachine-set-body.js.map +1 -0
- package/dist/tools/cinemachine-set-lens.d.ts +2 -0
- package/dist/tools/cinemachine-set-lens.js +41 -0
- package/dist/tools/cinemachine-set-lens.js.map +1 -0
- package/dist/tools/cinemachine-set-noise.d.ts +2 -0
- package/dist/tools/cinemachine-set-noise.js +31 -0
- package/dist/tools/cinemachine-set-noise.js.map +1 -0
- package/dist/tools/cinemachine-set-targets.d.ts +2 -0
- package/dist/tools/cinemachine-set-targets.js +30 -0
- package/dist/tools/cinemachine-set-targets.js.map +1 -0
- package/dist/tools/console-log.js +2 -2
- package/dist/tools/console-log.js.map +1 -1
- package/dist/tools/constraint-add.d.ts +2 -0
- package/dist/tools/constraint-add.js +85 -0
- package/dist/tools/constraint-add.js.map +1 -0
- package/dist/tools/dependencies.d.ts +2 -0
- package/dist/tools/dependencies.js +76 -0
- package/dist/tools/dependencies.js.map +1 -0
- package/dist/tools/editor-add-tag.js +2 -3
- package/dist/tools/editor-add-tag.js.map +1 -1
- package/dist/tools/editor-clear-history.d.ts +2 -0
- package/dist/tools/editor-clear-history.js +25 -0
- package/dist/tools/editor-clear-history.js.map +1 -0
- package/dist/tools/editor-get-layers.js +3 -3
- package/dist/tools/editor-get-layers.js.map +1 -1
- package/dist/tools/editor-get-tags.js +2 -2
- package/dist/tools/editor-get-tags.js.map +1 -1
- package/dist/tools/editor-redo.js +2 -3
- package/dist/tools/editor-redo.js.map +1 -1
- package/dist/tools/editor-undo-history.d.ts +2 -0
- package/dist/tools/editor-undo-history.js +21 -0
- package/dist/tools/editor-undo-history.js.map +1 -0
- package/dist/tools/editor-undo.js +3 -3
- package/dist/tools/editor-undo.js.map +1 -1
- package/dist/tools/editorprefs-delete.d.ts +2 -0
- package/dist/tools/editorprefs-delete.js +23 -0
- package/dist/tools/editorprefs-delete.js.map +1 -0
- package/dist/tools/editorprefs-get.d.ts +2 -0
- package/dist/tools/editorprefs-get.js +28 -0
- package/dist/tools/editorprefs-get.js.map +1 -0
- package/dist/tools/editorprefs-set.d.ts +2 -0
- package/dist/tools/editorprefs-set.js +33 -0
- package/dist/tools/editorprefs-set.js.map +1 -0
- package/dist/tools/find-references.js +24 -4
- package/dist/tools/find-references.js.map +1 -1
- package/dist/tools/frame-debugger.d.ts +2 -0
- package/dist/tools/frame-debugger.js +48 -0
- package/dist/tools/frame-debugger.js.map +1 -0
- package/dist/tools/gameobject-modify.js +69 -2
- package/dist/tools/gameobject-modify.js.map +1 -1
- package/dist/tools/gate-budget-estimate.js +2 -1
- package/dist/tools/gate-budget-estimate.js.map +1 -1
- package/dist/tools/hub-available-releases.d.ts +2 -0
- package/dist/tools/hub-available-releases.js +23 -0
- package/dist/tools/hub-available-releases.js.map +1 -0
- package/dist/tools/hub-get-install-path.d.ts +2 -0
- package/dist/tools/hub-get-install-path.js +20 -0
- package/dist/tools/hub-get-install-path.js.map +1 -0
- package/dist/tools/hub-install-editor.d.ts +2 -0
- package/dist/tools/hub-install-editor.js +47 -0
- package/dist/tools/hub-install-editor.js.map +1 -0
- package/dist/tools/hub-install-modules.d.ts +2 -0
- package/dist/tools/hub-install-modules.js +44 -0
- package/dist/tools/hub-install-modules.js.map +1 -0
- package/dist/tools/hub-list-editors.d.ts +2 -0
- package/dist/tools/hub-list-editors.js +25 -0
- package/dist/tools/hub-list-editors.js.map +1 -0
- package/dist/tools/hub-set-install-path.d.ts +2 -0
- package/dist/tools/hub-set-install-path.js +30 -0
- package/dist/tools/hub-set-install-path.js.map +1 -0
- package/dist/tools/impact-preview.js +2 -2
- package/dist/tools/impact-preview.js.map +1 -1
- package/dist/tools/index.d.ts +14 -0
- package/dist/tools/index.js +534 -24
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/light-add.d.ts +2 -0
- package/dist/tools/light-add.js +73 -0
- package/dist/tools/light-add.js.map +1 -0
- package/dist/tools/light-modify.d.ts +2 -0
- package/dist/tools/light-modify.js +36 -0
- package/dist/tools/light-modify.js.map +1 -0
- package/dist/tools/light-set.d.ts +2 -0
- package/dist/tools/light-set.js +54 -0
- package/dist/tools/light-set.js.map +1 -0
- package/dist/tools/list-assets-of-type.d.ts +2 -0
- package/dist/tools/list-assets-of-type.js +54 -0
- package/dist/tools/list-assets-of-type.js.map +1 -0
- package/dist/tools/lod-add-level.d.ts +2 -0
- package/dist/tools/lod-add-level.js +66 -0
- package/dist/tools/lod-add-level.js.map +1 -0
- package/dist/tools/lod-group-configure.d.ts +2 -0
- package/dist/tools/lod-group-configure.js +64 -0
- package/dist/tools/lod-group-configure.js.map +1 -0
- package/dist/tools/manage-tools.js +7 -5
- package/dist/tools/manage-tools.js.map +1 -1
- package/dist/tools/memory-snapshot-capture.d.ts +2 -0
- package/dist/tools/memory-snapshot-capture.js +61 -0
- package/dist/tools/memory-snapshot-capture.js.map +1 -0
- package/dist/tools/mutation-explain.js +2 -2
- package/dist/tools/mutation-explain.js.map +1 -1
- package/dist/tools/playerprefs-delete.d.ts +2 -0
- package/dist/tools/playerprefs-delete.js +24 -0
- package/dist/tools/playerprefs-delete.js.map +1 -0
- package/dist/tools/playerprefs-get.d.ts +2 -0
- package/dist/tools/playerprefs-get.js +28 -0
- package/dist/tools/playerprefs-get.js.map +1 -0
- package/dist/tools/playerprefs-set.d.ts +2 -0
- package/dist/tools/playerprefs-set.js +37 -0
- package/dist/tools/playerprefs-set.js.map +1 -0
- package/dist/tools/profiler-capture-frame.d.ts +2 -0
- package/dist/tools/profiler-capture-frame.js +75 -0
- package/dist/tools/profiler-capture-frame.js.map +1 -0
- package/dist/tools/profiler-clear-data.js +1 -2
- package/dist/tools/profiler-clear-data.js.map +1 -1
- package/dist/tools/profiler-enable-module.js +4 -5
- package/dist/tools/profiler-enable-module.js.map +1 -1
- package/dist/tools/profiler-get-status.js +5 -6
- package/dist/tools/profiler-get-status.js.map +1 -1
- package/dist/tools/profiler-load-data.js +4 -5
- package/dist/tools/profiler-load-data.js.map +1 -1
- package/dist/tools/profiler-save-data.js +3 -3
- package/dist/tools/profiler-save-data.js.map +1 -1
- package/dist/tools/profiler-set-config.js +5 -5
- package/dist/tools/profiler-set-config.js.map +1 -1
- package/dist/tools/profiler-start.js +4 -4
- package/dist/tools/profiler-start.js.map +1 -1
- package/dist/tools/profiler-stop.js +2 -3
- package/dist/tools/profiler-stop.js.map +1 -1
- package/dist/tools/read-asset.js +21 -3
- package/dist/tools/read-asset.js.map +1 -1
- package/dist/tools/reflection-probe-bake.d.ts +2 -0
- package/dist/tools/reflection-probe-bake.js +47 -0
- package/dist/tools/reflection-probe-bake.js.map +1 -0
- package/dist/tools/reflection-probe-get.d.ts +2 -0
- package/dist/tools/reflection-probe-get.js +19 -0
- package/dist/tools/reflection-probe-get.js.map +1 -0
- package/dist/tools/reimport-package.d.ts +2 -0
- package/dist/tools/reimport-package.js +53 -0
- package/dist/tools/reimport-package.js.map +1 -0
- package/dist/tools/scan-paths.js +19 -0
- package/dist/tools/scan-paths.js.map +1 -1
- package/dist/tools/scene-focus.js +1 -1
- package/dist/tools/scene-focus.js.map +1 -1
- package/dist/tools/scene-get-data.js +31 -13
- package/dist/tools/scene-get-data.js.map +1 -1
- package/dist/tools/scene-get-dirty-summary.js +1 -1
- package/dist/tools/scene-get-dirty-summary.js.map +1 -1
- package/dist/tools/sceneview-get-camera.d.ts +2 -0
- package/dist/tools/sceneview-get-camera.js +16 -0
- package/dist/tools/sceneview-get-camera.js.map +1 -0
- package/dist/tools/sceneview-set-camera.d.ts +2 -0
- package/dist/tools/sceneview-set-camera.js +58 -0
- package/dist/tools/sceneview-set-camera.js.map +1 -0
- package/dist/tools/script-write.js +2 -2
- package/dist/tools/script-write.js.map +1 -1
- package/dist/tools/scriptableobject-create.d.ts +2 -0
- package/dist/tools/scriptableobject-create.js +86 -0
- package/dist/tools/scriptableobject-create.js.map +1 -0
- package/dist/tools/search-assets.js +20 -3
- package/dist/tools/search-assets.js.map +1 -1
- package/dist/tools/settings-get-lighting.js +3 -4
- package/dist/tools/settings-get-lighting.js.map +1 -1
- package/dist/tools/settings-get-player.js +2 -2
- package/dist/tools/settings-get-player.js.map +1 -1
- package/dist/tools/settings-get-quality.js +1 -2
- package/dist/tools/settings-get-quality.js.map +1 -1
- package/dist/tools/settings-get-render-pipeline.d.ts +2 -0
- package/dist/tools/settings-get-render-pipeline.js +19 -0
- package/dist/tools/settings-get-render-pipeline.js.map +1 -0
- package/dist/tools/settings-get-time.d.ts +2 -0
- package/dist/tools/settings-get-time.js +18 -0
- package/dist/tools/settings-get-time.js.map +1 -0
- package/dist/tools/settings-set-lighting.js +5 -5
- package/dist/tools/settings-set-lighting.js.map +1 -1
- package/dist/tools/settings-set-physics.js +2 -2
- package/dist/tools/settings-set-physics.js.map +1 -1
- package/dist/tools/settings-set-player.js +2 -2
- package/dist/tools/settings-set-player.js.map +1 -1
- package/dist/tools/settings-set-quality-level.d.ts +2 -0
- package/dist/tools/settings-set-quality-level.js +44 -0
- package/dist/tools/settings-set-quality-level.js.map +1 -0
- package/dist/tools/settings-set-quality.js +2 -2
- package/dist/tools/settings-set-quality.js.map +1 -1
- package/dist/tools/settings-set-time.d.ts +2 -0
- package/dist/tools/settings-set-time.js +53 -0
- package/dist/tools/settings-set-time.js.map +1 -0
- package/dist/tools/shader-get-data.js +3 -3
- package/dist/tools/shader-get-data.js.map +1 -1
- package/dist/tools/shader-graph-create.d.ts +2 -0
- package/dist/tools/shader-graph-create.js +40 -0
- package/dist/tools/shader-graph-create.js.map +1 -0
- package/dist/tools/shader-graph-node-add.d.ts +2 -0
- package/dist/tools/shader-graph-node-add.js +50 -0
- package/dist/tools/shader-graph-node-add.js.map +1 -0
- package/dist/tools/shader-graph-node-connect.d.ts +2 -0
- package/dist/tools/shader-graph-node-connect.js +60 -0
- package/dist/tools/shader-graph-node-connect.js.map +1 -0
- package/dist/tools/shader-graph-open.d.ts +2 -0
- package/dist/tools/shader-graph-open.js +29 -0
- package/dist/tools/shader-graph-open.js.map +1 -0
- package/dist/tools/skybox-get.d.ts +2 -0
- package/dist/tools/skybox-get.js +13 -0
- package/dist/tools/skybox-get.js.map +1 -0
- package/dist/tools/skybox-set.d.ts +2 -0
- package/dist/tools/skybox-set.js +34 -0
- package/dist/tools/skybox-set.js.map +1 -0
- package/dist/tools/spriteatlas-add-packable.d.ts +2 -0
- package/dist/tools/spriteatlas-add-packable.js +40 -0
- package/dist/tools/spriteatlas-add-packable.js.map +1 -0
- package/dist/tools/spriteatlas-create.d.ts +2 -0
- package/dist/tools/spriteatlas-create.js +41 -0
- package/dist/tools/spriteatlas-create.js.map +1 -0
- package/dist/tools/spriteatlas-delete.d.ts +2 -0
- package/dist/tools/spriteatlas-delete.js +32 -0
- package/dist/tools/spriteatlas-delete.js.map +1 -0
- package/dist/tools/spriteatlas-get.d.ts +2 -0
- package/dist/tools/spriteatlas-get.js +23 -0
- package/dist/tools/spriteatlas-get.js.map +1 -0
- package/dist/tools/spriteatlas-list.d.ts +2 -0
- package/dist/tools/spriteatlas-list.js +21 -0
- package/dist/tools/spriteatlas-list.js.map +1 -0
- package/dist/tools/spriteatlas-modify.d.ts +2 -0
- package/dist/tools/spriteatlas-modify.js +55 -0
- package/dist/tools/spriteatlas-modify.js.map +1 -0
- package/dist/tools/spriteatlas-remove-packable.d.ts +2 -0
- package/dist/tools/spriteatlas-remove-packable.js +39 -0
- package/dist/tools/spriteatlas-remove-packable.js.map +1 -0
- package/dist/tools/terrain-create.d.ts +2 -0
- package/dist/tools/terrain-create.js +73 -0
- package/dist/tools/terrain-create.js.map +1 -0
- package/dist/tools/terrain-paint-layer.d.ts +2 -0
- package/dist/tools/terrain-paint-layer.js +85 -0
- package/dist/tools/terrain-paint-layer.js.map +1 -0
- package/dist/tools/terrain-place-trees.d.ts +2 -0
- package/dist/tools/terrain-place-trees.js +92 -0
- package/dist/tools/terrain-place-trees.js.map +1 -0
- package/dist/tools/terrain-set-heights.d.ts +2 -0
- package/dist/tools/terrain-set-heights.js +68 -0
- package/dist/tools/terrain-set-heights.js.map +1 -0
- package/dist/tools/terrain-set-neighbors.d.ts +2 -0
- package/dist/tools/terrain-set-neighbors.js +65 -0
- package/dist/tools/terrain-set-neighbors.js.map +1 -0
- package/dist/tools/texture-get-importer.d.ts +2 -0
- package/dist/tools/texture-get-importer.js +25 -0
- package/dist/tools/texture-get-importer.js.map +1 -0
- package/dist/tools/texture-get.d.ts +2 -0
- package/dist/tools/texture-get.js +23 -0
- package/dist/tools/texture-get.js.map +1 -0
- package/dist/tools/texture-reimport.d.ts +2 -0
- package/dist/tools/texture-reimport.js +33 -0
- package/dist/tools/texture-reimport.js.map +1 -0
- package/dist/tools/texture-set-import.d.ts +2 -0
- package/dist/tools/texture-set-import.js +52 -0
- package/dist/tools/texture-set-import.js.map +1 -0
- package/dist/tools/tilemap-box-fill.d.ts +2 -0
- package/dist/tools/tilemap-box-fill.js +32 -0
- package/dist/tools/tilemap-box-fill.js.map +1 -0
- package/dist/tools/tilemap-create-rule-tile.d.ts +2 -0
- package/dist/tools/tilemap-create-rule-tile.js +39 -0
- package/dist/tools/tilemap-create-rule-tile.js.map +1 -0
- package/dist/tools/tilemap-create-tile-asset.d.ts +2 -0
- package/dist/tools/tilemap-create-tile-asset.js +35 -0
- package/dist/tools/tilemap-create-tile-asset.js.map +1 -0
- package/dist/tools/tilemap-create.d.ts +2 -0
- package/dist/tools/tilemap-create.js +32 -0
- package/dist/tools/tilemap-create.js.map +1 -0
- package/dist/tools/tilemap-set-tile.d.ts +2 -0
- package/dist/tools/tilemap-set-tile.js +33 -0
- package/dist/tools/tilemap-set-tile.js.map +1 -0
- package/dist/tools/timeline-clip-add.d.ts +2 -0
- package/dist/tools/timeline-clip-add.js +43 -0
- package/dist/tools/timeline-clip-add.js.map +1 -0
- package/dist/tools/timeline-create.d.ts +2 -0
- package/dist/tools/timeline-create.js +32 -0
- package/dist/tools/timeline-create.js.map +1 -0
- package/dist/tools/timeline-director-bind.d.ts +2 -0
- package/dist/tools/timeline-director-bind.js +34 -0
- package/dist/tools/timeline-director-bind.js.map +1 -0
- package/dist/tools/timeline-modify.d.ts +2 -0
- package/dist/tools/timeline-modify.js +44 -0
- package/dist/tools/timeline-modify.js.map +1 -0
- package/dist/tools/timeline-track-add.d.ts +2 -0
- package/dist/tools/timeline-track-add.js +37 -0
- package/dist/tools/timeline-track-add.js.map +1 -0
- package/dist/tools/ui-canvas-add.d.ts +2 -0
- package/dist/tools/ui-canvas-add.js +66 -0
- package/dist/tools/ui-canvas-add.js.map +1 -0
- package/dist/tools/ui-element-add.d.ts +2 -0
- package/dist/tools/ui-element-add.js +65 -0
- package/dist/tools/ui-element-add.js.map +1 -0
- package/dist/tools/ui-element-modify.d.ts +2 -0
- package/dist/tools/ui-element-modify.js +59 -0
- package/dist/tools/ui-element-modify.js.map +1 -0
- package/dist/tools/ui-layout-group-add.d.ts +2 -0
- package/dist/tools/ui-layout-group-add.js +80 -0
- package/dist/tools/ui-layout-group-add.js.map +1 -0
- package/dist/tools/validate-edit.js +22 -1
- package/dist/tools/validate-edit.js.map +1 -1
- package/dist/tools/vfx-block-edit.d.ts +2 -0
- package/dist/tools/vfx-block-edit.js +51 -0
- package/dist/tools/vfx-block-edit.js.map +1 -0
- package/dist/tools/vfx-list.d.ts +2 -0
- package/dist/tools/vfx-list.js +31 -0
- package/dist/tools/vfx-list.js.map +1 -0
- package/dist/tools/vfx-open.d.ts +2 -0
- package/dist/tools/vfx-open.js +29 -0
- package/dist/tools/vfx-open.js.map +1 -0
- package/package.json +1 -1
package/dist/dialog-dismiss.d.ts
CHANGED
|
@@ -1,42 +1,57 @@
|
|
|
1
|
+
import { type DialogPolicy, type DialogKind } from "./dialog-policy.js";
|
|
1
2
|
/**
|
|
2
|
-
* Supported `process.platform` values for the
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* type.
|
|
3
|
+
* Supported `process.platform` values for the dialog dismiss helper. Narrowed
|
|
4
|
+
* alias of NodeJS.Platform — keeps the platform-dispatch table exhaustive in
|
|
5
|
+
* tests without forcing callers to import a Node-internal type.
|
|
6
6
|
*/
|
|
7
7
|
export type DismissPlatform = "win32" | "darwin" | "linux";
|
|
8
8
|
/**
|
|
9
9
|
* Outcome of a single dismiss attempt against the running OS desktop.
|
|
10
10
|
*
|
|
11
|
-
* `dismissed`:
|
|
11
|
+
* `dismissed`: a dialog was found AND a click was dispatched successfully.
|
|
12
12
|
*
|
|
13
|
-
* `not-found`: no
|
|
13
|
+
* `not-found`: no dismissable dialog was visible on this poll tick (either no
|
|
14
|
+
* modal at all, or a known modal whose policy has no matching button).
|
|
14
15
|
*
|
|
15
|
-
* `
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* `blocked`: a dialog was found that the policy explicitly declines to click
|
|
17
|
+
* (currently only project_upgrade without the opt-in). The caller logs an
|
|
18
|
+
* audit line and keeps polling — the dialog is still up and may need a human.
|
|
19
|
+
*
|
|
20
|
+
* `error`: an unexpected platform error happened (a required tool was missing,
|
|
21
|
+
* a syscall failed). The caller logs it once and continues with `not-found`
|
|
22
|
+
* semantics — the dialog may simply not be open yet, and a single transient
|
|
23
|
+
* error must not abort the whole launch flow.
|
|
19
24
|
*/
|
|
20
25
|
export type DismissOutcome = {
|
|
21
26
|
kind: "dismissed";
|
|
22
27
|
button: string;
|
|
28
|
+
dialog: DialogKind;
|
|
23
29
|
} | {
|
|
24
30
|
kind: "not-found";
|
|
31
|
+
} | {
|
|
32
|
+
kind: "blocked";
|
|
33
|
+
dialog: DialogKind;
|
|
34
|
+
message: string;
|
|
25
35
|
} | {
|
|
26
36
|
kind: "error";
|
|
27
37
|
message: string;
|
|
28
38
|
};
|
|
29
39
|
/**
|
|
30
40
|
* Window-title fragments matched against the Unity launch-errors dialog.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
41
|
+
* Kept as the M13 T4.5 back-compat export (the launch-errors subset of
|
|
42
|
+
* {@link DIALOG_TITLE_FRAGMENTS}); the generalized matcher now consults the
|
|
43
|
+
* full per-kind table via {@link classifyDialogTitle}.
|
|
34
44
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
45
|
+
* Both legacy and current strings are listed so the matcher stays resilient
|
|
46
|
+
* across Unity versions. The match is case-insensitive and substring-based.
|
|
37
47
|
*/
|
|
38
48
|
export declare const LAUNCH_ERROR_DIALOG_TITLE_FRAGMENTS: readonly string[];
|
|
39
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* The button label this helper presses to dismiss the launch-errors dialog
|
|
51
|
+
* under the default (`ignore`) policy. Preserved from M13 T4.5 for back-compat
|
|
52
|
+
* with tests and any external references; the generalized path now selects
|
|
53
|
+
* the button via {@link preferenceTokensForPolicy}.
|
|
54
|
+
*/
|
|
40
55
|
export declare const DISMISS_BUTTON_LABEL = "Ignore";
|
|
41
56
|
/**
|
|
42
57
|
* Producer-side prefixes for error messages that callers treat as permanent
|
|
@@ -44,59 +59,83 @@ export declare const DISMISS_BUTTON_LABEL = "Ignore";
|
|
|
44
59
|
* bailout matcher references the SAME literal as the producers.
|
|
45
60
|
*/
|
|
46
61
|
export declare const LINUX_XDOTOOL_MISSING_PREFIX = "xdotool not found on PATH";
|
|
47
|
-
export declare const UNSUPPORTED_PLATFORM_PREFIX = "Unsupported platform for
|
|
62
|
+
export declare const UNSUPPORTED_PLATFORM_PREFIX = "Unsupported platform for Unity startup-dialog auto-dismiss";
|
|
63
|
+
/** Options threaded through every platform probe. */
|
|
64
|
+
export interface DismissProbeOptions {
|
|
65
|
+
platform: DismissPlatform;
|
|
66
|
+
policy: DialogPolicy;
|
|
67
|
+
allowProjectUpgrade: boolean;
|
|
68
|
+
}
|
|
48
69
|
/**
|
|
49
|
-
* Try once to find and dismiss
|
|
50
|
-
*
|
|
51
|
-
*
|
|
70
|
+
* Try once to find and dismiss a Unity startup dialog on the current OS
|
|
71
|
+
* desktop. Pure-ish — performs OS calls and returns; never blocks past the
|
|
72
|
+
* underlying syscall's own timeout.
|
|
52
73
|
*
|
|
53
74
|
* Library-safe: never throws (errors are returned in the `DismissOutcome`
|
|
54
75
|
* union), never writes to stdout/stderr, never mutates global state.
|
|
55
76
|
*
|
|
56
|
-
*
|
|
57
|
-
* - **Windows**: Win32 (`EnumWindows` / `EnumChildWindows` /
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* this out so the user does not waste time debugging.
|
|
77
|
+
* Platform-dispatched:
|
|
78
|
+
* - **Windows**: Win32 (`EnumWindows` / `EnumChildWindows` / `GetWindowTextW`
|
|
79
|
+
* / `SendMessageW(BM_CLICK)`) via PowerShell — no native node-gyp dep.
|
|
80
|
+
* - **macOS**: AppleScript via `osascript`. Clicks a named button per the
|
|
81
|
+
* policy token table (requires Accessibility perm once).
|
|
82
|
+
* - **Linux/X11**: `xdotool`. Wayland is unsupported — the error message
|
|
83
|
+
* calls this out so the user does not waste time debugging.
|
|
64
84
|
*/
|
|
65
|
-
export declare function
|
|
85
|
+
export declare function tryDismissDialog(opts: DismissProbeOptions): Promise<DismissOutcome>;
|
|
66
86
|
/**
|
|
67
|
-
* The PowerShell payload that probes for
|
|
68
|
-
*
|
|
87
|
+
* The PowerShell payload that probes for any Unity startup dialog and clicks
|
|
88
|
+
* the policy-selected button. Exported as a string (not a function) so tests
|
|
69
89
|
* can assert the script shape without launching PowerShell.
|
|
70
90
|
*
|
|
71
91
|
* Strategy:
|
|
72
92
|
* 1. P/Invoke `EnumWindows` to enumerate every visible top-level window
|
|
73
93
|
* owned by `Unity.exe`.
|
|
74
|
-
* 2.
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* -
|
|
83
|
-
*
|
|
94
|
+
* 2. For each, normalize the title (alphanumeric lowercase) and match it
|
|
95
|
+
* against the embedded per-kind fragment table to classify it.
|
|
96
|
+
* 3. If the kind is in the blocked list → emit `blocked:<kind>` and skip
|
|
97
|
+
* the click. If the kind's token list is null → skip (not-found).
|
|
98
|
+
* 4. Walk child windows with `EnumChildWindows`, find a Button whose
|
|
99
|
+
* normalized text contains one of the policy tokens (first match wins),
|
|
100
|
+
* and send `BM_CLICK` (0x00F5). Preferred over a synthesised mouse event
|
|
101
|
+
* — works even if the user is mid-click in another app, no focus steal.
|
|
102
|
+
* 5. Unknown titles fall back to the generic per-policy token list.
|
|
103
|
+
*
|
|
104
|
+
* The script writes a single-token result to stdout (last non-empty line):
|
|
105
|
+
* - `dismissed:<button>:<kind>` on success
|
|
106
|
+
* - `blocked:<kind>` when a dialog was found but the policy declines
|
|
107
|
+
* - `not-found` when no dismissable dialog was matched
|
|
84
108
|
* - `error:<message>` on an unexpected exception
|
|
109
|
+
*
|
|
110
|
+
* The token table is passed via stdin (one JSON blob) so the script body
|
|
111
|
+
* stays constant and testable; embedding it inline would bloat the assertion.
|
|
85
112
|
*/
|
|
86
|
-
export declare const WINDOWS_DISMISS_PS_SCRIPT
|
|
113
|
+
export declare const WINDOWS_DISMISS_PS_SCRIPT = "\n$ErrorActionPreference = 'Stop'\ntry {\n if (-not ([System.Management.Automation.PSTypeName]'UnityOpenMcp.Dialogs.Dismisser').Type) {\n Add-Type -TypeDefinition @\"\nusing System;\nusing System.Collections.Generic;\nusing System.Runtime.InteropServices;\nusing System.Text;\nnamespace UnityOpenMcp.Dialogs {\n public static class Dismisser {\n public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);\n [DllImport(\"user32.dll\")] static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, IntPtr lParam);\n [DllImport(\"user32.dll\", CharSet=CharSet.Unicode)] static extern int GetWindowTextW(IntPtr hWnd, StringBuilder lpString, int nMaxCount);\n [DllImport(\"user32.dll\", CharSet=CharSet.Unicode)] static extern int GetClassNameW(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);\n [DllImport(\"user32.dll\")] static extern bool IsWindowVisible(IntPtr hWnd);\n [DllImport(\"user32.dll\")] static extern bool EnumChildWindows(IntPtr hWndParent, EnumWindowsProc lpEnumFunc, IntPtr lParam);\n [DllImport(\"user32.dll\")] static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);\n [DllImport(\"user32.dll\", CharSet=CharSet.Unicode)] static extern IntPtr SendMessageW(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);\n const uint BM_CLICK = 0x00F5;\n static string Norm(string s) {\n var sb = new StringBuilder(s.Length);\n foreach (var ch in s) {\n if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n sb.Append(char.ToLowerInvariant(ch));\n }\n }\n return sb.ToString();\n }\n public static string TryDismiss(int[] unityPids, string tableJson) {\n var unityPidSet = new HashSet<uint>();\n for (int i = 0; i < unityPids.Length; i++) unityPidSet.Add((uint)unityPids[i]);\n var table = System.Text.Json.JsonSerializer.Deserialize<Types.Table>(tableJson);\n var candidates = new List<IntPtr>();\n var sb = new StringBuilder(512);\n EnumWindows((hWnd, lParam) => {\n if (!IsWindowVisible(hWnd)) return true;\n uint procId; GetWindowThreadProcessId(hWnd, out procId);\n if (!unityPidSet.Contains(procId)) return true;\n sb.Length = 0;\n GetWindowTextW(hWnd, sb, sb.Capacity);\n candidates.Add(hWnd);\n return true;\n }, IntPtr.Zero);\n foreach (var hWnd in candidates) {\n sb.Length = 0;\n GetWindowTextW(hWnd, sb, sb.Capacity);\n var title = sb.ToString();\n var norm = Norm(title);\n string kind = null;\n foreach (var kv in table.kinds) {\n foreach (var frag in kv.Value.fragments) {\n if (norm.Contains(frag)) { kind = kv.Key; break; }\n }\n if (kind != null) break;\n }\n string[] tokens = null;\n if (kind != null) {\n if (table.blocked.Contains(kind)) return \"blocked:\" + kind;\n if (!table.kinds[kind].tokensSpecified) continue;\n tokens = table.kinds[kind].tokens;\n } else {\n if (table.genericTokens.Length == 0) continue;\n tokens = table.genericTokens;\n }\n IntPtr matchedButton = IntPtr.Zero;\n string matchedText = null;\n EnumChildWindows(hWnd, (hChild, lParam) => {\n sb.Length = 0;\n GetClassNameW(hChild, sb, sb.Capacity);\n if (sb.ToString() != \"Button\") return true;\n sb.Length = 0;\n GetWindowTextW(hChild, sb, sb.Capacity);\n var text = sb.ToString();\n var textNorm = Norm(text);\n foreach (var token in tokens) {\n if (textNorm.Contains(token)) { matchedButton = hChild; matchedText = text; return false; }\n }\n return true;\n }, IntPtr.Zero);\n if (matchedButton == IntPtr.Zero) continue;\n SendMessageW(matchedButton, BM_CLICK, IntPtr.Zero, IntPtr.Zero);\n return \"dismissed:\" + matchedText + \":\" + (kind ?? \"unknown\");\n }\n return \"not-found\";\n }\n }\n}\n\"@\n }\n $unityPids = @(Get-Process -Name 'Unity' -ErrorAction SilentlyContinue | ForEach-Object { [int]$_.Id })\n if ($unityPids.Count -eq 0) { Write-Output 'not-found'; return }\n $tableJson = [Console]::In.ReadToEnd();\n Write-Output ([UnityOpenMcp.Dialogs.Dismisser]::TryDismiss([int[]]$unityPids, $tableJson))\n} catch {\n Write-Output ('error:' + $_.Exception.Message)\n}\n";
|
|
87
114
|
/**
|
|
88
|
-
* The AppleScript
|
|
89
|
-
*
|
|
115
|
+
* The AppleScript template used for the macOS dismiss path. Exposed as a
|
|
116
|
+
* function of the token table so tests can assert the script shape without
|
|
117
|
+
* launching osascript.
|
|
90
118
|
*
|
|
91
|
-
* Strategy: iterate every window of the Unity
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
119
|
+
* Strategy: iterate every window of the Unity process, normalize its title,
|
|
120
|
+
* classify it against the table, and click the first button whose normalized
|
|
121
|
+
* label contains a policy token. If the kind is blocked, emit `blocked:<kind>`
|
|
122
|
+
* without clicking. If Unity is not running OR no matching button exists, the
|
|
123
|
+
* script reports `not-found`. Any AppleScript exception (e.g. Accessibility
|
|
124
|
+
* permission not granted) is reported as `error:<msg>`.
|
|
95
125
|
*
|
|
96
126
|
* Requires the Terminal / `node` binary to have been granted Accessibility
|
|
97
127
|
* permission in System Settings → Privacy & Security → Accessibility.
|
|
128
|
+
*
|
|
129
|
+
* The token table is JSON-escaped into the script header.
|
|
130
|
+
*/
|
|
131
|
+
export declare function macosDismissAppleScript(opts: DismissProbeOptions): string;
|
|
132
|
+
/**
|
|
133
|
+
* Kept for M13 T4.5 back-compat — the original launch-errors-only AppleScript
|
|
134
|
+
* constant some external tests reference. Delegates to the generalized
|
|
135
|
+
* template under the default policy.
|
|
136
|
+
* @deprecated Use {@link macosDismissAppleScript} instead.
|
|
98
137
|
*/
|
|
99
|
-
export declare const MACOS_DISMISS_APPLESCRIPT
|
|
138
|
+
export declare const MACOS_DISMISS_APPLESCRIPT: string;
|
|
100
139
|
/**
|
|
101
140
|
* Reset the cached `xdotool` presence flag. Test-only — production code
|
|
102
141
|
* never needs to call this.
|
|
@@ -116,31 +155,45 @@ export declare function regexEscapeForXdotool(s: string): string;
|
|
|
116
155
|
* the result as `not-found`.
|
|
117
156
|
*
|
|
118
157
|
* Contract:
|
|
119
|
-
* - `dismissed:<button>` → `{ kind: "dismissed", button }`
|
|
120
|
-
* - `
|
|
121
|
-
* - `
|
|
122
|
-
* -
|
|
123
|
-
*
|
|
158
|
+
* - `dismissed:<button>:<kind>` → `{ kind: "dismissed", button, dialog }`
|
|
159
|
+
* - `dismissed:<button>` → back-compat (T4.5) → launch_errors
|
|
160
|
+
* - `blocked:<kind>` → `{ kind: "blocked", dialog, message }`
|
|
161
|
+
* - `not-found` → `{ kind: "not-found" }`
|
|
162
|
+
* - `error:<message>` → `{ kind: "error", message }`
|
|
163
|
+
* - any other / empty → `{ kind: "not-found" }` (defensive — a
|
|
164
|
+
* transient parse miss is treated as "not yet visible" rather than abort)
|
|
124
165
|
*/
|
|
125
166
|
export declare function parseDismissOutput(stdout: string): DismissOutcome;
|
|
126
|
-
/** Default dismiss probe timeout
|
|
167
|
+
/** Default dismiss probe timeout (30s overall budget). */
|
|
127
168
|
export declare const DEFAULT_DISMISS_TIMEOUT_MS = 30000;
|
|
128
|
-
/** Default dismiss probe poll interval
|
|
169
|
+
/** Default dismiss probe poll interval (1.5s tick). */
|
|
129
170
|
export declare const DEFAULT_DISMISS_INTERVAL_MS = 1500;
|
|
130
171
|
/**
|
|
131
172
|
* Resolve the dismiss-feature config from the environment.
|
|
132
173
|
*
|
|
133
174
|
* - `UNITY_OPEN_MCP_NO_AUTO_DISMISS_LAUNCH_ERRORS=1` disables the feature
|
|
134
|
-
* entirely (preserves pre-
|
|
175
|
+
* entirely (preserves the pre-T4.5 baseline — no OS clicks). Kept as the
|
|
176
|
+
* hard kill-switch for back-compat.
|
|
177
|
+
* - `UNITY_OPEN_MCP_DIALOG_POLICY=auto|manual|ignore|recover|safe-mode|cancel`
|
|
178
|
+
* selects which button to click per dialog kind (default `ignore`).
|
|
179
|
+
* `manual` is equivalent to the kill-switch for the polling loop (no
|
|
180
|
+
* clicks) but is reported distinctly in the config so callers can tell
|
|
181
|
+
* "operator opted out of all dialogs" from "operator turned the feature
|
|
182
|
+
* off entirely".
|
|
183
|
+
* - `UNITY_OPEN_MCP_ALLOW_PROJECT_UPGRADE=1` opts in to auto-confirming the
|
|
184
|
+
* Project Upgrade Required dialog (irreversible — off by default).
|
|
135
185
|
* - `UNITY_OPEN_MCP_DISMISS_TIMEOUT_MS` overrides the overall timeout.
|
|
136
186
|
* - `UNITY_OPEN_MCP_DISMISS_INTERVAL_MS` overrides the poll interval.
|
|
137
187
|
*
|
|
188
|
+
* `enabled` is true only when the kill-switch is unset AND policy != manual.
|
|
138
189
|
* Pure / no I/O. Exposed for tests.
|
|
139
190
|
*/
|
|
140
191
|
export interface DismissConfig {
|
|
141
192
|
enabled: boolean;
|
|
142
193
|
timeoutMs: number;
|
|
143
194
|
intervalMs: number;
|
|
195
|
+
policy: DialogPolicy;
|
|
196
|
+
allowProjectUpgrade: boolean;
|
|
144
197
|
}
|
|
145
198
|
export declare function readDismissConfig(env?: NodeJS.ProcessEnv): DismissConfig;
|
|
146
199
|
/**
|
|
@@ -152,6 +205,8 @@ export type DismissLog = (line: string) => void;
|
|
|
152
205
|
export interface PollAndDismissOptions {
|
|
153
206
|
timeoutMs: number;
|
|
154
207
|
intervalMs: number;
|
|
208
|
+
policy: DialogPolicy;
|
|
209
|
+
allowProjectUpgrade: boolean;
|
|
155
210
|
/**
|
|
156
211
|
* Override the platform — exposed for tests so the polling logic can be
|
|
157
212
|
* exercised across all three OS branches without hopping process.platform.
|
|
@@ -161,37 +216,35 @@ export interface PollAndDismissOptions {
|
|
|
161
216
|
/**
|
|
162
217
|
* Override the dismiss probe — exposed for tests so the loop can be
|
|
163
218
|
* exercised without invoking PowerShell / osascript / xdotool. Defaults
|
|
164
|
-
* to `
|
|
219
|
+
* to `tryDismissDialog`.
|
|
165
220
|
*/
|
|
166
|
-
probe?: typeof
|
|
221
|
+
probe?: typeof tryDismissDialog;
|
|
167
222
|
/**
|
|
168
223
|
* When fired, the loop exits immediately. Intended for callers that have
|
|
169
224
|
* an authoritative readiness signal in scope (e.g. the parallel compile
|
|
170
225
|
* wait in LiveClient). The moment the bridge is reachable + idle, there
|
|
171
|
-
* is no
|
|
226
|
+
* is no startup dialog left to dismiss, so the loop stops.
|
|
172
227
|
*/
|
|
173
228
|
abortSignal?: AbortSignal;
|
|
174
229
|
/** Per-dismissal audit sink. Defaults to stderr. */
|
|
175
230
|
log?: DismissLog;
|
|
176
231
|
}
|
|
177
232
|
/**
|
|
178
|
-
* Poll the OS desktop for
|
|
179
|
-
* every time the probe reports it as found. Returns once the
|
|
180
|
-
* has fired (authoritative readiness), the overall timeout has
|
|
181
|
-
* a permanent platform error has been observed.
|
|
233
|
+
* Poll the OS desktop for any Unity startup dialog and click the policy-
|
|
234
|
+
* selected button every time the probe reports it as found. Returns once the
|
|
235
|
+
* abort signal has fired (authoritative readiness), the overall timeout has
|
|
236
|
+
* elapsed, or a permanent platform error has been observed.
|
|
182
237
|
*
|
|
183
|
-
* Re-entrant dismissals are supported: when
|
|
238
|
+
* Re-entrant dismissals are supported: when a dialog re-appears after a
|
|
184
239
|
* successful click (resolver-fix → dialog-reappears cycle), each subsequent
|
|
185
240
|
* dismissal emits its own log line so the recurrence shows in the audit log.
|
|
186
241
|
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* budget.
|
|
242
|
+
* `blocked` outcomes (project_upgrade without opt-in) are logged once per
|
|
243
|
+
* occurrence and the loop keeps polling — a human still needs to dismiss that
|
|
244
|
+
* dialog, and the loop should not exit before the readiness abort fires.
|
|
191
245
|
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* is the authoritative "no more launch dialog" signal and aborts this loop.
|
|
246
|
+
* Never throws. Transient platform errors are logged once then suppressed;
|
|
247
|
+
* permanent errors bail out after the first occurrence so the helper does
|
|
248
|
+
* not spawn doomed tool invocations on a fixed budget.
|
|
196
249
|
*/
|
|
197
|
-
export declare function
|
|
250
|
+
export declare function pollAndDismissDialogs(opts: PollAndDismissOptions): Promise<void>;
|