ue-mcp 1.4.12 → 1.4.13

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 (465) hide show
  1. package/README.md +4 -5
  2. package/dist/bridge/bridge-timeouts.js +16 -0
  3. package/dist/bridge/bridge-timeouts.js.map +1 -1
  4. package/dist/bridge/bridge.d.ts +58 -3
  5. package/dist/bridge/bridge.js +149 -8
  6. package/dist/bridge/bridge.js.map +1 -1
  7. package/dist/cli/cli-commands.js +7 -1
  8. package/dist/cli/cli-commands.js.map +1 -1
  9. package/dist/cli/doctor.d.ts +9 -0
  10. package/dist/cli/doctor.js +63 -0
  11. package/dist/cli/doctor.js.map +1 -1
  12. package/dist/cli/editor-flag.js +5 -1
  13. package/dist/cli/editor-flag.js.map +1 -1
  14. package/dist/cli/extension-cli.d.ts +3 -0
  15. package/dist/cli/extension-cli.js +83 -16
  16. package/dist/cli/extension-cli.js.map +1 -1
  17. package/dist/cli/flow-cli.js +3 -1
  18. package/dist/cli/flow-cli.js.map +1 -1
  19. package/dist/cli/init-core.d.ts +74 -1
  20. package/dist/cli/init-core.js +231 -38
  21. package/dist/cli/init-core.js.map +1 -1
  22. package/dist/cli/init.js +86 -22
  23. package/dist/cli/init.js.map +1 -1
  24. package/dist/cli/login-cli.d.ts +27 -1
  25. package/dist/cli/login-cli.js +130 -17
  26. package/dist/cli/login-cli.js.map +1 -1
  27. package/dist/cli/plugin-cli.js +1 -1
  28. package/dist/cli/plugin-cli.js.map +1 -1
  29. package/dist/cli/tools-cli.d.ts +14 -0
  30. package/dist/cli/tools-cli.js +270 -0
  31. package/dist/cli/tools-cli.js.map +1 -0
  32. package/dist/cli/ui/ansi.d.ts +2 -0
  33. package/dist/cli/ui/ansi.js +8 -0
  34. package/dist/cli/ui/ansi.js.map +1 -1
  35. package/dist/codeintel/config-hierarchy.d.ts +73 -0
  36. package/dist/codeintel/config-hierarchy.js +165 -0
  37. package/dist/codeintel/config-hierarchy.js.map +1 -0
  38. package/dist/config/project.d.ts +12 -4
  39. package/dist/config/project.js.map +1 -1
  40. package/dist/core/archive.d.ts +8 -0
  41. package/dist/core/archive.js +40 -0
  42. package/dist/core/archive.js.map +1 -0
  43. package/dist/core/env.d.ts +4 -0
  44. package/dist/core/env.js +4 -0
  45. package/dist/core/env.js.map +1 -1
  46. package/dist/core/errors.d.ts +9 -1
  47. package/dist/core/errors.js +8 -0
  48. package/dist/core/errors.js.map +1 -1
  49. package/dist/core/png.d.ts +31 -0
  50. package/dist/core/png.js +308 -0
  51. package/dist/core/png.js.map +1 -0
  52. package/dist/core/types.d.ts +31 -0
  53. package/dist/daemon/daemon.js +16 -2
  54. package/dist/daemon/daemon.js.map +1 -1
  55. package/dist/daemon/extension-install.d.ts +14 -0
  56. package/dist/daemon/extension-install.js +25 -29
  57. package/dist/daemon/extension-install.js.map +1 -1
  58. package/dist/daemon/install-names.d.ts +10 -0
  59. package/dist/daemon/install-names.js +39 -0
  60. package/dist/daemon/install-names.js.map +1 -0
  61. package/dist/daemon/tools-routes.d.ts +23 -0
  62. package/dist/daemon/tools-routes.js +46 -0
  63. package/dist/daemon/tools-routes.js.map +1 -0
  64. package/dist/diagram/action.d.ts +25 -0
  65. package/dist/diagram/action.js +141 -0
  66. package/dist/diagram/action.js.map +1 -0
  67. package/dist/diagram/adapters.d.ts +48 -0
  68. package/dist/diagram/adapters.js +569 -0
  69. package/dist/diagram/adapters.js.map +1 -0
  70. package/dist/diagram/mermaid.d.ts +22 -0
  71. package/dist/diagram/mermaid.js +164 -0
  72. package/dist/diagram/mermaid.js.map +1 -0
  73. package/dist/diagram/model.d.ts +59 -0
  74. package/dist/diagram/model.js +17 -0
  75. package/dist/diagram/model.js.map +1 -0
  76. package/dist/diagram/png.d.ts +17 -0
  77. package/dist/diagram/png.js +48 -0
  78. package/dist/diagram/png.js.map +1 -0
  79. package/dist/diagram/select.d.ts +26 -0
  80. package/dist/diagram/select.js +146 -0
  81. package/dist/diagram/select.js.map +1 -0
  82. package/dist/diagram/svg.d.ts +10 -0
  83. package/dist/diagram/svg.js +254 -0
  84. package/dist/diagram/svg.js.map +1 -0
  85. package/dist/diagram/theme.d.ts +33 -0
  86. package/dist/diagram/theme.js +37 -0
  87. package/dist/diagram/theme.js.map +1 -0
  88. package/dist/dispatch/call-pipeline.d.ts +8 -0
  89. package/dist/dispatch/call-pipeline.js +19 -2
  90. package/dist/dispatch/call-pipeline.js.map +1 -1
  91. package/dist/dispatch/inline-image.d.ts +70 -0
  92. package/dist/dispatch/inline-image.js +198 -0
  93. package/dist/dispatch/inline-image.js.map +1 -0
  94. package/dist/dispatch/lease-paths.d.ts +16 -0
  95. package/dist/dispatch/lease-paths.js +42 -0
  96. package/dist/dispatch/lease-paths.js.map +1 -0
  97. package/dist/dispatch/leases.d.ts +71 -0
  98. package/dist/dispatch/leases.js +191 -0
  99. package/dist/dispatch/leases.js.map +1 -0
  100. package/dist/dispatch/offline.js +17 -0
  101. package/dist/dispatch/offline.js.map +1 -1
  102. package/dist/dispatch/server-dispatch.d.ts +32 -1
  103. package/dist/dispatch/server-dispatch.js +70 -2
  104. package/dist/dispatch/server-dispatch.js.map +1 -1
  105. package/dist/editor/bridge-binaries.d.ts +2 -0
  106. package/dist/editor/bridge-binaries.js +12 -22
  107. package/dist/editor/bridge-binaries.js.map +1 -1
  108. package/dist/editor/dialog-guard.d.ts +10 -0
  109. package/dist/editor/dialog-guard.js +26 -4
  110. package/dist/editor/dialog-guard.js.map +1 -1
  111. package/dist/editor/editor-plugin.d.ts +16 -0
  112. package/dist/editor/editor-plugin.js +98 -0
  113. package/dist/editor/editor-plugin.js.map +1 -0
  114. package/dist/editor/engine-root.d.ts +2 -0
  115. package/dist/editor/engine-root.js +2 -2
  116. package/dist/editor/engine-root.js.map +1 -1
  117. package/dist/editor/install-marker.d.ts +2 -0
  118. package/dist/editor/install-marker.js +13 -6
  119. package/dist/editor/install-marker.js.map +1 -1
  120. package/dist/extensions/registry-auth.d.ts +60 -1
  121. package/dist/extensions/registry-auth.js +202 -5
  122. package/dist/extensions/registry-auth.js.map +1 -1
  123. package/dist/extensions/skill-catalog.d.ts +20 -0
  124. package/dist/extensions/skill-catalog.js +56 -0
  125. package/dist/extensions/skill-catalog.js.map +1 -0
  126. package/dist/flow/flow-tool.js +10 -2
  127. package/dist/flow/flow-tool.js.map +1 -1
  128. package/dist/flow/guarded-bridge.d.ts +6 -4
  129. package/dist/flow/guarded-bridge.js +11 -5
  130. package/dist/flow/guarded-bridge.js.map +1 -1
  131. package/dist/flow/loader.js +19 -0
  132. package/dist/flow/loader.js.map +1 -1
  133. package/dist/flow/run-action.js +37 -5
  134. package/dist/flow/run-action.js.map +1 -1
  135. package/dist/flow/write-methods.js +4 -0
  136. package/dist/flow/write-methods.js.map +1 -1
  137. package/dist/integrations/agent-guides.d.ts +29 -0
  138. package/dist/integrations/agent-guides.js +125 -0
  139. package/dist/integrations/agent-guides.js.map +1 -0
  140. package/dist/integrations/claude-code/mcp-client-config.d.ts +16 -4
  141. package/dist/integrations/claude-code/mcp-client-config.js +57 -10
  142. package/dist/integrations/claude-code/mcp-client-config.js.map +1 -1
  143. package/dist/integrations/claude-code/unreal-mcp-entries.d.ts +33 -0
  144. package/dist/integrations/claude-code/unreal-mcp-entries.js +159 -0
  145. package/dist/integrations/claude-code/unreal-mcp-entries.js.map +1 -0
  146. package/dist/integrations/epic/project-status.d.ts +25 -0
  147. package/dist/integrations/epic/project-status.js +35 -0
  148. package/dist/integrations/epic/project-status.js.map +1 -0
  149. package/dist/integrations/epic/toolset-settings.d.ts +28 -0
  150. package/dist/integrations/epic/toolset-settings.js +136 -0
  151. package/dist/integrations/epic/toolset-settings.js.map +1 -0
  152. package/dist/integrations/epic/unreal-assistant.d.ts +64 -0
  153. package/dist/integrations/epic/unreal-assistant.js +209 -0
  154. package/dist/integrations/epic/unreal-assistant.js.map +1 -0
  155. package/dist/integrations/epic/unreal-canvas.d.ts +48 -0
  156. package/dist/integrations/epic/unreal-canvas.js +126 -0
  157. package/dist/integrations/epic/unreal-canvas.js.map +1 -0
  158. package/dist/integrations/epic/unreal-mcp-server.d.ts +74 -0
  159. package/dist/integrations/epic/unreal-mcp-server.js +231 -0
  160. package/dist/integrations/epic/unreal-mcp-server.js.map +1 -0
  161. package/dist/server/context-projection.js +5 -3
  162. package/dist/server/context-projection.js.map +1 -1
  163. package/dist/server/editor-resources.d.ts +39 -0
  164. package/dist/server/editor-resources.js +94 -0
  165. package/dist/server/editor-resources.js.map +1 -0
  166. package/dist/server/mcp-server.d.ts +7 -0
  167. package/dist/server/mcp-server.js +49 -13
  168. package/dist/server/mcp-server.js.map +1 -1
  169. package/dist/server/runtime.js +21 -1
  170. package/dist/server/runtime.js.map +1 -1
  171. package/dist/server/skill-prompts.d.ts +16 -0
  172. package/dist/server/skill-prompts.js +22 -0
  173. package/dist/server/skill-prompts.js.map +1 -0
  174. package/dist/sessions/session-load.d.ts +16 -0
  175. package/dist/sessions/session-load.js +64 -20
  176. package/dist/sessions/session-load.js.map +1 -1
  177. package/dist/sessions/session.d.ts +9 -0
  178. package/dist/sessions/session.js +8 -0
  179. package/dist/sessions/session.js.map +1 -1
  180. package/dist/surface/action-signature.js +9 -0
  181. package/dist/surface/action-signature.js.map +1 -1
  182. package/dist/surface/category-state.d.ts +119 -0
  183. package/dist/surface/category-state.js +232 -0
  184. package/dist/surface/category-state.js.map +1 -0
  185. package/dist/surface/context/call-envelope.d.ts +7 -0
  186. package/dist/surface/context/call-envelope.js +11 -0
  187. package/dist/surface/context/call-envelope.js.map +1 -1
  188. package/dist/surface/context/instructions.d.ts +2 -0
  189. package/dist/surface/context/instructions.js +20 -10
  190. package/dist/surface/context/instructions.js.map +1 -1
  191. package/dist/surface/context/micro-context.d.ts +7 -0
  192. package/dist/surface/context/micro-context.js +70 -14
  193. package/dist/surface/context/micro-context.js.map +1 -1
  194. package/dist/surface/context/tool-search.js +6 -2
  195. package/dist/surface/context/tool-search.js.map +1 -1
  196. package/dist/surface/epic-engines.d.ts +24 -0
  197. package/dist/surface/epic-engines.js +32 -0
  198. package/dist/surface/epic-engines.js.map +1 -0
  199. package/dist/surface/epic-input.d.ts +27 -2
  200. package/dist/surface/epic-input.js +39 -2
  201. package/dist/surface/epic-input.js.map +1 -1
  202. package/dist/surface/epic-surface.d.ts +15 -17
  203. package/dist/surface/epic-surface.js +13 -57
  204. package/dist/surface/epic-surface.js.map +1 -1
  205. package/dist/surface/registered-surface.d.ts +21 -4
  206. package/dist/surface/registered-surface.js +67 -23
  207. package/dist/surface/registered-surface.js.map +1 -1
  208. package/dist/surface/schemas.d.ts +8 -0
  209. package/dist/surface/schemas.js +14 -3
  210. package/dist/surface/schemas.js.map +1 -1
  211. package/dist/tool-counts.json +38 -31
  212. package/dist/tools/ai-assistant-wait.d.ts +17 -0
  213. package/dist/tools/ai-assistant-wait.js +45 -0
  214. package/dist/tools/ai-assistant-wait.js.map +1 -0
  215. package/dist/tools/animation.js +14 -8
  216. package/dist/tools/animation.js.map +1 -1
  217. package/dist/tools/asset.js +18 -5
  218. package/dist/tools/asset.js.map +1 -1
  219. package/dist/tools/audio.js +3 -0
  220. package/dist/tools/audio.js.map +1 -1
  221. package/dist/tools/blueprint.js +7 -0
  222. package/dist/tools/blueprint.js.map +1 -1
  223. package/dist/tools/canvas-results.d.ts +32 -0
  224. package/dist/tools/canvas-results.js +137 -0
  225. package/dist/tools/canvas-results.js.map +1 -0
  226. package/dist/tools/canvas.d.ts +19 -0
  227. package/dist/tools/canvas.js +254 -0
  228. package/dist/tools/canvas.js.map +1 -0
  229. package/dist/tools/chooser.js +42 -6
  230. package/dist/tools/chooser.js.map +1 -1
  231. package/dist/tools/demo.js +2 -2
  232. package/dist/tools/demo.js.map +1 -1
  233. package/dist/tools/editor/batch.js +1 -1
  234. package/dist/tools/editor/batch.js.map +1 -1
  235. package/dist/tools/editor-csv-profile.d.ts +62 -0
  236. package/dist/tools/editor-csv-profile.js +266 -0
  237. package/dist/tools/editor-csv-profile.js.map +1 -0
  238. package/dist/tools/editor.js +41 -12
  239. package/dist/tools/editor.js.map +1 -1
  240. package/dist/tools/epic/animation.generated.d.ts +1 -1
  241. package/dist/tools/epic/animation.generated.js +5051 -695
  242. package/dist/tools/epic/animation.generated.js.map +1 -1
  243. package/dist/tools/epic/asset.generated.d.ts +1 -1
  244. package/dist/tools/epic/asset.generated.js +848 -156
  245. package/dist/tools/epic/asset.generated.js.map +1 -1
  246. package/dist/tools/epic/audio.generated.d.ts +6 -0
  247. package/dist/tools/epic/audio.generated.js +323 -0
  248. package/dist/tools/epic/audio.generated.js.map +1 -0
  249. package/dist/tools/epic/blueprint.generated.d.ts +1 -1
  250. package/dist/tools/epic/blueprint.generated.js +467 -118
  251. package/dist/tools/epic/blueprint.generated.js.map +1 -1
  252. package/dist/tools/epic/catalog-engines.d.ts +2 -0
  253. package/dist/tools/epic/catalog-engines.js +4 -0
  254. package/dist/tools/epic/catalog-engines.js.map +1 -0
  255. package/dist/tools/epic/conversation.generated.js +11 -11
  256. package/dist/tools/epic/conversation.generated.js.map +1 -1
  257. package/dist/tools/epic/dataflow.generated.d.ts +1 -1
  258. package/dist/tools/epic/dataflow.generated.js +349 -29
  259. package/dist/tools/epic/dataflow.generated.js.map +1 -1
  260. package/dist/tools/epic/editor.generated.d.ts +1 -1
  261. package/dist/tools/epic/editor.generated.js +575 -41
  262. package/dist/tools/epic/editor.generated.js.map +1 -1
  263. package/dist/tools/epic/effects.d.ts +9 -3
  264. package/dist/tools/epic/effects.js +3384 -33
  265. package/dist/tools/epic/effects.js.map +1 -1
  266. package/dist/tools/epic/epic.generated.d.ts +1 -1
  267. package/dist/tools/epic/epic.generated.js +68 -10
  268. package/dist/tools/epic/epic.generated.js.map +1 -1
  269. package/dist/tools/epic/gameplay.generated.d.ts +1 -1
  270. package/dist/tools/epic/gameplay.generated.js +502 -45
  271. package/dist/tools/epic/gameplay.generated.js.map +1 -1
  272. package/dist/tools/epic/gas.generated.d.ts +1 -1
  273. package/dist/tools/epic/gas.generated.js +29 -21
  274. package/dist/tools/epic/gas.generated.js.map +1 -1
  275. package/dist/tools/epic/index.d.ts +4 -0
  276. package/dist/tools/epic/index.js +4 -0
  277. package/dist/tools/epic/index.js.map +1 -1
  278. package/dist/tools/epic/level.generated.d.ts +1 -1
  279. package/dist/tools/epic/level.generated.js +524 -95
  280. package/dist/tools/epic/level.generated.js.map +1 -1
  281. package/dist/tools/epic/material.generated.d.ts +1 -1
  282. package/dist/tools/epic/material.generated.js +152 -76
  283. package/dist/tools/epic/material.generated.js.map +1 -1
  284. package/dist/tools/epic/niagara.generated.d.ts +1 -1
  285. package/dist/tools/epic/niagara.generated.js +124 -115
  286. package/dist/tools/epic/niagara.generated.js.map +1 -1
  287. package/dist/tools/epic/pcg.generated.d.ts +1 -1
  288. package/dist/tools/epic/pcg.generated.js +322 -47
  289. package/dist/tools/epic/pcg.generated.js.map +1 -1
  290. package/dist/tools/epic/plugins.generated.d.ts +1 -1
  291. package/dist/tools/epic/plugins.generated.js +143 -36
  292. package/dist/tools/epic/plugins.generated.js.map +1 -1
  293. package/dist/tools/epic/project.generated.d.ts +1 -1
  294. package/dist/tools/epic/project.generated.js +144 -31
  295. package/dist/tools/epic/project.generated.js.map +1 -1
  296. package/dist/tools/epic/reflection.generated.d.ts +1 -1
  297. package/dist/tools/epic/reflection.generated.js +33 -16
  298. package/dist/tools/epic/reflection.generated.js.map +1 -1
  299. package/dist/tools/epic/source_control.generated.d.ts +6 -0
  300. package/dist/tools/epic/source_control.generated.js +260 -0
  301. package/dist/tools/epic/source_control.generated.js.map +1 -0
  302. package/dist/tools/epic/statetree.generated.d.ts +1 -1
  303. package/dist/tools/epic/statetree.generated.js +292 -20
  304. package/dist/tools/epic/statetree.generated.js.map +1 -1
  305. package/dist/tools/epic/toolset-routes.d.ts +6 -0
  306. package/dist/tools/epic/toolset-routes.js +74 -0
  307. package/dist/tools/epic/toolset-routes.js.map +1 -0
  308. package/dist/tools/epic/widget.generated.d.ts +1 -1
  309. package/dist/tools/epic/widget.generated.js +797 -85
  310. package/dist/tools/epic/widget.generated.js.map +1 -1
  311. package/dist/tools/epic.js +22 -4
  312. package/dist/tools/epic.js.map +1 -1
  313. package/dist/tools/gameplay.js +10 -0
  314. package/dist/tools/gameplay.js.map +1 -1
  315. package/dist/tools/graph-diagrams.d.ts +15 -0
  316. package/dist/tools/graph-diagrams.js +153 -0
  317. package/dist/tools/graph-diagrams.js.map +1 -0
  318. package/dist/tools/landscape.js +12 -1
  319. package/dist/tools/landscape.js.map +1 -1
  320. package/dist/tools/level.js +35 -1
  321. package/dist/tools/level.js.map +1 -1
  322. package/dist/tools/material.js +7 -1
  323. package/dist/tools/material.js.map +1 -1
  324. package/dist/tools/networking.js +1 -0
  325. package/dist/tools/networking.js.map +1 -1
  326. package/dist/tools/pcg.js +8 -1
  327. package/dist/tools/pcg.js.map +1 -1
  328. package/dist/tools/project/categories.d.ts +74 -0
  329. package/dist/tools/project/categories.js +405 -0
  330. package/dist/tools/project/categories.js.map +1 -0
  331. package/dist/tools/project/config.js +93 -0
  332. package/dist/tools/project/config.js.map +1 -1
  333. package/dist/tools/project/leases.d.ts +8 -0
  334. package/dist/tools/project/leases.js +107 -0
  335. package/dist/tools/project/leases.js.map +1 -0
  336. package/dist/tools/project/localization.d.ts +7 -0
  337. package/dist/tools/project/localization.js +21 -0
  338. package/dist/tools/project/localization.js.map +1 -0
  339. package/dist/tools/project/sessions.js +29 -1
  340. package/dist/tools/project/sessions.js.map +1 -1
  341. package/dist/tools/project.js +25 -4
  342. package/dist/tools/project.js.map +1 -1
  343. package/dist/tools/source_control.js +3 -0
  344. package/dist/tools/source_control.js.map +1 -1
  345. package/dist/tools/specs/animation.generated.js +3 -3
  346. package/dist/tools/specs/animation.generated.js.map +1 -1
  347. package/dist/tools/specs/asset.generated.js +223 -12
  348. package/dist/tools/specs/asset.generated.js.map +1 -1
  349. package/dist/tools/specs/chooser.generated.js +1039 -63
  350. package/dist/tools/specs/chooser.generated.js.map +1 -1
  351. package/dist/tools/specs/demo.generated.js +11 -3
  352. package/dist/tools/specs/demo.generated.js.map +1 -1
  353. package/dist/tools/specs/editor.generated.js +444 -15
  354. package/dist/tools/specs/editor.generated.js.map +1 -1
  355. package/dist/tools/specs/epic.generated.js +215 -3
  356. package/dist/tools/specs/epic.generated.js.map +1 -1
  357. package/dist/tools/specs/gameplay.generated.js +175 -4
  358. package/dist/tools/specs/gameplay.generated.js.map +1 -1
  359. package/dist/tools/specs/landscape.generated.js +483 -7
  360. package/dist/tools/specs/landscape.generated.js.map +1 -1
  361. package/dist/tools/specs/level.generated.js +1218 -68
  362. package/dist/tools/specs/level.generated.js.map +1 -1
  363. package/dist/tools/specs/networking.generated.js +83 -0
  364. package/dist/tools/specs/networking.generated.js.map +1 -1
  365. package/dist/tools/specs/pcg.generated.js +125 -5
  366. package/dist/tools/specs/pcg.generated.js.map +1 -1
  367. package/dist/tools/specs/project.generated.js +134 -0
  368. package/dist/tools/specs/project.generated.js.map +1 -1
  369. package/dist/tools/specs/statetree.generated.js +245 -9
  370. package/dist/tools/specs/statetree.generated.js.map +1 -1
  371. package/dist/tools/specs/widget.generated.js +362 -3
  372. package/dist/tools/specs/widget.generated.js.map +1 -1
  373. package/dist/tools/statetree.js +12 -1
  374. package/dist/tools/statetree.js.map +1 -1
  375. package/dist/tools/widget.js +12 -0
  376. package/dist/tools/widget.js.map +1 -1
  377. package/dist/tools.js +2 -0
  378. package/dist/tools.js.map +1 -1
  379. package/dist/ue-mcp.default.yml +14785 -983
  380. package/package.json +4 -2
  381. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/BridgePortConfig.cpp +56 -4
  382. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/BridgeRequestContext.h +54 -0
  383. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/BridgeServer.cpp +203 -18
  384. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/BridgeServer.h +42 -0
  385. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/HandlerCatalog.cpp +6 -0
  386. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/HandlerDeferred.cpp +225 -0
  387. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/HandlerLevelSwitch.h +123 -0
  388. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/HandlerScriptErrors.h +44 -0
  389. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Animation/AnimationHandlers.cpp +7 -7
  390. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers.cpp +15 -0
  391. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers.h +9 -0
  392. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers_Import.cpp +147 -0
  393. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers_Redirectors.cpp +11 -0
  394. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers_SemanticSearch.cpp +435 -0
  395. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Chooser/ChooserHandlers.cpp +363 -331
  396. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Chooser/ChooserHandlers.h +30 -0
  397. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Chooser/ChooserHandlers_Authoring.cpp +2178 -0
  398. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Chooser/HandlerChooserShared.h +1005 -0
  399. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Demo/DemoHandlers.cpp +104 -11
  400. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Demo/DemoHandlers.h +19 -1
  401. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Dialog/DialogHandlers.cpp +54 -2
  402. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Dialog/DialogHandlers.h +9 -0
  403. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers.cpp +31 -0
  404. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers.h +15 -0
  405. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers_CsvProfile.cpp +272 -0
  406. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers_MapCheck.cpp +197 -0
  407. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers_Profiling.cpp +11 -16
  408. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers_PythonPaths.cpp +237 -0
  409. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Editor/EditorHandlers_TraceAnalysis.cpp +790 -0
  410. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/EpicHandlers.cpp +201 -56
  411. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/EpicHandlers.h +30 -0
  412. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/EpicHandlers_AIAssistant.cpp +510 -0
  413. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/EpicHandlers_MCP.cpp +394 -0
  414. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/EpicHandlers_Toolsets.cpp +542 -0
  415. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/MCPAIAssistantListener.h +19 -0
  416. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Gas/GasHandlers_Runtime.cpp +10 -7
  417. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Landscape/LandscapeHandlers.cpp +9 -23
  418. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Landscape/LandscapeHandlers.h +4 -0
  419. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Landscape/LandscapeHandlers_Sculpt.cpp +7 -0
  420. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Landscape/LandscapeHandlers_Splines.cpp +1253 -0
  421. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Landscape/LandscapeHandlers_Splines.h +39 -0
  422. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelGeneratorRecords.h +84 -0
  423. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers.cpp +57 -12
  424. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers.h +33 -0
  425. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_Blockout.cpp +987 -0
  426. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_Blockout.h +23 -0
  427. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_PerfAudit.cpp +925 -0
  428. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_ReplaceActors.cpp +387 -0
  429. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_SplineGen.cpp +813 -0
  430. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_SplineGen.h +22 -0
  431. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_WorldPartitionSubsystem.cpp +1238 -0
  432. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Localization/LocalizationHandlers.cpp +982 -0
  433. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Localization/LocalizationHandlers.h +32 -0
  434. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/MachineLearning/MachineLearningHandlers.cpp +44 -0
  435. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/MachineLearning/MachineLearningHandlers.h +29 -0
  436. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/MachineLearning/MachineLearningHandlers_LearningAgents.cpp +491 -0
  437. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/MachineLearning/MachineLearningHandlers_NNE.cpp +532 -0
  438. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Networking/NetworkingHandlers.cpp +14 -0
  439. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Networking/NetworkingHandlers.h +2 -0
  440. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Networking/NetworkingHandlers_Audit.cpp +496 -0
  441. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PCG/PCGEdgeValidation.h +150 -0
  442. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PCG/PCGHandlers.cpp +26 -1
  443. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PCG/PCGHandlers.h +5 -0
  444. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PCG/PCGHandlers_CustomHLSL.cpp +290 -0
  445. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PCG/PCGHandlers_LevelToAsset.cpp +34 -3
  446. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Sequencer/MovieRenderQueueHandlers.cpp +1215 -0
  447. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Sequencer/MovieRenderQueueHandlers.h +27 -0
  448. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/StateTree/StateTreeHandlers.cpp +72 -0
  449. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/StateTree/StateTreeHandlers.h +11 -0
  450. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/StateTree/StateTreeHandlers_NodesAndBindings.cpp +1172 -0
  451. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Widget/WidgetHandlers.cpp +4 -0
  452. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Widget/WidgetHandlers_MVVM.cpp +396 -0
  453. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Widget/WidgetHandlers_MVVM.h +32 -0
  454. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/DialogBlockingWindowTests.cpp +74 -0
  455. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/HandlerSpecContractTests.cpp +4 -0
  456. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Public/HandlerDeferred.h +76 -0
  457. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Public/HandlerEngineVersion.h +4 -0
  458. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Public/HandlerMVVMBackend.h +92 -0
  459. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Public/HandlerStaticInvoke.h +96 -0
  460. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/UE_MCP_Bridge.Build.cs +75 -0
  461. package/plugin/ue_mcp_bridge/Source/UE_MCP_BridgeMVVM/Private/UE_MCP_BridgeMVVMModule.cpp +1277 -0
  462. package/plugin/ue_mcp_bridge/Source/UE_MCP_BridgeMVVM/UE_MCP_BridgeMVVM.Build.cs +58 -0
  463. package/plugin/ue_mcp_bridge/UE_MCP_Bridge.uplugin +7 -2
  464. package/skills/ue-mcp-animation/SKILL.md +4 -4
  465. package/skills/ue-mcp-epic-routing/SKILL.md +4 -0
