@wildo-ai/wildo-cli 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1926) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/bin/wildo.js.map +1 -1
  3. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  4. package/dist/src/commands/acp/probe.command.js.map +1 -1
  5. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  6. package/dist/src/commands/align-deps.command.js +5 -3
  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/assurance/assurance-command.utils.d.ts +14 -0
  11. package/dist/src/commands/assurance/assurance-command.utils.d.ts.map +1 -0
  12. package/dist/src/commands/assurance/assurance-command.utils.js +36 -0
  13. package/dist/src/commands/assurance/assurance-command.utils.js.map +1 -0
  14. package/dist/src/commands/assurance/report.command.d.ts +14 -0
  15. package/dist/src/commands/assurance/report.command.d.ts.map +1 -0
  16. package/dist/src/commands/assurance/report.command.js +28 -0
  17. package/dist/src/commands/assurance/report.command.js.map +1 -0
  18. package/dist/src/commands/assurance/run.command.d.ts +16 -0
  19. package/dist/src/commands/assurance/run.command.d.ts.map +1 -0
  20. package/dist/src/commands/assurance/run.command.js +49 -0
  21. package/dist/src/commands/assurance/run.command.js.map +1 -0
  22. package/dist/src/commands/assurance/schedule.command.d.ts +15 -0
  23. package/dist/src/commands/assurance/schedule.command.d.ts.map +1 -0
  24. package/dist/src/commands/assurance/schedule.command.js +49 -0
  25. package/dist/src/commands/assurance/schedule.command.js.map +1 -0
  26. package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -1
  27. package/dist/src/commands/blueprint/pack.command.js.map +1 -1
  28. package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -1
  29. package/dist/src/commands/blueprint/publish.command.js.map +1 -1
  30. package/dist/src/commands/blueprint/status.command.d.ts.map +1 -1
  31. package/dist/src/commands/blueprint/status.command.js.map +1 -1
  32. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  33. package/dist/src/commands/brand/propagate.command.js.map +1 -1
  34. package/dist/src/commands/build/accept.command.d.ts +4 -0
  35. package/dist/src/commands/build/accept.command.d.ts.map +1 -1
  36. package/dist/src/commands/build/accept.command.js +10 -1
  37. package/dist/src/commands/build/accept.command.js.map +1 -1
  38. package/dist/src/commands/build/approve.command.d.ts +18 -0
  39. package/dist/src/commands/build/approve.command.d.ts.map +1 -0
  40. package/dist/src/commands/build/approve.command.js +45 -0
  41. package/dist/src/commands/build/approve.command.js.map +1 -0
  42. package/dist/src/commands/build/checkpoint.command.d.ts +18 -0
  43. package/dist/src/commands/build/checkpoint.command.d.ts.map +1 -0
  44. package/dist/src/commands/build/checkpoint.command.js +36 -0
  45. package/dist/src/commands/build/checkpoint.command.js.map +1 -0
  46. package/dist/src/commands/build/close.command.d.ts +26 -0
  47. package/dist/src/commands/build/close.command.d.ts.map +1 -0
  48. package/dist/src/commands/build/close.command.js +58 -0
  49. package/dist/src/commands/build/close.command.js.map +1 -0
  50. package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
  51. package/dist/src/commands/build/dispatches.command.js +10 -9
  52. package/dist/src/commands/build/dispatches.command.js.map +1 -1
  53. package/dist/src/commands/build/next.command.d.ts.map +1 -1
  54. package/dist/src/commands/build/next.command.js +6 -1
  55. package/dist/src/commands/build/next.command.js.map +1 -1
  56. package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
  57. package/dist/src/commands/build/rearm.command.js.map +1 -1
  58. package/dist/src/commands/build/run.command.d.ts.map +1 -1
  59. package/dist/src/commands/build/run.command.js.map +1 -1
  60. package/dist/src/commands/build/settle-window.command.d.ts +17 -0
  61. package/dist/src/commands/build/settle-window.command.d.ts.map +1 -0
  62. package/dist/src/commands/build/settle-window.command.js +42 -0
  63. package/dist/src/commands/build/settle-window.command.js.map +1 -0
  64. package/dist/src/commands/build/stop.command.d.ts +23 -0
  65. package/dist/src/commands/build/stop.command.d.ts.map +1 -0
  66. package/dist/src/commands/build/stop.command.js +52 -0
  67. package/dist/src/commands/build/stop.command.js.map +1 -0
  68. package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
  69. package/dist/src/commands/build/tasks.command.js.map +1 -1
  70. package/dist/src/commands/compose.command.d.ts.map +1 -1
  71. package/dist/src/commands/compose.command.js.map +1 -1
  72. package/dist/src/commands/config/check-resources.command.d.ts +20 -6
  73. package/dist/src/commands/config/check-resources.command.d.ts.map +1 -1
  74. package/dist/src/commands/config/check-resources.command.js +33 -12
  75. package/dist/src/commands/config/check-resources.command.js.map +1 -1
  76. package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
  77. package/dist/src/commands/config/data-retention.command.js.map +1 -1
  78. package/dist/src/commands/config/document-releases.command.d.ts +3 -0
  79. package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
  80. package/dist/src/commands/config/document-releases.command.js +3 -0
  81. package/dist/src/commands/config/document-releases.command.js.map +1 -1
  82. package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -1
  83. package/dist/src/commands/config/legal-notice.command.js.map +1 -1
  84. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  85. package/dist/src/commands/config/mutate.command.js.map +1 -1
  86. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  87. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  88. package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
  89. package/dist/src/commands/config/service-consent.command.js.map +1 -1
  90. package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
  91. package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
  92. package/dist/src/commands/config/sync.command.d.ts +4 -3
  93. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  94. package/dist/src/commands/config/sync.command.js +51 -17
  95. package/dist/src/commands/config/sync.command.js.map +1 -1
  96. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  97. package/dist/src/commands/config/validate.command.js +10 -10
  98. package/dist/src/commands/config/validate.command.js.map +1 -1
  99. package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
  100. package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
  101. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  102. package/dist/src/commands/context/coherence.command.js.map +1 -1
  103. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  104. package/dist/src/commands/context/context-command.utils.js.map +1 -1
  105. package/dist/src/commands/context/elements.command.d.ts +4 -2
  106. package/dist/src/commands/context/elements.command.d.ts.map +1 -1
  107. package/dist/src/commands/context/elements.command.js +4 -2
  108. package/dist/src/commands/context/elements.command.js.map +1 -1
  109. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  110. package/dist/src/commands/context/health.command.js.map +1 -1
  111. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  112. package/dist/src/commands/context/info.command.js.map +1 -1
  113. package/dist/src/commands/context/journey.command.d.ts +33 -2
  114. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  115. package/dist/src/commands/context/journey.command.js +186 -34
  116. package/dist/src/commands/context/journey.command.js.map +1 -1
  117. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
  118. package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
  119. package/dist/src/commands/context/launch-blockers.command.d.ts +4 -2
  120. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
  121. package/dist/src/commands/context/launch-blockers.command.js +6 -4
  122. package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
  123. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  124. package/dist/src/commands/context/list.command.js.map +1 -1
  125. package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
  126. package/dist/src/commands/context/pipelines.command.js.map +1 -1
  127. package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
  128. package/dist/src/commands/context/workspace.command.js.map +1 -1
  129. package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
  130. package/dist/src/commands/creation/accept.command.js.map +1 -1
  131. package/dist/src/commands/creation/answer.command.d.ts +12 -0
  132. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  133. package/dist/src/commands/creation/answer.command.js +69 -2
  134. package/dist/src/commands/creation/answer.command.js.map +1 -1
  135. package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -1
  136. package/dist/src/commands/creation/brand-logo.command.js.map +1 -1
  137. package/dist/src/commands/creation/brief.command.d.ts +10 -3
  138. package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
  139. package/dist/src/commands/creation/brief.command.js +22 -7
  140. package/dist/src/commands/creation/brief.command.js.map +1 -1
  141. package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
  142. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  143. package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
  144. package/dist/src/commands/creation/depth.command.js.map +1 -1
  145. package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
  146. package/dist/src/commands/creation/diff.command.js.map +1 -1
  147. package/dist/src/commands/creation/drive.command.d.ts +19 -0
  148. package/dist/src/commands/creation/drive.command.d.ts.map +1 -0
  149. package/dist/src/commands/creation/drive.command.js +112 -0
  150. package/dist/src/commands/creation/drive.command.js.map +1 -0
  151. package/dist/src/commands/creation/feed.command.d.ts +11 -0
  152. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  153. package/dist/src/commands/creation/feed.command.js +75 -1
  154. package/dist/src/commands/creation/feed.command.js.map +1 -1
  155. package/dist/src/commands/creation/loop.command.d.ts +6 -0
  156. package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
  157. package/dist/src/commands/creation/loop.command.js +16 -0
  158. package/dist/src/commands/creation/loop.command.js.map +1 -1
  159. package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
  160. package/dist/src/commands/creation/persona.command.js.map +1 -1
  161. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
  162. package/dist/src/commands/creation/preflight.command.js.map +1 -1
  163. package/dist/src/commands/creation/prompt-hook.command.d.ts +1 -1
  164. package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
  165. package/dist/src/commands/creation/prompt-hook.command.js +7 -3
  166. package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
  167. package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
  168. package/dist/src/commands/creation/propose.command.js.map +1 -1
  169. package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
  170. package/dist/src/commands/creation/pulse.command.js.map +1 -1
  171. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  172. package/dist/src/commands/creation/questions.command.js +13 -0
  173. package/dist/src/commands/creation/questions.command.js.map +1 -1
  174. package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
  175. package/dist/src/commands/creation/reason.command.js.map +1 -1
  176. package/dist/src/commands/creation/report.command.d.ts.map +1 -1
  177. package/dist/src/commands/creation/report.command.js +12 -0
  178. package/dist/src/commands/creation/report.command.js.map +1 -1
  179. package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
  180. package/dist/src/commands/creation/revert.command.js +2 -0
  181. package/dist/src/commands/creation/revert.command.js.map +1 -1
  182. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  183. package/dist/src/commands/creation/run.command.js.map +1 -1
  184. package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
  185. package/dist/src/commands/creation/statusline.command.js.map +1 -1
  186. package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
  187. package/dist/src/commands/creation/watch.command.js.map +1 -1
  188. package/dist/src/commands/creation/why.command.d.ts.map +1 -1
  189. package/dist/src/commands/creation/why.command.js +14 -9
  190. package/dist/src/commands/creation/why.command.js.map +1 -1
  191. package/dist/src/commands/creation/writes.command.d.ts +7 -0
  192. package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
  193. package/dist/src/commands/creation/writes.command.js +21 -6
  194. package/dist/src/commands/creation/writes.command.js.map +1 -1
  195. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
  196. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
  197. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  198. package/dist/src/commands/db/db-schema-plan.utils.js +2 -2
  199. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  200. package/dist/src/commands/db/diff.command.d.ts +1 -1
  201. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  202. package/dist/src/commands/db/diff.command.js +2 -2
  203. package/dist/src/commands/db/diff.command.js.map +1 -1
  204. package/dist/src/commands/db/generate.command.d.ts +2 -3
  205. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  206. package/dist/src/commands/db/generate.command.js +2 -3
  207. package/dist/src/commands/db/generate.command.js.map +1 -1
  208. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  209. package/dist/src/commands/db/migrate.command.js +9 -1
  210. package/dist/src/commands/db/migrate.command.js.map +1 -1
  211. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  212. package/dist/src/commands/db/resolve.command.js.map +1 -1
  213. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  214. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  215. package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -1
  216. package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -1
  217. package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -1
  218. package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -1
  219. package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -1
  220. package/dist/src/commands/dev/design-tokens-contrast.command.js.map +1 -1
  221. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  222. package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -1
  223. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  224. package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
  225. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  226. package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
  227. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  228. package/dist/src/commands/dev/force-stop.command.js.map +1 -1
  229. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  230. package/dist/src/commands/dev/resources.command.js.map +1 -1
  231. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  232. package/dist/src/commands/dev/start.command.js.map +1 -1
  233. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  234. package/dist/src/commands/dev/stop-all.command.js.map +1 -1
  235. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  236. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  237. package/dist/src/commands/docs/check.command.d.ts.map +1 -1
  238. package/dist/src/commands/docs/check.command.js +12 -0
  239. package/dist/src/commands/docs/check.command.js.map +1 -1
  240. package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
  241. package/dist/src/commands/docs/publish.command.js.map +1 -1
  242. package/dist/src/commands/frontend/look.command.d.ts.map +1 -1
  243. package/dist/src/commands/frontend/look.command.js.map +1 -1
  244. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  245. package/dist/src/commands/frontend/publish.command.js.map +1 -1
  246. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  247. package/dist/src/commands/fwk/audit.command.js.map +1 -1
  248. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  249. package/dist/src/commands/fwk/dev-skills.command.js +20 -0
  250. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  251. package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -1
  252. package/dist/src/commands/fwk/generate-blueprints.command.js +2 -1
  253. package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -1
  254. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  255. package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
  256. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
  257. package/dist/src/commands/fwk/generate-providers.command.js +2 -2
  258. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
  259. package/dist/src/commands/fwk/graph.command.d.ts +1 -1
  260. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  261. package/dist/src/commands/fwk/graph.command.js +1 -1
  262. package/dist/src/commands/fwk/graph.command.js.map +1 -1
  263. package/dist/src/commands/fwk/publish-all.command.d.ts +53 -0
  264. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  265. package/dist/src/commands/fwk/publish-all.command.js +345 -12
  266. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  267. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  268. package/dist/src/commands/fwk/publish-docker.command.js +9 -0
  269. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  270. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  271. package/dist/src/commands/fwk/publish-npm.command.js +15 -4
  272. package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
  273. package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -1
  274. package/dist/src/commands/fwk/publish-promote.command.js +32 -11
  275. package/dist/src/commands/fwk/publish-promote.command.js.map +1 -1
  276. package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -1
  277. package/dist/src/commands/fwk/publish-providers.command.js +8 -0
  278. package/dist/src/commands/fwk/publish-providers.command.js.map +1 -1
  279. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  280. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  281. package/dist/src/commands/fwk/release.command.d.ts +22 -0
  282. package/dist/src/commands/fwk/release.command.d.ts.map +1 -0
  283. package/dist/src/commands/fwk/release.command.js +216 -0
  284. package/dist/src/commands/fwk/release.command.js.map +1 -0
  285. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  286. package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
  287. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  288. package/dist/src/commands/fwk/version-set.command.js.map +1 -1
  289. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  290. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  291. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  292. package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
  293. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  294. package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
  295. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  296. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  297. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  298. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  299. package/dist/src/commands/generate/email-command.utils.d.ts +15 -2
  300. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  301. package/dist/src/commands/generate/email-command.utils.js +20 -7
  302. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  303. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  304. package/dist/src/commands/generate/email-preview.command.js.map +1 -1
  305. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  306. package/dist/src/commands/generate/email-status.command.js +2 -2
  307. package/dist/src/commands/generate/email-status.command.js.map +1 -1
  308. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  309. package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
  310. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  311. package/dist/src/commands/generate/email-translate.command.js +2 -2
  312. package/dist/src/commands/generate/email-translate.command.js.map +1 -1
  313. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  314. package/dist/src/commands/generate/email.command.js +2 -2
  315. package/dist/src/commands/generate/email.command.js.map +1 -1
  316. package/dist/src/commands/generate/labelling-command.utils.d.ts +15 -0
  317. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  318. package/dist/src/commands/generate/labelling-command.utils.js +110 -12
  319. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  320. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  321. package/dist/src/commands/generate/labels-plan.command.js.map +1 -1
  322. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  323. package/dist/src/commands/generate/labels.command.js.map +1 -1
  324. package/dist/src/commands/generate/translate.command.d.ts +5 -0
  325. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  326. package/dist/src/commands/generate/translate.command.js +9 -3
  327. package/dist/src/commands/generate/translate.command.js.map +1 -1
  328. package/dist/src/commands/help.command.d.ts.map +1 -1
  329. package/dist/src/commands/help.command.js +2 -0
  330. package/dist/src/commands/help.command.js.map +1 -1
  331. package/dist/src/commands/init.command.d.ts +11 -3
  332. package/dist/src/commands/init.command.d.ts.map +1 -1
  333. package/dist/src/commands/init.command.js +73 -27
  334. package/dist/src/commands/init.command.js.map +1 -1
  335. package/dist/src/commands/keys/legacy-envelope-key.command.d.ts +8 -0
  336. package/dist/src/commands/keys/legacy-envelope-key.command.d.ts.map +1 -0
  337. package/dist/src/commands/keys/legacy-envelope-key.command.js +140 -0
  338. package/dist/src/commands/keys/legacy-envelope-key.command.js.map +1 -0
  339. package/dist/src/commands/keys/rotate-signing-keys.command.d.ts +8 -0
  340. package/dist/src/commands/keys/rotate-signing-keys.command.d.ts.map +1 -0
  341. package/dist/src/commands/keys/rotate-signing-keys.command.js +158 -0
  342. package/dist/src/commands/keys/rotate-signing-keys.command.js.map +1 -0
  343. package/dist/src/commands/keys/rotate.command.d.ts.map +1 -1
  344. package/dist/src/commands/keys/rotate.command.js.map +1 -1
  345. package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -1
  346. package/dist/src/commands/keys/thumbprint.command.js.map +1 -1
  347. package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts +7 -0
  348. package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts.map +1 -0
  349. package/dist/src/commands/keys/vault-rotate-tokens.command.js +100 -0
  350. package/dist/src/commands/keys/vault-rotate-tokens.command.js.map +1 -0
  351. package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts +7 -0
  352. package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts.map +1 -0
  353. package/dist/src/commands/keys/vault-rotate-unseal-key.command.js +96 -0
  354. package/dist/src/commands/keys/vault-rotate-unseal-key.command.js.map +1 -0
  355. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  356. package/dist/src/commands/local/deregister.command.js.map +1 -1
  357. package/dist/src/commands/local/dev-status.command.d.ts +16 -4
  358. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  359. package/dist/src/commands/local/dev-status.command.js +50 -6
  360. package/dist/src/commands/local/dev-status.command.js.map +1 -1
  361. package/dist/src/commands/local/dev.command.d.ts +80 -5
  362. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  363. package/dist/src/commands/local/dev.command.js +273 -19
  364. package/dist/src/commands/local/dev.command.js.map +1 -1
  365. package/dist/src/commands/local/doctor.command.d.ts +22 -9
  366. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  367. package/dist/src/commands/local/doctor.command.js +59 -43
  368. package/dist/src/commands/local/doctor.command.js.map +1 -1
  369. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  370. package/dist/src/commands/local/down.command.js +1 -2
  371. package/dist/src/commands/local/down.command.js.map +1 -1
  372. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  373. package/dist/src/commands/local/init.command.js.map +1 -1
  374. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  375. package/dist/src/commands/local/logs.command.js.map +1 -1
  376. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  377. package/dist/src/commands/local/reinit.command.js.map +1 -1
  378. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  379. package/dist/src/commands/local/reset.command.js.map +1 -1
  380. package/dist/src/commands/local/restore.command.d.ts.map +1 -1
  381. package/dist/src/commands/local/restore.command.js.map +1 -1
  382. package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
  383. package/dist/src/commands/local/smoke.command.js +1 -1
  384. package/dist/src/commands/local/smoke.command.js.map +1 -1
  385. package/dist/src/commands/local/sor-addresses.command.d.ts +20 -0
  386. package/dist/src/commands/local/sor-addresses.command.d.ts.map +1 -0
  387. package/dist/src/commands/local/sor-addresses.command.js +65 -0
  388. package/dist/src/commands/local/sor-addresses.command.js.map +1 -0
  389. package/dist/src/commands/local/sor-command.utils.d.ts +12 -0
  390. package/dist/src/commands/local/sor-command.utils.d.ts.map +1 -0
  391. package/dist/src/commands/local/sor-command.utils.js +28 -0
  392. package/dist/src/commands/local/sor-command.utils.js.map +1 -0
  393. package/dist/src/commands/local/sor-secrets.command.d.ts +20 -0
  394. package/dist/src/commands/local/sor-secrets.command.d.ts.map +1 -0
  395. package/dist/src/commands/local/sor-secrets.command.js +75 -0
  396. package/dist/src/commands/local/sor-secrets.command.js.map +1 -0
  397. package/dist/src/commands/local/sor-simulators.command.d.ts +21 -0
  398. package/dist/src/commands/local/sor-simulators.command.d.ts.map +1 -0
  399. package/dist/src/commands/local/sor-simulators.command.js +55 -0
  400. package/dist/src/commands/local/sor-simulators.command.js.map +1 -0
  401. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  402. package/dist/src/commands/local/status.command.js.map +1 -1
  403. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  404. package/dist/src/commands/local/up.command.js.map +1 -1
  405. package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
  406. package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
  407. package/dist/src/commands/lock/check.command.d.ts +7 -7
  408. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  409. package/dist/src/commands/lock/check.command.js +11 -11
  410. package/dist/src/commands/lock/check.command.js.map +1 -1
  411. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  412. package/dist/src/commands/market/generate.command.js.map +1 -1
  413. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  414. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  415. package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
  416. package/dist/src/commands/prefs/set.command.js.map +1 -1
  417. package/dist/src/commands/providers/application-connection-session.utils.d.ts +9 -0
  418. package/dist/src/commands/providers/application-connection-session.utils.d.ts.map +1 -0
  419. package/dist/src/commands/providers/application-connection-session.utils.js +49 -0
  420. package/dist/src/commands/providers/application-connection-session.utils.js.map +1 -0
  421. package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -1
  422. package/dist/src/commands/providers/chat-command-registrations.utils.js +2 -1
  423. package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -1
  424. package/dist/src/commands/providers/connect.command.d.ts +19 -0
  425. package/dist/src/commands/providers/connect.command.d.ts.map +1 -0
  426. package/dist/src/commands/providers/connect.command.js +257 -0
  427. package/dist/src/commands/providers/connect.command.js.map +1 -0
  428. package/dist/src/commands/providers/connections.command.d.ts +14 -0
  429. package/dist/src/commands/providers/connections.command.d.ts.map +1 -0
  430. package/dist/src/commands/providers/connections.command.js +74 -0
  431. package/dist/src/commands/providers/connections.command.js.map +1 -0
  432. package/dist/src/commands/providers/disconnect.command.d.ts +15 -0
  433. package/dist/src/commands/providers/disconnect.command.d.ts.map +1 -0
  434. package/dist/src/commands/providers/disconnect.command.js +91 -0
  435. package/dist/src/commands/providers/disconnect.command.js.map +1 -0
  436. package/dist/src/commands/providers/new.command.d.ts.map +1 -1
  437. package/dist/src/commands/providers/new.command.js +2 -2
  438. package/dist/src/commands/providers/new.command.js.map +1 -1
  439. package/dist/src/commands/providers/probe.command.d.ts +0 -1
  440. package/dist/src/commands/providers/probe.command.d.ts.map +1 -1
  441. package/dist/src/commands/providers/probe.command.js +31 -31
  442. package/dist/src/commands/providers/probe.command.js.map +1 -1
  443. package/dist/src/commands/providers/prove.command.d.ts +16 -0
  444. package/dist/src/commands/providers/prove.command.d.ts.map +1 -0
  445. package/dist/src/commands/providers/prove.command.js +174 -0
  446. package/dist/src/commands/providers/prove.command.js.map +1 -0
  447. package/dist/src/commands/providers/register.command.d.ts.map +1 -1
  448. package/dist/src/commands/providers/register.command.js +45 -10
  449. package/dist/src/commands/providers/register.command.js.map +1 -1
  450. package/dist/src/commands/providers/show.command.d.ts.map +1 -1
  451. package/dist/src/commands/providers/show.command.js.map +1 -1
  452. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  453. package/dist/src/commands/registry/add.command.js.map +1 -1
  454. package/dist/src/commands/registry/domain.command.d.ts.map +1 -1
  455. package/dist/src/commands/registry/domain.command.js.map +1 -1
  456. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  457. package/dist/src/commands/registry/info.command.js.map +1 -1
  458. package/dist/src/commands/registry/key.command.d.ts.map +1 -1
  459. package/dist/src/commands/registry/key.command.js.map +1 -1
  460. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  461. package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
  462. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  463. package/dist/src/commands/registry/login.command.js +4 -2
  464. package/dist/src/commands/registry/login.command.js.map +1 -1
  465. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  466. package/dist/src/commands/registry/logout.command.js.map +1 -1
  467. package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
  468. package/dist/src/commands/registry/outdated.command.js.map +1 -1
  469. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  470. package/dist/src/commands/registry/ping.command.js.map +1 -1
  471. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  472. package/dist/src/commands/registry/publish.command.js +14 -0
  473. package/dist/src/commands/registry/publish.command.js.map +1 -1
  474. package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
  475. package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
  476. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  477. package/dist/src/commands/registry/remove.command.js.map +1 -1
  478. package/dist/src/commands/registry/repair-lockfile.command.d.ts +12 -11
  479. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  480. package/dist/src/commands/registry/repair-lockfile.command.js +47 -56
  481. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  482. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  483. package/dist/src/commands/registry/search.command.js.map +1 -1
  484. package/dist/src/commands/registry/status.command.d.ts.map +1 -1
  485. package/dist/src/commands/registry/status.command.js.map +1 -1
  486. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  487. package/dist/src/commands/registry/update.command.js.map +1 -1
  488. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  489. package/dist/src/commands/registry/whoami.command.js +4 -2
  490. package/dist/src/commands/registry/whoami.command.js.map +1 -1
  491. package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
  492. package/dist/src/commands/registry/yank.command.js.map +1 -1
  493. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  494. package/dist/src/commands/remote/create.command.js.map +1 -1
  495. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  496. package/dist/src/commands/remote/list.command.js.map +1 -1
  497. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  498. package/dist/src/commands/remote/status.command.js.map +1 -1
  499. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  500. package/dist/src/commands/remote/sync.command.js +1 -1
  501. package/dist/src/commands/remote/sync.command.js.map +1 -1
  502. package/dist/src/commands/seal/currency.command.d.ts +13 -0
  503. package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
  504. package/dist/src/commands/seal/currency.command.js +52 -0
  505. package/dist/src/commands/seal/currency.command.js.map +1 -0
  506. package/dist/src/commands/seal/dead.command.d.ts.map +1 -1
  507. package/dist/src/commands/seal/dead.command.js +2 -1
  508. package/dist/src/commands/seal/dead.command.js.map +1 -1
  509. package/dist/src/commands/seal/export.command.d.ts.map +1 -1
  510. package/dist/src/commands/seal/export.command.js.map +1 -1
  511. package/dist/src/commands/seal/log-export.command.d.ts.map +1 -1
  512. package/dist/src/commands/seal/log-export.command.js +6 -1
  513. package/dist/src/commands/seal/log-export.command.js.map +1 -1
  514. package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -1
  515. package/dist/src/commands/seal/log-verify.command.js +2 -1
  516. package/dist/src/commands/seal/log-verify.command.js.map +1 -1
  517. package/dist/src/commands/seal/rebuild-copy.command.d.ts +14 -0
  518. package/dist/src/commands/seal/rebuild-copy.command.d.ts.map +1 -0
  519. package/dist/src/commands/seal/rebuild-copy.command.js +48 -0
  520. package/dist/src/commands/seal/rebuild-copy.command.js.map +1 -0
  521. package/dist/src/commands/seal/retry.command.d.ts.map +1 -1
  522. package/dist/src/commands/seal/retry.command.js.map +1 -1
  523. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
  524. package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
  525. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
  526. package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -1
  527. package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -1
  528. package/dist/src/commands/seal/verify.command.d.ts +14 -0
  529. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  530. package/dist/src/commands/seal/verify.command.js +85 -9
  531. package/dist/src/commands/seal/verify.command.js.map +1 -1
  532. package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
  533. package/dist/src/commands/secrets/github.command.js.map +1 -1
  534. package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
  535. package/dist/src/commands/secrets/list.command.js.map +1 -1
  536. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  537. package/dist/src/commands/secrets/set.command.js +5 -3
  538. package/dist/src/commands/secrets/set.command.js.map +1 -1
  539. package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
  540. package/dist/src/commands/secrets/unset.command.js.map +1 -1
  541. package/dist/src/commands/setup.command.d.ts.map +1 -1
  542. package/dist/src/commands/setup.command.js.map +1 -1
  543. package/dist/src/commands/update.command.d.ts.map +1 -1
  544. package/dist/src/commands/update.command.js +86 -7
  545. package/dist/src/commands/update.command.js.map +1 -1
  546. package/dist/src/commands/version.command.d.ts.map +1 -1
  547. package/dist/src/commands/version.command.js.map +1 -1
  548. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  549. package/dist/src/commands/website/audit.command.js +15 -1
  550. package/dist/src/commands/website/audit.command.js.map +1 -1
  551. package/dist/src/commands/website/look.command.d.ts.map +1 -1
  552. package/dist/src/commands/website/look.command.js.map +1 -1
  553. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  554. package/dist/src/commands/workbench/open.command.js +12 -3
  555. package/dist/src/commands/workbench/open.command.js.map +1 -1
  556. package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
  557. package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
  558. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  559. package/dist/src/commands/workbench/status.command.js.map +1 -1
  560. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  561. package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
  562. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  563. package/dist/src/infrastructure/io/file.utils.js.map +1 -1
  564. package/dist/src/infrastructure/io/io.schemas.d.ts +4 -4
  565. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  566. package/dist/src/infrastructure/io/io.schemas.js +4 -4
  567. package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
  568. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  569. package/dist/src/infrastructure/io/template-processor.js.map +1 -1
  570. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  571. package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
  572. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  573. package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
  574. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  575. package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
  576. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  577. package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
  578. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  579. package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
  580. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  581. package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
  582. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  583. package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
  584. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  585. package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
  586. package/dist/src/kernel/base-command.d.ts.map +1 -1
  587. package/dist/src/kernel/base-command.js.map +1 -1
  588. package/dist/src/kernel/bootstrap.d.ts +10 -0
  589. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  590. package/dist/src/kernel/bootstrap.js +13 -1
  591. package/dist/src/kernel/bootstrap.js.map +1 -1
  592. package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
  593. package/dist/src/kernel/command-index-cache.js.map +1 -1
  594. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  595. package/dist/src/kernel/command-registry.js +5 -0
  596. package/dist/src/kernel/command-registry.js.map +1 -1
  597. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  598. package/dist/src/kernel/command-runner.js.map +1 -1
  599. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  600. package/dist/src/kernel/command-scope-utils.js.map +1 -1
  601. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  602. package/dist/src/kernel/flag-utils.js.map +1 -1
  603. package/dist/src/kernel/hooks.d.ts.map +1 -1
  604. package/dist/src/kernel/hooks.js.map +1 -1
  605. package/dist/src/kernel/json-document-output.d.ts.map +1 -1
  606. package/dist/src/kernel/json-document-output.js.map +1 -1
  607. package/dist/src/kernel/logger.d.ts.map +1 -1
  608. package/dist/src/kernel/logger.js.map +1 -1
  609. package/dist/src/kernel/types.d.ts +8 -1
  610. package/dist/src/kernel/types.d.ts.map +1 -1
  611. package/dist/src/kernel/types.js +7 -0
  612. package/dist/src/kernel/types.js.map +1 -1
  613. package/dist/src/main.d.ts.map +1 -1
  614. package/dist/src/main.js.map +1 -1
  615. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  616. package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
  617. package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
  618. package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
  619. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
  620. package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
  621. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  622. package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
  623. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  624. package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
  625. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  626. package/dist/src/modules/domain/environment/module.types.js.map +1 -1
  627. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  628. package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
  629. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  630. package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
  631. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  632. package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
  633. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  634. package/dist/src/modules/domain/module.types.js.map +1 -1
  635. package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -1
  636. package/dist/src/services/application/ai-use-declarations.service.js.map +1 -1
  637. package/dist/src/services/application/app-bootstrap.service.d.ts +42 -3
  638. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  639. package/dist/src/services/application/app-bootstrap.service.js +147 -42
  640. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  641. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  642. package/dist/src/services/application/app-env.service.js.map +1 -1
  643. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +19 -1
  644. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  645. package/dist/src/services/application/app-local-runtime-addresses.service.js +23 -5
  646. package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
  647. package/dist/src/services/application/app-runtime-targets.service.d.ts +8 -1
  648. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  649. package/dist/src/services/application/app-runtime-targets.service.js +17 -8
  650. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  651. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  652. package/dist/src/services/application/app-schema-bootstrap.service.js +5 -1
  653. package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
  654. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  655. package/dist/src/services/application/application-assets-delivery.service.js +10 -1
  656. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  657. package/dist/src/services/application/application-browser-smoke.service.d.ts +23 -0
  658. package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
  659. package/dist/src/services/application/application-browser-smoke.service.js +142 -19
  660. package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
  661. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  662. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  663. package/dist/src/services/application/application-dependency-alignment.service.d.ts +10 -6
  664. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  665. package/dist/src/services/application/application-dependency-alignment.service.js +32 -18
  666. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  667. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  668. package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
  669. package/dist/src/services/application/application-dev-script-migration.service.d.ts +56 -0
  670. package/dist/src/services/application/application-dev-script-migration.service.d.ts.map +1 -0
  671. package/dist/src/services/application/application-dev-script-migration.service.js +208 -0
  672. package/dist/src/services/application/application-dev-script-migration.service.js.map +1 -0
  673. package/dist/src/services/application/application-initialization-verification.service.d.ts +8 -0
  674. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  675. package/dist/src/services/application/application-initialization-verification.service.js +31 -11
  676. package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
  677. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  678. package/dist/src/services/application/application-root.utils.js.map +1 -1
  679. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  680. package/dist/src/services/application/application-runtime-bootstrap.service.js +2 -0
  681. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  682. package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
  683. package/dist/src/services/application/backend-config.paths.js.map +1 -1
  684. package/dist/src/services/application/composition-provider-plan.service.d.ts +1 -1
  685. package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
  686. package/dist/src/services/application/composition-provider-plan.service.js +53 -28
  687. package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
  688. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
  689. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
  690. package/dist/src/services/application/content-guardrail-classifier.service.js +76 -12
  691. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
  692. package/dist/src/services/application/creation-host-readiness.service.d.ts +13 -1
  693. package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
  694. package/dist/src/services/application/creation-host-readiness.service.js +44 -5
  695. package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
  696. package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
  697. package/dist/src/services/application/creation-preflight.service.js.map +1 -1
  698. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
  699. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
  700. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  701. package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
  702. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  703. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  704. package/dist/src/services/application/engine-label-base-seeding.service.d.ts +85 -0
  705. package/dist/src/services/application/engine-label-base-seeding.service.d.ts.map +1 -0
  706. package/dist/src/services/application/engine-label-base-seeding.service.js +130 -0
  707. package/dist/src/services/application/engine-label-base-seeding.service.js.map +1 -0
  708. package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
  709. package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
  710. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  711. package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
  712. package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -1
  713. package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +1 -1
  714. package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -1
  715. package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
  716. package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
  717. package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -1
  718. package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -1
  719. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
  720. package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
  721. package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts +13 -0
  722. package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts.map +1 -0
  723. package/dist/src/services/application/infra-system-of-record-addresses.editor.js +185 -0
  724. package/dist/src/services/application/infra-system-of-record-addresses.editor.js.map +1 -0
  725. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  726. package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
  727. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  728. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  729. package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
  730. package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
  731. package/dist/src/services/application/local-provider-doubles.service.js +214 -0
  732. package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
  733. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  734. package/dist/src/services/application/provider-runtime-sync.service.js +38 -10
  735. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  736. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  737. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  738. package/dist/src/services/application/saas-skeleton.service.d.ts +6 -2
  739. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  740. package/dist/src/services/application/saas-skeleton.service.js +46 -11
  741. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  742. package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
  743. package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
  744. package/dist/src/services/application/system-of-record-simulators.service.d.ts +221 -0
  745. package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -0
  746. package/dist/src/services/application/system-of-record-simulators.service.js +442 -0
  747. package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -0
  748. package/dist/src/services/application/systems-of-record-library.service.d.ts +1 -1
  749. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  750. package/dist/src/services/application/systems-of-record-library.service.js +6 -3
  751. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  752. package/dist/src/services/assurance/assurance-cycle-location.service.d.ts +59 -0
  753. package/dist/src/services/assurance/assurance-cycle-location.service.d.ts.map +1 -0
  754. package/dist/src/services/assurance/assurance-cycle-location.service.js +139 -0
  755. package/dist/src/services/assurance/assurance-cycle-location.service.js.map +1 -0
  756. package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -1
  757. package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -1
  758. package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -1
  759. package/dist/src/services/blueprint/blueprint-artifact.service.js +2 -1
  760. package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -1
  761. package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -1
  762. package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -1
  763. package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -1
  764. package/dist/src/services/blueprint/blueprint-export.service.js +2 -1
  765. package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -1
  766. package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -1
  767. package/dist/src/services/blueprint/blueprint-line.service.js +5 -3
  768. package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -1
  769. package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -1
  770. package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -1
  771. package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -1
  772. package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -1
  773. package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -1
  774. package/dist/src/services/blueprint/blueprint-report.js.map +1 -1
  775. package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +1 -1
  776. package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -1
  777. package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +1 -1
  778. package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -1
  779. package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -1
  780. package/dist/src/services/blueprint/framework-blueprints.service.js +20 -7
  781. package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -1
  782. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  783. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  784. package/dist/src/services/catalog/service-catalog.schemas.d.ts +8 -33
  785. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  786. package/dist/src/services/catalog/service-catalog.schemas.js +23 -6
  787. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  788. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  789. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  790. package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
  791. package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
  792. package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -1
  793. package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -1
  794. package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -1
  795. package/dist/src/services/companion/agent-work-shortfall-words.js +21 -2
  796. package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -1
  797. package/dist/src/services/companion/build-console.service.d.ts +179 -7
  798. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  799. package/dist/src/services/companion/build-console.service.js +184 -15
  800. package/dist/src/services/companion/build-console.service.js.map +1 -1
  801. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  802. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  803. package/dist/src/services/companion/companion-client.service.d.ts +25 -1
  804. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  805. package/dist/src/services/companion/companion-client.service.js +61 -10
  806. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  807. package/dist/src/services/companion/companion-health-hint.utils.d.ts +2 -1
  808. package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
  809. package/dist/src/services/companion/companion-health-hint.utils.js +8 -1
  810. package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
  811. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  812. package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
  813. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
  814. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
  815. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  816. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  817. package/dist/src/services/companion/console-agent.d.ts +50 -0
  818. package/dist/src/services/companion/console-agent.d.ts.map +1 -0
  819. package/dist/src/services/companion/console-agent.js +67 -0
  820. package/dist/src/services/companion/console-agent.js.map +1 -0
  821. package/dist/src/services/companion/console-fast-path.d.ts +6 -4
  822. package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
  823. package/dist/src/services/companion/console-fast-path.js +12 -9
  824. package/dist/src/services/companion/console-fast-path.js.map +1 -1
  825. package/dist/src/services/companion/console-verb.utils.d.ts +7 -0
  826. package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
  827. package/dist/src/services/companion/console-verb.utils.js +22 -1
  828. package/dist/src/services/companion/console-verb.utils.js.map +1 -1
  829. package/dist/src/services/companion/creation-console.service.d.ts +44 -13
  830. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  831. package/dist/src/services/companion/creation-console.service.js +121 -7
  832. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  833. package/dist/src/services/companion/creation-drive.service.d.ts +262 -0
  834. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -0
  835. package/dist/src/services/companion/creation-drive.service.js +499 -0
  836. package/dist/src/services/companion/creation-drive.service.js.map +1 -0
  837. package/dist/src/services/companion/creation-run-report.models.d.ts +14 -0
  838. package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
  839. package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
  840. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  841. package/dist/src/services/companion/git-helper.service.js.map +1 -1
  842. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  843. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  844. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  845. package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
  846. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  847. package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
  848. package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
  849. package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
  850. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  851. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  852. package/dist/src/services/compliance/governed-document-releases.generator.d.ts +22 -6
  853. package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
  854. package/dist/src/services/compliance/governed-document-releases.generator.js +31 -11
  855. package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
  856. package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -1
  857. package/dist/src/services/compliance/legal-notice.generator.js.map +1 -1
  858. package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
  859. package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
  860. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
  861. package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
  862. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  863. package/dist/src/services/context/context-manager.service.js.map +1 -1
  864. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  865. package/dist/src/services/context/context.schemas.js.map +1 -1
  866. package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
  867. package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
  868. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  869. package/dist/src/services/context/state-manager.service.js.map +1 -1
  870. package/dist/src/services/credentials/application-secret-owners.service.d.ts +6 -1
  871. package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
  872. package/dist/src/services/credentials/application-secret-owners.service.js +50 -102
  873. package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
  874. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  875. package/dist/src/services/credentials/application-secrets.service.js +42 -13
  876. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  877. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  878. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  879. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +54 -3
  880. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  881. package/dist/src/services/credentials/composed-provider-catalogue.js +77 -14
  882. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  883. package/dist/src/services/credentials/credentials.schemas.d.ts +21 -159
  884. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  885. package/dist/src/services/credentials/credentials.schemas.js +35 -18
  886. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  887. package/dist/src/services/credentials/credentials.service.d.ts +8 -2
  888. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  889. package/dist/src/services/credentials/credentials.service.js +11 -2
  890. package/dist/src/services/credentials/credentials.service.js.map +1 -1
  891. package/dist/src/services/credentials/framework-managed-secrets.d.ts +19 -5
  892. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  893. package/dist/src/services/credentials/framework-managed-secrets.js +42 -14
  894. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  895. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  896. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  897. package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
  898. package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
  899. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  900. package/dist/src/services/credentials/provider-env-vars.utils.js +21 -5
  901. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  902. package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
  903. package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
  904. package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
  905. package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
  906. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  907. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  908. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  909. package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
  910. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  911. package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
  912. package/dist/src/services/credentials/secrets-rotation.service.d.ts +9 -0
  913. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  914. package/dist/src/services/credentials/secrets-rotation.service.js +1 -1
  915. package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
  916. package/dist/src/services/credentials/secrets-writer.service.d.ts +4 -1
  917. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  918. package/dist/src/services/credentials/secrets-writer.service.js +4 -2
  919. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  920. package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
  921. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  922. package/dist/src/services/data-services/data-services.schemas.js +9 -0
  923. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  924. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  925. package/dist/src/services/data-services/data-services.service.js.map +1 -1
  926. package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts +93 -0
  927. package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts.map +1 -0
  928. package/dist/src/services/data-services/platform-key-vault.break-glass.service.js +253 -0
  929. package/dist/src/services/data-services/platform-key-vault.break-glass.service.js.map +1 -0
  930. package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts +22 -0
  931. package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts.map +1 -0
  932. package/dist/src/services/data-services/platform-key-vault.break-glass.target.js +64 -0
  933. package/dist/src/services/data-services/platform-key-vault.break-glass.target.js.map +1 -0
  934. package/dist/src/services/data-services/platform-key-vault.server-config.d.ts +42 -11
  935. package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -1
  936. package/dist/src/services/data-services/platform-key-vault.server-config.js +63 -16
  937. package/dist/src/services/data-services/platform-key-vault.server-config.js.map +1 -1
  938. package/dist/src/services/deployment/application-first-run-checks.service.d.ts +131 -0
  939. package/dist/src/services/deployment/application-first-run-checks.service.d.ts.map +1 -0
  940. package/dist/src/services/deployment/application-first-run-checks.service.js +438 -0
  941. package/dist/src/services/deployment/application-first-run-checks.service.js.map +1 -0
  942. package/dist/src/services/deployment/application-runtime-environment.d.ts +93 -0
  943. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -0
  944. package/dist/src/services/deployment/application-runtime-environment.js +116 -0
  945. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -0
  946. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  947. package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
  948. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  949. package/dist/src/services/deployment/ci-deploy-generator.service.js +14 -1
  950. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  951. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  952. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  953. package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
  954. package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
  955. package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
  956. package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
  957. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +177 -51
  958. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  959. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +368 -93
  960. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  961. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  962. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  963. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  964. package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
  965. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  966. package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
  967. package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
  968. package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
  969. package/dist/src/services/deployment/framework-pod-network-membership.d.ts +56 -0
  970. package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -0
  971. package/dist/src/services/deployment/framework-pod-network-membership.js +126 -0
  972. package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -0
  973. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  974. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  975. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  976. package/dist/src/services/deployment/infra-writer.service.js +4 -4
  977. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  978. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
  979. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
  980. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  981. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  982. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  983. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
  984. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +51 -10
  985. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  986. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +179 -43
  987. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  988. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +38 -2
  989. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  990. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  991. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  992. package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
  993. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  994. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +35 -31
  995. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  996. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  997. package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
  998. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  999. package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
  1000. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  1001. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
  1002. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +38 -0
  1003. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -0
  1004. package/dist/src/services/deployment/k8s/off-cluster-backing-services.js +84 -0
  1005. package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -0
  1006. package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -1
  1007. package/dist/src/services/deployment/local-dev-log-retention.service.js +3 -2
  1008. package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -1
  1009. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  1010. package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
  1011. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  1012. package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -1
  1013. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  1014. package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
  1015. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  1016. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  1017. package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
  1018. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  1019. package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
  1020. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  1021. package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -1
  1022. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +53 -0
  1023. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  1024. package/dist/src/services/deployment/local-precondition-checks.service.js +118 -1
  1025. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  1026. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  1027. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +32 -1
  1028. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
  1029. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  1030. package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
  1031. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  1032. package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
  1033. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  1034. package/dist/src/services/deployment/version-compare.utils.js.map +1 -1
  1035. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  1036. package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
  1037. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  1038. package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
  1039. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  1040. package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
  1041. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  1042. package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -1
  1043. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  1044. package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
  1045. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  1046. package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
  1047. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  1048. package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
  1049. package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
  1050. package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
  1051. package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -1
  1052. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  1053. package/dist/src/services/environment/authored-infra-config.utils.js +14 -1
  1054. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  1055. package/dist/src/services/environment/authored-infra-member-authority.d.ts +87 -0
  1056. package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -0
  1057. package/dist/src/services/environment/authored-infra-member-authority.js +256 -0
  1058. package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -0
  1059. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +56 -0
  1060. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -0
  1061. package/dist/src/services/environment/container-host-gateway-listen-host.js +102 -0
  1062. package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -0
  1063. package/dist/src/services/environment/env-configuration-generator.service.d.ts +13 -8
  1064. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  1065. package/dist/src/services/environment/env-configuration-generator.service.js +38 -13
  1066. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  1067. package/dist/src/services/environment/env-sync.service.d.ts +3 -2
  1068. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  1069. package/dist/src/services/environment/env-sync.service.js +21 -7
  1070. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  1071. package/dist/src/services/environment/env-vars-builder.service.d.ts +35 -4
  1072. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  1073. package/dist/src/services/environment/env-vars-builder.service.js +88 -55
  1074. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  1075. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  1076. package/dist/src/services/environment/environment-hydration.utils.js +29 -30
  1077. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  1078. package/dist/src/services/environment/environment-lifecycle.service.d.ts +19 -0
  1079. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  1080. package/dist/src/services/environment/environment-lifecycle.service.js +35 -0
  1081. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  1082. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  1083. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  1084. package/dist/src/services/environment/environment-registry.service.d.ts +5 -6
  1085. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  1086. package/dist/src/services/environment/environment-registry.service.js +5 -6
  1087. package/dist/src/services/environment/environment-registry.service.js.map +1 -1
  1088. package/dist/src/services/environment/environment-service-profile.utils.d.ts +34 -0
  1089. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -0
  1090. package/dist/src/services/environment/environment-service-profile.utils.js +43 -0
  1091. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -0
  1092. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  1093. package/dist/src/services/environment/environment-setup.service.js +1 -1
  1094. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  1095. package/dist/src/services/environment/environment.schemas.d.ts +14 -11
  1096. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  1097. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  1098. package/dist/src/services/environment/environment.service.d.ts +5 -0
  1099. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  1100. package/dist/src/services/environment/environment.service.js +2 -0
  1101. package/dist/src/services/environment/environment.service.js.map +1 -1
  1102. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
  1103. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
  1104. package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
  1105. package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
  1106. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  1107. package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
  1108. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  1109. package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
  1110. package/dist/src/services/environment/platform-runtime.schemas.d.ts +26 -0
  1111. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  1112. package/dist/src/services/environment/platform-runtime.schemas.js +28 -0
  1113. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  1114. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +106 -61
  1115. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  1116. package/dist/src/services/environment/runtime-bootstrap.service.js +178 -152
  1117. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  1118. package/dist/src/services/framework/application-agent-hooks-console.d.ts +153 -0
  1119. package/dist/src/services/framework/application-agent-hooks-console.d.ts.map +1 -0
  1120. package/dist/src/services/framework/application-agent-hooks-console.js +401 -0
  1121. package/dist/src/services/framework/application-agent-hooks-console.js.map +1 -0
  1122. package/dist/src/services/framework/application-agent-skills-console.d.ts +78 -0
  1123. package/dist/src/services/framework/application-agent-skills-console.d.ts.map +1 -0
  1124. package/dist/src/services/framework/application-agent-skills-console.js +116 -0
  1125. package/dist/src/services/framework/application-agent-skills-console.js.map +1 -0
  1126. package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
  1127. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  1128. package/dist/src/services/framework/application-console-loaders.d.ts +107 -0
  1129. package/dist/src/services/framework/application-console-loaders.d.ts.map +1 -0
  1130. package/dist/src/services/framework/application-console-loaders.js +221 -0
  1131. package/dist/src/services/framework/application-console-loaders.js.map +1 -0
  1132. package/dist/src/services/framework/application-opencode-console.d.ts +43 -0
  1133. package/dist/src/services/framework/application-opencode-console.d.ts.map +1 -0
  1134. package/dist/src/services/framework/application-opencode-console.js +68 -0
  1135. package/dist/src/services/framework/application-opencode-console.js.map +1 -0
  1136. package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -1
  1137. package/dist/src/services/framework/application-provider-skills.service.js.map +1 -1
  1138. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
  1139. package/dist/src/services/framework/application-rule-imports.js.map +1 -1
  1140. package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -1
  1141. package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -1
  1142. package/dist/src/services/framework/claude-plugin-compiler.d.ts +6 -0
  1143. package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
  1144. package/dist/src/services/framework/claude-plugin-compiler.js +6 -1
  1145. package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
  1146. package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
  1147. package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
  1148. package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -1
  1149. package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -1
  1150. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +5 -0
  1151. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -1
  1152. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +7 -2
  1153. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -1
  1154. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +19 -0
  1155. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  1156. package/dist/src/services/framework/framework-development-skills-sync.service.js +18 -4
  1157. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  1158. package/dist/src/services/framework/framework-docker-publish.service.d.ts +34 -2
  1159. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  1160. package/dist/src/services/framework/framework-docker-publish.service.js +63 -17
  1161. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  1162. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  1163. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -1
  1164. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +20 -3
  1165. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  1166. package/dist/src/services/framework/framework-knowledge-audit.service.js +86 -3
  1167. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  1168. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  1169. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  1170. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  1171. package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
  1172. package/dist/src/services/framework/framework-npm-credential.d.ts +76 -0
  1173. package/dist/src/services/framework/framework-npm-credential.d.ts.map +1 -0
  1174. package/dist/src/services/framework/framework-npm-credential.js +113 -0
  1175. package/dist/src/services/framework/framework-npm-credential.js.map +1 -0
  1176. package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +100 -8
  1177. package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -1
  1178. package/dist/src/services/framework/framework-npm-dist-tag.service.js +147 -25
  1179. package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -1
  1180. package/dist/src/services/framework/framework-npm-publish.service.d.ts +50 -4
  1181. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  1182. package/dist/src/services/framework/framework-npm-publish.service.js +128 -56
  1183. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  1184. package/dist/src/services/framework/framework-publish-cli-origin.d.ts +22 -0
  1185. package/dist/src/services/framework/framework-publish-cli-origin.d.ts.map +1 -0
  1186. package/dist/src/services/framework/framework-publish-cli-origin.js +49 -0
  1187. package/dist/src/services/framework/framework-publish-cli-origin.js.map +1 -0
  1188. package/dist/src/services/framework/framework-publish-manifest.service.d.ts +18 -3
  1189. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  1190. package/dist/src/services/framework/framework-publish-manifest.service.js +43 -75
  1191. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  1192. package/dist/src/services/framework/framework-release.service.d.ts +13 -0
  1193. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  1194. package/dist/src/services/framework/framework-release.service.js +15 -2
  1195. package/dist/src/services/framework/framework-release.service.js.map +1 -1
  1196. package/dist/src/services/framework/framework-update.service.d.ts +7 -3
  1197. package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
  1198. package/dist/src/services/framework/framework-update.service.js +25 -16
  1199. package/dist/src/services/framework/framework-update.service.js.map +1 -1
  1200. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  1201. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  1202. package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
  1203. package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
  1204. package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
  1205. package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
  1206. package/dist/src/services/framework/installed-framework-assets.service.d.ts +2 -2
  1207. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  1208. package/dist/src/services/framework/installed-framework-assets.service.js +4 -0
  1209. package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
  1210. package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
  1211. package/dist/src/services/framework/npm-registry-output.js.map +1 -1
  1212. package/dist/src/services/framework/package-install.service.d.ts +13 -3
  1213. package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
  1214. package/dist/src/services/framework/package-install.service.js +22 -9
  1215. package/dist/src/services/framework/package-install.service.js.map +1 -1
  1216. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
  1217. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
  1218. package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
  1219. package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
  1220. package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
  1221. package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
  1222. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
  1223. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
  1224. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
  1225. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
  1226. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
  1227. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
  1228. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
  1229. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
  1230. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
  1231. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +3 -3
  1232. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
  1233. package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
  1234. package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
  1235. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
  1236. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
  1237. package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
  1238. package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
  1239. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
  1240. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
  1241. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
  1242. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
  1243. package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -1
  1244. package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -1
  1245. package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -1
  1246. package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -1
  1247. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  1248. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  1249. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  1250. package/dist/src/services/frontend/cloudflare-cdn.service.js +3 -6
  1251. package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
  1252. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts +11 -3
  1253. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  1254. package/dist/src/services/frontend/frontend-dist-uploader.service.js +72 -29
  1255. package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
  1256. package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -1
  1257. package/dist/src/services/frontend/frontend-look.service.js +2 -1
  1258. package/dist/src/services/frontend/frontend-look.service.js.map +1 -1
  1259. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  1260. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  1261. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  1262. package/dist/src/services/generation/domain-generator.service.js.map +1 -1
  1263. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  1264. package/dist/src/services/generation/generator.schemas.js.map +1 -1
  1265. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  1266. package/dist/src/services/generation/operation-generator.service.js.map +1 -1
  1267. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  1268. package/dist/src/services/generation/resource-generator.service.js.map +1 -1
  1269. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  1270. package/dist/src/services/generation/template-registry.service.js.map +1 -1
  1271. package/dist/src/services/registry/application-provider-connection.service.d.ts +161 -0
  1272. package/dist/src/services/registry/application-provider-connection.service.d.ts.map +1 -0
  1273. package/dist/src/services/registry/application-provider-connection.service.js +337 -0
  1274. package/dist/src/services/registry/application-provider-connection.service.js.map +1 -0
  1275. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  1276. package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
  1277. package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
  1278. package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
  1279. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  1280. package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
  1281. package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
  1282. package/dist/src/services/registry/git-ignored-paths.utils.js +13 -2
  1283. package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
  1284. package/dist/src/services/registry/index.d.ts.map +1 -1
  1285. package/dist/src/services/registry/index.js.map +1 -1
  1286. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  1287. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  1288. package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -1
  1289. package/dist/src/services/registry/installed-provider-module.service.js.map +1 -1
  1290. package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
  1291. package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
  1292. package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
  1293. package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
  1294. package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
  1295. package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
  1296. package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
  1297. package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
  1298. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  1299. package/dist/src/services/registry/module-install.service.js.map +1 -1
  1300. package/dist/src/services/registry/module-publish.service.d.ts.map +1 -1
  1301. package/dist/src/services/registry/module-publish.service.js +16 -7
  1302. package/dist/src/services/registry/module-publish.service.js.map +1 -1
  1303. package/dist/src/services/registry/module-registration.service.d.ts +0 -11
  1304. package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
  1305. package/dist/src/services/registry/module-registration.service.js +88 -149
  1306. package/dist/src/services/registry/module-registration.service.js.map +1 -1
  1307. package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
  1308. package/dist/src/services/registry/module-requirements.service.js +5 -5
  1309. package/dist/src/services/registry/module-requirements.service.js.map +1 -1
  1310. package/dist/src/services/registry/provider-configuration-checks.service.d.ts +55 -0
  1311. package/dist/src/services/registry/provider-configuration-checks.service.d.ts.map +1 -0
  1312. package/dist/src/services/registry/provider-configuration-checks.service.js +208 -0
  1313. package/dist/src/services/registry/provider-configuration-checks.service.js.map +1 -0
  1314. package/dist/src/services/registry/provider-connect.service.d.ts +300 -0
  1315. package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -0
  1316. package/dist/src/services/registry/provider-connect.service.js +712 -0
  1317. package/dist/src/services/registry/provider-connect.service.js.map +1 -0
  1318. package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts +29 -0
  1319. package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts.map +1 -0
  1320. package/dist/src/services/registry/provider-graphql-schema-conformance.service.js +121 -0
  1321. package/dist/src/services/registry/provider-graphql-schema-conformance.service.js.map +1 -0
  1322. package/dist/src/services/registry/provider-install-step.d.ts +38 -4
  1323. package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
  1324. package/dist/src/services/registry/provider-install-step.js +56 -11
  1325. package/dist/src/services/registry/provider-install-step.js.map +1 -1
  1326. package/dist/src/services/registry/provider-module-checks.service.d.ts +12 -1
  1327. package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
  1328. package/dist/src/services/registry/provider-module-checks.service.js +114 -25
  1329. package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
  1330. package/dist/src/services/registry/provider-module-engine-range.service.d.ts +88 -0
  1331. package/dist/src/services/registry/provider-module-engine-range.service.d.ts.map +1 -0
  1332. package/dist/src/services/registry/provider-module-engine-range.service.js +386 -0
  1333. package/dist/src/services/registry/provider-module-engine-range.service.js.map +1 -0
  1334. package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
  1335. package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
  1336. package/dist/src/services/registry/provider-module-scaffold.service.d.ts +1 -1
  1337. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  1338. package/dist/src/services/registry/provider-module-scaffold.service.js +9 -0
  1339. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  1340. package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +2 -2
  1341. package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -1
  1342. package/dist/src/services/registry/provider-module-vendor-packages.service.js +9 -6
  1343. package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -1
  1344. package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +22 -12
  1345. package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -1
  1346. package/dist/src/services/registry/provider-openapi-conformance.service.js +122 -51
  1347. package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -1
  1348. package/dist/src/services/registry/provider-probe-credentials.service.d.ts +94 -0
  1349. package/dist/src/services/registry/provider-probe-credentials.service.d.ts.map +1 -0
  1350. package/dist/src/services/registry/provider-probe-credentials.service.js +184 -0
  1351. package/dist/src/services/registry/provider-probe-credentials.service.js.map +1 -0
  1352. package/dist/src/services/registry/provider-probe.service.d.ts +189 -5
  1353. package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -1
  1354. package/dist/src/services/registry/provider-probe.service.js +268 -54
  1355. package/dist/src/services/registry/provider-probe.service.js.map +1 -1
  1356. package/dist/src/services/registry/provider-proof.service.d.ts +206 -0
  1357. package/dist/src/services/registry/provider-proof.service.d.ts.map +1 -0
  1358. package/dist/src/services/registry/provider-proof.service.js +640 -0
  1359. package/dist/src/services/registry/provider-proof.service.js.map +1 -0
  1360. package/dist/src/services/registry/provider-publication.service.d.ts +8 -0
  1361. package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -1
  1362. package/dist/src/services/registry/provider-publication.service.js +25 -12
  1363. package/dist/src/services/registry/provider-publication.service.js.map +1 -1
  1364. package/dist/src/services/registry/provider-vendor-registration.service.d.ts +10 -0
  1365. package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -1
  1366. package/dist/src/services/registry/provider-vendor-registration.service.js +34 -0
  1367. package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -1
  1368. package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
  1369. package/dist/src/services/registry/provider-wiring.service.js +4 -4
  1370. package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
  1371. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  1372. package/dist/src/services/registry/registry-command.utils.js.map +1 -1
  1373. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  1374. package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
  1375. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  1376. package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
  1377. package/dist/src/services/security/csp-sync.service.d.ts +20 -1
  1378. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  1379. package/dist/src/services/security/csp-sync.service.js +48 -6
  1380. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  1381. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  1382. package/dist/src/services/tools/utility-tools.service.js.map +1 -1
  1383. package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
  1384. package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
  1385. package/dist/src/services/website/website-label-pack-audit.service.d.ts +2 -2
  1386. package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
  1387. package/dist/src/services/website/website-label-pack-audit.service.js +5 -4
  1388. package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
  1389. package/dist/src/services/website/website-look.service.d.ts.map +1 -1
  1390. package/dist/src/services/website/website-look.service.js.map +1 -1
  1391. package/dist/src/services/website/website-schema-org-catalog.worker.d.ts +18 -0
  1392. package/dist/src/services/website/website-schema-org-catalog.worker.d.ts.map +1 -0
  1393. package/dist/src/services/website/website-schema-org-catalog.worker.js +104 -0
  1394. package/dist/src/services/website/website-schema-org-catalog.worker.js.map +1 -0
  1395. package/dist/src/services/website/website-structured-data-audit.service.d.ts +32 -5
  1396. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  1397. package/dist/src/services/website/website-structured-data-audit.service.js +63 -36
  1398. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  1399. package/dist/src/services/website/website-workspace.service.d.ts +42 -7
  1400. package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
  1401. package/dist/src/services/website/website-workspace.service.js +121 -12
  1402. package/dist/src/services/website/website-workspace.service.js.map +1 -1
  1403. package/dist/tsconfig.build.tsbuildinfo +1 -0
  1404. package/framework-root-package.json +121 -59
  1405. package/package.json +180 -99
  1406. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +67 -27
  1407. package/scripts/dev-orchestrator/local-dev-protocol.mjs +176 -7
  1408. package/scripts/dev-orchestrator/local-dev-status.mjs +297 -31
  1409. package/scripts/pnpm-workspace-members.mjs +146 -0
  1410. package/scripts/pnpm-workspace-settings.mjs +418 -0
  1411. package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
  1412. package/templates/infra/docker-compose/docker-compose.app.yml.hbs +17 -22
  1413. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +139 -63
  1414. package/templates/infra/docker-images/platform/Dockerfile.platform-base +2 -1
  1415. package/templates/infra/k8s/applications/wildo-ai-application/custom-domain-reconciler.yaml.hbs +222 -0
  1416. package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +30 -13
  1417. package/templates/infra/k8s/ingress/cert-manager/wildcard-certificate.yaml.hbs +1 -2
  1418. package/templates/infra/k8s/internal/clamav/deployment.yaml.hbs +1 -0
  1419. package/templates/infra/k8s/internal/immudb/deployment.yaml.hbs +1 -0
  1420. package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +1 -0
  1421. package/templates/infra/k8s/internal/mongodb/deployment.yaml.hbs +11 -0
  1422. package/templates/infra/k8s/internal/mongot/deployment.yaml.hbs +1 -0
  1423. package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +2 -2
  1424. package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +19 -2
  1425. package/templates/infra/k8s/internal/postgresql/deployment.yaml.hbs +2 -1
  1426. package/templates/infra/k8s/internal/rabbitmq/deployment.yaml.hbs +1 -0
  1427. package/templates/infra/k8s/internal/valkey/deployment.yaml.hbs +1 -0
  1428. package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +31 -0
  1429. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +1 -0
  1430. package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +1 -0
  1431. package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +3 -1
  1432. package/templates/infra/registry-host/docker-compose.yml +4 -0
  1433. package/templates/infra/yara-service/requirements.txt +1 -1
  1434. package/templates/saas/blueprints/b2b-saas/blueprint.json +1 -1
  1435. package/templates/saas/blueprints/internal-tool/blueprint.json +13 -1
  1436. package/templates/saas/blueprints/service-firm/blueprint.json +1 -1
  1437. package/templates/saas/engine-peer-closure.json +66 -8
  1438. package/templates/saas/i18n/email/components/labels.fr.ts +1 -1
  1439. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.en.ts +19 -0
  1440. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/template.tsx +49 -0
  1441. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.en.ts +20 -0
  1442. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/template.tsx +51 -0
  1443. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.en.ts +20 -0
  1444. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/template.tsx +49 -0
  1445. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +7 -5
  1446. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +7 -5
  1447. package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/template.tsx +1 -1
  1448. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.en.ts +23 -0
  1449. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/template.tsx +63 -0
  1450. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +10 -8
  1451. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +5 -3
  1452. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +11 -9
  1453. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +5 -3
  1454. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +8 -6
  1455. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +6 -4
  1456. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +10 -8
  1457. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +6 -4
  1458. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +11 -9
  1459. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +6 -4
  1460. package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +5 -5
  1461. package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +3 -3
  1462. package/templates/saas/i18n/engine/README.md +8 -3
  1463. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -1
  1464. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -1
  1465. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +2 -1
  1466. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +2 -1
  1467. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.ts +3 -3
  1468. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.fr.ts +3 -3
  1469. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +2 -1
  1470. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +2 -1
  1471. package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +4 -1
  1472. package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +4 -1
  1473. package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.ts +2 -1
  1474. package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.fr.ts +2 -1
  1475. package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +4 -1
  1476. package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +4 -1
  1477. package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.en.ts +35 -0
  1478. package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.fr.ts +35 -0
  1479. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +9 -9
  1480. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +10 -1
  1481. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +10 -1
  1482. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +18 -4
  1483. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +18 -4
  1484. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  1485. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  1486. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +4 -1
  1487. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +4 -1
  1488. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +4 -1
  1489. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +4 -1
  1490. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  1491. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  1492. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +8 -0
  1493. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +8 -0
  1494. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -7
  1495. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -7
  1496. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +432 -0
  1497. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +432 -0
  1498. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +497 -0
  1499. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +497 -0
  1500. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +3 -3
  1501. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +2 -2
  1502. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +2 -1
  1503. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +2 -1
  1504. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +57 -42
  1505. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +19 -4
  1506. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +113 -0
  1507. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +113 -0
  1508. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +18 -31
  1509. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +3 -16
  1510. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +223 -0
  1511. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +223 -0
  1512. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +64 -0
  1513. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +64 -0
  1514. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +11 -28
  1515. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +0 -17
  1516. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +8 -0
  1517. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +8 -0
  1518. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -1
  1519. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +1 -1
  1520. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +10 -24
  1521. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +3 -17
  1522. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +5 -5
  1523. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +2 -2
  1524. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +4 -4
  1525. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +5 -5
  1526. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -14
  1527. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +3 -3
  1528. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +44 -44
  1529. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +1 -1
  1530. package/templates/saas/i18n/engine/resources/applications.en.ts +280 -8
  1531. package/templates/saas/i18n/engine/resources/applications.fr.ts +279 -7
  1532. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +529 -0
  1533. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +529 -0
  1534. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +281 -325
  1535. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +120 -164
  1536. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +36 -36
  1537. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +4 -4
  1538. package/templates/saas/i18n/engine/resources/files.en.ts +30 -1
  1539. package/templates/saas/i18n/engine/resources/files.fr.ts +30 -1
  1540. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +226 -248
  1541. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +60 -82
  1542. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +21 -21
  1543. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +1 -1
  1544. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +8 -0
  1545. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +8 -0
  1546. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +8 -0
  1547. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +8 -0
  1548. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +221 -0
  1549. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +221 -0
  1550. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +184 -0
  1551. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +184 -0
  1552. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +1 -1
  1553. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +1 -1
  1554. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +16 -26
  1555. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -12
  1556. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +24 -22
  1557. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +24 -22
  1558. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +1 -1
  1559. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +1 -1
  1560. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +64 -0
  1561. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +64 -0
  1562. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +11 -28
  1563. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +0 -17
  1564. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +8 -0
  1565. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +8 -0
  1566. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +12 -4
  1567. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +12 -4
  1568. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +5 -5
  1569. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +2 -2
  1570. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +1 -1
  1571. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +1 -1
  1572. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +23 -4
  1573. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +23 -4
  1574. package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.en.ts → organizationModelUsageCeilingState.en.ts} +75 -81
  1575. package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.fr.ts → organizationModelUsageCeilingState.fr.ts} +75 -81
  1576. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +35 -45
  1577. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -12
  1578. package/templates/saas/i18n/engine/resources/{workbenchComplianceCandidateVariantSelections.en.ts → organizationPersonTokenCeilingState.en.ts} +70 -54
  1579. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +166 -0
  1580. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +1 -1
  1581. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +1 -1
  1582. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +9 -1
  1583. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +9 -1
  1584. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +5 -5
  1585. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +2 -2
  1586. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +27 -27
  1587. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +1 -1
  1588. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +17 -2
  1589. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +17 -2
  1590. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +8 -2
  1591. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +8 -2
  1592. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +1 -1
  1593. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +1 -1
  1594. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +20 -28
  1595. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +1 -9
  1596. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +2 -2
  1597. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +2 -2
  1598. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +6 -6
  1599. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +6 -6
  1600. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +15 -15
  1601. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +4 -4
  1602. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +69 -69
  1603. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +2 -2
  1604. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +169 -169
  1605. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +1 -1
  1606. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +4 -4
  1607. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +1 -1
  1608. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +5 -5
  1609. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +2 -2
  1610. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +19 -3
  1611. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +18 -2
  1612. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +9 -9
  1613. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +1 -1
  1614. package/templates/saas/i18n/engine/resources/organizations.en.ts +45 -10
  1615. package/templates/saas/i18n/engine/resources/organizations.fr.ts +45 -10
  1616. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +46 -46
  1617. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +1 -1
  1618. package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.en.ts → postCommitEffectOutbox.en.ts} +58 -75
  1619. package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.fr.ts → postCommitEffectOutbox.fr.ts} +58 -75
  1620. package/templates/saas/i18n/engine/resources/prices.en.ts +10 -10
  1621. package/templates/saas/i18n/engine/resources/prices.fr.ts +10 -10
  1622. package/templates/saas/i18n/engine/resources/products.en.ts +5 -5
  1623. package/templates/saas/i18n/engine/resources/products.fr.ts +5 -5
  1624. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +345 -0
  1625. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +345 -0
  1626. package/templates/saas/i18n/engine/resources/promotions.en.ts +10 -10
  1627. package/templates/saas/i18n/engine/resources/promotions.fr.ts +2 -2
  1628. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +19 -1
  1629. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +19 -1
  1630. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +334 -0
  1631. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +334 -0
  1632. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +24 -24
  1633. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +2 -2
  1634. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +8 -2
  1635. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +8 -2
  1636. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +223 -2
  1637. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +223 -2
  1638. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -0
  1639. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -0
  1640. package/templates/saas/i18n/engine/resources/{workbenchBrandNameJurisdictions.en.ts → ssoDomainReservations.en.ts} +57 -44
  1641. package/templates/saas/i18n/engine/resources/{workbenchMarketCategories.fr.ts → ssoDomainReservations.fr.ts} +52 -47
  1642. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +69 -0
  1643. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +69 -0
  1644. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +1 -1
  1645. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +1 -1
  1646. package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +31 -31
  1647. package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +31 -31
  1648. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +64 -0
  1649. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +64 -0
  1650. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +11 -28
  1651. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +0 -17
  1652. package/templates/saas/i18n/engine/resources/userInvoiceRefs.en.ts +18 -5
  1653. package/templates/saas/i18n/engine/resources/userInvoiceRefs.fr.ts +18 -5
  1654. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +5 -7
  1655. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +2 -4
  1656. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +15 -2
  1657. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +15 -2
  1658. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +15 -2
  1659. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +15 -2
  1660. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +5 -5
  1661. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +2 -2
  1662. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +11 -11
  1663. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +1 -1
  1664. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +15 -4
  1665. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +15 -4
  1666. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +15 -4
  1667. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +15 -4
  1668. package/templates/saas/i18n/engine/resources/userSubscriptions.en.ts +7 -2
  1669. package/templates/saas/i18n/engine/resources/userSubscriptions.fr.ts +7 -2
  1670. package/templates/saas/i18n/engine/resources/userUsageRecords.en.ts +25 -4
  1671. package/templates/saas/i18n/engine/resources/userUsageRecords.fr.ts +25 -4
  1672. package/templates/saas/i18n/engine/resources/user_self.en.ts +46 -5
  1673. package/templates/saas/i18n/engine/resources/user_self.fr.ts +46 -5
  1674. package/templates/saas/i18n/engine/resources/users.en.ts +23 -36
  1675. package/templates/saas/i18n/engine/resources/users.fr.ts +23 -36
  1676. package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__/landing.landing-hero.json.hbs +6 -0
  1677. package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +0 -5
  1678. package/templates/saas/scenarios/add-locale/scenario.json +2 -2
  1679. package/templates/saas/scenarios/add-marketing-page/files/website/src/i18n/en/__pageRef__.__pageRef__-hero.json.hbs +4 -0
  1680. package/templates/saas/scenarios/add-marketing-page/scenario.json +3 -5
  1681. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +2 -2
  1682. package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +6 -0
  1683. package/templates/saas/scenarios/add-resource/scenario.json +1 -1
  1684. package/templates/saas/scenarios/add-technical-doc/files/patches/@docusaurus__utils@3.10.2.patch +77 -0
  1685. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +15 -13
  1686. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/basic.conf +2 -3
  1687. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/cross-domain-fonts.conf.hbs +3 -5
  1688. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/sites-enabled/default.hbs +10 -19
  1689. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
  1690. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/verify-api-reference-conservation.ts +1 -1
  1691. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +16 -3
  1692. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/documentation-site-locales.ts +29 -0
  1693. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/api-reference/indexes/api-reference-search.json +4 -0
  1694. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/consumer-documentation/indexes/search.json +4 -0
  1695. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/csp.generated.json.hbs +10 -2
  1696. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx +29 -4
  1697. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +8 -5
  1698. package/templates/saas/scenarios/add-technical-doc/scenario.json +7 -3
  1699. package/templates/saas/scenarios/add-website/files/website/Dockerfile +2 -0
  1700. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -8
  1701. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +4 -4
  1702. package/templates/saas/scenarios/add-website/files/website/src/csp.config.ts +10 -2
  1703. package/templates/saas/scenarios/add-website/files/website/src/generated/csp.generated.json.hbs +10 -2
  1704. package/templates/saas/scenarios/add-website/files/website/src/i18n/en/landing.landing-hero.json.hbs +6 -0
  1705. package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +0 -5
  1706. package/templates/saas/scenarios/add-website/scenario.json +4 -2
  1707. package/templates/saas/scenarios/add-website-section/files/website/src/i18n/en/__pageRef__.__sectionRef__.json.hbs +10 -0
  1708. package/templates/saas/scenarios/add-website-section/scenario.json +2 -16
  1709. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +3 -2
  1710. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +2 -3
  1711. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.lock.hbs +2233 -0
  1712. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +12 -2
  1713. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Dockerfile.hbs +27 -9
  1714. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/README.md +96 -0
  1715. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +159 -156
  1716. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/response_integrity.rs +851 -0
  1717. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/worker_request_keys.rs +404 -0
  1718. package/templates/saas/scenarios/add-worker-rust/scenario.json +2 -2
  1719. package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +39 -7
  1720. package/templates/saas/skeleton/backend-api/package.json.hbs +7 -2
  1721. package/templates/saas/skeleton/backend-api/src/index.ts +7 -6
  1722. package/templates/saas/skeleton/backend-api/src/saas-config.backend.ts.hbs +1 -3
  1723. package/templates/saas/skeleton/backend-api/tsconfig.build.json +1 -1
  1724. package/templates/saas/skeleton/frontend/package.json.hbs +6 -2
  1725. package/templates/saas/skeleton/frontend/src/__tests__/setup.ts.hbs +18 -14
  1726. package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +3 -1
  1727. package/templates/saas/skeleton/frontend/src/csp.config.ts +10 -2
  1728. package/templates/saas/skeleton/frontend/src/engine/component-registrations.frontend.ts +1 -1
  1729. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +10 -2
  1730. package/templates/saas/skeleton/frontend/src/index.css.hbs +25 -18
  1731. package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +7 -2
  1732. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +20 -9
  1733. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +22 -3
  1734. package/templates/saas/skeleton/gitignore +13 -0
  1735. package/templates/saas/skeleton/shared-lib/package.json.hbs +6 -1
  1736. package/templates/saas/skeleton/specifications/package.json.hbs +10 -1
  1737. package/templates/saas/skeleton/tsconfig.common.json +6 -2
  1738. package/wildo-framework.info.json +1 -1
  1739. package/dist/src/services/application/provider-package-links.service.d.ts +0 -210
  1740. package/dist/src/services/application/provider-package-links.service.d.ts.map +0 -1
  1741. package/dist/src/services/application/provider-package-links.service.js +0 -421
  1742. package/dist/src/services/application/provider-package-links.service.js.map +0 -1
  1743. package/templates/infra/k8s/ingress/providers/scaleway-annotations.yaml.hbs +0 -39
  1744. package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.en.ts +0 -246
  1745. package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.fr.ts +0 -246
  1746. package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.en.ts +0 -198
  1747. package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.fr.ts +0 -198
  1748. package/templates/saas/i18n/engine/resources/workbenchBrandAssets.en.ts +0 -198
  1749. package/templates/saas/i18n/engine/resources/workbenchBrandAssets.fr.ts +0 -190
  1750. package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.en.ts +0 -174
  1751. package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.fr.ts +0 -174
  1752. package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +0 -166
  1753. package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +0 -166
  1754. package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +0 -134
  1755. package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +0 -134
  1756. package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +0 -134
  1757. package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +0 -134
  1758. package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +0 -134
  1759. package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +0 -166
  1760. package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +0 -166
  1761. package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +0 -166
  1762. package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +0 -166
  1763. package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +0 -278
  1764. package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +0 -278
  1765. package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +0 -238
  1766. package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +0 -238
  1767. package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +0 -515
  1768. package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +0 -515
  1769. package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +0 -702
  1770. package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +0 -702
  1771. package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +0 -878
  1772. package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +0 -878
  1773. package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.en.ts +0 -238
  1774. package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.fr.ts +0 -238
  1775. package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.en.ts +0 -206
  1776. package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.fr.ts +0 -206
  1777. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.en.ts +0 -150
  1778. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.fr.ts +0 -142
  1779. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.en.ts +0 -254
  1780. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.fr.ts +0 -254
  1781. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateVariantSelections.fr.ts +0 -142
  1782. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.en.ts +0 -246
  1783. package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.fr.ts +0 -246
  1784. package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.en.ts +0 -246
  1785. package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.fr.ts +0 -246
  1786. package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.en.ts +0 -174
  1787. package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.fr.ts +0 -174
  1788. package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.en.ts +0 -278
  1789. package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.fr.ts +0 -278
  1790. package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.en.ts +0 -214
  1791. package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.fr.ts +0 -214
  1792. package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.en.ts +0 -518
  1793. package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.fr.ts +0 -518
  1794. package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.en.ts +0 -246
  1795. package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.fr.ts +0 -246
  1796. package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.en.ts +0 -326
  1797. package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.fr.ts +0 -326
  1798. package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.en.ts +0 -326
  1799. package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.fr.ts +0 -326
  1800. package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.en.ts +0 -246
  1801. package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.fr.ts +0 -246
  1802. package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.en.ts +0 -134
  1803. package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.fr.ts +0 -134
  1804. package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.en.ts +0 -190
  1805. package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.fr.ts +0 -190
  1806. package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.en.ts +0 -198
  1807. package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.fr.ts +0 -198
  1808. package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.en.ts +0 -150
  1809. package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.fr.ts +0 -142
  1810. package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.en.ts +0 -150
  1811. package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.fr.ts +0 -142
  1812. package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.en.ts +0 -134
  1813. package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.fr.ts +0 -134
  1814. package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +0 -174
  1815. package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +0 -174
  1816. package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +0 -358
  1817. package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +0 -358
  1818. package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.en.ts +0 -206
  1819. package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.fr.ts +0 -206
  1820. package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +0 -430
  1821. package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +0 -430
  1822. package/templates/saas/i18n/engine/resources/workbenchDomainResources.en.ts +0 -534
  1823. package/templates/saas/i18n/engine/resources/workbenchDomainResources.fr.ts +0 -534
  1824. package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +0 -456
  1825. package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +0 -456
  1826. package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.en.ts +0 -134
  1827. package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.fr.ts +0 -134
  1828. package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.en.ts +0 -486
  1829. package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.fr.ts +0 -486
  1830. package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +0 -254
  1831. package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +0 -254
  1832. package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.en.ts +0 -478
  1833. package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.fr.ts +0 -478
  1834. package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +0 -510
  1835. package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +0 -510
  1836. package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.en.ts +0 -390
  1837. package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.fr.ts +0 -390
  1838. package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +0 -574
  1839. package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +0 -574
  1840. package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.en.ts +0 -308
  1841. package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.fr.ts +0 -308
  1842. package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.en.ts +0 -230
  1843. package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.fr.ts +0 -230
  1844. package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.en.ts +0 -334
  1845. package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.fr.ts +0 -334
  1846. package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.en.ts +0 -414
  1847. package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.fr.ts +0 -414
  1848. package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.en.ts +0 -134
  1849. package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.fr.ts +0 -134
  1850. package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.en.ts +0 -334
  1851. package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.fr.ts +0 -334
  1852. package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.en.ts +0 -230
  1853. package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.fr.ts +0 -222
  1854. package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.en.ts +0 -606
  1855. package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.fr.ts +0 -598
  1856. package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.en.ts +0 -198
  1857. package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.fr.ts +0 -190
  1858. package/templates/saas/i18n/engine/resources/workbenchMarketCategories.en.ts +0 -150
  1859. package/templates/saas/i18n/engine/resources/workbenchMarketChannels.en.ts +0 -270
  1860. package/templates/saas/i18n/engine/resources/workbenchMarketChannels.fr.ts +0 -262
  1861. package/templates/saas/i18n/engine/resources/workbenchMarketGains.en.ts +0 -270
  1862. package/templates/saas/i18n/engine/resources/workbenchMarketGains.fr.ts +0 -262
  1863. package/templates/saas/i18n/engine/resources/workbenchMarketIcps.en.ts +0 -990
  1864. package/templates/saas/i18n/engine/resources/workbenchMarketIcps.fr.ts +0 -990
  1865. package/templates/saas/i18n/engine/resources/workbenchMarketJobs.en.ts +0 -350
  1866. package/templates/saas/i18n/engine/resources/workbenchMarketJobs.fr.ts +0 -342
  1867. package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.en.ts +0 -198
  1868. package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.fr.ts +0 -190
  1869. package/templates/saas/i18n/engine/resources/workbenchMarketObjections.en.ts +0 -422
  1870. package/templates/saas/i18n/engine/resources/workbenchMarketObjections.fr.ts +0 -414
  1871. package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +0 -294
  1872. package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +0 -294
  1873. package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.en.ts +0 -518
  1874. package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.fr.ts +0 -510
  1875. package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.en.ts +0 -342
  1876. package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.fr.ts +0 -334
  1877. package/templates/saas/i18n/engine/resources/workbenchMarketProofs.en.ts +0 -366
  1878. package/templates/saas/i18n/engine/resources/workbenchMarketProofs.fr.ts +0 -358
  1879. package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.en.ts +0 -294
  1880. package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.fr.ts +0 -294
  1881. package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.en.ts +0 -286
  1882. package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.fr.ts +0 -278
  1883. package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +0 -574
  1884. package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +0 -574
  1885. package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.en.ts +0 -254
  1886. package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.fr.ts +0 -254
  1887. package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.en.ts +0 -190
  1888. package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.fr.ts +0 -182
  1889. package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +0 -358
  1890. package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +0 -358
  1891. package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +0 -1256
  1892. package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +0 -1256
  1893. package/templates/saas/i18n/engine/resources/workbenchPricingPlans.en.ts +0 -286
  1894. package/templates/saas/i18n/engine/resources/workbenchPricingPlans.fr.ts +0 -286
  1895. package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.en.ts +0 -150
  1896. package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.fr.ts +0 -142
  1897. package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.en.ts +0 -150
  1898. package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.fr.ts +0 -142
  1899. package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.en.ts +0 -294
  1900. package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.fr.ts +0 -294
  1901. package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.en.ts +0 -134
  1902. package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.fr.ts +0 -134
  1903. package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.en.ts +0 -478
  1904. package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.fr.ts +0 -478
  1905. package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +0 -599
  1906. package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +0 -599
  1907. package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +0 -478
  1908. package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +0 -478
  1909. package/templates/saas/i18n/engine/resources/workbenchTraceSessions.en.ts +0 -394
  1910. package/templates/saas/i18n/engine/resources/workbenchTraceSessions.fr.ts +0 -394
  1911. package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.en.ts +0 -190
  1912. package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.fr.ts +0 -182
  1913. package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.en.ts +0 -150
  1914. package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.fr.ts +0 -142
  1915. package/templates/saas/i18n/engine/resources/workbenchVisionMissions.en.ts +0 -150
  1916. package/templates/saas/i18n/engine/resources/workbenchVisionMissions.fr.ts +0 -142
  1917. package/templates/saas/i18n/engine/resources/workbenchVisionProblems.en.ts +0 -150
  1918. package/templates/saas/i18n/engine/resources/workbenchVisionProblems.fr.ts +0 -142
  1919. package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.en.ts +0 -390
  1920. package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.fr.ts +0 -390
  1921. package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.en.ts +0 -214
  1922. package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.fr.ts +0 -214
  1923. package/templates/saas/i18n/engine/resources/workbenchWebsitePages.en.ts +0 -214
  1924. package/templates/saas/i18n/engine/resources/workbenchWebsitePages.fr.ts +0 -214
  1925. /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.en.ts +0 -0
  1926. /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.fr.ts +0 -0
