@wildo-ai/wildo-cli 1.1.9 → 1.1.11

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 (1606) hide show
  1. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  2. package/dist/src/commands/acp/probe.command.js +2 -1
  3. package/dist/src/commands/acp/probe.command.js.map +1 -1
  4. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  5. package/dist/src/commands/align-deps.command.js +17 -1
  6. package/dist/src/commands/align-deps.command.js.map +1 -1
  7. package/dist/src/commands/blueprint/pack.command.d.ts +16 -0
  8. package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -0
  9. package/dist/src/commands/blueprint/pack.command.js +86 -0
  10. package/dist/src/commands/blueprint/pack.command.js.map +1 -0
  11. package/dist/src/commands/blueprint/publish.command.d.ts +16 -0
  12. package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -0
  13. package/dist/src/commands/blueprint/publish.command.js +114 -0
  14. package/dist/src/commands/blueprint/publish.command.js.map +1 -0
  15. package/dist/src/commands/blueprint/status.command.d.ts +14 -0
  16. package/dist/src/commands/blueprint/status.command.d.ts.map +1 -0
  17. package/dist/src/commands/blueprint/status.command.js +62 -0
  18. package/dist/src/commands/blueprint/status.command.js.map +1 -0
  19. package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
  20. package/dist/src/commands/build/dispatches.command.js +6 -1
  21. package/dist/src/commands/build/dispatches.command.js.map +1 -1
  22. package/dist/src/commands/build/rearm.command.d.ts +6 -4
  23. package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
  24. package/dist/src/commands/build/rearm.command.js +12 -7
  25. package/dist/src/commands/build/rearm.command.js.map +1 -1
  26. package/dist/src/commands/config/check-resources.command.d.ts +50 -0
  27. package/dist/src/commands/config/check-resources.command.d.ts.map +1 -0
  28. package/dist/src/commands/config/check-resources.command.js +123 -0
  29. package/dist/src/commands/config/check-resources.command.js.map +1 -0
  30. package/dist/src/commands/config/legal-notice.command.d.ts +17 -0
  31. package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -0
  32. package/dist/src/commands/config/legal-notice.command.js +59 -0
  33. package/dist/src/commands/config/legal-notice.command.js.map +1 -0
  34. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  35. package/dist/src/commands/config/reapply-declaration.command.js +24 -0
  36. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  37. package/dist/src/commands/config/sync.command.d.ts +13 -0
  38. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  39. package/dist/src/commands/config/sync.command.js +37 -2
  40. package/dist/src/commands/config/sync.command.js.map +1 -1
  41. package/dist/src/commands/config/validate.command.d.ts +11 -2
  42. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  43. package/dist/src/commands/config/validate.command.js +100 -7
  44. package/dist/src/commands/config/validate.command.js.map +1 -1
  45. package/dist/src/commands/context/context-command.utils.d.ts +6 -1
  46. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  47. package/dist/src/commands/context/context-command.utils.js +8 -2
  48. package/dist/src/commands/context/context-command.utils.js.map +1 -1
  49. package/dist/src/commands/context/elements.command.d.ts +3 -1
  50. package/dist/src/commands/context/elements.command.d.ts.map +1 -1
  51. package/dist/src/commands/context/elements.command.js +3 -1
  52. package/dist/src/commands/context/elements.command.js.map +1 -1
  53. package/dist/src/commands/context/journey.command.d.ts +8 -2
  54. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  55. package/dist/src/commands/context/journey.command.js +143 -16
  56. package/dist/src/commands/context/journey.command.js.map +1 -1
  57. package/dist/src/commands/context/launch-blockers.command.d.ts +2 -1
  58. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
  59. package/dist/src/commands/context/launch-blockers.command.js +6 -4
  60. package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
  61. package/dist/src/commands/context/pipelines.command.d.ts +2 -0
  62. package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
  63. package/dist/src/commands/context/pipelines.command.js +6 -3
  64. package/dist/src/commands/context/pipelines.command.js.map +1 -1
  65. package/dist/src/commands/creation/accept.command.d.ts +4 -0
  66. package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
  67. package/dist/src/commands/creation/accept.command.js +29 -4
  68. package/dist/src/commands/creation/accept.command.js.map +1 -1
  69. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  70. package/dist/src/commands/creation/answer.command.js +2 -1
  71. package/dist/src/commands/creation/answer.command.js.map +1 -1
  72. package/dist/src/commands/creation/brand-logo.command.d.ts +18 -0
  73. package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -0
  74. package/dist/src/commands/creation/brand-logo.command.js +43 -0
  75. package/dist/src/commands/creation/brand-logo.command.js.map +1 -0
  76. package/dist/src/commands/creation/deliberate.command.d.ts +2 -2
  77. package/dist/src/commands/creation/deliberate.command.js +2 -2
  78. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  79. package/dist/src/commands/creation/depth.command.js +1 -1
  80. package/dist/src/commands/creation/depth.command.js.map +1 -1
  81. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  82. package/dist/src/commands/creation/feed.command.js +3 -2
  83. package/dist/src/commands/creation/feed.command.js.map +1 -1
  84. package/dist/src/commands/creation/persona.command.d.ts +3 -2
  85. package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
  86. package/dist/src/commands/creation/persona.command.js +10 -3
  87. package/dist/src/commands/creation/persona.command.js.map +1 -1
  88. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
  89. package/dist/src/commands/creation/preflight.command.js +3 -1
  90. package/dist/src/commands/creation/preflight.command.js.map +1 -1
  91. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  92. package/dist/src/commands/creation/questions.command.js +2 -1
  93. package/dist/src/commands/creation/questions.command.js.map +1 -1
  94. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  95. package/dist/src/commands/creation/run.command.js +2 -1
  96. package/dist/src/commands/creation/run.command.js.map +1 -1
  97. package/dist/src/commands/creation/why.command.d.ts +3 -1
  98. package/dist/src/commands/creation/why.command.d.ts.map +1 -1
  99. package/dist/src/commands/creation/why.command.js +28 -9
  100. package/dist/src/commands/creation/why.command.js.map +1 -1
  101. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts +17 -0
  102. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
  103. package/dist/src/commands/db/db-schema-plan-migration.utils.js +27 -0
  104. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
  105. package/dist/src/commands/db/db-schema-plan.utils.d.ts +33 -3
  106. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  107. package/dist/src/commands/db/db-schema-plan.utils.js +71 -6
  108. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  109. package/dist/src/commands/db/diff.command.js +1 -1
  110. package/dist/src/commands/db/diff.command.js.map +1 -1
  111. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  112. package/dist/src/commands/db/generate.command.js +32 -5
  113. package/dist/src/commands/db/generate.command.js.map +1 -1
  114. package/dist/src/commands/dev/design-tokens-brand.command.d.ts +10 -0
  115. package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -0
  116. package/dist/src/commands/dev/design-tokens-brand.command.js +24 -0
  117. package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -0
  118. package/dist/src/commands/dev/design-tokens-contract.command.d.ts +10 -0
  119. package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -0
  120. package/dist/src/commands/dev/design-tokens-contract.command.js +24 -0
  121. package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -0
  122. package/dist/src/commands/dev/design-tokens-contrast.command.d.ts +10 -0
  123. package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -0
  124. package/dist/src/commands/dev/design-tokens-contrast.command.js +24 -0
  125. package/dist/src/commands/dev/design-tokens-contrast.command.js.map +1 -0
  126. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  127. package/dist/src/commands/dev/start.command.js +34 -8
  128. package/dist/src/commands/dev/start.command.js.map +1 -1
  129. package/dist/src/commands/docs/check.command.d.ts +25 -0
  130. package/dist/src/commands/docs/check.command.d.ts.map +1 -0
  131. package/dist/src/commands/docs/check.command.js +91 -0
  132. package/dist/src/commands/docs/check.command.js.map +1 -0
  133. package/dist/src/commands/frontend/look.command.d.ts +26 -0
  134. package/dist/src/commands/frontend/look.command.d.ts.map +1 -0
  135. package/dist/src/commands/frontend/look.command.js +132 -0
  136. package/dist/src/commands/frontend/look.command.js.map +1 -0
  137. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  138. package/dist/src/commands/fwk/dev-skills.command.js +3 -0
  139. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  140. package/dist/src/commands/fwk/generate-blueprints.command.d.ts +12 -0
  141. package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -0
  142. package/dist/src/commands/fwk/generate-blueprints.command.js +75 -0
  143. package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -0
  144. package/dist/src/commands/fwk/publish-all.command.d.ts +4 -3
  145. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  146. package/dist/src/commands/fwk/publish-all.command.js +94 -32
  147. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  148. package/dist/src/commands/fwk/publish-promote.command.d.ts +8 -0
  149. package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -0
  150. package/dist/src/commands/fwk/publish-promote.command.js +137 -0
  151. package/dist/src/commands/fwk/publish-promote.command.js.map +1 -0
  152. package/dist/src/commands/fwk/publish-providers.command.d.ts +19 -0
  153. package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -0
  154. package/dist/src/commands/fwk/publish-providers.command.js +80 -0
  155. package/dist/src/commands/fwk/publish-providers.command.js.map +1 -0
  156. package/dist/src/commands/fwk/registry-host.command.d.ts +41 -0
  157. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -0
  158. package/dist/src/commands/fwk/registry-host.command.js +393 -0
  159. package/dist/src/commands/fwk/registry-host.command.js.map +1 -0
  160. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  161. package/dist/src/commands/fwk/version-show.command.js +1 -2
  162. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  163. package/dist/src/commands/generate/labelling-command.utils.d.ts +15 -0
  164. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  165. package/dist/src/commands/generate/labelling-command.utils.js +21 -2
  166. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  167. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  168. package/dist/src/commands/generate/labels.command.js +10 -1
  169. package/dist/src/commands/generate/labels.command.js.map +1 -1
  170. package/dist/src/commands/generate/translate.command.d.ts +5 -0
  171. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  172. package/dist/src/commands/generate/translate.command.js +30 -3
  173. package/dist/src/commands/generate/translate.command.js.map +1 -1
  174. package/dist/src/commands/help.command.d.ts.map +1 -1
  175. package/dist/src/commands/help.command.js +2 -0
  176. package/dist/src/commands/help.command.js.map +1 -1
  177. package/dist/src/commands/init.command.d.ts +59 -0
  178. package/dist/src/commands/init.command.d.ts.map +1 -1
  179. package/dist/src/commands/init.command.js +401 -12
  180. package/dist/src/commands/init.command.js.map +1 -1
  181. package/dist/src/commands/keys/rotate.command.d.ts +36 -0
  182. package/dist/src/commands/keys/rotate.command.d.ts.map +1 -0
  183. package/dist/src/commands/keys/rotate.command.js +140 -0
  184. package/dist/src/commands/keys/rotate.command.js.map +1 -0
  185. package/dist/src/commands/keys/thumbprint.command.d.ts +10 -0
  186. package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -0
  187. package/dist/src/commands/keys/thumbprint.command.js +64 -0
  188. package/dist/src/commands/keys/thumbprint.command.js.map +1 -0
  189. package/dist/src/commands/local/dev.command.d.ts +8 -1
  190. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  191. package/dist/src/commands/local/dev.command.js +37 -6
  192. package/dist/src/commands/local/dev.command.js.map +1 -1
  193. package/dist/src/commands/local/doctor.command.d.ts +18 -0
  194. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  195. package/dist/src/commands/local/doctor.command.js +115 -1
  196. package/dist/src/commands/local/doctor.command.js.map +1 -1
  197. package/dist/src/commands/local/reinit.command.js +1 -1
  198. package/dist/src/commands/local/reinit.command.js.map +1 -1
  199. package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
  200. package/dist/src/commands/local/smoke.command.js +2 -1
  201. package/dist/src/commands/local/smoke.command.js.map +1 -1
  202. package/dist/src/commands/local/up.command.d.ts +11 -5
  203. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  204. package/dist/src/commands/local/up.command.js +51 -145
  205. package/dist/src/commands/local/up.command.js.map +1 -1
  206. package/dist/src/commands/lock/check.command.d.ts +8 -6
  207. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  208. package/dist/src/commands/lock/check.command.js +12 -19
  209. package/dist/src/commands/lock/check.command.js.map +1 -1
  210. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  211. package/dist/src/commands/market/generate.command.js +2 -1
  212. package/dist/src/commands/market/generate.command.js.map +1 -1
  213. package/dist/src/commands/providers/chat-command-registrations.utils.d.ts +32 -0
  214. package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -0
  215. package/dist/src/commands/providers/chat-command-registrations.utils.js +120 -0
  216. package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -0
  217. package/dist/src/commands/providers/new.command.d.ts +14 -0
  218. package/dist/src/commands/providers/new.command.d.ts.map +1 -0
  219. package/dist/src/commands/providers/new.command.js +119 -0
  220. package/dist/src/commands/providers/new.command.js.map +1 -0
  221. package/dist/src/commands/providers/probe.command.d.ts +20 -0
  222. package/dist/src/commands/providers/probe.command.d.ts.map +1 -0
  223. package/dist/src/commands/providers/probe.command.js +164 -0
  224. package/dist/src/commands/providers/probe.command.js.map +1 -0
  225. package/dist/src/commands/providers/register.command.d.ts +34 -0
  226. package/dist/src/commands/providers/register.command.d.ts.map +1 -0
  227. package/dist/src/commands/providers/register.command.js +258 -0
  228. package/dist/src/commands/providers/register.command.js.map +1 -0
  229. package/dist/src/commands/providers/show.command.d.ts +1 -0
  230. package/dist/src/commands/providers/show.command.d.ts.map +1 -1
  231. package/dist/src/commands/providers/show.command.js +6 -46
  232. package/dist/src/commands/providers/show.command.js.map +1 -1
  233. package/dist/src/commands/registry/add.command.d.ts +3 -0
  234. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  235. package/dist/src/commands/registry/add.command.js +23 -212
  236. package/dist/src/commands/registry/add.command.js.map +1 -1
  237. package/dist/src/commands/registry/domain.command.d.ts +32 -0
  238. package/dist/src/commands/registry/domain.command.d.ts.map +1 -0
  239. package/dist/src/commands/registry/domain.command.js +118 -0
  240. package/dist/src/commands/registry/domain.command.js.map +1 -0
  241. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  242. package/dist/src/commands/registry/publish.command.js +26 -50
  243. package/dist/src/commands/registry/publish.command.js.map +1 -1
  244. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  245. package/dist/src/commands/registry/remove.command.js +16 -1
  246. package/dist/src/commands/registry/remove.command.js.map +1 -1
  247. package/dist/src/commands/registry/repair-lockfile.command.d.ts +11 -1
  248. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  249. package/dist/src/commands/registry/repair-lockfile.command.js +145 -12
  250. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  251. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  252. package/dist/src/commands/registry/search.command.js +4 -4
  253. package/dist/src/commands/registry/search.command.js.map +1 -1
  254. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  255. package/dist/src/commands/registry/update.command.js +22 -6
  256. package/dist/src/commands/registry/update.command.js.map +1 -1
  257. package/dist/src/commands/seal/dead.command.d.ts +11 -0
  258. package/dist/src/commands/seal/dead.command.d.ts.map +1 -0
  259. package/dist/src/commands/seal/dead.command.js +44 -0
  260. package/dist/src/commands/seal/dead.command.js.map +1 -0
  261. package/dist/src/commands/seal/export.command.d.ts +12 -0
  262. package/dist/src/commands/seal/export.command.d.ts.map +1 -0
  263. package/dist/src/commands/seal/export.command.js +67 -0
  264. package/dist/src/commands/seal/export.command.js.map +1 -0
  265. package/dist/src/commands/seal/log-export.command.d.ts +18 -0
  266. package/dist/src/commands/seal/log-export.command.d.ts.map +1 -0
  267. package/dist/src/commands/seal/log-export.command.js +93 -0
  268. package/dist/src/commands/seal/log-export.command.js.map +1 -0
  269. package/dist/src/commands/seal/log-verify.command.d.ts +13 -0
  270. package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -0
  271. package/dist/src/commands/seal/log-verify.command.js +74 -0
  272. package/dist/src/commands/seal/log-verify.command.js.map +1 -0
  273. package/dist/src/commands/seal/retry.command.d.ts +12 -0
  274. package/dist/src/commands/seal/retry.command.d.ts.map +1 -0
  275. package/dist/src/commands/seal/retry.command.js +48 -0
  276. package/dist/src/commands/seal/retry.command.js.map +1 -0
  277. package/dist/src/commands/seal/seal-admin-door.utils.d.ts +13 -0
  278. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -0
  279. package/dist/src/commands/seal/seal-admin-door.utils.js +88 -0
  280. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -0
  281. package/dist/src/commands/seal/signing-log-files.utils.d.ts +9 -0
  282. package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -0
  283. package/dist/src/commands/seal/signing-log-files.utils.js +15 -0
  284. package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -0
  285. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  286. package/dist/src/commands/seal/verify.command.d.ts.map +1 -0
  287. package/dist/src/commands/seal/verify.command.js +120 -0
  288. package/dist/src/commands/seal/verify.command.js.map +1 -0
  289. package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
  290. package/dist/src/commands/secrets/list.command.js +3 -2
  291. package/dist/src/commands/secrets/list.command.js.map +1 -1
  292. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  293. package/dist/src/commands/secrets/set.command.js +3 -2
  294. package/dist/src/commands/secrets/set.command.js.map +1 -1
  295. package/dist/src/commands/update.command.js +3 -0
  296. package/dist/src/commands/update.command.js.map +1 -1
  297. package/dist/src/commands/website/look.command.d.ts +22 -0
  298. package/dist/src/commands/website/look.command.d.ts.map +1 -0
  299. package/dist/src/commands/website/look.command.js +147 -0
  300. package/dist/src/commands/website/look.command.js.map +1 -0
  301. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  302. package/dist/src/commands/workbench/status.command.js +2 -1
  303. package/dist/src/commands/workbench/status.command.js.map +1 -1
  304. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  305. package/dist/src/kernel/command-registry.js +3 -0
  306. package/dist/src/kernel/command-registry.js.map +1 -1
  307. package/dist/src/kernel/command-runner.d.ts +5 -0
  308. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  309. package/dist/src/kernel/command-runner.js +13 -1
  310. package/dist/src/kernel/command-runner.js.map +1 -1
  311. package/dist/src/kernel/hooks.d.ts.map +1 -1
  312. package/dist/src/kernel/hooks.js +5 -3
  313. package/dist/src/kernel/hooks.js.map +1 -1
  314. package/dist/src/kernel/json-document-output.d.ts +25 -0
  315. package/dist/src/kernel/json-document-output.d.ts.map +1 -0
  316. package/dist/src/kernel/json-document-output.js +29 -0
  317. package/dist/src/kernel/json-document-output.js.map +1 -0
  318. package/dist/src/kernel/logger.d.ts +16 -1
  319. package/dist/src/kernel/logger.d.ts.map +1 -1
  320. package/dist/src/kernel/logger.js +21 -4
  321. package/dist/src/kernel/logger.js.map +1 -1
  322. package/dist/src/kernel/types.d.ts +6 -0
  323. package/dist/src/kernel/types.d.ts.map +1 -1
  324. package/dist/src/kernel/types.js +6 -0
  325. package/dist/src/kernel/types.js.map +1 -1
  326. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts +5 -1
  327. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
  328. package/dist/src/modules/domain/credentials/creation-essentials.module.js +1 -4
  329. package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
  330. package/dist/src/services/application/ai-use-declarations.service.d.ts +89 -0
  331. package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -0
  332. package/dist/src/services/application/ai-use-declarations.service.js +178 -0
  333. package/dist/src/services/application/ai-use-declarations.service.js.map +1 -0
  334. package/dist/src/services/application/app-bootstrap.service.d.ts +6 -1
  335. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  336. package/dist/src/services/application/app-bootstrap.service.js +12 -1
  337. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  338. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  339. package/dist/src/services/application/app-runtime-targets.service.js +6 -0
  340. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  341. package/dist/src/services/application/application-assets-delivery.service.d.ts +6 -0
  342. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  343. package/dist/src/services/application/application-assets-delivery.service.js +13 -1
  344. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  345. package/dist/src/services/application/application-creation-readiness.service.d.ts +10 -2
  346. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  347. package/dist/src/services/application/application-creation-readiness.service.js +74 -21
  348. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  349. package/dist/src/services/application/application-dependency-alignment.service.d.ts +52 -4
  350. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  351. package/dist/src/services/application/application-dependency-alignment.service.js +118 -8
  352. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  353. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +80 -0
  354. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -0
  355. package/dist/src/services/application/content-guardrail-classifier.service.js +199 -0
  356. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -0
  357. package/dist/src/services/application/creation-preflight.service.d.ts +2 -2
  358. package/dist/src/services/application/creation-preflight.service.js +2 -2
  359. package/dist/src/services/application/creation-preflight.service.js.map +1 -1
  360. package/dist/src/services/application/dev-schema-drift.service.js +1 -1
  361. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  362. package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
  363. package/dist/src/services/application/environment-provider-configurations.service.js +96 -2
  364. package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
  365. package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts +23 -0
  366. package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -0
  367. package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +107 -0
  368. package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -0
  369. package/dist/src/services/application/frontend-providers-not-configured.service.d.ts +23 -0
  370. package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -0
  371. package/dist/src/services/application/frontend-providers-not-configured.service.js +62 -0
  372. package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -0
  373. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts +13 -2
  374. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
  375. package/dist/src/services/application/frontend-public-config-secret-screen.service.js +4 -2
  376. package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
  377. package/dist/src/services/application/provider-package-links.service.d.ts +7 -6
  378. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
  379. package/dist/src/services/application/provider-package-links.service.js +7 -6
  380. package/dist/src/services/application/provider-package-links.service.js.map +1 -1
  381. package/dist/src/services/application/provider-runtime-sync.service.d.ts +68 -9
  382. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  383. package/dist/src/services/application/provider-runtime-sync.service.js +264 -108
  384. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  385. package/dist/src/services/application/saas-skeleton.service.d.ts +53 -0
  386. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  387. package/dist/src/services/application/saas-skeleton.service.js +45 -13
  388. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  389. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  390. package/dist/src/services/application/systems-of-record-library.service.js +4 -3
  391. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  392. package/dist/src/services/blueprint/blueprint-apply.service.d.ts +147 -0
  393. package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -0
  394. package/dist/src/services/blueprint/blueprint-apply.service.js +490 -0
  395. package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -0
  396. package/dist/src/services/blueprint/blueprint-artifact.service.d.ts +33 -0
  397. package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -0
  398. package/dist/src/services/blueprint/blueprint-artifact.service.js +88 -0
  399. package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -0
  400. package/dist/src/services/blueprint/blueprint-definition.reader.d.ts +37 -0
  401. package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -0
  402. package/dist/src/services/blueprint/blueprint-definition.reader.js +160 -0
  403. package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -0
  404. package/dist/src/services/blueprint/blueprint-export.service.d.ts +72 -0
  405. package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -0
  406. package/dist/src/services/blueprint/blueprint-export.service.js +899 -0
  407. package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -0
  408. package/dist/src/services/blueprint/blueprint-line.service.d.ts +76 -0
  409. package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -0
  410. package/dist/src/services/blueprint/blueprint-line.service.js +200 -0
  411. package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -0
  412. package/dist/src/services/blueprint/blueprint-module-references.service.d.ts +81 -0
  413. package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -0
  414. package/dist/src/services/blueprint/blueprint-module-references.service.js +185 -0
  415. package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -0
  416. package/dist/src/services/blueprint/blueprint-registry.service.d.ts +63 -0
  417. package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -0
  418. package/dist/src/services/blueprint/blueprint-registry.service.js +119 -0
  419. package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -0
  420. package/dist/src/services/blueprint/blueprint-report.d.ts +8 -0
  421. package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -0
  422. package/dist/src/services/blueprint/blueprint-report.js +32 -0
  423. package/dist/src/services/blueprint/blueprint-report.js.map +1 -0
  424. package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +31 -0
  425. package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -0
  426. package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +65 -0
  427. package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -0
  428. package/dist/src/services/blueprint/framework-blueprints.service.d.ts +68 -0
  429. package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -0
  430. package/dist/src/services/blueprint/framework-blueprints.service.js +239 -0
  431. package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -0
  432. package/dist/src/services/catalog/service-address-resolver.service.d.ts +6 -0
  433. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  434. package/dist/src/services/catalog/service-address-resolver.service.js +4 -0
  435. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  436. package/dist/src/services/catalog/service-catalog.schemas.d.ts +7 -3
  437. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  438. package/dist/src/services/catalog/service-catalog.schemas.js +24 -3
  439. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  440. package/dist/src/services/companion/agent-stop-reason-words.d.ts +5 -0
  441. package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -0
  442. package/dist/src/services/companion/agent-stop-reason-words.js +25 -0
  443. package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -0
  444. package/dist/src/services/companion/agent-work-shortfall-words.d.ts +8 -0
  445. package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -0
  446. package/dist/src/services/companion/agent-work-shortfall-words.js +35 -0
  447. package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -0
  448. package/dist/src/services/companion/build-console.service.d.ts +111 -2
  449. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  450. package/dist/src/services/companion/build-console.service.js +126 -6
  451. package/dist/src/services/companion/build-console.service.js.map +1 -1
  452. package/dist/src/services/companion/console-fast-path.d.ts +21 -3
  453. package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
  454. package/dist/src/services/companion/console-fast-path.js +57 -12
  455. package/dist/src/services/companion/console-fast-path.js.map +1 -1
  456. package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
  457. package/dist/src/services/companion/console-verb.utils.js +2 -1
  458. package/dist/src/services/companion/console-verb.utils.js.map +1 -1
  459. package/dist/src/services/companion/creation-console.service.d.ts +76 -0
  460. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  461. package/dist/src/services/companion/creation-console.service.js +124 -11
  462. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  463. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts +5 -3
  464. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  465. package/dist/src/services/compliance/generated-compliance-module-wiring.js +4 -2
  466. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  467. package/dist/src/services/compliance/legal-notice.generator.d.ts +45 -0
  468. package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -0
  469. package/dist/src/services/compliance/legal-notice.generator.js +97 -0
  470. package/dist/src/services/compliance/legal-notice.generator.js.map +1 -0
  471. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts +5 -2
  472. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
  473. package/dist/src/services/compliance/subject-data-recipients.generator.js +7 -3
  474. package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
  475. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  476. package/dist/src/services/credentials/application-secrets.service.js +5 -7
  477. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  478. package/dist/src/services/credentials/ci-secrets-adapter.service.js +2 -2
  479. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  480. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +5 -12
  481. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  482. package/dist/src/services/credentials/composed-provider-catalogue.js +12 -0
  483. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  484. package/dist/src/services/credentials/credentials.schemas.d.ts +77 -0
  485. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  486. package/dist/src/services/credentials/credentials.schemas.js +69 -1
  487. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  488. package/dist/src/services/credentials/framework-managed-secrets.d.ts +77 -5
  489. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  490. package/dist/src/services/credentials/framework-managed-secrets.js +155 -1
  491. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  492. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  493. package/dist/src/services/credentials/local-defaults.service.js +2 -2
  494. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  495. package/dist/src/services/credentials/local-secrets-store.service.d.ts +14 -2
  496. package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
  497. package/dist/src/services/credentials/local-secrets-store.service.js +29 -2
  498. package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
  499. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  500. package/dist/src/services/credentials/provider-env-vars.utils.js +4 -0
  501. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  502. package/dist/src/services/credentials/secret-requirements.service.d.ts +144 -4
  503. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  504. package/dist/src/services/credentials/secret-requirements.service.js +467 -20
  505. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  506. package/dist/src/services/credentials/secrets-reader.service.d.ts +6 -0
  507. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  508. package/dist/src/services/credentials/secrets-reader.service.js +13 -2
  509. package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
  510. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  511. package/dist/src/services/credentials/secrets-rotation.service.js +3 -2
  512. package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
  513. package/dist/src/services/data-services/data-services.schemas.d.ts +2 -1
  514. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  515. package/dist/src/services/data-services/data-services.schemas.js +5 -0
  516. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  517. package/dist/src/services/data-services/platform-key-vault.server-config.d.ts +79 -0
  518. package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -0
  519. package/dist/src/services/data-services/platform-key-vault.server-config.js +157 -0
  520. package/dist/src/services/data-services/platform-key-vault.server-config.js.map +1 -0
  521. package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
  522. package/dist/src/services/deployment/docker/backing-service-health-watch.js +4 -1
  523. package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
  524. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +9 -16
  525. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  526. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +67 -25
  527. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  528. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts +15 -1
  529. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  530. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js +19 -6
  531. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  532. package/dist/src/services/deployment/infra-writer.service.d.ts +1 -1
  533. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  534. package/dist/src/services/deployment/infra-writer.service.js +2 -2
  535. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  536. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +38 -0
  537. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  538. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +51 -2
  539. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  540. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts +69 -0
  541. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  542. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js +103 -1
  543. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
  544. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +1 -2
  545. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  546. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +59 -45
  547. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  548. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +26 -20
  549. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  550. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  551. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts +26 -0
  552. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  553. package/dist/src/services/deployment/k8s/k8s-operations.service.js +79 -0
  554. package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
  555. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  556. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +19 -2
  557. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  558. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts +5 -2
  559. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  560. package/dist/src/services/deployment/k8s/k8s.schemas.js +5 -2
  561. package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
  562. package/dist/src/services/deployment/k8s/kind.service.d.ts +10 -6
  563. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  564. package/dist/src/services/deployment/k8s/kind.service.js +3 -57
  565. package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
  566. package/dist/src/services/deployment/local-dev-log-retention.service.d.ts +45 -0
  567. package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -0
  568. package/dist/src/services/deployment/local-dev-log-retention.service.js +83 -0
  569. package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -0
  570. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts +2 -2
  571. package/dist/src/services/deployment/local-dev-session-lease.service.js +2 -2
  572. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  573. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  574. package/dist/src/services/deployment/local-infrastructure-initialization.service.js +20 -1
  575. package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
  576. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +14 -0
  577. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  578. package/dist/src/services/deployment/local-precondition-checks.service.js +42 -0
  579. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  580. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts +60 -0
  581. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  582. package/dist/src/services/design-tokens/design-tokens-command.service.js +317 -64
  583. package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
  584. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts +21 -2
  585. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  586. package/dist/src/services/design-tokens/design-tokens-config.service.js +23 -40
  587. package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
  588. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts +20 -0
  589. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  590. package/dist/src/services/design-tokens/design-tokens-config.template.js +47 -5
  591. package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
  592. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts +28 -4
  593. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  594. package/dist/src/services/design-tokens/design-tokens-paths.service.js +67 -9
  595. package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
  596. package/dist/src/services/design-tokens/design-tokens.constants.d.ts +63 -0
  597. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  598. package/dist/src/services/design-tokens/design-tokens.constants.js +63 -0
  599. package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
  600. package/dist/src/services/design-tokens/design-tokens.models.d.ts +24 -0
  601. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  602. package/dist/src/services/design-tokens/design-tokens.models.js +22 -0
  603. package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
  604. package/dist/src/services/environment/authored-infra-config.utils.d.ts +30 -0
  605. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  606. package/dist/src/services/environment/authored-infra-config.utils.js +47 -1
  607. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  608. package/dist/src/services/environment/env-configuration-generator.service.d.ts +4 -4
  609. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  610. package/dist/src/services/environment/env-configuration-generator.service.js +18 -12
  611. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  612. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  613. package/dist/src/services/environment/env-sync.service.js +1 -1
  614. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  615. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  616. package/dist/src/services/environment/env-vars-builder.service.js +201 -6
  617. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  618. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  619. package/dist/src/services/environment/environment-hydration.utils.js +6 -0
  620. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  621. package/dist/src/services/environment/environment-paths.service.d.ts +5 -7
  622. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  623. package/dist/src/services/environment/environment-paths.service.js +5 -7
  624. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  625. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  626. package/dist/src/services/environment/environment-setup.service.js +15 -19
  627. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  628. package/dist/src/services/environment/environment.schemas.d.ts +21 -3
  629. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  630. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  631. package/dist/src/services/environment/platform-runtime.schemas.d.ts +36 -58
  632. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  633. package/dist/src/services/environment/platform-runtime.schemas.js +37 -58
  634. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  635. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +17 -12
  636. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  637. package/dist/src/services/environment/runtime-bootstrap.service.js +100 -23
  638. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  639. package/dist/src/services/framework/application-claude-settings.d.ts +39 -5
  640. package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
  641. package/dist/src/services/framework/application-claude-settings.js +100 -25
  642. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  643. package/dist/src/services/framework/application-provider-skills.service.d.ts +38 -0
  644. package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -0
  645. package/dist/src/services/framework/application-provider-skills.service.js +189 -0
  646. package/dist/src/services/framework/application-provider-skills.service.js.map +1 -0
  647. package/dist/src/services/framework/application-rule-imports.d.ts +2 -1
  648. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
  649. package/dist/src/services/framework/application-rule-imports.js +25 -7
  650. package/dist/src/services/framework/application-rule-imports.js.map +1 -1
  651. package/dist/src/services/framework/auditable-event-catalog.generator.d.ts +49 -0
  652. package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -0
  653. package/dist/src/services/framework/auditable-event-catalog.generator.js +84 -0
  654. package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -0
  655. package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
  656. package/dist/src/services/framework/claude-plugin-compiler.js +3 -2
  657. package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
  658. package/dist/src/services/framework/enum-member-docs.reader.d.ts +33 -0
  659. package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -0
  660. package/dist/src/services/framework/enum-member-docs.reader.js +63 -0
  661. package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -0
  662. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +30 -0
  663. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -0
  664. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +57 -0
  665. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -0
  666. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +6 -0
  667. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  668. package/dist/src/services/framework/framework-development-skills-sync.service.js +64 -2
  669. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  670. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  671. package/dist/src/services/framework/framework-docker-publish.service.js +3 -2
  672. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  673. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +0 -6
  674. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  675. package/dist/src/services/framework/framework-knowledge-audit.service.js +11 -36
  676. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  677. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +7 -3
  678. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  679. package/dist/src/services/framework/framework-knowledge-generation.service.js +79 -69
  680. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  681. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts +6 -1
  682. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  683. package/dist/src/services/framework/framework-knowledge-scan.constants.js +13 -0
  684. package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
  685. package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +81 -0
  686. package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -0
  687. package/dist/src/services/framework/framework-npm-dist-tag.service.js +149 -0
  688. package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -0
  689. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  690. package/dist/src/services/framework/framework-npm-publish.service.js +7 -5
  691. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  692. package/dist/src/services/framework/framework-publish-manifest.service.d.ts +10 -36
  693. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  694. package/dist/src/services/framework/framework-publish-manifest.service.js +15 -58
  695. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  696. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  697. package/dist/src/services/framework/framework-release.service.js +4 -1
  698. package/dist/src/services/framework/framework-release.service.js.map +1 -1
  699. package/dist/src/services/framework/framework-update.service.d.ts +6 -0
  700. package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
  701. package/dist/src/services/framework/framework-update.service.js +15 -1
  702. package/dist/src/services/framework/framework-update.service.js.map +1 -1
  703. package/dist/src/services/framework/framework-version.service.d.ts +2 -4
  704. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  705. package/dist/src/services/framework/framework-version.service.js +5 -7
  706. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  707. package/dist/src/services/framework/frontend-library-root-exports.js +3 -3
  708. package/dist/src/services/framework/package-install.service.d.ts +9 -0
  709. package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
  710. package/dist/src/services/framework/package-install.service.js +14 -0
  711. package/dist/src/services/framework/package-install.service.js.map +1 -1
  712. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
  713. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +12 -4
  714. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
  715. package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts +43 -0
  716. package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -0
  717. package/dist/src/services/framework/registry-host/registry-host-monitoring.js +103 -0
  718. package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -0
  719. package/dist/src/services/framework/registry-host/registry-host-remote.d.ts +29 -0
  720. package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -0
  721. package/dist/src/services/framework/registry-host/registry-host-remote.js +98 -0
  722. package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -0
  723. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +102 -0
  724. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -0
  725. package/dist/src/services/framework/registry-host/registry-host.service.js +318 -0
  726. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -0
  727. package/dist/src/services/frontend/frontend-look.service.d.ts +264 -0
  728. package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -0
  729. package/dist/src/services/frontend/frontend-look.service.js +640 -0
  730. package/dist/src/services/frontend/frontend-look.service.js.map +1 -0
  731. package/dist/src/services/registry/artifact-extractor.utils.d.ts +9 -4
  732. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  733. package/dist/src/services/registry/artifact-extractor.utils.js +16 -9
  734. package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
  735. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  736. package/dist/src/services/registry/boundary-fanout.utils.js +7 -2
  737. package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
  738. package/dist/src/services/registry/index.d.ts +0 -1
  739. package/dist/src/services/registry/index.d.ts.map +1 -1
  740. package/dist/src/services/registry/index.js +0 -1
  741. package/dist/src/services/registry/index.js.map +1 -1
  742. package/dist/src/services/registry/installed-provider-module.service.d.ts +25 -0
  743. package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -0
  744. package/dist/src/services/registry/installed-provider-module.service.js +56 -0
  745. package/dist/src/services/registry/installed-provider-module.service.js.map +1 -0
  746. package/dist/src/services/registry/local-checkout-module-source.service.d.ts +12 -10
  747. package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
  748. package/dist/src/services/registry/local-checkout-module-source.service.js +60 -58
  749. package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
  750. package/dist/src/services/registry/module-acquisition.utils.d.ts +6 -0
  751. package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
  752. package/dist/src/services/registry/module-acquisition.utils.js +7 -0
  753. package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
  754. package/dist/src/services/registry/module-install.service.d.ts +70 -0
  755. package/dist/src/services/registry/module-install.service.d.ts.map +1 -0
  756. package/dist/src/services/registry/module-install.service.js +199 -0
  757. package/dist/src/services/registry/module-install.service.js.map +1 -0
  758. package/dist/src/services/registry/module-publish.service.d.ts +49 -0
  759. package/dist/src/services/registry/module-publish.service.d.ts.map +1 -0
  760. package/dist/src/services/registry/module-publish.service.js +79 -0
  761. package/dist/src/services/registry/module-publish.service.js.map +1 -0
  762. package/dist/src/services/registry/module-registration.service.d.ts +26 -0
  763. package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
  764. package/dist/src/services/registry/module-registration.service.js +474 -20
  765. package/dist/src/services/registry/module-registration.service.js.map +1 -1
  766. package/dist/src/services/registry/module-requirements.service.d.ts +42 -2
  767. package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
  768. package/dist/src/services/registry/module-requirements.service.js +133 -6
  769. package/dist/src/services/registry/module-requirements.service.js.map +1 -1
  770. package/dist/src/services/registry/provider-install-step.d.ts +77 -14
  771. package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
  772. package/dist/src/services/registry/provider-install-step.js +189 -4
  773. package/dist/src/services/registry/provider-install-step.js.map +1 -1
  774. package/dist/src/services/registry/provider-module-checks.service.d.ts +27 -4
  775. package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
  776. package/dist/src/services/registry/provider-module-checks.service.js +513 -19
  777. package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
  778. package/dist/src/services/registry/provider-module-scaffold.service.d.ts +156 -0
  779. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -0
  780. package/dist/src/services/registry/provider-module-scaffold.service.js +681 -0
  781. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -0
  782. package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +84 -0
  783. package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -0
  784. package/dist/src/services/registry/provider-module-vendor-packages.service.js +361 -0
  785. package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -0
  786. package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +107 -0
  787. package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -0
  788. package/dist/src/services/registry/provider-openapi-conformance.service.js +484 -0
  789. package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -0
  790. package/dist/src/services/registry/provider-probe.service.d.ts +84 -0
  791. package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -0
  792. package/dist/src/services/registry/provider-probe.service.js +230 -0
  793. package/dist/src/services/registry/provider-probe.service.js.map +1 -0
  794. package/dist/src/services/registry/provider-publication.service.d.ts +35 -0
  795. package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -0
  796. package/dist/src/services/registry/provider-publication.service.js +203 -0
  797. package/dist/src/services/registry/provider-publication.service.js.map +1 -0
  798. package/dist/src/services/registry/provider-vendor-registration.service.d.ts +73 -0
  799. package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -0
  800. package/dist/src/services/registry/provider-vendor-registration.service.js +88 -0
  801. package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -0
  802. package/dist/src/services/registry/provider-wiring.service.d.ts +21 -2
  803. package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
  804. package/dist/src/services/registry/provider-wiring.service.js +90 -16
  805. package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
  806. package/dist/src/services/registry/registry-command.utils.d.ts +19 -2
  807. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  808. package/dist/src/services/registry/registry-command.utils.js +35 -2
  809. package/dist/src/services/registry/registry-command.utils.js.map +1 -1
  810. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  811. package/dist/src/services/security/csp-sync.service.js +11 -30
  812. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  813. package/dist/src/services/website/website-look.service.d.ts +167 -0
  814. package/dist/src/services/website/website-look.service.d.ts.map +1 -0
  815. package/dist/src/services/website/website-look.service.js +430 -0
  816. package/dist/src/services/website/website-look.service.js.map +1 -0
  817. package/dist/src/services/website/website-structured-data-audit.service.d.ts +5 -0
  818. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  819. package/dist/src/services/website/website-structured-data-audit.service.js +20 -0
  820. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  821. package/dist/src/services/website/website-workspace.service.d.ts +16 -0
  822. package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
  823. package/dist/src/services/website/website-workspace.service.js +19 -2
  824. package/dist/src/services/website/website-workspace.service.js.map +1 -1
  825. package/framework-root-package.json +9 -2
  826. package/package.json +26 -19
  827. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +4 -11
  828. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +159 -5
  829. package/templates/infra/docker-images/platform/Dockerfile.platform-base +23 -5
  830. package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +6 -1
  831. package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +20 -0
  832. package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +110 -0
  833. package/templates/infra/k8s/internal/openbao/service.yaml.hbs +20 -0
  834. package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +23 -79
  835. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +21 -75
  836. package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +22 -75
  837. package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +27 -0
  838. package/templates/infra/registry-host/Caddyfile +33 -0
  839. package/templates/infra/registry-host/backup.sh +73 -0
  840. package/templates/infra/registry-host/docker-compose.yml +328 -0
  841. package/templates/infra/registry-host/restore-check.sh +43 -0
  842. package/templates/infra/registry-host/wildo-registry-backup.service +15 -0
  843. package/templates/infra/registry-host/wildo-registry-backup.timer +12 -0
  844. package/templates/saas/blueprints/b2b-saas/blueprint.json +26 -0
  845. package/templates/saas/blueprints/internal-tool/blueprint.json +47 -0
  846. package/templates/saas/blueprints/service-firm/blueprint.json +57 -0
  847. package/templates/saas/i18n/email/components/EmailFooter.tsx +5 -3
  848. package/templates/saas/i18n/email/components/labels.en.ts +14 -0
  849. package/templates/saas/i18n/email/components/labels.fr.ts +13 -0
  850. package/templates/saas/i18n/email/email-template-definitions.ts +13 -1
  851. package/templates/saas/i18n/email/index.ts +1 -1
  852. package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +2 -2
  853. package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +2 -2
  854. package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +2 -2
  855. package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +2 -2
  856. package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +2 -2
  857. package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/labels.en.ts +16 -0
  858. package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/labels.fr.ts +22 -0
  859. package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/template.tsx +57 -0
  860. package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +2 -2
  861. package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/labels.en.ts +17 -0
  862. package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/labels.fr.ts +23 -0
  863. package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/template.tsx +61 -0
  864. package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/labels.en.ts +17 -0
  865. package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/labels.fr.ts +23 -0
  866. package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/template.tsx +61 -0
  867. package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +2 -2
  868. package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +2 -2
  869. package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/labels.en.ts +17 -0
  870. package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/labels.fr.ts +23 -0
  871. package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/template.tsx +62 -0
  872. package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +2 -2
  873. package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +2 -2
  874. package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +2 -2
  875. package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +2 -2
  876. package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +2 -2
  877. package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +2 -2
  878. package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +2 -2
  879. package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +2 -2
  880. package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +2 -2
  881. package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +2 -2
  882. package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +2 -2
  883. package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +2 -2
  884. package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +2 -2
  885. package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +4 -4
  886. package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +4 -4
  887. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +4 -4
  888. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +4 -4
  889. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +4 -4
  890. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +4 -4
  891. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +4 -4
  892. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +4 -4
  893. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +4 -4
  894. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +4 -4
  895. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +4 -4
  896. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +4 -4
  897. package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +2 -2
  898. package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +2 -2
  899. package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +2 -2
  900. package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +2 -2
  901. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.en.ts +18 -0
  902. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +19 -0
  903. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/template.tsx +50 -0
  904. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.en.ts +18 -0
  905. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +19 -0
  906. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/template.tsx +50 -0
  907. package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +9 -5
  908. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/labels.en.ts +18 -0
  909. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/labels.fr.ts +21 -0
  910. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/template.tsx +58 -0
  911. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +2 -2
  912. package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +2 -2
  913. package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/labels.en.ts +20 -0
  914. package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/labels.fr.ts +22 -0
  915. package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/template.tsx +60 -0
  916. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/labels.en.ts +18 -0
  917. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/labels.fr.ts +21 -0
  918. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/template.tsx +58 -0
  919. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +2 -2
  920. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.users-custom/template.tsx +2 -2
  921. package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +2 -2
  922. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +2 -2
  923. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +2 -2
  924. package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/labels.en.ts +19 -0
  925. package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/labels.fr.ts +21 -0
  926. package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/template.tsx +63 -0
  927. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/labels.en.ts +18 -0
  928. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/labels.fr.ts +21 -0
  929. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/template.tsx +58 -0
  930. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +2 -2
  931. package/templates/saas/i18n/email/resources/organizationMembers/suspend.users-custom/template.tsx +2 -2
  932. package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +2 -2
  933. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +2 -2
  934. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +2 -2
  935. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/labels.en.ts +17 -0
  936. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/labels.fr.ts +23 -0
  937. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/template.tsx +63 -0
  938. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/labels.en.ts +17 -0
  939. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/labels.fr.ts +23 -0
  940. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/template.tsx +63 -0
  941. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +2 -2
  942. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +2 -2
  943. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/labels.en.ts +17 -0
  944. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/labels.fr.ts +23 -0
  945. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/template.tsx +62 -0
  946. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/labels.en.ts +17 -0
  947. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/labels.fr.ts +23 -0
  948. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/template.tsx +62 -0
  949. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +2 -2
  950. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +2 -2
  951. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +2 -2
  952. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +2 -2
  953. package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/labels.en.ts +19 -0
  954. package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/labels.fr.ts +25 -0
  955. package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/template.tsx +72 -0
  956. package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/labels.en.ts +25 -0
  957. package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/labels.fr.ts +25 -0
  958. package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/template.tsx +68 -0
  959. package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/labels.en.ts +19 -0
  960. package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/labels.fr.ts +22 -0
  961. package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/template.tsx +66 -0
  962. package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/labels.en.ts +18 -0
  963. package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/labels.fr.ts +21 -0
  964. package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/template.tsx +63 -0
  965. package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/labels.en.ts +18 -0
  966. package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/labels.fr.ts +21 -0
  967. package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/template.tsx +62 -0
  968. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/labels.en.ts +18 -0
  969. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/labels.fr.ts +21 -0
  970. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/template.tsx +55 -0
  971. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/labels.en.ts +17 -0
  972. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/labels.fr.ts +20 -0
  973. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/template.tsx +53 -0
  974. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/labels.en.ts +19 -0
  975. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/labels.fr.ts +22 -0
  976. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/template.tsx +63 -0
  977. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/labels.en.ts +19 -0
  978. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/labels.fr.ts +22 -0
  979. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/template.tsx +65 -0
  980. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/labels.en.ts +19 -0
  981. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/labels.fr.ts +22 -0
  982. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/template.tsx +61 -0
  983. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/labels.en.ts +20 -0
  984. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/labels.fr.ts +23 -0
  985. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/template.tsx +66 -0
  986. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/labels.en.ts +18 -0
  987. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/labels.fr.ts +21 -0
  988. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/template.tsx +56 -0
  989. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/labels.en.ts +18 -0
  990. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/labels.fr.ts +21 -0
  991. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/template.tsx +63 -0
  992. package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/labels.en.ts +19 -0
  993. package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/labels.fr.ts +22 -0
  994. package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/template.tsx +66 -0
  995. package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/labels.en.ts +19 -0
  996. package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/labels.fr.ts +22 -0
  997. package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/template.tsx +66 -0
  998. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/labels.en.ts +18 -0
  999. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/labels.fr.ts +21 -0
  1000. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/template.tsx +58 -0
  1001. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/labels.en.ts +18 -0
  1002. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/labels.fr.ts +21 -0
  1003. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/template.tsx +61 -0
  1004. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/labels.en.ts +18 -0
  1005. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/labels.fr.ts +21 -0
  1006. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/template.tsx +58 -0
  1007. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/labels.en.ts +18 -0
  1008. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/labels.fr.ts +21 -0
  1009. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/template.tsx +61 -0
  1010. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/labels.en.ts +18 -0
  1011. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/labels.fr.ts +21 -0
  1012. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/template.tsx +58 -0
  1013. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/labels.en.ts +18 -0
  1014. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/labels.fr.ts +21 -0
  1015. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/template.tsx +61 -0
  1016. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/labels.en.ts +18 -0
  1017. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/labels.fr.ts +21 -0
  1018. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/template.tsx +56 -0
  1019. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/labels.en.ts +18 -0
  1020. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/labels.fr.ts +21 -0
  1021. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/template.tsx +59 -0
  1022. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/labels.en.ts +18 -0
  1023. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/labels.fr.ts +21 -0
  1024. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/template.tsx +57 -0
  1025. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/labels.en.ts +18 -0
  1026. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/labels.fr.ts +21 -0
  1027. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/template.tsx +59 -0
  1028. package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/labels.en.ts +19 -0
  1029. package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/labels.fr.ts +22 -0
  1030. package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/template.tsx +66 -0
  1031. package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/labels.en.ts +19 -0
  1032. package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/labels.fr.ts +22 -0
  1033. package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/template.tsx +66 -0
  1034. package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/labels.en.ts +22 -0
  1035. package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/labels.fr.ts +25 -0
  1036. package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/template.tsx +73 -0
  1037. package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/labels.en.ts +19 -0
  1038. package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/labels.fr.ts +22 -0
  1039. package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/template.tsx +64 -0
  1040. package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/labels.en.ts +19 -0
  1041. package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/labels.fr.ts +22 -0
  1042. package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/template.tsx +64 -0
  1043. package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/labels.en.ts +19 -0
  1044. package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/labels.fr.ts +22 -0
  1045. package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/template.tsx +64 -0
  1046. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/labels.en.ts +19 -0
  1047. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/labels.fr.ts +22 -0
  1048. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/template.tsx +65 -0
  1049. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/labels.en.ts +18 -0
  1050. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/labels.fr.ts +21 -0
  1051. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/template.tsx +56 -0
  1052. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.en.ts +21 -0
  1053. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +22 -0
  1054. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/template.tsx +56 -0
  1055. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.en.ts +23 -0
  1056. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +24 -0
  1057. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/template.tsx +60 -0
  1058. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.en.ts +21 -0
  1059. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +22 -0
  1060. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/template.tsx +56 -0
  1061. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.en.ts +23 -0
  1062. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +24 -0
  1063. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/template.tsx +60 -0
  1064. package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +2 -2
  1065. package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +2 -2
  1066. package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +2 -2
  1067. package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +2 -2
  1068. package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +2 -2
  1069. package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +2 -2
  1070. package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +2 -2
  1071. package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/labels.en.ts +26 -0
  1072. package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/labels.fr.ts +29 -0
  1073. package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/template.tsx +79 -0
  1074. package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +2 -2
  1075. package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +2 -2
  1076. package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +2 -2
  1077. package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +2 -2
  1078. package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +2 -2
  1079. package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +2 -2
  1080. package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +2 -2
  1081. package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +2 -2
  1082. package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/labels.en.ts +18 -0
  1083. package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/labels.fr.ts +21 -0
  1084. package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/template.tsx +58 -0
  1085. package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/labels.en.ts +17 -0
  1086. package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/labels.fr.ts +20 -0
  1087. package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/template.tsx +55 -0
  1088. package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +2 -2
  1089. package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/labels.en.ts +17 -0
  1090. package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/labels.fr.ts +20 -0
  1091. package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/template.tsx +55 -0
  1092. package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/labels.en.ts +20 -0
  1093. package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/labels.fr.ts +23 -0
  1094. package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/template.tsx +49 -0
  1095. package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/labels.en.ts +19 -0
  1096. package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/labels.fr.ts +22 -0
  1097. package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/template.tsx +48 -0
  1098. package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/labels.en.ts +19 -0
  1099. package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/labels.fr.ts +22 -0
  1100. package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/template.tsx +48 -0
  1101. package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/labels.en.ts +19 -0
  1102. package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/labels.fr.ts +22 -0
  1103. package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/template.tsx +48 -0
  1104. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/labels.en.ts +20 -0
  1105. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/labels.fr.ts +23 -0
  1106. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/template.tsx +49 -0
  1107. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/labels.en.ts +19 -0
  1108. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/labels.fr.ts +22 -0
  1109. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/template.tsx +48 -0
  1110. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/labels.en.ts +18 -0
  1111. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/labels.fr.ts +21 -0
  1112. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/template.tsx +60 -0
  1113. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/labels.en.ts +19 -0
  1114. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/labels.fr.ts +22 -0
  1115. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/template.tsx +63 -0
  1116. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/labels.en.ts +19 -0
  1117. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/labels.fr.ts +22 -0
  1118. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/template.tsx +63 -0
  1119. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/labels.en.ts +18 -0
  1120. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/labels.fr.ts +21 -0
  1121. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/template.tsx +60 -0
  1122. package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/labels.en.ts +18 -0
  1123. package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/labels.fr.ts +21 -0
  1124. package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/template.tsx +60 -0
  1125. package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/labels.en.ts +20 -0
  1126. package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/labels.fr.ts +23 -0
  1127. package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/template.tsx +60 -0
  1128. package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/labels.en.ts +18 -0
  1129. package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/labels.fr.ts +21 -0
  1130. package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/template.tsx +60 -0
  1131. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.en.ts +17 -0
  1132. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +18 -0
  1133. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/template.tsx +48 -0
  1134. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.en.ts +17 -0
  1135. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +18 -0
  1136. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/template.tsx +48 -0
  1137. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.en.ts +20 -0
  1138. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +21 -0
  1139. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/template.tsx +54 -0
  1140. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.en.ts +22 -0
  1141. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +23 -0
  1142. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/template.tsx +58 -0
  1143. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.en.ts +20 -0
  1144. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +21 -0
  1145. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/template.tsx +54 -0
  1146. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.en.ts +22 -0
  1147. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +23 -0
  1148. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/template.tsx +58 -0
  1149. package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +2 -2
  1150. package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +2 -2
  1151. package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +2 -2
  1152. package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +7 -7
  1153. package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +2 -2
  1154. package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +2 -2
  1155. package/templates/saas/i18n/email/resources/users/reactivate_user.application-administrator/template.tsx +2 -2
  1156. package/templates/saas/i18n/email/resources/users/reactivate_user.users-custom/template.tsx +2 -2
  1157. package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +2 -2
  1158. package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +2 -2
  1159. package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +2 -2
  1160. package/templates/saas/i18n/email/resources/users/suspend_user.users-custom/template.tsx +2 -2
  1161. package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +2 -2
  1162. package/templates/saas/i18n/email/resources/users/unsuspend_user.users-custom/template.tsx +2 -2
  1163. package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +2 -2
  1164. package/templates/saas/i18n/email/system/new-device-login/labels.en.ts +6 -8
  1165. package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +6 -8
  1166. package/templates/saas/i18n/email/system/new-device-login/template.tsx +25 -26
  1167. package/templates/saas/i18n/email/system/operation-approval-ended/labels.en.ts +40 -0
  1168. package/templates/saas/i18n/email/system/operation-approval-ended/labels.fr.ts +43 -0
  1169. package/templates/saas/i18n/email/system/operation-approval-ended/template.tsx +72 -0
  1170. package/templates/saas/i18n/email/system/relationship-invitation/labels.en.ts +18 -0
  1171. package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +22 -0
  1172. package/templates/saas/i18n/email/system/relationship-invitation/template.tsx +66 -0
  1173. package/templates/saas/i18n/email/system/security-alert/labels.en.ts +5 -0
  1174. package/templates/saas/i18n/email/system/security-alert/labels.fr.ts +13 -8
  1175. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -2
  1176. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -2
  1177. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.ts +5 -5
  1178. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.fr.ts +5 -5
  1179. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_SIDEBAR.en.ts +3 -1
  1180. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_SIDEBAR.fr.ts +3 -1
  1181. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_STATUS_BAR.en.ts +1 -1
  1182. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_STATUS_BAR.fr.ts +1 -1
  1183. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +6 -2
  1184. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +6 -2
  1185. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_UTILITY_PANEL.en.ts +0 -1
  1186. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_UTILITY_PANEL.fr.ts +0 -1
  1187. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS.en.ts +28 -0
  1188. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS.fr.ts +28 -0
  1189. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +55 -0
  1190. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +55 -0
  1191. package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +47 -10
  1192. package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +47 -10
  1193. package/templates/saas/i18n/engine/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.ts +12 -1
  1194. package/templates/saas/i18n/engine/components/APP_LAYOUTS_INVITATIONS_SETTINGS.fr.ts +12 -1
  1195. package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +38 -0
  1196. package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +38 -0
  1197. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.en.ts +11 -1
  1198. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +11 -1
  1199. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SETTINGS_HUB.en.ts +2 -1
  1200. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SETTINGS_HUB.fr.ts +2 -1
  1201. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +1 -9
  1202. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +1 -9
  1203. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ACTOR.en.ts +5 -10
  1204. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ACTOR.fr.ts +5 -10
  1205. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_AGENT_CONFIG.en.ts +1 -1
  1206. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.ts +1 -1
  1207. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +28 -9
  1208. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +28 -9
  1209. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.ts +1 -1
  1210. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.fr.ts +1 -1
  1211. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION.en.ts +1 -1
  1212. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION.fr.ts +1 -1
  1213. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +92 -0
  1214. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +92 -0
  1215. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DECISION.en.ts +1 -1
  1216. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DECISION.fr.ts +1 -1
  1217. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DIFF_BLOCK.en.ts +5 -5
  1218. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DIFF_BLOCK.fr.ts +5 -5
  1219. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.ts +4 -7
  1220. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_PLAN.fr.ts +4 -7
  1221. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +21 -0
  1222. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +21 -0
  1223. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.ts +2 -9
  1224. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_EXECUTION.fr.ts +2 -9
  1225. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_NODE.en.ts +1 -9
  1226. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_NODE.fr.ts +1 -9
  1227. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_GRAPH_VIEWER.en.ts +29 -0
  1228. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_GRAPH_VIEWER.fr.ts +29 -0
  1229. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.ts +3 -2
  1230. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_SYSTEM_CATALOG.fr.ts +3 -2
  1231. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.ts +1 -1
  1232. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_PRICING_TABLE.fr.ts +1 -1
  1233. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.ts +5 -4
  1234. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.fr.ts +5 -4
  1235. package/templates/saas/i18n/engine/components/LOW_LEVEL_CHIPS_INPUT.en.ts +14 -0
  1236. package/templates/saas/i18n/engine/components/LOW_LEVEL_CHIPS_INPUT.fr.ts +14 -0
  1237. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -3
  1238. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -3
  1239. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATEPICKER.en.ts +11 -0
  1240. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATEPICKER.fr.ts +11 -0
  1241. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_PICKER.en.ts +11 -0
  1242. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_PICKER.fr.ts +11 -0
  1243. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.ts +2 -1
  1244. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_RANGE_PICKER.fr.ts +2 -1
  1245. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATE_RANGE_PICKER.en.ts +11 -0
  1246. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATE_RANGE_PICKER.fr.ts +11 -0
  1247. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.ts +1 -1
  1248. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE.fr.ts +1 -1
  1249. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.ts +1 -1
  1250. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.fr.ts +1 -1
  1251. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.ts +1 -1
  1252. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.fr.ts +1 -1
  1253. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_LIMIT_INDICATOR.en.ts +12 -0
  1254. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_LIMIT_INDICATOR.fr.ts +12 -0
  1255. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.ts +2 -2
  1256. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.fr.ts +2 -2
  1257. package/templates/saas/i18n/engine/components/LOW_LEVEL_FILE_UPLOAD.en.ts +1 -1
  1258. package/templates/saas/i18n/engine/components/LOW_LEVEL_FILE_UPLOAD.fr.ts +1 -1
  1259. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD.en.ts +14 -4
  1260. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD.fr.ts +14 -4
  1261. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.ts +1 -1
  1262. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_ADDRESS.fr.ts +1 -1
  1263. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_CODE.en.ts +1 -1
  1264. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_CODE.fr.ts +1 -1
  1265. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_DURATION.en.ts +11 -0
  1266. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_DURATION.fr.ts +11 -0
  1267. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_FILE.en.ts +5 -5
  1268. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_FILE.fr.ts +5 -5
  1269. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_MONEY.en.ts +11 -0
  1270. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_MONEY.fr.ts +11 -0
  1271. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_RANGE_MONEY.en.ts +11 -0
  1272. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_RANGE_MONEY.fr.ts +11 -0
  1273. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_MESSAGE.en.ts +6 -6
  1274. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_MESSAGE.fr.ts +6 -6
  1275. package/templates/saas/i18n/engine/components/LOW_LEVEL_SELECT_MULTIPLE.en.ts +1 -1
  1276. package/templates/saas/i18n/engine/components/LOW_LEVEL_SELECT_MULTIPLE.fr.ts +1 -1
  1277. package/templates/saas/i18n/engine/components/LOW_LEVEL_STEPPER.en.ts +12 -0
  1278. package/templates/saas/i18n/engine/components/LOW_LEVEL_STEPPER.fr.ts +12 -0
  1279. package/templates/saas/i18n/engine/components/LOW_LEVEL_TIME_RANGE_PICKER.en.ts +2 -1
  1280. package/templates/saas/i18n/engine/components/LOW_LEVEL_TIME_RANGE_PICKER.fr.ts +2 -1
  1281. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_CHAT_IDENTITY_LINK.en.ts +31 -0
  1282. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_CHAT_IDENTITY_LINK.fr.ts +31 -0
  1283. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_LEGAL_NOTICE.en.ts +29 -0
  1284. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_LEGAL_NOTICE.fr.ts +29 -0
  1285. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +5 -1
  1286. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +5 -1
  1287. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_INVITATION.en.ts +2 -2
  1288. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_INVITATION.fr.ts +2 -2
  1289. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.ts +2 -2
  1290. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.fr.ts +2 -2
  1291. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_REGISTER.en.ts +2 -2
  1292. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_REGISTER.fr.ts +2 -2
  1293. package/templates/saas/i18n/engine/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.ts +5 -2
  1294. package/templates/saas/i18n/engine/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.fr.ts +5 -2
  1295. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_ACTION.en.ts +2 -1
  1296. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_ACTION.fr.ts +3 -2
  1297. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_CREATE.en.ts +3 -1
  1298. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_CREATE.fr.ts +3 -1
  1299. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +4 -5
  1300. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +4 -5
  1301. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.ts +5 -5
  1302. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.fr.ts +6 -6
  1303. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.ts +6 -5
  1304. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.fr.ts +6 -5
  1305. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_RECORD_SHARING.en.ts +29 -0
  1306. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_RECORD_SHARING.fr.ts +29 -0
  1307. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_SEARCH.en.ts +0 -1
  1308. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_SEARCH.fr.ts +0 -1
  1309. package/templates/saas/i18n/engine/components/guidance_checklist.en.ts +1 -1
  1310. package/templates/saas/i18n/engine/components/guidance_checklist.fr.ts +1 -1
  1311. package/templates/saas/i18n/engine/components/progression_milestone_tracker.en.ts +1 -1
  1312. package/templates/saas/i18n/engine/components/progression_milestone_tracker.fr.ts +1 -1
  1313. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +334 -0
  1314. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +334 -0
  1315. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +397 -0
  1316. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +397 -0
  1317. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -0
  1318. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +8 -0
  1319. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +55 -0
  1320. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +55 -0
  1321. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +16 -0
  1322. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +16 -0
  1323. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +5 -2
  1324. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +35 -32
  1325. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +20 -4
  1326. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +20 -4
  1327. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +405 -21
  1328. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +405 -21
  1329. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +8 -0
  1330. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -0
  1331. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +104 -0
  1332. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +104 -0
  1333. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +16 -0
  1334. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +16 -0
  1335. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +5 -2
  1336. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +23 -20
  1337. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -0
  1338. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +14 -0
  1339. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +43 -24
  1340. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +43 -24
  1341. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +8 -0
  1342. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +8 -0
  1343. package/templates/saas/i18n/engine/resources/applications.en.ts +336 -0
  1344. package/templates/saas/i18n/engine/resources/applications.fr.ts +336 -0
  1345. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +39 -7
  1346. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +39 -7
  1347. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +486 -0
  1348. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +486 -0
  1349. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +271 -0
  1350. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +271 -0
  1351. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +10 -2
  1352. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +10 -2
  1353. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +140 -11
  1354. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +140 -11
  1355. package/templates/saas/i18n/engine/resources/documentSequenceCounters.en.ts +69 -0
  1356. package/templates/saas/i18n/engine/resources/documentSequenceCounters.fr.ts +69 -0
  1357. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +46 -1
  1358. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +46 -1
  1359. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +16 -0
  1360. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +16 -0
  1361. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +72 -48
  1362. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +72 -48
  1363. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +2 -1
  1364. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +2 -1
  1365. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +26 -3
  1366. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +26 -3
  1367. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +160 -0
  1368. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +160 -0
  1369. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +180 -2
  1370. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +180 -2
  1371. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +24 -0
  1372. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +24 -0
  1373. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +422 -0
  1374. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +422 -0
  1375. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +153 -7
  1376. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +153 -7
  1377. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +2 -1
  1378. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +2 -1
  1379. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +23 -0
  1380. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +23 -0
  1381. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +8 -0
  1382. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +8 -0
  1383. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +8 -0
  1384. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +8 -0
  1385. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +8 -0
  1386. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +8 -0
  1387. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +478 -0
  1388. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +478 -0
  1389. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +16 -0
  1390. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +16 -0
  1391. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +5 -2
  1392. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +36 -33
  1393. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +16 -0
  1394. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +16 -0
  1395. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +153 -0
  1396. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +153 -0
  1397. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +1 -1
  1398. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -9
  1399. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -9
  1400. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +405 -21
  1401. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +405 -21
  1402. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +8 -0
  1403. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -0
  1404. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +104 -0
  1405. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +104 -0
  1406. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +16 -0
  1407. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +16 -0
  1408. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +13 -5
  1409. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +31 -23
  1410. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +5 -2
  1411. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +18 -15
  1412. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +19 -0
  1413. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +19 -0
  1414. package/templates/saas/i18n/engine/resources/{serviceProviderRelationships.en.ts → organizationRelationships.en.ts} +220 -37
  1415. package/templates/saas/i18n/engine/resources/{serviceProviderRelationships.fr.ts → organizationRelationships.fr.ts} +204 -21
  1416. package/templates/saas/i18n/engine/resources/{serviceEngagements.en.ts → organizationRepresentations.en.ts} +97 -84
  1417. package/templates/saas/i18n/engine/resources/{serviceEngagements.fr.ts → organizationRepresentations.fr.ts} +75 -62
  1418. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +8 -0
  1419. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +8 -0
  1420. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +14 -0
  1421. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +14 -0
  1422. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +68 -49
  1423. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +68 -49
  1424. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -2
  1425. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +9 -9
  1426. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +8 -0
  1427. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +8 -0
  1428. package/templates/saas/i18n/engine/resources/organizations.en.ts +71 -11
  1429. package/templates/saas/i18n/engine/resources/organizations.fr.ts +71 -11
  1430. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +42 -0
  1431. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +42 -0
  1432. package/templates/saas/i18n/engine/resources/promotions.en.ts +28 -0
  1433. package/templates/saas/i18n/engine/resources/promotions.fr.ts +28 -0
  1434. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +50 -0
  1435. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +50 -0
  1436. package/templates/saas/i18n/engine/resources/{serviceProviderCapabilityGrants.en.ts → relationshipCapabilityGrants.en.ts} +19 -3
  1437. package/templates/saas/i18n/engine/resources/{serviceProviderCapabilityGrants.fr.ts → relationshipCapabilityGrants.fr.ts} +40 -24
  1438. package/templates/saas/i18n/engine/resources/{serviceProviderActivityFeed.en.ts → relationshipInvitations.en.ts} +137 -55
  1439. package/templates/saas/i18n/engine/resources/{serviceProviderActivityFeed.fr.ts → relationshipInvitations.fr.ts} +137 -55
  1440. package/templates/saas/i18n/engine/resources/{clientMailboxes.en.ts → relationshipMailboxes.en.ts} +35 -35
  1441. package/templates/saas/i18n/engine/resources/{clientMailboxes.fr.ts → relationshipMailboxes.fr.ts} +39 -39
  1442. package/templates/saas/i18n/engine/resources/{serviceEngagementAssignments.en.ts → representativeAssignments.en.ts} +43 -6
  1443. package/templates/saas/i18n/engine/resources/{serviceEngagementAssignments.fr.ts → representativeAssignments.fr.ts} +43 -6
  1444. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +16 -0
  1445. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +16 -0
  1446. package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +16 -0
  1447. package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +16 -0
  1448. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +405 -21
  1449. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +405 -21
  1450. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +8 -0
  1451. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -0
  1452. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +19 -0
  1453. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +19 -0
  1454. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -0
  1455. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -0
  1456. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -0
  1457. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -0
  1458. package/templates/saas/i18n/engine/resources/user_self.en.ts +112 -38
  1459. package/templates/saas/i18n/engine/resources/user_self.fr.ts +125 -51
  1460. package/templates/saas/i18n/engine/resources/users.en.ts +15 -15
  1461. package/templates/saas/i18n/engine/resources/users.fr.ts +11 -11
  1462. package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +27 -11
  1463. package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +27 -3
  1464. package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +134 -0
  1465. package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +134 -0
  1466. package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.en.ts +134 -0
  1467. package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +134 -0
  1468. package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +134 -0
  1469. package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +134 -0
  1470. package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +27 -11
  1471. package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +27 -3
  1472. package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +27 -11
  1473. package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +27 -3
  1474. package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +8 -0
  1475. package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +8 -0
  1476. package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +24 -0
  1477. package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +24 -0
  1478. package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +209 -0
  1479. package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +209 -0
  1480. package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +702 -0
  1481. package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +702 -0
  1482. package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +120 -0
  1483. package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +120 -0
  1484. package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +174 -0
  1485. package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +174 -0
  1486. package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +32 -0
  1487. package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +32 -0
  1488. package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +64 -0
  1489. package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +64 -0
  1490. package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +183 -0
  1491. package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +183 -0
  1492. package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +254 -0
  1493. package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +254 -0
  1494. package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +32 -0
  1495. package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +32 -0
  1496. package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +40 -0
  1497. package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +40 -0
  1498. package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +58 -34
  1499. package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +58 -26
  1500. package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +40 -0
  1501. package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +40 -0
  1502. package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +96 -0
  1503. package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +96 -0
  1504. package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +736 -0
  1505. package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +736 -0
  1506. package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +40 -0
  1507. package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +40 -0
  1508. package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +232 -0
  1509. package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +232 -0
  1510. package/templates/saas/scenarios/add-3d-layout/scenario.json +2 -2
  1511. package/templates/saas/scenarios/add-custom-operation/files/backend-api/src/modules/__moduleDir__/resources/__resourceDir__/__resourceDir__.__operationIdentifier__.default.operation.ts.hbs +1 -1
  1512. package/templates/saas/scenarios/add-custom-operation/scenario.json +1 -0
  1513. package/templates/saas/scenarios/add-environment/files/infrastructure/__envName__/wildo.infra.remote.config.ts.hbs +4 -4
  1514. package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +1 -1
  1515. package/templates/saas/scenarios/add-file-picker-provider/scenario.json +2 -0
  1516. package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +37 -10
  1517. package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +6 -2
  1518. package/templates/saas/scenarios/add-locale/scenario.json +5 -3
  1519. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +6 -2
  1520. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.bridge.tsx.hbs +2 -0
  1521. package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +16 -44
  1522. package/templates/saas/scenarios/add-marketing-page/scenario.json +72 -18
  1523. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +4 -4
  1524. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/application-initialization.ts.hbs +6 -1
  1525. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/wildo.minion.config.ts.hbs +4 -4
  1526. package/templates/saas/scenarios/add-minion/scenario.json +3 -3
  1527. package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-shell.module.frontend.ts.hbs +2 -0
  1528. package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/index.ts.hbs +2 -2
  1529. package/templates/saas/scenarios/add-module/scenario.json +7 -0
  1530. package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +1 -1
  1531. package/templates/saas/scenarios/add-resource/files/specifications/src/modules/__moduleId__/resources/__resourceDir__.resource.specification.ts.hbs +7 -7
  1532. package/templates/saas/scenarios/add-resource/scenario.json +2 -1
  1533. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +10 -4
  1534. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +4 -3
  1535. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/substitute-api-origin.mjs +64 -0
  1536. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +11 -1
  1537. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +2 -2
  1538. package/templates/saas/scenarios/add-technical-doc/scenario.json +2 -2
  1539. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +49 -6
  1540. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  1541. package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +8 -6
  1542. package/templates/saas/scenarios/add-website/files/website/src/brand-theme.ts +66 -0
  1543. package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +27 -14
  1544. package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +15 -100
  1545. package/templates/saas/scenarios/add-website/files/website/src/components/index.ts +9 -7
  1546. package/templates/saas/scenarios/add-website/files/website/src/content/llms.txt.hbs +3 -3
  1547. package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +19 -9
  1548. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +6 -2
  1549. package/templates/saas/scenarios/add-website/files/website/src/pages/llms.txt.ts +3 -1
  1550. package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.bridge.tsx +3 -1
  1551. package/templates/saas/scenarios/add-website/files/website/src/sections/index.ts +5 -9
  1552. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +22 -58
  1553. package/templates/saas/scenarios/add-website/files/website/src/site-menu.ts +47 -0
  1554. package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +53 -404
  1555. package/templates/saas/scenarios/add-website/files/website/src/website-root.config.ts.hbs +34 -45
  1556. package/templates/saas/scenarios/add-website/files/website/wildo.website.config.ts.hbs +5 -4
  1557. package/templates/saas/scenarios/add-website/scenario.json +1 -1
  1558. package/templates/saas/scenarios/add-website-section/scenario.json +17 -7
  1559. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +2 -2
  1560. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/wildo.worker.config.ts.hbs +3 -3
  1561. package/templates/saas/scenarios/add-worker-node/scenario.json +1 -1
  1562. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +1 -1
  1563. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +9 -2
  1564. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/wildo.worker.config.ts.hbs +3 -3
  1565. package/templates/saas/skeleton/CLAUDE.md.hbs +8 -0
  1566. package/templates/saas/skeleton/backend-api/Dockerfile +2 -1
  1567. package/templates/saas/skeleton/backend-api/src/bootstrap-config.ts +13 -4
  1568. package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +13 -1
  1569. package/templates/saas/skeleton/backend-api/src/engine/email/index.ts +1 -1
  1570. package/templates/saas/skeleton/backend-api/src/engine/index.ts +2 -1
  1571. package/templates/saas/skeleton/backend-api/src/modules-registry.backend.ts.hbs +5 -0
  1572. package/templates/saas/skeleton/frontend/src/config/app-shell.config.ts +2 -13
  1573. package/templates/saas/skeleton/frontend/src/config/design-system.config.ts +35 -125
  1574. package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +14 -12
  1575. package/templates/saas/skeleton/frontend/src/index.css.hbs +145 -130
  1576. package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +2 -0
  1577. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +35 -0
  1578. package/templates/saas/skeleton/gitignore +1 -0
  1579. package/templates/saas/skeleton/shared-lib/src/engine/roles.ts +10 -2
  1580. package/templates/saas/skeleton/specifications/src/companion-exports.ts +28 -3
  1581. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +53 -20
  1582. package/wildo-framework.info.json +1 -1
  1583. package/dist/src/services/registry/registry-config-resolver.service.d.ts +0 -62
  1584. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +0 -1
  1585. package/dist/src/services/registry/registry-config-resolver.service.js +0 -148
  1586. package/dist/src/services/registry/registry-config-resolver.service.js.map +0 -1
  1587. package/templates/saas/i18n/email/system/organization-invitation/labels.en.ts +0 -15
  1588. package/templates/saas/i18n/email/system/organization-invitation/labels.fr.ts +0 -21
  1589. package/templates/saas/i18n/email/system/organization-invitation/template.tsx +0 -66
  1590. package/templates/saas/i18n/email/system/payment-failed/labels.en.ts +0 -16
  1591. package/templates/saas/i18n/email/system/payment-failed/labels.fr.ts +0 -21
  1592. package/templates/saas/i18n/email/system/payment-failed/template.tsx +0 -59
  1593. package/templates/saas/i18n/email/system/subscription-cancelled/labels.en.ts +0 -15
  1594. package/templates/saas/i18n/email/system/subscription-cancelled/labels.fr.ts +0 -20
  1595. package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +0 -56
  1596. package/templates/saas/i18n/email/system/subscription-confirmation/labels.en.ts +0 -14
  1597. package/templates/saas/i18n/email/system/subscription-confirmation/labels.fr.ts +0 -21
  1598. package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +0 -60
  1599. package/templates/saas/i18n/engine/resources/applicationScimTokens.en.ts +0 -240
  1600. package/templates/saas/i18n/engine/resources/applicationScimTokens.fr.ts +0 -345
  1601. package/templates/saas/i18n/engine/resources/serviceProviderActivityFeedSettings.en.ts +0 -209
  1602. package/templates/saas/i18n/engine/resources/serviceProviderActivityFeedSettings.fr.ts +0 -209
  1603. package/templates/saas/i18n/engine/resources/wildoApplication.en.ts +0 -590
  1604. package/templates/saas/i18n/engine/resources/wildoApplication.fr.ts +0 -574
  1605. package/templates/saas/i18n/engine/resources/wildoApplicationVersions.en.ts +0 -293
  1606. package/templates/saas/i18n/engine/resources/wildoApplicationVersions.fr.ts +0 -293
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend-look.service.js","sourceRoot":"","sources":["../../../../../../src/services/frontend/frontend-look.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA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C,QAAQ,CAAC,qDAAqD,CAAC,CAAkB,CAAC;QACnH,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;IAC7G,CAAC;YAAS,CAAC;QACT,IAAI,IAAI,IAAI,QAAQ;YAAE,MAAM,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACpD,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC","sourcesContent":["/**\n * `wildo frontend look` — sign in to the locally running application and photograph one surface, so the\n * person or coding agent who just changed it can SEE it (2026-09-30).\n *\n * ## Why this exists\n *\n * A coding agent edits a resource's `ui-behavior` and is told, by the `resource-ui-behavior` skill, to\n * check the result against `references/visual-quality-rubric.md`. It had no way to: the agent has no\n * browser, and a typecheck says nothing about whether a record reads well. This is the missing eye. It\n * renders the surface headlessly — the listing, then optionally the first record and its edit form —\n * and writes the screenshots to disk, where the agent reads them back as images.\n *\n * It is DELIBERATELY only a camera. The machine-checkable invariants of a good record (label voice\n * against value voice, no raw ISO date, no platform-drawn select, no sideways scroll) are the\n * framework's own regression lane, `browser-record-specimen`, which knows its specimen's data. Here the\n * data is whatever the application holds, so the judgement belongs to the reader with the rubric.\n *\n * ## Where Playwright and Chromium come from\n *\n * Nothing here is a dependency of the CLI. A camera that every application install pays for, used by\n * the few runs that change a surface, is the wrong trade; and the outcome of not having it is a\n * refusal that names the remedy, never a blocked task (`application-creation-directive.md`: a step that\n * cannot run is MARKED, not a precondition). The module is resolved, in order, from:\n *\n * 1. the APPLICATION (`playwright` among its own dependencies) — the normal place for an application\n * that wants the look step;\n * 2. the FRAMEWORK CHECKOUT, when the CLI runs from one: `platform/testing/browser-surface` declares\n * it, the same source `scripts/presets-3d-live-probe/drive.mjs` uses.\n *\n * Chromium is Playwright's own download (`playwright install chromium`, or\n * `pnpm setup:playwright-browsers` in the framework checkout). A missing browser is the same refusal.\n *\n * ## Who signs in\n *\n * The application's local administrator from its own `infrastructure/local/secrets/secrets.json`, then,\n * in the framework checkout, the platform administrator — the order `.claude/rules/local-test-credentials.md`\n * records, because which one a hosted application accepts depends on how it was registered. The values\n * are read at run time, typed into the local browser, and written nowhere: not to the output, not to a\n * file. Every error this camera reports is reduced to its first line and scrubbed of every candidate\n * password ({@link describeLookError}): Playwright appends a call log to its errors that quotes the value\n * it was typing (`fill(\"…\")`), so an unscrubbed failure during the password step printed the password.\n * The password is typed only into the application's own origin, and a sign-in that asks for a second\n * factor, or offers no password step, is refused rather than worked around. The session is signed out\n * at the end, so repeated looks do not fill the administrator's session cap.\n *\n * ## What each ending means\n *\n * A look that cannot be taken is a REFUSAL (exit 2) that names its repair: no camera, no frontend (it\n * does not answer, or painted nothing), not signed in, the sign-in unanswered, no current organization,\n * a path parameter it cannot fill, or a path the application has no page for (it rendered its own error\n * page). Anything else is a failed look (exit 1). A step that was asked for and could not be taken (no\n * row to open, no edit form) is listed in `notTaken`, and the command exits 2 for it too.\n */\nimport { createRequire } from 'node:module';\nimport { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { AppFrontendType } from '@wildo-ai/platform-config-lib';\nimport { loadAppLocalRuntimeServiceAddresses } from '~wildo-cli/services/application/app-local-runtime-addresses.service';\nimport { AppRuntimeTargetsService } from '~wildo-cli/services/application/app-runtime-targets.service';\n\n// ── The slice of Playwright this camera uses, typed structurally: the CLI does not depend on it ──\n\nexport interface LookLocator {\n first(): LookLocator;\n locator(selector: string): LookLocator;\n filter(options: { visible: boolean }): LookLocator;\n // semantic-literal-boundary: Playwright's own `waitFor` states, typed structurally so the CLI does not depend on Playwright\n waitFor(options: { state: 'visible' | 'attached'; timeout: number }): Promise<void>;\n click(options?: { timeout?: number }): Promise<void>;\n fill(value: string): Promise<void>;\n count(): Promise<number>;\n getAttribute(name: string): Promise<string | null>;\n}\n/** The one response this camera reads: whether the sign-in's identify step was answered, and below 500. */\nexport interface LookResponse {\n url(): string;\n status(): number;\n}\nexport interface LookPage {\n goto(url: string, options?: { waitUntil?: 'domcontentloaded'; timeout?: number }): Promise<unknown>;\n locator(selector: string): LookLocator;\n waitForURL(predicate: (url: URL) => boolean, options: { timeout: number }): Promise<void>;\n waitForResponse(predicate: (response: LookResponse) => boolean, options: { timeout: number }): Promise<LookResponse>;\n waitForTimeout(ms: number): Promise<void>;\n evaluate(expression: string): Promise<unknown>;\n screenshot(options: { path: string; fullPage?: boolean }): Promise<unknown>;\n url(): string;\n}\n/** The browser context options this camera sets: size, colour scheme, and a touch device for `--mobile`. */\nexport interface LookContextOptions {\n viewport: { width: number; height: number };\n colorScheme: LookColorScheme;\n hasTouch: boolean;\n isMobile: boolean;\n}\ninterface LookBrowser {\n newContext(options: LookContextOptions): Promise<{ newPage(): Promise<LookPage> }>;\n close(): Promise<void>;\n}\ninterface PlaywrightModule { chromium: { launch(options: { headless: boolean }): Promise<LookBrowser> } }\n\n/** The colour scheme the page is rendered in. Playwright's own values. */\nexport enum LookColorScheme {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\n/** The ways a look can end without a picture, each naming a different repair. */\nexport enum FrontendLookRefusal {\n /** Playwright or Chromium is not installed where this run can reach it. */\n NO_CAMERA = 'no_camera',\n /**\n * The application's frontend is not answering (the connection is refused, or nothing paints), or its\n * configuration declares none. Repair: start the application, then look again.\n */\n NO_FRONTEND = 'no_frontend',\n /**\n * A credential was answered and refused, the sign-in asked for a second factor, the account offers no\n * password step (SSO-only or passwordless), or the sign-in left the application for an identity provider.\n */\n NOT_SIGNED_IN = 'not_signed_in',\n /**\n * The sign-in form never moved past the email step, for any credential: the application's backend did\n * not answer. A different repair from a refused password — wait for the backend, do not touch credentials.\n * Measured 2026-10-01: a backend restart during a run read as \"no credential signed in\".\n */\n SIGN_IN_UNANSWERED = 'sign_in_unanswered',\n /** The path names `:organizationId` and the signed-in session settled on no current organization. */\n NO_ORGANIZATION = 'no_organization',\n /**\n * The path names a route parameter this camera cannot fill from the session — it fills\n * `:organizationId` and `:userId`. Repair: write the id into the path. Without this refusal the\n * parameter was sent literally and the camera photographed whatever that URL rendered.\n */\n UNRESOLVED_PATH = 'unresolved_path',\n /**\n * The application answered the path with its own error page (`[data-slot=\"error-display\"]`, carrying\n * the status), so there is nothing at that path to look at: a mistyped path, a resource with no\n * frontend surface, or one the administrator cannot open. Distinct from NO_FRONTEND: the application\n * is up — measured 2026-10-01, a 404 was waited on for 120 s and reported as \"not answering\".\n */\n NO_SUCH_PAGE = 'no_such_page',\n /**\n * A website look asked for a locale the site does not serve (`--locale de` on an English and French site). Repair:\n * name a locale the site's `wildo.website.config.ts` declares. Distinct from NO_FRONTEND, whose repair is to start\n * the application: the site is up, the request is wrong.\n */\n UNKNOWN_LOCALE = 'unknown_locale',\n}\n\nexport class FrontendLookRefusedError extends Error {\n constructor(public readonly refusal: FrontendLookRefusal, message: string) {\n super(message);\n this.name = 'FrontendLookRefusedError';\n }\n}\n\n/**\n * A look that failed part-way for a reason that is not a refusal (a crashed browser, a bug). Its message is\n * already scrubbed ({@link describeLookError}); report it as it is.\n */\nexport class FrontendLookFailedError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'FrontendLookFailedError';\n }\n}\n\nexport interface FrontendLookRequest {\n appRoot: string;\n /** The framework checkout when the CLI runs from one, else null. */\n frameworkRoot: string | null;\n /**\n * Application path to open. `:organizationId` is filled from the signed-in session's current\n * organization and `:userId` from the signed-in user; any other `:parameter` is refused (UNRESOLVED_PATH).\n */\n path: string;\n /** Open the first record of the collection on that path. */\n openFirstRecord: boolean;\n /** Then open that record's edit form. Implies `openFirstRecord`. */\n openEdit: boolean;\n colorScheme: LookColorScheme;\n viewport: { width: number; height: number };\n /** Emulate a touch phone (`hasTouch` + `isMobile`), so touch-only behaviour is what the shot shows. */\n touch: boolean;\n /** ABSOLUTE directory to write the screenshots to. */\n outputDirectory: string;\n}\n\nexport interface FrontendLookShot {\n /** Which surface it shows: `surface`, `record` or `edit`. */\n surface: string;\n /** Absolute path of the PNG. */\n file: string;\n /** The page's URL when it was taken. */\n url: string;\n}\n\nexport interface FrontendLookResult {\n frontendUrl: string;\n colorScheme: string;\n /** What the document actually painted (`data-theme`), so a dark request that rendered light is visible. */\n paintedTheme: string | null;\n shots: FrontendLookShot[];\n /** Steps that were asked for and could not be taken (no row to open, no edit action), in plain words. */\n notTaken: string[];\n /**\n * Surfaces photographed only in part, because they were longer than the frames one look takes. The look\n * still happened — every surface asked for was seen — so this is a warning, never a reason to exit 2.\n */\n cut: string[];\n}\n\n/** One record in a collection, card or table row — the engine marks both (`ResourceListItemRenderer`). */\nconst LIST_ITEM_SELECTOR = '[data-slot=\"resource-list-item\"]';\n/** The record's edit verb, as the operation action bar renders it. */\nconst UPDATE_ACTION_SELECTOR = '[data-operation-id=\"update\"]';\n/** The application shell's content area: a page painted in the shell has it, its error page does not. */\nconst CONTENT_AREA_SELECTOR = '[data-component-area=\"content\"]';\n/** The application's own error page (and any in-page error display); it carries `data-status-code`. */\nconst ERROR_DISPLAY_SELECTOR = '[data-slot=\"error-display\"]';\n/**\n * A RESOURCE edit form — the engine's `FormLayout` root marks itself `data-slot=\"form-layout\"`. Not the bare\n * `form`: a listing's search box is one, and so is a chat composer, and the first form in the document passed\n * the wait at once while the \"edit\" frames showed the listing. Excluding only the search form left the\n * composer able to do the same.\n */\nconst EDIT_FORM_SELECTOR = '[data-slot=\"form-layout\"]';\n/**\n * How long the first paint may take. A development server transforms its modules on first request, and\n * after an engine source change that is measured in tens of seconds: the first run of this command after\n * one waited a minute and saw nothing, the second, warm, painted at once.\n */\nconst FIRST_PAINT_TIMEOUT_MS = 120_000;\n/** How long the session may take to settle on a current organization after sign-in. */\nconst CURRENT_ORGANIZATION_TIMEOUT_MS = 20_000;\n/** At most this many scrolled frames per surface: a pane longer than that is a finding, not a gap. */\nconst MAX_FRAMES_PER_SURFACE = 4;\n\n/** Load `playwright` as seen from one package manifest. Replaceable so a test can name what resolves. */\nexport type PlaywrightRequire = (fromManifest: string) => unknown;\nconst requirePlaywrightFrom: PlaywrightRequire = (fromManifest) => createRequire(fromManifest)('playwright');\n\n/** The manifests Playwright is resolved from, in order: the application, then the framework checkout. */\nexport function playwrightSources(appRoot: string, frameworkRoot: string | null): string[] {\n const sources = [join(appRoot, 'package.json')];\n if (frameworkRoot) sources.push(join(frameworkRoot, 'platform', 'testing', 'browser-surface', 'package.json'));\n return sources;\n}\n\nexport function loadPlaywright(appRoot: string, frameworkRoot: string | null, requireFrom: PlaywrightRequire = requirePlaywrightFrom): PlaywrightModule {\n for (const source of playwrightSources(appRoot, frameworkRoot)) {\n if (!existsSync(source)) continue;\n try {\n return requireFrom(source) as PlaywrightModule;\n } catch {\n // Not resolvable from this source; try the next one.\n }\n }\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_CAMERA,\n 'Playwright is not installed where this run can reach it. Add it to the application (`pnpm add -D -w playwright@1.58.2`, '\n + 'then `pnpm exec playwright install chromium`), or run from the framework checkout after `pnpm setup:playwright-browsers`.',\n );\n}\n\n/** Where the interactive frontend answers, and how it reaches its backend (for signing out). */\nexport interface LookFrontend {\n url: string;\n /** The frontend's `VITE_API_BASE_URL` and `VITE_FRONTEND_SERVICE_NAME`, when its `.env` declares them. */\n apiBaseUrl: string | null;\n serviceName: string | null;\n}\n\n/** Read one `KEY=value` from a dotenv file's text. */\nfunction dotenvValue(text: string, key: string): string | undefined {\n return text.match(new RegExp(`^${key}=(.*)$`, 'm'))?.[1]?.trim().replace(/^[\"']|[\"']$/g, '');\n}\n\n/** The interactive frontend: its generated runtime address, else its declared port; and its API base. */\nexport async function resolveInteractiveFrontend(appRoot: string): Promise<LookFrontend> {\n const target = await AppRuntimeTargetsService.resolve(appRoot, { environmentName: null });\n if (!target) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_FRONTEND,\n `No runtime target could be resolved from ${appRoot}/wildo.saas.config.ts — the configuration is missing or unreadable.`,\n );\n }\n const frontend = target.frontendServices.find((service) => service.frontendType === AppFrontendType.SAAS_APP);\n if (!frontend) {\n throw new FrontendLookRefusedError(FrontendLookRefusal.NO_FRONTEND, 'The application declares no interactive frontend service.');\n }\n const envPath = join(appRoot, frontend.path, '.env');\n const env = existsSync(envPath) ? readFileSync(envPath, 'utf8') : '';\n const apiBaseUrl = dotenvValue(env, 'VITE_API_BASE_URL')?.replace(/\\/+$/, '') ?? null;\n const serviceName = dotenvValue(env, 'VITE_FRONTEND_SERVICE_NAME') ?? null;\n const address = (await loadAppLocalRuntimeServiceAddresses(appRoot))?.[frontend.key];\n if (address?.url) return { url: address.url.replace(/\\/+$/, ''), apiBaseUrl, serviceName };\n if (frontend.defaultPort === undefined) {\n throw new FrontendLookRefusedError(FrontendLookRefusal.NO_FRONTEND, `The frontend service \"${frontend.key}\" has no local address or port.`);\n }\n return { url: `http://localhost:${frontend.defaultPort}`, apiBaseUrl, serviceName };\n}\n\n/** Which credential a candidate is. Remembered so the next look tries the one that signed in first. */\nexport enum LookCredentialSource {\n /** The application's own `infrastructure/local/secrets/secrets.json` administrator. */\n APPLICATION = 'application',\n /** The platform administrator (`platform-apps-manager/.env`), framework checkout only. */\n PLATFORM = 'platform',\n}\n\nexport interface LookSignInCandidate {\n source: LookCredentialSource;\n email: string;\n password: string;\n}\n\n/**\n * Where the camera remembers which SOURCE signed in last — never the credential. A hosted application\n * accepts one of the two; trying the refused one first on every run recorded one refused password per\n * look, which counts toward the account's lockout. Throwaway state under the gitignored `.wildo-saas/tmp/`.\n */\nexport function signInMemoryPath(appRoot: string): string {\n return join(appRoot, '.wildo-saas', 'tmp', 'look', 'sign-in-source.json');\n}\n\nfunction rememberedSource(appRoot: string): LookCredentialSource | null {\n try {\n const source = (JSON.parse(readFileSync(signInMemoryPath(appRoot), 'utf8')) as { source?: string }).source;\n return Object.values(LookCredentialSource).find((value) => value === source) ?? null;\n } catch {\n return null;\n }\n}\n\nfunction rememberSource(appRoot: string, source: LookCredentialSource): void {\n try {\n mkdirSync(dirname(signInMemoryPath(appRoot)), { recursive: true });\n writeFileSync(signInMemoryPath(appRoot), `${JSON.stringify({ source })}\\n`);\n } catch {\n // A memory that cannot be written costs one refused password next time, nothing more.\n }\n}\n\n/**\n * Local administrator credentials, in the order the local-credentials rule records — the application's\n * own, then the platform's — except that the source that signed in last goes first. Never printed.\n */\nexport function signInCandidates(appRoot: string, frameworkRoot: string | null): LookSignInCandidate[] {\n const candidates: LookSignInCandidate[] = [];\n const secretsPath = join(appRoot, 'infrastructure', 'local', 'secrets', 'secrets.json');\n if (existsSync(secretsPath)) {\n try {\n const admin = (JSON.parse(readFileSync(secretsPath, 'utf8')) as { admin?: { email?: string; password?: string } }).admin;\n if (admin?.email && admin.password) candidates.push({ source: LookCredentialSource.APPLICATION, email: admin.email, password: admin.password });\n } catch {\n // An unreadable secrets file leaves the next candidate.\n }\n }\n if (frameworkRoot) {\n const platformEnv = join(frameworkRoot, 'platform', 'platform-back-office', 'platform-apps-manager', '.env');\n if (existsSync(platformEnv)) {\n const env = readFileSync(platformEnv, 'utf8');\n const email = dotenvValue(env, 'ADMIN_EMAIL');\n const password = dotenvValue(env, 'ADMIN_PASSWORD');\n if (email && password && !candidates.some((c) => c.email === email && c.password === password)) {\n candidates.push({ source: LookCredentialSource.PLATFORM, email, password });\n }\n }\n }\n const remembered = rememberedSource(appRoot);\n return remembered ? [...candidates.filter((c) => c.source === remembered), ...candidates.filter((c) => c.source !== remembered)] : candidates;\n}\n\n/** A Playwright wait or navigation that ran out of time — the application not answering. */\nexport function isTimeoutError(error: unknown): boolean {\n return error instanceof Error && (error.name === 'TimeoutError' || /Timeout \\d+ms exceeded/.test(error.message));\n}\n\n/**\n * A navigation the network refused: nothing listens on the frontend's port, or the host is gone. The\n * commonest could-not-look of all — a stopped stack — and it is NOT a timeout: Chromium answers at once.\n */\nexport function isUnreachableError(error: unknown): boolean {\n return error instanceof Error\n && /net::ERR_(CONNECTION_REFUSED|CONNECTION_RESET|CONNECTION_CLOSED|CONNECTION_FAILED|EMPTY_RESPONSE|NAME_NOT_RESOLVED|ADDRESS_UNREACHABLE|INTERNET_DISCONNECTED|CONNECTION_TIMED_OUT)/.test(error.message);\n}\n\n/**\n * An error, as this camera may print it: its FIRST LINE only, with every secret replaced. Playwright\n * appends a call log to its errors, and the call log of a failed `fill` quotes the value being typed —\n * so the whole message of an error during the password step contains the password. The first line\n * alone does not, and the replacement covers a first line that ever does.\n */\nexport function describeLookError(error: unknown, secrets: readonly string[]): string {\n const raw = error instanceof Error ? error.message : String(error);\n let line = raw.split('\\n')[0]?.trim() ?? '';\n for (const secret of secrets) {\n if (secret.length > 0) line = line.split(secret).join('***');\n }\n return line;\n}\n\n/**\n * What a sign-in that threw means. A refusal it raised itself stands. A navigation the network refused is\n * NO_FRONTEND (start the application). A navigation or a wait that TIMED OUT is the application not\n * answering — the same repair as a form that never moved past the email step — so it is reported as\n * could-not-look (exit 2). Anything else (a browser that crashed, a bug) is a failed look (exit 1), and\n * calling it \"unanswered\" would send the reader to wait for a backend that is fine. Every message is\n * scrubbed ({@link describeLookError}).\n */\nexport function asSignInRefusal(error: unknown, secrets: readonly string[] = []): FrontendLookRefusedError | FrontendLookFailedError {\n if (error instanceof FrontendLookRefusedError) return error;\n const described = describeLookError(error, secrets);\n if (isUnreachableError(error)) {\n return new FrontendLookRefusedError(FrontendLookRefusal.NO_FRONTEND, `The frontend is not answering (${described}). Start the application, then look again.`);\n }\n if (isTimeoutError(error)) {\n return new FrontendLookRefusedError(FrontendLookRefusal.SIGN_IN_UNANSWERED, `The sign-in did not complete (${described}). Run again once the application answers.`);\n }\n return new FrontendLookFailedError(`The sign-in failed: ${described}`);\n}\n\n/**\n * Wait for the FIRST of several locators to become visible. Resolves with its key, or with `null` when\n * every wait ran out of time. Any other failure (a crashed page) is rethrown, never read as \"neither\".\n */\nasync function firstVisible(locators: Record<string, LookLocator>, timeout: number): Promise<string | null> {\n try {\n return await Promise.race(Object.entries(locators).map(([key, locator]) => locator.waitFor({ state: 'visible', timeout }).then(() => key)));\n } catch (error) {\n if (isTimeoutError(error)) return null;\n throw error;\n }\n}\n\n/** Where a candidate's sign-in stopped — the words of a refusal, never the credential. */\nenum SignInStop {\n /** The identify step was never answered: the backend is away. */\n UNANSWERED = 'the email step (unanswered)',\n /** The identify step was answered with no password step: an SSO-only or passwordless account. */\n NO_PASSWORD_STEP = 'the email step (no password offered)',\n /** The password was submitted and the session did not leave the sign-in: refused, or a second factor. */\n PASSWORD = 'the password step',\n}\n\n/** Open a URL; a refused connection is NO_FRONTEND and a timeout is \"painted nothing\", never a crash. */\nasync function openOrRefuse(page: LookPage, url: string): Promise<void> {\n try {\n await page.goto(url, { waitUntil: 'domcontentloaded', timeout: FIRST_PAINT_TIMEOUT_MS });\n } catch (error) {\n if (isUnreachableError(error) || isTimeoutError(error)) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_FRONTEND,\n `The frontend did not answer ${url} (${describeLookError(error, [])}). Start the application, then look again.`,\n );\n }\n throw error;\n }\n}\n\n/**\n * Sign in through the application's own two-phase form, the way a person does. Returns the source that\n * signed in, or `null` when the session was already signed in.\n *\n * The password is typed only while the page is on the APPLICATION's origin: an email step that hands off\n * to an identity provider (whose form may also name its field `password`) stops there instead.\n */\nexport async function signIn(page: LookPage, frontendUrl: string, candidates: readonly LookSignInCandidate[]): Promise<LookCredentialSource | null> {\n await openOrRefuse(page, `${frontendUrl}/`);\n const email = page.locator('input[name=\"email\"]').first();\n const landed = await firstVisible({ login: email, shell: page.locator(CONTENT_AREA_SELECTOR).first() }, FIRST_PAINT_TIMEOUT_MS);\n if (landed === 'shell') return null;\n if (landed === null) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_FRONTEND,\n `The frontend at ${frontendUrl} painted neither a sign-in form nor the shell within ${FIRST_PAINT_TIMEOUT_MS / 1000}s. `\n + 'It holds both until its backend answers, so the backend is the first thing to check. Run again once the application answers.',\n );\n }\n if (candidates.length === 0) {\n throw new FrontendLookRefusedError(FrontendLookRefusal.NOT_SIGNED_IN, 'No local administrator credential found (the application\\'s infrastructure/local/secrets/secrets.json has no admin).');\n }\n const applicationOrigin = new URL(frontendUrl).origin;\n const stoppedAt: SignInStop[] = [];\n for (const candidate of candidates) {\n await openOrRefuse(page, `${frontendUrl}/login`);\n await email.waitFor({ state: 'visible', timeout: FIRST_PAINT_TIMEOUT_MS });\n await email.fill(candidate.email);\n // Registered BEFORE the submit, so an answer that comes back at once is not missed.\n // A 5xx is the backend failing, not an answer about the account: only a response below 500 counts, so a\n // failing backend is reported as unanswered rather than as an account with no password step.\n const identified = page.waitForResponse((response) => response.url().includes('/auth/identify'), { timeout: 30_000 })\n .then((response) => response.status() < 500, () => false);\n await page.locator('button[type=\"submit\"]').first().click();\n const password = page.locator('input[name=\"password\"]').first();\n const asked = await password.waitFor({ state: 'visible', timeout: 30_000 }).then(() => true, () => false);\n if (new URL(page.url()).origin !== applicationOrigin) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NOT_SIGNED_IN,\n `The sign-in left the application for ${new URL(page.url()).origin}: this account signs in through an identity provider, which this camera does not drive.`,\n );\n }\n if (!asked) { stoppedAt.push((await identified) ? SignInStop.NO_PASSWORD_STEP : SignInStop.UNANSWERED); continue; }\n await password.fill(candidate.password);\n await page.locator('button[type=\"submit\"]').first().click();\n const left = await page.waitForURL((url) => !url.pathname.startsWith('/login') && !url.pathname.startsWith('/auth'), { timeout: 30_000 })\n .then(() => true, () => false);\n if (left) return candidate.source;\n stoppedAt.push(SignInStop.PASSWORD);\n }\n if (stoppedAt.every((step) => step === SignInStop.UNANSWERED)) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.SIGN_IN_UNANSWERED,\n `The sign-in form never moved past the email step (${stoppedAt.length} credential(s) tried): the application's backend is not answering. Run again once it is up.`,\n );\n }\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NOT_SIGNED_IN,\n `No local administrator credential signed in — stopped at: ${stoppedAt.join(', ')}. A stop at the password step is a refused password or a second factor, `\n + 'and \"no password offered\" is an SSO-only or passwordless account; this camera answers neither.',\n );\n}\n\n/**\n * The scroll container of the pane holding `anchorSelector` (the record's action bar, the edit form), so\n * the frames walk the pane a person scrolls rather than the window, which the shell does not scroll.\n * Searched UP from the anchor first, then — for a pane that scrolls inside a container below it, such as\n * a listing whose rows scroll under `main` — DOWN for the tallest scrolling descendant. Marked with\n * `data-look-scroller` for the frames to drive; null when the surface fits.\n */\nconst markScroller = (anchorSelector: string): string => `(() => {\n const anchor = document.querySelector(${JSON.stringify(anchorSelector)}) || document.querySelector('main');\n const scrolls = (el) => { const cs = getComputedStyle(el); return (cs.overflowY === 'auto' || cs.overflowY === 'scroll') && el.scrollHeight > el.clientHeight + 4; };\n let found = null;\n for (let el = anchor; el && !found; el = el.parentElement) if (scrolls(el)) found = el;\n if (!found && anchor) {\n for (const el of anchor.querySelectorAll('*')) if (scrolls(el) && (!found || el.scrollHeight > found.scrollHeight)) found = el;\n }\n if (!found) return null;\n found.setAttribute('data-look-scroller', '');\n return { scrollHeight: found.scrollHeight, clientHeight: found.clientHeight };\n})()`;\n\nasync function captureFrames(\n page: LookPage, surface: string, anchorSelector: string, directory: string, shots: FrontendLookShot[], cut: string[],\n): Promise<void> {\n const scroller = (await page.evaluate(markScroller(anchorSelector))) as { scrollHeight: number; clientHeight: number } | null;\n const needed = scroller ? Math.ceil(scroller.scrollHeight / Math.max(1, scroller.clientHeight * 0.9)) : 1;\n const frames = Math.min(MAX_FRAMES_PER_SURFACE, needed);\n if (needed > frames) cut.push(`the rest of the ${surface}: it is ${needed} screens long and only the first ${frames} were taken`);\n for (let frame = 0; frame < frames; frame += 1) {\n if (scroller) {\n await page.evaluate(`(() => { const el = document.querySelector('[data-look-scroller]'); if (el) el.scrollTop = ${Math.round(frame * (scroller?.clientHeight ?? 0) * 0.9)}; })()`);\n await page.waitForTimeout(350);\n }\n const file = join(directory, `${String(shots.length + 1).padStart(2, '0')}-${surface}${frames > 1 ? `-${frame + 1}` : ''}.png`);\n await page.screenshot({ path: file });\n shots.push({ surface, file, url: page.url() });\n }\n if (scroller) await page.evaluate(`(() => { const el = document.querySelector('[data-look-scroller]'); if (el) { el.scrollTop = 0; el.removeAttribute('data-look-scroller'); } })()`);\n}\n\n/**\n * The session's current organization. The URL the page is on wins when it names one: the application's session\n * FOLLOWS the organization its route names (#2247), so that is the organization the page is in, while the stored\n * value (`currentOrganizationId`, the frontend's own storage key) may still be the previous session's until the\n * follow commits. On a page that names none, the stored value is the session's own choice, written once the\n * signed-in user's context has loaded — after the sign-in redirect, not at it. Polled rather than read once.\n */\nasync function waitForCurrentOrganization(page: LookPage): Promise<string | null> {\n const deadline = Date.now() + CURRENT_ORGANIZATION_TIMEOUT_MS;\n while (Date.now() < deadline) {\n const fromUrl = /\\/organizations\\/([^/?#]+)/.exec(new URL(page.url()).pathname)?.[1];\n if (fromUrl) return fromUrl;\n const stored = (await page.evaluate(`localStorage.getItem('currentOrganizationId')`)) as string | null;\n if (stored) return stored;\n await page.waitForTimeout(500);\n }\n return null;\n}\n\n/** The signed-in user's id, read from the access token's payload inside the page; the token never leaves it. */\nasync function currentUserId(page: LookPage): Promise<string | null> {\n return (await page.evaluate(`(() => {\n try {\n const token = localStorage.getItem('jwtToken');\n if (!token) return null;\n const segment = token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');\n const payload = JSON.parse(atob(segment + '='.repeat((4 - segment.length % 4) % 4)));\n return payload.userId || payload.sub || null;\n } catch { return null; }\n })()`)) as string | null;\n}\n\n/** A route parameter still left in a path: `/:name` up to the next `/`, `?` or `#`. */\nconst ROUTE_PARAMETER = /\\/:([A-Za-z_][A-Za-z0-9_]*)/g;\n\n/**\n * Replace the WHOLE parameter `:name`, never a prefix of a longer one: `:userIdentity` is a different parameter\n * from `:userId`, and a plain `replaceAll` rewrote it into `<id>entity`.\n */\nexport function fillPathParameter(path: string, name: string, value: string): string {\n return path.replace(new RegExp(`:${name}(?![A-Za-z0-9_])`, 'g'), value);\n}\n\n/** Fill the route parameters this camera can answer from the session; refuse a path naming any other. */\nexport async function fillPathParameters(page: LookPage, requestedPath: string): Promise<string> {\n let path = requestedPath.startsWith('/') ? requestedPath : `/${requestedPath}`;\n if (path.includes(':organizationId')) {\n const organizationId = await waitForCurrentOrganization(page);\n if (!organizationId) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_ORGANIZATION,\n `The path names :organizationId, and the signed-in session settled on no current organization within ${CURRENT_ORGANIZATION_TIMEOUT_MS / 1000}s. Name the organization in the path instead.`,\n );\n }\n path = fillPathParameter(path, 'organizationId', organizationId);\n }\n if (path.includes(':userId')) {\n const userId = await currentUserId(page);\n if (!userId) {\n throw new FrontendLookRefusedError(FrontendLookRefusal.UNRESOLVED_PATH, 'The path names :userId, and the signed-in session exposes no user id. Write the id into the path instead.');\n }\n path = fillPathParameter(path, 'userId', userId);\n }\n const unfilled = [...path.matchAll(ROUTE_PARAMETER)].map((match) => `:${match[1]}`);\n if (unfilled.length > 0) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.UNRESOLVED_PATH,\n `The path names ${unfilled.join(', ')}, which this camera cannot fill from the session (it fills :organizationId and :userId). Write the id into the path instead.`,\n );\n }\n return path;\n}\n\n/**\n * Open `path` and wait for it to paint: in the shell (its content area), or as the application's own error\n * page. The error page means the application answered and has nothing at that path — NO_SUCH_PAGE, not\n * \"not answering\" — unless the shell painted too, in which case the error is part of the page and is what\n * the person should see.\n */\nexport async function openSurface(page: LookPage, frontendUrl: string, path: string): Promise<void> {\n await openOrRefuse(page, `${frontendUrl}${path}`);\n const content = page.locator(CONTENT_AREA_SELECTOR).first();\n const errorPage = page.locator(ERROR_DISPLAY_SELECTOR).first();\n const painted = await firstVisible({ content, error: errorPage }, FIRST_PAINT_TIMEOUT_MS);\n if (painted === null) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_FRONTEND,\n `The page at ${path} painted neither the application shell nor an error page within ${FIRST_PAINT_TIMEOUT_MS / 1000}s. Run again once the application answers.`,\n );\n }\n if (painted === 'error' && (await content.count()) === 0) {\n const status = await errorPage.getAttribute('data-status-code');\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_SUCH_PAGE,\n `The application answered ${path} with its error page${status ? ` (${status})` : ''}: there is no page there for the signed-in administrator. `\n + 'Check the path — a collection is addressed the way its own navigation links address it.',\n );\n }\n}\n\n/**\n * The surfaces of one look, in order: the page already open, then (when asked) its first record, then that\n * record's edit form. Every frame taken is pushed to `shots`; a step asked for and not possible is pushed to\n * `notTaken` (exit 2), and a surface photographed only in part to `cut` (a warning). Exported so the stepping\n * is tested without a browser.\n */\nexport async function photographSurfaces(\n page: LookPage,\n options: { openFirstRecord: boolean; openEdit: boolean; outputDirectory: string },\n shots: FrontendLookShot[], notTaken: string[], cut: string[],\n): Promise<void> {\n const hasRows = await page.locator(LIST_ITEM_SELECTOR).first().waitFor({ state: 'visible', timeout: 20_000 }).then(() => true, () => false);\n await page.waitForTimeout(1500); // label bundles and deferred sections settle after the first paint\n await captureFrames(page, 'surface', 'main', options.outputDirectory, shots, cut);\n\n if (options.openFirstRecord || options.openEdit) {\n if (!hasRows) {\n notTaken.push('open the first record: the surface shows no collection row');\n } else {\n const listUrl = page.url();\n const row = page.locator(LIST_ITEM_SELECTOR).first();\n const text = row.locator('[data-slot=\"text\"]').first();\n await ((await text.count()) > 0 ? text : row).click({ timeout: 15_000 });\n // A record opens at its own address; a click that changed nothing opened nothing.\n const opened = await page.waitForURL((url) => url.href !== listUrl, { timeout: 15_000 }).then(() => true, () => false);\n if (!opened) {\n notTaken.push('open the first record: clicking the first row changed nothing');\n } else {\n await page.locator(UPDATE_ACTION_SELECTOR).filter({ visible: true }).first().waitFor({ state: 'visible', timeout: 15_000 }).catch(() => undefined);\n await page.waitForTimeout(1500);\n await captureFrames(page, 'record', UPDATE_ACTION_SELECTOR, options.outputDirectory, shots, cut);\n\n if (options.openEdit) {\n const update = page.locator(UPDATE_ACTION_SELECTOR).filter({ visible: true }).first();\n const editable = await update.waitFor({ state: 'visible', timeout: 15_000 }).then(() => true, () => false);\n if (!editable) {\n notTaken.push('open the edit form: the record shows no edit action');\n } else {\n await update.click({ timeout: 15_000 });\n const form = await page.locator(EDIT_FORM_SELECTOR).filter({ visible: true }).first().waitFor({ state: 'visible', timeout: 30_000 })\n .then(() => true, () => false);\n if (!form) {\n notTaken.push('open the edit form: no form appeared after the edit action');\n } else {\n await page.waitForTimeout(1500);\n await captureFrames(page, 'edit', EDIT_FORM_SELECTOR, options.outputDirectory, shots, cut);\n }\n }\n }\n }\n }\n }\n}\n\n/** Sign the camera's session out, so repeated looks do not fill the administrator's session cap. Best-effort. */\nasync function signOut(page: LookPage, frontend: LookFrontend): Promise<void> {\n if (!frontend.apiBaseUrl) return;\n const headers: Record<string, string> = { 'content-type': 'application/json' };\n if (frontend.serviceName) headers['X-Frontend-Service-Name'] = frontend.serviceName;\n await page.evaluate(`fetch(${JSON.stringify(`${frontend.apiBaseUrl}/api/v1/auth/logout`)}, { method: 'POST', credentials: 'include', headers: ${JSON.stringify(headers)}, body: '{}' }).then(() => true, () => false)`)\n .catch(() => undefined);\n}\n\nexport async function runFrontendLook(request: FrontendLookRequest): Promise<FrontendLookResult> {\n const candidates = signInCandidates(request.appRoot, request.frameworkRoot);\n const secrets = candidates.map((candidate) => candidate.password);\n try {\n return await look(request, candidates);\n } catch (error) {\n // Every ending leaves here scrubbed: a refusal's own words, or the first line of anything else.\n if (error instanceof FrontendLookRefusedError) throw new FrontendLookRefusedError(error.refusal, describeLookError(error, secrets));\n if (error instanceof FrontendLookFailedError) throw new FrontendLookFailedError(describeLookError(error, secrets));\n throw new FrontendLookFailedError(describeLookError(error, secrets));\n }\n}\n\nasync function look(request: FrontendLookRequest, candidates: readonly LookSignInCandidate[]): Promise<FrontendLookResult> {\n const playwright = loadPlaywright(request.appRoot, request.frameworkRoot);\n const frontend = await resolveInteractiveFrontend(request.appRoot);\n mkdirSync(request.outputDirectory, { recursive: true });\n\n let browser: LookBrowser;\n try {\n browser = await playwright.chromium.launch({ headless: true });\n } catch (error) {\n throw new FrontendLookRefusedError(\n FrontendLookRefusal.NO_CAMERA,\n `Chromium did not start (${describeLookError(error, [])}). Install it with \\`pnpm exec playwright install chromium\\`.`,\n );\n }\n const shots: FrontendLookShot[] = [];\n const notTaken: string[] = [];\n const cut: string[] = [];\n let page: LookPage | null = null;\n let signedIn = false;\n try {\n const context = await browser.newContext({ viewport: request.viewport, colorScheme: request.colorScheme, hasTouch: request.touch, isMobile: request.touch });\n page = await context.newPage();\n try {\n const source = await signIn(page, frontend.url, candidates);\n signedIn = true;\n if (source) rememberSource(request.appRoot, source);\n } catch (error) {\n throw asSignInRefusal(error, candidates.map((candidate) => candidate.password));\n }\n\n const path = await fillPathParameters(page, request.path);\n await openSurface(page, frontend.url, path);\n await photographSurfaces(page, request, shots, notTaken, cut);\n\n const paintedTheme = (await page.evaluate(`document.documentElement.getAttribute('data-theme')`)) as string | null;\n return { frontendUrl: frontend.url, colorScheme: request.colorScheme, paintedTheme, shots, notTaken, cut };\n } finally {\n if (page && signedIn) await signOut(page, frontend);\n await browser.close().catch(() => undefined);\n }\n}\n"]}
@@ -36,10 +36,15 @@ export interface ExtractZipResult {
36
36
  export declare function extractZipToDir(bytes: Uint8Array, destDir: string): Promise<ExtractZipResult>;
37
37
  /**
38
38
  * Create a ZIP buffer from `srcDir`. Walks the directory tree, sorts
39
- * file paths lexicographically before adding them to the archive
40
- * (deterministic byte output for the same source set — required so
41
- * `sha256:<hex>` integrity reproduces across publishers), and resolves
42
- * once the central directory is written.
39
+ * file paths lexicographically before adding them to the archive, and
40
+ * resolves once the central directory is written.
41
+ *
42
+ * The same files give the same bytes on any machine, as far as the archive's own fields go: entry names
43
+ * always use `/`, the timestamp is pinned, and the mode is 0644 or 0755 (only the executable bit is kept),
44
+ * because yazl records each file's real mode and that follows the machine's umask (#2024 review M3:
45
+ * identical content at 0644 and 0664 hashed differently). The deflate output still depends on the zlib
46
+ * Node bundles, so a caller comparing a published artifact across machines compares CONTENTS when the
47
+ * digests differ (`provider-publication.service.ts`), never the digest alone.
43
48
  *
44
49
  * Symlinks + special entries are skipped. Empty directories are
45
50
  * skipped (zip preserves the directory structure implicitly via the
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/artifact-extractor.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAUH,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAoD3B;AAcD;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAkB1E"}
1
+ {"version":3,"file":"artifact-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/artifact-extractor.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAUH,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAoD3B;AAcD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAmB1E"}
@@ -100,10 +100,15 @@ function openZipFromBuffer(buffer) {
100
100
  }
101
101
  /**
102
102
  * Create a ZIP buffer from `srcDir`. Walks the directory tree, sorts
103
- * file paths lexicographically before adding them to the archive
104
- * (deterministic byte output for the same source set — required so
105
- * `sha256:<hex>` integrity reproduces across publishers), and resolves
106
- * once the central directory is written.
103
+ * file paths lexicographically before adding them to the archive, and
104
+ * resolves once the central directory is written.
105
+ *
106
+ * The same files give the same bytes on any machine, as far as the archive's own fields go: entry names
107
+ * always use `/`, the timestamp is pinned, and the mode is 0644 or 0755 (only the executable bit is kept),
108
+ * because yazl records each file's real mode and that follows the machine's umask (#2024 review M3:
109
+ * identical content at 0644 and 0664 hashed differently). The deflate output still depends on the zlib
110
+ * Node bundles, so a caller comparing a published artifact across machines compares CONTENTS when the
111
+ * digests differ (`provider-publication.service.ts`), never the digest alone.
107
112
  *
108
113
  * Symlinks + special entries are skipped. Empty directories are
109
114
  * skipped (zip preserves the directory structure implicitly via the
@@ -114,10 +119,11 @@ export async function createZipFromDir(srcDir) {
114
119
  files.sort();
115
120
  const zip = new yazl.ZipFile();
116
121
  for (const rel of files) {
117
- const abs = path.join(srcDir, rel);
118
- // Pin mtime to the epoch so identical input trees produce
119
- // byte-identical zips. Sha256 reproducibility depends on this.
120
- zip.addFile(abs, rel, { mtime: new Date(0) });
122
+ const abs = path.join(srcDir, ...rel.split('/'));
123
+ const executable = ((await fsp.stat(abs)).mode & 0o111) !== 0;
124
+ // Pin mtime to the epoch and the mode to one of two values, so identical input trees produce
125
+ // byte-identical zips on any machine.
126
+ zip.addFile(abs, rel, { mtime: new Date(0), mode: executable ? 0o100755 : 0o100644 });
121
127
  }
122
128
  zip.end();
123
129
  const chunks = [];
@@ -133,7 +139,8 @@ async function collectFilesRelative(rootAbs, prefix) {
133
139
  const entries = await fsp.readdir(here, { withFileTypes: true });
134
140
  const out = [];
135
141
  for (const entry of entries) {
136
- const rel = path.join(prefix, entry.name);
142
+ // A zip entry name, so always `/`-separated (path.join would write `\\` on Windows).
143
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
137
144
  if (entry.isDirectory()) {
138
145
  out.push(...(await collectFilesRelative(rootAbs, rel)));
139
146
  }
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-extractor.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/artifact-extractor.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAiB,EACjB,OAAe;IAEf,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,iEAAiE;IACjE,sDAAsD;IACtD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,iBAAiB,GAAG,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC;IAEhD,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChD,OAAO,MAAM,IAAI,OAAO,CAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC7D,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAkB,EAAE,EAAE;YACzC,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ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G,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC;aAAM,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1B,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["/**\n * Artifact-zip extraction + creation utilities for the `wildo\n * registry add`/`update` (extract) and `wildo registry publish`\n * (create) flows.\n *\n * Reads the downloaded artifact bytes (a Wildo module ZIP) and writes\n * each entry to a destination directory. Refuses to traverse outside\n * the destination root — defensive against zip-slip in maliciously\n * crafted artifacts (the registry's `Sha256DigestSchema` integrity\n * check defends against tampering, but extraction must still\n * normalize entry paths defensively).\n *\n * Returns the list of extracted file paths (relative to `destDir`)\n * so callers can record them in the lockfile entry's `files` array.\n *\n * Extracts to a staging tree under\n * `<saasRoot>/.wildo-saas/generated/modules-artifacts/<domain>/<moduleId>/<version>/`.\n * Boundary-enforced fan-out into the SaaS app source tree (KD-12)\n * lives in `boundary-fanout.utils.ts` and consumes the staged tree\n * after extraction.\n */\n\nimport * as fs from 'node:fs';\nimport * as fsp from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { Readable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\nimport yauzl from 'yauzl';\nimport yazl from 'yazl';\n\nexport interface ExtractZipResult {\n /** Files extracted, relative to `destDir`. */\n files: string[];\n}\n\n/**\n * Extract a ZIP buffer to `destDir`. Existing files at the destination\n * are overwritten (the artifact is the source of truth for an\n * `add`/`update`). Directory entries in the zip are mirrored as\n * directories on disk; symlinks + special entries are skipped.\n *\n * Throws when an entry path resolves outside `destDir` (defense in\n * depth — even though the integrity digest already confirms the zip\n * is the one the registry recorded).\n */\nexport async function extractZipToDir(\n bytes: Uint8Array,\n destDir: string,\n): Promise<ExtractZipResult> {\n await fsp.mkdir(destDir, { recursive: true });\n const buffer = Buffer.isBuffer(bytes) ? bytes : Buffer.from(bytes);\n const files: string[] = [];\n // Hoist out of the per-entry loop — `path.resolve` allocates and\n // reads `process.cwd()`, both expensive on hot paths.\n const destDirAbs = path.resolve(destDir);\n const destDirAbsWithSep = destDirAbs + path.sep;\n\n const zipfile = await openZipFromBuffer(buffer);\n return await new Promise<ExtractZipResult>((resolve, reject) => {\n zipfile.readEntry();\n zipfile.on('entry', (entry: yauzl.Entry) => {\n const fileName = entry.fileName;\n // Normalize + zip-slip guard.\n const target = path.resolve(destDir, fileName);\n if (!target.startsWith(destDirAbsWithSep) && target !== destDirAbs) {\n zipfile.close();\n reject(new Error(`Zip entry \"${fileName}\" escapes the destination directory.`));\n return;\n }\n // Directory entries end with '/'.\n if (/\\/$/.test(fileName)) {\n fsp\n .mkdir(target, { recursive: true })\n .then(() => zipfile.readEntry())\n .catch(reject);\n return;\n }\n zipfile.openReadStream(entry, (err, readStream) => {\n if (err) {\n zipfile.close();\n reject(err);\n return;\n }\n fsp\n .mkdir(path.dirname(target), { recursive: true })\n .then(async () => {\n const writeStream = fs.createWriteStream(target);\n await pipeline(readStream as Readable, writeStream);\n files.push(path.relative(destDir, target));\n zipfile.readEntry();\n })\n .catch((pipelineErr) => {\n zipfile.close();\n reject(pipelineErr);\n });\n });\n });\n zipfile.on('end', () => resolve({ files }));\n zipfile.on('error', reject);\n });\n}\n\nfunction openZipFromBuffer(buffer: Buffer): Promise<yauzl.ZipFile> {\n return new Promise<yauzl.ZipFile>((resolve, reject) => {\n yauzl.fromBuffer(buffer, { lazyEntries: true }, (err, zipfile) => {\n if (err || !zipfile) {\n reject(err ?? new Error('yauzl.fromBuffer returned no zipfile'));\n return;\n }\n resolve(zipfile);\n });\n });\n}\n\n/**\n * Create a ZIP buffer from `srcDir`. Walks the directory tree, sorts\n * file paths lexicographically before adding them to the archive\n * (deterministic byte output for the same source set — required so\n * `sha256:<hex>` integrity reproduces across publishers), and resolves\n * once the central directory is written.\n *\n * Symlinks + special entries are skipped. Empty directories are\n * skipped (zip preserves the directory structure implicitly via the\n * file paths inside them).\n */\nexport async function createZipFromDir(srcDir: string): Promise<Uint8Array> {\n const files = await collectFilesRelative(srcDir, '');\n files.sort();\n const zip = new yazl.ZipFile();\n for (const rel of files) {\n const abs = path.join(srcDir, rel);\n // Pin mtime to the epoch so identical input trees produce\n // byte-identical zips. Sha256 reproducibility depends on this.\n zip.addFile(abs, rel, { mtime: new Date(0) });\n }\n zip.end();\n const chunks: Buffer[] = [];\n await new Promise<void>((resolve, reject) => {\n zip.outputStream.on('data', (chunk: Buffer) => chunks.push(chunk));\n zip.outputStream.on('end', () => resolve());\n zip.outputStream.on('error', reject);\n });\n return Buffer.concat(chunks);\n}\n\nasync function collectFilesRelative(rootAbs: string, prefix: string): Promise<string[]> {\n const here = path.join(rootAbs, prefix);\n const entries = await fsp.readdir(here, { withFileTypes: true });\n const out: string[] = [];\n for (const entry of entries) {\n const rel = path.join(prefix, entry.name);\n if (entry.isDirectory()) {\n out.push(...(await collectFilesRelative(rootAbs, rel)));\n } else if (entry.isFile()) {\n out.push(rel);\n }\n }\n return out;\n}\n"]}
1
+ {"version":3,"file":"artifact-extractor.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/artifact-extractor.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAiB,EACjB,OAAe;IAEf,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,MAAM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AAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QACnE,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QAC5C,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,oBAAoB,CAAC,OAAe,EAAE,MAAc;IACjE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,qFAAqF;QACrF,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC5D,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;YACxB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,oBAAoB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC;aAAM,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1B,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["/**\n * Artifact-zip extraction + creation utilities for the `wildo\n * registry add`/`update` (extract) and `wildo registry publish`\n * (create) flows.\n *\n * Reads the downloaded artifact bytes (a Wildo module ZIP) and writes\n * each entry to a destination directory. Refuses to traverse outside\n * the destination root — defensive against zip-slip in maliciously\n * crafted artifacts (the registry's `Sha256DigestSchema` integrity\n * check defends against tampering, but extraction must still\n * normalize entry paths defensively).\n *\n * Returns the list of extracted file paths (relative to `destDir`)\n * so callers can record them in the lockfile entry's `files` array.\n *\n * Extracts to a staging tree under\n * `<saasRoot>/.wildo-saas/generated/modules-artifacts/<domain>/<moduleId>/<version>/`.\n * Boundary-enforced fan-out into the SaaS app source tree (KD-12)\n * lives in `boundary-fanout.utils.ts` and consumes the staged tree\n * after extraction.\n */\n\nimport * as fs from 'node:fs';\nimport * as fsp from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { Readable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\nimport yauzl from 'yauzl';\nimport yazl from 'yazl';\n\nexport interface ExtractZipResult {\n /** Files extracted, relative to `destDir`. */\n files: string[];\n}\n\n/**\n * Extract a ZIP buffer to `destDir`. Existing files at the destination\n * are overwritten (the artifact is the source of truth for an\n * `add`/`update`). Directory entries in the zip are mirrored as\n * directories on disk; symlinks + special entries are skipped.\n *\n * Throws when an entry path resolves outside `destDir` (defense in\n * depth — even though the integrity digest already confirms the zip\n * is the one the registry recorded).\n */\nexport async function extractZipToDir(\n bytes: Uint8Array,\n destDir: string,\n): Promise<ExtractZipResult> {\n await fsp.mkdir(destDir, { recursive: true });\n const buffer = Buffer.isBuffer(bytes) ? bytes : Buffer.from(bytes);\n const files: string[] = [];\n // Hoist out of the per-entry loop — `path.resolve` allocates and\n // reads `process.cwd()`, both expensive on hot paths.\n const destDirAbs = path.resolve(destDir);\n const destDirAbsWithSep = destDirAbs + path.sep;\n\n const zipfile = await openZipFromBuffer(buffer);\n return await new Promise<ExtractZipResult>((resolve, reject) => {\n zipfile.readEntry();\n zipfile.on('entry', (entry: yauzl.Entry) => {\n const fileName = entry.fileName;\n // Normalize + zip-slip guard.\n const target = path.resolve(destDir, fileName);\n if (!target.startsWith(destDirAbsWithSep) && target !== destDirAbs) {\n zipfile.close();\n reject(new Error(`Zip entry \"${fileName}\" escapes the destination directory.`));\n return;\n }\n // Directory entries end with '/'.\n if (/\\/$/.test(fileName)) {\n fsp\n .mkdir(target, { recursive: true })\n .then(() => zipfile.readEntry())\n .catch(reject);\n return;\n }\n zipfile.openReadStream(entry, (err, readStream) => {\n if (err) {\n zipfile.close();\n reject(err);\n return;\n }\n fsp\n .mkdir(path.dirname(target), { recursive: true })\n .then(async () => {\n const writeStream = fs.createWriteStream(target);\n await pipeline(readStream as Readable, writeStream);\n files.push(path.relative(destDir, target));\n zipfile.readEntry();\n })\n .catch((pipelineErr) => {\n zipfile.close();\n reject(pipelineErr);\n });\n });\n });\n zipfile.on('end', () => resolve({ files }));\n zipfile.on('error', reject);\n });\n}\n\nfunction openZipFromBuffer(buffer: Buffer): Promise<yauzl.ZipFile> {\n return new Promise<yauzl.ZipFile>((resolve, reject) => {\n yauzl.fromBuffer(buffer, { lazyEntries: true }, (err, zipfile) => {\n if (err || !zipfile) {\n reject(err ?? new Error('yauzl.fromBuffer returned no zipfile'));\n return;\n }\n resolve(zipfile);\n });\n });\n}\n\n/**\n * Create a ZIP buffer from `srcDir`. Walks the directory tree, sorts\n * file paths lexicographically before adding them to the archive, and\n * resolves once the central directory is written.\n *\n * The same files give the same bytes on any machine, as far as the archive's own fields go: entry names\n * always use `/`, the timestamp is pinned, and the mode is 0644 or 0755 (only the executable bit is kept),\n * because yazl records each file's real mode and that follows the machine's umask (#2024 review M3:\n * identical content at 0644 and 0664 hashed differently). The deflate output still depends on the zlib\n * Node bundles, so a caller comparing a published artifact across machines compares CONTENTS when the\n * digests differ (`provider-publication.service.ts`), never the digest alone.\n *\n * Symlinks + special entries are skipped. Empty directories are\n * skipped (zip preserves the directory structure implicitly via the\n * file paths inside them).\n */\nexport async function createZipFromDir(srcDir: string): Promise<Uint8Array> {\n const files = await collectFilesRelative(srcDir, '');\n files.sort();\n const zip = new yazl.ZipFile();\n for (const rel of files) {\n const abs = path.join(srcDir, ...rel.split('/'));\n const executable = ((await fsp.stat(abs)).mode & 0o111) !== 0;\n // Pin mtime to the epoch and the mode to one of two values, so identical input trees produce\n // byte-identical zips on any machine.\n zip.addFile(abs, rel, { mtime: new Date(0), mode: executable ? 0o100755 : 0o100644 });\n }\n zip.end();\n const chunks: Buffer[] = [];\n await new Promise<void>((resolve, reject) => {\n zip.outputStream.on('data', (chunk: Buffer) => chunks.push(chunk));\n zip.outputStream.on('end', () => resolve());\n zip.outputStream.on('error', reject);\n });\n return Buffer.concat(chunks);\n}\n\nasync function collectFilesRelative(rootAbs: string, prefix: string): Promise<string[]> {\n const here = path.join(rootAbs, prefix);\n const entries = await fsp.readdir(here, { withFileTypes: true });\n const out: string[] = [];\n for (const entry of entries) {\n // A zip entry name, so always `/`-separated (path.join would write `\\\\` on Windows).\n const rel = prefix ? `${prefix}/${entry.name}` : entry.name;\n if (entry.isDirectory()) {\n out.push(...(await collectFilesRelative(rootAbs, rel)));\n } else if (entry.isFile()) {\n out.push(rel);\n }\n }\n return out;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"boundary-fanout.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/boundary-fanout.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;OAKG;IACH,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC;;;;;OAKG;IACH,eAAe,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxE;;;;OAIG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAuFD;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAA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G,OAAO,CAAC,MAAM,CAAC,CAmB9G;AAED;;;GAGG;AACH,wBAAsB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,EAAE,uBAAuB,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CASjI;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BhB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAUpF"}
@@ -22,6 +22,7 @@
22
22
  */
23
23
  import { promises as fs } from 'node:fs';
24
24
  import * as path from 'node:path';
25
+ import { z } from 'zod';
25
26
  import { flattenModuleBoundaries, isModuleArtifactPathAllowed, isModuleOwnedFilePath, MODULE_BOUNDARY_LAYER_ROOTS, ModuleManifestSchema, MODULE_MANIFEST_FILE_NAME as MANIFEST_FILE_NAME, } from '@wildo-ai/platform-config-lib';
26
27
  import { RegistryLockfileService } from '@wildo-ai/wildo-module-client';
27
28
  function isWithinAnyBoundary(saasRoot, appRelativePath, boundaries) {
@@ -269,7 +270,11 @@ export async function readStagedManifest(extractDir) {
269
270
  const raw = await fs.readFile(manifestPath, 'utf8');
270
271
  // PARSED, not cast: the boundaries this returns decide what the fan-out may write, so the
271
272
  // manifest must pass the same contract the registry server enforced at publish — every install
272
- // path reads it through here.
273
- return ModuleManifestSchema.parse(JSON.parse(raw));
273
+ // path reads it through here. A refusal reads as sentences, not a JSON dump of issues: an unknown `kind` is a newer
274
+ // framework's module, and its message names the upgrade (#2861).
275
+ const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));
276
+ if (!parsed.success)
277
+ throw new Error(`The module's ${MANIFEST_FILE_NAME} is not one this CLI can install:\n${z.prettifyError(parsed.error)}`);
278
+ return parsed.data;
274
279
  }
275
280
  //# sourceMappingURL=boundary-fanout.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boundary-fanout.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/boundary-fanout.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EAEpB,yBAAyB,IAAI,kBAAkB,GAChD,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AA+BxE,SAAS,mBAAmB,CAC1B,QAAgB,EAChB,eAAuB,EACvB,UAA6B;IAE7B,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACzD,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;QAC1D,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,iBAAiB,CAAC,OAAe,EAAE,MAAM,GAAG,EAAE;IAC3D,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;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D,CAAC;QACH,CAAC;aAAM,CAAC;YACN,2DAA2D;YAC3D,wCAAwC;YACxC,IAAI,CAAC;gBACH,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC3B,CAAC;YAAC,MAAM,CAAC;gBACP,YAAY;YACd,CAAC;QACH,CAAC;IACH,CAAC;IACD,wGAAwG;IACxG,kGAAkG;IAClG,sGAAsG;IACtG,2CAA2C;IAC3C,MAAM,6BAA6B,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAChI,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,UAAkB;IACzD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAC/D,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACpD,0FAA0F;IAC1F,+FAA+F;IAC/F,8BAA8B;IAC9B,OAAO,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACrD,CAAC","sourcesContent":["/**\n * Boundary-enforced fan-out — copy files from a staged module tree\n * onto the SaaS app source tree per `manifest.boundaries` (KD-12).\n *\n * Used by `wildo registry add` / `update` after the artifact has\n * been extracted to staging at\n * `<saasRoot>/.wildo-saas/generated/modules-artifacts/<domain>/<moduleId>/<version>/`.\n * The staged tree mirrors the publishing SaaS app's relative paths,\n * so each staged file's path inside the extraction dir IS its target\n * path inside the consumer's SaaS root.\n *\n * Boundary enforcement:\n * - Every staged file (except the `wildo.module.json` manifest)\n * must resolve to a path inside one of the declared\n * `manifest.boundaries.<layer>` directories. Files outside any\n * declared boundary are rejected — defense-in-depth against a\n * compromised registry returning a tampered tree, even though\n * `Sha256DigestSchema` integrity already confirms the bytes\n * match what was published.\n * - Paths are normalized + the destination is verified to stay\n * inside `saasRoot` (zip-slip / symlink-escape guard).\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport {\n flattenModuleBoundaries,\n isModuleArtifactPathAllowed,\n isModuleOwnedFilePath,\n MODULE_BOUNDARY_LAYER_ROOTS,\n ModuleManifestSchema,\n type ModuleManifest,\n MODULE_MANIFEST_FILE_NAME as MANIFEST_FILE_NAME,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryLockfileService } from '@wildo-ai/wildo-module-client';\n\nexport interface FanOutResult {\n /**\n * Files written to the SaaS source, relative to `saasRoot` (POSIX\n * separators). The order is deterministic (sorted).\n */\n writtenFiles: string[];\n /**\n * Backup snapshot of pre-existing destination files (relative POSIX\n * path → absolute path on disk inside the staging dir). Used by\n * the caller to roll back an `update` mid-fan-out failure: reset\n * each entry's content from its backup before re-throwing.\n */\n backups: ReadonlyMap<string, string>;\n /**\n * Cross-module overlap warnings — destination paths claimed by\n * another lockfile entry. The fan-out warns and proceeds (the\n * registry artifact wins the write), but the caller can surface\n * the conflict so the operator knows what was clobbered.\n */\n overlapWarnings: ReadonlyArray<{ path: string; otherModuleId: string }>;\n /**\n * Every file this version SHIPS, whether written or skipped (#2016), sorted. This is the module's new\n * ownership (`files` on its lockfile entry): a file kept because the application edited it is still\n * the module's, only not overwritten, so the next update asks the same question again.\n */\n ownedFiles: string[];\n}\n\n\nfunction isWithinAnyBoundary(\n saasRoot: string,\n appRelativePath: string,\n boundaries: readonly string[],\n): boolean {\n if (boundaries.length === 0) return false;\n const absolute = path.resolve(saasRoot, appRelativePath);\n return boundaries.some((rel) => {\n const allowedAbs = path.resolve(saasRoot, rel) + path.sep;\n return (absolute + path.sep).startsWith(allowedAbs);\n });\n}\n\nasync function walkFilesRelative(rootAbs: string, prefix = ''): Promise<string[]> {\n const here = path.join(rootAbs, prefix);\n const entries = await fs.readdir(here, { withFileTypes: true });\n const out: string[] = [];\n for (const entry of entries) {\n const rel = path.join(prefix, entry.name);\n if (entry.isDirectory()) {\n out.push(...(await walkFilesRelative(rootAbs, rel)));\n } else if (entry.isFile()) {\n out.push(rel);\n }\n }\n return out;\n}\n\n/** One staged file, validated, with where it lands. */\ninterface PlannedStagedFile {\n rel: string;\n appRelativePath: string;\n destAbs: string;\n}\n\n/**\n * Validate EVERY staged file of a module and return where each lands, throwing before anything is\n * written. The checks used to run inside the copy loop, so an artifact whose tenth file broke a rule\n * had already overwritten nine application files, with no rollback, because callers only roll back\n * on a lockfile failure. A refusal must leave the application exactly as it was.\n *\n * Exported so a command can decide per file (#2016, `planProtectedWrite`) on the SAME validated list\n * the fan-out writes from, and so an artifact's own violation (a dot-file, a path outside its\n * boundaries) is always reported as that, before any per-file protection decision.\n */\nasync function planStagedAppFiles(args: { saasRoot: string; extractDir: string; manifest: ModuleManifest }): Promise<PlannedStagedFile[]> {\n const { saasRoot, extractDir, manifest } = args;\n const boundaries = flattenModuleBoundaries(manifest.boundaries);\n const stagedFiles = await walkFilesRelative(extractDir);\n const plannedFiles: PlannedStagedFile[] = [];\n const saasRootAbs = path.resolve(saasRoot) + path.sep;\n for (const rel of stagedFiles) {\n if (rel === MANIFEST_FILE_NAME || path.basename(rel) === MANIFEST_FILE_NAME) {\n // Manifest stays inside the staging tree; never copied to app source.\n continue;\n }\n const appRelativePath = rel.split(path.sep).join(path.posix.sep);\n\n // A correctly published artifact cannot carry a dot-segment or `node_modules` path — publish\n // skips them — so one here means the bytes did not come from `wildo registry publish`.\n if (!isModuleArtifactPathAllowed(appRelativePath)) {\n throw new Error(\n `Refusing to install: the artifact carries \"${appRelativePath}\", a path no module may ship (a segment starting with \".\" or named \"node_modules\"). Nothing was written.`,\n );\n }\n\n // Path-must-stay-inside-saasRoot guard.\n const destAbs = path.resolve(saasRoot, appRelativePath);\n if (!(destAbs + path.sep).startsWith(saasRootAbs)) {\n throw new Error(\n `Refusing to fan out file \"${appRelativePath}\" — resolves outside saasRoot. Nothing was written.`,\n );\n }\n\n if (!isWithinAnyBoundary(saasRoot, appRelativePath, boundaries)) {\n throw new Error(\n `Refusing to fan out file \"${appRelativePath}\" — outside any declared manifest.boundaries.<layer>. Nothing was written.`,\n );\n }\n plannedFiles.push({ rel, appRelativePath, destAbs });\n }\n return plannedFiles;\n}\n\n/**\n * The validated application-relative paths (POSIX, sorted) a staged module would write. Throws on the\n * same artifact violations the fan-out refuses, before anything is written.\n */\nexport async function validatedStagedAppFiles(args: { saasRoot: string; extractDir: string; manifest: ModuleManifest }): Promise<string[]> {\n return (await planStagedAppFiles(args)).map((planned) => planned.appRelativePath).sort();\n}\n\n/**\n * Copy every file in `extractDir` (except the manifest) onto the\n * SaaS source tree at the same relative path. Each file is asserted\n * to live inside a declared `manifest.boundaries.<layer>` directory.\n *\n * Existing destination files are overwritten — the registry artifact\n * is the source of truth for an `add`/`update`. Caller is responsible\n * for cleaning up files that disappeared between versions (via the\n * lockfile entry's previous `files[]` snapshot).\n */\nexport async function fanOutToSaasSource(args: {\n saasRoot: string;\n extractDir: string;\n manifest: ModuleManifest;\n /**\n * The module id this fan-out is for. Used to skip the module's\n * own claims in the cross-module overlap guard (`findFileOwners`\n * naturally returns the calling module too — we only want to\n * warn on OTHER modules' claims).\n */\n moduleId: string;\n /**\n * Optional backup directory. When provided, every pre-existing\n * destination file is copied here before being overwritten so the\n * caller can restore on rollback (M9). Caller passes the same\n * directory it scopes for that operation; fan-out creates it lazily.\n */\n backupDir?: string;\n /**\n * Application-relative paths to validate but NOT write (#2016): files the application edited, or\n * deleted, that the caller decided to keep. They stay in `ownedFiles`. The decision is the caller's\n * (`installed-file-state.utils.ts`), so the fan-out itself knows nothing about hashes.\n */\n skipPaths?: ReadonlySet<string>;\n}): Promise<FanOutResult> {\n const { saasRoot, extractDir, manifest, moduleId, backupDir, skipPaths } = args;\n const writtenFiles: string[] = [];\n const backups = new Map<string, string>();\n const overlapWarnings: { path: string; otherModuleId: string }[] = [];\n const plannedFiles = await planStagedAppFiles({ saasRoot, extractDir, manifest });\n\n for (const { rel, appRelativePath, destAbs } of plannedFiles) {\n if (skipPaths?.has(appRelativePath)) continue;\n // M10: cross-module overlap guard on the WRITE path. Without\n // this an `update` of A would silently overwrite B's content\n // when both modules claim the same barrel file.\n const ownersMap = await RegistryLockfileService.findFileOwners({\n saasRoot,\n paths: [appRelativePath],\n excludeModuleId: moduleId,\n });\n const otherOwners = ownersMap.get(appRelativePath) ?? [];\n if (otherOwners.length > 0) {\n overlapWarnings.push({ path: appRelativePath, otherModuleId: otherOwners[0]! });\n }\n\n // M9: snapshot pre-existing destination content so the caller\n // can roll back on a partial failure. We copy the bytes — not\n // just the path — so even an interrupted overwrite leaves a\n // restorable backup behind.\n if (backupDir) {\n try {\n const stat = await fs.stat(destAbs).catch(() => null);\n if (stat && stat.isFile()) {\n const backupPath = path.join(backupDir, appRelativePath);\n await fs.mkdir(path.dirname(backupPath), { recursive: true });\n await fs.copyFile(destAbs, backupPath);\n backups.set(appRelativePath, backupPath);\n }\n } catch {\n // Best-effort backup; don't block the fan-out if the snapshot\n // path can't be created. The caller's rollback will simply\n // not have a restore source for this entry — better than\n // failing the whole operation on an FS quirk.\n }\n }\n\n await fs.mkdir(path.dirname(destAbs), { recursive: true });\n await fs.copyFile(path.join(extractDir, rel), destAbs);\n writtenFiles.push(appRelativePath);\n }\n\n writtenFiles.sort();\n const ownedFiles = plannedFiles.map((planned) => planned.appRelativePath).sort();\n return { writtenFiles, backups, overlapWarnings, ownedFiles };\n}\n\n/**\n * Resolve a path RECORDED in a lockfile entry (`files[]`) to the absolute file a delete may touch,\n * or throw.\n *\n * `remove` and `update` delete these paths, and the lockfile is a committed, merged, hand-editable\n * file — so the path is re-checked at the point of deletion rather than trusted because the schema\n * once parsed it: it must be a file a module can own (below a module layer root, no dot-segment or\n * `node_modules`), and it must resolve inside the application root. Callers delete a single FILE (`unlink`), never recursively.\n */\nexport function resolveRecordedModuleFile(saasRoot: string, recordedPath: string): string {\n const saasRootAbs = path.resolve(saasRoot) + path.sep;\n const absolute = path.resolve(saasRoot, recordedPath);\n if (!isModuleOwnedFilePath(recordedPath) || !(absolute + path.sep).startsWith(saasRootAbs) || absolute + path.sep === saasRootAbs) {\n throw new Error(\n `Refusing to delete \"${recordedPath}\": a lockfile module entry may only record files below a module layer root. The lockfile has been edited or merged into an unsafe state; fix the entry by hand.`,\n );\n }\n return absolute;\n}\n\n/**\n * Remove the directories that deleting `removedFiles` left EMPTY, walking up from each file's directory\n * and stopping at `stopAt` — never removing `stopAt` itself or anything above it. Returns how many\n * directories went.\n *\n * Why it exists: install creates a module's whole directory tree (`<layer root>/<dir>/resources/…`), and\n * every delete here is a single-file `unlink`, so a `remove` restored every FILE and left the tree of\n * empty directories behind — invisible to `git status`, still there in the application (measured on a\n * scaffolded application, 2026-09-27: eight empty directories after one module's removal). A package\n * manager's uninstall removes the directories it created; this is that half.\n *\n * Safe by construction: `rmdir` removes only an EMPTY directory, so a directory that still holds anything\n * — another module's file, the operator's own — stops the walk; and the walk is confined below `stopAt`.\n */\nexport async function pruneEmptiedDirectories(removedFiles: readonly string[], stopAt: string): Promise<number> {\n const boundary = path.resolve(stopAt);\n // Deepest first, so a parent is only tried after its children had their chance to go.\n const starts = [...new Set(removedFiles.map((file) => path.dirname(path.resolve(file))))]\n .sort((left, right) => right.split(path.sep).length - left.split(path.sep).length);\n let pruned = 0;\n for (const start of starts) {\n for (let dir = start; dir !== boundary && dir.startsWith(boundary + path.sep); dir = path.dirname(dir)) {\n try {\n await fs.rmdir(dir);\n pruned += 1;\n } catch (err) {\n const code = (err as NodeJS.ErrnoException).code;\n if (code === 'ENOENT') continue; // already gone (a sibling's walk removed it) — keep climbing\n break; // ENOTEMPTY, EACCES, …: something still lives here, so nothing above it is empty either\n }\n }\n }\n return pruned;\n}\n\n/**\n * {@link pruneEmptiedDirectories} for module-owned SOURCE files: each file's walk stops at its own module\n * layer root (`backend-api/src/modules`, …), so a layer's registry directory is never touched.\n */\nexport async function pruneEmptiedModuleDirectories(saasRoot: string, removedAppRelativeFiles: readonly string[]): Promise<number> {\n let pruned = 0;\n for (const root of new Set(Object.values(MODULE_BOUNDARY_LAYER_ROOTS))) {\n const inLayer = removedAppRelativeFiles.filter((file) => file.startsWith(`${root}/`));\n if (inLayer.length > 0) {\n pruned += await pruneEmptiedDirectories(inLayer.map((file) => path.resolve(saasRoot, file)), path.resolve(saasRoot, root));\n }\n }\n return pruned;\n}\n\n/**\n * M9: roll back a partially-applied fan-out by restoring each\n * destination from its backup. Files newly created (no backup)\n * stay on disk — the caller is expected to delete them via the\n * `writtenFiles` list separately, since the rollback can't tell\n * which entries existed before.\n */\nexport async function rollbackFanOut(args: {\n saasRoot: string;\n result: FanOutResult;\n}): Promise<void> {\n const { saasRoot, result } = args;\n for (const appRelativePath of result.writtenFiles) {\n const destAbs = path.resolve(saasRoot, appRelativePath);\n const backupPath = result.backups.get(appRelativePath);\n if (backupPath) {\n try {\n await fs.copyFile(backupPath, destAbs);\n } catch {\n // Best-effort; the caller surfaces the original error.\n }\n } else {\n // No backup → file was newly created → unlink to leave the\n // SaaS source in its pre-fan-out state.\n try {\n await fs.unlink(destAbs);\n } catch {\n /* ignore */\n }\n }\n }\n // The directories the fan-out created for those new files go too. Best-effort, like the restores above.\n // One inexactness, stated: a directory that was already EMPTY before the install also goes, since\n // nothing distinguishes it once the new file is removed. Git cannot see an empty directory either, so\n // the committed tree is exactly as it was.\n await pruneEmptiedModuleDirectories(saasRoot, result.writtenFiles.filter((file) => !result.backups.has(file))).catch(() => 0);\n}\n\n/**\n * Read the manifest written by the publisher into the staging tree.\n * The staged manifest is the source of truth at fan-out time —\n * `manifest.boundaries` recorded there decides which app paths the\n * fan-out is allowed to write.\n */\nexport async function readStagedManifest(extractDir: string): Promise<ModuleManifest> {\n const manifestPath = path.join(extractDir, MANIFEST_FILE_NAME);\n const raw = await fs.readFile(manifestPath, 'utf8');\n // PARSED, not cast: the boundaries this returns decide what the fan-out may write, so the\n // manifest must pass the same contract the registry server enforced at publish — every install\n // path reads it through here.\n return ModuleManifestSchema.parse(JSON.parse(raw));\n}\n"]}
1
+ {"version":3,"file":"boundary-fanout.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/boundary-fanout.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EAEpB,yBAAyB,IAAI,kBAAkB,GAChD,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AA+BxE,SAAS,mBAAmB,CAC1B,QAAgB,EAChB,eAAuB,EACvB,UAA6B;IAE7B,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACzD,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;QAC1D,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,iBAAiB,CAAC,OAAe,EAAE,MAAM,GAAG,EAAE;IAC3D,MAAM,IAAI,GAAG,IAAI,CAA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,IAAI,CAAC;AACrB,CAAC","sourcesContent":["/**\n * Boundary-enforced fan-out — copy files from a staged module tree\n * onto the SaaS app source tree per `manifest.boundaries` (KD-12).\n *\n * Used by `wildo registry add` / `update` after the artifact has\n * been extracted to staging at\n * `<saasRoot>/.wildo-saas/generated/modules-artifacts/<domain>/<moduleId>/<version>/`.\n * The staged tree mirrors the publishing SaaS app's relative paths,\n * so each staged file's path inside the extraction dir IS its target\n * path inside the consumer's SaaS root.\n *\n * Boundary enforcement:\n * - Every staged file (except the `wildo.module.json` manifest)\n * must resolve to a path inside one of the declared\n * `manifest.boundaries.<layer>` directories. Files outside any\n * declared boundary are rejected — defense-in-depth against a\n * compromised registry returning a tampered tree, even though\n * `Sha256DigestSchema` integrity already confirms the bytes\n * match what was published.\n * - Paths are normalized + the destination is verified to stay\n * inside `saasRoot` (zip-slip / symlink-escape guard).\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { z } from 'zod';\nimport {\n flattenModuleBoundaries,\n isModuleArtifactPathAllowed,\n isModuleOwnedFilePath,\n MODULE_BOUNDARY_LAYER_ROOTS,\n ModuleManifestSchema,\n type ModuleManifest,\n MODULE_MANIFEST_FILE_NAME as MANIFEST_FILE_NAME,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryLockfileService } from '@wildo-ai/wildo-module-client';\n\nexport interface FanOutResult {\n /**\n * Files written to the SaaS source, relative to `saasRoot` (POSIX\n * separators). The order is deterministic (sorted).\n */\n writtenFiles: string[];\n /**\n * Backup snapshot of pre-existing destination files (relative POSIX\n * path → absolute path on disk inside the staging dir). Used by\n * the caller to roll back an `update` mid-fan-out failure: reset\n * each entry's content from its backup before re-throwing.\n */\n backups: ReadonlyMap<string, string>;\n /**\n * Cross-module overlap warnings — destination paths claimed by\n * another lockfile entry. The fan-out warns and proceeds (the\n * registry artifact wins the write), but the caller can surface\n * the conflict so the operator knows what was clobbered.\n */\n overlapWarnings: ReadonlyArray<{ path: string; otherModuleId: string }>;\n /**\n * Every file this version SHIPS, whether written or skipped (#2016), sorted. This is the module's new\n * ownership (`files` on its lockfile entry): a file kept because the application edited it is still\n * the module's, only not overwritten, so the next update asks the same question again.\n */\n ownedFiles: string[];\n}\n\n\nfunction isWithinAnyBoundary(\n saasRoot: string,\n appRelativePath: string,\n boundaries: readonly string[],\n): boolean {\n if (boundaries.length === 0) return false;\n const absolute = path.resolve(saasRoot, appRelativePath);\n return boundaries.some((rel) => {\n const allowedAbs = path.resolve(saasRoot, rel) + path.sep;\n return (absolute + path.sep).startsWith(allowedAbs);\n });\n}\n\nasync function walkFilesRelative(rootAbs: string, prefix = ''): Promise<string[]> {\n const here = path.join(rootAbs, prefix);\n const entries = await fs.readdir(here, { withFileTypes: true });\n const out: string[] = [];\n for (const entry of entries) {\n const rel = path.join(prefix, entry.name);\n if (entry.isDirectory()) {\n out.push(...(await walkFilesRelative(rootAbs, rel)));\n } else if (entry.isFile()) {\n out.push(rel);\n }\n }\n return out;\n}\n\n/** One staged file, validated, with where it lands. */\ninterface PlannedStagedFile {\n rel: string;\n appRelativePath: string;\n destAbs: string;\n}\n\n/**\n * Validate EVERY staged file of a module and return where each lands, throwing before anything is\n * written. The checks used to run inside the copy loop, so an artifact whose tenth file broke a rule\n * had already overwritten nine application files, with no rollback, because callers only roll back\n * on a lockfile failure. A refusal must leave the application exactly as it was.\n *\n * Exported so a command can decide per file (#2016, `planProtectedWrite`) on the SAME validated list\n * the fan-out writes from, and so an artifact's own violation (a dot-file, a path outside its\n * boundaries) is always reported as that, before any per-file protection decision.\n */\nasync function planStagedAppFiles(args: { saasRoot: string; extractDir: string; manifest: ModuleManifest }): Promise<PlannedStagedFile[]> {\n const { saasRoot, extractDir, manifest } = args;\n const boundaries = flattenModuleBoundaries(manifest.boundaries);\n const stagedFiles = await walkFilesRelative(extractDir);\n const plannedFiles: PlannedStagedFile[] = [];\n const saasRootAbs = path.resolve(saasRoot) + path.sep;\n for (const rel of stagedFiles) {\n if (rel === MANIFEST_FILE_NAME || path.basename(rel) === MANIFEST_FILE_NAME) {\n // Manifest stays inside the staging tree; never copied to app source.\n continue;\n }\n const appRelativePath = rel.split(path.sep).join(path.posix.sep);\n\n // A correctly published artifact cannot carry a dot-segment or `node_modules` path — publish\n // skips them — so one here means the bytes did not come from `wildo registry publish`.\n if (!isModuleArtifactPathAllowed(appRelativePath)) {\n throw new Error(\n `Refusing to install: the artifact carries \"${appRelativePath}\", a path no module may ship (a segment starting with \".\" or named \"node_modules\"). Nothing was written.`,\n );\n }\n\n // Path-must-stay-inside-saasRoot guard.\n const destAbs = path.resolve(saasRoot, appRelativePath);\n if (!(destAbs + path.sep).startsWith(saasRootAbs)) {\n throw new Error(\n `Refusing to fan out file \"${appRelativePath}\" — resolves outside saasRoot. Nothing was written.`,\n );\n }\n\n if (!isWithinAnyBoundary(saasRoot, appRelativePath, boundaries)) {\n throw new Error(\n `Refusing to fan out file \"${appRelativePath}\" — outside any declared manifest.boundaries.<layer>. Nothing was written.`,\n );\n }\n plannedFiles.push({ rel, appRelativePath, destAbs });\n }\n return plannedFiles;\n}\n\n/**\n * The validated application-relative paths (POSIX, sorted) a staged module would write. Throws on the\n * same artifact violations the fan-out refuses, before anything is written.\n */\nexport async function validatedStagedAppFiles(args: { saasRoot: string; extractDir: string; manifest: ModuleManifest }): Promise<string[]> {\n return (await planStagedAppFiles(args)).map((planned) => planned.appRelativePath).sort();\n}\n\n/**\n * Copy every file in `extractDir` (except the manifest) onto the\n * SaaS source tree at the same relative path. Each file is asserted\n * to live inside a declared `manifest.boundaries.<layer>` directory.\n *\n * Existing destination files are overwritten — the registry artifact\n * is the source of truth for an `add`/`update`. Caller is responsible\n * for cleaning up files that disappeared between versions (via the\n * lockfile entry's previous `files[]` snapshot).\n */\nexport async function fanOutToSaasSource(args: {\n saasRoot: string;\n extractDir: string;\n manifest: ModuleManifest;\n /**\n * The module id this fan-out is for. Used to skip the module's\n * own claims in the cross-module overlap guard (`findFileOwners`\n * naturally returns the calling module too — we only want to\n * warn on OTHER modules' claims).\n */\n moduleId: string;\n /**\n * Optional backup directory. When provided, every pre-existing\n * destination file is copied here before being overwritten so the\n * caller can restore on rollback (M9). Caller passes the same\n * directory it scopes for that operation; fan-out creates it lazily.\n */\n backupDir?: string;\n /**\n * Application-relative paths to validate but NOT write (#2016): files the application edited, or\n * deleted, that the caller decided to keep. They stay in `ownedFiles`. The decision is the caller's\n * (`installed-file-state.utils.ts`), so the fan-out itself knows nothing about hashes.\n */\n skipPaths?: ReadonlySet<string>;\n}): Promise<FanOutResult> {\n const { saasRoot, extractDir, manifest, moduleId, backupDir, skipPaths } = args;\n const writtenFiles: string[] = [];\n const backups = new Map<string, string>();\n const overlapWarnings: { path: string; otherModuleId: string }[] = [];\n const plannedFiles = await planStagedAppFiles({ saasRoot, extractDir, manifest });\n\n for (const { rel, appRelativePath, destAbs } of plannedFiles) {\n if (skipPaths?.has(appRelativePath)) continue;\n // M10: cross-module overlap guard on the WRITE path. Without\n // this an `update` of A would silently overwrite B's content\n // when both modules claim the same barrel file.\n const ownersMap = await RegistryLockfileService.findFileOwners({\n saasRoot,\n paths: [appRelativePath],\n excludeModuleId: moduleId,\n });\n const otherOwners = ownersMap.get(appRelativePath) ?? [];\n if (otherOwners.length > 0) {\n overlapWarnings.push({ path: appRelativePath, otherModuleId: otherOwners[0]! });\n }\n\n // M9: snapshot pre-existing destination content so the caller\n // can roll back on a partial failure. We copy the bytes — not\n // just the path — so even an interrupted overwrite leaves a\n // restorable backup behind.\n if (backupDir) {\n try {\n const stat = await fs.stat(destAbs).catch(() => null);\n if (stat && stat.isFile()) {\n const backupPath = path.join(backupDir, appRelativePath);\n await fs.mkdir(path.dirname(backupPath), { recursive: true });\n await fs.copyFile(destAbs, backupPath);\n backups.set(appRelativePath, backupPath);\n }\n } catch {\n // Best-effort backup; don't block the fan-out if the snapshot\n // path can't be created. The caller's rollback will simply\n // not have a restore source for this entry — better than\n // failing the whole operation on an FS quirk.\n }\n }\n\n await fs.mkdir(path.dirname(destAbs), { recursive: true });\n await fs.copyFile(path.join(extractDir, rel), destAbs);\n writtenFiles.push(appRelativePath);\n }\n\n writtenFiles.sort();\n const ownedFiles = plannedFiles.map((planned) => planned.appRelativePath).sort();\n return { writtenFiles, backups, overlapWarnings, ownedFiles };\n}\n\n/**\n * Resolve a path RECORDED in a lockfile entry (`files[]`) to the absolute file a delete may touch,\n * or throw.\n *\n * `remove` and `update` delete these paths, and the lockfile is a committed, merged, hand-editable\n * file — so the path is re-checked at the point of deletion rather than trusted because the schema\n * once parsed it: it must be a file a module can own (below a module layer root, no dot-segment or\n * `node_modules`), and it must resolve inside the application root. Callers delete a single FILE (`unlink`), never recursively.\n */\nexport function resolveRecordedModuleFile(saasRoot: string, recordedPath: string): string {\n const saasRootAbs = path.resolve(saasRoot) + path.sep;\n const absolute = path.resolve(saasRoot, recordedPath);\n if (!isModuleOwnedFilePath(recordedPath) || !(absolute + path.sep).startsWith(saasRootAbs) || absolute + path.sep === saasRootAbs) {\n throw new Error(\n `Refusing to delete \"${recordedPath}\": a lockfile module entry may only record files below a module layer root. The lockfile has been edited or merged into an unsafe state; fix the entry by hand.`,\n );\n }\n return absolute;\n}\n\n/**\n * Remove the directories that deleting `removedFiles` left EMPTY, walking up from each file's directory\n * and stopping at `stopAt` — never removing `stopAt` itself or anything above it. Returns how many\n * directories went.\n *\n * Why it exists: install creates a module's whole directory tree (`<layer root>/<dir>/resources/…`), and\n * every delete here is a single-file `unlink`, so a `remove` restored every FILE and left the tree of\n * empty directories behind — invisible to `git status`, still there in the application (measured on a\n * scaffolded application, 2026-09-27: eight empty directories after one module's removal). A package\n * manager's uninstall removes the directories it created; this is that half.\n *\n * Safe by construction: `rmdir` removes only an EMPTY directory, so a directory that still holds anything\n * — another module's file, the operator's own — stops the walk; and the walk is confined below `stopAt`.\n */\nexport async function pruneEmptiedDirectories(removedFiles: readonly string[], stopAt: string): Promise<number> {\n const boundary = path.resolve(stopAt);\n // Deepest first, so a parent is only tried after its children had their chance to go.\n const starts = [...new Set(removedFiles.map((file) => path.dirname(path.resolve(file))))]\n .sort((left, right) => right.split(path.sep).length - left.split(path.sep).length);\n let pruned = 0;\n for (const start of starts) {\n for (let dir = start; dir !== boundary && dir.startsWith(boundary + path.sep); dir = path.dirname(dir)) {\n try {\n await fs.rmdir(dir);\n pruned += 1;\n } catch (err) {\n const code = (err as NodeJS.ErrnoException).code;\n if (code === 'ENOENT') continue; // already gone (a sibling's walk removed it) — keep climbing\n break; // ENOTEMPTY, EACCES, …: something still lives here, so nothing above it is empty either\n }\n }\n }\n return pruned;\n}\n\n/**\n * {@link pruneEmptiedDirectories} for module-owned SOURCE files: each file's walk stops at its own module\n * layer root (`backend-api/src/modules`, …), so a layer's registry directory is never touched.\n */\nexport async function pruneEmptiedModuleDirectories(saasRoot: string, removedAppRelativeFiles: readonly string[]): Promise<number> {\n let pruned = 0;\n for (const root of new Set(Object.values(MODULE_BOUNDARY_LAYER_ROOTS))) {\n const inLayer = removedAppRelativeFiles.filter((file) => file.startsWith(`${root}/`));\n if (inLayer.length > 0) {\n pruned += await pruneEmptiedDirectories(inLayer.map((file) => path.resolve(saasRoot, file)), path.resolve(saasRoot, root));\n }\n }\n return pruned;\n}\n\n/**\n * M9: roll back a partially-applied fan-out by restoring each\n * destination from its backup. Files newly created (no backup)\n * stay on disk — the caller is expected to delete them via the\n * `writtenFiles` list separately, since the rollback can't tell\n * which entries existed before.\n */\nexport async function rollbackFanOut(args: {\n saasRoot: string;\n result: FanOutResult;\n}): Promise<void> {\n const { saasRoot, result } = args;\n for (const appRelativePath of result.writtenFiles) {\n const destAbs = path.resolve(saasRoot, appRelativePath);\n const backupPath = result.backups.get(appRelativePath);\n if (backupPath) {\n try {\n await fs.copyFile(backupPath, destAbs);\n } catch {\n // Best-effort; the caller surfaces the original error.\n }\n } else {\n // No backup → file was newly created → unlink to leave the\n // SaaS source in its pre-fan-out state.\n try {\n await fs.unlink(destAbs);\n } catch {\n /* ignore */\n }\n }\n }\n // The directories the fan-out created for those new files go too. Best-effort, like the restores above.\n // One inexactness, stated: a directory that was already EMPTY before the install also goes, since\n // nothing distinguishes it once the new file is removed. Git cannot see an empty directory either, so\n // the committed tree is exactly as it was.\n await pruneEmptiedModuleDirectories(saasRoot, result.writtenFiles.filter((file) => !result.backups.has(file))).catch(() => 0);\n}\n\n/**\n * Read the manifest written by the publisher into the staging tree.\n * The staged manifest is the source of truth at fan-out time —\n * `manifest.boundaries` recorded there decides which app paths the\n * fan-out is allowed to write.\n */\nexport async function readStagedManifest(extractDir: string): Promise<ModuleManifest> {\n const manifestPath = path.join(extractDir, MANIFEST_FILE_NAME);\n const raw = await fs.readFile(manifestPath, 'utf8');\n // PARSED, not cast: the boundaries this returns decide what the fan-out may write, so the\n // manifest must pass the same contract the registry server enforced at publish — every install\n // path reads it through here. A refusal reads as sentences, not a JSON dump of issues: an unknown `kind` is a newer\n // framework's module, and its message names the upgrade (#2861).\n const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));\n if (!parsed.success) throw new Error(`The module's ${MANIFEST_FILE_NAME} is not one this CLI can install:\\n${z.prettifyError(parsed.error)}`);\n return parsed.data;\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  export * from './saas-root-required.error';
2
2
  export * from './registry-command.utils';
3
3
  export * from './registry-credentials.service';
4
- export * from './registry-config-resolver.service';
5
4
  export * from './artifact-extractor.utils';
6
5
  export * from './boundary-fanout.utils';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export * from './saas-root-required.error.js';
2
2
  export * from './registry-command.utils.js';
3
3
  export * from './registry-credentials.service.js';
4
- export * from './registry-config-resolver.service.js';
5
4
  export * from './artifact-extractor.utils.js';
6
5
  export * from './boundary-fanout.utils.js';
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './saas-root-required.error';\nexport * from './registry-command.utils';\nexport * from './registry-credentials.service';\nexport * from './registry-config-resolver.service';\nexport * from './artifact-extractor.utils';\nexport * from './boundary-fanout.utils';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './saas-root-required.error';\nexport * from './registry-command.utils';\nexport * from './registry-credentials.service';\nexport * from './artifact-extractor.utils';\nexport * from './boundary-fanout.utils';\n"]}
@@ -0,0 +1,25 @@
1
+ /** The specifier a host imports an installed provider's backend module by: `<scope>/provider-<ref>/backend`. */
2
+ export declare function installedProviderBackendSpecifier(scope: string, ref: string): string;
3
+ /**
4
+ * Find the specifier from the working directory, or from any package inside it.
5
+ *
6
+ * A provider package is a dependency of a RUNTIME HOST — Wonder Todos declares `@wonder-todos/provider-asana`
7
+ * on `backend-api`, not on the application root — so resolving only from the cwd answers "no" while the answer is "yes, in
8
+ * the backend". Each candidate is probed by RESOLUTION rather than by reading manifests: a manifest
9
+ * can declare a dependency that is not installed, and what a command reports on is what a running
10
+ * host would actually load.
11
+ *
12
+ * One level deep, because that is where an application's runtime hosts live. Deeper would start
13
+ * walking `node_modules` trees to answer a question about the application's own packages.
14
+ */
15
+ export declare function resolveFromAnyRuntimeHost(specifier: string, root?: string): {
16
+ readonly modulePath: string;
17
+ readonly host: string;
18
+ } | undefined;
19
+ /**
20
+ * The provider module an installed package's backend facet carries, read from its conventional
21
+ * `backendProviderFragment` export — the export a host loads a provider package by — so a command sees the module
22
+ * exactly as a running backend does. `undefined` when the facet exports no fragment or the fragment holds no module.
23
+ */
24
+ export declare function providerModuleOf(namespace: Readonly<Record<string, unknown>>): Record<string, unknown> | undefined;
25
+ //# sourceMappingURL=installed-provider-module.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installed-provider-module.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/installed-provider-module.service.ts"],"names":[],"mappings":"AAWA,gHAAgH;AAChH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,GAAE,MAAsB,GAAG;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAU7J;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAIlH"}
@@ -0,0 +1,56 @@
1
+ import { readdirSync } from 'node:fs';
2
+ import { createRequire } from 'node:module';
3
+ import { join, relative } from 'node:path';
4
+ import { ProviderModuleFacet } from '@wildo-ai/platform-config-lib';
5
+ import { providerFacetPackageName } from '../../services/registry/provider-module-identity.service.js';
6
+ /** The facet subpath that carries a provider package's backend module (`<scope>/provider-<ref>/backend`). */
7
+ const BACKEND_FACET_SUBPATH = 'backend';
8
+ /** The specifier a host imports an installed provider's backend module by: `<scope>/provider-<ref>/backend`. */
9
+ export function installedProviderBackendSpecifier(scope, ref) {
10
+ return `${providerFacetPackageName(scope, ref, ProviderModuleFacet.BACKEND)}/${BACKEND_FACET_SUBPATH}`;
11
+ }
12
+ /**
13
+ * Find the specifier from the working directory, or from any package inside it.
14
+ *
15
+ * A provider package is a dependency of a RUNTIME HOST — Wonder Todos declares `@wonder-todos/provider-asana`
16
+ * on `backend-api`, not on the application root — so resolving only from the cwd answers "no" while the answer is "yes, in
17
+ * the backend". Each candidate is probed by RESOLUTION rather than by reading manifests: a manifest
18
+ * can declare a dependency that is not installed, and what a command reports on is what a running
19
+ * host would actually load.
20
+ *
21
+ * One level deep, because that is where an application's runtime hosts live. Deeper would start
22
+ * walking `node_modules` trees to answer a question about the application's own packages.
23
+ */
24
+ export function resolveFromAnyRuntimeHost(specifier, root = process.cwd()) {
25
+ for (const candidate of [root, ...listImmediateDirectories(root)]) {
26
+ try {
27
+ const modulePath = createRequire(`${candidate}/`).resolve(specifier);
28
+ return { modulePath, host: candidate === root ? '.' : relative(root, candidate) };
29
+ }
30
+ catch {
31
+ // Not installed for this host — the next one may have it, and none having it is the real answer.
32
+ }
33
+ }
34
+ return undefined;
35
+ }
36
+ /**
37
+ * The provider module an installed package's backend facet carries, read from its conventional
38
+ * `backendProviderFragment` export — the export a host loads a provider package by — so a command sees the module
39
+ * exactly as a running backend does. `undefined` when the facet exports no fragment or the fragment holds no module.
40
+ */
41
+ export function providerModuleOf(namespace) {
42
+ const fragment = namespace.backendProviderFragment;
43
+ const providerModule = fragment?.modules === undefined ? undefined : [...fragment.modules.values()][0];
44
+ return typeof providerModule === 'object' && providerModule !== null ? providerModule : undefined;
45
+ }
46
+ function listImmediateDirectories(root) {
47
+ try {
48
+ return readdirSync(root, { withFileTypes: true })
49
+ .filter((entry) => entry.isDirectory() && !entry.name.startsWith('.') && entry.name !== 'node_modules')
50
+ .map((entry) => join(root, entry.name));
51
+ }
52
+ catch {
53
+ return [];
54
+ }
55
+ }
56
+ //# sourceMappingURL=installed-provider-module.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installed-provider-module.service.js","sourceRoot":"","sources":["../../../../../../src/services/registry/installed-provider-module.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAEzG,6GAA6G;AAC7G,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC,gHAAgH;AAChH,MAAM,UAAU,iCAAiC,CAAC,KAAa,EAAE,GAAW;IAC1E,OAAO,GAAG,wBAAwB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI,qBAAqB,EAAE,CAAC;AACzG,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAAiB,EAAE,OAAe,OAAO,CAAC,GAAG,EAAE;IACvF,KAAK,MAAM,SAAS,IAAI,CAAC,IAAI,EAAE,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QAClE,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,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\nimport { ProviderModuleFacet } from '@wildo-ai/platform-config-lib';\n\nimport { providerFacetPackageName } from '~wildo-cli/services/registry/provider-module-identity.service';\n\n/** The facet subpath that carries a provider package's backend module (`<scope>/provider-<ref>/backend`). */\nconst BACKEND_FACET_SUBPATH = 'backend';\n\n/** The specifier a host imports an installed provider's backend module by: `<scope>/provider-<ref>/backend`. */\nexport function installedProviderBackendSpecifier(scope: string, ref: string): string {\n return `${providerFacetPackageName(scope, ref, ProviderModuleFacet.BACKEND)}/${BACKEND_FACET_SUBPATH}`;\n}\n\n/**\n * Find the specifier from the working directory, or from any package inside it.\n *\n * A provider package is a dependency of a RUNTIME HOST — Wonder Todos declares `@wonder-todos/provider-asana`\n * on `backend-api`, not on the application root — so resolving only from the cwd answers \"no\" while the answer is \"yes, in\n * the backend\". Each candidate is probed by RESOLUTION rather than by reading manifests: a manifest\n * can declare a dependency that is not installed, and what a command reports on is what a running\n * host would actually load.\n *\n * One level deep, because that is where an application's runtime hosts live. Deeper would start\n * walking `node_modules` trees to answer a question about the application's own packages.\n */\nexport function resolveFromAnyRuntimeHost(specifier: string, root: string = process.cwd()): { readonly modulePath: string; readonly host: string } | undefined {\n for (const candidate of [root, ...listImmediateDirectories(root)]) {\n try {\n const modulePath = createRequire(`${candidate}/`).resolve(specifier);\n return { modulePath, host: candidate === root ? '.' : relative(root, candidate) };\n } catch {\n // Not installed for this host — the next one may have it, and none having it is the real answer.\n }\n }\n return undefined;\n}\n\n/**\n * The provider module an installed package's backend facet carries, read from its conventional\n * `backendProviderFragment` export — the export a host loads a provider package by — so a command sees the module\n * exactly as a running backend does. `undefined` when the facet exports no fragment or the fragment holds no module.\n */\nexport function providerModuleOf(namespace: Readonly<Record<string, unknown>>): Record<string, unknown> | undefined {\n const fragment = namespace.backendProviderFragment as { modules?: ReadonlyMap<string, unknown> } | undefined;\n const providerModule = fragment?.modules === undefined ? undefined : [...fragment.modules.values()][0];\n return typeof providerModule === 'object' && providerModule !== null ? (providerModule as Record<string, unknown>) : undefined;\n}\n\nfunction listImmediateDirectories(root: string): string[] {\n try {\n return readdirSync(root, { withFileTypes: true })\n .filter((entry) => entry.isDirectory() && !entry.name.startsWith('.') && entry.name !== 'node_modules')\n .map((entry) => join(root, entry.name));\n } catch {\n return [];\n }\n}\n"]}