@alpsckr/unitycli 0.4.3 → 0.4.4

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.
Files changed (420) hide show
  1. package/README.md +5 -5
  2. package/contracts/command-contract.json +109 -217
  3. package/contracts/package-files.json +374 -294
  4. package/contracts/stable-session/direct-call-semantics.json +8 -2
  5. package/contracts/tool-completion-contract.json +148 -672
  6. package/dist/bridge/admission.d.ts +17 -1
  7. package/dist/bridge/admission.js +2 -0
  8. package/dist/bridge/admission.js.map +1 -1
  9. package/dist/bridge/domains/asset.js +3 -1
  10. package/dist/bridge/domains/asset.js.map +1 -1
  11. package/dist/bridge/domains/camera.js +39 -7
  12. package/dist/bridge/domains/camera.js.map +1 -1
  13. package/dist/bridge/domains/console.js +2 -1
  14. package/dist/bridge/domains/console.js.map +1 -1
  15. package/dist/bridge/domains/doctor.d.ts +3 -0
  16. package/dist/bridge/domains/doctor.js +8 -0
  17. package/dist/bridge/domains/doctor.js.map +1 -0
  18. package/dist/bridge/domains/editor.js +0 -4
  19. package/dist/bridge/domains/editor.js.map +1 -1
  20. package/dist/bridge/domains/game-object.js +4 -12
  21. package/dist/bridge/domains/game-object.js.map +1 -1
  22. package/dist/bridge/domains/graphics.js +1 -16
  23. package/dist/bridge/domains/graphics.js.map +1 -1
  24. package/dist/bridge/domains/object.js +3 -0
  25. package/dist/bridge/domains/object.js.map +1 -1
  26. package/dist/bridge/domains/physics.js +1 -2
  27. package/dist/bridge/domains/physics.js.map +1 -1
  28. package/dist/bridge/domains/profiler.js +18 -7
  29. package/dist/bridge/domains/profiler.js.map +1 -1
  30. package/dist/bridge/domains/project-tool.js +4 -0
  31. package/dist/bridge/domains/project-tool.js.map +1 -1
  32. package/dist/bridge/domains/reflection.js +10 -2
  33. package/dist/bridge/domains/reflection.js.map +1 -1
  34. package/dist/bridge/domains/runtime-tool.js +3 -0
  35. package/dist/bridge/domains/runtime-tool.js.map +1 -1
  36. package/dist/bridge/domains/scene.js +3 -8
  37. package/dist/bridge/domains/scene.js.map +1 -1
  38. package/dist/bridge/domains/screenshot.js +30 -6
  39. package/dist/bridge/domains/screenshot.js.map +1 -1
  40. package/dist/bridge/domains/ui.js +3 -1
  41. package/dist/bridge/domains/ui.js.map +1 -1
  42. package/dist/bridge/index.d.ts +5 -5
  43. package/dist/bridge/index.js +6 -9
  44. package/dist/bridge/index.js.map +1 -1
  45. package/dist/bridge/registry.js +3 -5
  46. package/dist/bridge/registry.js.map +1 -1
  47. package/dist/bridge/session-supervisor.d.ts +6 -3
  48. package/dist/bridge/session-supervisor.js +122 -34
  49. package/dist/bridge/session-supervisor.js.map +1 -1
  50. package/dist/bridge/types.d.ts +6 -5
  51. package/dist/bridge/types.js +16 -2
  52. package/dist/bridge/types.js.map +1 -1
  53. package/dist/catalog-protocol.d.ts +64 -0
  54. package/dist/catalog-protocol.js +460 -0
  55. package/dist/catalog-protocol.js.map +1 -0
  56. package/dist/cli-commands/command.js +84 -61
  57. package/dist/cli-commands/command.js.map +1 -1
  58. package/dist/cli-commands/extensions.js +70 -50
  59. package/dist/cli-commands/extensions.js.map +1 -1
  60. package/dist/cli-commands/instances.js +1 -1
  61. package/dist/cli-commands/instances.js.map +1 -1
  62. package/dist/cli-process-owners.d.ts +6 -0
  63. package/dist/cli-process-owners.js +27 -0
  64. package/dist/cli-process-owners.js.map +1 -0
  65. package/dist/cli.d.ts +1 -1
  66. package/dist/cli.js +20 -5
  67. package/dist/cli.js.map +1 -1
  68. package/dist/contracts/command-contract.js +14 -4
  69. package/dist/contracts/command-contract.js.map +1 -1
  70. package/dist/doctor.d.ts +4 -6
  71. package/dist/doctor.js +429 -398
  72. package/dist/doctor.js.map +1 -1
  73. package/dist/editor-blocker-observer.d.ts +2 -1
  74. package/dist/editor-blocker-observer.js +40 -13
  75. package/dist/editor-blocker-observer.js.map +1 -1
  76. package/dist/extension-availability.d.ts +27 -9
  77. package/dist/extension-availability.js +96 -56
  78. package/dist/extension-availability.js.map +1 -1
  79. package/dist/extensions/descriptor-loader.d.ts +2 -2
  80. package/dist/extensions/descriptor-loader.js +3 -4
  81. package/dist/extensions/descriptor-loader.js.map +1 -1
  82. package/dist/extensions/index.d.ts +1 -1
  83. package/dist/extensions/index.js +1 -1
  84. package/dist/extensions/index.js.map +1 -1
  85. package/dist/extensions/installer.d.ts +24 -7
  86. package/dist/extensions/installer.js +142 -66
  87. package/dist/extensions/installer.js.map +1 -1
  88. package/dist/extensions/registry.js +3 -5
  89. package/dist/extensions/registry.js.map +1 -1
  90. package/dist/extensions/state-contract.d.ts +11 -0
  91. package/dist/extensions/state-contract.js +50 -0
  92. package/dist/extensions/state-contract.js.map +1 -0
  93. package/dist/instances.d.ts +13 -1
  94. package/dist/instances.js +26 -0
  95. package/dist/instances.js.map +1 -1
  96. package/dist/package-manager.d.ts +0 -24
  97. package/dist/package-manager.js +5 -58
  98. package/dist/package-manager.js.map +1 -1
  99. package/dist/project-tool-discovery.d.ts +5 -2
  100. package/dist/project-tool-discovery.js +22 -18
  101. package/dist/project-tool-discovery.js.map +1 -1
  102. package/dist/runtime-code.js +1 -1
  103. package/dist/runtime-code.js.map +1 -1
  104. package/dist/tool-name.d.ts +4 -0
  105. package/dist/tool-name.js +15 -0
  106. package/dist/tool-name.js.map +1 -0
  107. package/dist/tools/.generated-completion-registry.d.ts +2 -0
  108. package/dist/tools/.generated-completion-registry.js +763 -325
  109. package/dist/tools/.generated-completion-registry.js.map +1 -1
  110. package/dist/tools/.generated-registry.d.ts +6 -11
  111. package/dist/tools/.generated-registry.js +6 -11
  112. package/dist/tools/.generated-registry.js.map +1 -1
  113. package/dist/tools/.generated-schemas.js +11 -16
  114. package/dist/tools/.generated-schemas.js.map +1 -1
  115. package/dist/tools/asset/refresh-status.d.ts +3 -0
  116. package/dist/tools/asset/refresh-status.js +12 -0
  117. package/dist/tools/asset/refresh-status.js.map +1 -0
  118. package/dist/tools/asset/refresh.js +7 -3
  119. package/dist/tools/asset/refresh.js.map +1 -1
  120. package/dist/tools/build/player-status.d.ts +3 -0
  121. package/dist/tools/build/player-status.js +12 -0
  122. package/dist/tools/build/player-status.js.map +1 -0
  123. package/dist/tools/build/run.js +1 -1
  124. package/dist/tools/build/run.js.map +1 -1
  125. package/dist/tools/catalog-control.d.ts +22 -0
  126. package/dist/tools/catalog-control.js +335 -0
  127. package/dist/tools/catalog-control.js.map +1 -0
  128. package/dist/tools/catalog.d.ts +7 -9
  129. package/dist/tools/catalog.js +66 -45
  130. package/dist/tools/catalog.js.map +1 -1
  131. package/dist/tools/commands.d.ts +1 -1
  132. package/dist/tools/commands.js +44 -11
  133. package/dist/tools/commands.js.map +1 -1
  134. package/dist/tools/define.js +3 -2
  135. package/dist/tools/define.js.map +1 -1
  136. package/dist/tools/dispatcher.d.ts +53 -6
  137. package/dist/tools/dispatcher.js +277 -108
  138. package/dist/tools/dispatcher.js.map +1 -1
  139. package/dist/tools/editor/compile.js +1 -1
  140. package/dist/tools/editor/compile.js.map +1 -1
  141. package/dist/tools/editor/play-mode-status.d.ts +3 -0
  142. package/dist/tools/editor/play-mode-status.js +12 -0
  143. package/dist/tools/editor/play-mode-status.js.map +1 -0
  144. package/dist/tools/editor/readiness.d.ts +0 -1
  145. package/dist/tools/editor/readiness.js +0 -1
  146. package/dist/tools/editor/readiness.js.map +1 -1
  147. package/dist/tools/editor/refresh.d.ts +7 -3
  148. package/dist/tools/editor/refresh.js +20 -15
  149. package/dist/tools/editor/refresh.js.map +1 -1
  150. package/dist/tools/editor/state.d.ts +2 -2
  151. package/dist/tools/editor/state.js +13 -12
  152. package/dist/tools/editor/state.js.map +1 -1
  153. package/dist/tools/metadata/derived.js +1 -7
  154. package/dist/tools/metadata/derived.js.map +1 -1
  155. package/dist/tools/metadata/status.js +1 -12
  156. package/dist/tools/metadata/status.js.map +1 -1
  157. package/dist/tools/metadata/types.d.ts +0 -2
  158. package/dist/tools/navmesh/live.js +1 -1
  159. package/dist/tools/navmesh/live.js.map +1 -1
  160. package/dist/tools/occlusion/live.js +1 -1
  161. package/dist/tools/occlusion/live.js.map +1 -1
  162. package/dist/tools/package/deploy.js +2 -2
  163. package/dist/tools/package/deploy.js.map +1 -1
  164. package/dist/tools/package/embed.js +1 -1
  165. package/dist/tools/package/embed.js.map +1 -1
  166. package/dist/tools/package/install-status.d.ts +3 -0
  167. package/dist/tools/package/install-status.js +12 -0
  168. package/dist/tools/package/install-status.js.map +1 -0
  169. package/dist/tools/package/install.js +3 -3
  170. package/dist/tools/package/install.js.map +1 -1
  171. package/dist/tools/package/live-resolve.js +45 -12
  172. package/dist/tools/package/live-resolve.js.map +1 -1
  173. package/dist/tools/package/registry-clear.js.map +1 -1
  174. package/dist/tools/package/registry-set.js.map +1 -1
  175. package/dist/tools/package/remove-status.d.ts +3 -0
  176. package/dist/tools/package/remove-status.js +12 -0
  177. package/dist/tools/package/remove-status.js.map +1 -0
  178. package/dist/tools/package/remove.js +3 -3
  179. package/dist/tools/package/remove.js.map +1 -1
  180. package/dist/tools/package/resolve.js +3 -3
  181. package/dist/tools/package/resolve.js.map +1 -1
  182. package/dist/tools/package/restore.js +2 -2
  183. package/dist/tools/package/restore.js.map +1 -1
  184. package/dist/tools/package/scoped-registry-add.js.map +1 -1
  185. package/dist/tools/status/support.d.ts +13 -0
  186. package/dist/tools/status/support.js +28 -0
  187. package/dist/tools/status/support.js.map +1 -0
  188. package/dist/tools/test/cancel.js +2 -2
  189. package/dist/tools/test/cancel.js.map +1 -1
  190. package/dist/tools/test/run-status.d.ts +3 -0
  191. package/dist/tools/test/run-status.js +12 -0
  192. package/dist/tools/test/run-status.js.map +1 -0
  193. package/dist/tools/test/run.js +7 -4
  194. package/dist/tools/test/run.js.map +1 -1
  195. package/dist/tools/tools/group-summaries.js +10 -14
  196. package/dist/tools/tools/group-summaries.js.map +1 -1
  197. package/docs/architecture.md +4 -4
  198. package/docs/availability-differences.md +4 -4
  199. package/docs/command-execution.md +4 -3
  200. package/docs/error-codes.md +13 -5
  201. package/docs/extensions.md +1 -7
  202. package/docs/risk-and-side-effects.md +4 -3
  203. package/docs/safety-boundaries.md +3 -1
  204. package/docs/target-and-instance.md +1 -1
  205. package/docs/tool-discovery.md +17 -10
  206. package/docs/tool-execution.md +18 -7
  207. package/extensions/cinemachine/unitypkg/Editor/UnityCliExtensionAssembly.cs +3 -0
  208. package/extensions/hdrp/unitypkg/Editor/UnityCliExtensionAssembly.cs +3 -0
  209. package/extensions/probuilder/unitypkg/Editor/UnityCliExtensionAssembly.cs +3 -0
  210. package/extensions/urp/unitypkg/Editor/UnityCliExtensionAssembly.cs +3 -0
  211. package/extensions/vfx-graph/unitypkg/Editor/UnityCliExtensionAssembly.cs +3 -0
  212. package/package.json +2 -4
  213. package/skills/unitycli/SKILL.md +11 -2
  214. package/skills/unitycli/manifest.json +1 -1
  215. package/skills/unitycli/references/operation-protocol.md +3 -3
  216. package/unitypkg/Editor/AssemblyInfo.cs +5 -0
  217. package/unitypkg/Editor/Bridge/BridgeCommandRegistry.cs +49 -14
  218. package/unitypkg/Editor/Bridge/BridgeHttpServer.cs +9 -35
  219. package/unitypkg/Editor/Bridge/BridgeQueueState.cs +672 -0
  220. package/unitypkg/Editor/Bridge/BridgeWorkQueue.cs +970 -120
  221. package/unitypkg/Editor/BridgeStartupStateMachine.cs +59 -1
  222. package/unitypkg/Editor/Commands/ProjectToolCommands.cs +4 -0
  223. package/unitypkg/Editor/Commands/RuntimeToolCommands.cs +3 -0
  224. package/unitypkg/Editor/Generated/UnityCliToolCompletionRegistry.g.cs +379 -14
  225. package/unitypkg/Editor/Infrastructure/CodeExecSupport.cs +28 -13
  226. package/unitypkg/Editor/Infrastructure/RegistryOwnershipResolver.cs +132 -105
  227. package/unitypkg/Editor/Infrastructure/UnityCliActiveOperation.cs +138 -29
  228. package/unitypkg/Editor/Infrastructure/UnityCliAdmission.cs +1856 -237
  229. package/unitypkg/Editor/Infrastructure/UnityCliDoctorDiagnostics.cs +220 -0
  230. package/unitypkg/Editor/Infrastructure/UnityCliDurableStatusCoordinator.cs +118 -0
  231. package/unitypkg/Editor/Infrastructure/UnityCliEditorStateSnapshot.cs +2 -1
  232. package/unitypkg/Editor/Infrastructure/UnityCliHierarchyPager.cs +203 -0
  233. package/unitypkg/Editor/Infrastructure/UnityCliInstanceCleanup.cs +2 -1
  234. package/unitypkg/Editor/Infrastructure/UnityCliInstanceRegistry.cs +201 -63
  235. package/unitypkg/Editor/Infrastructure/UnityCliJson.cs +2 -3
  236. package/unitypkg/Editor/Infrastructure/UnityCliLiveBuildCoordinator.cs +289 -46
  237. package/unitypkg/Editor/Infrastructure/UnityCliLiveRefreshCoordinator.cs +87 -53
  238. package/unitypkg/Editor/Infrastructure/UnityCliNavMeshBakeCoordinator.cs +4 -4
  239. package/unitypkg/Editor/Infrastructure/UnityCliObjectRef.cs +128 -25
  240. package/unitypkg/Editor/Infrastructure/UnityCliObjectSerializer.cs +435 -327
  241. package/unitypkg/Editor/Infrastructure/UnityCliOcclusionBakeCoordinator.cs +4 -4
  242. package/unitypkg/Editor/Infrastructure/UnityCliOperationCoordinator.cs +351 -53
  243. package/unitypkg/Editor/Infrastructure/UnityCliPackageResolveCoordinator.cs +118 -18
  244. package/unitypkg/Editor/Infrastructure/UnityCliPackageResolveState.cs +20 -1
  245. package/unitypkg/Editor/Infrastructure/UnityCliReadGeneration.cs +97 -0
  246. package/unitypkg/Editor/Infrastructure/UnityCliReflection.cs +644 -133
  247. package/unitypkg/Editor/Infrastructure/UnityCliReloadOperation.cs +128 -41
  248. package/unitypkg/Editor/Infrastructure/UnityCliRuntimeExecutor.cs +14 -84
  249. package/unitypkg/Editor/Infrastructure/UnityCliSerializer.cs +220 -0
  250. package/unitypkg/Editor/Infrastructure/UnityCliSessionMutationLease.cs +69 -29
  251. package/unitypkg/Editor/Infrastructure/UnityCliTestRunCoordinator.cs +440 -54
  252. package/unitypkg/Editor/Infrastructure/UnityCliWaiter.cs +128 -35
  253. package/unitypkg/Editor/ProjectTools/IUnityCliTool.cs +9 -1
  254. package/unitypkg/Editor/ProjectTools/OfficialAttributeToolRegistry.cs +32 -31
  255. package/unitypkg/Editor/ProjectTools/ProjectToolRegistry.cs +607 -458
  256. package/unitypkg/Editor/ProjectTools/ProjectToolSchemaValidator.cs +35 -7
  257. package/unitypkg/Editor/ProjectTools/RegisteredTool.cs +501 -60
  258. package/unitypkg/Editor/ProjectTools/UnityCliProjectToolContext.cs +21 -0
  259. package/unitypkg/Editor/ProjectTools/UnityCliSchemaDeriver.cs +36 -7
  260. package/unitypkg/Editor/ProjectTools/UnityCliToolName.cs +30 -0
  261. package/unitypkg/Editor/Properties/AssemblyInfo.cs +3 -0
  262. package/unitypkg/Editor/Tools/asset/get-data.cs +16 -7
  263. package/unitypkg/Editor/Tools/build/BuildSceneStateTool.cs +23 -3
  264. package/unitypkg/Editor/Tools/build/BuildToolDtos.cs +2 -1
  265. package/unitypkg/Editor/Tools/build/scene/add.cs +6 -3
  266. package/unitypkg/Editor/Tools/build/scene/disable.cs +1 -1
  267. package/unitypkg/Editor/Tools/build/scene/enable.cs +1 -1
  268. package/unitypkg/Editor/Tools/build/scene/list.cs +1 -1
  269. package/unitypkg/Editor/Tools/build/scene/remove.cs +13 -3
  270. package/unitypkg/Editor/Tools/camera/CameraToolSupport.cs +38 -38
  271. package/unitypkg/Editor/Tools/camera/multiview.cs +13 -6
  272. package/unitypkg/Editor/Tools/camera/screenshot.cs +14 -7
  273. package/unitypkg/Editor/Tools/component/get.cs +16 -9
  274. package/unitypkg/Editor/Tools/component/modify.cs +6 -4
  275. package/unitypkg/Editor/Tools/console/clear.cs +7 -6
  276. package/unitypkg/Editor/Tools/console/get.cs +48 -16
  277. package/unitypkg/Editor/Tools/editor/EditorToolSupport.cs +143 -28
  278. package/unitypkg/Editor/Tools/editor/menu-items.cs +1 -1
  279. package/unitypkg/Editor/Tools/editor/play.cs +2 -11
  280. package/unitypkg/Editor/Tools/editor/selection.cs +1 -1
  281. package/unitypkg/Editor/Tools/editor/stop.cs +2 -11
  282. package/unitypkg/Editor/Tools/editor/windows.cs +1 -1
  283. package/unitypkg/Editor/Tools/go/GameObjectToolSupport.cs +54 -4
  284. package/unitypkg/Editor/Tools/go/delete.cs +1 -1
  285. package/unitypkg/Editor/Tools/go/find.cs +167 -70
  286. package/unitypkg/Editor/Tools/graphics/GraphicsToolSupport.cs +25 -0
  287. package/unitypkg/Editor/Tools/graphics/light-probe-group.cs +9 -3
  288. package/unitypkg/Editor/Tools/graphics/pipeline-info.cs +1 -1
  289. package/unitypkg/Editor/Tools/graphics/pipeline-settings.cs +1 -1
  290. package/unitypkg/Editor/Tools/graphics/quality.cs +2 -2
  291. package/unitypkg/Editor/Tools/graphics/reflection-probe.cs +3 -3
  292. package/unitypkg/Editor/Tools/graphics/stats.cs +1 -1
  293. package/unitypkg/Editor/Tools/object/ObjectToolSupport.cs +4 -4
  294. package/unitypkg/Editor/Tools/object/get-data.cs +9 -7
  295. package/unitypkg/Editor/Tools/object/modify.cs +7 -5
  296. package/unitypkg/Editor/Tools/physics/raycast.cs +24 -6
  297. package/unitypkg/Editor/Tools/prefab/stage.cs +1 -1
  298. package/unitypkg/Editor/Tools/profiler/ProfilerFrameDebuggerSupport.cs +94 -21
  299. package/unitypkg/Editor/Tools/profiler/ProfilerMemorySnapshotSupport.cs +397 -10
  300. package/unitypkg/Editor/Tools/profiler/ProfilerToolSupport.cs +18 -4
  301. package/unitypkg/Editor/Tools/profiler/frame-debugger/enable.cs +1 -1
  302. package/unitypkg/Editor/Tools/profiler/frame-debugger/events.cs +88 -87
  303. package/unitypkg/Editor/Tools/profiler/hierarchy.cs +278 -112
  304. package/unitypkg/Editor/Tools/profiler/memory-snapshot/compare.cs +9 -5
  305. package/unitypkg/Editor/Tools/profiler/memory-snapshot/list.cs +37 -35
  306. package/unitypkg/Editor/Tools/profiler/memory-snapshot/take.cs +99 -97
  307. package/unitypkg/Editor/Tools/project/info.cs +1 -1
  308. package/unitypkg/Editor/Tools/project/layers.cs +1 -1
  309. package/unitypkg/Editor/Tools/project/tags.cs +1 -1
  310. package/unitypkg/Editor/Tools/reflection/method/call.cs +9 -7
  311. package/unitypkg/Editor/Tools/reflection/method/find.cs +27 -37
  312. package/unitypkg/Editor/Tools/reflection/type/schema.cs +24 -28
  313. package/unitypkg/Editor/Tools/scene/gameobject/component.cs +8 -5
  314. package/unitypkg/Editor/Tools/scene/gameobject/components.cs +10 -7
  315. package/unitypkg/Editor/Tools/scene/gameobject-support.cs +104 -8
  316. package/unitypkg/Editor/Tools/scene/gameobject.cs +37 -16
  317. package/unitypkg/Editor/Tools/scene/hierarchy.cs +146 -142
  318. package/unitypkg/Editor/Tools/screenshot/EditorElementCaptureToolSupport.cs +77 -25
  319. package/unitypkg/Editor/Tools/screenshot/ScreenshotToolSupport.cs +315 -95
  320. package/unitypkg/Editor/Tools/screenshot/editor-element.cs +7 -5
  321. package/unitypkg/Editor/Tools/screenshot/game-view.cs +35 -21
  322. package/unitypkg/Editor/Tools/screenshot/isolated-object.cs +29 -23
  323. package/unitypkg/Editor/Tools/screenshot/orbit.cs +37 -25
  324. package/unitypkg/Editor/Tools/screenshot/scene-view.cs +25 -18
  325. package/unitypkg/Editor/Tools/screenshot/screen.cs +177 -17
  326. package/unitypkg/Editor/Tools/screenshot/surround.cs +83 -79
  327. package/unitypkg/Editor/Tools/ui/render-preview.cs +16 -11
  328. package/unitypkg/Editor/UnityCliBridge.cs +97 -34
  329. package/unitypkg/Runtime/Infrastructure/UnityCliRuntimeBridge.cs +753 -122
  330. package/unitypkg/Runtime/Properties/AssemblyInfo.cs +5 -0
  331. package/unitypkg/Runtime/UnityCli.Runtime.asmdef +1 -1
  332. package/unitypkg/Shared/AssemblyInfo.cs +4 -0
  333. package/unitypkg/Shared/UnityCliAdmissionPool.cs +265 -75
  334. package/unitypkg/Shared/UnityCliBridgeQueuePolicy.cs +410 -0
  335. package/unitypkg/Shared/UnityCliBridgeWorkItemState.cs +47 -0
  336. package/unitypkg/Shared/UnityCliExceptionProjection.cs +151 -0
  337. package/unitypkg/Shared/UnityCliQueuePublication.cs +30 -0
  338. package/unitypkg/Shared/UnityCliRequestBudget.cs +352 -0
  339. package/unitypkg/Shared/UnityCliRuntimeRequestPublication.cs +107 -0
  340. package/unitypkg/Tests/Editor/UnityCli.Editor.Tests.asmdef +2 -2
  341. package/unitypkg/Tests/Editor/UnityCliAdmissionCoordinatorIntegrationTests.cs +1329 -0
  342. package/unitypkg/Tests/Editor/UnityCliAdmissionPoolTests.cs +311 -114
  343. package/unitypkg/Tests/Editor/UnityCliAdmissionRepairStateTests.cs +94 -0
  344. package/unitypkg/Tests/Editor/UnityCliBridgeAdmissionIntegrationTests.cs +1229 -0
  345. package/unitypkg/Tests/Editor/UnityCliBridgeQueuePolicyTests.cs +412 -0
  346. package/unitypkg/Tests/Editor/UnityCliContinuationIntegrationTests.cs +292 -0
  347. package/unitypkg/Tests/Editor/UnityCliDiagnosticBoundaryTests.cs +120 -0
  348. package/unitypkg/Tests/Editor/UnityCliDurableStatusTests.cs +84 -0
  349. package/unitypkg/Tests/Editor/UnityCliExceptionProjectionTests.cs +72 -0
  350. package/unitypkg/Tests/Editor/UnityCliInstancePublicationRetryTests.cs +180 -97
  351. package/unitypkg/Tests/Editor/UnityCliMemoryReflectionIntegrationTests.cs +434 -0
  352. package/unitypkg/Tests/Editor/UnityCliRequestBudgetTests.cs +615 -0
  353. package/unitypkg/Tests/Editor/UnityCliRuntimeBridgeIntegrationTests.cs +520 -0
  354. package/unitypkg/Tests/Editor/UnityCliToolCatalogTests.cs +562 -0
  355. package/unitypkg/Tests/Runtime/UnityCli.Runtime.Tests.asmdef +23 -0
  356. package/unitypkg/Tests/Runtime/UnityCliRuntimeCatalogValidationTests.cs +29 -0
  357. package/unitypkg/package.json +1 -1
  358. package/contracts/static-capability-catalog.json +0 -48226
  359. package/dist/bridge/domains/diagnose.d.ts +0 -2
  360. package/dist/bridge/domains/diagnose.js +0 -11
  361. package/dist/bridge/domains/diagnose.js.map +0 -1
  362. package/dist/bridge/domains/extension.d.ts +0 -8
  363. package/dist/bridge/domains/extension.js +0 -20
  364. package/dist/bridge/domains/extension.js.map +0 -1
  365. package/dist/capabilities.d.ts +0 -5
  366. package/dist/capabilities.js +0 -84
  367. package/dist/capabilities.js.map +0 -1
  368. package/dist/static-capability-catalog.d.ts +0 -13
  369. package/dist/static-capability-catalog.js +0 -41
  370. package/dist/static-capability-catalog.js.map +0 -1
  371. package/dist/tools/diagnose/capabilities.d.ts +0 -13
  372. package/dist/tools/diagnose/capabilities.js +0 -34
  373. package/dist/tools/diagnose/capabilities.js.map +0 -1
  374. package/dist/tools/package/info.d.ts +0 -19
  375. package/dist/tools/package/info.js +0 -27
  376. package/dist/tools/package/info.js.map +0 -1
  377. package/dist/tools/package/list.d.ts +0 -27
  378. package/dist/tools/package/list.js +0 -21
  379. package/dist/tools/package/list.js.map +0 -1
  380. package/dist/tools/package/registry-get.d.ts +0 -10
  381. package/dist/tools/package/registry-get.js +0 -22
  382. package/dist/tools/package/registry-get.js.map +0 -1
  383. package/dist/tools/package/scoped-registry-list.d.ts +0 -14
  384. package/dist/tools/package/scoped-registry-list.js +0 -22
  385. package/dist/tools/package/scoped-registry-list.js.map +0 -1
  386. package/dist/tools/package/search.d.ts +0 -17
  387. package/dist/tools/package/search.js +0 -39
  388. package/dist/tools/package/search.js.map +0 -1
  389. package/dist/tools/package/status.d.ts +0 -21
  390. package/dist/tools/package/status.js +0 -37
  391. package/dist/tools/package/status.js.map +0 -1
  392. package/dist/tools/tools/describe.d.ts +0 -27
  393. package/dist/tools/tools/describe.js +0 -35
  394. package/dist/tools/tools/describe.js.map +0 -1
  395. package/dist/tools/tools/group-list.d.ts +0 -16
  396. package/dist/tools/tools/group-list.js +0 -38
  397. package/dist/tools/tools/group-list.js.map +0 -1
  398. package/dist/tools/tools/group.d.ts +0 -13
  399. package/dist/tools/tools/group.js +0 -34
  400. package/dist/tools/tools/group.js.map +0 -1
  401. package/dist/tools/tools/pagination.d.ts +0 -17
  402. package/dist/tools/tools/pagination.js +0 -28
  403. package/dist/tools/tools/pagination.js.map +0 -1
  404. package/dist/tools/tools/search.d.ts +0 -15
  405. package/dist/tools/tools/search.js +0 -42
  406. package/dist/tools/tools/search.js.map +0 -1
  407. package/unitypkg/Editor/Tools/diagnose/preflight.cs +0 -269
  408. package/unitypkg/Editor/Tools/editor/console.cs +0 -26
  409. package/unitypkg/Editor/Tools/extension/status.cs +0 -87
  410. package/unitypkg/Editor/Tools/go/inspect.cs +0 -49
  411. package/unitypkg/Editor/Tools/graphics/pipeline-quality.cs +0 -24
  412. package/unitypkg/Editor/Tools/graphics/probe-positions.cs +0 -58
  413. package/unitypkg/Editor/Tools/graphics/settings.cs +0 -104
  414. package/unitypkg/Editor/Tools/graphics/stats-counters.cs +0 -28
  415. package/unitypkg/Editor/Tools/graphics/stats-memory.cs +0 -21
  416. package/unitypkg/Editor/Tools/instances/list.cs +0 -71
  417. package/unitypkg/Editor/Tools/physics/raycast-all.cs +0 -67
  418. package/unitypkg/Editor/Tools/scene/build-settings.cs +0 -69
  419. package/unitypkg/Editor/Tools/scene/data.cs +0 -125
  420. package/unitypkg/Editor/Tools/tests/list.cs +0 -98