@@ -8,7 +8,18 @@ export const landscapeTool = categoryTool("landscape", "Landscape terrain: info,
8
8
  paint_layer: specBp("mutate", "Paint a weight layer with a circular brush. The layer must already have a LayerInfo on this landscape (see add_layer_info) - an unregistered name errors and lists the layers that ARE registered instead of silently painting nothing. Weights are written as given - the engine no longer renormalises other layers for you, so set them explicitly if they must sum to 1. Writes into an edit layer (editLayer by name, else editLayerIndex, default 0). Idempotent: a brush that changes no weight reports unchanged=true. The rollback record carries the exact previous weights over the brush rectangle and replays through set_layer_weight_region, with the same rollbackOmitted cap as the region writes (#742).", "paint_landscape_layer"),
9
9
  list_edit_layers: specBp("read", "List the landscape's edit layers by name, in stack order, with guid, visible, locked, heightmapAlpha and weightmapAlpha. These names are what sculpt, paint_layer and the region writes take as editLayer (#1156).", "list_landscape_edit_layers"),
10
10
  merge_edit_layers: specBp("mutate", "Re-merge every edit layer into the landscape's final height and weight maps (ALandscape::ForceLayersFullUpdate), then run the update immediately unless updateNow=false. Use after edits that leave the merged result stale. Changes no authored value, so there is no rollback (#1156).", "merge_landscape_edit_layers"),
11
- list_splines: specBp("read", "Read landscape splines.", "list_landscape_splines"),
11
+ list_splines: specBp("read", "Read every landscape spline network: controlPoints (name, path, location and rotation in world space, halfWidth, sideFalloff, endFalloff, layerName, raiseTerrain, lowerTerrain, connectedSegments, and the owner actor) and segments (start and end points, tangent lengths, layer, raise/lower flags, meshes, meshComponentCount, length). Covers splines on landscape actors and proxies and on World Partition LandscapeSplineActors. x/y/z on a point are its location in spline space, as before.", "list_landscape_splines"),
12
+ create_spline_point: specBp("mutate", "Add a landscape spline control point at a world location, with optional rotation, halfWidth, sideFalloff, endFalloff, paint layerName and raiseTerrain/lowerTerrain. On a single landscape it goes into the landscape's own splines component; on a World Partition map it goes into a new LandscapeSplineActor, as the Landscape Mode spline tool does, unless ownerPath names an existing owner. Pass ownerPath (returned as ownerPath) to keep later points in the same network, since a segment only joins points of one owner. name makes the create idempotent. Rolls back through delete_spline_point.", "create_landscape_spline_point"),
13
+ update_spline_point: specBp("mutate", "Move a landscape spline control point or change its rotation, halfWidth, falloffs, paint layer or raise/lower flags. Moving a connected point recomputes its rotation from its segments unless rotation is passed or autoRotate is false. Reports unchanged when nothing moved, and the rollback restores every previous value.", "update_landscape_spline_point"),
14
+ delete_spline_point: specBp("mutate", "Delete a landscape spline control point and every segment connected to it. Idempotent: a point that is not there reports alreadyDeleted. A point with no segments rolls back through create_spline_point with its name and settings; one with segments says why it has no rollback.", "delete_landscape_spline_point"),
15
+ connect_spline_points: specBp("mutate", "Join two control points of the same spline owner with a segment. Tangent lengths default to the distance between the points; layerName, raiseTerrain, lowerTerrain, meshes, collisionProfile and castShadow set the segment in the same call. Points already joined report existed. Rolls back through delete_spline_segment.", "connect_landscape_spline_points"),
16
+ update_spline_segment: specBp("mutate", "Change a landscape spline segment's tangent lengths, paint layer or raise/lower flags. Reports unchanged when nothing changed; the rollback restores the previous values.", "update_landscape_spline_segment"),
17
+ set_spline_segment_meshes: specBp("mutate", "Set the meshes a landscape spline segment deforms along itself (mesh, scale, forwardAxis, upAxis, materialOverrides, centerH, scaleToWidth per entry), its collisionProfile and castShadow. meshes replaces the whole list, and an empty list clears it. Returns meshComponentCount, the spline mesh components the segment built. The rollback restores the previous list.", "set_landscape_spline_segment_meshes"),
18
+ delete_spline_segment: specBp("mutate", "Delete one landscape spline segment; its control points stay. Idempotent. Rolls back through connect_spline_points with the segment's tangents, layer, flags and meshes.", "delete_landscape_spline_segment"),
19
+ apply_splines: {
20
+ ...specBp("mutate", "Apply the landscape's splines to its terrain: raise and lower the heights under each segment and paint each segment's layer. A landscape with a reserved splines edit layer is written there, regenerated from the splines each time; otherwise the deformation goes into editLayer (by name, else editLayerIndex, default 0) and stays when the splines change. The edit layers merge now unless updateNow is false; read the result back with get_height_at_point after merge_edit_layers, since the merge finishes on the GPU.", "apply_landscape_splines"),
21
+ timeoutMs: 300_000,
22
+ },
12
23
  get_component: specBp("read", "Inspect component.", "get_landscape_component"),
13
24
  set_material: specBp("mutate", "Set landscape material.", "set_landscape_material"),
14
25
  add_layer_info: specBp("mutate", "Register paint layer (creates LayerInfo asset + binds to active landscape). Idempotent: a layer already registered reports existed and emits no record, so a replay cannot delete a layer it did not create. Rolls back through remove_layer on the parent Landscape actor, which un-registers the layer; marked lossy when the LayerInfo ASSET was created here, because remove_layer deliberately leaves it on disk.", "add_landscape_layer_info"),
@@ -1 +1 @@
1
- {"version":3,"file":"landscape.js","sourceRoot":"","sources":["../../src/tools/landscape.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE9E,MAAM,CAAC,MAAM,aAAa,GAAY,YAAY,CAChD,WAAW,EACX,2FAA2F,EAC3F;IACE,QAAQ,EAAW,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,oBAAoB,CAAC;IAC/E,WAAW,EAAQ,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,uBAAuB,CAAC;IAChF,MAAM,EAAa,MAAM,CAAC,MAAM,EAAE,04BAA04B,EAAE,kBAAkB,CAAC;IACj8B,MAAM,EAAa,MAAM,CAAC,QAAQ,EAAE,m3BAAm3B,EAAE,kBAAkB,CAAC;IAC56B,WAAW,EAAQ,MAAM,CAAC,QAAQ,EAAE,4rBAA4rB,EAAE,uBAAuB,CAAC;IAC1vB,gBAAgB,EAAG,MAAM,CAAC,MAAM,EAAE,oNAAoN,EAAE,4BAA4B,CAAC;IACrR,iBAAiB,EAAE,MAAM,CAAC,QAAQ,EAAE,0RAA0R,EAAE,6BAA6B,CAAC;IAC9V,YAAY,EAAO,MAAM,C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ryTool("level", "Level actors, selection, compone
23
23
  restore_component_transform: { ...specBp("mutate", "Put an exact named SceneComponent back to a relative transform: the relativeTransform nudge_component records in its rollback, so a nudge can be undone by hand as well as by the flow runner. The quaternion is what is applied. A component already at that transform is reported unchanged.", "restore_component_relative_transform"), destructive: false },
24
24
  get_component_details: specBp("read", "Read a placed actor's component transforms. With componentName returns that component's relative+world location/rotation/scale, class, and attach parent; without it lists every component. With includeValues=true also dumps arbitrary UPROPERTY values (custom fields, CharacterMovement MaxWalkSpeed, etc.); world='pie' reads the live PIE instance (#539/#584).", "get_component_details"),
25
25
  get_current: specBp("read", "Get current level name and path.", "get_current_level"),
26
- load: specBp("mutate", "Open level or load map: switch the editor to another map as the current editor level (the native load_map). Returns levelPath, levelName, worldPath and previousLevelPath, and refuses a path that does not exist. Refuses while the open map or its external actor packages have unsaved changes, naming them in dirtyPackages: pass saveFirst=true to save them first or discardUnsaved=true to drop them, and the result lists savedPackages or discardedPackages (#1259).", "load_level"),
26
+ load: specBp("mutate", "Open level or load map: switch the editor to another map as the current editor level (the native load_map). Returns levelPath, levelName, worldPath and previousLevelPath, and refuses a path that does not exist. Refuses while the open map or its external actor packages have unsaved changes, naming them in dirtyPackages: pass saveFirst=true to save them first or discardUnsaved=true to drop them (a never-saved Untitled map included, which has no file to save to), and the result lists savedPackages or discardedPackages (#1259).", "load_level"),
27
27
  clear_level_script: specBp("mutate", "Preview or remove every node and member variable from the currently loaded persistent level's Level Blueprint. Defaults to dryRun=true. Actors are untouched; save=true saves only the current level after a successful compile.", "clear_level_script"),
28
28
  save: specBp("mutate", "Save the level currently being edited, and say what happened to each package. Takes the same package path editor(save_dirty) uses, so the two can no longer disagree about whether one package was written: the old action returned a bare {success:false, error:'Failed to save current level'} on a map that save_dirty then wrote seconds later, and a false failure makes an agent redo work that was already on disk (#964). On a World Partition or one-file-per-actor map the actors live in their own packages, so those are saved too and each is reported separately. A package that was already clean is reported as skipped, not as a failure. The emptied external package of a deleted World Partition or one-file-per-actor actor is deleted from disk, as the editor's own save does, and listed under deleted (#1301). The bridge keeps that package loaded from the delete until a save commits it, so a garbage collection in between no longer loses the delete (#1545). On failure the error names the package, the resolved file, whether that file exists and is read-only, the engine's ESavePackageResult and the error/warning lines the save itself emitted. Saving during PIE is refused by name rather than failing silently. With commitDeletes=true it goes through the editor's own dirty-package save instead, which deletes the external package of a deleted World Partition actor (a direct save fails on it with 'SavePackage returned false') and saves every other dirty map and content package, reporting written, deleted and stillDirty per package (#1156).", "save_level"),
29
29
  list: specBp("read", "List levels: the persistent level first, then every streaming level with its loaded and visible state, in the world's own streaming order.", "list_levels"),
@@ -48,6 +48,15 @@ export const levelTool = categoryTool("level", "Level actors, selection, compone
48
48
  get_water_state: specBp("read", "One structured read of every WaterZone and WaterBody. Zones: ZoneExtent, RenderTargetResolution, OverlapPriority, local tessellation settings, OwnedWaterBodies, and waterMesh TileSize, QuadTreeResolution, TessellationFactor, LODScale and the far-distance mesh settings. Bodies: OceanExtents, CollisionExtents, WaterZoneOverride, OwningWaterZone, bAffectsLandscape, ShapeDilation and every water material. Properties absent on the running engine are omitted, and deprecated fields such as TessellatedWaterMeshExtent are flagged under deprecatedProperties. Requires Water plugin (#1156).", "get_water_state"),
49
49
  get_spline_info: specBp("read", "Read a spline component's points, closedLoop, length, and per-point tangents/types, and splineHasBeenEdited (whether a construction script rerun keeps the points). Works in editor or PIE (#553). componentName picks a specific (custom) spline; projectPoint returns the closest location, inputKey, distanceAlongSpline, distanceToSpline, and tangent (#555).", "get_spline_info"),
50
50
  set_spline_points: specBp("mutate", "Set spline points. A point is either a bare {x,y,z} or the typed form, which keeps what a position alone loses: pointType, arriveTangent, leaveTangent, rotation and scale. The whole batch is validated before any existing geometry is cleared, so a malformed request leaves the spline as it was, and the edit goes through an editor transaction so Undo reaches it. componentName picks one spline on an actor carrying several (#1029). markEdited (default true) sets bSplineHasBeenEdited, the flag the spline editor sets, so a Blueprint construction script rerun keeps these points instead of resetting the spline to its defaults; the result reports splineHasBeenEdited, previousSplineHasBeenEdited and creationMethod, and the rollback restores the flag.", "set_spline_points"),
51
+ create_spline_actor: specBp("mutate", "Spawn an actor whose root is a SplineComponent named Spline through splinePoints (at least two {x,y,z}, world space unless coordinateSpace is local), with closedLoop, one pointType for every point, and tags. label makes it idempotent: an existing label is reported (onConflict skip), refused (error), or has its points rewritten (update, rolled back to the previous points). A new actor rolls back through delete_actor. The spline is marked edited, so the points survive a construction script rerun.", "create_spline_actor"),
52
+ build_spline_meshes: specBp("mutate", "Fill a spline with a chain of SplineMeshComponents from one staticMesh, for roads, fences, pipes and cables. Each piece is spacing long (default the mesh length along forwardAxis times scale), stretched so a whole number of pieces fills the spline unless stretchToFit is false; scale's other two axes set the cross-section, roll turns every piece, startOffset and endOffset leave the ends empty, collisionProfile sets collision. Output is tagged with generatorName (default SplineMeshes) and the parameters are stored on the actor, so running it again replaces the previous pieces rather than adding to them, and rebuild=true reruns the stored parameters with any passed ones on top. Rolls back to the previous run, or through clear_spline_generated when there was none.", "build_spline_meshes"),
53
+ scatter_along_spline: specBp("mutate", "Place one or more meshes along a spline every interval centimetres (default 200) or count times, picking among meshes by weights. offset and positionJitter are in the spline's frame (x along it, y to its right, z up), yawJitter and scaleMin/scaleMax randomise rotation and uniform scale, alignToSpline (default true) turns each placement to the spline, and seed makes the result repeatable. mode instances (default) adds one HierarchicalInstancedStaticMeshComponent per mesh to the spline's actor; mode actors spawns StaticMeshActors. Output is tagged with generatorName (default SplineScatter) and a rerun replaces it; rebuild=true reuses the stored parameters. Rolls back like build_spline_meshes.", "scatter_along_spline"),
54
+ clear_spline_generated: specBp("mutate", "Remove everything a spline generator made (its tagged components on the actor and its tagged actors) and the parameters it stored. Idempotent: nothing to remove reports alreadyDeleted. Rolls back by running the generator again with the stored parameters.", "clear_spline_generated"),
55
+ create_blockout: specBp("mutate", "Place a blockout primitive: shape box, ramp (rises toward the actor's +X), wedge (a gable with its ridge along Y), cylinder (sides) or stairs (steps, climbing toward +X), size centimetres along the actor's axes with location at the bottom centre. It is a StaticMeshActor tagged with tag (default Blockout) and BlockoutShape:<shape>, using a unit shape mesh generated once and saved under meshFolder (default /Game/Blockout/Meshes) with the engine grid material unless material is given. Rolls back through delete_actor; the shape mesh stays for reuse.", "create_blockout"),
56
+ list_blockout: specBp("read", "List the blockout actors carrying tag (default Blockout): label, path, shape, mesh, transform, size along the actor's own axes, bottomCentre, world bounds and tags, plus a count per shape. includeReplaced adds the actors replace_blockout put in their place, with the record restore_blockout reads.", "list_blockout"),
57
+ match_asset_to_blockout: specBp("read", "Rank the StaticMeshes under candidateFolder by how well their bounds fit a blockout actor (actorLabel or actorPath) or every blockout carrying tag. Each candidate reports score (the mean of sizeScore and shapeScore, 1 is identical), its size, the yawOffset that fits best when allowRotation tries a quarter turn, and the uniformScale and stretchScale a fit would apply. limit caps the candidates per blockout; maxCandidates caps how many meshes are loaded.", "match_asset_to_blockout"),
58
+ replace_blockout: specBp("mutate", "Swap blockout actors for a StaticMesh fitted to each one's bounds: assetPath for all of them, or the best match under candidateFolder for each. fit uniform (default) scales evenly to fit inside, stretch matches every axis, none keeps scale 1; the asset's bottom centre lands on the blockout's, with its rotation plus yawOffset. The replacement keeps the label and folder and carries BlockoutReplacement and a record of the blockout, and the blockout is removed. Every target is planned before anything is destroyed. Rolls back through restore_blockout.", "replace_blockout"),
59
+ restore_blockout: specBp("mutate", "Put back the blockout a replace_blockout replacement recorded (mesh, transform, material, tags, label, folder) and remove the replacement. Takes the replacement by actorLabel, actorPath, or actorPaths as replace_blockout returns them. Rolls back through replace_blockout when every swap used the same asset, fit and yaw.", "restore_blockout"),
51
60
  set_actor_material: specBp("mutate", "Set material on actor.", "set_actor_material"),
52
61
  get_world_settings: specBp("read", "Read world settings (GameMode, KillZ, gravity, etc.).", "get_world_settings"),
53
62
  set_world_settings: specBp("mutate", "Set world settings.", "set_world_settings"),
@@ -77,6 +86,30 @@ export const levelTool = categoryTool("level", "Level actors, selection, compone
77
86
  get_world_partition_settings: specBp("read", "World Partition ONLY: the streaming knobs on the open map, plus the runtime cell transformer stack. Returns the world partition and runtime hash classes, whether streaming is enabled, the default HLOD layer, and grids[] with each grid's name, CellSize, LoadingRange and a dotted path rooted at the world partition. Grids are found by REFLECTION rather than against a fixed class, so this answers for the RuntimeHashSet layout and the older spatial hash alike. cellTransformers[] lists each stack entry with its class, its instancePath and the current values of the instanced transformer object's editable properties, which no read exposed (#985).", "get_world_partition_settings"),
78
87
  set_world_partition_settings: specBp("mutate", "World Partition ONLY: write the streaming knobs. cellSize and loadingRange are the shorthand for the primary tuning pair and pick the map's only grid automatically, or name one with grid (its name) or gridPath (the dotted path from get_world_partition_settings). settings takes any dotted path rooted at the world partition, which is how the INSTANCED runtime cell transformer object is configured ('RuntimeCellsTransformerStack[0].Instance.SomeProperty') - that object is read-only through Python and was previously set by hand in the editor UI. Every path is resolved BEFORE anything is written, so a bad path fails the call rather than leaving the map streaming on a mixture nobody asked for, and each write reports previousValue and the value read back. Streaming settings only apply to cells generated after the change, so rebuild the streaming data before measuring. The map package is left dirty and is NOT saved (#985).", "set_world_partition_settings"),
79
88
  add_runtime_cell_transformer: specBp("mutate", "World Partition ONLY: append a WorldPartitionRuntimeCellTransformer to RuntimeCellsTransformerStack and configure its instanced object in the same call. Adding the entry without being able to write the instance would leave the manual editor step exactly where it was, so the instance is created here and properties are applied to it. skipIfPresent (default true) makes a rerun a no-op that reports the existing index instead of stacking duplicates. position inserts at an index rather than appending, because the stack is ordered (#985).", "add_runtime_cell_transformer"),
89
+ set_world_partition_streaming: specBp("mutate", "World Partition ONLY: turn streaming on or off for the open map (UWorldPartitionSubsystem::SetStreamingEnabled on UE 5.9, UWorldPartition::SetEnableStreaming before it). With streaming off every actor is always loaded. An unchanged state is reported as unchanged; the rollback sets the previous state (#1828).", "set_world_partition_streaming"),
90
+ set_runtime_hash_class: specBp("mutate", "World Partition ONLY, UE 5.9: convert the open map's runtime hash to another class (WorldPartitionRuntimeHashSet, WorldPartitionRuntimeSpatialHash), keeping what the conversion supports. Refusals quote the engine's reason (#1828).", "set_runtime_hash_class"),
91
+ list_runtime_partitions: specBp("read", "World Partition ONLY, UE 5.9: the runtime hash set's partitions in declaration order, each with its class and HLOD setup names (#1828).", "list_runtime_partitions"),
92
+ get_runtime_partition: specBp("read", "World Partition ONLY, UE 5.9: one runtime partition's class and editable properties (cell size, loading range...), or with setupName the partition of one of its HLOD setups; hasPartition=false for a setup without one (#1828).", "get_runtime_partition"),
93
+ add_runtime_partition: specBp("mutate", "World Partition ONLY, UE 5.9: add a runtime partition to the runtime hash set (default class RuntimePartitionLHGrid), with default values and no HLOD setups. A name already there is reported as existed; the rollback removes the new partition (#1828).", "add_runtime_partition"),
94
+ remove_runtime_partition: specBp("mutate", "World Partition ONLY, UE 5.9: remove a runtime partition; the last one cannot be removed. Actors still assigned to it stream with the first partition until reassigned. An absent name is reported as alreadyRemoved (#1828).", "remove_runtime_partition"),
95
+ rename_runtime_partition: specBp("mutate", "World Partition ONLY, UE 5.9: rename a runtime partition; HLODs must be rebuilt afterwards. The rollback renames it back (#1828).", "rename_runtime_partition"),
96
+ set_runtime_partition_properties: specBp("mutate", "World Partition ONLY, UE 5.9: write editable properties of a runtime partition (or, with setupName, of one of its HLOD setup partitions), the way the subsystem documents changing their settings. Every name is checked before anything is written; returns previous and readBack, and the rollback writes the previous values (#1828).", "set_runtime_partition_properties"),
97
+ list_hlod_setups: specBp("read", "World Partition ONLY, UE 5.9: a runtime partition's HLOD setups in hierarchy order, each with its partition class and HLOD layers. The non-spatially loaded setup, when present, is last and named None (#1828).", "list_hlod_setups"),
98
+ add_hlod_setup: specBp("mutate", "World Partition ONLY, UE 5.9: add a spatially loaded HLOD setup without layers after the partition's existing ones; its partition is derived from the previous level. The rollback removes it (#1828).", "add_hlod_setup"),
99
+ remove_hlod_setup: specBp("mutate", "World Partition ONLY, UE 5.9: remove a spatially loaded HLOD setup, leaving its layers unassigned (listed in unassignedHlodLayers). The None setup cannot be removed (#1828).", "remove_hlod_setup"),
100
+ set_hlod_setup_layers: specBp("mutate", "World Partition ONLY, UE 5.9: assign HLODLayer assets to an HLOD setup, removing them from the partition's other setups; an empty array leaves it without layers. The rollback restores the setup's previous layers (#1828).", "set_hlod_setup_layers"),
101
+ build_hlod_actors: specBp("mutate", "World Partition ONLY: build loaded HLOD actors in place, as their details panel's Build HLOD button does (UWorldPartitionSubsystem::BuildHLODActors on UE 5.9, AWorldPartitionHLOD::BuildHLOD before it). Omit actorLabels for every loaded HLOD actor; up to date actors are skipped unless force. Does not save (#1828).", "build_hlod_actors"),
102
+ build_world_partition_hlods: specBp("mutate", "World Partition ONLY, UE 5.9: set up and build the open map's HLODs in an external process, as the Build HLODs menu does (UWorldPartitionSubsystem::BuildHLODs). Every modified package must be saved first. The map is unloaded and reopened, so earlier actor references go stale. hlodLayer builds only that layer's HLODs (#1828).", "build_world_partition_hlods"),
103
+ delete_world_partition_hlods: specBp("mutate", "World Partition ONLY, UE 5.9: delete every HLOD of the open map in an external process (UWorldPartitionSubsystem::DeleteHLODs). Every modified package must be saved first; the map is unloaded and reopened (#1828).", "delete_world_partition_hlods"),
104
+ get_hlod_stats: specBp("read", "World Partition ONLY, UE 5.9: build statistics of every HLOD actor from its saved descriptor, without loading it: name, hlodLayer, spatiallyLoaded, dataLayers and stats (InputActorCount, MeshTriangleCount, MemoryDiskSizeBytes, BuildTimeTotalMilliseconds...). HLOD actors created since the last save are not listed yet (#1828).", "get_hlod_stats"),
105
+ get_world_partition_minimap: specBp("read", "World Partition ONLY: the open map's minimap actor and its settings, with the world bounds a build would capture and the texture resolution it would produce (UE 5.9). exists=false when the map has no minimap actor (#1828).", "get_world_partition_minimap"),
106
+ create_world_partition_minimap: specBp("mutate", "World Partition ONLY: spawn the minimap actor in the persistent level when the map has none (UWorldPartitionSubsystem::GetMiniMap with bCreateIfMissing). An existing actor is reported as existed; the rollback deletes a new one (#1828).", "create_world_partition_minimap"),
107
+ build_world_partition_minimap: specBp("mutate", "World Partition ONLY, UE 5.9: build and save the open map's minimap in an external process, as the Build World Partition Editor Minimap menu does, without its prompts. Every modified package must be saved first; the map is unloaded and reopened (#1828).", "build_world_partition_minimap"),
108
+ check_world_partition_errors: specBp("read", "World Partition ONLY, UE 5.9: the map's World Partition problems, as Map Check's World Partition validation and the Scene Outliner's Repair Errors see them: errorType, severity, message and the actor, referenced actor or object each names, with errors and warnings counts (#1828).", "check_world_partition_errors"),
109
+ repair_world_partition_errors: specBp("mutate", "World Partition ONLY, UE 5.9: repair what check_world_partition_errors reports as NotUsingExternalActors, WorldDataLayersNotSaved and InvalidActorFile, as the Scene Outliner's Repair Errors button does. Saves, deletes invalid actor files and clears the undo history when actors move; not undoable. Reports repairableBefore and repairableAfter (#1828).", "repair_world_partition_errors"),
110
+ replace_actors_with_class: specBp("mutate", "Replace actors with new instances of an actor class, as the editor's Replace Selected Actors With command does (UEditorActorSubsystem::ReplaceActorsWithClass on UE 5.9, the same factory path before it). The class needs an actor factory that works without an asset (lights, empty actors, volumes); asset-backed classes go through replace_actors_with_asset. One undo transaction; returns newActors (#1828).", "replace_actors_with_class"),
111
+ replace_actors_with_asset: specBp("mutate", "Replace actors with new actors created from an asset (static mesh, Blueprint, particle system), as the editor's Replace Selected Actors With command does (UEditorActorSubsystem::ReplaceActorsWithAsset on UE 5.9). copySourceProperties (default true) copies a replaced actor's values when the asset is a Blueprint sharing its native parent. One undo transaction; returns newActors (#1828).", "replace_actors_with_asset"),
112
+ rebuild_brush: specBp("mutate", "UE 5.9: rebuild a brush or volume's geometry from a brush builder without changing its transform, pivot or visibility (UEditorActorSubsystem::RebuildBrush). builderClass picks a builder (CubeBuilder, CylinderBuilder...), default the brush's own; builderProperties sets its parameters, such as {X, Y, Z} for a cube. The rollback rebuilds with the previous builder and values (#1828).", "rebuild_brush"),
80
113
  set_actor_hlod_layer: specBp("mutate", "Assign (or clear) the per-actor HLODLayer override across every actor a selector picks. Assigning one across 295 InstancedFoliageActors was a Python loop. Goes through the engine's own AActor::SetHLODLayer rather than writing the private property directly, so the result behaves like an edit made in the details panel. hlodLayer=null clears the override. An actor already carrying the requested layer is reported as unchanged rather than counted as an update, so a rerun is readable. Optionally sets bEnableAutoLODGeneration in the same pass, since the layer only matters when the actor is allowed to build HLODs at all. On a World Partition map this dirties one package per actor and does NOT save (#985).", "set_actor_hlod_layer"),
81
114
  set_actor_folder_path: specBp("mutate", "Assign World Outliner folder paths in bulk. Filter with actorLabels (exact), labelPrefix, className or tag; pass an empty folderPath to move actors back to the root. Runs in one transaction so the whole move is a single undo, reads each write back (verified), and reports missingLabels for names that matched no actor. Editor-only organisation: the level is left dirty and is NOT saved (#767).", "set_actor_folder_path"),
82
115
  create_outliner_folder: specBp("mutate", "Create World Outliner folders that hold no actors yet, such as a layout to move actors into later. Pass folderPath, folderPaths, or both; nested paths like Props/Lights are fine. Each path reports created, existed or failed (invalid_path, create_failed), so a replay is readable. Its rollback is delete_outliner_folder over the folders it created (#1529).", "create_outliner_folder"),
@@ -144,6 +177,7 @@ export const levelTool = categoryTool("level", "Level actors, selection, compone
144
177
  actors_in_box: specBp("read", "Every actor whose bounds meet a world-space box (min, max). mode=overlap (default) keeps any actor whose bounds intersect the box, touching faces included; mode=contained keeps only actors whose bounds lie fully inside it. Bounds are computed the way get_actor_bounds computes them; an actor with no primitive component counts as its location (bounds.source=location), and onlyColliding drops it. Hidden means hidden in the queried world: editor-hidden for the editor world, hiddenInGame for world=pie; includeHidden keeps them. Each row: label, path, class, folderPath, location, rotation, scale, bounds{origin,extent,min,max,source}, contained, editorHidden, hiddenInGame. Rows are sorted by label; limit (default 200, max 2000) reports total and truncated (#1564).", "actors_in_box"),
145
178
  snap_instances_to_surface: specBp("mutate", "Project ISMC/HISMC instances down onto surface geometry, preserving each instance's rotation and scale. Dry-run by default: preflights every requested instance and reports what would move before anything does, then applies successful projections in one transaction with rollback. Filter the surfaces traced against with surfaceActorClass/surfaceActorLabels so instances do not snap onto each other. onMiss controls whether a miss aborts the batch or is skipped. Does not save packages (#905).", "snap_instances_to_surface"),
146
179
  summarize_static_mesh_usage: specBp("read", "Read-only inventory of which static meshes are actually placed in the loaded world, aggregated in one game-thread scan instead of walking every actor and component. This is the action for placement counts, and query_components is not a substitute for it: grouping there only increments, so one HISM holding 5,000 instances counts as 1, while this SUMS real ISM/HISM instances and counts distinct actors per mesh, and it sorts every aggregate before truncating so the top N is the true top N with an exact totalUniqueMeshes. Distinguishes actors, components and placements. Results are bounded; full-scan totals are preserved alongside the truncated rows. Loads nothing and saves nothing (#903).", "summarize_static_mesh_usage"),
180
+ audit_performance: specBp("read", "Read-only scene performance audit of the loaded level, or of the box regionMin..regionMax, in one game-thread scan. Ranked, bounded lists with totals: trianglesByMesh (LOD0 triangles x placements, share of the level, Nanite flag), regions (gridSize X/Y cells by triangles and by shadowed-light overlap), instancingCandidates (one static mesh placed as at least instancingMinCount separate components, with the separate draws that costs), dynamicShadowCasters (count, movable count, costliest by triangles), lights (shadowed point/spot/rect lights by how many others their attenuation spheres touch, and stationary lights that may exceed the four stationary shadow channels), texelDensityOutliers and lightmapResolutionOutliers (outlierFactor above or below the median), naniteCandidates (static meshes at or over heavyTriangleThreshold rendering without Nanite, with blockers such as a translucent slot), and translucentOverdraw (translucent primitives that are large or stacked). Static estimates from asset and component data, not measurements; confirm with editor(analyze_trace). Never writes. dumpToFile writes every row to JSON.", "audit_level_performance"),
147
181
  snap_actor_to_floor: specBp("mutate", "Snap an actor's bounds-bottom to the first downward line-trace hit. Equivalent of the End-key shortcut, works on arbitrary geometry (not just Landscape). The actor lookup and the downward trace both run in the world named by world, so a PIE snap measures against PIE geometry (#933) (#419, #933). World Partition HLOD actors are skipped, since the editor makes them traceable but the game does not, and listed in skippedHlodActors; with only HLOD below, the call refuses until the cell is loaded. In the editor world the snap is one undo transaction and dirties the actor's package, reported as packageDirty.", "snap_actor_to_floor"),
148
182
  ...epicActions,
149
183
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"level.js","sourceRoot":"","sources":["../../src/tools/level.ts"],"names":[],"mappings":"A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AAiwB,EAAE,eAAe,CAAC;IACjzB,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,8eAA8e,EAAE,2BAA2B,CAAC;IACxjB,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,wrBAAwrB,EAAE,6BAA6B,CAAC;IACpwB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,+mCAA+mC,EAAE,yBAAyB,CAAC;IAC7qC,mBAAmB,EAAE,MAAM,CAAC,QAAQ,EAAE,kmBAAkmB,EAAE,qBAAqB,CAAC;IAChqB,GAAG,WAAW;CACf,EACD;IACE,GAAG,UAAU;IACb,qEAAqE;IACrE,0EAA0E;IAC1E,qDAAqD;IACrD,GAAG,UAAU;IACb,GAAG,YAAY,CAAC,gBAAgB,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;CAClF,CACF,CAAC"}
@@ -2,6 +2,9 @@ import { z } from "zod";
2
2
  import { categoryTool } from "../surface/category-tool.js";
3
3
  import { actions as epicActions, schema as epicSchema } from "./epic/material.generated.js";
4
4
  import { specBp, schema as specSchema } from "./specs/material.generated.js";
5
+ import { materialDiagramAction } from "./graph-diagrams.js";
6
+ import { diagramSchema } from "../diagram/action.js";
7
+ import { withInlineImage, inlineSchema } from "../dispatch/inline-image.js";
5
8
  export const materialTool = categoryTool("material", "Materials: create, read, parameters, shading, textures, and graph authoring (expression nodes, connections).", {
6
9
  insert_expression_between: specBp("mutate", "Insert an expression between an existing source and an expression input or material property. Preserves the source output and masks. Named inputs include MakeMaterialAttributes and SetMaterialAttributes. Repeating the same target, type and upstream input reports existed. Returns previousSource, expressionName and rollback restoring the original wire. Dirties the material; save explicitly.", "insert_expression_between"),
7
10
  restore_expression_insertion: specBp("mutate", "Apply an insert_expression_between rollback record: restore the exact previous source and masks and remove the inserted node. Refuses if the target changed or another wire now uses that node.", "restore_expression_insertion"),
@@ -49,7 +52,7 @@ export const materialTool = categoryTool("material", "Materials: create, read, p
49
52
  export_graph: specBp("read", "Export material graph as JSON in build_graph's shape: nodes[], connections[] and propertyConnections[], so the result imports back.", "export_material_graph"),
50
53
  import_graph: specBp("mutate", "build_graph under another name: adds the nodes, connections and propertyConnections it is given (an export_graph result imports as is).", "import_material_graph"),
51
54
  build_graph: specBp("mutate", "Add a whole node graph in one call. nodes[]: {name, class, posX?, posY?, parameterName?, group?, defaultValue?, value?, channels?, texturePath?, properties?:{UPROPERTY: value}}; name is yours and becomes the node description. connections[]: {from, fromOutput?, to, toInput?} between node names (or expressions already in the material), pins by name or index; a single-input node such as Sine takes toInput Input. propertyConnections[]: {property, from, output?}. removeExpressions[]: existing expressions to delete once the new nodes are wired, so a Custom node is replaced in one call (#1461). Every class, property and pin is checked first and a failure keeps nothing. Returns nodes[] mapping each name to its expressionName and expressionIndex.", "build_material_graph"),
52
- render_preview: specBp("mutate", "Render preview PNG.", "render_material_preview"),
55
+ render_preview: withInlineImage(specBp("mutate", "Render preview PNG. inline=true, or a longest-edge size in pixels, also returns the written image as image content, scaled down when larger.", "render_material_preview"), ["outputPath"]),
53
56
  begin_transaction: specBp("mutate", "Begin undo transaction.", "begin_material_transaction"),
54
57
  end_transaction: specBp("mutate", "End undo transaction.", "end_material_transaction"),
55
58
  // V15 Runtime Virtual Textures. Every SETTING on an RVT asset, on its
@@ -70,6 +73,7 @@ export const materialTool = categoryTool("material", "Materials: create, read, p
70
73
  set_designer_value: specBp("mutate", "Set one property on a Material Designer component (a layer, stage, value, texture UV, text renderer, the editor-only data's settings) by reflection. Uses the component's own setter when it has one (SetValue, SetOffset, SetTiling, SetText, SetEnabled, SetLayerName) so the model updates the way the Material Designer UI does; otherwise writes the property, calls PostEditChangeProperty and Update, and requests a material build. Address the component by objectPath or componentPath (both reported by read_designer), or by designerSlot? + layerIndex/layerName (+ stage? base|mask|index); componentPath and the layer forms also need assetPath or actorLabel/actorPath. Returns previousValue and a rollback (#1131).", "set_material_designer_value"),
71
74
  add_designer_layer: specBp("mutate", "Add a default layer to a Material Designer slot through UDMMaterialSlot::AddDefaultLayer, optionally naming it, then request a material build. Returns the new layer as read_designer describes it; its stages are then set with set_designer_value. designerSlot defaults to the slot mapped to materialProperty (#1131).", "add_material_designer_layer"),
72
75
  remove_designer_layer: specBp("mutate", "Remove a layer from a Material Designer slot through UDMMaterialSlot::RemoveLayer, after CanRemoveLayer agrees (a slot keeps its base layer). Address it by objectPath, or by layerIndex or layerName in a target's slot. Runs in an editor transaction; the rollback is one editor undo (#1131).", "remove_material_designer_layer"),
76
+ diagram: materialDiagramAction,
73
77
  ...epicActions,
74
78
  }, {
75
79
  ...epicSchema,
@@ -77,6 +81,8 @@ export const materialTool = categoryTool("material", "Materials: create, read, p
77
81
  // registration. A key listed again below is shared with hand-written
78
82
  // actions, and tests/unit/handler-specs.test.ts holds the two to one type.
79
83
  ...specSchema,
84
+ ...diagramSchema({ ...epicSchema, ...specSchema }),
85
+ ...inlineSchema,
80
86
  // The spec cannot carry bounds; these keep them, with the type the spec declares.
81
87
  slotIndex: z.number().int().min(0).optional().describe("read_instance / *_designer*: material slot index on the mesh component (default 0) (#1114/#1131)"),
82
88
  layerIndex: z.number().int().min(0).optional().describe("Material Designer layer index within the slot (#1131)"),
@@ -1 +1 @@
1
- {"version":3,"file":"material.js","sourceRoot":"","sources":["../../src/tools/material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAY,YAAY,CAC/C,UAAU,EACV,8GAA8G,EAC9G;IACE,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,yYAAyY,EAAE,2BAA2B,CAAC;I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", "Networking and replica
12
12
  set_priority: specBp("mutate", "Set NetPriority on a Blueprint's CDO. Reports existed=true and unchanged=true when the value is already nearly equal to the one asked for, and otherwise rolls back to the float the property held, with nothing lost.", "set_net_priority"),
13
13
  set_replicate_movement: specBp("mutate", "Set replicated movement on a Blueprint's CDO. Reports existed=true and unchanged=true when the class already had this value, and otherwise rolls back through this same action with the previous flag, with nothing lost.", "set_replicate_movement"),
14
14
  get_info: specBp("read", "Get networking info.", "get_networking_info"),
15
+ audit_replication: specBp("read", "Project-wide replication audit over native and Blueprint classes. Each class row lists its replicated properties (lifetime condition, push-based, RepNotify function and its REPNOTIFY condition, read from the class's own GetLifetimeReplicatedProps), its RPCs (Server / Client / NetMulticast, reliable, validated) and, for actors and components, the replication settings on its defaults (replicates, netDormancy, netCullDistanceSquared, update frequencies, priority, relevancy). findings name each problem visible from the class alone: repNotifyFunctionMissing, onRepWithoutReplicatedProperty, replicatedPropertyNotRegistered, replicatedPropertyOnNonReplicatingClass, reliableMulticast, and serverRpcWithoutValidation when requireServerValidation=true. Native scope is the project's modules and project plugins unless includeEngine=true; Blueprints come from path (default /Game). Classes with findings sort first; totals stay complete when rows are cut at limit, and dumpToFile writes every row to a JSON file.", "audit_replication"),
15
16
  }, {
16
17
  // #1057: every key the networking handlers declare, generated from their
17
18
  // C++ registrations.
@@ -1 +1 @@
1
- {"version":3,"file":"networking.js","sourceRoot":"","sources":["../../src/tools/networking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE/E,MAAM,CAAC,MAAM,cAAc,GAAY,YAAY,CACjD,YAAY,EACZ,+FAA+F,EAC/F;IACE,cAAc,EAAS,MAAM,CAAC,QAAQ,EAAE,yNAAyN,EAAE,gBAAgB,CAAC;IACpR,uBAAuB,EAAE,MAAM,CAAC,QAAQ,EAAE,wfAAwf,EA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qQAAqQ,EAAE,gCAAgC,CAAC;IAClV,YAAY,EAAW,MAAM,CAAC,QAAQ,EAAE,2ZAA2Z,EAAE,kBAAkB,CAAC;IACxd,sBAAsB,EAAE,MAAM,CAAC,QAAQ,EAAE,uVAAuV,EAAE,wBAAwB,CAAC;IAC3Z,mBAAmB,EAAI,MAAM,CAAC,QAAQ,EAAE,uNAAuN,EAAE,qBAAqB,CAAC;IACvR,0BAA0B,EAAE,MAAM,CAAC,QAAQ,EAAE,4NAA4N,EAAE,4BAA4B,CAAC;IACxS,uBAAuB,EAAE,MAAM,CAAC,QAAQ,EAAE,6QAA6Q,EAAE,6BAA6B,CAAC;IACvV,YAAY,EAAW,MAAM,CAAC,QAAQ,EAAE,wNAAwN,EAAE,kBAAkB,CAAC;IACrR,sBAAsB,EAAE,MAAM,CAAC,QAAQ,EAAE,2NAA2N,EAAE,wBAAwB,CAAC;IAC/R,QAAQ,EAAe,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,qBAAqB,CAAC;IACpF,iBAAiB,EAAM,MAAM,CAAC,MAAM,EAAE,m/BAAm/B,EAAE,mBAAmB,CAAC;CAChjC,EACD;IACE,yEAAyE;IACzE,qBAAqB;IACrB,GAAG,UAAU;CACd,CACF,CAAC"}
package/dist/tools/pcg.js CHANGED
@@ -3,6 +3,8 @@ import { categoryTool } from "../surface/category-tool.js";
3
3
  import { waitAfterRegenerate, waitForGeneration } from "./pcg-wait.js";
4
4
  import { actions as epicActions, schema as epicSchema } from "./epic/pcg.generated.js";
5
5
  import { specBp, schema as specSchema } from "./specs/pcg.generated.js";
6
+ import { pcgDiagramAction } from "./graph-diagrams.js";
7
+ import { diagramSchema } from "../diagram/action.js";
6
8
  export const pcgTool = categoryTool("pcg", "Procedural Content Generation: graphs, nodes, connections, execution, volumes.", {
7
9
  list_graphs: specBp("read", "List PCG graphs, sorted by object path. Lists the whole project; page through it with cursor/limit.", "list_pcg_graphs"),
8
10
  read_graph: specBp("read", "Read graph structure: every node with its name, title, inputPins and outputPins (the pin labels connect_nodes takes), the graph's inputNode and outputNode, and edges.", "read_pcg_graph"),
@@ -11,7 +13,10 @@ export const pcgTool = categoryTool("pcg", "Procedural Content Generation: graph
11
13
  get_component_details: specBp("read", "Inspect PCG component (#983). Reports blueprintOwned with a warning when the Blueprint's construction script builds the component (edits on the placed actor can be lost on reconstruction; use set_component_parameters with blueprintPath), isGenerating, isCleaningUp, generated, partitioned (with local component counts) and lastRun {id, state generating|generated|cancelled|cleaned|not_started, startedUtc, finishedUtc}; to wait for a run, use wait_for_generation or wait=true on execute.", "get_pcg_component_details"),
12
14
  create_graph: specBp("mutate", "Create graph in packagePath (or path), default /Game/PCG. Idempotent by path: an existing graph is reported rather than replaced.", "create_pcg_graph"),
13
15
  add_node: specBp("mutate", "Add node. The engine assigns its name unless name is given; either way nodeName in the result is what connect_nodes and remove_node take. A name already in the graph with the same class is reported as existed; another class is refused (#1331).", "add_pcg_node"),
14
- connect_nodes: specBp("mutate", "Wire nodes. Returns edgeVerified=true after confirming the UPCGEdge persisted; surfaces an error if AddEdge succeeded but no edge object was instantiated (#304). A pin label the node does not have is refused with reason pin_not_found and validPins, the labels it does have.", "connect_pcg_nodes"),
16
+ connect_nodes: specBp("mutate", "Wire nodes. Returns edgeVerified=true after confirming the UPCGEdge persisted; surfaces an error if AddEdge succeeded but no edge object was instantiated (#304). A pin label the node does not have is refused with reason pin_not_found and validPins, the labels it does have. An edge the graph refuses says why: connectionResult (InvalidNode, InvalidPin, IncompatibleTypes, RequiresFilter, RequiresConversion, CycleDetected) and connectionReason; validate_edge asks the same question without connecting (#1828).", "connect_pcg_nodes"),
17
+ validate_edge: specBp("read", "Ask whether an edge can be added without touching the graph (UPCGGraph::ValidateEdge on UE 5.9, the same node, pin, cycle and type checks before it). Pins default as connect_nodes defaults them. Returns valid, connectionResult (Success, InvalidNode, InvalidPin, IncompatibleTypes, RequiresFilter, RequiresConversion, CycleDetected), reason and alreadyConnected (#1828).", "validate_pcg_edge"),
18
+ get_custom_hlsl: specBp("read", "Read a Custom HLSL node's kernel: sourceText, functionsText, the generated declarationsText, and readOnly with kernelSourceOverride when a compute source asset supplies the kernel (#1828).", "get_pcg_custom_hlsl"),
19
+ set_custom_hlsl: specBp("mutate", "Write a Custom HLSL node's sourceText and/or functionsText, as the HLSL Source Editor does (UPCGCustomHLSLSettings::SetSourceText and SetFunctionsText on UE 5.9). Refused while a Kernel Source Override makes the node read-only. Saves the graph; returns the node's pins as they now stand, and the rollback writes the previous text (#1828).", "set_pcg_custom_hlsl"),
15
20
  disconnect_nodes: specBp("mutate", "Remove a wired edge between two PCG nodes. Omitted pins match any pin; a pin label the node does not have is refused with validPins. Returns removedEdges count (#346).", "disconnect_pcg_nodes"),
16
21
  set_node_settings: specBp("mutate", "Set node params. Pass a settings object of {propertyPath: value} (dotted paths and nested structs supported), or propertyName + propertyValue for a single write. Reports previousProperties and rolls back to them. Writing a spawner's MeshSelectorType or InstanceDataPackerType recreates its selector or packer (listed in recreatedInstancedParameters). Fields of an instanced subobject the node owns are written with a dotted key (MeshSelectorParameters.AttributeName) or a field object ({MeshSelectorParameters: {AttributeName: 'Mesh'}}), in the same call as the type that selects its class; a path for an instanced subobject, or a dotted key into an object the node does not own, is refused. Addresses the graph's DefaultInputNode and DefaultOutputNode too: writing their Pins changes the graph's own pins and those of every Subgraph node calling it. An attribute selector (TargetAttribute, InputSource1, OutputTarget...) takes the PCG editor's syntax as a string: MyAttr, $Density, @Last, $Position.Z (#1275); a selector given as an object replaces the whole selector, so fields left out (ExtraNames) reset. Returns resolvedSelectors with each written selector as stored, and removedEdges for edges a pin-changing write dropped, with a warning (#1298). readBack holds each written property as stored; struct text that left fields out (which keep their old values) adds a warning naming the property (#1299).", "set_pcg_node_settings"),
17
22
  set_static_mesh_spawner_meshes: specBp("mutate", "Populate weighted MeshEntries on a PCGStaticMeshSpawner node (#145). entries=[{mesh, weight?}]; replace defaults to true. Refuses a selector the node's settings do not own; reports selectorOuterIsSettings.", "set_static_mesh_spawner_meshes"),
@@ -56,6 +61,7 @@ export const pcgTool = categoryTool("pcg", "Procedural Content Generation: graph
56
61
  get_component_parameters: specBp("read", "Read a PCG component's graph and each graph parameter's value and override state ({name, type, value, overridden}), on a placed actor (actorLabel or actorPath) or on a Blueprint's component template (blueprintPath). componentName picks one when there are several. A placed actor's component that its Blueprint's construction script builds reports blueprintOwned and a warning: values written to the placed actor can be discarded on reconstruction, so write them to the Blueprint.", "get_pcg_component_parameters"),
57
62
  set_component_parameters: specBp("mutate", "Set a PCG component's graph parameter overrides: overrides={name: value}, null clears one. With blueprintPath it writes the Blueprint's component template (a child Blueprint gets its own override of an inherited one), compiles and saves, so every reconstruction keeps the overrides; this is the write for a PCGComponent inside a Blueprint actor. With actorLabel or actorPath it writes the placed component; when the Blueprint's construction script builds that component, the call reruns the construction script as the editor does and fails with reason discarded_by_reconstruction, naming the lost overrides and the Blueprint write to use, if they did not survive (persistedThroughReconstruction). A name the graph does not declare or a value of the wrong type refuses the whole call with nothing changed. Returns previous values and every parameter's value and override state, and rolls back to the previous values.", "set_pcg_component_parameters"),
58
63
  read_generated_output: specBp("read", "Read the data a PCG component generated, for any actor's PCG components (not only PCGVolumes): per tagged data its pin, tags, dataClass, kind (points | attributeSet | other), count, and a page of entries with the requested attributes (selectors such as $Position, $Density, $Position.Z or a metadata attribute; default the point properties plus every metadata attribute). offset/limit page the entries, and nextOffset says there are more. A partitioned component's local components are read too. Each component row also lists what the graph spawned, which a spawner does not hand to the output node: spawnedComponents [{name, class, owner, mesh, instanceCount}], spawnedInstanceCount and spawnedActors, with totals spawnedComponentCount and spawnedInstanceCount on the result. With nodeName it reads that node's output from the component's inspection instead (UE 5.8+): the first call turns inspection on and asks for a regenerate, later calls return each execution stack's data (#1309).", "read_pcg_generated_output"),
64
+ diagram: pcgDiagramAction,
59
65
  ...epicActions,
60
66
  }, {
61
67
  ...epicSchema,
@@ -63,6 +69,7 @@ export const pcgTool = categoryTool("pcg", "Procedural Content Generation: graph
63
69
  // registration. A key listed again below is shared with hand-written
64
70
  // actions, and tests/unit/handler-specs.test.ts holds the two to one type.
65
71
  ...specSchema,
72
+ ...diagramSchema({ ...epicSchema, ...specSchema }),
66
73
  runId: z.number().optional().describe("wait_for_generation: the runId execute or force_regenerate returned"),
67
74
  graceSeconds: z.number().optional().describe("wait_for_generation: with no runId and nothing generating, how long to wait for a deferred start (default 2)"),
68
75
  });
@@ -1 +1 @@
1
- {"version":3,"file":"pcg.js","sourceRoot":"","sources":["../../src/tools/pcg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAExE,MAAM,CAAC,MAAM,OAAO,GAAY,YAAY,CAC1C,KAAK,EACL,gFAAgF,EAChF;IACE,WAAW,EAAW,MAAM,CAAC,MAAM,EAAE,qGAAqG,EAAE,iBAAiB,CAAC;IAC9J,UAAU,EAAY,MAAM,CAAC,MAAM,EAAE,wKAAwK,EAAE,gBAAgB,CAAC;IAChO,kBAAkB,EAAI,MAAM,CAAC,MAAM,EAAE,mQAAmQ,EAAE,wBAAwB,CAAC;IACnU,cAAc,EAAQ,MAAM,CAAC,MAAM,EAAE,+BAA+B,EAAE,oBAAoB,CAAC;IAC3F,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,yeAAye,EAAE,2BAA2B,CAAC;IAC7iB,YAAY,EAAU,MAAM,CAAC,QAAQ,EAAE,mIAAmI,EAAE,kBAAkB,CAAC;IAC/L,QAAQ,EAAc,MAAM,CAAC,QAAQ,EAAE,qPAAqP,EAAE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EAAE,mVAAmV,EAAE,2BAA2B,CAAC;IACzZ,4BAA4B,EAAE,MAAM,CAAC,QAAQ,EAAE,uQAAuQ,EAAE,kCAAkC,CAAC;IAC3V,mBAAmB,EAAG,MAAM,CAAC,QAAQ,EAAE,qsBAAqsB,EAAE,yBAAyB,CAAC;IACxwB,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,ieAAie,EAAE,8BAA8B,CAAC;IAC3iB,wBAAwB,EAAE,MAAM,CAAC,QAAQ,EAAE,q5BAAq5B,EAAE,8BAA8B,CAAC;IACj+B,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,69BAA69B,EAAE,2BAA2B,CAAC;IACjiC,OAAO,EAAE,gBAAgB;IACzB,GAAG,WAAW;CACf,EACD;IACE,GAAG,UAAU;IACb,qEAAqE;IACrE,qEAAqE;IACrE,2EAA2E;IAC3E,GAAG,UAAU;IACb,GAAG,aAAa,CAAC,EAAE,GAAG,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qEAAqE,CAAC;IAC5G,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8GAA8G,CAAC;CAC7J,CACF,CAAC"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Turning categories, and Unreal's toolsets, on and off (#1827).
3
+ *
4
+ * Two switches, and they are different things:
5
+ *
6
+ * ue-mcp's surface `disable:` in the project's ue-mcp.yml (category-state.ts).
7
+ * Decides what this server advertises and dispatches.
8
+ * Unreal's registry UToolsetRegistrySettings BlockedNames. Decides what the
9
+ * editor's Toolset Registry, and so Epic's own MCP server
10
+ * and the AI Assistant, expose and will execute.
11
+ *
12
+ * set_category_enabled with scope `epic` (or `all`) moves both: the category's
13
+ * Epic actions leave the ue-mcp surface, and the toolsets the generator routes
14
+ * to that category are blocked in the engine. set_toolset_enabled moves only
15
+ * the engine's switch, for toolsets named directly.
16
+ *
17
+ * The engine's switch is reached three ways, in this order:
18
+ * 1. the editor's bridge answers: epic_set_toolset_enabled writes the setting
19
+ * and updates the running registry, so the change is live;
20
+ * 2. an editor has the project open but its bridge does not answer: refused,
21
+ * since a file written under a running editor either never reaches its
22
+ * registry or is overwritten when it saves its config;
23
+ * 3. no editor: the setting file is written directly (DefaultGame.ini on
24
+ * UE 5.9, the per-user EditorPerProjectUserSettings.ini on UE 5.8) and the
25
+ * change applies when the editor next starts.
26
+ */
27
+ import { z } from "zod";
28
+ import type { ActionSpec, ToolContext } from "../../core/types.js";
29
+ /** The bridge methods another part of this release adds to the `epic` category. */
30
+ export declare const SET_TOOLSETS_METHOD = "epic_set_toolset_enabled";
31
+ export declare const GET_TOOLSETS_METHOD = "epic_get_toolset_states";
32
+ /**
33
+ * Whether an editor process has this project open, whatever its bridge says.
34
+ * A live bridge instance record counts, and so does the process table. A
35
+ * probe that cannot run says nothing either way, and is not taken as running:
36
+ * refusing every editor-down write on a machine where the table cannot be
37
+ * read would leave no way to change the setting at all.
38
+ */
39
+ declare function editorHoldsProject(ctx: ToolContext): Promise<boolean>;
40
+ /** Replaceable in tests, so the editor-down and editor-running paths can be told apart without a process table. */
41
+ export declare const categoryDeps: {
42
+ editorHoldsProject: typeof editorHoldsProject;
43
+ };
44
+ /** One toolset's state as the engine reports it. */
45
+ interface ToolsetState {
46
+ name: string;
47
+ enabled: boolean;
48
+ }
49
+ /** Read epic_get_toolset_states' answer, whichever of the plausible shapes it has. */
50
+ export declare function parseToolsetStates(answer: unknown): ToolsetState[];
51
+ /** The toolsets the editor reports right now, or null without a live bridge. */
52
+ export declare function liveToolsetStates(ctx: Pick<ToolContext, "bridge">): Promise<{
53
+ states: ToolsetState[] | null;
54
+ error?: string;
55
+ }>;
56
+ export interface EngineToggle {
57
+ /** `editor` changed the running registry; `settings-file` wrote the file for the next start. */
58
+ route: "editor" | "settings-file" | "none";
59
+ toolsets: string[];
60
+ enabled: boolean;
61
+ file?: string;
62
+ fileScope?: "project" | "user";
63
+ changed?: boolean;
64
+ /** What the editor answered, when it was reached. */
65
+ editor?: unknown;
66
+ note?: string;
67
+ }
68
+ /** Turning categories and Unreal's toolsets on and off. */
69
+ export declare const categoryActions: Record<string, ActionSpec>;
70
+ /** The parameters those actions take, merged into the project category's schema. */
71
+ export declare const categorySchema: Record<string, z.ZodType>;
72
+ /** Whether a `disable:` entry names a scope rather than a whole category. */
73
+ export declare function isScopedEntry(entry: string): boolean;
74
+ export {};