@@ -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,+BAA+B,EAC/B,qBAAqB,E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AAoB,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 readLocalCheckoutModuleManifest,\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: what the checkout BUILT or INSTALLED there.\n * `providers-registry/` is its own pnpm workspace (#2788): each facet is a member, so an install links its\n * dependencies into `<facet>/node_modules/` (symbolic links, which the walk would otherwise refuse), and a typecheck\n * may leave `dist/` beside `src/`. No dev watcher compiles these modules. A module ships source; the application\n * installs and builds it. (`isModuleArtifactPathAllowed` refuses dot segments and `node_modules` in an artifact too.)\n */\nconst BUILD_OUTPUT_DIRECTORY_NAMES: ReadonlySet<string> = new Set(['dist', 'node_modules']);\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 /** The framework checkout the module was read from: the adoption preflight compares the engine against it (#2757). */\n frameworkRoot: 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 readLocalCheckoutModuleManifest(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 frameworkRoot,\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/**\n * Stage a checkout module as it stands AT ITS COMMIT (`module.checkoutCommit`), in the shape\n * {@link stageLocalCheckoutModule} produces and through the same build-output and path filters.\n *\n * Publication uses this, not the working-tree staging (#2024 review M4): a version published to a registry is\n * immutable and is described as a commit, so its bytes must BE that commit. Staging the working tree would\n * publish an edit another session made between the dirty check and the copy, and any gitignored file under the\n * module (a coverage report, a generated file), since `git status` does not list ignored files. Here only tracked\n * files exist, read from the commit's objects. A symbolic link is refused, as in the working-tree staging; the\n * executable bit is kept.\n */\nexport async function stageLocalCheckoutModuleFromCommit(module: LocalCheckoutModule, frameworkRoot: string, extractDir: string): Promise<string[]> {\n const commit = module.checkoutCommit;\n const moduleRelative = path.relative(frameworkRoot, module.sourceDir).split(path.sep).join('/');\n const git = (args: string[]): Buffer => execFileSync('git', args, { cwd: frameworkRoot, stdio: ['ignore', 'pipe', 'pipe'], maxBuffer: 256 * 1024 * 1024 });\n await fs.rm(extractDir, { recursive: true, force: true });\n await fs.mkdir(extractDir, { recursive: true });\n const staged: string[] = [];\n let manifestStaged = false;\n // `<mode> <type> <object>\\t<path>`, NUL-separated; paths are relative to the repository root.\n for (const line of git(['ls-tree', '-r', '-z', commit, '--', `${moduleRelative}/`]).toString('utf8').split('\\0')) {\n if (line.length === 0) continue;\n const [meta, repoPath] = [line.slice(0, line.indexOf('\\t')), line.slice(line.indexOf('\\t') + 1)];\n const [mode, type, object] = meta.split(' ');\n const relative = repoPath.slice(moduleRelative.length + 1);\n if (type !== 'blob') throw new Error(`Refusing to stage \"${relative}\" at ${commit.slice(0, 8)}: a module source holds only files (found a ${type}).`);\n if (mode === '120000') throw new Error(`Refusing to stage \"${relative}\": a module source may not contain symbolic links.`);\n if (isBuildOutputPath(relative)) continue;\n const bytes = git(['cat-file', 'blob', object!]);\n if (relative === MANIFEST_FILE_NAME) {\n await fs.writeFile(path.join(extractDir, MANIFEST_FILE_NAME), bytes);\n manifestStaged = true;\n continue;\n }\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.writeFile(destination, bytes, { mode: mode === '100755' ? 0o755 : 0o644 });\n staged.push(appRelative);\n }\n if (!manifestStaged) throw new Error(`\"${module.moduleId}\" has no committed ${MANIFEST_FILE_NAME} at ${commit.slice(0, 8)}; commit it first.`);\n return staged.sort();\n}\n\n/** Whether a `/`-separated path inside a module source is build output, which is never staged. */\nfunction isBuildOutputPath(relative: string): boolean {\n const segments = relative.split('/');\n return segments.slice(0, -1).some((segment) => BUILD_OUTPUT_DIRECTORY_NAMES.has(segment))\n || BUILD_OUTPUT_FILE_SUFFIXES.some((suffix) => segments.at(-1)!.endsWith(suffix));\n}\n\n/** Files below `directory`, as `/`-separated paths relative to it, excluding build output and installed dependencies. */\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,MA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AG,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,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 readLocalCheckoutModuleManifest,\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: what the checkout BUILT or INSTALLED there.\n * `providers-registry/` is its own pnpm workspace (#2788): each facet is a member, so an install links its\n * dependencies into `<facet>/node_modules/` (symbolic links, which the walk would otherwise refuse), and a typecheck\n * may leave `dist/` beside `src/`. No dev watcher compiles these modules. A module ships source; the application\n * installs and builds it. (`isModuleArtifactPathAllowed` refuses dot segments and `node_modules` in an artifact too.)\n */\nconst BUILD_OUTPUT_DIRECTORY_NAMES: ReadonlySet<string> = new Set(['dist', 'node_modules']);\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 /** The framework checkout the module was read from: the adoption preflight compares the engine against it (#2757). */\n frameworkRoot: 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 readLocalCheckoutModuleManifest(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 frameworkRoot,\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/**\n * Stage a checkout module as it stands AT ITS COMMIT (`module.checkoutCommit`), in the shape\n * {@link stageLocalCheckoutModule} produces and through the same build-output and path filters.\n *\n * Publication uses this, not the working-tree staging (#2024 review M4): a version published to a registry is\n * immutable and is described as a commit, so its bytes must BE that commit. Staging the working tree would\n * publish an edit another session made between the dirty check and the copy, and any gitignored file under the\n * module (a coverage report, a generated file), since `git status` does not list ignored files. Here only tracked\n * files exist, read from the commit's objects. A symbolic link is refused, as in the working-tree staging; the\n * executable bit is kept.\n */\nexport async function stageLocalCheckoutModuleFromCommit(module: LocalCheckoutModule, frameworkRoot: string, extractDir: string): Promise<string[]> {\n const commit = module.checkoutCommit;\n const moduleRelative = path.relative(frameworkRoot, module.sourceDir).split(path.sep).join('/');\n const git = (args: string[]): Buffer => execFileSync('git', args, { cwd: frameworkRoot, stdio: ['ignore', 'pipe', 'pipe'], maxBuffer: 256 * 1024 * 1024 });\n await fs.rm(extractDir, { recursive: true, force: true });\n await fs.mkdir(extractDir, { recursive: true });\n const staged: string[] = [];\n let manifestStaged = false;\n // `<mode> <type> <object>\\t<path>`, NUL-separated; paths are relative to the repository root.\n for (const line of git(['ls-tree', '-r', '-z', commit, '--', `${moduleRelative}/`]).toString('utf8').split('\\0')) {\n if (line.length === 0) continue;\n const [meta, repoPath] = [line.slice(0, line.indexOf('\\t')), line.slice(line.indexOf('\\t') + 1)];\n const [mode, type, object] = meta.split(' ');\n const relative = repoPath.slice(moduleRelative.length + 1);\n if (type !== 'blob') throw new Error(`Refusing to stage \"${relative}\" at ${commit.slice(0, 8)}: a module source holds only files (found a ${type}).`);\n if (mode === '120000') throw new Error(`Refusing to stage \"${relative}\": a module source may not contain symbolic links.`);\n if (isBuildOutputPath(relative)) continue;\n const bytes = git(['cat-file', 'blob', object!]);\n if (relative === MANIFEST_FILE_NAME) {\n await fs.writeFile(path.join(extractDir, MANIFEST_FILE_NAME), bytes);\n manifestStaged = true;\n continue;\n }\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.writeFile(destination, bytes, { mode: mode === '100755' ? 0o755 : 0o644 });\n staged.push(appRelative);\n }\n if (!manifestStaged) throw new Error(`\"${module.moduleId}\" has no committed ${MANIFEST_FILE_NAME} at ${commit.slice(0, 8)}; commit it first.`);\n return staged.sort();\n}\n\n/** Whether a `/`-separated path inside a module source is build output, which is never staged. */\nfunction isBuildOutputPath(relative: string): boolean {\n const segments = relative.split('/');\n return segments.slice(0, -1).some((segment) => BUILD_OUTPUT_DIRECTORY_NAMES.has(segment))\n || BUILD_OUTPUT_FILE_SUFFIXES.some((suffix) => segments.at(-1)!.endsWith(suffix));\n}\n\n/** Files below `directory`, as `/`-separated paths relative to it, excluding build output and installed dependencies. */\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;;;;;;;;;;;;;;;;;;;;;;;;;;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
+ {"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,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,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;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,iBAAiB,GAAG,wBAAwB,CAEnG;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,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,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;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,iBAAiB,GAAG,wBAAwB,CAEnG;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;;;;;;;;GA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D,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;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,WAA8B;IACvE,OAAO,WAAW,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,WAAW,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACvI,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 type { ModuleRequirementsOrigin } from './module-requirements.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/**\n * What the adoption preflight (`checkModuleRequirements`) is told about where the version came from: the checkout's root\n * for a checkout module, nothing for a registry artifact (#2757).\n */\nexport function moduleRequirementsOriginOf(acquisition: ModuleAcquisition): ModuleRequirementsOrigin {\n return acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT ? { moduleCheckoutRoot: acquisition.local.frameworkRoot } : {};\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;AAE5G,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,C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I,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 type { ModuleRequirementsOrigin } from './module-requirements.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/**\n * What the adoption preflight (`checkModuleRequirements`) is told about where the version came from: the checkout's root\n * for a checkout module, nothing for a registry artifact (#2757).\n */\nexport function moduleRequirementsOriginOf(acquisition: ModuleAcquisition): ModuleRequirementsOrigin {\n return acquisition.distribution === ModuleDistribution.LOCAL_CHECKOUT ? { moduleCheckoutRoot: acquisition.local.frameworkRoot } : {};\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,iBAAi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O,MAAM,CAAC;QAC5C,UAAU;QACV,UAAU;QACV,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,OAAO,EAAE,CAAC;KACvD,CAAC;AACJ,CAAC;AAED,sGAAsG;AACtG,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAAY,EAAE,KAAiB;IACpE,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,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
+ {"version":3,"file":"module-artifact-files.utils.js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AAO,CAAC,CAAC,OAAO,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,oBAAoB,MAAM,IAAI,QAAQ,IAAI,OAAO,wCAAwC,CAAC,CAAC;IAC7G,CAAC;IACD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAClD,OAAO;QACL,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,OAAO,MAAM,CAAC;QAC5C,UAAU;QACV,UAAU;QACV,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,OAAO,EAAE,CAAC;KACvD,CAAC;AACJ,CAAC;AAED,sGAAsG;AACtG,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAAY,EAAE,KAAiB;IACpE,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,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-install.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/module-install.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,EAAuD,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACnI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AAIpC,6CAA6C;AAC7C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,kHAAkH;AAClH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IACxC,mHAAmH;IACnH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,gBAAgB;AACxB,mHAAmH;AACnH,KAAK,EAAE;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpH,OAAO,CAAC,cAAc,CAAC,CAuCzB;AAED,8DAA8D;AAC9D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,sGAAsG;IACtG,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,yCAAyC;IACzC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,iGAAiG;IACjG,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,uFAAuF;IACvF,QAAQ,CAAC,0BAA0B,EAAE,SAAS,MAAM,EAAE,CAAC;IACvD,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAC;CAC1C;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,wGAAwG;IACxG,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;CAChC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA6GhC"}
1
+ {"version":3,"file":"module-install.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/module-install.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,EAAuD,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACnI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AAIpC,6CAA6C;AAC7C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,kHAAkH;AAClH,MAAM,W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AAO,CAAC,oBAAoB,CAAC,CA6GhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-install.service.js","sourceRoot":"","sources":["../../../../../../src/services/registry/module-install.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAiC,MAAM,+BAA+B,CAAC;AAEnI,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,GAElC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC1H,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACzH,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAClI,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAC1G,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,GAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+B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AAC,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC;YAC/F,KAAK;SACN,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAI,OAAO,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,MAAM,CAAC,QAAQ,+BAA+B,CAAC,CAAC;IAC7G,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Installing a registry module into an application: the pipeline `wildo registry add` runs, as a service, so the\n * one other door that installs a module — `wildo init --blueprint`, for the modules a blueprint REFERENCES (#2879) —\n * runs exactly the same steps and writes exactly the same lockfile entry.\n *\n * Two halves, because they have different preconditions:\n *\n * - `acquireModuleForInstall` RESOLVES a spec to one version and fetches its bytes: from the framework checkout for a\n * `wildo/...` spec inside a checkout (#2015), from the registry otherwise, integrity-checked against the digest the\n * registry resolved. It needs only a command context and a registry; nothing is written into the application.\n * - `installAcquiredModule` writes it: stage, check the staged manifest against the request and the host's\n * requirements, fan the files out inside the manifest's boundaries without silently replacing an application file\n * (#2016), register the module in the host's registries (#1755), and record the lockfile entry — all under the\n * workspace mutation lock, rolled back if the lockfile write fails.\n *\n * What stays with each caller is what differs between them: `registry add` runs `pnpm install` and the provider sync\n * right after, while `wildo init` installs before its own `pnpm install` and leaves the sync to `wildo config sync`.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { RegistryLockfileService, RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport { DEFAULT_REGISTRY_ID, ModuleDistribution, ModuleKind, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { RegistryCredentialsService } from './registry-credentials.service';\nimport {\n assertModuleEntryUnchangedUnderLock,\n resolveRegistryUrlForCommand,\n withRegistryWorkspaceMutationLock,\n type ParsedModuleSpec,\n} from './registry-command.utils';\nimport { fanOutToSaasSource, readStagedManifest, rollbackFanOut, validatedStagedAppFiles } from './boundary-fanout.utils';\nimport { nextInstalledFileHashes, planProtectedWrite, registryForceBackupDirectory } from './installed-file-state.utils';\nimport { findResourceConfigurationFiles } from './migration-obligation.utils';\nimport { deriveProviderRegistration, registerModuleForInstall, rollbackInstallRegistration } from './module-registration.service';\nimport { reportRegistrationOutcome } from './provider-wiring.service';\nimport { moduleArtifactPaths } from './module-artifact-files.utils';\nimport { localCheckoutRootFor, resolveLocalCheckoutModule } from './local-checkout-module-source.service';\nimport {\n describeAcquisition,\n lockEntryProvenance,\n moduleRequirementsOriginOf,\n stageModuleAcquisition,\n type ModuleAcquisition,\n} from './module-acquisition.utils';\nimport { checkModuleRequirements } from './module-requirements.service';\nimport { assertStagedManifestMatchesRequest } from './artifact-trust.utils';\n\n/** The operator log an install writes to. */\nexport type ModuleInstallLog = CommandContext['log'];\n\n/** A resolved, fetched module version, ready to install, and the registry credential that fetched it (if any). */\nexport interface AcquiredModule {\n readonly parsed: ParsedModuleSpec;\n readonly acquisition: ModuleAcquisition;\n /** The registry URL whose stored credential was used, so the caller can mark it used once the install succeeds. */\n readonly credentialUrl?: string;\n}\n\n/**\n * Resolve `parsed` to one version and fetch it. Inside a framework checkout, a `wildo/...` spec with no registry flag\n * is served by the checkout itself (#2015); anything else comes from the registry `registryFlag` resolves to.\n */\nexport async function acquireModuleForInstall(\n ctx: CommandContext,\n parsed: ParsedModuleSpec,\n /** `saasRoot` is the application whose registry configuration applies; absent before one exists (`wildo init`). */\n input: { readonly registryFlag?: string | undefined; readonly saasRoot?: string | undefined; readonly label: string },\n): Promise<AcquiredModule> {\n const localCheckoutRoot = localCheckoutRootFor(ctx, { domain: parsed.domain, ...(input.registryFlag === undefined ? {} : { registryFlag: input.registryFlag }) });\n if (localCheckoutRoot !== undefined) {\n const local = await resolveLocalCheckoutModule({ frameworkRoot: localCheckoutRoot, domain: parsed.domain, moduleId: parsed.moduleId, range: parsed.range });\n return { parsed, acquisition: { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local } };\n }\n const resolved = await resolveRegistryUrlForCommand(ctx, { ...(input.registryFlag === undefined ? {} : { flag: input.registryFlag }), ...(input.saasRoot === undefined ? {} : { saasRoot: input.saasRoot }) });\n ctx.log.info(`[${input.label}] resolving ${parsed.moduleId}@${parsed.range} on ${resolved.url} (${resolved.source})`);\n const credential = await RegistryCredentialsService.get(resolved.url);\n const clientOptions = { baseUrl: resolved.url, authToken: credential?.rawToken };\n // Resolve the range to one exact version and its digest.\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (yanked) {\n // Only an exact pin reaches a yanked release (#1758); install it, but say so.\n ctx.log.warn(` ${parsed.moduleId}@${version} is YANKED (${yanked.yankedAt}${yanked.reason ? `: ${yanked.reason}` : ''}). Installing the pinned release; pick a live one with a range.`);\n }\n // Download the bytes, verified against the resolved digest (KD-9: a mismatch throws).\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n ctx.log.info(` downloaded → ${bytes.byteLength} bytes`);\n return {\n parsed,\n acquisition: {\n distribution: ModuleDistribution.REGISTRY,\n version,\n artifactDigest,\n bytes,\n registry: { url: resolved.url, id: resolved.id ?? DEFAULT_REGISTRY_ID },\n },\n ...(credential ? { credentialUrl: resolved.url } : {}),\n };\n}\n\n/** What an install did that its caller acts on afterwards. */\nexport interface ModuleInstallOutcome {\n readonly version: string;\n /** A provider module was installed: its packages must be installed before anything discovers them. */\n readonly changedProvider: boolean;\n /** The provider ships skills (#2026). */\n readonly carriesSkills: boolean;\n /** The install-script names this install newly allowed (#2801), rebuilt after `pnpm install`. */\n readonly allowedInstallScripts: readonly string[];\n /** The module's resource configuration files, for the migration obligation (#1757). */\n readonly resourceConfigurationFiles: readonly string[];\n /** The lockfile entry written. */\n readonly entry: RegistryModulesLockEntry;\n}\n\n/**\n * Install an acquired module into `saasRoot`, under the workspace mutation lock. Refuses a module that is already\n * installed (it moves only through `update`) and a blueprint (#2861). Throws, having rolled the files and the\n * registration back, when the lockfile cannot be written.\n */\nexport async function installAcquiredModule(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n readonly acquired: AcquiredModule;\n /** Overwrite application files no module installed, keeping a backup (`wildo registry add --force`). */\n readonly force: boolean;\n readonly log: ModuleInstallLog;\n}): Promise<ModuleInstallOutcome> {\n const { saasRoot, acquired, log } = input;\n const { parsed, acquisition } = acquired;\n const version = acquisition.version;\n log.info(` resolved → ${describeAcquisition(parsed.moduleId, acquisition)}`);\n let outcome: ModuleInstallOutcome | undefined;\n await withRegistryWorkspaceMutationLock(saasRoot, async () => {\n // Decided before the lock (\"not installed\"); re-confirmed under it.\n await assertModuleEntryUnchangedUnderLock(saasRoot, parsed.moduleId, undefined);\n // Stage the version where the fan-out reads it (the extracted artifact, or the checkout copy).\n const paths = moduleArtifactPaths(saasRoot, parsed.domain, parsed.moduleId, version);\n const stagedCount = await stageModuleAcquisition(acquisition, paths, saasRoot);\n log.success(` staged ${stagedCount} file(s) → ${path.relative(saasRoot, paths.extractDir)}/`);\n\n // The staged manifest is the source of truth for the boundary allow-list (KD-12).\n const stagedManifest = await readStagedManifest(paths.extractDir);\n assertStagedManifestMatchesRequest(stagedManifest, { moduleId: parsed.moduleId, version });\n // #2861: a blueprint is applied by `wildo init --blueprint`, never installed into an existing application. Its\n // staged copy can never become an install, so it does not stay in the application's generated tree.\n if (stagedManifest.kind === ModuleKind.BLUEPRINT) {\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n await fs.rm(paths.zip, { force: true });\n throw new Error(`${stagedManifest.id} is a blueprint: it starts a new application with \\`wildo init --blueprint\\` and is never installed into an existing one.`);\n }\n for (const notice of await checkModuleRequirements(saasRoot, stagedManifest, moduleRequirementsOriginOf(acquisition))) log.warn(notice);\n // #2014: a provider module is wired into THIS application's own runtimes. Derived before a single file is\n // written, so a refusal (no backend service to own a backend facet) leaves the application untouched.\n const providerRegistration = stagedManifest.kind === ModuleKind.PROVIDER ? await deriveProviderRegistration(saasRoot, stagedManifest) : undefined;\n // M9 backup dir: sibling to `extractDir` so the fan-out walker doesn't traverse it. Cleaned up after a\n // successful fan-out.\n await fs.rm(paths.backupDir, { recursive: true, force: true });\n // #2016: never silently replace a file the application authored itself.\n const writePlan = await planProtectedWrite({\n saasRoot,\n moduleId: parsed.moduleId,\n stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),\n force: input.force,\n restoreMissing: false,\n backupDirectory: registryForceBackupDirectory(saasRoot, parsed.moduleId),\n findOtherOwners: (candidates) => RegistryLockfileService.findFileOwners({ saasRoot, paths: candidates, excludeModuleId: parsed.moduleId }),\n });\n for (const forced of writePlan.forced) log.warn(` overwrote ${forced.path} (--force); the application's version is at ${path.relative(saasRoot, forced.backup)}`);\n const fanOut = await fanOutToSaasSource({\n saasRoot,\n extractDir: paths.extractDir,\n manifest: stagedManifest,\n moduleId: parsed.moduleId,\n backupDir: paths.backupDir,\n skipPaths: writePlan.skip,\n });\n log.success(` wrote ${fanOut.writtenFiles.length} app source file(s) per manifest.boundaries`);\n for (const warning of fanOut.overlapWarnings) {\n log.warn(` [overlap] \"${warning.path}\" was also claimed by \"${warning.otherModuleId}\" — overwritten by ${parsed.moduleId}.`);\n }\n\n // #1755: register the module in the host's registries (or mark why it is not).\n const registrationOutcome = registerModuleForInstall(saasRoot, input.frameworkRoot, stagedManifest, undefined, providerRegistration);\n reportRegistrationOutcome(log, registrationOutcome, saasRoot);\n\n // The lockfile entry; `files[]` records the application paths so `remove` can clean them up symmetrically. If its\n // write fails after the fan-out succeeded, the application source is rolled back so a half-applied install does\n // not leak into the repository.\n const entry: RegistryModulesLockEntry = {\n moduleId: parsed.moduleId,\n ...lockEntryProvenance(acquisition),\n domain: parsed.domain,\n version,\n requestedRange: parsed.range,\n installedAt: new Date().toISOString(),\n files: fanOut.ownedFiles,\n installedFileHashes: await nextInstalledFileHashes({ saasRoot, ownedFiles: fanOut.ownedFiles, skipped: writePlan.skip }),\n source: 'install',\n ...(registrationOutcome.registration ? { registration: registrationOutcome.registration } : {}),\n };\n try {\n await RegistryLockfileService.upsertEntry(saasRoot, entry);\n } catch (lockErr) {\n log.error(` lockfile write failed — rolling back ${fanOut.writtenFiles.length} fan-out file(s).`);\n // `rollbackFanOut` swallows per-file errors itself; this guard stays for a future change that lets them out.\n try {\n rollbackInstallRegistration(saasRoot, registrationOutcome.snapshots);\n await rollbackFanOut({ saasRoot, result: fanOut });\n } catch (rbErr) {\n log.error(` rollback failed: ${ErrorUtils.extractErrorMessage(rbErr)} — SaaS source may be in a partially-applied state.`);\n }\n // Drop the artifact dir and backup so the install can be retried cleanly. Each cleanup is best-effort: a cleanup\n // failure must never mask the lockfile error that is being surfaced.\n await fs.rm(paths.extractDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.zip, { force: true }).catch(() => {});\n throw lockErr;\n }\n // Successful install: the backup is no longer needed once the lockfile records the new entry.\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n log.success(' lockfile updated');\n if (registrationOutcome.registration) {\n log.success(` registered in the application's module registries (${registrationOutcome.registration.moduleId})`);\n }\n outcome = {\n version,\n changedProvider: providerRegistration !== undefined,\n carriesSkills: (stagedManifest.provider?.skills?.length ?? 0) > 0,\n allowedInstallScripts: registrationOutcome.allowedInstallScripts,\n resourceConfigurationFiles: await findResourceConfigurationFiles(saasRoot, fanOut.writtenFiles),\n entry,\n };\n });\n if (outcome === undefined) throw new Error(`The install of ${parsed.moduleId} finished without an outcome.`);\n return outcome;\n}\n"]}
1
+ {"version":3,"file":"module-install.service.js","sourceRoot":"","sources":["../../../../src/services/registry/module-install.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ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C,CAAC;IAC7G,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Installing a registry module into an application: the pipeline `wildo registry add` runs, as a service, so the\n * one other door that installs a module — `wildo init --blueprint`, for the modules a blueprint REFERENCES (#2879) —\n * runs exactly the same steps and writes exactly the same lockfile entry.\n *\n * Two halves, because they have different preconditions:\n *\n * - `acquireModuleForInstall` RESOLVES a spec to one version and fetches its bytes: from the framework checkout for a\n * `wildo/...` spec inside a checkout (#2015), from the registry otherwise, integrity-checked against the digest the\n * registry resolved. It needs only a command context and a registry; nothing is written into the application.\n * - `installAcquiredModule` writes it: stage, check the staged manifest against the request and the host's\n * requirements, fan the files out inside the manifest's boundaries without silently replacing an application file\n * (#2016), register the module in the host's registries (#1755), and record the lockfile entry — all under the\n * workspace mutation lock, rolled back if the lockfile write fails.\n *\n * What stays with each caller is what differs between them: `registry add` runs `pnpm install` and the provider sync\n * right after, while `wildo init` installs before its own `pnpm install` and leaves the sync to `wildo config sync`.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { RegistryLockfileService, RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport { DEFAULT_REGISTRY_ID, ModuleDistribution, ModuleKind, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { RegistryCredentialsService } from './registry-credentials.service';\nimport {\n assertModuleEntryUnchangedUnderLock,\n resolveRegistryUrlForCommand,\n withRegistryWorkspaceMutationLock,\n type ParsedModuleSpec,\n} from './registry-command.utils';\nimport { fanOutToSaasSource, readStagedManifest, rollbackFanOut, validatedStagedAppFiles } from './boundary-fanout.utils';\nimport { nextInstalledFileHashes, planProtectedWrite, registryForceBackupDirectory } from './installed-file-state.utils';\nimport { findResourceConfigurationFiles } from './migration-obligation.utils';\nimport { deriveProviderRegistration, registerModuleForInstall, rollbackInstallRegistration } from './module-registration.service';\nimport { reportRegistrationOutcome } from './provider-wiring.service';\nimport { moduleArtifactPaths } from './module-artifact-files.utils';\nimport { localCheckoutRootFor, resolveLocalCheckoutModule } from './local-checkout-module-source.service';\nimport {\n describeAcquisition,\n lockEntryProvenance,\n moduleRequirementsOriginOf,\n stageModuleAcquisition,\n type ModuleAcquisition,\n} from './module-acquisition.utils';\nimport { checkModuleRequirements } from './module-requirements.service';\nimport { assertStagedManifestMatchesRequest } from './artifact-trust.utils';\n\n/** The operator log an install writes to. */\nexport type ModuleInstallLog = CommandContext['log'];\n\n/** A resolved, fetched module version, ready to install, and the registry credential that fetched it (if any). */\nexport interface AcquiredModule {\n readonly parsed: ParsedModuleSpec;\n readonly acquisition: ModuleAcquisition;\n /** The registry URL whose stored credential was used, so the caller can mark it used once the install succeeds. */\n readonly credentialUrl?: string;\n}\n\n/**\n * Resolve `parsed` to one version and fetch it. Inside a framework checkout, a `wildo/...` spec with no registry flag\n * is served by the checkout itself (#2015); anything else comes from the registry `registryFlag` resolves to.\n */\nexport async function acquireModuleForInstall(\n ctx: CommandContext,\n parsed: ParsedModuleSpec,\n /** `saasRoot` is the application whose registry configuration applies; absent before one exists (`wildo init`). */\n input: { readonly registryFlag?: string | undefined; readonly saasRoot?: string | undefined; readonly label: string },\n): Promise<AcquiredModule> {\n const localCheckoutRoot = localCheckoutRootFor(ctx, { domain: parsed.domain, ...(input.registryFlag === undefined ? {} : { registryFlag: input.registryFlag }) });\n if (localCheckoutRoot !== undefined) {\n const local = await resolveLocalCheckoutModule({ frameworkRoot: localCheckoutRoot, domain: parsed.domain, moduleId: parsed.moduleId, range: parsed.range });\n return { parsed, acquisition: { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local } };\n }\n const resolved = await resolveRegistryUrlForCommand(ctx, { ...(input.registryFlag === undefined ? {} : { flag: input.registryFlag }), ...(input.saasRoot === undefined ? {} : { saasRoot: input.saasRoot }) });\n ctx.log.info(`[${input.label}] resolving ${parsed.moduleId}@${parsed.range} on ${resolved.url} (${resolved.source})`);\n const credential = await RegistryCredentialsService.get(resolved.url);\n const clientOptions = { baseUrl: resolved.url, authToken: credential?.rawToken };\n // Resolve the range to one exact version and its digest.\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (yanked) {\n // Only an exact pin reaches a yanked release (#1758); install it, but say so.\n ctx.log.warn(` ${parsed.moduleId}@${version} is YANKED (${yanked.yankedAt}${yanked.reason ? `: ${yanked.reason}` : ''}). Installing the pinned release; pick a live one with a range.`);\n }\n // Download the bytes, verified against the resolved digest (KD-9: a mismatch throws).\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n ctx.log.info(` downloaded → ${bytes.byteLength} bytes`);\n return {\n parsed,\n acquisition: {\n distribution: ModuleDistribution.REGISTRY,\n version,\n artifactDigest,\n bytes,\n registry: { url: resolved.url, id: resolved.id ?? DEFAULT_REGISTRY_ID },\n },\n ...(credential ? { credentialUrl: resolved.url } : {}),\n };\n}\n\n/** What an install did that its caller acts on afterwards. */\nexport interface ModuleInstallOutcome {\n readonly version: string;\n /** A provider module was installed: its packages must be installed before anything discovers them. */\n readonly changedProvider: boolean;\n /** The provider ships skills (#2026). */\n readonly carriesSkills: boolean;\n /** The install-script names this install newly allowed (#2801), rebuilt after `pnpm install`. */\n readonly allowedInstallScripts: readonly string[];\n /** The module's resource configuration files, for the migration obligation (#1757). */\n readonly resourceConfigurationFiles: readonly string[];\n /** The lockfile entry written. */\n readonly entry: RegistryModulesLockEntry;\n}\n\n/**\n * Install an acquired module into `saasRoot`, under the workspace mutation lock. Refuses a module that is already\n * installed (it moves only through `update`) and a blueprint (#2861). Throws, having rolled the files and the\n * registration back, when the lockfile cannot be written.\n */\nexport async function installAcquiredModule(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n readonly acquired: AcquiredModule;\n /** Overwrite application files no module installed, keeping a backup (`wildo registry add --force`). */\n readonly force: boolean;\n readonly log: ModuleInstallLog;\n}): Promise<ModuleInstallOutcome> {\n const { saasRoot, acquired, log } = input;\n const { parsed, acquisition } = acquired;\n const version = acquisition.version;\n log.info(` resolved → ${describeAcquisition(parsed.moduleId, acquisition)}`);\n let outcome: ModuleInstallOutcome | undefined;\n await withRegistryWorkspaceMutationLock(saasRoot, async () => {\n // Decided before the lock (\"not installed\"); re-confirmed under it.\n await assertModuleEntryUnchangedUnderLock(saasRoot, parsed.moduleId, undefined);\n // Stage the version where the fan-out reads it (the extracted artifact, or the checkout copy).\n const paths = moduleArtifactPaths(saasRoot, parsed.domain, parsed.moduleId, version);\n const stagedCount = await stageModuleAcquisition(acquisition, paths, saasRoot);\n log.success(` staged ${stagedCount} file(s) → ${path.relative(saasRoot, paths.extractDir)}/`);\n\n // The staged manifest is the source of truth for the boundary allow-list (KD-12).\n const stagedManifest = await readStagedManifest(paths.extractDir);\n assertStagedManifestMatchesRequest(stagedManifest, { moduleId: parsed.moduleId, version });\n // #2861: a blueprint is applied by `wildo init --blueprint`, never installed into an existing application. Its\n // staged copy can never become an install, so it does not stay in the application's generated tree.\n if (stagedManifest.kind === ModuleKind.BLUEPRINT) {\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n await fs.rm(paths.zip, { force: true });\n throw new Error(`${stagedManifest.id} is a blueprint: it starts a new application with \\`wildo init --blueprint\\` and is never installed into an existing one.`);\n }\n for (const notice of await checkModuleRequirements(saasRoot, stagedManifest, moduleRequirementsOriginOf(acquisition))) log.warn(notice);\n // #2014: a provider module is wired into THIS application's own runtimes. Derived before a single file is\n // written, so a refusal (no backend service to own a backend facet) leaves the application untouched.\n const providerRegistration = stagedManifest.kind === ModuleKind.PROVIDER ? await deriveProviderRegistration(saasRoot, stagedManifest) : undefined;\n // M9 backup dir: sibling to `extractDir` so the fan-out walker doesn't traverse it. Cleaned up after a\n // successful fan-out.\n await fs.rm(paths.backupDir, { recursive: true, force: true });\n // #2016: never silently replace a file the application authored itself.\n const writePlan = await planProtectedWrite({\n saasRoot,\n moduleId: parsed.moduleId,\n stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),\n force: input.force,\n restoreMissing: false,\n backupDirectory: registryForceBackupDirectory(saasRoot, parsed.moduleId),\n findOtherOwners: (candidates) => RegistryLockfileService.findFileOwners({ saasRoot, paths: candidates, excludeModuleId: parsed.moduleId }),\n });\n for (const forced of writePlan.forced) log.warn(` overwrote ${forced.path} (--force); the application's version is at ${path.relative(saasRoot, forced.backup)}`);\n const fanOut = await fanOutToSaasSource({\n saasRoot,\n extractDir: paths.extractDir,\n manifest: stagedManifest,\n moduleId: parsed.moduleId,\n backupDir: paths.backupDir,\n skipPaths: writePlan.skip,\n });\n log.success(` wrote ${fanOut.writtenFiles.length} app source file(s) per manifest.boundaries`);\n for (const warning of fanOut.overlapWarnings) {\n log.warn(` [overlap] \"${warning.path}\" was also claimed by \"${warning.otherModuleId}\" — overwritten by ${parsed.moduleId}.`);\n }\n\n // #1755: register the module in the host's registries (or mark why it is not).\n const registrationOutcome = registerModuleForInstall(saasRoot, input.frameworkRoot, stagedManifest, undefined, providerRegistration);\n reportRegistrationOutcome(log, registrationOutcome, saasRoot);\n\n // The lockfile entry; `files[]` records the application paths so `remove` can clean them up symmetrically. If its\n // write fails after the fan-out succeeded, the application source is rolled back so a half-applied install does\n // not leak into the repository.\n const entry: RegistryModulesLockEntry = {\n moduleId: parsed.moduleId,\n ...lockEntryProvenance(acquisition),\n domain: parsed.domain,\n version,\n requestedRange: parsed.range,\n installedAt: new Date().toISOString(),\n files: fanOut.ownedFiles,\n installedFileHashes: await nextInstalledFileHashes({ saasRoot, ownedFiles: fanOut.ownedFiles, skipped: writePlan.skip }),\n source: 'install',\n ...(registrationOutcome.registration ? { registration: registrationOutcome.registration } : {}),\n };\n try {\n await RegistryLockfileService.upsertEntry(saasRoot, entry);\n } catch (lockErr) {\n log.error(` lockfile write failed — rolling back ${fanOut.writtenFiles.length} fan-out file(s).`);\n // `rollbackFanOut` swallows per-file errors itself; this guard stays for a future change that lets them out.\n try {\n rollbackInstallRegistration(saasRoot, registrationOutcome.snapshots);\n await rollbackFanOut({ saasRoot, result: fanOut });\n } catch (rbErr) {\n log.error(` rollback failed: ${ErrorUtils.extractErrorMessage(rbErr)} — SaaS source may be in a partially-applied state.`);\n }\n // Drop the artifact dir and backup so the install can be retried cleanly. Each cleanup is best-effort: a cleanup\n // failure must never mask the lockfile error that is being surfaced.\n await fs.rm(paths.extractDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.zip, { force: true }).catch(() => {});\n throw lockErr;\n }\n // Successful install: the backup is no longer needed once the lockfile records the new entry.\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n log.success(' lockfile updated');\n if (registrationOutcome.registration) {\n log.success(` registered in the application's module registries (${registrationOutcome.registration.moduleId})`);\n }\n outcome = {\n version,\n changedProvider: providerRegistration !== undefined,\n carriesSkills: (stagedManifest.provider?.skills?.length ?? 0) > 0,\n allowedInstallScripts: registrationOutcome.allowedInstallScripts,\n resourceConfigurationFiles: await findResourceConfigurationFiles(saasRoot, fanOut.writtenFiles),\n entry,\n };\n });\n if (outcome === undefined) throw new Error(`The install of ${parsed.moduleId} finished without an outcome.`);\n return outcome;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"module-publish.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/module-publish.service.ts"],"names":[],"mappings":"AAYA,OAAO,EAA+C,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGjH,0CAA0C;AAC1C,oBAAY,wBAAwB;IAClC,sEAAsE;IACtE,SAAS,cAAc;IACvB,gGAAgG;IAChG,kBAAkB,uBAAuB;IACzC,0GAA0G;IAC1G,cAAc,mBAAmB;IACjC,qFAAqF;IACrF,aAAa,kBAAkB;IAC/B;;;OAGG;IACH,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxG;IAAE,IAAI,EAAE,wBAAwB,CAAC,kBAAkB,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjG;IAAE,IAAI,EAAE,wBAAwB,CAAC,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,wBAAwB,CAAC,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAChE;IAAE,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,CAEpE;AAED,mHAAmH;AACnH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,UAAU,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAsChC"}
1
+ {"version":3,"file":"module-publish.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/module-publish.service.ts"],"names":[],"mappings":"AAYA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAIvC,0CAA0C;AAC1C,oBAAY,wBAA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11
11
  */
12
12
  import { createHash } from 'node:crypto';
13
- import { hasRegistryRefusalCode, RegistryRefusalCode } from '@wildo-ai/platform-config-lib';
13
+ import { describeRegistryRefusal, hasRegistryRefusalCode, parseRegistryRefusalBody, readRegistryRefusalBody, RegistryRefusalCode, } from '@wildo-ai/platform-config-lib';
14
14
  import { REGISTRY_PUBLISH_REQUEST_TIMEOUT_MS } from '../../commands/registry/registry-transport.constants.js';
15
+ import { describeCaughtError } from '@wildo-ai/saas-models';
15
16
  /** What became of one publish request. */
16
17
  export var ModulePublishOutcomeKind;
17
18
  (function (ModulePublishOutcomeKind) {
@@ -51,7 +52,7 @@ export async function publishModuleArtifact(input) {
51
52
  });
52
53
  }
53
54
  catch (error) {
54
- return { kind: ModulePublishOutcomeKind.FAILED, detail: `${publishUrl}: ${error instanceof Error ? error.message : String(error)}` };
55
+ return { kind: ModulePublishOutcomeKind.FAILED, detail: `${publishUrl}: ${describeCaughtError(error)}` };
55
56
  }
56
57
  if (res.status === 201) {
57
58
  const body = (await res.json().catch(() => ({})));
@@ -65,15 +66,23 @@ export async function publishModuleArtifact(input) {
65
66
  ...(body.latest !== undefined ? { latest: body.latest } : {}),
66
67
  };
67
68
  }
69
+ if (res.status === 401 || res.status === 403) {
70
+ // The engine strips an authentication or authorization refusal's context at the wire, so the status IS the answer.
71
+ await res.body?.cancel().catch(() => undefined);
72
+ return { kind: ModulePublishOutcomeKind.AUTH_REJECTED, status: res.status };
73
+ }
74
+ // Every other refusal is read, once, through the reader every registry client shares (#3388). This used to report
75
+ // `400 Bad Request at <url>` and drop the body that said why, so a manifest the registry's schema refused had to be
76
+ // diagnosed from the server's uptime and the schema's history.
77
+ const body = await readRegistryRefusalBody(res);
78
+ const refusal = parseRegistryRefusalBody(body);
79
+ const said = refusal ? `: ${describeRegistryRefusal(refusal)}` : '';
68
80
  if (res.status === 409) {
69
- const body = (await res.json().catch(() => undefined));
70
81
  if (hasRegistryRefusalCode(body, RegistryRefusalCode.VERSION_IMMUTABLE)) {
71
82
  return { kind: ModulePublishOutcomeKind.VERSION_EXISTS, detail: `${input.manifest.id}@${input.manifest.version} is already published` };
72
83
  }
73
- return { kind: ModulePublishOutcomeKind.FAILED, detail: `409 ${res.statusText} at ${publishUrl}: a conflict the registry did not report as an existing version; check \`wildo registry info ${input.manifest.id}\` before retrying` };
84
+ return { kind: ModulePublishOutcomeKind.FAILED, detail: `409 ${res.statusText} at ${publishUrl}${said}. A conflict the registry did not report as an existing version; check \`wildo registry info ${input.manifest.id}\` before retrying` };
74
85
  }
75
- if (res.status === 401 || res.status === 403)
76
- return { kind: ModulePublishOutcomeKind.AUTH_REJECTED, status: res.status };
77
- return { kind: ModulePublishOutcomeKind.FAILED, detail: `${res.status} ${res.statusText} at ${publishUrl}` };
86
+ return { kind: ModulePublishOutcomeKind.FAILED, detail: `${res.status} ${res.statusText} at ${publishUrl}${said}` };
78
87
  }
79
88
  //# sourceMappingURL=module-publish.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-publish.service.js","sourceRoot":"","sources":["../../../../../../src/services/registry/module-publish.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAuB,MAAM,+BAA+B,CAAC;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,2DAA2D,CAAC;AAEhH,0CAA0C;AAC1C,MAAM,CAAN,IAAY,wBAcX;AAdD,WAAY,wBAAwB;IAClC,sEAAsE;IACtE,mDAAuB,CAAA;IACvB,gGAAgG;IAChG,qEAAyC,CAAA;IACzC,0GAA0G;IAC1G,6DAAiC,CAAA;IACjC,qFAAqF;IACrF,2DAA+B,CAAA;IAC/B;;;OAGG;IACH,6CAAiB,CAAA;AACnB,CAAC,EAdW,wBAAwB,KAAxB,wBAAwB,QAcnC;AASD,sEAAsE;AACtE,MAAM,UAAU,uBAAuB,CAAC,QAAoB;IAC1D,O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AAK,CAAC,QAAQ,CAAC,OAAO,uBAAuB,EAAE,CAAC;QAC1I,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,CAAC,UAAU,OAAO,UAAU,gGAAgG,KAAK,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACxO,CAAC;IACD,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG;QAAE,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;IAC1H,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,UAAU,OAAO,UAAU,EAAE,EAAE,CAAC;AAC/G,CAAC","sourcesContent":["/**\n * Sending one packed module version to a registry, and checking what it recorded (#2024).\n *\n * Two commands publish: `wildo registry publish`, which packs a module from an application, and `wildo fwk publish\n * providers`, which packs the framework's provider modules from the checkout. They pack differently and must send and\n * verify identically, so the request and its checks live here once.\n *\n * The one check that matters after a 201: the registry computes the version's integrity from the bytes it RECEIVED,\n * and every later install verifies against that value. If it differs from what was sent, the stored version is not the\n * one built here, and saying \"published\" would be false.\n */\nimport { createHash } from 'node:crypto';\nimport { hasRegistryRefusalCode, RegistryRefusalCode, type ModuleManifest } from '@wildo-ai/platform-config-lib';\nimport { REGISTRY_PUBLISH_REQUEST_TIMEOUT_MS } from '~wildo-cli/commands/registry/registry-transport.constants';\n\n/** What became of one publish request. */\nexport enum ModulePublishOutcomeKind {\n /** 201, and the registry recorded the integrity of the bytes sent. */\n PUBLISHED = 'published',\n /** 201, but the registry recorded another integrity: the stored version is not the one sent. */\n INTEGRITY_MISMATCH = 'integrity-mismatch',\n /** 409 carrying the registry's immutable-version code: this version exists and versions are immutable. */\n VERSION_EXISTS = 'version-exists',\n /** 401/403: the key is refused, or lacks the role that publishes into the domain. */\n AUTH_REJECTED = 'auth-rejected',\n /**\n * Anything else, a transport failure included, and a 409 WITHOUT the immutable-version code: the registry also\n * answers 409 when it gives up after lost optimistic checks, and that is not \"already published\".\n */\n FAILED = 'failed',\n}\n\nexport type ModulePublishOutcome =\n | { kind: ModulePublishOutcomeKind.PUBLISHED; version: string; integrity: string; latest?: string | null }\n | { kind: ModulePublishOutcomeKind.INTEGRITY_MISMATCH; recorded: string | undefined; sent: string }\n | { kind: ModulePublishOutcomeKind.VERSION_EXISTS; detail: string }\n | { kind: ModulePublishOutcomeKind.AUTH_REJECTED; status: number }\n | { kind: ModulePublishOutcomeKind.FAILED; detail: string };\n\n/** The `sha256:<hex>` digest the registry records for these bytes. */\nexport function moduleArtifactIntegrity(zipBytes: Uint8Array): string {\n return `sha256:${createHash('sha256').update(zipBytes).digest('hex')}`;\n}\n\n/** POST one packed version to `<registry>/v1/registry/<domain>/modules/<id>/<version>` and classify the answer. */\nexport async function publishModuleArtifact(input: {\n registryUrl: string;\n token: string;\n domain: string;\n manifest: ModuleManifest;\n zipBytes: Uint8Array;\n tag?: string;\n fetchImpl?: typeof fetch;\n}): Promise<ModulePublishOutcome> {\n const publishUrl = `${input.registryUrl.replace(/\\/+$/, '')}/v1/registry/${encodeURIComponent(input.domain)}`\n + `/modules/${encodeURIComponent(input.manifest.id)}/${encodeURIComponent(input.manifest.version)}`;\n let res: Response;\n try {\n res = await (input.fetchImpl ?? fetch)(publishUrl, {\n method: 'POST',\n headers: { 'content-type': 'application/json', authorization: `Bearer ${input.token}` },\n body: JSON.stringify({\n manifest: input.manifest,\n artifactBase64: Buffer.from(input.zipBytes).toString('base64'),\n ...(input.tag !== undefined ? { tag: input.tag } : {}),\n }),\n signal: AbortSignal.timeout(REGISTRY_PUBLISH_REQUEST_TIMEOUT_MS),\n });\n } catch (error) {\n return { kind: ModulePublishOutcomeKind.FAILED, detail: `${publishUrl}: ${error instanceof Error ? error.message : String(error)}` };\n }\n if (res.status === 201) {\n const body = (await res.json().catch(() => ({}))) as { version?: string; integrity?: string; latest?: string | null };\n const sent = moduleArtifactIntegrity(input.zipBytes);\n if (body.integrity !== sent) return { kind: ModulePublishOutcomeKind.INTEGRITY_MISMATCH, recorded: body.integrity, sent };\n return {\n kind: ModulePublishOutcomeKind.PUBLISHED,\n version: body.version ?? input.manifest.version,\n integrity: sent,\n ...(body.latest !== undefined ? { latest: body.latest } : {}),\n };\n }\n if (res.status === 409) {\n const body = (await res.json().catch(() => undefined)) as { error?: unknown } | undefined;\n if (hasRegistryRefusalCode(body, RegistryRefusalCode.VERSION_IMMUTABLE)) {\n return { kind: ModulePublishOutcomeKind.VERSION_EXISTS, detail: `${input.manifest.id}@${input.manifest.version} is already published` };\n }\n return { kind: ModulePublishOutcomeKind.FAILED, detail: `409 ${res.statusText} at ${publishUrl}: a conflict the registry did not report as an existing version; check \\`wildo registry info ${input.manifest.id}\\` before retrying` };\n }\n if (res.status === 401 || res.status === 403) return { kind: ModulePublishOutcomeKind.AUTH_REJECTED, status: res.status };\n return { kind: ModulePublishOutcomeKind.FAILED, detail: `${res.status} ${res.statusText} at ${publishUrl}` };\n}\n"]}
1
+ {"version":3,"file":"module-publish.service.js","sourceRoot":"","sources":["../../../../src/services/registry/module-publish.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,GAEpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,mCAAmC,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,0CAA0C;AAC1C,MAAM,CAAN,IAAY,wBAcX;AAdD,WAAY,wBAAwB;IAClC,sEAAsE;IACtE,mDAAuB,CAAA;IACvB,gGAA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AAC,CAAC;QAChD,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;IAC9E,CAAC;IACD,kHAAkH;IAClH,oHAAoH;IACpH,+DAA+D;IAC/D,MAAM,IAAI,GAAG,MAAM,uBAAuB,CAAC,GAAG,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,uBAAuB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QACvB,IAAI,sBAAsB,CAAC,IAAI,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACxE,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,uBAAuB,EAAE,CAAC;QAC1I,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,CAAC,UAAU,OAAO,UAAU,GAAG,IAAI,gGAAgG,KAAK,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/O,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,UAAU,OAAO,UAAU,GAAG,IAAI,EAAE,EAAE,CAAC;AACtH,CAAC","sourcesContent":["/**\n * Sending one packed module version to a registry, and checking what it recorded (#2024).\n *\n * Two commands publish: `wildo registry publish`, which packs a module from an application, and `wildo fwk publish\n * providers`, which packs the framework's provider modules from the checkout. They pack differently and must send and\n * verify identically, so the request and its checks live here once.\n *\n * The one check that matters after a 201: the registry computes the version's integrity from the bytes it RECEIVED,\n * and every later install verifies against that value. If it differs from what was sent, the stored version is not the\n * one built here, and saying \"published\" would be false.\n */\nimport { createHash } from 'node:crypto';\nimport {\n describeRegistryRefusal,\n hasRegistryRefusalCode,\n parseRegistryRefusalBody,\n readRegistryRefusalBody,\n RegistryRefusalCode,\n type ModuleManifest,\n} from '@wildo-ai/platform-config-lib';\nimport { REGISTRY_PUBLISH_REQUEST_TIMEOUT_MS } from '~wildo-cli/commands/registry/registry-transport.constants';\nimport { describeCaughtError } from '@wildo-ai/saas-models';\n\n/** What became of one publish request. */\nexport enum ModulePublishOutcomeKind {\n /** 201, and the registry recorded the integrity of the bytes sent. */\n PUBLISHED = 'published',\n /** 201, but the registry recorded another integrity: the stored version is not the one sent. */\n INTEGRITY_MISMATCH = 'integrity-mismatch',\n /** 409 carrying the registry's immutable-version code: this version exists and versions are immutable. */\n VERSION_EXISTS = 'version-exists',\n /** 401/403: the key is refused, or lacks the role that publishes into the domain. */\n AUTH_REJECTED = 'auth-rejected',\n /**\n * Anything else, a transport failure included, and a 409 WITHOUT the immutable-version code: the registry also\n * answers 409 when it gives up after lost optimistic checks, and that is not \"already published\".\n */\n FAILED = 'failed',\n}\n\nexport type ModulePublishOutcome =\n | { kind: ModulePublishOutcomeKind.PUBLISHED; version: string; integrity: string; latest?: string | null }\n | { kind: ModulePublishOutcomeKind.INTEGRITY_MISMATCH; recorded: string | undefined; sent: string }\n | { kind: ModulePublishOutcomeKind.VERSION_EXISTS; detail: string }\n | { kind: ModulePublishOutcomeKind.AUTH_REJECTED; status: number }\n | { kind: ModulePublishOutcomeKind.FAILED; detail: string };\n\n/** The `sha256:<hex>` digest the registry records for these bytes. */\nexport function moduleArtifactIntegrity(zipBytes: Uint8Array): string {\n return `sha256:${createHash('sha256').update(zipBytes).digest('hex')}`;\n}\n\n/** POST one packed version to `<registry>/v1/registry/<domain>/modules/<id>/<version>` and classify the answer. */\nexport async function publishModuleArtifact(input: {\n registryUrl: string;\n token: string;\n domain: string;\n manifest: ModuleManifest;\n zipBytes: Uint8Array;\n tag?: string;\n fetchImpl?: typeof fetch;\n}): Promise<ModulePublishOutcome> {\n const publishUrl = `${input.registryUrl.replace(/\\/+$/, '')}/v1/registry/${encodeURIComponent(input.domain)}`\n + `/modules/${encodeURIComponent(input.manifest.id)}/${encodeURIComponent(input.manifest.version)}`;\n let res: Response;\n try {\n res = await (input.fetchImpl ?? fetch)(publishUrl, {\n method: 'POST',\n headers: { 'content-type': 'application/json', authorization: `Bearer ${input.token}` },\n body: JSON.stringify({\n manifest: input.manifest,\n artifactBase64: Buffer.from(input.zipBytes).toString('base64'),\n ...(input.tag !== undefined ? { tag: input.tag } : {}),\n }),\n signal: AbortSignal.timeout(REGISTRY_PUBLISH_REQUEST_TIMEOUT_MS),\n });\n } catch (error) {\n return { kind: ModulePublishOutcomeKind.FAILED, detail: `${publishUrl}: ${describeCaughtError(error)}` };\n }\n if (res.status === 201) {\n const body = (await res.json().catch(() => ({}))) as { version?: string; integrity?: string; latest?: string | null };\n const sent = moduleArtifactIntegrity(input.zipBytes);\n if (body.integrity !== sent) return { kind: ModulePublishOutcomeKind.INTEGRITY_MISMATCH, recorded: body.integrity, sent };\n return {\n kind: ModulePublishOutcomeKind.PUBLISHED,\n version: body.version ?? input.manifest.version,\n integrity: sent,\n ...(body.latest !== undefined ? { latest: body.latest } : {}),\n };\n }\n if (res.status === 401 || res.status === 403) {\n // The engine strips an authentication or authorization refusal's context at the wire, so the status IS the answer.\n await res.body?.cancel().catch(() => undefined);\n return { kind: ModulePublishOutcomeKind.AUTH_REJECTED, status: res.status };\n }\n // Every other refusal is read, once, through the reader every registry client shares (#3388). This used to report\n // `400 Bad Request at <url>` and drop the body that said why, so a manifest the registry's schema refused had to be\n // diagnosed from the server's uptime and the schema's history.\n const body = await readRegistryRefusalBody(res);\n const refusal = parseRegistryRefusalBody(body);\n const said = refusal ? `: ${describeRegistryRefusal(refusal)}` : '';\n if (res.status === 409) {\n if (hasRegistryRefusalCode(body, RegistryRefusalCode.VERSION_IMMUTABLE)) {\n return { kind: ModulePublishOutcomeKind.VERSION_EXISTS, detail: `${input.manifest.id}@${input.manifest.version} is already published` };\n }\n return { kind: ModulePublishOutcomeKind.FAILED, detail: `409 ${res.statusText} at ${publishUrl}${said}. A conflict the registry did not report as an existing version; check \\`wildo registry info ${input.manifest.id}\\` before retrying` };\n }\n return { kind: ModulePublishOutcomeKind.FAILED, detail: `${res.status} ${res.statusText} at ${publishUrl}${said}` };\n}\n"]}
@@ -82,17 +82,6 @@ export type RegistrationShape = Pick<ModuleManifestRegistration, 'scenario' | 'm
82
82
  export declare function registrationShapeFromBoundaries(manifest: ModuleManifest): RegistrationShape | {
83
83
  reason: string;
84
84
  };
85
- /**
86
- * The build policy of the application's `pnpm-workspace.yaml`: its `onlyBuiltDependencies` and `neverBuiltDependencies`
87
- * lists, each `undefined` when the file does not declare it. Read with the YAML parser, so a quoted key, a comment or a
88
- * flow list reads as pnpm reads it. A key declared with no value counts as a list (an empty one): it is still the
89
- * application's policy, which a manifest list must not replace. An unreadable or unparsable file declares nothing.
90
- * `wildo registry repair-lockfile` reads it here too (#2809), so the install and the repair judge one policy alike.
91
- */
92
- export declare function readWorkspaceBuildPolicy(saasRoot: string): {
93
- onlyBuiltDependencies?: string[];
94
- neverBuiltDependencies?: string[];
95
- };
96
85
  /**
97
86
  * Publish side: the registration to record for `manifest`, or why there is none. Registered means every
98
87
  * registry edit of its shape's scenario, rendered for this module, is ALREADY present in the publishing
@@ -1 +1 @@
1
- {"version":3,"file":"module-registration.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/module-registration.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAMH,OAAO,EAWL,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,E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EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC;AA2CD;;;GAGG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAqBhI;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5B,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,0BAA0B,GAAG,SAAS;AAChD,qHAAqH;AACrH,oBAAoB,CAAC,EAAE,0BAA0B,GAChD,0BAA0B,CAmF5B;AAED,0FAA0F;AAC1F,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,oBAAoB,EAAE,GAAG,IAAI,CAE9G"}
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,EAeL,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAChC,MAAM,+BAA+B,CAAC;AAyEvC;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,0BAA0B,GAAG,mBAAmB,CAmDtJ;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,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