@@ -1,12 +1,14 @@
1
1
  import "./asset/refresh.js";
2
+ import "./asset/refresh-status.js";
3
+ import "./build/player-status.js";
2
4
  import "./build/run.js";
3
5
  import "./code/exec.js";
4
- import "./diagnose/capabilities.js";
5
6
  import "./docs/get.js";
6
7
  import "./docs/search.js";
7
8
  import "./editor/compile.js";
8
9
  import "./editor/dialog/click.js";
9
10
  import "./editor/dialogs.js";
11
+ import "./editor/play-mode-status.js";
10
12
  import "./editor/refresh.js";
11
13
  import "./editor/state.js";
12
14
  import "./navmesh/bake.js";
@@ -19,20 +21,16 @@ import "./occlusion/bake-status.js";
19
21
  import "./package/bridge-remove.js";
20
22
  import "./package/deploy.js";
21
23
  import "./package/embed.js";
22
- import "./package/info.js";
23
24
  import "./package/install.js";
24
- import "./package/list.js";
25
+ import "./package/install-status.js";
25
26
  import "./package/registry-clear.js";
26
- import "./package/registry-get.js";
27
27
  import "./package/registry-set.js";
28
28
  import "./package/remove.js";
29
+ import "./package/remove-status.js";
29
30
  import "./package/resolve.js";
