hoi4-agent-tools 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/CHANGELOG.md +12 -118
  2. package/README.md +35 -127
  3. package/SECURITY.md +5 -7
  4. package/dist/bin/http.js +0 -1
  5. package/dist/bin/setup.js +141 -92
  6. package/dist/bin/stdio.js +0 -1
  7. package/dist/hoi4_agent_tools/core/artifacts.js +0 -1
  8. package/dist/hoi4_agent_tools/core/canonical.js +0 -1
  9. package/dist/hoi4_agent_tools/core/configuration.js +28 -28
  10. package/dist/hoi4_agent_tools/core/diagnostic-collector.js +0 -1
  11. package/dist/hoi4_agent_tools/core/diagnostics.js +0 -1
  12. package/dist/hoi4_agent_tools/core/diff.js +0 -1
  13. package/dist/hoi4_agent_tools/core/engine.js +6 -21
  14. package/dist/hoi4_agent_tools/core/image-diff.js +0 -1
  15. package/dist/hoi4_agent_tools/core/index.js +0 -1
  16. package/dist/hoi4_agent_tools/core/render-budget.js +0 -1
  17. package/dist/hoi4_agent_tools/core/result.js +0 -1
  18. package/dist/hoi4_agent_tools/core/scanner.js +0 -1
  19. package/dist/hoi4_agent_tools/core/server-state.js +0 -1
  20. package/dist/hoi4_agent_tools/core/source/encoding.js +0 -1
  21. package/dist/hoi4_agent_tools/core/source/index.js +0 -1
  22. package/dist/hoi4_agent_tools/core/source/lexer.js +0 -1
  23. package/dist/hoi4_agent_tools/core/source/limits.js +0 -1
  24. package/dist/hoi4_agent_tools/core/source/localisation.js +0 -1
  25. package/dist/hoi4_agent_tools/core/source/parser.js +0 -1
  26. package/dist/hoi4_agent_tools/core/source/rewrite.js +0 -1
  27. package/dist/hoi4_agent_tools/core/svg-text.js +0 -1
  28. package/dist/hoi4_agent_tools/core/transaction-limits.js +0 -1
  29. package/dist/hoi4_agent_tools/core/transactions.js +2 -30
  30. package/dist/hoi4_agent_tools/core/workspace.js +112 -396
  31. package/dist/hoi4_agent_tools/focus/compiler.js +0 -1
  32. package/dist/hoi4_agent_tools/focus/continuous-render.js +0 -1
  33. package/dist/hoi4_agent_tools/focus/drift.js +0 -1
  34. package/dist/hoi4_agent_tools/focus/geometry.js +0 -1
  35. package/dist/hoi4_agent_tools/focus/importer.js +0 -1
  36. package/dist/hoi4_agent_tools/focus/index.js +0 -1
  37. package/dist/hoi4_agent_tools/focus/layout.js +0 -1
  38. package/dist/hoi4_agent_tools/focus/limits.js +0 -1
  39. package/dist/hoi4_agent_tools/focus/lint.js +0 -1
  40. package/dist/hoi4_agent_tools/focus/model.js +0 -1
  41. package/dist/hoi4_agent_tools/focus/native-effects.js +0 -1
  42. package/dist/hoi4_agent_tools/focus/planning.js +0 -1
  43. package/dist/hoi4_agent_tools/focus/presentation.js +0 -1
  44. package/dist/hoi4_agent_tools/focus/render.js +0 -1
  45. package/dist/hoi4_agent_tools/focus/service.js +7 -8
  46. package/dist/hoi4_agent_tools/focus/source-update.js +1 -2
  47. package/dist/hoi4_agent_tools/gui/animation-manifest.js +0 -1
  48. package/dist/hoi4_agent_tools/gui/assets.js +0 -1
  49. package/dist/hoi4_agent_tools/gui/dds.js +0 -1
  50. package/dist/hoi4_agent_tools/gui/helpers.js +1 -2
  51. package/dist/hoi4_agent_tools/gui/index.js +0 -1
  52. package/dist/hoi4_agent_tools/gui/layout.js +0 -1
  53. package/dist/hoi4_agent_tools/gui/limits.js +0 -1
  54. package/dist/hoi4_agent_tools/gui/renderer.js +0 -1
  55. package/dist/hoi4_agent_tools/gui/scenario.js +0 -1
  56. package/dist/hoi4_agent_tools/gui/source-graph.js +0 -1
  57. package/dist/hoi4_agent_tools/gui/source-patch.js +1 -2
  58. package/dist/hoi4_agent_tools/gui/studio.js +247 -104
  59. package/dist/hoi4_agent_tools/gui/tga.js +0 -1
  60. package/dist/hoi4_agent_tools/gui/types.js +0 -1
  61. package/dist/hoi4_agent_tools/gui/validators.js +0 -1
  62. package/dist/hoi4_agent_tools/map/bmp.js +0 -1
  63. package/dist/hoi4_agent_tools/map/diagnostic-limit.js +0 -1
  64. package/dist/hoi4_agent_tools/map/index.js +0 -1
  65. package/dist/hoi4_agent_tools/map/limits.js +2 -1
  66. package/dist/hoi4_agent_tools/map/model.js +0 -1
  67. package/dist/hoi4_agent_tools/map/operations.js +0 -1
  68. package/dist/hoi4_agent_tools/map/render.js +0 -1
  69. package/dist/hoi4_agent_tools/map/service.js +171 -33
  70. package/dist/hoi4_agent_tools/map/validation.js +0 -1
  71. package/dist/hoi4_agent_tools/mcp/resources/register.js +61 -187
  72. package/dist/hoi4_agent_tools/mcp/security/auth.js +1 -2
  73. package/dist/hoi4_agent_tools/mcp/server/base-tools.js +24 -750
  74. package/dist/hoi4_agent_tools/mcp/server/create.js +3 -12
  75. package/dist/hoi4_agent_tools/mcp/server/output-schemas.js +0 -71
  76. package/dist/hoi4_agent_tools/mcp/server/progress.js +0 -1
  77. package/dist/hoi4_agent_tools/mcp/server/result.js +24 -30
  78. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.js +10 -14
  79. package/dist/hoi4_agent_tools/mcp/tools/focus.js +219 -275
  80. package/dist/hoi4_agent_tools/mcp/tools/gui.js +149 -250
  81. package/dist/hoi4_agent_tools/mcp/tools/map.js +256 -337
  82. package/dist/hoi4_agent_tools/mcp/tools/mods.js +54 -0
  83. package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.js +0 -1
  84. package/dist/hoi4_agent_tools/mcp/transports/event-store.js +0 -1
  85. package/dist/hoi4_agent_tools/mcp/transports/http.js +1 -12
  86. package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.js +0 -1
  87. package/dist/hoi4_agent_tools/runtime.js +5 -2
  88. package/dist/hoi4_agent_tools/schemas/common.js +1 -2
  89. package/dist/hoi4_agent_tools/schemas/focus.js +0 -1
  90. package/dist/hoi4_agent_tools/schemas/map.js +0 -1
  91. package/dist/hoi4_agent_tools/schemas/transaction.js +0 -1
  92. package/dist/hoi4_agent_tools/version.js +1 -2
  93. package/docs/README.md +8 -21
  94. package/docs/development.md +22 -0
  95. package/docs/focus.md +40 -0
  96. package/docs/gui.md +37 -0
  97. package/docs/http.md +53 -0
  98. package/docs/map.md +39 -0
  99. package/docs/setup.md +39 -0
  100. package/package.json +10 -11
  101. package/server.json +3 -12
  102. package/dist/bin/http.d.ts +0 -3
  103. package/dist/bin/http.d.ts.map +0 -1
  104. package/dist/bin/http.js.map +0 -1
  105. package/dist/bin/setup.d.ts +0 -3
  106. package/dist/bin/setup.d.ts.map +0 -1
  107. package/dist/bin/setup.js.map +0 -1
  108. package/dist/bin/stdio.d.ts +0 -3
  109. package/dist/bin/stdio.d.ts.map +0 -1
  110. package/dist/bin/stdio.js.map +0 -1
  111. package/dist/hoi4_agent_tools/core/artifacts.d.ts +0 -117
  112. package/dist/hoi4_agent_tools/core/artifacts.d.ts.map +0 -1
  113. package/dist/hoi4_agent_tools/core/artifacts.js.map +0 -1
  114. package/dist/hoi4_agent_tools/core/canonical.d.ts +0 -13
  115. package/dist/hoi4_agent_tools/core/canonical.d.ts.map +0 -1
  116. package/dist/hoi4_agent_tools/core/canonical.js.map +0 -1
  117. package/dist/hoi4_agent_tools/core/configuration.d.ts +0 -138
  118. package/dist/hoi4_agent_tools/core/configuration.d.ts.map +0 -1
  119. package/dist/hoi4_agent_tools/core/configuration.js.map +0 -1
  120. package/dist/hoi4_agent_tools/core/diagnostic-collector.d.ts +0 -18
  121. package/dist/hoi4_agent_tools/core/diagnostic-collector.d.ts.map +0 -1
  122. package/dist/hoi4_agent_tools/core/diagnostic-collector.js.map +0 -1
  123. package/dist/hoi4_agent_tools/core/diagnostics.d.ts +0 -26
  124. package/dist/hoi4_agent_tools/core/diagnostics.d.ts.map +0 -1
  125. package/dist/hoi4_agent_tools/core/diagnostics.js.map +0 -1
  126. package/dist/hoi4_agent_tools/core/diff.d.ts +0 -22
  127. package/dist/hoi4_agent_tools/core/diff.d.ts.map +0 -1
  128. package/dist/hoi4_agent_tools/core/diff.js.map +0 -1
  129. package/dist/hoi4_agent_tools/core/engine.d.ts +0 -57
  130. package/dist/hoi4_agent_tools/core/engine.d.ts.map +0 -1
  131. package/dist/hoi4_agent_tools/core/engine.js.map +0 -1
  132. package/dist/hoi4_agent_tools/core/image-diff.d.ts +0 -14
  133. package/dist/hoi4_agent_tools/core/image-diff.d.ts.map +0 -1
  134. package/dist/hoi4_agent_tools/core/image-diff.js.map +0 -1
  135. package/dist/hoi4_agent_tools/core/index.d.ts +0 -64
  136. package/dist/hoi4_agent_tools/core/index.d.ts.map +0 -1
  137. package/dist/hoi4_agent_tools/core/index.js.map +0 -1
  138. package/dist/hoi4_agent_tools/core/index.public.d.ts +0 -16
  139. package/dist/hoi4_agent_tools/core/index.public.d.ts.map +0 -1
  140. package/dist/hoi4_agent_tools/core/index.public.js +0 -16
  141. package/dist/hoi4_agent_tools/core/index.public.js.map +0 -1
  142. package/dist/hoi4_agent_tools/core/render-budget.d.ts +0 -51
  143. package/dist/hoi4_agent_tools/core/render-budget.d.ts.map +0 -1
  144. package/dist/hoi4_agent_tools/core/render-budget.js.map +0 -1
  145. package/dist/hoi4_agent_tools/core/result.d.ts +0 -45
  146. package/dist/hoi4_agent_tools/core/result.d.ts.map +0 -1
  147. package/dist/hoi4_agent_tools/core/result.js.map +0 -1
  148. package/dist/hoi4_agent_tools/core/scanner.d.ts +0 -28
  149. package/dist/hoi4_agent_tools/core/scanner.d.ts.map +0 -1
  150. package/dist/hoi4_agent_tools/core/scanner.js.map +0 -1
  151. package/dist/hoi4_agent_tools/core/server-state.d.ts +0 -31
  152. package/dist/hoi4_agent_tools/core/server-state.d.ts.map +0 -1
  153. package/dist/hoi4_agent_tools/core/server-state.js.map +0 -1
  154. package/dist/hoi4_agent_tools/core/source/encoding.d.ts +0 -10
  155. package/dist/hoi4_agent_tools/core/source/encoding.d.ts.map +0 -1
  156. package/dist/hoi4_agent_tools/core/source/encoding.js.map +0 -1
  157. package/dist/hoi4_agent_tools/core/source/index.d.ts +0 -7
  158. package/dist/hoi4_agent_tools/core/source/index.d.ts.map +0 -1
  159. package/dist/hoi4_agent_tools/core/source/index.js.map +0 -1
  160. package/dist/hoi4_agent_tools/core/source/lexer.d.ts +0 -30
  161. package/dist/hoi4_agent_tools/core/source/lexer.d.ts.map +0 -1
  162. package/dist/hoi4_agent_tools/core/source/lexer.js.map +0 -1
  163. package/dist/hoi4_agent_tools/core/source/limits.d.ts +0 -21
  164. package/dist/hoi4_agent_tools/core/source/limits.d.ts.map +0 -1
  165. package/dist/hoi4_agent_tools/core/source/limits.js.map +0 -1
  166. package/dist/hoi4_agent_tools/core/source/localisation.d.ts +0 -20
  167. package/dist/hoi4_agent_tools/core/source/localisation.d.ts.map +0 -1
  168. package/dist/hoi4_agent_tools/core/source/localisation.js.map +0 -1
  169. package/dist/hoi4_agent_tools/core/source/parser.d.ts +0 -44
  170. package/dist/hoi4_agent_tools/core/source/parser.d.ts.map +0 -1
  171. package/dist/hoi4_agent_tools/core/source/parser.js.map +0 -1
  172. package/dist/hoi4_agent_tools/core/source/rewrite.d.ts +0 -10
  173. package/dist/hoi4_agent_tools/core/source/rewrite.d.ts.map +0 -1
  174. package/dist/hoi4_agent_tools/core/source/rewrite.js.map +0 -1
  175. package/dist/hoi4_agent_tools/core/svg-text.d.ts +0 -34
  176. package/dist/hoi4_agent_tools/core/svg-text.d.ts.map +0 -1
  177. package/dist/hoi4_agent_tools/core/svg-text.js.map +0 -1
  178. package/dist/hoi4_agent_tools/core/transaction-limits.d.ts +0 -9
  179. package/dist/hoi4_agent_tools/core/transaction-limits.d.ts.map +0 -1
  180. package/dist/hoi4_agent_tools/core/transaction-limits.js.map +0 -1
  181. package/dist/hoi4_agent_tools/core/transactions.d.ts +0 -164
  182. package/dist/hoi4_agent_tools/core/transactions.d.ts.map +0 -1
  183. package/dist/hoi4_agent_tools/core/transactions.js.map +0 -1
  184. package/dist/hoi4_agent_tools/core/workspace.d.ts +0 -68
  185. package/dist/hoi4_agent_tools/core/workspace.d.ts.map +0 -1
  186. package/dist/hoi4_agent_tools/core/workspace.js.map +0 -1
  187. package/dist/hoi4_agent_tools/focus/compiler.d.ts +0 -10
  188. package/dist/hoi4_agent_tools/focus/compiler.d.ts.map +0 -1
  189. package/dist/hoi4_agent_tools/focus/compiler.js.map +0 -1
  190. package/dist/hoi4_agent_tools/focus/continuous-render.d.ts +0 -32
  191. package/dist/hoi4_agent_tools/focus/continuous-render.d.ts.map +0 -1
  192. package/dist/hoi4_agent_tools/focus/continuous-render.js.map +0 -1
  193. package/dist/hoi4_agent_tools/focus/drift.d.ts +0 -22
  194. package/dist/hoi4_agent_tools/focus/drift.d.ts.map +0 -1
  195. package/dist/hoi4_agent_tools/focus/drift.js.map +0 -1
  196. package/dist/hoi4_agent_tools/focus/geometry.d.ts +0 -17
  197. package/dist/hoi4_agent_tools/focus/geometry.d.ts.map +0 -1
  198. package/dist/hoi4_agent_tools/focus/geometry.js.map +0 -1
  199. package/dist/hoi4_agent_tools/focus/importer.d.ts +0 -9
  200. package/dist/hoi4_agent_tools/focus/importer.d.ts.map +0 -1
  201. package/dist/hoi4_agent_tools/focus/importer.js.map +0 -1
  202. package/dist/hoi4_agent_tools/focus/index.d.ts +0 -14
  203. package/dist/hoi4_agent_tools/focus/index.d.ts.map +0 -1
  204. package/dist/hoi4_agent_tools/focus/index.js.map +0 -1
  205. package/dist/hoi4_agent_tools/focus/layout.d.ts +0 -5
  206. package/dist/hoi4_agent_tools/focus/layout.d.ts.map +0 -1
  207. package/dist/hoi4_agent_tools/focus/layout.js.map +0 -1
  208. package/dist/hoi4_agent_tools/focus/limits.d.ts +0 -9
  209. package/dist/hoi4_agent_tools/focus/limits.d.ts.map +0 -1
  210. package/dist/hoi4_agent_tools/focus/limits.js.map +0 -1
  211. package/dist/hoi4_agent_tools/focus/lint.d.ts +0 -14
  212. package/dist/hoi4_agent_tools/focus/lint.d.ts.map +0 -1
  213. package/dist/hoi4_agent_tools/focus/lint.js.map +0 -1
  214. package/dist/hoi4_agent_tools/focus/model.d.ts +0 -307
  215. package/dist/hoi4_agent_tools/focus/model.d.ts.map +0 -1
  216. package/dist/hoi4_agent_tools/focus/model.js.map +0 -1
  217. package/dist/hoi4_agent_tools/focus/native-effects.d.ts +0 -9
  218. package/dist/hoi4_agent_tools/focus/native-effects.d.ts.map +0 -1
  219. package/dist/hoi4_agent_tools/focus/native-effects.js.map +0 -1
  220. package/dist/hoi4_agent_tools/focus/planning.d.ts +0 -15
  221. package/dist/hoi4_agent_tools/focus/planning.d.ts.map +0 -1
  222. package/dist/hoi4_agent_tools/focus/planning.js.map +0 -1
  223. package/dist/hoi4_agent_tools/focus/presentation.d.ts +0 -24
  224. package/dist/hoi4_agent_tools/focus/presentation.d.ts.map +0 -1
  225. package/dist/hoi4_agent_tools/focus/presentation.js.map +0 -1
  226. package/dist/hoi4_agent_tools/focus/render.d.ts +0 -39
  227. package/dist/hoi4_agent_tools/focus/render.d.ts.map +0 -1
  228. package/dist/hoi4_agent_tools/focus/render.js.map +0 -1
  229. package/dist/hoi4_agent_tools/focus/service.d.ts +0 -82
  230. package/dist/hoi4_agent_tools/focus/service.d.ts.map +0 -1
  231. package/dist/hoi4_agent_tools/focus/service.js.map +0 -1
  232. package/dist/hoi4_agent_tools/focus/source-update.d.ts +0 -6
  233. package/dist/hoi4_agent_tools/focus/source-update.d.ts.map +0 -1
  234. package/dist/hoi4_agent_tools/focus/source-update.js.map +0 -1
  235. package/dist/hoi4_agent_tools/gui/animation-manifest.d.ts +0 -37
  236. package/dist/hoi4_agent_tools/gui/animation-manifest.d.ts.map +0 -1
  237. package/dist/hoi4_agent_tools/gui/animation-manifest.js.map +0 -1
  238. package/dist/hoi4_agent_tools/gui/assets.d.ts +0 -71
  239. package/dist/hoi4_agent_tools/gui/assets.d.ts.map +0 -1
  240. package/dist/hoi4_agent_tools/gui/assets.js.map +0 -1
  241. package/dist/hoi4_agent_tools/gui/dds.d.ts +0 -17
  242. package/dist/hoi4_agent_tools/gui/dds.d.ts.map +0 -1
  243. package/dist/hoi4_agent_tools/gui/dds.js.map +0 -1
  244. package/dist/hoi4_agent_tools/gui/helpers.d.ts +0 -101
  245. package/dist/hoi4_agent_tools/gui/helpers.d.ts.map +0 -1
  246. package/dist/hoi4_agent_tools/gui/helpers.js.map +0 -1
  247. package/dist/hoi4_agent_tools/gui/index.d.ts +0 -15
  248. package/dist/hoi4_agent_tools/gui/index.d.ts.map +0 -1
  249. package/dist/hoi4_agent_tools/gui/index.js.map +0 -1
  250. package/dist/hoi4_agent_tools/gui/layout.d.ts +0 -6
  251. package/dist/hoi4_agent_tools/gui/layout.d.ts.map +0 -1
  252. package/dist/hoi4_agent_tools/gui/layout.js.map +0 -1
  253. package/dist/hoi4_agent_tools/gui/limits.d.ts +0 -25
  254. package/dist/hoi4_agent_tools/gui/limits.d.ts.map +0 -1
  255. package/dist/hoi4_agent_tools/gui/limits.js.map +0 -1
  256. package/dist/hoi4_agent_tools/gui/renderer.d.ts +0 -18
  257. package/dist/hoi4_agent_tools/gui/renderer.d.ts.map +0 -1
  258. package/dist/hoi4_agent_tools/gui/renderer.js.map +0 -1
  259. package/dist/hoi4_agent_tools/gui/scenario.d.ts +0 -66
  260. package/dist/hoi4_agent_tools/gui/scenario.d.ts.map +0 -1
  261. package/dist/hoi4_agent_tools/gui/scenario.js.map +0 -1
  262. package/dist/hoi4_agent_tools/gui/source-graph.d.ts +0 -7
  263. package/dist/hoi4_agent_tools/gui/source-graph.d.ts.map +0 -1
  264. package/dist/hoi4_agent_tools/gui/source-graph.js.map +0 -1
  265. package/dist/hoi4_agent_tools/gui/source-patch.d.ts +0 -13
  266. package/dist/hoi4_agent_tools/gui/source-patch.d.ts.map +0 -1
  267. package/dist/hoi4_agent_tools/gui/source-patch.js.map +0 -1
  268. package/dist/hoi4_agent_tools/gui/studio.d.ts +0 -86
  269. package/dist/hoi4_agent_tools/gui/studio.d.ts.map +0 -1
  270. package/dist/hoi4_agent_tools/gui/studio.js.map +0 -1
  271. package/dist/hoi4_agent_tools/gui/tga.d.ts +0 -16
  272. package/dist/hoi4_agent_tools/gui/tga.d.ts.map +0 -1
  273. package/dist/hoi4_agent_tools/gui/tga.js.map +0 -1
  274. package/dist/hoi4_agent_tools/gui/types.d.ts +0 -322
  275. package/dist/hoi4_agent_tools/gui/types.d.ts.map +0 -1
  276. package/dist/hoi4_agent_tools/gui/types.js.map +0 -1
  277. package/dist/hoi4_agent_tools/gui/validators.d.ts +0 -8
  278. package/dist/hoi4_agent_tools/gui/validators.d.ts.map +0 -1
  279. package/dist/hoi4_agent_tools/gui/validators.js.map +0 -1
  280. package/dist/hoi4_agent_tools/map/bmp.d.ts +0 -62
  281. package/dist/hoi4_agent_tools/map/bmp.d.ts.map +0 -1
  282. package/dist/hoi4_agent_tools/map/bmp.js.map +0 -1
  283. package/dist/hoi4_agent_tools/map/diagnostic-limit.d.ts +0 -5
  284. package/dist/hoi4_agent_tools/map/diagnostic-limit.d.ts.map +0 -1
  285. package/dist/hoi4_agent_tools/map/diagnostic-limit.js.map +0 -1
  286. package/dist/hoi4_agent_tools/map/index.d.ts +0 -8
  287. package/dist/hoi4_agent_tools/map/index.d.ts.map +0 -1
  288. package/dist/hoi4_agent_tools/map/index.js.map +0 -1
  289. package/dist/hoi4_agent_tools/map/limits.d.ts +0 -13
  290. package/dist/hoi4_agent_tools/map/limits.d.ts.map +0 -1
  291. package/dist/hoi4_agent_tools/map/limits.js.map +0 -1
  292. package/dist/hoi4_agent_tools/map/model.d.ts +0 -269
  293. package/dist/hoi4_agent_tools/map/model.d.ts.map +0 -1
  294. package/dist/hoi4_agent_tools/map/model.js.map +0 -1
  295. package/dist/hoi4_agent_tools/map/operations.d.ts +0 -401
  296. package/dist/hoi4_agent_tools/map/operations.d.ts.map +0 -1
  297. package/dist/hoi4_agent_tools/map/operations.js.map +0 -1
  298. package/dist/hoi4_agent_tools/map/render.d.ts +0 -90
  299. package/dist/hoi4_agent_tools/map/render.d.ts.map +0 -1
  300. package/dist/hoi4_agent_tools/map/render.js.map +0 -1
  301. package/dist/hoi4_agent_tools/map/service.d.ts +0 -81
  302. package/dist/hoi4_agent_tools/map/service.d.ts.map +0 -1
  303. package/dist/hoi4_agent_tools/map/service.js.map +0 -1
  304. package/dist/hoi4_agent_tools/map/validation.d.ts +0 -23
  305. package/dist/hoi4_agent_tools/map/validation.d.ts.map +0 -1
  306. package/dist/hoi4_agent_tools/map/validation.js.map +0 -1
  307. package/dist/hoi4_agent_tools/mcp/prompts/register.d.ts +0 -4
  308. package/dist/hoi4_agent_tools/mcp/prompts/register.d.ts.map +0 -1
  309. package/dist/hoi4_agent_tools/mcp/prompts/register.js +0 -72
  310. package/dist/hoi4_agent_tools/mcp/prompts/register.js.map +0 -1
  311. package/dist/hoi4_agent_tools/mcp/registry/metadata.d.ts +0 -9
  312. package/dist/hoi4_agent_tools/mcp/registry/metadata.d.ts.map +0 -1
  313. package/dist/hoi4_agent_tools/mcp/registry/metadata.js +0 -10
  314. package/dist/hoi4_agent_tools/mcp/registry/metadata.js.map +0 -1
  315. package/dist/hoi4_agent_tools/mcp/resources/register.d.ts +0 -5
  316. package/dist/hoi4_agent_tools/mcp/resources/register.d.ts.map +0 -1
  317. package/dist/hoi4_agent_tools/mcp/resources/register.js.map +0 -1
  318. package/dist/hoi4_agent_tools/mcp/security/auth.d.ts +0 -24
  319. package/dist/hoi4_agent_tools/mcp/security/auth.d.ts.map +0 -1
  320. package/dist/hoi4_agent_tools/mcp/security/auth.js.map +0 -1
  321. package/dist/hoi4_agent_tools/mcp/server/base-tools.d.ts +0 -47
  322. package/dist/hoi4_agent_tools/mcp/server/base-tools.d.ts.map +0 -1
  323. package/dist/hoi4_agent_tools/mcp/server/base-tools.js.map +0 -1
  324. package/dist/hoi4_agent_tools/mcp/server/create.d.ts +0 -5
  325. package/dist/hoi4_agent_tools/mcp/server/create.d.ts.map +0 -1
  326. package/dist/hoi4_agent_tools/mcp/server/create.js.map +0 -1
  327. package/dist/hoi4_agent_tools/mcp/server/output-schemas.d.ts +0 -138
  328. package/dist/hoi4_agent_tools/mcp/server/output-schemas.d.ts.map +0 -1
  329. package/dist/hoi4_agent_tools/mcp/server/output-schemas.js.map +0 -1
  330. package/dist/hoi4_agent_tools/mcp/server/progress.d.ts +0 -8
  331. package/dist/hoi4_agent_tools/mcp/server/progress.d.ts.map +0 -1
  332. package/dist/hoi4_agent_tools/mcp/server/progress.js.map +0 -1
  333. package/dist/hoi4_agent_tools/mcp/server/result.d.ts +0 -232
  334. package/dist/hoi4_agent_tools/mcp/server/result.d.ts.map +0 -1
  335. package/dist/hoi4_agent_tools/mcp/server/result.js.map +0 -1
  336. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.d.ts +0 -31
  337. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.d.ts.map +0 -1
  338. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.js.map +0 -1
  339. package/dist/hoi4_agent_tools/mcp/tools/focus.d.ts +0 -5
  340. package/dist/hoi4_agent_tools/mcp/tools/focus.d.ts.map +0 -1
  341. package/dist/hoi4_agent_tools/mcp/tools/focus.js.map +0 -1
  342. package/dist/hoi4_agent_tools/mcp/tools/gui.d.ts +0 -117
  343. package/dist/hoi4_agent_tools/mcp/tools/gui.d.ts.map +0 -1
  344. package/dist/hoi4_agent_tools/mcp/tools/gui.js.map +0 -1
  345. package/dist/hoi4_agent_tools/mcp/tools/map.d.ts +0 -5
  346. package/dist/hoi4_agent_tools/mcp/tools/map.d.ts.map +0 -1
  347. package/dist/hoi4_agent_tools/mcp/tools/map.js.map +0 -1
  348. package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.d.ts +0 -58
  349. package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.d.ts.map +0 -1
  350. package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.js.map +0 -1
  351. package/dist/hoi4_agent_tools/mcp/transports/event-store.d.ts +0 -26
  352. package/dist/hoi4_agent_tools/mcp/transports/event-store.d.ts.map +0 -1
  353. package/dist/hoi4_agent_tools/mcp/transports/event-store.js.map +0 -1
  354. package/dist/hoi4_agent_tools/mcp/transports/http.d.ts +0 -28
  355. package/dist/hoi4_agent_tools/mcp/transports/http.d.ts.map +0 -1
  356. package/dist/hoi4_agent_tools/mcp/transports/http.js.map +0 -1
  357. package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.d.ts +0 -15
  358. package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.d.ts.map +0 -1
  359. package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.js.map +0 -1
  360. package/dist/hoi4_agent_tools/runtime.d.ts +0 -4
  361. package/dist/hoi4_agent_tools/runtime.d.ts.map +0 -1
  362. package/dist/hoi4_agent_tools/runtime.js.map +0 -1
  363. package/dist/hoi4_agent_tools/schemas/common.d.ts +0 -74
  364. package/dist/hoi4_agent_tools/schemas/common.d.ts.map +0 -1
  365. package/dist/hoi4_agent_tools/schemas/common.js.map +0 -1
  366. package/dist/hoi4_agent_tools/schemas/focus.d.ts +0 -784
  367. package/dist/hoi4_agent_tools/schemas/focus.d.ts.map +0 -1
  368. package/dist/hoi4_agent_tools/schemas/focus.js.map +0 -1
  369. package/dist/hoi4_agent_tools/schemas/index.d.ts +0 -5
  370. package/dist/hoi4_agent_tools/schemas/index.d.ts.map +0 -1
  371. package/dist/hoi4_agent_tools/schemas/index.js +0 -5
  372. package/dist/hoi4_agent_tools/schemas/index.js.map +0 -1
  373. package/dist/hoi4_agent_tools/schemas/map.d.ts +0 -654
  374. package/dist/hoi4_agent_tools/schemas/map.d.ts.map +0 -1
  375. package/dist/hoi4_agent_tools/schemas/map.js.map +0 -1
  376. package/dist/hoi4_agent_tools/schemas/transaction.d.ts +0 -259
  377. package/dist/hoi4_agent_tools/schemas/transaction.d.ts.map +0 -1
  378. package/dist/hoi4_agent_tools/schemas/transaction.js.map +0 -1
  379. package/dist/hoi4_agent_tools/version.d.ts +0 -6
  380. package/dist/hoi4_agent_tools/version.d.ts.map +0 -1
  381. package/dist/hoi4_agent_tools/version.js.map +0 -1
  382. package/dist/index.d.ts +0 -3
  383. package/dist/index.d.ts.map +0 -1
  384. package/dist/index.js +0 -3
  385. package/dist/index.js.map +0 -1
  386. package/docs/adr/0001-runtime-and-language.md +0 -16
  387. package/docs/adr/0002-lossless-source-model.md +0 -18
  388. package/docs/adr/0003-image-and-font-codecs.md +0 -18
  389. package/docs/adr/0004-focus-layout.md +0 -16
  390. package/docs/adr/0005-offline-rendering.md +0 -18
  391. package/docs/adr/0006-mcp-sdk-and-protocol.md +0 -16
  392. package/docs/adr/0007-storage-and-transactions.md +0 -24
  393. package/docs/adr/0008-test-strategy.md +0 -18
  394. package/docs/adr/0009-packaging-and-registry.md +0 -16
  395. package/docs/adr/0010-unsupported-and-refusal-policy.md +0 -18
  396. package/docs/adr/0011-http-security.md +0 -16
  397. package/docs/adr/0012-autonomous-rewrites.md +0 -55
  398. package/docs/adr/README.md +0 -14
  399. package/docs/agent-integration.md +0 -146
  400. package/docs/architecture.md +0 -76
  401. package/docs/artifacts.md +0 -136
  402. package/docs/compatibility.md +0 -33
  403. package/docs/completion-report.md +0 -122
  404. package/docs/configuration.md +0 -305
  405. package/docs/focus-workflow.md +0 -197
  406. package/docs/gui-workflow.md +0 -125
  407. package/docs/limitations.md +0 -32
  408. package/docs/map-workflow.md +0 -95
  409. package/docs/performance.md +0 -117
  410. package/docs/release.md +0 -222
  411. package/docs/research/mcp-2026-07-10.md +0 -52
  412. package/docs/research/source-ledger.md +0 -68
  413. package/docs/security.md +0 -145
  414. package/docs/self-hosting.md +0 -170
  415. package/docs/testing.md +0 -43
  416. package/docs/third-party-notices.md +0 -11
  417. package/docs/transactions.md +0 -180
  418. package/docs/troubleshooting.md +0 -54
  419. package/schemas/configuration.schema.json +0 -795
  420. package/schemas/continuous-focus-palette.schema.json +0 -325
  421. package/schemas/focus-plan.schema.json +0 -927
  422. package/schemas/focus-planning-sidecar.schema.json +0 -379
  423. package/schemas/gui-animation-source.schema.json +0 -176
  424. package/schemas/gui-helper.schema.json +0 -301
  425. package/schemas/gui-scenario.schema.json +0 -298
  426. package/schemas/map-operation.schema.json +0 -2284
  427. package/schemas/operation-result.schema.json +0 -344
  428. package/schemas/transaction-manifest.schema.json +0 -685
