@wildo-ai/wildo-cli 1.1.9 → 1.1.10

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 (833) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/bin/wildo.js +0 -0
  3. package/dist/bin/wildo.js.map +1 -1
  4. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  5. package/dist/src/commands/acp/probe.command.js.map +1 -1
  6. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  7. package/dist/src/commands/align-deps.command.js.map +1 -1
  8. package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
  9. package/dist/src/commands/assets/sync.command.js.map +1 -1
  10. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  11. package/dist/src/commands/brand/propagate.command.js.map +1 -1
  12. package/dist/src/commands/build/accept.command.d.ts.map +1 -1
  13. package/dist/src/commands/build/accept.command.js.map +1 -1
  14. package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
  15. package/dist/src/commands/build/dispatches.command.js.map +1 -1
  16. package/dist/src/commands/build/next.command.d.ts.map +1 -1
  17. package/dist/src/commands/build/next.command.js.map +1 -1
  18. package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
  19. package/dist/src/commands/build/rearm.command.js.map +1 -1
  20. package/dist/src/commands/build/run.command.d.ts.map +1 -1
  21. package/dist/src/commands/build/run.command.js.map +1 -1
  22. package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
  23. package/dist/src/commands/build/tasks.command.js.map +1 -1
  24. package/dist/src/commands/compose.command.d.ts.map +1 -1
  25. package/dist/src/commands/compose.command.js.map +1 -1
  26. package/dist/src/commands/config/check-resources.command.d.ts +50 -0
  27. package/dist/src/commands/config/check-resources.command.d.ts.map +1 -0
  28. package/dist/src/commands/config/check-resources.command.js +121 -0
  29. package/dist/src/commands/config/check-resources.command.js.map +1 -0
  30. package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
  31. package/dist/src/commands/config/data-retention.command.js.map +1 -1
  32. package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
  33. package/dist/src/commands/config/document-releases.command.js.map +1 -1
  34. package/dist/src/commands/config/legal-notice.command.d.ts +17 -0
  35. package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -0
  36. package/dist/src/commands/config/legal-notice.command.js +59 -0
  37. package/dist/src/commands/config/legal-notice.command.js.map +1 -0
  38. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  39. package/dist/src/commands/config/mutate.command.js.map +1 -1
  40. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  41. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  42. package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
  43. package/dist/src/commands/config/service-consent.command.js.map +1 -1
  44. package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
  45. package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
  46. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  47. package/dist/src/commands/config/sync.command.js.map +1 -1
  48. package/dist/src/commands/config/validate.command.d.ts +8 -0
  49. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  50. package/dist/src/commands/config/validate.command.js +65 -4
  51. package/dist/src/commands/config/validate.command.js.map +1 -1
  52. package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
  53. package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
  54. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  55. package/dist/src/commands/context/coherence.command.js.map +1 -1
  56. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  57. package/dist/src/commands/context/context-command.utils.js.map +1 -1
  58. package/dist/src/commands/context/elements.command.d.ts.map +1 -1
  59. package/dist/src/commands/context/elements.command.js.map +1 -1
  60. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  61. package/dist/src/commands/context/health.command.js.map +1 -1
  62. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  63. package/dist/src/commands/context/info.command.js.map +1 -1
  64. package/dist/src/commands/context/journey.command.d.ts +8 -2
  65. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  66. package/dist/src/commands/context/journey.command.js +102 -12
  67. package/dist/src/commands/context/journey.command.js.map +1 -1
  68. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
  69. package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
  70. package/dist/src/commands/context/launch-blockers.command.d.ts +2 -1
  71. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
  72. package/dist/src/commands/context/launch-blockers.command.js +3 -2
  73. package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
  74. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  75. package/dist/src/commands/context/list.command.js.map +1 -1
  76. package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
  77. package/dist/src/commands/context/pipelines.command.js.map +1 -1
  78. package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
  79. package/dist/src/commands/context/workspace.command.js.map +1 -1
  80. package/dist/src/commands/creation/accept.command.d.ts +4 -0
  81. package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
  82. package/dist/src/commands/creation/accept.command.js +29 -4
  83. package/dist/src/commands/creation/accept.command.js.map +1 -1
  84. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  85. package/dist/src/commands/creation/answer.command.js.map +1 -1
  86. package/dist/src/commands/creation/brand-logo.command.d.ts +18 -0
  87. package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -0
  88. package/dist/src/commands/creation/brand-logo.command.js +43 -0
  89. package/dist/src/commands/creation/brand-logo.command.js.map +1 -0
  90. package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
  91. package/dist/src/commands/creation/brief.command.js.map +1 -1
  92. package/dist/src/commands/creation/deliberate.command.d.ts +2 -2
  93. package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
  94. package/dist/src/commands/creation/deliberate.command.js +2 -2
  95. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  96. package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
  97. package/dist/src/commands/creation/depth.command.js +1 -1
  98. package/dist/src/commands/creation/depth.command.js.map +1 -1
  99. package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
  100. package/dist/src/commands/creation/diff.command.js.map +1 -1
  101. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  102. package/dist/src/commands/creation/feed.command.js.map +1 -1
  103. package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
  104. package/dist/src/commands/creation/loop.command.js.map +1 -1
  105. package/dist/src/commands/creation/persona.command.d.ts +3 -2
  106. package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
  107. package/dist/src/commands/creation/persona.command.js +10 -3
  108. package/dist/src/commands/creation/persona.command.js.map +1 -1
  109. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
  110. package/dist/src/commands/creation/preflight.command.js.map +1 -1
  111. package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
  112. package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
  113. package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
  114. package/dist/src/commands/creation/propose.command.js.map +1 -1
  115. package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
  116. package/dist/src/commands/creation/pulse.command.js.map +1 -1
  117. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  118. package/dist/src/commands/creation/questions.command.js.map +1 -1
  119. package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
  120. package/dist/src/commands/creation/reason.command.js.map +1 -1
  121. package/dist/src/commands/creation/report.command.d.ts.map +1 -1
  122. package/dist/src/commands/creation/report.command.js.map +1 -1
  123. package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
  124. package/dist/src/commands/creation/revert.command.js.map +1 -1
  125. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  126. package/dist/src/commands/creation/run.command.js.map +1 -1
  127. package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
  128. package/dist/src/commands/creation/statusline.command.js.map +1 -1
  129. package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
  130. package/dist/src/commands/creation/watch.command.js.map +1 -1
  131. package/dist/src/commands/creation/why.command.d.ts +3 -1
  132. package/dist/src/commands/creation/why.command.d.ts.map +1 -1
  133. package/dist/src/commands/creation/why.command.js +28 -9
  134. package/dist/src/commands/creation/why.command.js.map +1 -1
  135. package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
  136. package/dist/src/commands/creation/writes.command.js.map +1 -1
  137. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
  138. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
  139. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  140. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  141. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  142. package/dist/src/commands/db/diff.command.js.map +1 -1
  143. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  144. package/dist/src/commands/db/generate.command.js.map +1 -1
  145. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  146. package/dist/src/commands/db/migrate.command.js.map +1 -1
  147. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  148. package/dist/src/commands/db/resolve.command.js.map +1 -1
  149. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  150. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  151. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  152. package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -1
  153. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  154. package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
  155. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  156. package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
  157. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  158. package/dist/src/commands/dev/force-stop.command.js.map +1 -1
  159. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  160. package/dist/src/commands/dev/resources.command.js.map +1 -1
  161. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  162. package/dist/src/commands/dev/start.command.js.map +1 -1
  163. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  164. package/dist/src/commands/dev/stop-all.command.js.map +1 -1
  165. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  166. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  167. package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
  168. package/dist/src/commands/docs/publish.command.js.map +1 -1
  169. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  170. package/dist/src/commands/frontend/publish.command.js.map +1 -1
  171. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  172. package/dist/src/commands/fwk/audit.command.js.map +1 -1
  173. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  174. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  175. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  176. package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
  177. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
  178. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
  179. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  180. package/dist/src/commands/fwk/graph.command.js.map +1 -1
  181. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  182. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  183. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  184. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  185. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  186. package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
  187. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  188. package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
  189. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  190. package/dist/src/commands/fwk/version-set.command.js.map +1 -1
  191. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  192. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  193. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  194. package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
  195. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  196. package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
  197. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  198. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  199. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  200. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  201. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  202. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  203. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  204. package/dist/src/commands/generate/email-preview.command.js.map +1 -1
  205. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  206. package/dist/src/commands/generate/email-status.command.js.map +1 -1
  207. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  208. package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
  209. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  210. package/dist/src/commands/generate/email-translate.command.js.map +1 -1
  211. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  212. package/dist/src/commands/generate/email.command.js.map +1 -1
  213. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  214. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  215. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  216. package/dist/src/commands/generate/labels-plan.command.js.map +1 -1
  217. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  218. package/dist/src/commands/generate/labels.command.js.map +1 -1
  219. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  220. package/dist/src/commands/generate/translate.command.js.map +1 -1
  221. package/dist/src/commands/help.command.d.ts.map +1 -1
  222. package/dist/src/commands/help.command.js.map +1 -1
  223. package/dist/src/commands/init.command.d.ts.map +1 -1
  224. package/dist/src/commands/init.command.js.map +1 -1
  225. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  226. package/dist/src/commands/local/deregister.command.js.map +1 -1
  227. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  228. package/dist/src/commands/local/dev-status.command.js.map +1 -1
  229. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  230. package/dist/src/commands/local/dev.command.js.map +1 -1
  231. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  232. package/dist/src/commands/local/doctor.command.js.map +1 -1
  233. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  234. package/dist/src/commands/local/down.command.js.map +1 -1
  235. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  236. package/dist/src/commands/local/init.command.js.map +1 -1
  237. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  238. package/dist/src/commands/local/logs.command.js.map +1 -1
  239. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  240. package/dist/src/commands/local/reinit.command.js.map +1 -1
  241. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  242. package/dist/src/commands/local/reset.command.js.map +1 -1
  243. package/dist/src/commands/local/restore.command.d.ts.map +1 -1
  244. package/dist/src/commands/local/restore.command.js.map +1 -1
  245. package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
  246. package/dist/src/commands/local/smoke.command.js.map +1 -1
  247. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  248. package/dist/src/commands/local/status.command.js.map +1 -1
  249. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  250. package/dist/src/commands/local/up.command.js.map +1 -1
  251. package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
  252. package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
  253. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  254. package/dist/src/commands/lock/check.command.js.map +1 -1
  255. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  256. package/dist/src/commands/market/generate.command.js.map +1 -1
  257. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  258. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  259. package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
  260. package/dist/src/commands/prefs/set.command.js.map +1 -1
  261. package/dist/src/commands/providers/show.command.d.ts.map +1 -1
  262. package/dist/src/commands/providers/show.command.js.map +1 -1
  263. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  264. package/dist/src/commands/registry/add.command.js.map +1 -1
  265. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  266. package/dist/src/commands/registry/info.command.js.map +1 -1
  267. package/dist/src/commands/registry/key.command.d.ts.map +1 -1
  268. package/dist/src/commands/registry/key.command.js.map +1 -1
  269. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  270. package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
  271. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  272. package/dist/src/commands/registry/login.command.js.map +1 -1
  273. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  274. package/dist/src/commands/registry/logout.command.js.map +1 -1
  275. package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
  276. package/dist/src/commands/registry/outdated.command.js.map +1 -1
  277. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  278. package/dist/src/commands/registry/ping.command.js.map +1 -1
  279. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  280. package/dist/src/commands/registry/publish.command.js.map +1 -1
  281. package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
  282. package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
  283. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  284. package/dist/src/commands/registry/remove.command.js.map +1 -1
  285. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  286. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  287. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  288. package/dist/src/commands/registry/search.command.js.map +1 -1
  289. package/dist/src/commands/registry/status.command.d.ts.map +1 -1
  290. package/dist/src/commands/registry/status.command.js.map +1 -1
  291. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  292. package/dist/src/commands/registry/update.command.js.map +1 -1
  293. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  294. package/dist/src/commands/registry/whoami.command.js.map +1 -1
  295. package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
  296. package/dist/src/commands/registry/yank.command.js.map +1 -1
  297. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  298. package/dist/src/commands/remote/create.command.js.map +1 -1
  299. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  300. package/dist/src/commands/remote/list.command.js.map +1 -1
  301. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  302. package/dist/src/commands/remote/status.command.js.map +1 -1
  303. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  304. package/dist/src/commands/remote/sync.command.js.map +1 -1
  305. package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
  306. package/dist/src/commands/secrets/github.command.js.map +1 -1
  307. package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
  308. package/dist/src/commands/secrets/list.command.js.map +1 -1
  309. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  310. package/dist/src/commands/secrets/set.command.js.map +1 -1
  311. package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
  312. package/dist/src/commands/secrets/unset.command.js.map +1 -1
  313. package/dist/src/commands/setup.command.d.ts.map +1 -1
  314. package/dist/src/commands/setup.command.js.map +1 -1
  315. package/dist/src/commands/update.command.d.ts.map +1 -1
  316. package/dist/src/commands/update.command.js.map +1 -1
  317. package/dist/src/commands/version.command.d.ts.map +1 -1
  318. package/dist/src/commands/version.command.js.map +1 -1
  319. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  320. package/dist/src/commands/website/audit.command.js.map +1 -1
  321. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  322. package/dist/src/commands/workbench/open.command.js.map +1 -1
  323. package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
  324. package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
  325. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  326. package/dist/src/commands/workbench/status.command.js.map +1 -1
  327. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  328. package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
  329. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  330. package/dist/src/infrastructure/io/file.utils.js.map +1 -1
  331. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  332. package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
  333. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  334. package/dist/src/infrastructure/io/template-processor.js.map +1 -1
  335. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  336. package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
  337. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  338. package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
  339. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  340. package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
  341. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  342. package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
  343. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  344. package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
  345. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  346. package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
  347. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  348. package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
  349. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  350. package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
  351. package/dist/src/kernel/base-command.d.ts.map +1 -1
  352. package/dist/src/kernel/base-command.js.map +1 -1
  353. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  354. package/dist/src/kernel/bootstrap.js.map +1 -1
  355. package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
  356. package/dist/src/kernel/command-index-cache.js.map +1 -1
  357. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  358. package/dist/src/kernel/command-registry.js.map +1 -1
  359. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  360. package/dist/src/kernel/command-runner.js.map +1 -1
  361. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  362. package/dist/src/kernel/command-scope-utils.js.map +1 -1
  363. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  364. package/dist/src/kernel/flag-utils.js.map +1 -1
  365. package/dist/src/kernel/hooks.d.ts.map +1 -1
  366. package/dist/src/kernel/hooks.js.map +1 -1
  367. package/dist/src/kernel/logger.d.ts.map +1 -1
  368. package/dist/src/kernel/logger.js.map +1 -1
  369. package/dist/src/kernel/types.d.ts.map +1 -1
  370. package/dist/src/kernel/types.js.map +1 -1
  371. package/dist/src/main.d.ts.map +1 -1
  372. package/dist/src/main.js.map +1 -1
  373. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  374. package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
  375. package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
  376. package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
  377. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
  378. package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
  379. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  380. package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
  381. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  382. package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
  383. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  384. package/dist/src/modules/domain/environment/module.types.js.map +1 -1
  385. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  386. package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
  387. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  388. package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
  389. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  390. package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
  391. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  392. package/dist/src/modules/domain/module.types.js.map +1 -1
  393. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  394. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  395. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  396. package/dist/src/services/application/app-env.service.js.map +1 -1
  397. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  398. package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
  399. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  400. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  401. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  402. package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
  403. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  404. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  405. package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
  406. package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
  407. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  408. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  409. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  410. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  411. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  412. package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
  413. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  414. package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
  415. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  416. package/dist/src/services/application/application-root.utils.js.map +1 -1
  417. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  418. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  419. package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
  420. package/dist/src/services/application/backend-config.paths.js.map +1 -1
  421. package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
  422. package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
  423. package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
  424. package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
  425. package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
  426. package/dist/src/services/application/creation-preflight.service.js.map +1 -1
  427. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
  428. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
  429. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  430. package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
  431. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  432. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  433. package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
  434. package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
  435. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  436. package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
  437. package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
  438. package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
  439. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
  440. package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
  441. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  442. package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
  443. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  444. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  445. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
  446. package/dist/src/services/application/provider-package-links.service.js.map +1 -1
  447. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  448. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  449. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  450. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  451. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  452. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  453. package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
  454. package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
  455. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  456. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  457. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  458. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  459. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  460. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  461. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  462. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  463. package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
  464. package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
  465. package/dist/src/services/companion/build-console.service.d.ts +62 -2
  466. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  467. package/dist/src/services/companion/build-console.service.js +70 -5
  468. package/dist/src/services/companion/build-console.service.js.map +1 -1
  469. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  470. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  471. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  472. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  473. package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
  474. package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
  475. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  476. package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
  477. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
  478. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
  479. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  480. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  481. package/dist/src/services/companion/console-fast-path.d.ts +21 -3
  482. package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
  483. package/dist/src/services/companion/console-fast-path.js +57 -12
  484. package/dist/src/services/companion/console-fast-path.js.map +1 -1
  485. package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
  486. package/dist/src/services/companion/console-verb.utils.js.map +1 -1
  487. package/dist/src/services/companion/creation-console.service.d.ts +76 -0
  488. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  489. package/dist/src/services/companion/creation-console.service.js +124 -11
  490. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  491. package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
  492. package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
  493. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  494. package/dist/src/services/companion/git-helper.service.js.map +1 -1
  495. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  496. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  497. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  498. package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
  499. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  500. package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
  501. package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
  502. package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
  503. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts +5 -3
  504. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  505. package/dist/src/services/compliance/generated-compliance-module-wiring.js +4 -2
  506. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  507. package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
  508. package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
  509. package/dist/src/services/compliance/legal-notice.generator.d.ts +45 -0
  510. package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -0
  511. package/dist/src/services/compliance/legal-notice.generator.js +97 -0
  512. package/dist/src/services/compliance/legal-notice.generator.js.map +1 -0
  513. package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
  514. package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
  515. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
  516. package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
  517. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  518. package/dist/src/services/context/context-manager.service.js.map +1 -1
  519. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  520. package/dist/src/services/context/context.schemas.js.map +1 -1
  521. package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
  522. package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
  523. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  524. package/dist/src/services/context/state-manager.service.js.map +1 -1
  525. package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
  526. package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
  527. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  528. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  529. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  530. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  531. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  532. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  533. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  534. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  535. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  536. package/dist/src/services/credentials/credentials.service.js.map +1 -1
  537. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  538. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  539. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  540. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  541. package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
  542. package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
  543. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  544. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  545. package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
  546. package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
  547. package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
  548. package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
  549. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  550. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  551. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  552. package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
  553. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  554. package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
  555. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  556. package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
  557. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  558. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  559. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  560. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  561. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  562. package/dist/src/services/data-services/data-services.service.js.map +1 -1
  563. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  564. package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
  565. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  566. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  567. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  568. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  569. package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
  570. package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
  571. package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
  572. package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
  573. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  574. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  575. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  576. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  577. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  578. package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
  579. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  580. package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
  581. package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
  582. package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
  583. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  584. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  585. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  586. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  587. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
  588. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
  589. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  590. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  591. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  592. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
  593. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  594. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  595. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  596. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  597. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  598. package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
  599. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  600. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  601. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  602. package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
  603. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  604. package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
  605. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  606. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
  607. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  608. package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
  609. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  610. package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -1
  611. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  612. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  613. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  614. package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
  615. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  616. package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
  617. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  618. package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -1
  619. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  620. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  621. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  622. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
  623. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  624. package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
  625. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  626. package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
  627. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  628. package/dist/src/services/deployment/version-compare.utils.js.map +1 -1
  629. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  630. package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
  631. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  632. package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
  633. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  634. package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
  635. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  636. package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -1
  637. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  638. package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
  639. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  640. package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
  641. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  642. package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
  643. package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
  644. package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
  645. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  646. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  647. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  648. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  649. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  650. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  651. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  652. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  653. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  654. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  655. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  656. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  657. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  658. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  659. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  660. package/dist/src/services/environment/environment-registry.service.js.map +1 -1
  661. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  662. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  663. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  664. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  665. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  666. package/dist/src/services/environment/environment.service.js.map +1 -1
  667. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
  668. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
  669. package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
  670. package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
  671. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  672. package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
  673. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  674. package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
  675. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  676. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  677. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  678. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  679. package/dist/src/services/framework/application-claude-settings.d.ts +39 -5
  680. package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
  681. package/dist/src/services/framework/application-claude-settings.js +100 -25
  682. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  683. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
  684. package/dist/src/services/framework/application-rule-imports.js.map +1 -1
  685. package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
  686. package/dist/src/services/framework/claude-plugin-compiler.js +3 -2
  687. package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
  688. package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
  689. package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
  690. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  691. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  692. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  693. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  694. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  695. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -1
  696. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  697. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  698. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  699. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  700. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  701. package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
  702. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  703. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  704. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  705. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  706. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  707. package/dist/src/services/framework/framework-release.service.js.map +1 -1
  708. package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
  709. package/dist/src/services/framework/framework-update.service.js.map +1 -1
  710. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  711. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  712. package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
  713. package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
  714. package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
  715. package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
  716. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  717. package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
  718. package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
  719. package/dist/src/services/framework/npm-registry-output.js.map +1 -1
  720. package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
  721. package/dist/src/services/framework/package-install.service.js.map +1 -1
  722. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
  723. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
  724. package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
  725. package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
  726. package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
  727. package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
  728. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
  729. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
  730. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
  731. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
  732. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
  733. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
  734. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
  735. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
  736. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
  737. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
  738. package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
  739. package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
  740. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
  741. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
  742. package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
  743. package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
  744. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
  745. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
  746. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
  747. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
  748. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  749. package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
  750. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  751. package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
  752. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  753. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  754. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  755. package/dist/src/services/generation/domain-generator.service.js.map +1 -1
  756. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  757. package/dist/src/services/generation/generator.schemas.js.map +1 -1
  758. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  759. package/dist/src/services/generation/operation-generator.service.js.map +1 -1
  760. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  761. package/dist/src/services/generation/resource-generator.service.js.map +1 -1
  762. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  763. package/dist/src/services/generation/template-registry.service.js.map +1 -1
  764. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  765. package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
  766. package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
  767. package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
  768. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  769. package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
  770. package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
  771. package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
  772. package/dist/src/services/registry/index.d.ts.map +1 -1
  773. package/dist/src/services/registry/index.js.map +1 -1
  774. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  775. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  776. package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
  777. package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
  778. package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
  779. package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
  780. package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
  781. package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
  782. package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
  783. package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
  784. package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
  785. package/dist/src/services/registry/module-registration.service.js.map +1 -1
  786. package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
  787. package/dist/src/services/registry/module-requirements.service.js.map +1 -1
  788. package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
  789. package/dist/src/services/registry/provider-install-step.js.map +1 -1
  790. package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
  791. package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
  792. package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
  793. package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
  794. package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
  795. package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
  796. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  797. package/dist/src/services/registry/registry-command.utils.js.map +1 -1
  798. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
  799. package/dist/src/services/registry/registry-config-resolver.service.js.map +1 -1
  800. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  801. package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
  802. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  803. package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
  804. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  805. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  806. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  807. package/dist/src/services/tools/utility-tools.service.js.map +1 -1
  808. package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
  809. package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
  810. package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
  811. package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
  812. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  813. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  814. package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
  815. package/dist/src/services/website/website-workspace.service.js.map +1 -1
  816. package/dist/tsconfig.build.tsbuildinfo +1 -0
  817. package/dist/tsconfig.tsbuildinfo +1 -0
  818. package/package.json +17 -17
  819. package/templates/saas/i18n/email/email-template-definitions.ts +5 -1
  820. package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +21 -1
  821. package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +1 -0
  822. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +1 -0
  823. package/templates/saas/scenarios/add-module/scenario.json +5 -0
  824. package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +14 -6
  825. package/templates/saas/scenarios/add-website/files/website/src/content/llms.txt.hbs +3 -3
  826. package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +4 -0
  827. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
  828. package/templates/saas/scenarios/add-website/files/website/src/pages/llms.txt.ts +3 -1
  829. package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +14 -0
  830. package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +5 -1
  831. package/templates/saas/skeleton/shared-lib/src/engine/roles.ts +10 -2
  832. package/templates/saas/skeleton/specifications/src/companion-exports.ts +28 -3
  833. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"installed-file-state.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/installed-file-state.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAiC,MAAM,+BAA+B,CAAC;AAClG,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;GAGG;AACH,MAAM,CAAN,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,yFAAyF;IACzF,6CAAuB,CAAA;IACvB,6GAA6G;IAC7G,uCAAiB,CAAA;IACjB;;;OAGG;IACH,yCAAmB,CAAA;IACnB,8EAA8E;IAC9E,yCAAmB,CAAA;AACrB,CAAC,EAZW,kBAAkB,KAAlB,kBAAkB,QAY7B;AAED,uEAAuE;AACvE,MAAM,CAAC,MAAM,+BAA+B,GAAoC,IAAI,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAEjJ,yEAAyE;AACzE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,YAAoB;IACrD,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AAChG,CAAC;AAED,gEAAgE;AAChE,MAAM,CA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AC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,IAK7C;IACC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACnF,IAAI,OAAO,KAAK,SAAS;gBAAE,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YACnD,SAAS;QACX,CAAC;QACD,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,cAAc,CAAC,YAAoB;IAChD,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACrE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["/**\n * Which installed module files the application changed (#2016).\n *\n * Paul, 2026-09-29: a module copied into an application (the shadcn model) is the application's to edit,\n * so updating it needs \"hash matching … with warning for potential override of the end user\". The\n * installer records the SHA-256 of every file it writes (`installedFileHashes` on the lockfile entry);\n * `update`, `remove` and `repair` compare the file on disk to that hash before touching it.\n *\n * The same shape as Debian and RPM conffile handling: a file the administrator never touched is replaced;\n * one they changed is kept, with a notice.\n */\n\nimport { createHash } from 'node:crypto';\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { Sha256DigestSchema, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';\nimport { resolveRecordedModuleFile } from './boundary-fanout.utils';\n\n/**\n * What the application has done to one installed file, measured against the hash the installer\n * recorded when it wrote it.\n */\nexport enum InstalledFileState {\n /** On disk and byte-identical to what the installer wrote: safe to replace or delete. */\n UNTOUCHED = 'untouched',\n /** On disk and different from what the installer wrote: the application changed it. Kept, with a warning. */\n EDITED = 'edited',\n /**\n * On disk, but no valid hash was recorded for it, so whether it changed cannot be known. Treated as\n * EDITED (kept, with a warning): a missing fingerprint may only make a command more careful.\n */\n UNKNOWN = 'unknown',\n /** Recorded, but not on disk: the application deleted it (or it was lost). */\n MISSING = 'missing',\n}\n\n/** States a command must not overwrite or delete without `--force`. */\nexport const PROTECTED_INSTALLED_FILE_STATES: ReadonlySet<InstalledFileState> = new Set([InstalledFileState.EDITED, InstalledFileState.UNKNOWN]);\n\n/** `sha256:<hex>` of a file's bytes, in the lockfile's digest format. */\nexport async function sha256OfFile(absolutePath: string): Promise<string> {\n return `sha256:${createHash('sha256').update(await fs.readFile(absolutePath)).digest('hex')}`;\n}\n\n/** The hash of each written file, as the installer wrote it. */\nexport async function hashWrittenFiles(saasRoot: string, appRelativePaths: readonly string[]): Promise<Record<string, string>> {\n const hashes: Record<string, string> = {};\n for (const appRelativePath of appRelativePaths) {\n hashes[appRelativePath] = await sha256OfFile(path.resolve(saasRoot, appRelativePath));\n }\n return hashes;\n}\n\n/** The recorded hash of one file, or `undefined` when none was recorded or it is malformed. */\nexport function recordedFileHash(entry: Pick<RegistryModulesLockEntry, 'installedFileHashes'>, appRelativePath: string): string | undefined {\n const recorded = entry.installedFileHashes?.[appRelativePath];\n return recorded !== undefined && Sha256DigestSchema.safeParse(recorded).success ? recorded : undefined;\n}\n\n/** Classify one recorded file of an installed module. */\nexport async function classifyInstalledFile(\n saasRoot: string,\n entry: Pick<RegistryModulesLockEntry, 'installedFileHashes'>,\n appRelativePath: string,\n): Promise<InstalledFileState> {\n const absolutePath = resolveRecordedModuleFile(saasRoot, appRelativePath);\n let isFile: boolean;\n try {\n isFile = (await fs.stat(absolutePath)).isFile();\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return InstalledFileState.MISSING;\n throw error;\n }\n if (!isFile) return InstalledFileState.UNKNOWN;\n const recorded = recordedFileHash(entry, appRelativePath);\n if (recorded === undefined) return InstalledFileState.UNKNOWN;\n return (await sha256OfFile(absolutePath)) === recorded ? InstalledFileState.UNTOUCHED : InstalledFileState.EDITED;\n}\n\n/** Classify every recorded file of an installed module, in `files` order. */\nexport async function classifyInstalledFiles(\n saasRoot: string,\n entry: Pick<RegistryModulesLockEntry, 'files' | 'installedFileHashes'>,\n): Promise<Map<string, InstalledFileState>> {\n const states = new Map<string, InstalledFileState>();\n for (const appRelativePath of entry.files) states.set(appRelativePath, await classifyInstalledFile(saasRoot, entry, appRelativePath));\n return states;\n}\n\n/**\n * Where `--force` keeps the application's version of a file before overwriting or deleting it:\n * `.wildo-saas/tmp/registry-backups/<moduleId>/<timestamp>/`. A per-run directory, so two forced runs\n * never overwrite each other's backups.\n */\nexport function registryForceBackupDirectory(saasRoot: string, moduleId: string, now: Date = new Date()): string {\n return path.join(saasRoot, '.wildo-saas', 'tmp', 'registry-backups', ...moduleId.split('/'), now.toISOString().replace(/[:.]/g, '-'));\n}\n\n/** Copy one application file into a force-backup directory, keeping its application-relative path. */\nexport async function backupApplicationFile(saasRoot: string, appRelativePath: string, backupDirectory: string): Promise<string> {\n const destination = path.join(backupDirectory, ...appRelativePath.split('/'));\n await fs.mkdir(path.dirname(destination), { recursive: true });\n await fs.copyFile(path.resolve(saasRoot, appRelativePath), destination);\n return destination;\n}\n\n/** One human line for a protected file a command left in place. */\nexport function describeProtectedFile(appRelativePath: string, state: InstalledFileState, verb: string): string {\n return state === InstalledFileState.UNKNOWN\n ? `kept ${appRelativePath}: no install hash is recorded for it, so whether you changed it cannot be told. Not ${verb}; pass --force to ${verb} it (a backup is kept).`\n : `kept ${appRelativePath}: you changed it since it was installed. Not ${verb}; pass --force to ${verb} it (a backup is kept), or merge the new version by hand.`;\n}\n\n/** A recorded file a command left in place, and why. */\nexport interface KeptInstalledFile {\n path: string;\n state: InstalledFileState;\n}\n\n/** What a write (add, update, repair) will do to each file the new version ships, decided before it writes. */\nexport interface ProtectedWritePlan {\n /** Passed to the fan-out as `skipPaths`: files that stay as the application has them. */\n skip: Set<string>;\n /** Recorded files the application changed (or that carry no hash): not overwritten. */\n kept: KeptInstalledFile[];\n /** Recorded files the application deleted: not recreated. */\n notRestored: string[];\n /** Files overwritten under `--force`, each with the backup of the application's version. */\n forced: Array<{ path: string; backup: string }>;\n}\n\n/**\n * Decide, per file the new version ships, whether a write may overwrite what is on disk (#2016):\n *\n * | recorded by this module? | on disk | action |\n * |---|---|---|\n * | yes, untouched | yes | overwrite |\n * | yes, edited or unknown | yes | keep (or `--force`: back up, then overwrite) |\n * | yes | no (deleted) | not recreated (`restoreMissing` or `--force`: recreate) |\n * | no, another module owns it | yes | overwrite, with the fan-out's overlap warning |\n * | no, NO module owns it | yes | refuse, nothing written (or `--force`: back up, then overwrite) |\n * | no | no | create |\n *\n * The refusal is collected across every file and thrown before anything is written: a new version\n * must never silently replace a file the application authored itself.\n */\nexport async function planProtectedWrite(args: {\n saasRoot: string;\n moduleId: string;\n stagedPaths: readonly string[];\n /** The module's current entry; absent for a first install. */\n recorded?: Pick<RegistryModulesLockEntry, 'files' | 'installedFileHashes'>;\n force: boolean;\n /** `repair` recreates missing files: that is what it is for. */\n restoreMissing: boolean;\n backupDirectory: string;\n /** Who else owns a path; injected so the plan can be tested without a lockfile. */\n findOtherOwners: (paths: readonly string[]) => Promise<ReadonlyMap<string, readonly string[]>>;\n}): Promise<ProtectedWritePlan> {\n const { saasRoot, moduleId, stagedPaths, recorded, force, restoreMissing, backupDirectory } = args;\n const recordedSet = new Set(recorded?.files ?? []);\n const plan: ProtectedWritePlan = { skip: new Set(), kept: [], notRestored: [], forced: [] };\n const unrecordedPresent: string[] = [];\n\n for (const stagedPath of stagedPaths) {\n if (recordedSet.has(stagedPath)) {\n const state = await classifyInstalledFile(saasRoot, recorded!, stagedPath);\n if (PROTECTED_INSTALLED_FILE_STATES.has(state)) {\n if (force) {\n plan.forced.push({ path: stagedPath, backup: await backupApplicationFile(saasRoot, stagedPath, backupDirectory) });\n } else {\n plan.skip.add(stagedPath);\n plan.kept.push({ path: stagedPath, state });\n }\n } else if (state === InstalledFileState.MISSING && !restoreMissing && !force) {\n plan.skip.add(stagedPath);\n plan.notRestored.push(stagedPath);\n }\n continue;\n }\n if (await isExistingFile(path.resolve(saasRoot, stagedPath))) unrecordedPresent.push(stagedPath);\n }\n\n if (unrecordedPresent.length > 0) {\n const owners = await args.findOtherOwners(unrecordedPresent);\n const unowned = unrecordedPresent.filter((candidate) => (owners.get(candidate) ?? []).length === 0);\n if (unowned.length > 0 && !force) {\n throw new Error(\n `Refusing to install \"${moduleId}\": it would overwrite ${unowned.length} file(s) the application has and no module installed `\n + `(${unowned.join(', ')}). Nothing was written. Move them aside, or pass --force to overwrite them (a backup is kept).`,\n );\n }\n for (const candidate of unowned) {\n plan.forced.push({ path: candidate, backup: await backupApplicationFile(saasRoot, candidate, backupDirectory) });\n }\n }\n return plan;\n}\n\n/** What a removal (remove, or an update dropping files) will do to each recorded file, decided before it deletes. */\nexport interface ProtectedRemovalPlan {\n /** Untouched files, or edited ones under `--force`: delete these. */\n remove: string[];\n /** Files the application changed (or that carry no hash): left in place, now the application's own. */\n kept: KeptInstalledFile[];\n /** Files already gone. */\n gone: string[];\n /** Files deleted under `--force`, each with the backup of the application's version. */\n forced: Array<{ path: string; backup: string }>;\n}\n\n/**\n * Decide, per recorded file about to leave the module, whether it may be deleted (#2016). An edited\n * file is kept and becomes the application's own; `--force` deletes it after a backup.\n */\nexport async function planProtectedRemoval(args: {\n saasRoot: string;\n entry: Pick<RegistryModulesLockEntry, 'installedFileHashes'>;\n paths: readonly string[];\n force: boolean;\n backupDirectory: string;\n}): Promise<ProtectedRemovalPlan> {\n const plan: ProtectedRemovalPlan = { remove: [], kept: [], gone: [], forced: [] };\n for (const recordedPath of args.paths) {\n const state = await classifyInstalledFile(args.saasRoot, args.entry, recordedPath);\n if (state === InstalledFileState.MISSING) {\n plan.gone.push(recordedPath);\n } else if (state === InstalledFileState.UNTOUCHED) {\n plan.remove.push(recordedPath);\n } else if (args.force) {\n plan.forced.push({ path: recordedPath, backup: await backupApplicationFile(args.saasRoot, recordedPath, args.backupDirectory) });\n plan.remove.push(recordedPath);\n } else {\n plan.kept.push({ path: recordedPath, state });\n }\n }\n return plan;\n}\n\n/**\n * The `installedFileHashes` to record after a write: the hash of what was WRITTEN for every file the\n * write touched, and the PREVIOUS recorded hash for every file it kept.\n *\n * Carrying the previous hash is the whole point for a kept file: recording the hash of the\n * application's edited content would make the next update see it as untouched and overwrite it.\n */\nexport async function nextInstalledFileHashes(args: {\n saasRoot: string;\n ownedFiles: readonly string[];\n skipped: ReadonlySet<string>;\n previous?: Pick<RegistryModulesLockEntry, 'installedFileHashes'>;\n}): Promise<Record<string, string>> {\n const hashes: Record<string, string> = {};\n for (const owned of args.ownedFiles) {\n if (args.skipped.has(owned)) {\n const carried = args.previous ? recordedFileHash(args.previous, owned) : undefined;\n if (carried !== undefined) hashes[owned] = carried;\n continue;\n }\n hashes[owned] = await sha256OfFile(path.resolve(args.saasRoot, owned));\n }\n return hashes;\n}\n\nasync function isExistingFile(absolutePath: string): Promise<boolean> {\n try {\n return (await fs.stat(absolutePath)).isFile();\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false;\n throw error;\n }\n}\n"]}