30
31
  import "./package/restore.js";
31
32
  import "./package/scoped-registry-add.js";
32
- import "./package/scoped-registry-list.js";
33
33
  import "./package/scoped-registry-remove.js";
34
- import "./package/search.js";
35
- import "./package/status.js";
36
34
  import "./reflect/member.js";
37
35
  import "./reflect/search.js";
38
36
  import "./reflect/type.js";
@@ -46,8 +44,5 @@ import "./runtime/time-scale/set.js";
46
44
  import "./runtime/ui/capture-element.js";
47
45
  import "./test/cancel.js";
48
46
  import "./test/run.js";
49
- import "./tools/describe.js";
50
- import "./tools/group.js";
51
- import "./tools/group-list.js";
52
- import "./tools/search.js";
47
+ import "./test/run-status.js";
53
48
  import "./.generated-schemas.js";
@@ -1,13 +1,15 @@
1
1
  // Generated by scripts/gen-ts-registries.mjs. Do not edit.
2
2
  import "./asset/refresh.js";
3
+ import "./asset/refresh-status.js";
4
+ import "./build/player-status.js";
3
5
  import "./build/run.js";
4
6
  import "./code/exec.js";
5
- import "./diagnose/capabilities.js";
6
7
  import "./docs/get.js";
7
8
  import "./docs/search.js";
8
9
  import "./editor/compile.js";
9
10
  import "./editor/dialog/click.js";
10
11
  import "./editor/dialogs.js";
12
+ import "./editor/play-mode-status.js";
11
13
  import "./editor/refresh.js";
12
14
  import "./editor/state.js";
13
15
  import "./navmesh/bake.js";
@@ -20,20 +22,16 @@ import "./occlusion/bake-status.js";
20
22
  import "./package/bridge-remove.js";
21
23
  import "./package/deploy.js";
22
24
  import "./package/embed.js";
23
- import "./package/info.js";
24
25
  import "./package/install.js";
25
- import "./package/list.js";
26
+ import "./package/install-status.js";
26
27
  import "./package/registry-clear.js";
27
- import "./package/registry-get.js";
28
28
  import "./package/registry-set.js";
29
29
  import "./package/remove.js";
30
+ import "./package/remove-status.js";
30
31
  import "./package/resolve.js";
31
32
  import "./package/restore.js";
32
33
  import "./package/scoped-registry-add.js";
33
- import "./package/scoped-registry-list.js";
34
34
  import "./package/scoped-registry-remove.js";
35
- import "./package/search.js";
36
- import "./package/status.js";
37
35
  import "./reflect/member.js";
38
36
  import "./reflect/search.js";
39
37
  import "./reflect/type.js";
@@ -47,9 +45,6 @@ import "./runtime/time-scale/set.js";
47
45
  import "./runtime/ui/capture-element.js";