@@ -1 +0,0 @@
1
- {"version":3,"file":"map.js","sourceRoot":"","sources":["../../../src/hoi4_agent_tools/schemas/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC9C,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;AAC5C,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3C,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3D,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,MAAM,SAAS,GAAG,CAAC;KAChB,MAAM,CAAC;IACN,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACnC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,C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,EAAE;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACrE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IAChF,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC3B,WAAW,EAAE,UAAU,CAAC,QAAQ,EAAE;QAClC,cAAc,EAAE,SAAS,CAAC,QAAQ,EAAE;KACrC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -1,259 +0,0 @@
1
- import { z } from 'zod/v4';
2
- export declare const artifactLinkSchema: z.ZodObject<{
3
- uri: z.ZodURL;
4
- name: z.ZodString;
5
- mimeType: z.ZodString;
6
- size: z.ZodOptional<z.ZodNumber>;
7
- sha256: z.ZodOptional<z.ZodString>;
8
- description: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strict>;
10
- export declare const validationSummarySchema: z.ZodObject<{
11
- passed: z.ZodBoolean;
12
- checks: z.ZodArray<z.ZodObject<{
13
- id: z.ZodString;
14
- passed: z.ZodBoolean;
15
- message: z.ZodString;
16
- }, z.core.$strict>>;
17
- }, z.core.$strict>;
18
- export declare const transactionManifestSchema: z.ZodObject<{
19
- version: z.ZodLiteral<1>;
20
- revision: z.ZodNumber;
21
- transactionId: z.ZodString;
22
- workspaceId: z.ZodString;
23
- principal: z.ZodOptional<z.ZodString>;
24
- rootFingerprint: z.ZodString;
25
- createdAt: z.ZodISODateTime;
26
- expiresAt: z.ZodISODateTime;
27
- state: z.ZodEnum<{
28
- applied: "applied";
29
- failed: "failed";
30
- planned: "planned";
31
- applying: "applying";
32
- rolling_back: "rolling_back";
33
- rolled_back: "rolled_back";
34
- }>;
35
- planPayload: z.ZodObject<{
36
- version: z.ZodLiteral<1>;
37
- workspaceId: z.ZodString;
38
- principal: z.ZodNullable<z.ZodString>;
39
- rootFingerprint: z.ZodString;
40
- operationKind: z.ZodString;
41
- operations: z.ZodArray<z.ZodObject<{
42
- id: z.ZodString;
43
- kind: z.ZodString;
44
- summary: z.ZodString;
45
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
46
- }, z.core.$strict>>;
47
- readDependencies: z.ZodArray<z.ZodObject<{
48
- rootKind: z.ZodEnum<{
49
- mod: "mod";
50
- game: "game";
51
- dependency: "dependency";
52
- artifact: "artifact";
53
- cache: "cache";
54
- fixture: "fixture";
55
- }>;
56
- loadOrder: z.ZodNumber;
57
- relativePath: z.ZodString;
58
- sha256: z.ZodString;
59
- }, z.core.$strict>>;
60
- files: z.ZodArray<z.ZodObject<{
61
- relativePath: z.ZodString;
62
- operationIds: z.ZodArray<z.ZodString>;
63
- beforeSha256: z.ZodNullable<z.ZodString>;
64
- afterSha256: z.ZodNullable<z.ZodString>;
65
- beforeSize: z.ZodNullable<z.ZodNumber>;
66
- afterSize: z.ZodNullable<z.ZodNumber>;
67
- beforeBlob: z.ZodNullable<z.ZodString>;
68
- afterBlob: z.ZodNullable<z.ZodString>;
69
- mediaType: z.ZodString;
70
- }, z.core.$strict>>;
71
- diagnostics: z.ZodArray<z.ZodObject<{
72
- code: z.ZodString;
73
- severity: z.ZodEnum<{
74
- info: "info";
75
- warning: "warning";
76
- error: "error";
77
- blocker: "blocker";
78
- }>;
79
- category: z.ZodEnum<{
80
- syntax: "syntax";
81
- reference: "reference";
82
- layout: "layout";
83
- design: "design";
84
- rendering: "rendering";
85
- security: "security";
86
- transaction: "transaction";
87
- map: "map";
88
- configuration: "configuration";
89
- }>;
90
- message: z.ZodString;
91
- location: z.ZodOptional<z.ZodObject<{
92
- path: z.ZodString;
93
- start: z.ZodObject<{
94
- line: z.ZodNumber;
95
- column: z.ZodNumber;
96
- offset: z.ZodNumber;
97
- }, z.core.$strict>;
98
- end: z.ZodObject<{
99
- line: z.ZodNumber;
100
- column: z.ZodNumber;
101
- offset: z.ZodNumber;
102
- }, z.core.$strict>;
103
- symbol: z.ZodOptional<z.ZodString>;
104
- }, z.core.$strict>>;
105
- related: z.ZodOptional<z.ZodArray<z.ZodObject<{
106
- path: z.ZodString;
107
- start: z.ZodObject<{
108
- line: z.ZodNumber;
109
- column: z.ZodNumber;
110
- offset: z.ZodNumber;
111
- }, z.core.$strict>;
112
- end: z.ZodObject<{
113
- line: z.ZodNumber;
114
- column: z.ZodNumber;
115
- offset: z.ZodNumber;
116
- }, z.core.$strict>;
117
- symbol: z.ZodOptional<z.ZodString>;
118
- }, z.core.$strict>>>;
119
- operationId: z.ZodOptional<z.ZodString>;
120
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
121
- }, z.core.$strict>>;
122
- validation: z.ZodObject<{
123
- passed: z.ZodBoolean;
124
- checks: z.ZodArray<z.ZodObject<{
125
- id: z.ZodString;
126
- passed: z.ZodBoolean;
127
- message: z.ZodString;
128
- }, z.core.$strict>>;
129
- }, z.core.$strict>;
130
- artifacts: z.ZodArray<z.ZodObject<{
131
- uri: z.ZodURL;
132
- name: z.ZodString;
133
- mimeType: z.ZodString;
134
- size: z.ZodOptional<z.ZodNumber>;
135
- sha256: z.ZodOptional<z.ZodString>;
136
- description: z.ZodOptional<z.ZodString>;
137
- }, z.core.$strict>>;
138
- }, z.core.$strict>;
139
- planHash: z.ZodString;
140
- integrityHash: z.ZodString;
141
- authenticationTag: z.ZodString;
142
- operationKind: z.ZodString;
143
- operations: z.ZodArray<z.ZodObject<{
144
- id: z.ZodString;
145
- kind: z.ZodString;
146
- summary: z.ZodString;
147
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
148
- }, z.core.$strict>>;
149
- readDependencies: z.ZodArray<z.ZodObject<{
150
- rootKind: z.ZodEnum<{
151
- mod: "mod";
152
- game: "game";
153
- dependency: "dependency";
154
- artifact: "artifact";
155
- cache: "cache";
156
- fixture: "fixture";
157
- }>;
158
- loadOrder: z.ZodNumber;
159
- relativePath: z.ZodString;
160
- sha256: z.ZodString;
161
- }, z.core.$strict>>;
162
- files: z.ZodArray<z.ZodObject<{
163
- relativePath: z.ZodString;
164
- operationIds: z.ZodArray<z.ZodString>;
165
- beforeSha256: z.ZodNullable<z.ZodString>;
166
- afterSha256: z.ZodNullable<z.ZodString>;
167
- beforeSize: z.ZodNullable<z.ZodNumber>;
168
- afterSize: z.ZodNullable<z.ZodNumber>;
169
- beforeBlob: z.ZodNullable<z.ZodString>;
170
- afterBlob: z.ZodNullable<z.ZodString>;
171
- mediaType: z.ZodString;
172
- diffArtifact: z.ZodOptional<z.ZodObject<{
173
- uri: z.ZodURL;
174
- name: z.ZodString;
175
- mimeType: z.ZodString;
176
- size: z.ZodOptional<z.ZodNumber>;
177
- sha256: z.ZodOptional<z.ZodString>;
178
- description: z.ZodOptional<z.ZodString>;
179
- }, z.core.$strict>>;
180
- }, z.core.$strict>>;
181
- diagnostics: z.ZodArray<z.ZodObject<{
182
- code: z.ZodString;
183
- severity: z.ZodEnum<{
184
- info: "info";
185
- warning: "warning";
186
- error: "error";
187
- blocker: "blocker";
188
- }>;
189
- category: z.ZodEnum<{
190
- syntax: "syntax";
191
- reference: "reference";
192
- layout: "layout";
193
- design: "design";
194
- rendering: "rendering";
195
- security: "security";
196
- transaction: "transaction";
197
- map: "map";
198
- configuration: "configuration";
199
- }>;
200
- message: z.ZodString;
201
- location: z.ZodOptional<z.ZodObject<{
202
- path: z.ZodString;
203
- start: z.ZodObject<{
204
- line: z.ZodNumber;
205
- column: z.ZodNumber;
206
- offset: z.ZodNumber;
207
- }, z.core.$strict>;
208
- end: z.ZodObject<{
209
- line: z.ZodNumber;
210
- column: z.ZodNumber;
211
- offset: z.ZodNumber;
212
- }, z.core.$strict>;
213
- symbol: z.ZodOptional<z.ZodString>;
214
- }, z.core.$strict>>;
215
- related: z.ZodOptional<z.ZodArray<z.ZodObject<{
216
- path: z.ZodString;
217
- start: z.ZodObject<{
218
- line: z.ZodNumber;
219
- column: z.ZodNumber;
220
- offset: z.ZodNumber;
221
- }, z.core.$strict>;
222
- end: z.ZodObject<{
223
- line: z.ZodNumber;
224
- column: z.ZodNumber;
225
- offset: z.ZodNumber;
226
- }, z.core.$strict>;
227
- symbol: z.ZodOptional<z.ZodString>;
228
- }, z.core.$strict>>>;
229
- operationId: z.ZodOptional<z.ZodString>;
230
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
231
- }, z.core.$strict>>;
232
- validation: z.ZodObject<{
233
- passed: z.ZodBoolean;
234
- checks: z.ZodArray<z.ZodObject<{
235
- id: z.ZodString;
236
- passed: z.ZodBoolean;
237
- message: z.ZodString;
238
- }, z.core.$strict>>;
239
- }, z.core.$strict>;
240
- artifacts: z.ZodArray<z.ZodObject<{
241
- uri: z.ZodURL;
242
- name: z.ZodString;
243
- mimeType: z.ZodString;
244
- size: z.ZodOptional<z.ZodNumber>;
245
- sha256: z.ZodOptional<z.ZodString>;
246
- description: z.ZodOptional<z.ZodString>;
247
- }, z.core.$strict>>;
248
- appliedFiles: z.ZodArray<z.ZodString>;
249
- rollbackStatus: z.ZodEnum<{
250
- available: "available";
251
- applied: "applied";
252
- failed: "failed";
253
- }>;
254
- failure: z.ZodOptional<z.ZodObject<{
255
- code: z.ZodString;
256
- message: z.ZodString;
257
- }, z.core.$strict>>;
258
- }, z.core.$strict>;
259
- //# sourceMappingURL=transaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/hoi4_agent_tools/schemas/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAkB3B,eAAO,MAAM,kBAAkB;;;;;;;kBASpB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;kBASzB,CAAC;AAoDZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;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BAAgB;IAC/B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAC/E,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,+BAA+B,CAAC;SACtC,GAAG,CAAC,iCAAiC,CAAC;IACzC,KAAK,EAAE,CAAC;SACL,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,kBAAkB,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SAC7F,GAAG,CAAC,qBAAqB,CAAC;IAC7B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,2BAA2B,CAAC;IACvE,UAAU,EAAE,uBAAuB;IACnC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,yBAAyB,CAAC;IACrE,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,6BAA6B,CAAC;IACrF,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1F,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const PACKAGE_NAME = "hoi4-agent-tools";
2
- export declare const PACKAGE_VERSION = "0.2.0";
3
- export declare const MCP_PROTOCOL_VERSION = "2025-11-25";
4
- export declare const CONFIG_VERSION = 1;
5
- export declare const TRANSACTION_VERSION = 1;
6
- //# sourceMappingURL=version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/hoi4_agent_tools/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAC/C,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,oBAAoB,eAA0B,CAAC;AAC5D,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,mBAAmB,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/hoi4_agent_tools/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;AAChC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './hoi4_agent_tools/core/index.public.js';
2
- export * from './hoi4_agent_tools/version.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC"}
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './hoi4_agent_tools/core/index.public.js';
2
- export * from './hoi4_agent_tools/version.js';
3
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC"}
@@ -1,16 +0,0 @@
1
- # ADR 0001: TypeScript on Node.js
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Implement one strict TypeScript package targeting Node.js 22 and 24. Source and internal services use typed discriminated unions and Zod at every untrusted boundary. The compiled package is ESM.
9
-
10
- ## Rationale
11
-
12
- The production MCP SDK is first-class in TypeScript, Node has portable binary and filesystem primitives, and the selected image/font libraries have maintained Node bindings. A single runtime avoids transport/domain duplication. Node 22 is the minimum because the pinned official Inspector requires a recent Node 22 release and Node 22 remains an LTS baseline.
13
-
14
- ## Consequences
15
-
16
- The server cannot claim operating-system filesystem atomicity across several files. It implements durable, recoverable logical transactions and documents that boundary. Native image dependencies are installed through published platform packages and verified during clean installation.
@@ -1,18 +0,0 @@
1
- # ADR 0002: Lossless token/CST source model
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Use a project-owned lossless lexer and concrete syntax tree over original bytes. Trivia, duplicate keys, ordering, unknown assignments, raw blocks, operators, and exact ranges remain in the token stream. Semantic module models reference CST ranges; edits are non-overlapping byte-preserving text replacements. A file with syntax errors or an unrepresentable target encoding is not rewritten. Each decoded file has one immutable line-start index so token, parser, localisation, and symbol locations use binary search instead of rescanning source prefixes.
9
-
10
- ## Rationale
11
-
12
- Conventional AST parsers and serializers discard comments, duplicate blocks, layout, unknown constructs, and encoding details. Those losses violate the product safety contract. Existing public Clausewitz parsers were reviewed, but their normalized object models do not provide the required no-change byte identity and targeted rewrite guarantees.
13
-
14
- ## Consequences
15
-
16
- The parser intentionally understands structure before it understands every game keyword. Modules may add semantic readers without replacing the shared CST. Unchanged files are returned from original bytes. Localisation uses its own BOM-aware line grammar because it is not Clausewitz script. Clausewitz block nesting is limited to 256 levels; an over-limit subtree is consumed iteratively and produces a blocking diagnostic rather than risking a runtime stack overflow. A file retains at most 100 source diagnostics, with the final slot replaced by an explicit truncation blocker when further lexer or parser findings exist. Recursive symbol traversal uses the same nesting boundary.
17
-
18
- Consumers distinguish targeted source access from broad inventory. A targeted read or rewrite keeps parser-limit diagnostics blocking because it cannot safely answer for that source. A broad symbol or GUI inventory records the active source as skipped, does not traverse its partial CST, and exposes bounded completeness metadata. Missing-reference diagnostics may become partial-inventory warnings only when the skipped path family could supply the missing symbol kind; unrelated skipped sources do not weaken validation. A skipped active selector such as `default.map` blocks selection for its source family instead of silently falling back to a conventional filename.
@@ -1,18 +0,0 @@
1
- # ADR 0003: Preservation codecs plus Sharp and font metrics
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Use a preservation-oriented BMP codec for source map bitmaps, dedicated DDS/TGA decoders for game textures, Sharp for deterministic compositing/SVG rasterization/PNG output, fontkit for vector font metrics and outline extraction, and a BMFont parser plus bounded atlas-crop compositor for game bitmap fonts. Map source files are never round-tripped through a generic image encoder.
9
-
10
- SVG and PNG review artifacts never delegate text rasterization to host fonts. Supplied TTF/OTF glyphs become source-hashed SVG outline paths using the scanned ascent; supplied BMFont glyphs become source-hashed atlas crops placed with parsed native size, offsets, advances, line height, baseline, and kerning. Tool-owned headings, diagnostics, and missing-workspace-font substitutions use the exact pinned `@fontsource-variable/roboto@5.2.10` Latin, Cyrillic, Greek, and Vietnamese WOFF2 files. Their combined hash is recorded in SVG markup. Roboto is redistributed under the SIL Open Font License 1.1; see [third-party notices](../third-party-notices.md).
11
-
12
- ## Rationale
13
-
14
- Current game assets include DIB40 and DIB124 BMPs, 24-bit RGB maps, indexed 8-bit maps, PNG, TGA, uncompressed and block-compressed DDS, and bitmap-font atlases. Generic decode/re-encode can change BMP headers, palettes, padding, orientation, or untouched pixels. Sharp is well maintained for generated PNG artifacts but is not the source-of-truth map writer.
15
-
16
- ## Consequences
17
-
18
- Each decoded asset reports its exact supported format. Unsupported compression or font behavior is a fidelity item and cannot be silently replaced. A deterministic project-font substitution is classified as approximated, never as supplied-font fidelity. PNG artifacts strip unstable metadata. CI generates a real BMFont atlas from the pinned redistributable font, verifies distinct glyph crops and fixed SVG placement, and locks both outline-text and complete GUI PNG byte goldens.
@@ -1,16 +0,0 @@
1
- # ADR 0004: Deterministic constraint layout
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Use a small project-owned layered constraint solver with integer coordinates, deterministic tie-breaking, stable route lanes, pinned-node constraints, mutual-exclusion spacing, incremental stability anchors, crossing counts, and explicit unsatisfied-constraint reports.
9
-
10
- ## Rationale
11
-
12
- ELK and Dagre were evaluated. They are strong general graph-layout libraries, but their floating layouts and global rearrangement behavior do not directly satisfy stable HOI4 coordinates, source-relative positions, route-family lanes, pinned nodes, or explainable blocked layouts. The focus model still keeps the solver behind an interface so a future version can adopt a library without changing public schemas.
13
-
14
- ## Consequences
15
-
16
- The solver does not change prerequisites or stack nodes to force success. New automatic nodes reject visible overlaps and mutual-exclusion gaps smaller than `nodeSpacing`, then minimize connector crossings across deterministic integer candidates. Fixed, relative, pinned, and prior-layout nodes are never moved for these presentation heuristics. When their authored constraints leave a mutual-exclusion gap or connector crossing unsatisfied, the result identifies the preserved and still-movable endpoints. These presentation findings remain warnings rather than semantic errors.
@@ -1,18 +0,0 @@
1
- # ADR 0005: Shared offline scene rendering
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Focus, GUI, and map renderers create deterministic scene data, canonical SVG/HTML/JSON, and PNG rasterizations through Sharp. Render profiles include source, asset, and font hashes; resolution; UI scale; scenario/state; schema and renderer versions; and deterministic layout inputs.
9
-
10
- Every raster path uses the shared fixed render budget before Sharp, Buffer, or typed-array pixel allocation. Axes are limited to 16,384 pixels; generated artifacts to 50,331,648 pixels; decoded source textures to 16,777,216 pixels; and all charged variants in one request to 67,108,864 pixel units. The ceilings are deliberately not operator-tunable: public schemas reject products known at admission time, while source-derived and codec-derived violations return deterministic `RENDER_*_BLOCKED` service blockers. GUI decoded rasters and extracted frames share the request budget and are cached once per source/frame. Focus raster icons are metadata-validated once per distinct URI but charged once per rendered occurrence; distinct icon URIs also share a 67,108,864-character encoded ceiling and a 33,554,432-byte decoded-input ceiling.
11
-
12
- ## Rationale
13
-
14
- An SVG-first layer supports source-linked annotations and exact vector inspection while producing real bitmap evidence. Browser screenshot rendering would add nondeterministic host/browser behavior and is unnecessary. The GUI renderer models parsed files offline and never controls the game.
15
-
16
- ## Consequences
17
-
18
- HTML artifacts are inspectable documents with no mutation endpoint. They are not editors. Cross-platform byte equality is asserted only for the tested render profile; semantic geometry and pixel thresholds cover other supported platforms. Focus/GUI graph depth, node, edge, and pair-comparison work also has fixed ceilings so validation cannot turn a bounded render into unbounded recursive or quadratic work.
@@ -1,16 +0,0 @@
1
- # ADR 0006: Stable MCP 2025-11-25 and SDK 1.29.0
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Pin `@modelcontextprotocol/sdk` 1.29.0 and implement the final MCP revision `2025-11-25`. Use `McpServer`, SDK JSON-RPC stdio serialization/deserialization behind the product's bounded newline-frame transport, and stateful `StreamableHTTPServerTransport`. Register strict tools, opaque resources, resource templates, and prompts through the official SDK.
9
-
10
- ## Rationale
11
-
12
- On 2026-07-10, `2025-11-25` remains the current final protocol. The breaking `2026-07-28` revision and split SDK v2 packages are release candidates, not the production line. The v1 SDK remains the upstream recommendation.
13
-
14
- ## Consequences
15
-
16
- Capability negotiation is tested against every revision recognized by the pinned SDK, but the product transports advertise only the supported final `2025-11-25` revision. This avoids claiming historical feature gates for current structured outputs and resource links. The project rechecks the final protocol and SDK before every release after 2026-07-28. Experimental MCP Tasks are not foundational; normal progress and cancellation are used.
@@ -1,24 +0,0 @@
1
- # ADR 0007: Per-workspace content-addressed storage and durable journals
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Store indexes, artifacts, rollback blobs, transaction manifests, and locks beneath each registered workspace's ignored `.hoi4-agent/` directory. Artifacts and blobs are content-addressed. Artifact manifests bind the canonical workspace and configured/runtime owner identity; runtime artifact roots contain an atomic hash-only ownership claim.
9
-
10
- Transactions bind the principal, workspace/root fingerprint, source hashes, plan hash, expiry, full affected-file set, validation, and rollback data. Transaction mode additionally requires a canonical non-overlapping operator `serverStateRoot`. A random 256-bit key there HMAC-authenticates the complete mutable journal, and one protected latest-revision head per cache journal prevents replay. Cache-first exact-successor reconciliation covers the single crash window without treating a recomputable public hash as authority.
11
-
12
- Apply acquires an exclusive workspace lock, rechecks preconditions, stages same-volume files, journals each replacement, validates the result, and restores original bytes on failure. Startup recovery rolls back incomplete journals before accepting writes.
13
-
14
- ## Rationale
15
-
16
- External source remains authoritative and generated storage never leaks across unrelated workspaces or runtime principals. Content hashes make cache invalidation safe. The small isolated state root supplies the secret and monotonic replay boundary that workspace files cannot provide; it is not a source database.
17
-
18
- ## Consequences
19
-
20
- Atomicity is logical and recoverable across files. Another process can briefly observe replacements in progress; the server never reports success for a mixed state. External edits make apply or rollback stale instead of being overwritten.
21
-
22
- The built-in lock and automatic crash recovery assume one host owns a workspace cache. Lock metadata includes host and process-instance evidence; a lock from another or unknown host is never cleared automatically. Shared-filesystem deployments require external single-writer coordination and explicit recovery.
23
-
24
- POSIX state/key permissions are enforced as `0700`/`0600`. Windows relies on an operator-provisioned dedicated-account DACL because Node has no portable ACL authoring API. Protected heads are removed before expired safe cache journals and retain only the latest revision, bounding server state without permitting old-cache replay.
@@ -1,18 +0,0 @@
1
- # ADR 0008: Synthetic acceptance workspaces and layered tests
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- CI uses only project-owned synthetic workspaces: a 255-focus tree, a 170-element scripted GUI, and a nontrivial 24-bit BMP mini-world. Test layers cover unit, source round-trip, property, schema, golden artifact, image comparison, bitmap diff, transaction fault/recovery, security/isolation, both MCP transports, Inspector, package installation, and Registry validation.
9
-
10
- Local opt-in tests read configured installed-game and external-mod roots without copying or modifying them. Performance reports cover cold and warm scans/layouts/renders.
11
-
12
- ## Rationale
13
-
14
- Portable CI cannot depend on proprietary content. Synthetic fixtures allow precise defect oracles and deterministic outputs, while local integration catches format drift in real installations.
15
-
16
- ## Consequences
17
-
18
- Fixture generators are maintenance tools, not completion evidence by themselves. Expanded fixtures, expected topology, goldens, and hashes are reviewed and committed. A skipped local suite is reported as environment-dependent rather than converted into a CI pass.
@@ -1,16 +0,0 @@
1
- # ADR 0009: npm package, container, and MCP Registry
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Publish the unscoped npm package `hoi4-agent-tools`, with `mcpName` set to `io.github.klimPaskov/hoi4-agent-tools`, matching the canonical case-sensitive GitHub owner used for Registry OIDC namespace ownership. The package exposes stable stdio, HTTP, and setup entry points. Build a reproducible container for self-hosted HTTP from immutable Dockerfile-frontend and base-image digests. Validate `server.json` against the Registry's 2025-12-11 schema and live validation API before immutable Registry publication.
9
-
10
- ## Rationale
11
-
12
- npm is the native distribution path for the selected runtime and is supported by the official Registry verification flow. The Registry provides discovery metadata, not package hosting.
13
-
14
- ## Consequences
15
-
16
- Package, server, schema, changelog, image, and Registry versions remain synchronized for ordinary releases. One workflow-built tarball is the npm payload and GitHub release asset, and public verification binds its bytes to npm integrity, provenance, and Registry metadata. The first npm version uses a short-lived granular access token with read/write access to **All Packages** and bypass-2FA because an unclaimed package cannot yet have a trusted publisher; that token is revoked after public verification, and later releases use the pinned npm 11 OIDC trusted-publishing path with the explicit `npm publish` allowed action. Release jobs do not restore package-manager caches. A one-time non-release GHCR push and interactive visibility change are required before the first release because new personal container packages are private by default.
@@ -1,18 +0,0 @@
1
- # ADR 0010: Explicit fidelity and refusal
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- Unknown script stays in raw CST ranges. Read-only scans may report partial semantics. A write is blocked whenever the requested edit would cross malformed syntax, ambiguous plan/script drift, an unsupported source encoding, unresolved split distribution, unknown geometry, missing authoritative IDs/colors, or a renderer-dependent value that the caller has not supplied.
9
-
10
- GUI artifacts classify fields as modelled, approximated, ignored, missing, unsupported, or unresolved. Approximations are never silently promoted to modelled behavior. Static and design heuristics never rewrite gameplay meaning automatically.
11
-
12
- ## Rationale
13
-
14
- Guessing is more dangerous than refusing in a source-modification server. Fidelity reports let coding agents distinguish useful evidence from an asserted game-equivalent result.
15
-
16
- ## Consequences
17
-
18
- The limitations catalogue is versioned and reproducible. Adding support narrows a documented category and requires fixtures. The project does not provide fallback renders or placeholder data as completion evidence.
@@ -1,16 +0,0 @@
1
- # ADR 0011: Authenticated, origin-checked Streamable HTTP
2
-
3
- - Status: accepted
4
- - Date: 2026-07-10
5
-
6
- ## Decision
7
-
8
- HTTP binds to `127.0.0.1` by default. Every request is authenticated. Loopback deployments may use long static bearer tokens loaded from environment variables. Non-loopback deployment requires an HTTPS public resource URL and JWT verification against configured OAuth/OIDC issuer, JWKS, audience, algorithms, expiry, and scopes. Protected-resource metadata is published and linked from Bearer challenges. Write-scoped tool calls are rejected at the transport with an MCP 2025-11-25 step-up challenge while the corresponding handlers independently enforce the same scope. Present origins are allowlisted, Host is validated, sessions use cryptographically secure IDs bound to principals, clients, and a monotonic scope set, and body/rate/concurrency/session limits are enforced.
9
-
10
- ## Rationale
11
-
12
- MCP sessions are routing state, not authentication. OAuth resource-server validation and principal-to-workspace grants prevent token passthrough, confused-deputy behavior, and cross-user workspace access. Origin and Host checks address DNS rebinding and browser-origin attacks.
13
-
14
- ## Consequences
15
-
16
- The server does not implement an authorization server. Operators configure a compatible issuer or keep HTTP on loopback. Stdio does not use MCP OAuth and inherits local process permissions plus the same workspace policy.
@@ -1,55 +0,0 @@
1
- # ADR 0012: Autonomous one-call rewrites over internal durable journals
2
-
3
- - Status: accepted
4
- - Date: 2026-07-12
5
-
6
- ## Context
7
-
8
- The original public write protocol exposed planning as a dry-run transaction and required a coding agent to carry a transaction ID and plan hash through separate diff, apply, status, and rollback calls. Those checks protected source integrity, but the caller choreography conflicted with the product's agent-first model: an operator had already selected the allowed roots and principals, yet an authorized agent still had to perform a second transaction-approval protocol before completing one supported edit.
9
-
10
- The integrity properties supplied by the shared transaction engine remain necessary. A multi-file HOI4 rewrite must still validate the complete proposal, reject stale input, journal exact original bytes, prevent cross-workspace access, recover from interrupted replacement, validate the written result, and restore the original state on failure.
11
-
12
- ## Decision
13
-
14
- The server remains read-only by default. An operator may explicitly opt a canonical mod workspace into effective `writePolicy: "autonomous"`. That policy authorizes the supported domain rewrite tools for the already allowlisted workspace; it does not make game, dependency, fixture, artifact, cache, state, or unrelated roots writable.
15
-
16
- The primary mutating MCP surface is one call per domain:
17
-
18
- - `focus_rewrite`
19
- - `gui_rewrite`
20
- - `map_rewrite`
21
-
22
- Each rewrite call performs one server-owned sequence:
23
-
24
- 1. authenticate and authorize the principal, workspace grant, and transport write scope;
25
- 2. resolve every target beneath the canonical writable mod root;
26
- 3. calculate the complete affected-file set and proposed bytes;
27
- 4. run mandatory in-memory validation and produce relevant source and visual evidence;
28
- 5. acquire the workspace lock and recheck roots, ownership, and all source hashes;
29
- 6. persist an authenticated internal journal containing exact before bytes and intended replacements;
30
- 7. stage and replace the affected files with recoverable logical atomicity;
31
- 8. rebuild the affected index and run mandatory post-write validation;
32
- 9. restore exact original bytes automatically if a write or required validation check fails; and
33
- 10. return the completed rewrite outcome, diagnostics, changed files, and evidence resources.
34
-
35
- A blocker detected before mutation returns without changing source. A caller does not receive or resubmit a transaction ID or expected plan hash, page through a transaction diff as an authorization step, make a separate apply call, or invoke rollback. Internal plan hashes, manifests, protected revision heads, before blobs, and recovery states remain server implementation details and audit evidence where safe to expose in sanitized form; they are not bearer capabilities or caller approval tokens.
36
-
37
- An explicitly enabled `writePolicy: "transactions"` mode may remain as a compatibility surface for existing clients. It is not the primary documentation, prompt, example, discovery, or acceptance path, and autonomous acceptance cannot depend on its manual tools.
38
-
39
- Remote deployment retains the HTTP decision in ADR 0011: every request is authenticated, present Origin and Host values are checked, non-loopback access requires the configured HTTPS OAuth/OIDC policy, write calls require write scope, sessions are credential-bound routing state, and principal-to-workspace grants remain authoritative. Runtime registration cannot elevate itself to autonomous write authority; that authority must come from operator-controlled configuration or an equally explicit operator capability for the canonical root.
40
-
41
- ADR 0007 remains authoritative for per-workspace storage, authenticated journals, locking, exact-byte recovery, and crash reconciliation. This decision supersedes only the interpretation that ADR 0007's transaction ID and plan hash must form the primary caller workflow.
42
-
43
- ## Rationale
44
-
45
- The operator's explicit workspace policy is the durable authorization decision. Repeating that decision through a server-specific multi-call confirmation protocol adds agent steps without expanding the filesystem or principal boundary. Keeping the complete safety sequence inside the mutating call gives an authorized coding agent a reliable one-call capability while retaining the protections that matter at the write boundary.
46
-
47
- Read-only scan, lint, layout, render, compare, and validation tools remain available for analysis and evidence. They are useful inputs to agent reasoning, but an autonomous rewrite does not depend on a mandatory preview transaction. A coding-agent host may still apply its own generic tool-use policy; the server protocol does not require a host-specific confirmation interface.
48
-
49
- ## Consequences
50
-
51
- Public schemas, tool descriptions, prompts, examples, and acceptance tests use the domain rewrite tools and must not require transaction IDs, expected plan hashes, manual diff/apply sequences, or explicit rollback. Successful rewrites return review and validation evidence after the server has completed its protected sequence.
52
-
53
- Recovery is automatic for failed or interrupted rewrites. Intentional reversal of a successful accepted change is a new source edit through version control or another authorized rewrite, not a caller-invoked journal rollback capability.
54
-
55
- The server still provides recoverable logical atomicity rather than an operating-system transaction. Another process may briefly observe replacement steps, while stale-source checks and final validation prevent the server from reporting success for an unverified mixed state. Shared-filesystem deployments still require single-writer coordination as specified by ADR 0007.