1
+ {"version":3,"file":"installed-file-state.utils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,MAAM,KAAK,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACnF,IAAI,OAAO,KAAK,SAAS;gBAAE,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YACnD,SAAS;QACX,CAAC;QACD,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,cAAc,CAAC,YAAoB;IAChD,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACrE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["/**\n * Which installed module files the application changed (#2016).\n *\n * Paul, 2026-09-29: a module copied into an application (the shadcn model) is the application's to edit,\n * so updating it needs \"hash matching … with warning for potential override of the end user\". The\n * installer records the SHA-256 of every file it writes (`installedFileHashes` on the lockfile entry);\n * `update`, `remove` and `repair` compare the file on disk to that hash before touching it.\n *\n * The same shape as Debian and RPM conffile handling: a file the administrator never touched is replaced;\n * one they changed is kept, with a notice.\n */\n\nimport { createHash } from 'node:crypto';\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { Sha256DigestSchema, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';\nimport { resolveRecordedModuleFile } from './boundary-fanout.utils';\n\n/**\n * What the application has done to one installed file, measured against the hash the installer\n * recorded when it wrote it.\n */\nexport enum InstalledFileState {\n /** On disk and byte-identical to what the installer wrote: safe to replace or delete. */\n UNTOUCHED = 'untouched',\n /** On disk and different from what the installer wrote: the application changed it. Kept, with a warning. */\n EDITED = 'edited',\n /**\n * On disk, but no valid hash was recorded for it, so whether it changed cannot be known. Treated as\n * EDITED (kept, with a warning): a missing fingerprint may only make a command more careful.\n */\n UNKNOWN = 'unknown',\n /** Recorded, but not on disk: the application deleted it (or it was lost). */\n MISSING = 'missing',\n}\n\n/** States a command must not overwrite or delete without `--force`. */\nexport const PROTECTED_INSTALLED_FILE_STATES: ReadonlySet<InstalledFileState> = new Set([InstalledFileState.EDITED, InstalledFileState.UNKNOWN]);\n\n/** `sha256:<hex>` of a file's bytes, in the lockfile's digest format. */\nexport async function sha256OfFile(absolutePath: string): Promise<string> {\n return `sha256:${createHash('sha256').update(await fs.readFile(absolutePath)).digest('hex')}`;\n}\n\n/** The hash of each written file, as the installer wrote it. */\nexport async function hashWrittenFiles(saasRoot: string, appRelativePaths: readonly string[]): Promise<Record<string, string>> {\n const hashes: Record<string, string> = {};\n for (const appRelativePath of appRelativePaths) {\n hashes[appRelativePath] = await sha256OfFile(path.resolve(saasRoot, appRelativePath));\n }\n return hashes;\n}\n\n/** The recorded hash of one file, or `undefined` when none was recorded or it is malformed. */\nexport function recordedFileHash(entry: Pick<RegistryModulesLockEntry, 'installedFileHashes'>, appRelativePath: string): string | undefined {\n const recorded = entry.installedFileHashes?.[appRelativePath];\n return recorded !== undefined && Sha256DigestSchema.safeParse(recorded).success ? recorded : undefined;\n}\n\n/** Classify one recorded file of an installed module. */\nexport async function classifyInstalledFile(\n saasRoot: string,\n entry: Pick<RegistryModulesLockEntry, 'installedFileHashes'>,\n appRelativePath: string,\n): Promise<InstalledFileState> {\n const absolutePath = resolveRecordedModuleFile(saasRoot, appRelativePath);\n let isFile: boolean;\n try {\n isFile = (await fs.stat(absolutePath)).isFile();\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return InstalledFileState.MISSING;\n throw error;\n }\n if (!isFile) return InstalledFileState.UNKNOWN;\n const recorded = recordedFileHash(entry, appRelativePath);\n if (recorded === undefined) return InstalledFileState.UNKNOWN;\n return (await sha256OfFile(absolutePath)) === recorded ? InstalledFileState.UNTOUCHED : InstalledFileState.EDITED;\n}\n\n/** Classify every recorded file of an installed module, in `files` order. */\nexport async function classifyInstalledFiles(\n saasRoot: string,\n entry: Pick<RegistryModulesLockEntry, 'files' | 'installedFileHashes'>,\n): Promise<Map<string, InstalledFileState>> {\n const states = new Map<string, InstalledFileState>();\n for (const appRelativePath of entry.files) states.set(appRelativePath, await classifyInstalledFile(saasRoot, entry, appRelativePath));\n return states;\n}\n\n/**\n * Where `--force` keeps the application's version of a file before overwriting or deleting it:\n * `.wildo-saas/tmp/registry-backups/<moduleId>/<timestamp>/`. A per-run directory, so two forced runs\n * never overwrite each other's backups.\n */\nexport function registryForceBackupDirectory(saasRoot: string, moduleId: string, now: Date = new Date()): string {\n return path.join(saasRoot, '.wildo-saas', 'tmp', 'registry-backups', ...moduleId.split('/'), now.toISOString().replace(/[:.]/g, '-'));\n}\n\n/** Copy one application file into a force-backup directory, keeping its application-relative path. */\nexport async function backupApplicationFile(saasRoot: string, appRelativePath: string, backupDirectory: string): Promise<string> {\n const destination = path.join(backupDirectory, ...appRelativePath.split('/'));\n await fs.mkdir(path.dirname(destination), { recursive: true });\n await fs.copyFile(path.resolve(saasRoot, appRelativePath), destination);\n return destination;\n}\n\n/** One human line for a protected file a command left in place. */\nexport function describeProtectedFile(appRelativePath: string, state: InstalledFileState, verb: string): string {\n return state === InstalledFileState.UNKNOWN\n ? `kept ${appRelativePath}: no install hash is recorded for it, so whether you changed it cannot be told. Not ${verb}; pass --force to ${verb} it (a backup is kept).`\n : `kept ${appRelativePath}: you changed it since it was installed. Not ${verb}; pass --force to ${verb} it (a backup is kept), or merge the new version by hand.`;\n}\n\n/** A recorded file a command left in place, and why. */\nexport interface KeptInstalledFile {\n path: string;\n state: InstalledFileState;\n}\n\n/** What a write (add, update, repair) will do to each file the new version ships, decided before it writes. */\nexport interface ProtectedWritePlan {\n /** Passed to the fan-out as `skipPaths`: files that stay as the application has them. */\n skip: Set<string>;\n /** Recorded files the application changed (or that carry no hash): not overwritten. */\n kept: KeptInstalledFile[];\n /** Recorded files the application deleted: not recreated. */\n notRestored: string[];\n /** Files overwritten under `--force`, each with the backup of the application's version. */\n forced: Array<{ path: string; backup: string }>;\n}\n\n/**\n * Decide, per file the new version ships, whether a write may overwrite what is on disk (#2016):\n *\n * | recorded by this module? | on disk | action |\n * |---|---|---|\n * | yes, untouched | yes | overwrite |\n * | yes, edited or unknown | yes | keep (or `--force`: back up, then overwrite) |\n * | yes | no (deleted) | not recreated (`restoreMissing` or `--force`: recreate) |\n * | no, another module owns it | yes | overwrite, with the fan-out's overlap warning |\n * | no, NO module owns it | yes | refuse, nothing written (or `--force`: back up, then overwrite) |\n * | no | no | create |\n *\n * The refusal is collected across every file and thrown before anything is written: a new version\n * must never silently replace a file the application authored itself.\n */\nexport async function planProtectedWrite(args: {\n saasRoot: string;\n moduleId: string;\n stagedPaths: readonly string[];\n /** The module's current entry; absent for a first install. */\n recorded?: Pick<RegistryModulesLockEntry, 'files' | 'installedFileHashes'>;\n force: boolean;\n /** `repair` recreates missing files: that is what it is for. */\n restoreMissing: boolean;\n backupDirectory: string;\n /** Who else owns a path; injected so the plan can be tested without a lockfile. */\n findOtherOwners: (paths: readonly string[]) => Promise<ReadonlyMap<string, readonly string[]>>;\n}): Promise<ProtectedWritePlan> {\n const { saasRoot, moduleId, stagedPaths, recorded, force, restoreMissing, backupDirectory } = args;\n const recordedSet = new Set(recorded?.files ?? []);\n const plan: ProtectedWritePlan = { skip: new Set(), kept: [], notRestored: [], forced: [] };\n const unrecordedPresent: string[] = [];\n\n for (const stagedPath of stagedPaths) {\n if (recordedSet.has(stagedPath)) {\n const state = await classifyInstalledFile(saasRoot, recorded!, stagedPath);\n if (PROTECTED_INSTALLED_FILE_STATES.has(state)) {\n if (force) {\n plan.forced.push({ path: stagedPath, backup: await backupApplicationFile(saasRoot, stagedPath, backupDirectory) });\n } else {\n plan.skip.add(stagedPath);\n plan.kept.push({ path: stagedPath, state });\n }\n } else if (state === InstalledFileState.MISSING && !restoreMissing && !force) {\n plan.skip.add(stagedPath);\n plan.notRestored.push(stagedPath);\n }\n continue;\n }\n if (await isExistingFile(path.resolve(saasRoot, stagedPath))) unrecordedPresent.push(stagedPath);\n }\n\n if (unrecordedPresent.length > 0) {\n const owners = await args.findOtherOwners(unrecordedPresent);\n const unowned = unrecordedPresent.filter((candidate) => (owners.get(candidate) ?? []).length === 0);\n if (unowned.length > 0 && !force) {\n throw new Error(\n `Refusing to install \"${moduleId}\": it would overwrite ${unowned.length} file(s) the application has and no module installed `\n + `(${unowned.join(', ')}). Nothing was written. Move them aside, or pass --force to overwrite them (a backup is kept).`,\n );\n }\n for (const candidate of unowned) {\n plan.forced.push({ path: candidate, backup: await backupApplicationFile(saasRoot, candidate, backupDirectory) });\n }\n }\n return plan;\n}\n\n/** What a removal (remove, or an update dropping files) will do to each recorded file, decided before it deletes. */\nexport interface ProtectedRemovalPlan {\n /** Untouched files, or edited ones under `--force`: delete these. */\n remove: string[];\n /** Files the application changed (or that carry no hash): left in place, now the application's own. */\n kept: KeptInstalledFile[];\n /** Files already gone. */\n gone: string[];\n /** Files deleted under `--force`, each with the backup of the application's version. */\n forced: Array<{ path: string; backup: string }>;\n}\n\n/**\n * Decide, per recorded file about to leave the module, whether it may be deleted (#2016). An edited\n * file is kept and becomes the application's own; `--force` deletes it after a backup.\n */\nexport async function planProtectedRemoval(args: {\n saasRoot: string;\n entry: Pick<RegistryModulesLockEntry, 'installedFileHashes'>;\n paths: readonly string[];\n force: boolean;\n backupDirectory: string;\n}): Promise<ProtectedRemovalPlan> {\n const plan: ProtectedRemovalPlan = { remove: [], kept: [], gone: [], forced: [] };\n for (const recordedPath of args.paths) {\n const state = await classifyInstalledFile(args.saasRoot, args.entry, recordedPath);\n if (state === InstalledFileState.MISSING) {\n plan.gone.push(recordedPath);\n } else if (state === InstalledFileState.UNTOUCHED) {\n plan.remove.push(recordedPath);\n } else if (args.force) {\n plan.forced.push({ path: recordedPath, backup: await backupApplicationFile(args.saasRoot, recordedPath, args.backupDirectory) });\n plan.remove.push(recordedPath);\n } else {\n plan.kept.push({ path: recordedPath, state });\n }\n }\n return plan;\n}\n\n/**\n * The `installedFileHashes` to record after a write: the hash of what was WRITTEN for every file the\n * write touched, and the PREVIOUS recorded hash for every file it kept.\n *\n * Carrying the previous hash is the whole point for a kept file: recording the hash of the\n * application's edited content would make the next update see it as untouched and overwrite it.\n */\nexport async function nextInstalledFileHashes(args: {\n saasRoot: string;\n ownedFiles: readonly string[];\n skipped: ReadonlySet<string>;\n previous?: Pick<RegistryModulesLockEntry, 'installedFileHashes'>;\n}): Promise<Record<string, string>> {\n const hashes: Record<string, string> = {};\n for (const owned of args.ownedFiles) {\n if (args.skipped.has(owned)) {\n const carried = args.previous ? recordedFileHash(args.previous, owned) : undefined;\n if (carried !== undefined) hashes[owned] = carried;\n continue;\n }\n hashes[owned] = await sha256OfFile(path.resolve(args.saasRoot, owned));\n }\n return hashes;\n}\n\nasync function isExistingFile(absolutePath: string): Promise<boolean> {\n try {\n return (await fs.stat(absolutePath)).isFile();\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false;\n throw error;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"local-checkout-module-source.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/local-checkout-module-source.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,OAAO,EAOL,KAAK,6BAA6B,EAClC,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc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+ {"version":3,"file":"local-checkout-module-source.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/local-checkout-module-source.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,OAAO,EAOL,KAAK,6BAA6B,EAClC,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAa9D,qEAAqE;AACrE,MAAM,WAAW,mBAAoB,SAAQ,6BAA6B;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;IACzB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,SAAS,CAG9H;AAED;;;;GAIG;AACH,wBAAsB,0BAA0B,CAAC,KAAK,EAAE;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAoC/B;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAejH;AAED,4EAA4E;AAC5E,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAyB1H;AA8DD;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAe7H"}
@@ -1 +1 @@
1
- {"version":3,"file":"local-checkout-module-source.service.js","sourceRoot":"","sources":["../../../../../../src/services/registry/local-checkout-module-source.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EAGrB,yBAAyB,IAAI,kBAAkB,GAChD,MAAM,+BAA+B,CAAC;AAIvC;;;;;GAKG;AACH,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5E,4FAA4F;AAC5F,MAAM,0BAA0B,GAAsB,CAAC,cAAc,CAAC,CAAC;AAavE;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAmB,EAAE,KAAgD;IACxG,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,qBAAqB;QAAE,OAAO,SAAS,CAAC;IACjG,OAAO,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,cAAc,IAAI,SAAS,CAAC;AAC5E,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,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AC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AACrG,CAAC","sourcesContent":["/**\n * Install registry modules from the framework checkout's own source (#2015, epic #2012).\n *\n * Paul, 2026-09-29: \"we need to be able to fetch on local when we are on framework dev\". Inside a\n * framework checkout the `wildo` domain is answered by `<frameworkRoot>/providers-registry/` (see\n * `local-checkout-source.ts` in platform-config-lib): no registry server, no publish step, and a change to\n * a provider's source reaches a dogfood application with one `wildo registry update`.\n *\n * The staged tree is shaped EXACTLY like an extracted registry artifact (`wildo.module.json` at the root,\n * every other file at its application-relative path), so the boundary fan-out, requirement checks and\n * registration run unchanged on it. Only acquisition differs: a directory copy instead of a download.\n *\n * Two decisions worth not re-deriving:\n * - **Inside a checkout, `wildo` means the checkout. No silent fallback to a server.** A module the\n * checkout does not author is refused, naming `--registry public` for the published one. Falling back\n * would let one spec resolve to two different sources depending on what happens to exist, which is how\n * a dogfood application ends up testing a version nobody is editing.\n * - **Provenance is the commit, plus whether the module's source was dirty.** There is no artifact, so\n * no digest. When the source has uncommitted changes the commit alone does not describe the bytes, and\n * the entry says so rather than pretending.\n */\n\nimport { execFileSync } from 'node:child_process';\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { satisfies, valid } from 'semver';\nimport {\n flattenModuleBoundaries,\n isModuleArtifactPathAllowed,\n localCheckoutModuleDirectory,\n LOCAL_CHECKOUT_MODULE_ROOTS,\n ModuleManifestSchema,\n WILDO_REGISTRY_DOMAIN,\n type LocalCheckoutModuleProvenance,\n type ModuleManifest,\n MODULE_MANIFEST_FILE_NAME as MANIFEST_FILE_NAME,\n} from '@wildo-ai/platform-config-lib';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\n\n\n/**\n * Directory names a local module source never stages, at any depth: the checkout's own BUILD OUTPUT.\n * `providers-registry/<ref>/<facet>` packages may be framework workspace members that the dev watchers\n * compile, so `dist/` sits beside `src/`. A module ships source; the application builds it. (Dot\n * segments and `node_modules` are refused by `isModuleArtifactPathAllowed` itself.)\n */\nconst BUILD_OUTPUT_DIRECTORY_NAMES: ReadonlySet<string> = new Set(['dist']);\n/** File suffixes a local module source never stages: TypeScript incremental build state. */\nconst BUILD_OUTPUT_FILE_SUFFIXES: readonly string[] = ['.tsbuildinfo'];\n\n/** A module resolved from the framework checkout, ready to stage. */\nexport interface LocalCheckoutModule extends LocalCheckoutModuleProvenance {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n /** The module's source directory in the checkout. */\n sourceDir: string;\n /** The module's single boundary directory in the application (`providers/<ref>`). */\n boundaryDirectory: string;\n}\n\n/**\n * The framework root to install from locally, or `undefined` when this command is a registry command.\n * Local exactly when: the CLI runs inside a framework checkout, the domain is `wildo`, and no\n * `--registry` was given (an explicit registry always wins, so the published version stays reachable).\n */\nexport function localCheckoutRootFor(ctx: CommandContext, input: { domain: string; registryFlag?: string }): string | undefined {\n if (input.registryFlag !== undefined || input.domain !== WILDO_REGISTRY_DOMAIN) return undefined;\n return ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? undefined;\n}\n\n/**\n * Read `<domain>/<moduleId>` from the checkout and check it against the request. Refuses, never falls\n * back: a module the checkout does not author, a manifest naming another module, a module with more\n * than one boundary directory, or a version outside the requested range.\n */\nexport async function resolveLocalCheckoutModule(input: {\n frameworkRoot: string;\n domain: string;\n moduleId: string;\n range: string;\n}): Promise<LocalCheckoutModule> {\n const { frameworkRoot, domain, moduleId, range } = input;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, domain, moduleId);\n if (sourceDir === undefined) {\n const scopes = Object.keys(LOCAL_CHECKOUT_MODULE_ROOTS).map((scope) => `\\`${scope}/…\\``).join(', ');\n throw new Error(\n `The framework checkout does not author \"${domain}/${moduleId}\": inside a checkout the \"${WILDO_REGISTRY_DOMAIN}\" domain serves only ${scopes}. `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n const manifest = await readManifestAt(sourceDir, `${domain}/${moduleId}`, frameworkRoot);\n if (manifest.id !== moduleId) {\n throw new Error(`${path.relative(frameworkRoot, path.join(sourceDir, MANIFEST_FILE_NAME))} declares \"${manifest.id}\", not \"${moduleId}\". Nothing was installed.`);\n }\n const boundaries = flattenModuleBoundaries(manifest.boundaries);\n if (boundaries.length !== 1) {\n throw new Error(\n `\"${moduleId}\" declares ${boundaries.length} boundary directories; a module served from the checkout holds the content of exactly one `\n + '(its source directory IS that boundary). Nothing was installed.',\n );\n }\n if (range !== 'latest' && !(valid(range) ? manifest.version === range : satisfies(manifest.version, range))) {\n throw new Error(\n `The checkout holds \"${moduleId}\" at ${manifest.version}, which does not satisfy \"${range}\". The checkout has one version of each module; `\n + 'pass `--registry public` for a published release.',\n );\n }\n // #2014: a provider's layout is checked on the STAGED copy, for every origin (`stageModuleAcquisition`).\n return {\n moduleId,\n version: manifest.version,\n manifest,\n sourceDir,\n boundaryDirectory: boundaries[0]!,\n ...checkoutProvenance(frameworkRoot, sourceDir),\n };\n}\n\n/**\n * Stage a checkout module into `extractDir` in the same shape an extracted registry artifact has:\n * `wildo.module.json` at the root, every other file at `<boundaryDirectory>/<path inside the source>`.\n * Build output is left behind; a symbolic link is refused (it could point anywhere in the checkout).\n * Returns the staged application-relative paths, sorted.\n */\nexport async function stageLocalCheckoutModule(module: LocalCheckoutModule, extractDir: string): Promise<string[]> {\n await fs.rm(extractDir, { recursive: true, force: true });\n await fs.mkdir(extractDir, { recursive: true });\n await fs.copyFile(path.join(module.sourceDir, MANIFEST_FILE_NAME), path.join(extractDir, MANIFEST_FILE_NAME));\n const staged: string[] = [];\n for (const relative of await walkSourceFiles(module.sourceDir, '')) {\n if (relative === MANIFEST_FILE_NAME) continue;\n const appRelative = `${module.boundaryDirectory}/${relative}`;\n if (!isModuleArtifactPathAllowed(appRelative)) continue;\n const destination = path.join(extractDir, ...appRelative.split('/'));\n await fs.mkdir(path.dirname(destination), { recursive: true });\n await fs.copyFile(path.join(module.sourceDir, ...relative.split('/')), destination);\n staged.push(appRelative);\n }\n return staged.sort();\n}\n\n/** One module the checkout serves, for `wildo registry search` / `info`. */\nexport interface LocalCheckoutModuleListing {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n}\n\n/**\n * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A\n * directory without a manifest is not a module and is skipped; a manifest that does not parse is\n * reported, because silently hiding a broken provider is how it goes unnoticed.\n */\nexport async function listLocalCheckoutModules(frameworkRoot: string, query: string): Promise<LocalCheckoutModuleListing[]> {\n const listings: LocalCheckoutModuleListing[] = [];\n for (const [scope, rootName] of Object.entries(LOCAL_CHECKOUT_MODULE_ROOTS)) {\n let names: string[];\n try {\n names = (await fs.readdir(path.join(frameworkRoot, rootName), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n for (const name of names) {\n const moduleId = `${scope}/${name}`;\n if (!moduleId.toLowerCase().includes(query.toLowerCase())) continue;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, WILDO_REGISTRY_DOMAIN, moduleId);\n if (sourceDir === undefined) continue;\n try {\n await fs.access(path.join(sourceDir, MANIFEST_FILE_NAME));\n } catch {\n continue;\n }\n const manifest = await readManifestAt(sourceDir, `${WILDO_REGISTRY_DOMAIN}/${moduleId}`, frameworkRoot);\n listings.push({ moduleId, version: manifest.version, manifest });\n }\n }\n return listings.sort((a, b) => a.moduleId.localeCompare(b.moduleId));\n}\n\nasync function readManifestAt(sourceDir: string, label: string, frameworkRoot: string): Promise<ModuleManifest> {\n const manifestPath = path.join(sourceDir, MANIFEST_FILE_NAME);\n let raw: string;\n try {\n raw = await fs.readFile(manifestPath, 'utf8');\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n throw new Error(\n `The framework checkout has no module \"${label}\" (${path.relative(frameworkRoot, manifestPath)} does not exist). `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n throw error;\n }\n const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));\n if (!parsed.success) {\n throw new Error(\n `${path.relative(frameworkRoot, manifestPath)} is not a valid module manifest: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; '),\n );\n }\n return parsed.data;\n}\n\n/** Files below `directory`, as `/`-separated paths relative to it, excluding build output. */\nasync function walkSourceFiles(directory: string, prefix: string): Promise<string[]> {\n const files: string[] = [];\n for (const entry of await fs.readdir(directory, { withFileTypes: true })) {\n const relative = prefix ? `${prefix}/${entry.name}` : entry.name;\n if (entry.isSymbolicLink()) {\n throw new Error(`Refusing to stage \"${relative}\": a module source may not contain symbolic links.`);\n }\n if (entry.isDirectory()) {\n if (BUILD_OUTPUT_DIRECTORY_NAMES.has(entry.name)) continue;\n files.push(...(await walkSourceFiles(path.join(directory, entry.name), relative)));\n } else if (entry.isFile() && !BUILD_OUTPUT_FILE_SUFFIXES.some((suffix) => entry.name.endsWith(suffix))) {\n files.push(relative);\n }\n }\n return files;\n}\n\n/**\n * The checkout's commit, and whether the module's source differs from it (tracked changes or untracked\n * files under the module's directory). Git is the only authority for both; a checkout git cannot read\n * is refused rather than recorded with an invented commit.\n */\nfunction checkoutProvenance(frameworkRoot: string, sourceDir: string): LocalCheckoutModuleProvenance {\n const git = (args: string[]): string => execFileSync('git', args, { cwd: frameworkRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] }).trim();\n let checkoutCommit: string;\n try {\n checkoutCommit = git(['rev-parse', 'HEAD']);\n } catch (error) {\n throw new Error(`Cannot read the framework checkout's commit at ${frameworkRoot}: ${(error as Error).message}`);\n }\n const moduleRelative = path.relative(frameworkRoot, sourceDir).split(path.sep).join('/');\n const status = git(['status', '--porcelain', '--untracked-files=all', '--', moduleRelative]);\n return { checkoutCommit, checkoutDirty: status.length > 0 };\n}\n\n/**\n * Whether a checkout module's source changed since `commit` (committed, uncommitted tracked, or new\n * untracked files), i.e. whether an application copy taken at that commit is behind. `undefined` when the\n * checkout does not know the commit, so the question cannot be answered.\n *\n * The same question the `registry-checkout-copy` currency surface asks (`derived-artifact-currency.mjs`),\n * which is plain Node and cannot import this; the two answer identically by construction (git diff\n * against the commit, plus untracked files).\n */\nexport function localCheckoutSourceChangedSince(frameworkRoot: string, sourceDir: string, commit: string): boolean | undefined {\n const git = (args: string[]): string => execFileSync('git', args, { cwd: frameworkRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] });\n const moduleRelative = path.relative(frameworkRoot, sourceDir).split(path.sep).join('/');\n try {\n git(['cat-file', '-e', `${commit}^{commit}`]);\n } catch {\n return undefined;\n }\n try {\n git(['diff', '--quiet', commit, '--', moduleRelative]);\n } catch (error) {\n if ((error as { status?: number }).status === 1) return true;\n throw error;\n }\n return git(['ls-files', '--others', '--exclude-standard', '--', moduleRelative]).trim().length > 0;\n}\n"]}
1
+ {"version":3,"file":"local-checkout-module-source.service.js","sourceRoot":"","sources":["../../../../src/services/registry/local-checkout-module-source.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EAGrB,yBAAyB,IAAI,kBAAkB,GAChD,MAAM,+BAA+B,CAAC;AAIvC;;;;;GAKG;AACH,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5E,4FAA4F;AAC5F,MAAM,0BAA0B,GAAsB,CAAC,cAAc,CAAC,CAAC;AAavE;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,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AE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IACzD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA6B,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAC7D,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO,GAAG,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AACrG,CAAC","sourcesContent":["/**\n * Install registry modules from the framework checkout's own source (#2015, epic #2012).\n *\n * Paul, 2026-09-29: \"we need to be able to fetch on local when we are on framework dev\". Inside a\n * framework checkout the `wildo` domain is answered by `<frameworkRoot>/providers-registry/` (see\n * `local-checkout-source.ts` in platform-config-lib): no registry server, no publish step, and a change to\n * a provider's source reaches a dogfood application with one `wildo registry update`.\n *\n * The staged tree is shaped EXACTLY like an extracted registry artifact (`wildo.module.json` at the root,\n * every other file at its application-relative path), so the boundary fan-out, requirement checks and\n * registration run unchanged on it. Only acquisition differs: a directory copy instead of a download.\n *\n * Two decisions worth not re-deriving:\n * - **Inside a checkout, `wildo` means the checkout. No silent fallback to a server.** A module the\n * checkout does not author is refused, naming `--registry public` for the published one. Falling back\n * would let one spec resolve to two different sources depending on what happens to exist, which is how\n * a dogfood application ends up testing a version nobody is editing.\n * - **Provenance is the commit, plus whether the module's source was dirty.** There is no artifact, so\n * no digest. When the source has uncommitted changes the commit alone does not describe the bytes, and\n * the entry says so rather than pretending.\n */\n\nimport { execFileSync } from 'node:child_process';\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { satisfies, valid } from 'semver';\nimport {\n flattenModuleBoundaries,\n isModuleArtifactPathAllowed,\n localCheckoutModuleDirectory,\n LOCAL_CHECKOUT_MODULE_ROOTS,\n ModuleManifestSchema,\n WILDO_REGISTRY_DOMAIN,\n type LocalCheckoutModuleProvenance,\n type ModuleManifest,\n MODULE_MANIFEST_FILE_NAME as MANIFEST_FILE_NAME,\n} from '@wildo-ai/platform-config-lib';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\n\n\n/**\n * Directory names a local module source never stages, at any depth: the checkout's own BUILD OUTPUT.\n * `providers-registry/<ref>/<facet>` packages may be framework workspace members that the dev watchers\n * compile, so `dist/` sits beside `src/`. A module ships source; the application builds it. (Dot\n * segments and `node_modules` are refused by `isModuleArtifactPathAllowed` itself.)\n */\nconst BUILD_OUTPUT_DIRECTORY_NAMES: ReadonlySet<string> = new Set(['dist']);\n/** File suffixes a local module source never stages: TypeScript incremental build state. */\nconst BUILD_OUTPUT_FILE_SUFFIXES: readonly string[] = ['.tsbuildinfo'];\n\n/** A module resolved from the framework checkout, ready to stage. */\nexport interface LocalCheckoutModule extends LocalCheckoutModuleProvenance {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n /** The module's source directory in the checkout. */\n sourceDir: string;\n /** The module's single boundary directory in the application (`providers/<ref>`). */\n boundaryDirectory: string;\n}\n\n/**\n * The framework root to install from locally, or `undefined` when this command is a registry command.\n * Local exactly when: the CLI runs inside a framework checkout, the domain is `wildo`, and no\n * `--registry` was given (an explicit registry always wins, so the published version stays reachable).\n */\nexport function localCheckoutRootFor(ctx: CommandContext, input: { domain: string; registryFlag?: string }): string | undefined {\n if (input.registryFlag !== undefined || input.domain !== WILDO_REGISTRY_DOMAIN) return undefined;\n return ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? undefined;\n}\n\n/**\n * Read `<domain>/<moduleId>` from the checkout and check it against the request. Refuses, never falls\n * back: a module the checkout does not author, a manifest naming another module, a module with more\n * than one boundary directory, or a version outside the requested range.\n */\nexport async function resolveLocalCheckoutModule(input: {\n frameworkRoot: string;\n domain: string;\n moduleId: string;\n range: string;\n}): Promise<LocalCheckoutModule> {\n const { frameworkRoot, domain, moduleId, range } = input;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, domain, moduleId);\n if (sourceDir === undefined) {\n const scopes = Object.keys(LOCAL_CHECKOUT_MODULE_ROOTS).map((scope) => `\\`${scope}/…\\``).join(', ');\n throw new Error(\n `The framework checkout does not author \"${domain}/${moduleId}\": inside a checkout the \"${WILDO_REGISTRY_DOMAIN}\" domain serves only ${scopes}. `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n const manifest = await readManifestAt(sourceDir, `${domain}/${moduleId}`, frameworkRoot);\n if (manifest.id !== moduleId) {\n throw new Error(`${path.relative(frameworkRoot, path.join(sourceDir, MANIFEST_FILE_NAME))} declares \"${manifest.id}\", not \"${moduleId}\". Nothing was installed.`);\n }\n const boundaries = flattenModuleBoundaries(manifest.boundaries);\n if (boundaries.length !== 1) {\n throw new Error(\n `\"${moduleId}\" declares ${boundaries.length} boundary directories; a module served from the checkout holds the content of exactly one `\n + '(its source directory IS that boundary). Nothing was installed.',\n );\n }\n if (range !== 'latest' && !(valid(range) ? manifest.version === range : satisfies(manifest.version, range))) {\n throw new Error(\n `The checkout holds \"${moduleId}\" at ${manifest.version}, which does not satisfy \"${range}\". The checkout has one version of each module; `\n + 'pass `--registry public` for a published release.',\n );\n }\n // #2014: a provider's layout is checked on the STAGED copy, for every origin (`stageModuleAcquisition`).\n return {\n moduleId,\n version: manifest.version,\n manifest,\n sourceDir,\n boundaryDirectory: boundaries[0]!,\n ...checkoutProvenance(frameworkRoot, sourceDir),\n };\n}\n\n/**\n * Stage a checkout module into `extractDir` in the same shape an extracted registry artifact has:\n * `wildo.module.json` at the root, every other file at `<boundaryDirectory>/<path inside the source>`.\n * Build output is left behind; a symbolic link is refused (it could point anywhere in the checkout).\n * Returns the staged application-relative paths, sorted.\n */\nexport async function stageLocalCheckoutModule(module: LocalCheckoutModule, extractDir: string): Promise<string[]> {\n await fs.rm(extractDir, { recursive: true, force: true });\n await fs.mkdir(extractDir, { recursive: true });\n await fs.copyFile(path.join(module.sourceDir, MANIFEST_FILE_NAME), path.join(extractDir, MANIFEST_FILE_NAME));\n const staged: string[] = [];\n for (const relative of await walkSourceFiles(module.sourceDir, '')) {\n if (relative === MANIFEST_FILE_NAME) continue;\n const appRelative = `${module.boundaryDirectory}/${relative}`;\n if (!isModuleArtifactPathAllowed(appRelative)) continue;\n const destination = path.join(extractDir, ...appRelative.split('/'));\n await fs.mkdir(path.dirname(destination), { recursive: true });\n await fs.copyFile(path.join(module.sourceDir, ...relative.split('/')), destination);\n staged.push(appRelative);\n }\n return staged.sort();\n}\n\n/** One module the checkout serves, for `wildo registry search` / `info`. */\nexport interface LocalCheckoutModuleListing {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n}\n\n/**\n * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A\n * directory without a manifest is not a module and is skipped; a manifest that does not parse is\n * reported, because silently hiding a broken provider is how it goes unnoticed.\n */\nexport async function listLocalCheckoutModules(frameworkRoot: string, query: string): Promise<LocalCheckoutModuleListing[]> {\n const listings: LocalCheckoutModuleListing[] = [];\n for (const [scope, rootName] of Object.entries(LOCAL_CHECKOUT_MODULE_ROOTS)) {\n let names: string[];\n try {\n names = (await fs.readdir(path.join(frameworkRoot, rootName), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n for (const name of names) {\n const moduleId = `${scope}/${name}`;\n if (!moduleId.toLowerCase().includes(query.toLowerCase())) continue;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, WILDO_REGISTRY_DOMAIN, moduleId);\n if (sourceDir === undefined) continue;\n try {\n await fs.access(path.join(sourceDir, MANIFEST_FILE_NAME));\n } catch {\n continue;\n }\n const manifest = await readManifestAt(sourceDir, `${WILDO_REGISTRY_DOMAIN}/${moduleId}`, frameworkRoot);\n listings.push({ moduleId, version: manifest.version, manifest });\n }\n }\n return listings.sort((a, b) => a.moduleId.localeCompare(b.moduleId));\n}\n\nasync function readManifestAt(sourceDir: string, label: string, frameworkRoot: string): Promise<ModuleManifest> {\n const manifestPath = path.join(sourceDir, MANIFEST_FILE_NAME);\n let raw: string;\n try {\n raw = await fs.readFile(manifestPath, 'utf8');\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n throw new Error(\n `The framework checkout has no module \"${label}\" (${path.relative(frameworkRoot, manifestPath)} does not exist). `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n throw error;\n }\n const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));\n if (!parsed.success) {\n throw new Error(\n `${path.relative(frameworkRoot, manifestPath)} is not a valid module manifest: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; '),\n );\n }\n return parsed.data;\n}\n\n/** Files below `directory`, as `/`-separated paths relative to it, excluding build output. */\nasync function walkSourceFiles(directory: string, prefix: string): Promise<string[]> {\n const files: string[] = [];\n for (const entry of await fs.readdir(directory, { withFileTypes: true })) {\n const relative = prefix ? `${prefix}/${entry.name}` : entry.name;\n if (entry.isSymbolicLink()) {\n throw new Error(`Refusing to stage \"${relative}\": a module source may not contain symbolic links.`);\n }\n if (entry.isDirectory()) {\n if (BUILD_OUTPUT_DIRECTORY_NAMES.has(entry.name)) continue;\n files.push(...(await walkSourceFiles(path.join(directory, entry.name), relative)));\n } else if (entry.isFile() && !BUILD_OUTPUT_FILE_SUFFIXES.some((suffix) => entry.name.endsWith(suffix))) {\n files.push(relative);\n }\n }\n return files;\n}\n\n/**\n * The checkout's commit, and whether the module's source differs from it (tracked changes or untracked\n * files under the module's directory). Git is the only authority for both; a checkout git cannot read\n * is refused rather than recorded with an invented commit.\n */\nfunction checkoutProvenance(frameworkRoot: string, sourceDir: string): LocalCheckoutModuleProvenance {\n const git = (args: string[]): string => execFileSync('git', args, { cwd: frameworkRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] }).trim();\n let checkoutCommit: string;\n try {\n checkoutCommit = git(['rev-parse', 'HEAD']);\n } catch (error) {\n throw new Error(`Cannot read the framework checkout's commit at ${frameworkRoot}: ${(error as Error).message}`);\n }\n const moduleRelative = path.relative(frameworkRoot, sourceDir).split(path.sep).join('/');\n const status = git(['status', '--porcelain', '--untracked-files=all', '--', moduleRelative]);\n return { checkoutCommit, checkoutDirty: status.length > 0 };\n}\n\n/**\n * Whether a checkout module's source changed since `commit` (committed, uncommitted tracked, or new\n * untracked files), i.e. whether an application copy taken at that commit is behind. `undefined` when the\n * checkout does not know the commit, so the question cannot be answered.\n *\n * The same question the `registry-checkout-copy` currency surface asks (`derived-artifact-currency.mjs`),\n * which is plain Node and cannot import this; the two answer identically by construction (git diff\n * against the commit, plus untracked files).\n */\nexport function localCheckoutSourceChangedSince(frameworkRoot: string, sourceDir: string, commit: string): boolean | undefined {\n const git = (args: string[]): string => execFileSync('git', args, { cwd: frameworkRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] });\n const moduleRelative = path.relative(frameworkRoot, sourceDir).split(path.sep).join('/');\n try {\n git(['cat-file', '-e', `${commit}^{commit}`]);\n } catch {\n return undefined;\n }\n try {\n git(['diff', '--quiet', commit, '--', moduleRelative]);\n } catch (error) {\n if ((error as { status?: number }).status === 1) return true;\n throw error;\n }\n return git(['ls-files', '--others', '--exclude-standard', '--', moduleRelative]).trim().length > 0;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"migration-obligation.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/migration-obligation.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AASH,MAAM,WAAW,mBAAmB;IAClC,iFAAiF;IACjF,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,iEAAiE;IACjE,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAsB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAW7H;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACtC,0BAA0B,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/C,GAAG,mBAAmB,GAAG,SAAS,CAOlC;AAED,mDAAmD;AACnD,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,mBAAmB,GAAG,MAAM,EAAE,CAOrF"}
1
+ {"version":3,"file":"migration-obligation.utils.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/migration-obligation.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AASH,MAAM,WAAW,mBAAmB;IAClC,iFAAiF;IACjF,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,iEAAiE;IACjE,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAsB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAW7H;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACtC,0BAA0B,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/C,GAAG,mBAAmB,GAAG,SAAS,CAOlC;AAED,mDAAmD;AACnD,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,mBAAmB,GAAG,MAAM,EAAE,CAOrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"migration-obligation.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/migration-obligation.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;KAC5E,CAAC;AACJ,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,2BAA2B,CAAC,UAA+B;IACzE,OAAO;QACL,sDAAsD,UAAU,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,yCAAyC;QAC/I,sFAAsF;QACtF,kCAAkC,UAAU,CAAC,sBAAsB,yDAAyD;QAC5H,0FAA0F;KAC3F,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Whether a registry install / update / removal leaves the application OWING a database migration,\n * and what to run about it (#1757).\n *\n * A module that owns resources changes what the SQL planner plans. On an application that has adopted\n * migrations (it commits `backend-api/migrations/schema-plan.lock.json`), the backend refuses its\n * physical-schema gate until the migration exists, and crash-loops on\n * `postgresql_table_schema_mismatch` — the failure `.claude/rules/engine-resource-changes-owe-migrations.md`\n * records for an engine change, arriving here through a module instead.\n *\n * ## Why this MARKS instead of generating\n *\n * The plan is computed from the COMPILED `backend-api/dist`, and at the moment a registry command\n * finishes, that build does not contain the module yet. Planning now would read the previous model and\n * answer \"in sync\" — a confident wrong answer — and generating would author a migration for a model\n * nobody has (`staleness-presents-as-a-logic-defect.md`). So the command states the obligation, derived\n * from the files it actually wrote or removed, and names the two commands that settle it once the\n * backend is rebuilt. Per `application-creation-directive.md` a workflow fact is marked, never a wall.\n *\n * ## What \"owns resources\" means here\n *\n * A file in the module's recorded set that calls `createResourceConfiguration_Initialization(` — the one\n * factory every resource configuration is built with. Derived from the files, not asked of the publisher.\n * Once a module owns a resource, ANY install, update or removal of it can move the plan (a schema edit\n * beside the configuration, a resource added or dropped), so the question is asked of the module, not of\n * each changed file.\n */\n\nimport { existsSync, promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { LOCKFILE_RELATIVE_PATH } from '~wildo-cli/commands/db/db-schema-plan.utils';\n\n/** The factory call that marks a file as declaring a resource configuration. */\nconst RESOURCE_CONFIGURATION_FACTORY_CALL = 'createResourceConfiguration_Initialization(';\n\nexport interface MigrationObligation {\n /** Module files (application-relative) that declare a resource configuration. */\n resourceConfigurationFiles: string[];\n /** The `wildo db generate --name` label this change suggests. */\n suggestedMigrationName: string;\n}\n\n/**\n * Of `appRelativeFiles`, the ones that currently declare a resource configuration. Reads each file; a\n * file that no longer exists is skipped — so a caller asking about a REMOVAL must ask before deleting.\n */\nexport async function findResourceConfigurationFiles(saasRoot: string, appRelativeFiles: readonly string[]): Promise<string[]> {\n const found: string[] = [];\n for (const file of appRelativeFiles) {\n if (!file.endsWith('.ts')) continue;\n try {\n if ((await fs.readFile(path.resolve(saasRoot, file), 'utf8')).includes(RESOURCE_CONFIGURATION_FACTORY_CALL)) found.push(file);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n }\n return found;\n}\n\n/**\n * The obligation for one registry command, or `undefined` when there is none: the application has not\n * adopted migrations (no committed schema-plan lockfile — a MongoDB application, or one that never\n * generated a baseline), or the module declares no resource.\n */\nexport function deriveMigrationObligation(input: {\n saasRoot: string;\n moduleId: string;\n verb: 'install' | 'update' | 'remove';\n resourceConfigurationFiles: readonly string[];\n}): MigrationObligation | undefined {\n if (input.resourceConfigurationFiles.length === 0) return undefined;\n if (!existsSync(path.join(input.saasRoot, LOCKFILE_RELATIVE_PATH))) return undefined;\n return {\n resourceConfigurationFiles: [...input.resourceConfigurationFiles].sort(),\n suggestedMigrationName: `${input.verb}-${input.moduleId.replace('/', '-')}`,\n };\n}\n\n/** The operator-facing lines for an obligation. */\nexport function describeMigrationObligation(obligation: MigrationObligation): string[] {\n return [\n ` [migration owed] this module declares resources (${obligation.resourceConfigurationFiles.join(', ')}), so the database schema plan changes.`,\n ' Once backend-api is rebuilt (the dev watcher does it), run `wildo db diff`, then',\n ` \\`wildo db generate --name ${obligation.suggestedMigrationName}\\` and commit the migration with schema-plan.lock.json.`,\n ' Until then a PostgreSQL backend refuses to start (postgresql_table_schema_mismatch).',\n ];\n}\n"]}
1
+ {"version":3,"file":"migration-obligation.utils.js","sourceRoot":"","sources":["../../../../src/services/registry/migration-obligation.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAErF,gFAAgF;AAChF,MAAM,mCAAmC,GAAG,6CAA6C,CAAC;AAS1F;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,QAAgB,EAAE,gBAAmC;IACxG,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,gBAAgB,EAAE,CAAC;QACpC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,SAAS;QACpC,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC;gBAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChI,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;gBAAE,MAAM,KAAK,CAAC;QACtE,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAKzC;IACC,IAAI,KAAK,CAAC,0BAA0B,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACpE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACrF,OAAO;QACL,0BAA0B,EAAE,CAAC,GAAG,KAAK,CAAC,0BAA0B,CAAC,CAAC,IAAI,EAAE;QACxE,sBAAsB,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;KAC5E,CAAC;AACJ,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,2BAA2B,CAAC,UAA+B;IACzE,OAAO;QACL,sDAAsD,UAAU,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,yCAAyC;QAC/I,sFAAsF;QACtF,kCAAkC,UAAU,CAAC,sBAAsB,yDAAyD;QAC5H,0FAA0F;KAC3F,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Whether a registry install / update / removal leaves the application OWING a database migration,\n * and what to run about it (#1757).\n *\n * A module that owns resources changes what the SQL planner plans. On an application that has adopted\n * migrations (it commits `backend-api/migrations/schema-plan.lock.json`), the backend refuses its\n * physical-schema gate until the migration exists, and crash-loops on\n * `postgresql_table_schema_mismatch` — the failure `.claude/rules/engine-resource-changes-owe-migrations.md`\n * records for an engine change, arriving here through a module instead.\n *\n * ## Why this MARKS instead of generating\n *\n * The plan is computed from the COMPILED `backend-api/dist`, and at the moment a registry command\n * finishes, that build does not contain the module yet. Planning now would read the previous model and\n * answer \"in sync\" — a confident wrong answer — and generating would author a migration for a model\n * nobody has (`staleness-presents-as-a-logic-defect.md`). So the command states the obligation, derived\n * from the files it actually wrote or removed, and names the two commands that settle it once the\n * backend is rebuilt. Per `application-creation-directive.md` a workflow fact is marked, never a wall.\n *\n * ## What \"owns resources\" means here\n *\n * A file in the module's recorded set that calls `createResourceConfiguration_Initialization(` — the one\n * factory every resource configuration is built with. Derived from the files, not asked of the publisher.\n * Once a module owns a resource, ANY install, update or removal of it can move the plan (a schema edit\n * beside the configuration, a resource added or dropped), so the question is asked of the module, not of\n * each changed file.\n */\n\nimport { existsSync, promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { LOCKFILE_RELATIVE_PATH } from '~wildo-cli/commands/db/db-schema-plan.utils';\n\n/** The factory call that marks a file as declaring a resource configuration. */\nconst RESOURCE_CONFIGURATION_FACTORY_CALL = 'createResourceConfiguration_Initialization(';\n\nexport interface MigrationObligation {\n /** Module files (application-relative) that declare a resource configuration. */\n resourceConfigurationFiles: string[];\n /** The `wildo db generate --name` label this change suggests. */\n suggestedMigrationName: string;\n}\n\n/**\n * Of `appRelativeFiles`, the ones that currently declare a resource configuration. Reads each file; a\n * file that no longer exists is skipped — so a caller asking about a REMOVAL must ask before deleting.\n */\nexport async function findResourceConfigurationFiles(saasRoot: string, appRelativeFiles: readonly string[]): Promise<string[]> {\n const found: string[] = [];\n for (const file of appRelativeFiles) {\n if (!file.endsWith('.ts')) continue;\n try {\n if ((await fs.readFile(path.resolve(saasRoot, file), 'utf8')).includes(RESOURCE_CONFIGURATION_FACTORY_CALL)) found.push(file);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n }\n return found;\n}\n\n/**\n * The obligation for one registry command, or `undefined` when there is none: the application has not\n * adopted migrations (no committed schema-plan lockfile — a MongoDB application, or one that never\n * generated a baseline), or the module declares no resource.\n */\nexport function deriveMigrationObligation(input: {\n saasRoot: string;\n moduleId: string;\n verb: 'install' | 'update' | 'remove';\n resourceConfigurationFiles: readonly string[];\n}): MigrationObligation | undefined {\n if (input.resourceConfigurationFiles.length === 0) return undefined;\n if (!existsSync(path.join(input.saasRoot, LOCKFILE_RELATIVE_PATH))) return undefined;\n return {\n resourceConfigurationFiles: [...input.resourceConfigurationFiles].sort(),\n suggestedMigrationName: `${input.verb}-${input.moduleId.replace('/', '-')}`,\n };\n}\n\n/** The operator-facing lines for an obligation. */\nexport function describeMigrationObligation(obligation: MigrationObligation): string[] {\n return [\n ` [migration owed] this module declares resources (${obligation.resourceConfigurationFiles.join(', ')}), so the database schema plan changes.`,\n ' Once backend-api is rebuilt (the dev watcher does it), run `wildo db diff`, then',\n ` \\`wildo db generate --name ${obligation.suggestedMigrationName}\\` and commit the migration with schema-plan.lock.json.`,\n ' Until then a PostgreSQL backend refuses to start (postgresql_table_schema_mismatch).',\n ];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"module-acquisition.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/module-acquisition.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAGL,kBAAkB,EAGlB,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAA4B,KAAK,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,wFAAwF;AACxF,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,kBAAkB,CAAC,QAAQ,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED,yDAAyD;AACzD,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,GAAG,8BAA8B,CAAC;AAE3F;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwB1I;AAED,kGAAkG;AAClG,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,iBAAiB,GAC7B,IAAI,CAAC,wBAAwB,EAAE,cAAc,GAAG,YAAY,GAAG,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAcvI;AAED,uDAAuD;AACvD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,GAAG,MAAM,CAM5F"}
1
+ {"version":3,"file":"module-acquisition.utils.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/module-acquisition.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAGL,kBAAkB,EAGlB,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAA4B,KAAK,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,wFAAwF;AACxF,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,kBAAkB,CAAC,QAAQ,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED,yDAAyD;AACzD,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,GAAG,8BAA8B,CAAC;AAE3F;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwB1I;AAED,kGAAkG;AAClG,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,iBAAiB,GAC7B,IAAI,CAAC,wBAAwB,EAAE,cAAc,GAAG,YAAY,GAAG,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAcvI;AAED,uDAAuD;AACvD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,GAAG,MAAM,CAM5F"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-acquisition.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/module-acquisition.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,kBAAkB,EAClB,UAAU,EACV,oBAAoB,GAErB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA4B,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAA4B,MAAM,+BAA+B,CAAC;AAoB3F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,WAA8B,EAAE,KAA0B,EAAE,QAAgB;IACvH,IAAI,MAAc,CAAC;IACnB,IAAI,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,EAAE,CAAC;QACnE,MAAM,GAAG,CAAC,MAAM,wBAAwB,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;IACxF,CAAC;SAAM,CAAC;QACN,MAAM,gBAAg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A2B,CAAC,QAAQ,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,kGAAkG;AAClG,MAAM,UAAU,mBAAmB,CACjC,WAA8B;IAE9B,IAAI,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO;YACL,YAAY,EAAE,kBAAkB,CAAC,cAAc;YAC/C,cAAc,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc;YAChD,aAAa,EAAE,WAAW,CAAC,KAAK,CAAC,aAAa;SAC/C,CAAC;IACJ,CAAC;IACD,OAAO;QACL,YAAY,EAAE,kBAAkB,CAAC,QAAQ;QACzC,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE;QACnC,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG;QACrC,cAAc,EAAE,WAAW,CAAC,cAAc;KAC3C,CAAC;AACJ,CAAC;AAED,uDAAuD;AACvD,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,WAA8B;IAClF,IAAI,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,EAAE,CAAC;QACnE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC;QAC5D,OAAO,GAAG,QAAQ,IAAI,WAAW,CAAC,OAAO,iCAAiC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAC/J,CAAC;IACD,OAAO,GAAG,QAAQ,IAAI,WAAW,CAAC,OAAO,SAAS,WAAW,CAAC,QAAQ,CAAC,GAAG,YAAY,WAAW,CAAC,cAAc,GAAG,CAAC;AACtH,CAAC","sourcesContent":["/**\n * How a registry command obtained a module version, and the two things every command does with it:\n * stage it for the boundary fan-out, and record where it came from (#2015).\n *\n * `add`, `update` and `repair-lockfile` RESOLVE differently (a fresh range, a pinned upgrade, a pinned\n * restore) and keep that in the command. What they must never do differently is stage the bytes and write\n * the provenance, so those live here: a command cannot stage from the checkout and record a registry, or\n * the reverse.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport {\n MODULE_BOUNDARY_LAYER_ROOTS,\n MODULE_MANIFEST_FILE_NAME,\n ModuleDistribution,\n ModuleKind,\n ModuleManifestSchema,\n type RegistryModulesLockEntry,\n} from '@wildo-ai/platform-config-lib';\nimport { providerModuleStructureRefusals } from './provider-module-checks.service';\nimport { readApplicationPackageScope, rewriteStagedProviderIdentity } from './provider-module-identity.service';\nimport { extractZipToDir } from './artifact-extractor.utils';\nimport { stageLocalCheckoutModule, type LocalCheckoutModule } from './local-checkout-module-source.service';\nimport { writeBytesAtomic, type ModuleArtifactPaths } from './module-artifact-files.utils';\n\n/** A module version obtained from a registry server: downloaded and digest-verified. */\nexport interface RegistryModuleAcquisition {\n distribution: ModuleDistribution.REGISTRY;\n version: string;\n artifactDigest: string;\n bytes: Uint8Array;\n registry: { url: string; id: string };\n}\n\n/** A module version read from the framework checkout. */\nexport interface LocalCheckoutModuleAcquisition {\n distribution: ModuleDistribution.LOCAL_CHECKOUT;\n version: string;\n local: LocalCheckoutModule;\n}\n\nexport type ModuleAcquisition = RegistryModuleAcquisition | LocalCheckoutModuleAcquisition;\n\n/**\n * Put the acquired version where the fan-out reads it (`paths.extractDir`), replacing any stale tree. A\n * registry artifact is also kept as its zip (the download cache); a checkout module has no artifact.\n *\n * A PROVIDER module is then made the application's (#2014): its facets are renamed after `saasRoot`'s npm scope.\n * Here, and not in each command, so `add`, `update` and `repair-lockfile` all hand the fan-out, and hash, the same\n * rewritten bytes.\n *\n * Returns how many files were staged, for the command's log.\n */\nexport async function stageModuleAcquisition(acquisition: ModuleAcquisition, paths: ModuleArtifactPaths, saasRoot: string): Promise<number> {\n let staged: number;\n if (acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n staged = (await stageLocalCheckoutModule(acquisition.local, paths.extractDir)).length;\n } else {\n await writeBytesAtomic(paths.zip, acquisition.bytes);\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n staged = (await extractZipToDir(acquisition.bytes, paths.extractDir)).files.length;\n }\n const manifest = ModuleManifestSchema.parse(JSON.parse(await fs.readFile(path.join(paths.extractDir, MODULE_MANIFEST_FILE_NAME), 'utf8')));\n if (manifest.kind === ModuleKind.PROVIDER && manifest.provider !== undefined) {\n // Every origin, before a byte reaches the application: a registry artifact is someone else's bytes (#2014 review).\n const moduleRoot = path.join(paths.extractDir, MODULE_BOUNDARY_LAYER_ROOTS.providers, manifest.provider.ref);\n const refusals = providerModuleStructureRefusals({ moduleRoot, provider: manifest.provider });\n if (refusals.length > 0) {\n throw new Error(`\"${manifest.id}\" is not a well-formed provider module. Nothing was installed.\\n- ${refusals.join('\\n- ')}`);\n }\n await rewriteStagedProviderIdentity({\n extractDir: paths.extractDir,\n provider: manifest.provider,\n applicationScope: await readApplicationPackageScope(saasRoot),\n });\n }\n return staged;\n}\n\n/** The lockfile provenance fields for an acquisition: exactly one origin's fields, never both. */\nexport function lockEntryProvenance(\n acquisition: ModuleAcquisition,\n): Pick<RegistryModulesLockEntry, 'distribution' | 'registryId' | 'registryUrl' | 'artifactDigest' | 'checkoutCommit' | 'checkoutDirty'> {\n if (acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n return {\n distribution: ModuleDistribution.LOCAL_CHECKOUT,\n checkoutCommit: acquisition.local.checkoutCommit,\n checkoutDirty: acquisition.local.checkoutDirty,\n };\n }\n return {\n distribution: ModuleDistribution.REGISTRY,\n registryId: acquisition.registry.id,\n registryUrl: acquisition.registry.url,\n artifactDigest: acquisition.artifactDigest,\n };\n}\n\n/** One human line naming where a version came from. */\nexport function describeAcquisition(moduleId: string, acquisition: ModuleAcquisition): string {\n if (acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n const { checkoutCommit, checkoutDirty } = acquisition.local;\n return `${moduleId}@${acquisition.version} from the framework checkout (${checkoutCommit.slice(0, 12)}${checkoutDirty ? ', with uncommitted changes' : ''})`;\n }\n return `${moduleId}@${acquisition.version} from ${acquisition.registry.url} (digest ${acquisition.artifactDigest})`;\n}\n"]}
1
+ {"version":3,"file":"module-acquisition.utils.js","sourceRoot":"","sources":["../../../../src/services/registry/module-acquisition.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,kBAAkB,EAClB,UAAU,EACV,oBAAoB,GAErB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA4B,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAA4B,MAAM,+BAA+B,CAAC;AAoB3F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,WAA8B,EAAE,KAA0B,EAAE,QAAgB;IACvH,IAAI,MAAc,CAAC;IACnB,IAAI,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,EAAE,CAAC;QACnE,MAAM,GAAG,CAAC,MAAM,wBAAwB,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;IACxF,CAAC;SAAM,CAAC;QACN,MAAM,gBAAgB,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;QACrD,MAAM,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,EAA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mBAAmB,CACjC,WAA8B;IAE9B,IAAI,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO;YACL,YAAY,EAAE,kBAAkB,CAAC,cAAc;YAC/C,cAAc,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc;YAChD,aAAa,EAAE,WAAW,CAAC,KAAK,CAAC,aAAa;SAC/C,CAAC;IACJ,CAAC;IACD,OAAO;QACL,YAAY,EAAE,kBAAkB,CAAC,QAAQ;QACzC,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE;QACnC,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG;QACrC,cAAc,EAAE,WAAW,CAAC,cAAc;KAC3C,CAAC;AACJ,CAAC;AAED,uDAAuD;AACvD,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,WAA8B;IAClF,IAAI,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,EAAE,CAAC;QACnE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC;QAC5D,OAAO,GAAG,QAAQ,IAAI,WAAW,CAAC,OAAO,iCAAiC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAC/J,CAAC;IACD,OAAO,GAAG,QAAQ,IAAI,WAAW,CAAC,OAAO,SAAS,WAAW,CAAC,QAAQ,CAAC,GAAG,YAAY,WAAW,CAAC,cAAc,GAAG,CAAC;AACtH,CAAC","sourcesContent":["/**\n * How a registry command obtained a module version, and the two things every command does with it:\n * stage it for the boundary fan-out, and record where it came from (#2015).\n *\n * `add`, `update` and `repair-lockfile` RESOLVE differently (a fresh range, a pinned upgrade, a pinned\n * restore) and keep that in the command. What they must never do differently is stage the bytes and write\n * the provenance, so those live here: a command cannot stage from the checkout and record a registry, or\n * the reverse.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport {\n MODULE_BOUNDARY_LAYER_ROOTS,\n MODULE_MANIFEST_FILE_NAME,\n ModuleDistribution,\n ModuleKind,\n ModuleManifestSchema,\n type RegistryModulesLockEntry,\n} from '@wildo-ai/platform-config-lib';\nimport { providerModuleStructureRefusals } from './provider-module-checks.service';\nimport { readApplicationPackageScope, rewriteStagedProviderIdentity } from './provider-module-identity.service';\nimport { extractZipToDir } from './artifact-extractor.utils';\nimport { stageLocalCheckoutModule, type LocalCheckoutModule } from './local-checkout-module-source.service';\nimport { writeBytesAtomic, type ModuleArtifactPaths } from './module-artifact-files.utils';\n\n/** A module version obtained from a registry server: downloaded and digest-verified. */\nexport interface RegistryModuleAcquisition {\n distribution: ModuleDistribution.REGISTRY;\n version: string;\n artifactDigest: string;\n bytes: Uint8Array;\n registry: { url: string; id: string };\n}\n\n/** A module version read from the framework checkout. */\nexport interface LocalCheckoutModuleAcquisition {\n distribution: ModuleDistribution.LOCAL_CHECKOUT;\n version: string;\n local: LocalCheckoutModule;\n}\n\nexport type ModuleAcquisition = RegistryModuleAcquisition | LocalCheckoutModuleAcquisition;\n\n/**\n * Put the acquired version where the fan-out reads it (`paths.extractDir`), replacing any stale tree. A\n * registry artifact is also kept as its zip (the download cache); a checkout module has no artifact.\n *\n * A PROVIDER module is then made the application's (#2014): its facets are renamed after `saasRoot`'s npm scope.\n * Here, and not in each command, so `add`, `update` and `repair-lockfile` all hand the fan-out, and hash, the same\n * rewritten bytes.\n *\n * Returns how many files were staged, for the command's log.\n */\nexport async function stageModuleAcquisition(acquisition: ModuleAcquisition, paths: ModuleArtifactPaths, saasRoot: string): Promise<number> {\n let staged: number;\n if (acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n staged = (await stageLocalCheckoutModule(acquisition.local, paths.extractDir)).length;\n } else {\n await writeBytesAtomic(paths.zip, acquisition.bytes);\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n staged = (await extractZipToDir(acquisition.bytes, paths.extractDir)).files.length;\n }\n const manifest = ModuleManifestSchema.parse(JSON.parse(await fs.readFile(path.join(paths.extractDir, MODULE_MANIFEST_FILE_NAME), 'utf8')));\n if (manifest.kind === ModuleKind.PROVIDER && manifest.provider !== undefined) {\n // Every origin, before a byte reaches the application: a registry artifact is someone else's bytes (#2014 review).\n const moduleRoot = path.join(paths.extractDir, MODULE_BOUNDARY_LAYER_ROOTS.providers, manifest.provider.ref);\n const refusals = providerModuleStructureRefusals({ moduleRoot, provider: manifest.provider });\n if (refusals.length > 0) {\n throw new Error(`\"${manifest.id}\" is not a well-formed provider module. Nothing was installed.\\n- ${refusals.join('\\n- ')}`);\n }\n await rewriteStagedProviderIdentity({\n extractDir: paths.extractDir,\n provider: manifest.provider,\n applicationScope: await readApplicationPackageScope(saasRoot),\n });\n }\n return staged;\n}\n\n/** The lockfile provenance fields for an acquisition: exactly one origin's fields, never both. */\nexport function lockEntryProvenance(\n acquisition: ModuleAcquisition,\n): Pick<RegistryModulesLockEntry, 'distribution' | 'registryId' | 'registryUrl' | 'artifactDigest' | 'checkoutCommit' | 'checkoutDirty'> {\n if (acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n return {\n distribution: ModuleDistribution.LOCAL_CHECKOUT,\n checkoutCommit: acquisition.local.checkoutCommit,\n checkoutDirty: acquisition.local.checkoutDirty,\n };\n }\n return {\n distribution: ModuleDistribution.REGISTRY,\n registryId: acquisition.registry.id,\n registryUrl: acquisition.registry.url,\n artifactDigest: acquisition.artifactDigest,\n };\n}\n\n/** One human line naming where a version came from. */\nexport function describeAcquisition(moduleId: string, acquisition: ModuleAcquisition): string {\n if (acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n const { checkoutCommit, checkoutDirty } = acquisition.local;\n return `${moduleId}@${acquisition.version} from the framework checkout (${checkoutCommit.slice(0, 12)}${checkoutDirty ? ', with uncommitted changes' : ''})`;\n }\n return `${moduleId}@${acquisition.version} from ${acquisition.registry.url} (digest ${acquisition.artifactDigest})`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact-files.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/module-artifact-files.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAU7F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,mBAAmB,CAY5H;AAED,sGAAsG;AACtG,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAKrF"}
1
+ {"version":3,"file":"module-artifact-files.utils.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/module-artifact-files.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAU7F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,mBAAmB,CAY5H;AAED,sGAAsG;AACtG,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAKrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact-files.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/module-artifact-files.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAgBxG;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,MAAc,EAAE,QAAgB;IACnF,IAAI,CAAC,wBAAwB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,KAAK,CAAC,oBAAoB,MAAM,IAAI,QAAQ,wDAAwD,CAAC,CAAC;IAClH,CAAC;IACD,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,8BAA8B,CAAC,CAAC;IAC7E,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACjE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACrD,MAAM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/**\n * Where a downloaded module artifact lives on disk, and how its bytes are written.\n *\n * One definition for `add`, `update` and `repair-lockfile`, which each carried their own copy. It is\n * worth a single home because the paths feed a RECURSIVE delete (a stale extraction is wiped before\n * unpacking, and `remove` deletes a module's whole artifact directory) and are built from `domain` /\n * `moduleId` strings that come from a CLI argument or from the lockfile: a `..` in either would walk\n * that delete out of the artifacts directory, so the shape and containment checks have to hold at\n * every caller, and separate copies are separate chances to lose them.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { MODULES_ARTIFACTS_RELATIVE_DIR } from '@wildo-ai/wildo-module-client';\nimport { isModuleId, RegistryDomainSlugSchema, SemverExactSchema } from '@wildo-ai/platform-config-lib';\n\nexport interface ModuleArtifactPaths {\n /** The downloaded artifact archive for one version. */\n zip: string;\n /** Where that archive is extracted — the staging tree the fan-out copies from. */\n extractDir: string;\n /** Parent of every per-version artifact of the module. */\n moduleRoot: string;\n /**\n * Per-version backup snapshot directory used by `rollbackFanOut`. Sibling to `extractDir` so the\n * fan-out walker never traverses it.\n */\n backupDir: string;\n}\n\n/**\n * The directory holding every downloaded version of `<domain>/<moduleId>` — what `remove` deletes.\n *\n * The names are checked for SHAPE (a domain slug, a `<scope>/<name>` module id), not only for\n * containment: a `.` name stays inside the artifacts root and would still widen the delete to a\n * whole domain's cache.\n */\nexport function moduleArtifactRoot(saasRoot: string, domain: string, moduleId: string): string {\n if (!RegistryDomainSlugSchema.safeParse(domain).success || !isModuleId(moduleId)) {\n throw new Error(`Refusing module \"${domain}/${moduleId}\": not a registry domain and <scope>/<name> module id.`);\n }\n const artifactsRoot = path.resolve(saasRoot, MODULES_ARTIFACTS_RELATIVE_DIR);\n const moduleRoot = path.resolve(artifactsRoot, domain, moduleId);\n if (!moduleRoot.startsWith(artifactsRoot + path.sep)) {\n throw new Error(`Refusing module \"${domain}/${moduleId}\": it resolves outside ${MODULES_ARTIFACTS_RELATIVE_DIR}.`);\n }\n return moduleRoot;\n}\n\n/**\n * Resolve the artifact paths for `<domain>/<moduleId>@<version>`, refusing any name that is not a\n * registry name or that escapes the artifacts directory.\n */\nexport function moduleArtifactPaths(saasRoot: string, domain: string, moduleId: string, version: string): ModuleArtifactPaths {\n const moduleRoot = moduleArtifactRoot(saasRoot, domain, moduleId);\n if (!SemverExactSchema.safeParse(version).success) {\n throw new Error(`Refusing module \"${domain}/${moduleId}@${version}\": the version is not an exact semver.`);\n }\n const extractDir = path.join(moduleRoot, version);\n return {\n zip: path.join(moduleRoot, `${version}.zip`),\n extractDir,\n moduleRoot,\n backupDir: path.join(moduleRoot, `.backup-${version}`),\n };\n}\n\n/** Write `bytes` to `dest` through a temp file + rename, so a reader never sees a partial archive. */\nexport async function writeBytesAtomic(dest: string, bytes: Uint8Array): Promise<void> {\n await fs.mkdir(path.dirname(dest), { recursive: true });\n const tmp = `${dest}.${process.pid}.${Date.now()}.tmp`;\n await fs.writeFile(tmp, bytes);\n await fs.rename(tmp, dest);\n}\n"]}
1
+ {"version":3,"file":"module-artifact-files.utils.js","sourceRoot":"","sources":["../../../../src/services/registry/module-artifact-files.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAgBxG;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,MAAc,EAAE,QAAgB;IACnF,IAAI,CAAC,wBAAwB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,KAAK,CAAC,oBAAoB,MAAM,IAAI,QAAQ,wDAAwD,CAAC,CA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,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,MAAM,GAAG,GAAG,GAAG,IAAI,IAAI,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC;IACvD,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC/B,MAAM,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC","sourcesContent":["/**\n * Where a downloaded module artifact lives on disk, and how its bytes are written.\n *\n * One definition for `add`, `update` and `repair-lockfile`, which each carried their own copy. It is\n * worth a single home because the paths feed a RECURSIVE delete (a stale extraction is wiped before\n * unpacking, and `remove` deletes a module's whole artifact directory) and are built from `domain` /\n * `moduleId` strings that come from a CLI argument or from the lockfile: a `..` in either would walk\n * that delete out of the artifacts directory, so the shape and containment checks have to hold at\n * every caller, and separate copies are separate chances to lose them.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { MODULES_ARTIFACTS_RELATIVE_DIR } from '@wildo-ai/wildo-module-client';\nimport { isModuleId, RegistryDomainSlugSchema, SemverExactSchema } from '@wildo-ai/platform-config-lib';\n\nexport interface ModuleArtifactPaths {\n /** The downloaded artifact archive for one version. */\n zip: string;\n /** Where that archive is extracted — the staging tree the fan-out copies from. */\n extractDir: string;\n /** Parent of every per-version artifact of the module. */\n moduleRoot: string;\n /**\n * Per-version backup snapshot directory used by `rollbackFanOut`. Sibling to `extractDir` so the\n * fan-out walker never traverses it.\n */\n backupDir: string;\n}\n\n/**\n * The directory holding every downloaded version of `<domain>/<moduleId>` — what `remove` deletes.\n *\n * The names are checked for SHAPE (a domain slug, a `<scope>/<name>` module id), not only for\n * containment: a `.` name stays inside the artifacts root and would still widen the delete to a\n * whole domain's cache.\n */\nexport function moduleArtifactRoot(saasRoot: string, domain: string, moduleId: string): string {\n if (!RegistryDomainSlugSchema.safeParse(domain).success || !isModuleId(moduleId)) {\n throw new Error(`Refusing module \"${domain}/${moduleId}\": not a registry domain and <scope>/<name> module id.`);\n }\n const artifactsRoot = path.resolve(saasRoot, MODULES_ARTIFACTS_RELATIVE_DIR);\n const moduleRoot = path.resolve(artifactsRoot, domain, moduleId);\n if (!moduleRoot.startsWith(artifactsRoot + path.sep)) {\n throw new Error(`Refusing module \"${domain}/${moduleId}\": it resolves outside ${MODULES_ARTIFACTS_RELATIVE_DIR}.`);\n }\n return moduleRoot;\n}\n\n/**\n * Resolve the artifact paths for `<domain>/<moduleId>@<version>`, refusing any name that is not a\n * registry name or that escapes the artifacts directory.\n */\nexport function moduleArtifactPaths(saasRoot: string, domain: string, moduleId: string, version: string): ModuleArtifactPaths {\n const moduleRoot = moduleArtifactRoot(saasRoot, domain, moduleId);\n if (!SemverExactSchema.safeParse(version).success) {\n throw new Error(`Refusing module \"${domain}/${moduleId}@${version}\": the version is not an exact semver.`);\n }\n const extractDir = path.join(moduleRoot, version);\n return {\n zip: path.join(moduleRoot, `${version}.zip`),\n extractDir,\n moduleRoot,\n backupDir: path.join(moduleRoot, `.backup-${version}`),\n };\n}\n\n/** Write `bytes` to `dest` through a temp file + rename, so a reader never sees a partial archive. */\nexport async function writeBytesAtomic(dest: string, bytes: Uint8Array): Promise<void> {\n await fs.mkdir(path.dirname(dest), { recursive: true });\n const tmp = `${dest}.${process.pid}.${Date.now()}.tmp`;\n await fs.writeFile(tmp, bytes);\n await fs.rename(tmp, dest);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"module-registration.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/module-registration.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAKH,OAAO,EAWL,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAChC,MAAM,+BAA+B,CAA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}
1
+ {"version":3,"file":"module-registration.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/module-registration.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAKH,OAAO,EAWL,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAChC,MAAM,+BAA+B,CAAC;AAoEvC;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,0BAA0B,GAAG,mBAAmB,CAiDtJ;AAED,qGAAqG;AACrG,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEjE;AAgBD,+GAA+G;AAC/G,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,0BAA0B,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC,CAAC;AAYrG;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,cAAc,GAAG,iBAAiB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAoChH;AAqMD;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5B,QAAQ,EAAE,cAAc,GACvB;IAAE,YAAY,EAAE,0BAA0B,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAgBnE;AAED,mGAAmG;AACnG,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC;IAAE,kBAAkB,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE1G;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,E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