48
46
  import "./test/cancel.js";
49
47
  import "./test/run.js";
50
- import "./tools/describe.js";
51
- import "./tools/group.js";
52
- import "./tools/group-list.js";
53
- import "./tools/search.js";
48
+ import "./test/run-status.js";
54
49
  import "./.generated-schemas.js";
55
50
  //# sourceMappingURL=.generated-registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":".generated-registry.js","sourceRoot":"","sources":["../../src/tools/.generated-registry.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,4BAA4B,CAAC;AACpC,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,0BAA0B,CAAC;AAClC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,wBAAwB,CAAC;AAChC,OAAO,4BAA4B,CAAC;AACpC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,iCAAiC,CAAC;AACzC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC"}
1
+ {"version":3,"file":".generated-registry.js","sourceRoot":"","sources":["../../src/tools/.generated-registry.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,oBAAoB,CAAC;AAC5B,OAAO,2BAA2B,CAAC;AACnC,OAAO,0BAA0B,CAAC;AAClC,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,0BAA0B,CAAC;AAClC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,8BAA8B,CAAC;AACtC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,4BAA4B,CAAC;AACpC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,wBAAwB,CAAC;AAChC,OAAO,4BAA4B,CAAC;AACpC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,iCAAiC,CAAC;AACzC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC"}
@@ -2,40 +2,38 @@
2
2
  // 构建期从真实泛型参数生成严格 JSON Schema。禁止手改。
3
3
  import { injectToolSchema } from "./define.js";
4
4
  injectToolSchema("asset.refresh", { "type": "object", "properties": { "assetPath": { "type": "string" }, "forceUpdate": { "type": "boolean", "enum": [false, true] }, "importRecursive": { "type": "boolean", "enum": [false, true] }, "path": { "type": "string" }, "target": { "type": "string" } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "options": { "type": "string" }, "path": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "sideEffects": { "type": "string" }, "type": { "type": "string", "const": "asset.import" } }, "required": ["path", "type"], "additionalProperties": false } }, "refreshed": { "type": "boolean" } }, "required": ["options", "path", "plannedEffects", "refreshed"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "options": { "type": "string" }, "path": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "sideEffects": { "type": "string" }, "type": { "type": "string", "const": "asset.import" } }, "required": ["path", "type"], "additionalProperties": false } } }, "required": ["dryRun", "options", "path", "plannedEffects"], "additionalProperties": false }] });
5
+ injectToolSchema("asset.refresh.status", { "type": "object", "properties": { "requestId": { "type": "string" } }, "required": ["requestId"], "additionalProperties": false }, { "type": "object", "properties": { "phase": { "type": "string" }, "requestId": { "type": "string" }, "state": { "type": "string", "enum": ["running", "completed"] }, "terminalEnvelope": { "oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "number" }, { "type": "boolean", "const": false }, { "type": "boolean", "const": true }, { "type": "array", "items": { "x-unityCliAnyJson": true } }, { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }] } }, "required": ["requestId", "state"], "additionalProperties": false });
6
+ injectToolSchema("build.player.status", { "type": "object", "properties": { "requestId": { "type": "string" } }, "required": ["requestId"], "additionalProperties": false }, { "type": "object", "properties": { "phase": { "type": "string" }, "requestId": { "type": "string" }, "state": { "type": "string", "enum": ["running", "completed"] }, "terminalEnvelope": { "oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "number" }, { "type": "boolean", "const": false }, { "type": "boolean", "const": true }, { "type": "array", "items": { "x-unityCliAnyJson": true } }, { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }] } }, "required": ["requestId", "state"], "additionalProperties": false });
5
7
  injectToolSchema("build.run", { "type": "object", "properties": { "options": { "type": "array", "items": { "type": "string" } }, "output": { "type": "string" }, "target": { "type": "string", "enum": ["StandaloneWindows64", "StandaloneWindows", "StandaloneOSX", "StandaloneLinux64", "WebGL", "iOS", "Android"] }, "targets": { "type": "array", "items": { "type": "string", "enum": ["StandaloneWindows64", "StandaloneWindows", "StandaloneOSX", "StandaloneLinux64", "WebGL", "iOS", "Android"] } } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "targets": { "type": "array", "items": { "type": "object", "properties": { "artifact": { "type": "object", "properties": { "exists": { "type": "boolean" }, "fileCount": { "type": "number" }, "hash": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "outputPath": { "type": "string" }, "size": { "type": "number" }, "treeHash": { "oneOf": [{ "type": "null" }, { "type": "string" }] } }, "required": ["exists", "fileCount", "hash", "outputPath", "size", "treeHash"], "additionalProperties": false }, "durationMs": { "type": "number" }, "finishedAt": { "type": "string" }, "messages": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "type": { "type": "string" } }, "required": ["message", "type"], "additionalProperties": false } }, "outputPath": { "type": "string" }, "result": { "type": "string", "enum": ["Succeeded", "Failed", "Cancelled", "Unknown"] }, "startedAt": { "type": "string" }, "target": { "type": "string", "enum": ["StandaloneWindows64", "StandaloneWindows", "StandaloneOSX", "StandaloneLinux64", "WebGL", "iOS", "Android"] }, "totalErrors": { "type": "number" }, "totalSize": { "type": "number" }, "totalWarnings": { "type": "number" } }, "required": ["artifact", "durationMs", "finishedAt", "messages", "outputPath", "result", "startedAt", "target", "totalErrors", "totalSize", "totalWarnings"], "additionalProperties": false } } }, "required": ["targets"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "outputPath": { "type": "string" }, "target": { "type": "string", "enum": ["StandaloneWindows64", "StandaloneWindows", "StandaloneOSX", "StandaloneLinux64", "WebGL", "iOS", "Android"] }, "type": { "type": "string", "const": "build-player" } }, "required": ["outputPath", "target", "type"], "additionalProperties": false } } }, "required": ["dryRun", "plannedEffects"], "additionalProperties": false }] });
6
8
  injectToolSchema("code.exec", { "type": "object", "properties": { "args": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "code": { "type": "string" }, "completionProbe": { "type": "object", "properties": { "assertions": { "type": "array", "items": { "type": "object", "properties": { "after": { "x-unityCliAnyJson": true }, "before": { "x-unityCliAnyJson": true }, "operator": { "type": "string", "enum": ["equals", "notEquals", "approx", "exists", "lengthEquals", "contains"] }, "path": { "type": "string" }, "tolerance": { "type": "number" } }, "required": ["after", "before", "operator", "path"], "additionalProperties": false } }, "input": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "readTool": { "type": "string", "enum": ["scene.gameobject", "scene.gameobject.component"] } }, "required": ["assertions", "input", "readTool"], "additionalProperties": false }, "define": { "type": "array", "items": { "type": "string" } }, "file": { "type": "string" }, "refs": { "type": "array", "items": { "type": "string" } }, "stdin": { "type": "boolean", "enum": [false, true] } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "compile": { "type": "object", "properties": { "diagnostics": { "type": "array", "items": { "type": "object", "properties": { "column": { "type": "number" }, "file": { "type": "string" }, "id": { "type": "string" }, "line": { "type": "number" }, "message": { "type": "string" }, "severity": { "type": "string" }, "span": { "x-unityCliAnyJson": true } }, "required": ["column", "file", "id", "line", "message", "severity", "span"], "additionalProperties": false } } }, "required": ["diagnostics"], "additionalProperties": false }, "completion": { "oneOf": [{ "type": "null" }, { "type": "object", "properties": { "assertions": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "value": { "x-unityCliAnyJson": true } }, "required": ["path", "value"], "additionalProperties": false } } }, "required": ["assertions"], "additionalProperties": false }] }, "runtime": { "type": "object", "properties": { "returnValue": { "x-unityCliAnyJson": true }, "stderr": { "type": "string" }, "stderrTruncated": { "type": "boolean" }, "stdout": { "type": "string" }, "stdoutTruncated": { "type": "boolean" } }, "required": ["returnValue", "stderr", "stderrTruncated", "stdout", "stdoutTruncated"], "additionalProperties": false } }, "required": ["compile", "completion", "runtime"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "sideEffects": { "type": "string" }, "type": { "type": "string", "const": "code.exec" } }, "required": ["sideEffects", "type"], "additionalProperties": false } }, "preview": { "type": "object", "properties": { "args": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "sourceKind": { "type": "string" }, "sourcePath": { "type": "string" }, "sourceSha256": { "type": "string" }, "sourceSizeBytes": { "type": "number" }, "timeoutMs": { "type": "number" } }, "required": ["args", "sourceKind", "sourceSha256", "sourceSizeBytes", "timeoutMs"], "additionalProperties": false } }, "required": ["dryRun", "plannedEffects", "preview"], "additionalProperties": false }] });
7
- injectToolSchema("diagnose.capabilities", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "catalog": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "extensions": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "runtime": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["catalog", "extensions"], "additionalProperties": false });
8
9
  injectToolSchema("docs.get", { "type": "object", "properties": { "api": { "type": "string" }, "docsDir": { "type": "string" }, "format": { "type": "string" }, "offlineOnly": { "type": "boolean", "enum": [false, true] }, "onlineFallback": { "type": "boolean", "enum": [false, true] }, "unityVersion": { "type": "string" } }, "required": ["api"], "additionalProperties": false }, { "type": "object", "properties": { "api": { "type": "string" }, "diagnostics": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "doc": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "format": { "type": "string" }, "mode": { "type": "string" }, "requiresUnity": { "type": "boolean" }, "source": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "text": { "type": "string" }, "unityVersion": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["api", "doc", "format", "mode", "requiresUnity", "source", "unityVersion"], "additionalProperties": false });
9
10
  injectToolSchema("docs.search", { "type": "object", "properties": { "cursor": { "type": "string" }, "docsDir": { "type": "string" }, "format": { "type": "string" }, "offlineOnly": { "type": "boolean", "enum": [false, true] }, "onlineFallback": { "type": "boolean", "enum": [false, true] }, "pageSize": { "type": "number" }, "query": { "type": "string" }, "unityVersion": { "type": "string" } }, "required": ["query"], "additionalProperties": false }, { "type": "object", "properties": { "diagnostics": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "format": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "mode": { "type": "string" }, "pageInfo": { "type": "object", "properties": { "cursor": { "type": "string" }, "nextCursor": { "type": "string" }, "pageSize": { "type": "number" }, "total": { "type": "number" } }, "required": ["cursor", "pageSize", "total"], "additionalProperties": false }, "query": { "type": "string" }, "requiresUnity": { "type": "boolean" }, "source": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "text": { "type": "string" }, "unityVersion": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["format", "items", "mode", "pageInfo", "query", "requiresUnity", "source", "unityVersion"], "additionalProperties": false });
10
11
  injectToolSchema("editor.compile", { "type": "object", "properties": { "forceUpdate": { "type": "boolean", "enum": [false, true] }, "importRecursive": { "type": "boolean", "enum": [false, true] }, "includeWarnings": { "type": "boolean", "enum": [false, true] }, "path": { "type": "string", "minLength": 1 }, "refresh": { "type": "boolean", "enum": [false, true] } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "compile": { "type": "object", "properties": { "assemblyCount": { "type": "number" }, "completed": { "type": "boolean" }, "durationMs": { "type": "number" }, "errorCount": { "type": "number" }, "finishedAt": { "type": "string" }, "path": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "refresh": { "type": "boolean" }, "startedAt": { "type": "string" }, "status": { "type": "string", "enum": ["clean", "warnings"] }, "warningCount": { "type": "number" } }, "required": ["assemblyCount", "completed", "durationMs", "errorCount", "finishedAt", "path", "refresh", "startedAt", "status", "warningCount"], "additionalProperties": false }, "diagnostics": { "type": "array", "items": { "type": "object", "properties": { "assembly": { "type": "string" }, "code": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "column": { "type": "number" }, "file": { "type": "string" }, "line": { "type": "number" }, "message": { "type": "string" }, "severity": { "type": "string", "enum": ["error", "warning", "info"] } }, "required": ["assembly", "code", "column", "file", "line", "message", "severity"], "additionalProperties": false } }, "editorState": { "type": "object", "properties": { "compile": { "type": "object", "properties": { "known": { "type": "boolean", "const": true }, "value": { "type": "boolean", "const": false } }, "required": ["known", "value"], "additionalProperties": false }, "import": { "type": "object", "properties": { "known": { "type": "boolean", "const": true }, "value": { "type": "boolean", "const": false } }, "required": ["known", "value"], "additionalProperties": false }, "playMode": { "type": "object", "properties": { "known": { "type": "boolean", "const": true }, "value": { "type": "string", "enum": ["play", "edit"] } }, "required": ["known", "value"], "additionalProperties": false }, "status": { "type": "string", "const": "ready" } }, "required": ["compile", "import", "playMode", "status"], "additionalProperties": false }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "type": { "type": "string", "enum": ["asset-refresh", "asset-import", "script-compile", "domain-reload"] } }, "required": ["type"], "additionalProperties": false } } }, "required": ["compile", "diagnostics", "editorState", "plannedEffects"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "type": { "type": "string", "enum": ["asset-refresh", "asset-import", "script-compile", "domain-reload"] } }, "required": ["type"], "additionalProperties": false } } }, "required": ["dryRun", "plannedEffects"], "additionalProperties": false }] });
11
12
  injectToolSchema("editor.dialog.click", { "type": "object", "properties": { "button": { "type": "string" }, "dialogId": { "type": "string" } }, "required": ["button", "dialogId"], "additionalProperties": false }, { "type": "object", "properties": { "button": { "type": "string" }, "clicked": { "type": "boolean", "const": true }, "dialogId": { "type": "string" }, "title": { "type": "string" } }, "required": ["button", "clicked", "dialogId", "title"], "additionalProperties": false });
12
13
  injectToolSchema("editor.dialogs", { "type": "object", "properties": { "dialogId": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "dialogs": { "type": "array", "items": { "type": "object", "properties": { "buttons": { "type": "array", "items": { "type": "string" } }, "dialogId": { "type": "string" }, "message": { "type": "string" }, "modal": { "type": "boolean", "const": true }, "title": { "type": "string" } }, "required": ["buttons", "dialogId", "message", "modal", "title"], "additionalProperties": false } } }, "required": ["dialogs"], "additionalProperties": false });
13
- injectToolSchema("editor.refresh", { "type": "object", "properties": { "compile": { "type": "boolean", "enum": [false, true] } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "changed": { "type": "boolean" }, "compilationTriggered": { "type": "boolean" }, "dependencyVersion": { "type": "string" }, "editorState": { "type": "object", "properties": { "compile": { "type": "boolean", "const": false }, "import": { "type": "boolean", "const": false }, "status": { "type": "string", "const": "ready" } }, "required": ["compile", "import", "status"], "additionalProperties": false }, "sourceFileCount": { "type": "number" }, "sourceFingerprint": { "type": "string" } }, "required": ["changed", "compilationTriggered", "dependencyVersion", "editorState", "sourceFileCount", "sourceFingerprint"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "plannedEffects": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "asset-refresh" } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "script-compile" } }, "required": ["type"], "additionalProperties": false }] } } }, "required": ["dryRun", "plannedEffects"], "additionalProperties": false }] });
14
+ injectToolSchema("editor.play-mode.status", { "type": "object", "properties": { "requestId": { "type": "string" } }, "required": ["requestId"], "additionalProperties": false }, { "type": "object", "properties": { "phase": { "type": "string" }, "requestId": { "type": "string" }, "state": { "type": "string", "enum": ["running", "completed"] }, "terminalEnvelope": { "oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "number" }, { "type": "boolean", "const": false }, { "type": "boolean", "const": true }, { "type": "array", "items": { "x-unityCliAnyJson": true } }, { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }] } }, "required": ["requestId", "state"], "additionalProperties": false });
15
+ injectToolSchema("editor.refresh", { "type": "object", "properties": { "compile": { "type": "boolean", "enum": [false, true] } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "changed": { "type": "boolean" }, "compilationTriggered": { "type": "boolean" }, "editorState": { "type": "object", "properties": { "compile": { "type": "boolean", "const": false }, "import": { "type": "boolean", "const": false }, "status": { "type": "string", "const": "ready" } }, "required": ["compile", "import", "status"], "additionalProperties": false }, "generation": { "type": "object", "properties": { "dependencyAfter": { "type": "number" }, "dependencyBefore": { "type": "number" }, "processedAfter": { "type": "number" }, "processedBefore": { "type": "number" } }, "required": ["dependencyAfter", "dependencyBefore", "processedAfter", "processedBefore"], "additionalProperties": false }, "importObserved": { "type": "boolean" } }, "required": ["changed", "compilationTriggered", "editorState", "generation", "importObserved"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "plannedEffects": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "asset-refresh" } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "script-compile" } }, "required": ["type"], "additionalProperties": false }] } } }, "required": ["dryRun", "plannedEffects"], "additionalProperties": false }] });
14
16
  injectToolSchema("editor.state", { "type": "object", "properties": {}, "additionalProperties": false }, { "$defs": { "blocker": { "additionalProperties": false, "properties": { "buttons": { "items": { "type": "string" }, "type": "array" }, "confidence": { "const": "exact" }, "dialogId": { "minLength": 1, "type": "string" }, "message": { "type": "string" }, "requiresUserAction": { "const": true }, "source": { "const": "windows-ui" }, "title": { "type": "string" }, "type": { "const": "dialog" } }, "required": ["type", "dialogId", "title", "message", "buttons", "requiresUserAction", "source", "confidence"], "type": "object" }, "observedField": { "additionalProperties": false, "properties": { "known": { "type": "boolean" }, "value": { "x-unityCliAnyJson": true } }, "required": ["known"], "type": "object" }, "progress": { "additionalProperties": false, "properties": { "canWait": { "type": "boolean" }, "kind": { "minLength": 1, "type": "string" }, "source": { "enum": ["unity", "registry"] }, "title": { "type": "string" }, "value": { "maximum": 1, "minimum": 0, "type": ["number", "null"] } }, "required": ["kind", "title", "canWait", "source"], "type": "object" } }, "$id": "https://unitycli.local/contracts/stable-session/editor-state.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "blockers": { "items": { "$ref": "#/$defs/blocker" }, "type": "array" }, "identity": { "additionalProperties": false, "properties": { "canonicalProjectPath": { "type": "string" }, "displayProjectPath": { "type": "string" }, "instanceId": { "type": "string" } }, "required": ["instanceId", "canonicalProjectPath", "displayProjectPath"], "type": "object" }, "observation": { "additionalProperties": false, "properties": { "freshness": { "enum": ["live", "fresh", "stale", "unknown"] } }, "required": ["freshness"], "type": "object" }, "progress": { "items": { "$ref": "#/$defs/progress" }, "type": "array" }, "session": { "additionalProperties": false, "properties": { "editorSessionId": { "type": ["string", "null"] }, "known": { "type": "boolean" } }, "required": ["known", "editorSessionId"], "type": "object" }, "state": { "additionalProperties": false, "properties": { "activeScene": { "$ref": "#/$defs/observedField" }, "build": { "$ref": "#/$defs/observedField" }, "compile": { "$ref": "#/$defs/observedField" }, "import": { "$ref": "#/$defs/observedField" }, "playMode": { "$ref": "#/$defs/observedField" }, "prefabStage": { "$ref": "#/$defs/observedField" }, "runtime": { "$ref": "#/$defs/observedField" } }, "required": ["compile", "import", "build", "playMode", "prefabStage", "activeScene", "runtime"], "type": "object" }, "status": { "enum": ["ready", "transitioning", "blocked", "unresponsive", "unverifiable", "offline", "conflict"] } }, "required": ["identity", "session", "status", "state", "progress", "blockers", "observation"], "title": "editor.state public observation", "type": "object" });
15
17
  injectToolSchema("navmesh.bake", { "type": "object", "properties": {}, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "kind": { "type": "string", "enum": ["legacy", "surfaces"] }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "target": { "type": "string", "enum": ["open-scenes", "all-active-surfaces"] }, "targetCount": { "type": "number" }, "type": { "type": "string", "enum": ["navmesh.bake", "navmesh.surface.bake"] } }, "required": ["target", "targetCount", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "items": { "type": "object", "properties": { "dirty": { "type": "boolean", "const": false }, "guid": { "type": "string" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "sizeBytes": { "type": "number" } }, "required": ["dirty", "guid", "path", "sha256", "sizeBytes"], "additionalProperties": false } }, "targetCount": { "type": "number" }, "targets": { "type": "array", "items": { "type": "object", "properties": { "beforeDataHash": { "type": "string" }, "beforeDataIdentity": { "type": "string" }, "globalId": { "type": "string" }, "name": { "type": "string" }, "sceneGuid": { "type": "string" }, "scenePath": { "type": "string" } }, "required": ["scenePath"], "additionalProperties": false } }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["dryRun", "kind", "plannedEffects", "scenes", "targetCount", "targets", "topology"], "additionalProperties": false }, { "type": "object", "properties": { "durationMs": { "type": "number" }, "finishedAt": { "type": "string" }, "kind": { "type": "string", "enum": ["legacy", "surfaces"] }, "operationId": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "target": { "type": "string", "enum": ["open-scenes", "all-active-surfaces"] }, "targetCount": { "type": "number" }, "type": { "type": "string", "enum": ["navmesh.bake", "navmesh.surface.bake"] } }, "required": ["target", "targetCount", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "items": { "type": "object", "properties": { "dirty": { "type": "boolean", "const": false }, "guid": { "type": "string" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "sizeBytes": { "type": "number" } }, "required": ["dirty", "guid", "path", "sha256", "sizeBytes"], "additionalProperties": false } }, "startedAt": { "type": "string" }, "status": { "type": "string", "const": "completed" }, "surfaces": { "type": "array", "items": { "type": "object", "properties": { "dataGuid": { "type": "string" }, "dataHash": { "type": "string" }, "dataIdentity": { "type": "string" }, "dataLocalId": { "type": "string" }, "dataPath": { "type": "string" }, "dataSizeBytes": { "type": "number" }, "globalId": { "type": "string" }, "name": { "type": "string" }, "sceneDirty": { "type": "boolean" }, "scenePath": { "type": "string" } }, "required": ["dataGuid", "dataHash", "dataIdentity", "dataLocalId", "dataPath", "dataSizeBytes", "globalId", "name", "sceneDirty", "scenePath"], "additionalProperties": false } }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["durationMs", "finishedAt", "kind", "operationId", "plannedEffects", "scenes", "startedAt", "status", "surfaces", "topology"], "additionalProperties": false }] });
16
- injectToolSchema("navmesh.bake-cancel", { "type": "object", "properties": { "operationId": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "cancelled": { "type": "boolean" }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "status": { "type": "object", "properties": { "active": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "kind": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "legacy" }, { "type": "string", "const": "surfaces" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["idle", "running", "completed", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["active", "durationMs", "finishedAt", "kind", "operationId", "phase", "progress", "startedAt", "state", "targetCount", "topology"], "additionalProperties": false } }, "required": ["cancelled", "operationId", "status"], "additionalProperties": false });
17
- injectToolSchema("navmesh.bake-status", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "active": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "kind": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "legacy" }, { "type": "string", "const": "surfaces" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["idle", "running", "completed", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["active", "durationMs", "finishedAt", "kind", "operationId", "phase", "progress", "startedAt", "state", "targetCount", "topology"], "additionalProperties": false });
18
+ injectToolSchema("navmesh.bake-cancel", { "type": "object", "properties": { "operationId": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "cancelled": { "type": "boolean" }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "status": { "type": "object", "properties": { "active": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "kind": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "legacy" }, { "type": "string", "const": "surfaces" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["running", "completed", "idle", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["active", "durationMs", "finishedAt", "kind", "operationId", "phase", "progress", "startedAt", "state", "targetCount", "topology"], "additionalProperties": false } }, "required": ["cancelled", "operationId", "status"], "additionalProperties": false });
19
+ injectToolSchema("navmesh.bake-status", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "active": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "kind": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "legacy" }, { "type": "string", "const": "surfaces" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["running", "completed", "idle", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["active", "durationMs", "finishedAt", "kind", "operationId", "phase", "progress", "startedAt", "state", "targetCount", "topology"], "additionalProperties": false });
18
20
  injectToolSchema("navmesh.surface.bake", { "type": "object", "properties": {}, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "dryRun": { "type": "boolean", "const": true }, "kind": { "type": "string", "enum": ["legacy", "surfaces"] }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "target": { "type": "string", "enum": ["open-scenes", "all-active-surfaces"] }, "targetCount": { "type": "number" }, "type": { "type": "string", "enum": ["navmesh.bake", "navmesh.surface.bake"] } }, "required": ["target", "targetCount", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "items": { "type": "object", "properties": { "dirty": { "type": "boolean", "const": false }, "guid": { "type": "string" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "sizeBytes": { "type": "number" } }, "required": ["dirty", "guid", "path", "sha256", "sizeBytes"], "additionalProperties": false } }, "targetCount": { "type": "number" }, "targets": { "type": "array", "items": { "type": "object", "properties": { "beforeDataHash": { "type": "string" }, "beforeDataIdentity": { "type": "string" }, "globalId": { "type": "string" }, "name": { "type": "string" }, "sceneGuid": { "type": "string" }, "scenePath": { "type": "string" } }, "required": ["scenePath"], "additionalProperties": false } }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["dryRun", "kind", "plannedEffects", "scenes", "targetCount", "targets", "topology"], "additionalProperties": false }, { "type": "object", "properties": { "durationMs": { "type": "number" }, "finishedAt": { "type": "string" }, "kind": { "type": "string", "enum": ["legacy", "surfaces"] }, "operationId": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "target": { "type": "string", "enum": ["open-scenes", "all-active-surfaces"] }, "targetCount": { "type": "number" }, "type": { "type": "string", "enum": ["navmesh.bake", "navmesh.surface.bake"] } }, "required": ["target", "targetCount", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "items": { "type": "object", "properties": { "dirty": { "type": "boolean", "const": false }, "guid": { "type": "string" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "sizeBytes": { "type": "number" } }, "required": ["dirty", "guid", "path", "sha256", "sizeBytes"], "additionalProperties": false } }, "startedAt": { "type": "string" }, "status": { "type": "string", "const": "completed" }, "surfaces": { "type": "array", "items": { "type": "object", "properties": { "dataGuid": { "type": "string" }, "dataHash": { "type": "string" }, "dataIdentity": { "type": "string" }, "dataLocalId": { "type": "string" }, "dataPath": { "type": "string" }, "dataSizeBytes": { "type": "number" }, "globalId": { "type": "string" }, "name": { "type": "string" }, "sceneDirty": { "type": "boolean" }, "scenePath": { "type": "string" } }, "required": ["dataGuid", "dataHash", "dataIdentity", "dataLocalId", "dataPath", "dataSizeBytes", "globalId", "name", "sceneDirty", "scenePath"], "additionalProperties": false } }, "topology": { "type": "object", "properties": { "indexCount": { "type": "number" }, "sha256": { "type": "string" }, "vertexCount": { "type": "number" } }, "required": ["indexCount", "sha256", "vertexCount"], "additionalProperties": false } }, "required": ["durationMs", "finishedAt", "kind", "operationId", "plannedEffects", "scenes", "startedAt", "status", "surfaces", "topology"], "additionalProperties": false }] });
19
21
  injectToolSchema("occlusion.bake", { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "before": { "type": "object", "properties": { "doesSceneHaveManualPortals": { "type": "boolean" }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["doesSceneHaveManualPortals", "settings", "umbraDataSizeBytes"], "additionalProperties": false }, "dryRun": { "type": "boolean", "const": true }, "effectiveSettings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "target": { "type": "string", "const": "open-scenes" }, "targetCount": { "type": "number" }, "type": { "type": "string", "const": "occlusion.bake" } }, "required": ["target", "targetCount", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "items": { "type": "object", "properties": { "dirty": { "type": "boolean", "const": false }, "guid": { "type": "string" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "sizeBytes": { "type": "number" } }, "required": ["dirty", "guid", "path", "sha256", "sizeBytes"], "additionalProperties": false } }, "targetCount": { "type": "number" } }, "required": ["before", "dryRun", "effectiveSettings", "plannedEffects", "scenes", "targetCount"], "additionalProperties": false }, { "type": "object", "properties": { "after": { "type": "object", "properties": { "doesSceneHaveManualPortals": { "type": "boolean" }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["doesSceneHaveManualPortals", "settings", "umbraDataSizeBytes"], "additionalProperties": false }, "before": { "type": "object", "properties": { "doesSceneHaveManualPortals": { "type": "boolean" }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["doesSceneHaveManualPortals", "settings", "umbraDataSizeBytes"], "additionalProperties": false }, "durationMs": { "type": "number" }, "effectiveSettings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "finishedAt": { "type": "string" }, "operationId": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "target": { "type": "string", "const": "open-scenes" }, "targetCount": { "type": "number" }, "type": { "type": "string", "const": "occlusion.bake" } }, "required": ["target", "targetCount", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "items": { "type": "object", "properties": { "dirty": { "type": "boolean", "const": false }, "guid": { "type": "string" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "sizeBytes": { "type": "number" } }, "required": ["dirty", "guid", "path", "sha256", "sizeBytes"], "additionalProperties": false } }, "startedAt": { "type": "string" }, "status": { "type": "string", "const": "completed" } }, "required": ["after", "before", "durationMs", "effectiveSettings", "finishedAt", "operationId", "plannedEffects", "scenes", "startedAt", "status"], "additionalProperties": false }] });
20
- injectToolSchema("occlusion.bake-cancel", { "type": "object", "properties": { "operationId": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "cancelled": { "type": "boolean" }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "status": { "type": "object", "properties": { "active": { "type": "boolean" }, "doesSceneHaveManualPortals": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["idle", "running", "completed", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["active", "doesSceneHaveManualPortals", "durationMs", "finishedAt", "operationId", "phase", "progress", "settings", "startedAt", "state", "targetCount", "umbraDataSizeBytes"], "additionalProperties": false } }, "required": ["cancelled", "operationId", "status"], "additionalProperties": false });
21
- injectToolSchema("occlusion.bake-status", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "active": { "type": "boolean" }, "doesSceneHaveManualPortals": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["idle", "running", "completed", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["active", "doesSceneHaveManualPortals", "durationMs", "finishedAt", "operationId", "phase", "progress", "settings", "startedAt", "state", "targetCount", "umbraDataSizeBytes"], "additionalProperties": false });
22
+ injectToolSchema("occlusion.bake-cancel", { "type": "object", "properties": { "operationId": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "cancelled": { "type": "boolean" }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "status": { "type": "object", "properties": { "active": { "type": "boolean" }, "doesSceneHaveManualPortals": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["running", "completed", "idle", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["active", "doesSceneHaveManualPortals", "durationMs", "finishedAt", "operationId", "phase", "progress", "settings", "startedAt", "state", "targetCount", "umbraDataSizeBytes"], "additionalProperties": false } }, "required": ["cancelled", "operationId", "status"], "additionalProperties": false });
23
+ injectToolSchema("occlusion.bake-status", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "active": { "type": "boolean" }, "doesSceneHaveManualPortals": { "type": "boolean" }, "durationMs": { "type": "number" }, "finishedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "operationId": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "phase": { "oneOf": [{ "type": "null" }, { "type": "string", "const": "queued" }, { "type": "string", "const": "starting" }, { "type": "string", "const": "baking" }, { "type": "string", "const": "terminal" }, { "type": "string", "const": "unknown" }] }, "progress": { "oneOf": [{ "type": "null" }, { "type": "number" }] }, "settings": { "type": "object", "properties": { "backfaceThreshold": { "type": "number" }, "smallestHole": { "type": "number" }, "smallestOccluder": { "type": "number" } }, "required": ["backfaceThreshold", "smallestHole", "smallestOccluder"], "additionalProperties": false }, "startedAt": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "state": { "type": "string", "enum": ["running", "completed", "idle", "cancelled", "failed"] }, "targetCount": { "type": "number" }, "umbraDataSizeBytes": { "type": "number" } }, "required": ["active", "doesSceneHaveManualPortals", "durationMs", "finishedAt", "operationId", "phase", "progress", "settings", "startedAt", "state", "targetCount", "umbraDataSizeBytes"], "additionalProperties": false });
22
24
  injectToolSchema("package.bridge-remove", { "type": "object", "properties": { "project": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string", "const": "bridge-remove" }, "bridgePath": { "type": "string" }, "dependencyName": { "type": "string" }, "dryRun": { "type": "boolean" }, "fileManifestPath": { "type": "string" }, "installMetadataPath": { "type": "string" }, "managedFileCount": { "type": "number" }, "manifestPath": { "type": "string" }, "packageVersion": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "bridgePath": { "type": "string" }, "installMetadataPath": { "type": "string" }, "managedFileCount": { "type": "number" }, "package": { "type": "string" }, "previousVersion": { "type": "string" }, "type": { "type": "string" } }, "additionalProperties": false } }, "projectPath": { "type": "string" } }, "required": ["action", "bridgePath", "dependencyName", "dryRun", "fileManifestPath", "installMetadataPath", "managedFileCount", "manifestPath", "packageVersion", "plannedEffects", "projectPath"], "additionalProperties": false });
23
25
  injectToolSchema("package.deploy", { "type": "object", "properties": { "packageName": { "type": "string" }, "source": { "type": "string" } }, "required": ["source"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string" }, "backupCreated": { "type": "boolean" }, "backupPackageVersion": { "type": "string" }, "backupPath": { "type": "string" }, "copiedFileCount": { "type": "number" }, "dryRun": { "type": "boolean" }, "files": { "type": "object", "properties": { "backupHash": { "type": "string" }, "backupPackageVersion": { "type": "string" }, "backupPath": { "type": "string" }, "copiedFileCount": { "type": "number" }, "metadataHash": { "type": "string" }, "metadataPath": { "type": "string" }, "proven": { "type": "boolean", "const": true }, "sourceHash": { "type": "string" }, "targetHash": { "type": "string" }, "targetPath": { "type": "string" } }, "required": ["copiedFileCount", "metadataHash", "metadataPath", "proven", "sourceHash", "targetHash", "targetPath"], "additionalProperties": false }, "manifestPath": { "type": "string" }, "metadataPath": { "type": "string" }, "packageName": { "type": "string" }, "packageVersion": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "fileCount": { "type": "number" }, "from": { "type": "string" }, "package": { "type": "string" }, "packageVersion": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "reason": { "type": "string" }, "targetPath": { "type": "string" }, "to": { "type": "string" }, "type": { "type": "string" } }, "additionalProperties": false } }, "repeatedDeployment": { "type": "boolean" }, "resolve": { "type": "object", "properties": { "lockHash": { "type": "string" }, "manifestHash": { "type": "string" }, "packageCount": { "type": "number" }, "packageSnapshotHash": { "type": "string" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "source", "version"], "additionalProperties": false } }, "status": { "type": "string", "const": "resolved" } }, "required": ["lockHash", "manifestHash", "packageCount", "packageSnapshotHash", "packages", "status"], "additionalProperties": false }, "sourceHash": { "type": "string" }, "sourcePath": { "type": "string" }, "status": { "type": "string" }, "targetPath": { "type": "string" } }, "required": ["action", "backupCreated", "copiedFileCount", "dryRun", "manifestPath", "metadataPath", "packageName", "packageVersion", "plannedEffects", "repeatedDeployment", "sourceHash", "sourcePath", "status", "targetPath"], "additionalProperties": false });
24
26
  injectToolSchema("package.embed", { "type": "object", "properties": { "package": { "type": "string" } }, "required": ["package"], "additionalProperties": false }, { "type": "object", "properties": { "embeddedPath": { "type": "string" }, "packageId": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "type": { "type": "string", "const": "package.embed" } }, "required": ["path", "type"], "additionalProperties": false } } }, "required": ["embeddedPath", "packageId", "plannedEffects"], "additionalProperties": false });
25
- injectToolSchema("package.info", { "type": "object", "properties": { "name": { "type": "string" }, "project": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, { "type": "object", "properties": { "package": { "type": "object", "properties": { "dependencies": { "type": "object", "properties": {}, "additionalProperties": { "type": "string" } }, "hash": { "type": "string" }, "lockedVersion": { "type": "string" }, "name": { "type": "string" }, "requestedVersion": { "type": "string" }, "source": { "type": "string" }, "url": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, "projectPath": { "type": "string" } }, "required": ["package", "projectPath"], "additionalProperties": false });
26
27
  injectToolSchema("package.install", { "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string", "const": "install" }, "dependency": { "type": "object", "properties": { "name": { "type": "string" }, "present": { "type": "boolean", "const": true }, "version": { "type": "string" } }, "required": ["name", "present", "version"], "additionalProperties": false }, "files": { "type": "object", "properties": { "manifestHash": { "type": "string" }, "manifestPath": { "type": "string" }, "proven": { "type": "boolean", "const": true } }, "required": ["manifestHash", "manifestPath", "proven"], "additionalProperties": false }, "manifestHash": { "type": "string" }, "manifestPath": { "type": "string" }, "package": { "type": "string" }, "resolve": { "type": "object", "properties": { "lockHash": { "type": "string" }, "manifestHash": { "type": "string" }, "packageCount": { "type": "number" }, "packageSnapshotHash": { "type": "string" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "source", "version"], "additionalProperties": false } }, "status": { "type": "string", "const": "resolved" } }, "required": ["lockHash", "manifestHash", "packageCount", "packageSnapshotHash", "packages", "status"], "additionalProperties": false } }, "required": ["action", "dependency", "files", "manifestHash", "manifestPath", "package", "resolve"], "additionalProperties": false });
27
- injectToolSchema("package.list", { "type": "object", "properties": { "project": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "lockPath": { "type": "string" }, "manifestPath": { "type": "string" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "dependencies": { "type": "object", "properties": {}, "additionalProperties": { "type": "string" } }, "hash": { "type": "string" }, "lockedVersion": { "type": "string" }, "name": { "type": "string" }, "requestedVersion": { "type": "string" }, "source": { "type": "string" }, "url": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "projectPath": { "type": "string" }, "registry": { "type": "string" }, "scopedRegistries": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "url": { "type": "string" } }, "required": ["name", "scopes", "url"], "additionalProperties": false } } }, "required": ["lockPath", "manifestPath", "packages", "projectPath", "scopedRegistries"], "additionalProperties": false });
28
+ injectToolSchema("package.install.status", { "type": "object", "properties": { "requestId": { "type": "string" } }, "required": ["requestId"], "additionalProperties": false }, { "type": "object", "properties": { "phase": { "type": "string" }, "requestId": { "type": "string" }, "state": { "type": "string", "enum": ["running", "completed"] }, "terminalEnvelope": { "oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "number" }, { "type": "boolean", "const": false }, { "type": "boolean", "const": true }, { "type": "array", "items": { "x-unityCliAnyJson": true } }, { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }] } }, "required": ["requestId", "state"], "additionalProperties": false });
28
29
  injectToolSchema("package.registry.clear", { "type": "object", "properties": { "project": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "enum": [false, true] }, "manifestPath": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "registry": { "type": "string" }, "type": { "type": "string" } }, "required": ["type"], "additionalProperties": false } }, "projectPath": { "type": "string" }, "registryCleared": { "type": "boolean", "enum": [false, true] } }, "required": ["manifestPath", "projectPath"], "additionalProperties": false });
29
- injectToolSchema("package.registry.get", { "type": "object", "properties": { "project": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "manifestPath": { "type": "string" }, "projectPath": { "type": "string" }, "registry": { "type": "string" } }, "required": ["manifestPath", "projectPath"], "additionalProperties": false });
30
30
  injectToolSchema("package.registry.set", { "type": "object", "properties": { "project": { "type": "string" }, "url": { "type": "string" } }, "required": ["url"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "enum": [false, true] }, "manifestPath": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "registry": { "type": "string" }, "type": { "type": "string" } }, "required": ["registry", "type"], "additionalProperties": false } }, "previousRegistry": { "type": "string" }, "projectPath": { "type": "string" }, "registry": { "type": "string" } }, "required": ["manifestPath", "projectPath"], "additionalProperties": false });
31
31
  injectToolSchema("package.remove", { "type": "object", "properties": { "force": { "type": "boolean", "enum": [false, true] }, "name": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, { "oneOf": [{ "type": "object", "properties": { "action": { "type": "string", "const": "remove" }, "dependency": { "type": "object", "properties": { "name": { "type": "string" }, "present": { "type": "boolean", "const": false } }, "required": ["name", "present"], "additionalProperties": false }, "files": { "type": "object", "properties": { "manifestHash": { "type": "string" }, "manifestPath": { "type": "string" }, "proven": { "type": "boolean", "const": true } }, "required": ["manifestHash", "manifestPath", "proven"], "additionalProperties": false }, "manifestHash": { "type": "string" }, "manifestPath": { "type": "string" }, "package": { "type": "string" }, "resolve": { "type": "object", "properties": { "lockHash": { "type": "string" }, "manifestHash": { "type": "string" }, "packageCount": { "type": "number" }, "packageSnapshotHash": { "type": "string" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "source", "version"], "additionalProperties": false } }, "status": { "type": "string", "const": "resolved" } }, "required": ["lockHash", "manifestHash", "packageCount", "packageSnapshotHash", "packages", "status"], "additionalProperties": false } }, "required": ["action", "dependency", "files", "manifestHash", "manifestPath", "package", "resolve"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string", "const": "remove" }, "blocked": { "type": "boolean" }, "dependents": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "requiredVersion": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "dryRun": { "type": "boolean", "const": true }, "forced": { "type": "boolean" }, "package": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "blocked": { "type": "boolean" }, "dependents": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "requiredVersion": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "forced": { "type": "boolean" }, "package": { "type": "string" }, "removedVersion": { "type": "string" }, "type": { "type": "string" } }, "required": ["blocked", "dependents", "forced", "package", "type"], "additionalProperties": false } }, "status": { "type": "string", "enum": ["dry_run", "blocked"] } }, "required": ["action", "blocked", "dependents", "dryRun", "forced", "package", "plannedEffects", "status"], "additionalProperties": false }] });
32
+ injectToolSchema("package.remove.status", { "type": "object", "properties": { "requestId": { "type": "string" } }, "required": ["requestId"], "additionalProperties": false }, { "type": "object", "properties": { "phase": { "type": "string" }, "requestId": { "type": "string" }, "state": { "type": "string", "enum": ["running", "completed"] }, "terminalEnvelope": { "oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "number" }, { "type": "boolean", "const": false }, { "type": "boolean", "const": true }, { "type": "array", "items": { "x-unityCliAnyJson": true } }, { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }] } }, "required": ["requestId", "state"], "additionalProperties": false });
32
33
  injectToolSchema("package.resolve", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "lockHash": { "type": "string" }, "manifestHash": { "type": "string" }, "packageCount": { "type": "number" }, "packageSnapshotHash": { "type": "string" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "source", "version"], "additionalProperties": false } }, "status": { "type": "string", "const": "resolved" } }, "required": ["lockHash", "manifestHash", "packageCount", "packageSnapshotHash", "packages", "status"], "additionalProperties": false });
33
34
  injectToolSchema("package.restore", { "type": "object", "properties": { "packageName": { "type": "string" } }, "required": ["packageName"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string" }, "backupPath": { "type": "string" }, "copiedFileCount": { "type": "number" }, "dryRun": { "type": "boolean" }, "files": { "type": "object", "properties": { "backupPath": { "type": "string" }, "copiedFileCount": { "type": "number" }, "metadataHash": { "type": "string" }, "metadataPath": { "type": "string" }, "proven": { "type": "boolean", "const": true }, "removedDeployedPackage": { "type": "boolean" }, "restoredFromBackup": { "type": "boolean" }, "targetHash": { "type": "string" }, "targetPath": { "type": "string" } }, "required": ["copiedFileCount", "metadataHash", "metadataPath", "proven", "removedDeployedPackage", "restoredFromBackup", "targetPath"], "additionalProperties": false }, "manifestPath": { "type": "string" }, "metadataPath": { "type": "string" }, "packageName": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "fileCount": { "type": "number" }, "from": { "type": "string" }, "package": { "type": "string" }, "reason": { "type": "string" }, "targetPath": { "type": "string" }, "to": { "type": "string" }, "type": { "type": "string" } }, "additionalProperties": false } }, "removedDeployedPackage": { "type": "boolean" }, "resolve": { "type": "object", "properties": { "lockHash": { "type": "string" }, "manifestHash": { "type": "string" }, "packageCount": { "type": "number" }, "packageSnapshotHash": { "type": "string" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "source", "version"], "additionalProperties": false } }, "status": { "type": "string", "const": "resolved" } }, "required": ["lockHash", "manifestHash", "packageCount", "packageSnapshotHash", "packages", "status"], "additionalProperties": false }, "restoredFromBackup": { "type": "boolean" }, "status": { "type": "string" }, "targetPath": { "type": "string" } }, "required": ["action", "copiedFileCount", "dryRun", "manifestPath", "metadataPath", "packageName", "plannedEffects", "removedDeployedPackage", "restoredFromBackup", "status", "targetPath"], "additionalProperties": false });
34
35
  injectToolSchema("package.scoped-registry.add", { "type": "object", "properties": { "name": { "type": "string" }, "project": { "type": "string" }, "scope": { "type": "string" }, "scopes": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "url"], "additionalProperties": false }, { "type": "object", "properties": { "dryRun": { "type": "boolean", "enum": [false, true] }, "manifestPath": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "type": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "scopes", "type", "url"], "additionalProperties": false } }, "projectPath": { "type": "string" }, "registry": { "type": "object", "properties": { "name": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "url": { "type": "string" } }, "required": ["name", "scopes", "url"], "additionalProperties": false } }, "required": ["manifestPath", "projectPath"], "additionalProperties": false });
35
- injectToolSchema("package.scoped-registry.list", { "type": "object", "properties": { "project": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "manifestPath": { "type": "string" }, "projectPath": { "type": "string" }, "scopedRegistries": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "url": { "type": "string" } }, "required": ["name", "scopes", "url"], "additionalProperties": false } } }, "required": ["manifestPath", "projectPath", "scopedRegistries"], "additionalProperties": false });
36
36
  injectToolSchema("package.scoped-registry.remove", { "type": "object", "properties": { "force": { "type": "boolean", "enum": [false, true] }, "name": { "type": "string" }, "project": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, { "type": "object", "properties": { "blocked": { "type": "boolean", "enum": [false, true] }, "dryRun": { "type": "boolean", "enum": [false, true] }, "forced": { "type": "boolean", "enum": [false, true] }, "manifestPath": { "type": "string" }, "matchedPackages": { "type": "array", "items": { "type": "string" } }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "blocked": { "type": "boolean", "enum": [false, true] }, "forced": { "type": "boolean", "enum": [false, true] }, "matchedPackages": { "type": "array", "items": { "type": "string" } }, "name": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "type": { "type": "string" } }, "additionalProperties": false } }, "projectPath": { "type": "string" }, "registryRemoved": { "type": "boolean", "enum": [false, true] }, "removed": { "type": "object", "properties": { "name": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "url": { "type": "string" } }, "required": ["name", "scopes", "url"], "additionalProperties": false } }, "required": ["manifestPath", "projectPath"], "additionalProperties": false });
37
- injectToolSchema("package.search", { "type": "object", "properties": { "project": { "type": "string" }, "query": { "type": "string" }, "registry": { "type": "string" } }, "required": ["query"], "additionalProperties": false }, { "type": "object", "properties": { "packages": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string" }, "name": { "type": "string" }, "version": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "query": { "type": "string" }, "registry": { "type": "string" } }, "required": ["packages", "query", "registry"], "additionalProperties": false });
38
- injectToolSchema("package.status", { "type": "object", "properties": { "project": { "type": "string" } }, "additionalProperties": false }, { "type": "object", "properties": { "lockPath": { "type": "string" }, "manifestPath": { "type": "string" }, "packageCount": { "type": "number" }, "packages": { "type": "array", "items": { "type": "object", "properties": { "lockedVersion": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "name": { "type": "string" }, "requestedVersion": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "resolved": { "type": "boolean" }, "source": { "oneOf": [{ "type": "null" }, { "type": "string" }] } }, "required": ["name", "resolved"], "additionalProperties": false } }, "projectPath": { "type": "string" }, "registry": { "oneOf": [{ "type": "null" }, { "type": "string" }] }, "scopedRegistryCount": { "type": "number" } }, "required": ["lockPath", "manifestPath", "packageCount", "packages", "projectPath", "scopedRegistryCount"], "additionalProperties": false });
39
37
  injectToolSchema("reflect.member", { "type": "object", "properties": { "format": { "type": "string" }, "member": { "type": "string" }, "reflectDir": { "type": "string" }, "unityVersion": { "type": "string" } }, "required": ["member"], "additionalProperties": false }, { "type": "object", "properties": { "assemblies": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "diagnostics": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "format": { "type": "string" }, "member": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "mode": { "type": "string" }, "requiresUnity": { "type": "boolean" }, "source": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "target": { "type": "string" }, "text": { "type": "string" }, "type": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "unityVersion": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["assemblies", "diagnostics", "format", "member", "mode", "requiresUnity", "source", "target", "type", "unityVersion"], "additionalProperties": false });
40
38
  injectToolSchema("reflect.search", { "type": "object", "properties": { "cursor": { "type": "string" }, "format": { "type": "string" }, "pageSize": { "type": "number" }, "query": { "type": "string" }, "reflectDir": { "type": "string" }, "unityVersion": { "type": "string" } }, "required": ["query"], "additionalProperties": false }, { "type": "object", "properties": { "assemblies": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "diagnostics": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "format": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "mode": { "type": "string" }, "pageInfo": { "type": "object", "properties": { "cursor": { "type": "string" }, "nextCursor": { "type": "string" }, "pageSize": { "type": "number" }, "total": { "type": "number" } }, "required": ["cursor", "pageSize", "total"], "additionalProperties": false }, "query": { "type": "string" }, "requiresUnity": { "type": "boolean" }, "source": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "text": { "type": "string" }, "unityVersion": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["assemblies", "diagnostics", "format", "items", "mode", "pageInfo", "query", "requiresUnity", "source", "unityVersion"], "additionalProperties": false });
41
39
  injectToolSchema("reflect.type", { "type": "object", "properties": { "format": { "type": "string" }, "name": { "type": "string" }, "reflectDir": { "type": "string" }, "unityVersion": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, { "type": "object", "properties": { "assemblies": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "diagnostics": { "type": "array", "items": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "format": { "type": "string" }, "mode": { "type": "string" }, "name": { "type": "string" }, "requiresUnity": { "type": "boolean" }, "source": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "text": { "type": "string" }, "type": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "unityVersion": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["assemblies", "diagnostics", "format", "mode", "name", "requiresUnity", "source", "type", "unityVersion"], "additionalProperties": false });
@@ -49,8 +47,5 @@ injectToolSchema("runtime.time-scale.set", { "type": "object", "properties": { "
49
47
  injectToolSchema("runtime.ui.capture-element", { "type": "object", "properties": { "panel": { "type": "string" }, "selector": { "type": "string" } }, "required": ["selector"], "additionalProperties": false }, { "type": "object", "properties": { "artifact": { "type": "object", "properties": { "mimeType": { "type": "string", "const": "image/png" }, "path": { "type": "string" }, "sha256": { "type": "string" }, "size": { "type": "number" } }, "required": ["mimeType", "path", "sha256", "size"], "additionalProperties": false }, "captured": { "type": "boolean" }, "dryRun": { "type": "boolean" }, "element": { "type": "object", "properties": { "height": { "type": "number" }, "name": { "type": "string" }, "type": { "type": "string" }, "width": { "type": "number" } }, "required": ["height", "name", "type", "width"], "additionalProperties": false }, "panel": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "artifactName": { "type": "string", "const": "runtime-element.png" }, "type": { "type": "string", "const": "runtime-element-capture" } }, "required": ["artifactName", "type"], "additionalProperties": false } }, "runtimeSessionId": { "type": "string" }, "selector": { "type": "string" } }, "required": ["captured", "dryRun", "element", "panel", "plannedEffects", "runtimeSessionId", "selector"], "additionalProperties": false });
50
48
  injectToolSchema("test.cancel", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "activeRunIds": { "type": "array", "items": { "type": "string" } }, "cancelled": { "type": "boolean" }, "dryRun": { "type": "boolean" }, "editorSessionId": { "type": "string" }, "plannedEffects": { "type": "array", "items": { "type": "object", "properties": { "rootRequestId": { "type": "string" }, "runId": { "type": "string" }, "type": { "type": "string", "const": "test-run-cancel" } }, "required": ["rootRequestId", "runId", "type"], "additionalProperties": false } }, "platform": { "type": "string", "enum": ["EditMode", "PlayMode"] }, "rootRequestId": { "type": "string" }, "runId": { "type": "string" } }, "required": ["activeRunIds", "cancelled", "dryRun", "editorSessionId", "plannedEffects", "platform", "rootRequestId", "runId"], "additionalProperties": false });
51
49
  injectToolSchema("test.run", { "type": "object", "properties": { "assemblyNames": { "type": "array", "items": { "type": "string" } }, "categoryNames": { "type": "array", "items": { "type": "string" } }, "groupNames": { "type": "array", "items": { "type": "string" } }, "platform": { "type": "string", "enum": ["EditMode", "PlayMode"] }, "testNames": { "type": "array", "items": { "type": "string" } }, "xml": { "type": "boolean", "enum": [false, true] } }, "additionalProperties": false }, { "type": "object", "properties": { "failures": { "type": "array", "items": { "type": "object", "properties": { "duration": { "type": "number" }, "fullName": { "type": "string" }, "message": { "type": "string" }, "stackTrace": { "type": "string" } }, "required": ["duration", "fullName", "message", "stackTrace"], "additionalProperties": false } }, "summary": { "type": "object", "properties": { "duration": { "type": "number" }, "failed": { "type": "number" }, "finishedAt": { "type": "string" }, "inconclusive": { "type": "number" }, "passed": { "type": "number" }, "platform": { "type": "string", "enum": ["EditMode", "PlayMode"] }, "skipped": { "type": "number" }, "startedAt": { "type": "string" }, "status": { "type": "string", "enum": ["failed", "passed"] }, "testCount": { "type": "number" } }, "required": ["duration", "failed", "finishedAt", "inconclusive", "passed", "platform", "skipped", "startedAt", "status", "testCount"], "additionalProperties": false }, "xml": { "type": "object", "properties": { "hash": { "type": "string" }, "kind": { "type": "string", "const": "nunit-xml" }, "path": { "type": "string" }, "size": { "type": "number" } }, "required": ["hash", "kind", "path", "size"], "additionalProperties": false } }, "required": ["failures", "summary"], "additionalProperties": false });
52
- injectToolSchema("tools.describe", { "type": "object", "properties": { "name": { "type": "string" } }, "required": ["name"], "additionalProperties": false }, { "type": "object", "properties": { "available": { "type": "boolean", "enum": [false] }, "description": { "type": "string" }, "destructiveHint": { "type": "boolean" }, "examples": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string" }, "execution": { "type": "object", "properties": { "dryRun": { "type": "boolean", "enum": [false, true] }, "timeoutMs": { "type": "number" } }, "additionalProperties": false }, "input": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } } }, "required": ["description", "input"], "additionalProperties": false } }, "inputSchema": { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }, "name": { "type": "string" }, "playModeSupport": { "type": "string" }, "requiresPackages": { "type": "array", "items": { "type": "string" } }, "sideEffects": { "type": "array", "items": { "type": "string" } }, "supportsDryRun": { "type": "boolean" }, "target": { "type": "string" }, "unavailableReason": { "type": "string" } }, "required": ["description", "destructiveHint", "inputSchema", "name", "playModeSupport", "supportsDryRun", "target"], "additionalProperties": false });
53
- injectToolSchema("tools.group", { "type": "object", "properties": {}, "additionalProperties": false }, { "type": "object", "properties": { "count": { "type": "number" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "summary": { "type": "string" }, "toolCount": { "type": "number" } }, "required": ["name", "summary", "toolCount"], "additionalProperties": false } } }, "required": ["count", "groups"], "additionalProperties": false });
54
- injectToolSchema("tools.group-list", { "type": "object", "properties": { "cursor": { "type": "number" }, "group": { "type": "string" }, "pageSize": { "type": "number" } }, "required": ["group"], "additionalProperties": false }, { "type": "object", "properties": { "pageInfo": { "type": "object", "properties": { "cursor": { "type": "number" }, "nextCursor": { "type": "number" }, "pageSize": { "type": "number" }, "total": { "type": "number" } }, "required": ["cursor", "pageSize", "total"], "additionalProperties": false }, "summary": { "type": "string" }, "tools": { "type": "array", "items": { "type": "object", "properties": { "available": { "type": "boolean", "enum": [false] }, "name": { "type": "string" }, "summary": { "type": "string" } }, "required": ["name", "summary"], "additionalProperties": false } } }, "required": ["pageInfo", "summary", "tools"], "additionalProperties": false });
55
- injectToolSchema("tools.search", { "type": "object", "properties": { "cursor": { "type": "number" }, "keyword": { "type": "string" }, "pageSize": { "type": "number" } }, "required": ["keyword"], "additionalProperties": false }, { "type": "object", "properties": { "pageInfo": { "type": "object", "properties": { "cursor": { "type": "number" }, "nextCursor": { "type": "number" }, "pageSize": { "type": "number" }, "total": { "type": "number" } }, "required": ["cursor", "pageSize", "total"], "additionalProperties": false }, "tools": { "type": "array", "items": { "type": "object", "properties": { "group": { "type": "string" }, "name": { "type": "string" }, "summary": { "type": "string" } }, "required": ["group", "name", "summary"], "additionalProperties": false } } }, "required": ["pageInfo", "tools"], "additionalProperties": false });
50
+ injectToolSchema("test.run.status", { "type": "object", "properties": { "requestId": { "type": "string" } }, "required": ["requestId"], "additionalProperties": false }, { "type": "object", "properties": { "phase": { "type": "string" }, "requestId": { "type": "string" }, "state": { "type": "string", "enum": ["running", "completed"] }, "terminalEnvelope": { "oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "number" }, { "type": "boolean", "const": false }, { "type": "boolean", "const": true }, { "type": "array", "items": { "x-unityCliAnyJson": true } }, { "type": "object", "properties": {}, "additionalProperties": { "x-unityCliAnyJson": true } }] } }, "required": ["requestId", "state"], "additionalProperties": false });
56
51
  //# sourceMappingURL=.generated-schemas.js.map