@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
@@ -1 +1 @@
1
- {"version":3,"file":"kind.service.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/k8s/kind.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,I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,EAAE,CACpB,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,YAAY;QACd,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * Kind Service — Kind cluster lifecycle and local registry management.\n *\n * Static stateless class (consistent with ServiceAddressResolver, PlatformEnvVarsBuilder).\n * Focused exclusively on Kind cluster operations; kubectl/helm wrappers\n * live in k8s-operations.service.ts (decision D5/D7).\n */\n\nimport { execSync, spawn } from 'child_process';\nimport { existsSync, mkdirSync } from 'fs';\nimport { resolve, join } from 'path';\n\nimport { DockerUtils } from '~wildo-cli/services/deployment/docker/docker.service';\nimport { KIND_CLUSTER_DEFAULTS, resolveFrameworkLayout } from '@wildo-ai/platform-config-lib';\nimport { KIND_MOUNT_PATHS } from '~wildo-cli/services/deployment/k8s/k8s.schemas';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface ClusterStatus {\n exists: boolean;\n running: boolean;\n nodesReady: boolean;\n nodes: NodeInfo[];\n registry: {\n exists: boolean;\n running: boolean;\n accessible: boolean;\n };\n error?: string;\n}\n\nexport interface NodeInfo {\n name: string;\n running: boolean;\n}\n\nexport interface HostMountPaths {\n wildoAi: string;\n appsCustom: string | null;\n localData: string;\n}\n\ntype OperationResult = { success: boolean; error?: string };\n\n// ============================================================================\n// Kind Service\n// ============================================================================\n\nexport class KindService {\n\n // --------------------------------------------------------------------------\n // Cluster queries\n // --------------------------------------------------------------------------\n\n static clusterExists(): boolean {\n try {\n const clusters = execSync('kind get clusters 2>/dev/null', { encoding: 'utf8' });\n return clusters.split('\\n').some(c => c.trim() === KIND_CLUSTER_DEFAULTS.CLUSTER_NAME);\n } catch {\n return false;\n }\n }\n\n static getClusterNodes(): NodeInfo[] {\n try {\n const output = execSync(\n `kind get nodes --name \"${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}\" 2>/dev/null`,\n { encoding: 'utf8' },\n );\n return output\n .split('\\n')\n .filter(n => n.trim())\n .map(name => ({\n name: name.trim(),\n running: DockerUtils.isContainerRunning(name.trim()),\n }));\n } catch {\n return [];\n }\n }\n\n static getClusterStatus(): ClusterStatus {\n const docker = DockerUtils.checkDockerRunning();\n if (!docker.running) {\n return {\n exists: false,\n running: false,\n nodesReady: false,\n nodes: [],\n registry: { exists: false, running: false, accessible: false },\n error: docker.error ?? 'Docker is not running',\n };\n }\n\n const exists = KindService.clusterExists();\n const registryRunning = KindService.isRegistryRunning();\n\n if (!exists) {\n return {\n exists: false,\n running: false,\n nodesReady: false,\n nodes: [],\n registry: { exists: registryRunning, running: registryRunning, accessible: false },\n };\n }\n\n const nodes = KindService.getClusterNodes();\n const allNodesRunning = nodes.length > 0 && nodes.every(n => n.running);\n\n let nodesReady = false;\n if (allNodesRunning) {\n try {\n execSync(\n `kubectl --context=\"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" get nodes 2>/dev/null`,\n { stdio: 'ignore' },\n );\n nodesReady = true;\n } catch {\n nodesReady = false;\n }\n }\n\n let registryAccessible = false;\n if (registryRunning) {\n try {\n execSync(`curl -sf http://localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}/v2/`, { stdio: 'ignore' });\n registryAccessible = true;\n } catch {\n registryAccessible = false;\n }\n }\n\n return {\n exists,\n running: allNodesRunning,\n nodesReady,\n nodes,\n registry: { exists: registryRunning, running: registryRunning, accessible: registryAccessible },\n };\n }\n\n // --------------------------------------------------------------------------\n // Cluster lifecycle\n // --------------------------------------------------------------------------\n\n static createCluster(\n frameworkRoot: string,\n appLocalDataRoot: string,\n onProgress?: (msg: string) => void,\n ): OperationResult {\n const docker = DockerUtils.checkDockerRunning();\n if (!docker.running) {\n return { success: false, error: docker.error ?? 'Docker is not running' };\n }\n\n if (KindService.clusterExists()) {\n return { success: false, error: `Cluster '${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}' already exists. Delete it first.` };\n }\n\n // 1. Registry\n onProgress?.('Setting up local registry...');\n if (!KindService.isRegistryRunning()) {\n const regResult = KindService.startRegistry();\n if (!regResult.success) {\n return { success: false, error: `Failed to start registry: ${regResult.error}` };\n }\n }\n onProgress?.(`Registry running on localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`);\n\n // 2. Kind cluster with host mounts\n const hostPaths = KindService.getHostMountPaths(frameworkRoot, appLocalDataRoot);\n onProgress?.('Creating kind cluster with host mounts...');\n onProgress?.(` wildo-ai: ${hostPaths.wildoAi} -> ${KIND_MOUNT_PATHS.wildoAi}`);\n onProgress?.(` local-data: ${hostPaths.localData} -> ${KIND_MOUNT_PATHS.localData}`);\n if (hostPaths.appsCustom) {\n onProgress?.(` apps-custom: ${hostPaths.appsCustom} -> ${KIND_MOUNT_PATHS.appsCustom}`);\n } else {\n onProgress?.(' apps-custom not found (custom app-library host mounts unavailable)');\n }\n\n const kindConfig = KindService.generateKindConfig(hostPaths);\n try {\n execSync(`echo '${kindConfig}' | kind create cluster --name \"${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}\" --config=-`, {\n stdio: 'inherit',\n });\n } catch (error) {\n return { success: false, error: `Failed to create cluster: ${ErrorUtils.extractErrorMessage(error)}` };\n }\n onProgress?.(`Cluster '${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}' created`);\n\n // 3. Configure containerd on each node for the local registry\n onProgress?.('Configuring nodes to use local registry...');\n KindService.configureContainerdRegistry();\n onProgress?.('Nodes configured');\n\n // 4. Connect registry to kind network\n onProgress?.('Connecting registry to cluster network...');\n KindService.connectRegistryToKindNetwork();\n onProgress?.('Registry connected');\n\n // 5. Registry ConfigMap (kube-public)\n onProgress?.('Creating registry ConfigMap...');\n KindService.applyRegistryConfigMap();\n onProgress?.('Registry ConfigMap created');\n\n // 6. Custom StorageClass\n onProgress?.('Creating custom StorageClass for local data persistence...');\n KindService.applyStorageClass(frameworkRoot);\n onProgress?.('StorageClass created');\n\n return { success: true };\n }\n\n static startCluster(onProgress?: (msg: string) => void): OperationResult {\n const docker = DockerUtils.checkDockerRunning();\n if (!docker.running) {\n return { success: false, error: docker.error ?? 'Docker is not running' };\n }\n\n if (!KindService.clusterExists()) {\n return { success: false, error: `Cluster '${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}' not found. Create it first.` };\n }\n\n const nodes = KindService.getClusterNodes();\n for (const node of nodes) {\n if (!node.running) {\n onProgress?.(`Starting ${node.name}...`);\n const result = DockerUtils.startContainer(node.name);\n if (!result.success) {\n return { success: false, error: `Failed to start ${node.name}: ${result.error}` };\n }\n }\n }\n\n if (!KindService.isRegistryRunning()) {\n onProgress?.('Starting registry...');\n const result = KindService.startRegistry();\n if (!result.success) {\n onProgress?.(`Warning: Failed to start registry: ${result.error}`);\n }\n }\n\n KindService.connectRegistryToKindNetwork();\n\n try {\n execSync(`kubectl config use-context \"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" 2>/dev/null`, { stdio: 'ignore' });\n } catch { /* context might not exist yet */ }\n\n return { success: true };\n }\n\n static stopCluster(onProgress?: (msg: string) => void): OperationResult {\n const nodes = KindService.getClusterNodes();\n for (const node of nodes) {\n if (node.running) {\n onProgress?.(`Stopping ${node.name}...`);\n DockerUtils.stopContainer(node.name);\n }\n }\n\n if (KindService.isRegistryRunning()) {\n onProgress?.('Stopping registry...');\n DockerUtils.stopContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n return { success: true };\n }\n\n static deleteCluster(onProgress?: (msg: string) => void): OperationResult {\n onProgress?.('Deleting kind cluster...');\n try {\n execSync(`kind delete cluster --name \"${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}\" 2>/dev/null`, { stdio: 'ignore' });\n } catch { /* cluster may not exist */ }\n\n onProgress?.('Removing registry...');\n KindService.removeRegistry();\n\n return { success: true };\n }\n\n static async waitForNodesReady(\n timeoutSeconds = 120,\n onProgress?: (msg: string) => void,\n ): Promise<boolean> {\n return new Promise(resolvePromise => {\n const child = spawn('kubectl', [\n '--context', KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT,\n 'wait', '--for=condition=ready', 'node', '--all',\n `--timeout=${timeoutSeconds}s`,\n ]);\n\n child.stdout.on('data', (data: Buffer) => onProgress?.(data.toString().trim()));\n child.stderr.on('data', (data: Buffer) => onProgress?.(data.toString().trim()));\n child.on('close', (code: number | null) => resolvePromise(code === 0));\n });\n }\n\n // --------------------------------------------------------------------------\n // DEV mode mount checks\n // --------------------------------------------------------------------------\n\n static checkDevModeMounts(): { hasMounts: boolean; details: string[] } {\n const details: string[] = [];\n\n if (!KindService.clusterExists()) {\n return { hasMounts: false, details: ['Cluster does not exist'] };\n }\n\n const nodes = KindService.getClusterNodes();\n if (nodes.length === 0) {\n return { hasMounts: false, details: ['No nodes found'] };\n }\n\n const workerNode = nodes.find(n => n.name.includes('worker')) ?? nodes[0];\n if (!workerNode) {\n return { hasMounts: false, details: ['No nodes available to check'] };\n }\n\n let criticalMounted = true;\n\n const checkMount = (mountPath: string, label: string, critical: boolean) => {\n try {\n execSync(`docker exec \"${workerNode.name}\" test -d \"${mountPath}\"`, { stdio: 'ignore' });\n details.push(`${mountPath} mounted (${label})`);\n } catch {\n details.push(`${mountPath} NOT mounted${critical ? '' : ' (optional)'}`);\n if (critical) criticalMounted = false;\n }\n };\n\n checkMount(KIND_MOUNT_PATHS.wildoAi, 'source code', true);\n checkMount(KIND_MOUNT_PATHS.localData, 'persistent data', true);\n checkMount(KIND_MOUNT_PATHS.appsCustom, 'custom apps', false);\n\n return { hasMounts: criticalMounted, details };\n }\n\n static getMountedLocalDataRoots(): string[] {\n const nodes = KindService.getClusterNodes();\n return nodes\n .map((node) => KindService.inspectMountedHostPath(node.name, KIND_MOUNT_PATHS.localData))\n .filter((path): path is string => path !== null);\n }\n\n static localDataMountMatches(expectedLocalDataRoot: string): boolean {\n const mountedRoots = KindService.getMountedLocalDataRoots();\n if (mountedRoots.length === 0) {\n return false;\n }\n\n const expectedRoot = resolve(expectedLocalDataRoot);\n return mountedRoots.every((mountedRoot) => mountedRoot === expectedRoot);\n }\n\n // --------------------------------------------------------------------------\n // Registry operations (from old docker.ts — Kind-specific, decision D5)\n // --------------------------------------------------------------------------\n\n static isRegistryRunning(): boolean {\n return DockerUtils.isContainerRunning(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n static checkRegistryAccessible(): boolean {\n try {\n execSync(`curl -sf http://localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}/v2/`, { stdio: 'ignore' });\n return true;\n } catch {\n return false;\n }\n }\n\n static startRegistry(): OperationResult {\n if (DockerUtils.containerExists(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME)) {\n return DockerUtils.startContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n try {\n execSync(\n `docker run -d --restart=always -p \"127.0.0.1:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}:5000\" --network bridge --name \"${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}\" registry:2`,\n { stdio: 'ignore' },\n );\n return { success: true };\n } catch (error) {\n return { success: false, error: ErrorUtils.extractErrorMessage(error) };\n }\n }\n\n static stopRegistry(): OperationResult {\n return DockerUtils.stopContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n static removeRegistry(): OperationResult {\n return DockerUtils.removeContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n static connectRegistryToKindNetwork(): OperationResult {\n try {\n const networks = execSync(\n `docker inspect -f '{{json .NetworkSettings.Networks}}' \"${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}\" 2>/dev/null`,\n { encoding: 'utf8' },\n );\n\n if (networks.includes('\"kind\"')) {\n return { success: true };\n }\n\n execSync(`docker network connect \"kind\" \"${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}\" 2>/dev/null`, { stdio: 'ignore' });\n return { success: true };\n } catch {\n return { success: true };\n }\n }\n\n static listRegistryImages(): string[] {\n try {\n const result = execSync(`curl -s http://localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}/v2/_catalog`, {\n encoding: 'utf8',\n });\n const data = JSON.parse(result);\n return data.repositories ?? [];\n } catch {\n return [];\n }\n }\n\n // --------------------------------------------------------------------------\n // Private helpers\n // --------------------------------------------------------------------------\n\n private static inspectMountedHostPath(containerName: string, containerPath: string): string | null {\n try {\n const mountedPath = execSync(\n `docker inspect -f '{{range .Mounts}}{{if eq .Destination \"${containerPath}\"}}{{println .Source}}{{end}}{{end}}' \"${containerName}\" 2>/dev/null`,\n { encoding: 'utf8' },\n ).trim();\n return mountedPath.length > 0 ? resolve(mountedPath) : null;\n } catch {\n return null;\n }\n }\n\n private static getHostMountPaths(frameworkRoot: string, appLocalDataRoot: string): HostMountPaths {\n const appsCustomPath = resolve(frameworkRoot, '..', 'apps-custom');\n const localDataPath = resolve(appLocalDataRoot);\n\n mkdirSync(localDataPath, { recursive: true });\n\n return {\n wildoAi: frameworkRoot,\n appsCustom: existsSync(appsCustomPath) ? appsCustomPath : null,\n localData: localDataPath,\n };\n }\n\n private static generateKindConfig(hostPaths: HostMountPaths): string {\n const buildNodeMounts = (role: string): string => {\n let mounts = `- role: ${role}\n extraMounts:\n - hostPath: ${hostPaths.wildoAi}\n containerPath: ${KIND_MOUNT_PATHS.wildoAi}\n readOnly: false\n - hostPath: ${hostPaths.localData}\n containerPath: ${KIND_MOUNT_PATHS.localData}\n readOnly: false`;\n\n if (hostPaths.appsCustom) {\n mounts += `\n - hostPath: ${hostPaths.appsCustom}\n containerPath: ${KIND_MOUNT_PATHS.appsCustom}\n readOnly: false`;\n }\n\n if (role === 'control-plane') {\n mounts += `\n extraPortMappings:\n - containerPort: 80\n hostPort: 80\n protocol: TCP\n - containerPort: 443\n hostPort: 443\n protocol: TCP`;\n }\n\n return mounts;\n };\n\n return `kind: Cluster\napiVersion: kind.x-k8s.io/v1alpha4\ncontainerdConfigPatches:\n- |-\n [plugins.\"io.containerd.grpc.v1.cri\".registry]\n config_path = \"/etc/containerd/certs.d\"\nnodes:\n${buildNodeMounts('control-plane')}\n${buildNodeMounts('worker')}\n${buildNodeMounts('worker')}\n`;\n }\n\n private static configureContainerdRegistry(): void {\n const nodes = KindService.getClusterNodes();\n const registryDir = `/etc/containerd/certs.d/localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`;\n const hostsToml = `[host.\"http://${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}:5000\"]`;\n\n for (const node of nodes) {\n try {\n execSync(`docker exec \"${node.name}\" mkdir -p \"${registryDir}\"`, { stdio: 'ignore' });\n execSync(\n `echo '${hostsToml}' | docker exec -i \"${node.name}\" cp /dev/stdin \"${registryDir}/hosts.toml\"`,\n { stdio: 'ignore' },\n );\n } catch {\n // non-fatal: node may not be ready yet\n }\n }\n }\n\n private static applyRegistryConfigMap(): void {\n const yaml = `apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: local-registry-hosting\n namespace: kube-public\ndata:\n localRegistryHosting.v1: |\n host: \"localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}\"\n help: \"https://kind.sigs.k8s.io/docs/user/local-registry/\"\n`;\n\n try {\n execSync(\n `echo '${yaml}' | kubectl --context=\"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" apply -f -`,\n { stdio: 'ignore' },\n );\n } catch {\n // non-fatal\n }\n }\n\n private static applyStorageClass(frameworkRoot: string): void {\n const storageClassPath = join(\n resolveFrameworkLayout(frameworkRoot).k8sTemplatesHome,\n 'storage',\n 'local',\n 'storage-class.yaml',\n );\n try {\n if (existsSync(storageClassPath)) {\n execSync(\n `kubectl --context=\"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" apply -f \"${storageClassPath}\"`,\n { stdio: 'ignore' },\n );\n }\n } catch {\n // non-fatal\n }\n }\n}\n"]}
1
+ {"version":3,"file":"kind.service.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/k8s/kind.service.ts"],"names":[],"mappings":"AAAA;;;;;;G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C,aAAa,CAAC,CAAC,gBAAgB,EACtD,SAAS,EACT,OAAO,EACP,oBAAoB,CACrB,CAAC;QACF,IAAI,CAAC;YACH,IAAI,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBACjC,QAAQ,CACN,sBAAsB,qBAAqB,CAAC,eAAe,eAAe,gBAAgB,GAAG,EAC7F,EAAE,KAAK,EAAE,QAAQ,EAAE,CACpB,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,YAAY;QACd,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * Kind Service — Kind cluster lifecycle and local registry management.\n *\n * Static stateless class (consistent with ServiceAddressResolver, PlatformEnvVarsBuilder).\n * Focused exclusively on Kind cluster operations; kubectl/helm wrappers\n * live in k8s-operations.service.ts (decision D5/D7).\n */\n\nimport { execSync, spawn } from 'child_process';\nimport { existsSync, mkdirSync } from 'fs';\nimport { resolve, join } from 'path';\n\nimport { DockerUtils } from '~wildo-cli/services/deployment/docker/docker.service';\nimport { KIND_CLUSTER_DEFAULTS, resolveFrameworkLayout } from '@wildo-ai/platform-config-lib';\nimport { KIND_MOUNT_PATHS } from '~wildo-cli/services/deployment/k8s/k8s.schemas';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface ClusterStatus {\n exists: boolean;\n running: boolean;\n nodesReady: boolean;\n nodes: NodeInfo[];\n registry: {\n exists: boolean;\n running: boolean;\n accessible: boolean;\n };\n error?: string;\n}\n\nexport interface NodeInfo {\n name: string;\n running: boolean;\n}\n\n/**\n * What the Kind nodes mount from the host. Only the application's backing-service data: the statically provisioned\n * PVs (`storage/local/persistent-volumes.yaml.hbs`) bind `/mnt/local-data/<service>`.\n *\n * Until #2989 the nodes also mounted the framework checkout at `/mnt/wildo-ai` and its sibling `apps-custom` tree at\n * `/mnt/apps-custom`, read by nothing but the platform deployments' dev-mode `hostPath` dist overlay, which mounted\n * checkout `dist` trees over the published image and could not start (some of its sources never existed). With the\n * overlay gone the two mounts had no reader, so they went too. A cluster created before #2989 still carries them;\n * nothing reads them, so it need not be recreated.\n */\nexport interface HostMountPaths {\n localData: string;\n}\n\ntype OperationResult = { success: boolean; error?: string };\n\n// ============================================================================\n// Kind Service\n// ============================================================================\n\nexport class KindService {\n\n // --------------------------------------------------------------------------\n // Cluster queries\n // --------------------------------------------------------------------------\n\n static clusterExists(): boolean {\n try {\n const clusters = execSync('kind get clusters 2>/dev/null', { encoding: 'utf8' });\n return clusters.split('\\n').some(c => c.trim() === KIND_CLUSTER_DEFAULTS.CLUSTER_NAME);\n } catch {\n return false;\n }\n }\n\n static getClusterNodes(): NodeInfo[] {\n try {\n const output = execSync(\n `kind get nodes --name \"${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}\" 2>/dev/null`,\n { encoding: 'utf8' },\n );\n return output\n .split('\\n')\n .filter(n => n.trim())\n .map(name => ({\n name: name.trim(),\n running: DockerUtils.isContainerRunning(name.trim()),\n }));\n } catch {\n return [];\n }\n }\n\n static getClusterStatus(): ClusterStatus {\n const docker = DockerUtils.checkDockerRunning();\n if (!docker.running) {\n return {\n exists: false,\n running: false,\n nodesReady: false,\n nodes: [],\n registry: { exists: false, running: false, accessible: false },\n error: docker.error ?? 'Docker is not running',\n };\n }\n\n const exists = KindService.clusterExists();\n const registryRunning = KindService.isRegistryRunning();\n\n if (!exists) {\n return {\n exists: false,\n running: false,\n nodesReady: false,\n nodes: [],\n registry: { exists: registryRunning, running: registryRunning, accessible: false },\n };\n }\n\n const nodes = KindService.getClusterNodes();\n const allNodesRunning = nodes.length > 0 && nodes.every(n => n.running);\n\n let nodesReady = false;\n if (allNodesRunning) {\n try {\n execSync(\n `kubectl --context=\"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" get nodes 2>/dev/null`,\n { stdio: 'ignore' },\n );\n nodesReady = true;\n } catch {\n nodesReady = false;\n }\n }\n\n let registryAccessible = false;\n if (registryRunning) {\n try {\n execSync(`curl -sf http://localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}/v2/`, { stdio: 'ignore' });\n registryAccessible = true;\n } catch {\n registryAccessible = false;\n }\n }\n\n return {\n exists,\n running: allNodesRunning,\n nodesReady,\n nodes,\n registry: { exists: registryRunning, running: registryRunning, accessible: registryAccessible },\n };\n }\n\n // --------------------------------------------------------------------------\n // Cluster lifecycle\n // --------------------------------------------------------------------------\n\n static createCluster(\n frameworkRoot: string,\n appLocalDataRoot: string,\n onProgress?: (msg: string) => void,\n ): OperationResult {\n const docker = DockerUtils.checkDockerRunning();\n if (!docker.running) {\n return { success: false, error: docker.error ?? 'Docker is not running' };\n }\n\n if (KindService.clusterExists()) {\n return { success: false, error: `Cluster '${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}' already exists. Delete it first.` };\n }\n\n // 1. Registry\n onProgress?.('Setting up local registry...');\n if (!KindService.isRegistryRunning()) {\n const regResult = KindService.startRegistry();\n if (!regResult.success) {\n return { success: false, error: `Failed to start registry: ${regResult.error}` };\n }\n }\n onProgress?.(`Registry running on localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`);\n\n // 2. Kind cluster with host mounts\n const hostPaths = KindService.getHostMountPaths(appLocalDataRoot);\n onProgress?.('Creating kind cluster with host mounts...');\n onProgress?.(` local-data: ${hostPaths.localData} -> ${KIND_MOUNT_PATHS.localData}`);\n\n const kindConfig = KindService.generateKindConfig(hostPaths);\n try {\n execSync(`echo '${kindConfig}' | kind create cluster --name \"${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}\" --config=-`, {\n stdio: 'inherit',\n });\n } catch (error) {\n return { success: false, error: `Failed to create cluster: ${ErrorUtils.extractErrorMessage(error)}` };\n }\n onProgress?.(`Cluster '${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}' created`);\n\n // 3. Configure containerd on each node for the local registry\n onProgress?.('Configuring nodes to use local registry...');\n KindService.configureContainerdRegistry();\n onProgress?.('Nodes configured');\n\n // 4. Connect registry to kind network\n onProgress?.('Connecting registry to cluster network...');\n KindService.connectRegistryToKindNetwork();\n onProgress?.('Registry connected');\n\n // 5. Registry ConfigMap (kube-public)\n onProgress?.('Creating registry ConfigMap...');\n KindService.applyRegistryConfigMap();\n onProgress?.('Registry ConfigMap created');\n\n // 6. Custom StorageClass\n onProgress?.('Creating custom StorageClass for local data persistence...');\n KindService.applyStorageClass(frameworkRoot);\n onProgress?.('StorageClass created');\n\n return { success: true };\n }\n\n static startCluster(onProgress?: (msg: string) => void): OperationResult {\n const docker = DockerUtils.checkDockerRunning();\n if (!docker.running) {\n return { success: false, error: docker.error ?? 'Docker is not running' };\n }\n\n if (!KindService.clusterExists()) {\n return { success: false, error: `Cluster '${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}' not found. Create it first.` };\n }\n\n const nodes = KindService.getClusterNodes();\n for (const node of nodes) {\n if (!node.running) {\n onProgress?.(`Starting ${node.name}...`);\n const result = DockerUtils.startContainer(node.name);\n if (!result.success) {\n return { success: false, error: `Failed to start ${node.name}: ${result.error}` };\n }\n }\n }\n\n if (!KindService.isRegistryRunning()) {\n onProgress?.('Starting registry...');\n const result = KindService.startRegistry();\n if (!result.success) {\n onProgress?.(`Warning: Failed to start registry: ${result.error}`);\n }\n }\n\n KindService.connectRegistryToKindNetwork();\n\n try {\n execSync(`kubectl config use-context \"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" 2>/dev/null`, { stdio: 'ignore' });\n } catch { /* context might not exist yet */ }\n\n return { success: true };\n }\n\n static stopCluster(onProgress?: (msg: string) => void): OperationResult {\n const nodes = KindService.getClusterNodes();\n for (const node of nodes) {\n if (node.running) {\n onProgress?.(`Stopping ${node.name}...`);\n DockerUtils.stopContainer(node.name);\n }\n }\n\n if (KindService.isRegistryRunning()) {\n onProgress?.('Stopping registry...');\n DockerUtils.stopContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n return { success: true };\n }\n\n static deleteCluster(onProgress?: (msg: string) => void): OperationResult {\n onProgress?.('Deleting kind cluster...');\n try {\n execSync(`kind delete cluster --name \"${KIND_CLUSTER_DEFAULTS.CLUSTER_NAME}\" 2>/dev/null`, { stdio: 'ignore' });\n } catch { /* cluster may not exist */ }\n\n onProgress?.('Removing registry...');\n KindService.removeRegistry();\n\n return { success: true };\n }\n\n static async waitForNodesReady(\n timeoutSeconds = 120,\n onProgress?: (msg: string) => void,\n ): Promise<boolean> {\n return new Promise(resolvePromise => {\n const child = spawn('kubectl', [\n '--context', KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT,\n 'wait', '--for=condition=ready', 'node', '--all',\n `--timeout=${timeoutSeconds}s`,\n ]);\n\n child.stdout.on('data', (data: Buffer) => onProgress?.(data.toString().trim()));\n child.stderr.on('data', (data: Buffer) => onProgress?.(data.toString().trim()));\n child.on('close', (code: number | null) => resolvePromise(code === 0));\n });\n }\n\n static getMountedLocalDataRoots(): string[] {\n const nodes = KindService.getClusterNodes();\n return nodes\n .map((node) => KindService.inspectMountedHostPath(node.name, KIND_MOUNT_PATHS.localData))\n .filter((path): path is string => path !== null);\n }\n\n static localDataMountMatches(expectedLocalDataRoot: string): boolean {\n const mountedRoots = KindService.getMountedLocalDataRoots();\n if (mountedRoots.length === 0) {\n return false;\n }\n\n const expectedRoot = resolve(expectedLocalDataRoot);\n return mountedRoots.every((mountedRoot) => mountedRoot === expectedRoot);\n }\n\n // --------------------------------------------------------------------------\n // Registry operations (from old docker.ts — Kind-specific, decision D5)\n // --------------------------------------------------------------------------\n\n static isRegistryRunning(): boolean {\n return DockerUtils.isContainerRunning(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n static checkRegistryAccessible(): boolean {\n try {\n execSync(`curl -sf http://localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}/v2/`, { stdio: 'ignore' });\n return true;\n } catch {\n return false;\n }\n }\n\n static startRegistry(): OperationResult {\n if (DockerUtils.containerExists(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME)) {\n return DockerUtils.startContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n try {\n execSync(\n `docker run -d --restart=always -p \"127.0.0.1:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}:5000\" --network bridge --name \"${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}\" registry:2`,\n { stdio: 'ignore' },\n );\n return { success: true };\n } catch (error) {\n return { success: false, error: ErrorUtils.extractErrorMessage(error) };\n }\n }\n\n static stopRegistry(): OperationResult {\n return DockerUtils.stopContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n static removeRegistry(): OperationResult {\n return DockerUtils.removeContainer(KIND_CLUSTER_DEFAULTS.REGISTRY_NAME);\n }\n\n static connectRegistryToKindNetwork(): OperationResult {\n try {\n const networks = execSync(\n `docker inspect -f '{{json .NetworkSettings.Networks}}' \"${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}\" 2>/dev/null`,\n { encoding: 'utf8' },\n );\n\n if (networks.includes('\"kind\"')) {\n return { success: true };\n }\n\n execSync(`docker network connect \"kind\" \"${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}\" 2>/dev/null`, { stdio: 'ignore' });\n return { success: true };\n } catch {\n return { success: true };\n }\n }\n\n static listRegistryImages(): string[] {\n try {\n const result = execSync(`curl -s http://localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}/v2/_catalog`, {\n encoding: 'utf8',\n });\n const data = JSON.parse(result);\n return data.repositories ?? [];\n } catch {\n return [];\n }\n }\n\n // --------------------------------------------------------------------------\n // Private helpers\n // --------------------------------------------------------------------------\n\n private static inspectMountedHostPath(containerName: string, containerPath: string): string | null {\n try {\n const mountedPath = execSync(\n `docker inspect -f '{{range .Mounts}}{{if eq .Destination \"${containerPath}\"}}{{println .Source}}{{end}}{{end}}' \"${containerName}\" 2>/dev/null`,\n { encoding: 'utf8' },\n ).trim();\n return mountedPath.length > 0 ? resolve(mountedPath) : null;\n } catch {\n return null;\n }\n }\n\n private static getHostMountPaths(appLocalDataRoot: string): HostMountPaths {\n const localDataPath = resolve(appLocalDataRoot);\n\n mkdirSync(localDataPath, { recursive: true });\n\n return { localData: localDataPath };\n }\n\n private static generateKindConfig(hostPaths: HostMountPaths): string {\n const buildNodeMounts = (role: string): string => {\n let mounts = `- role: ${role}\n extraMounts:\n - hostPath: ${hostPaths.localData}\n containerPath: ${KIND_MOUNT_PATHS.localData}\n readOnly: false`;\n\n if (role === 'control-plane') {\n mounts += `\n extraPortMappings:\n - containerPort: 80\n hostPort: 80\n protocol: TCP\n - containerPort: 443\n hostPort: 443\n protocol: TCP`;\n }\n\n return mounts;\n };\n\n return `kind: Cluster\napiVersion: kind.x-k8s.io/v1alpha4\ncontainerdConfigPatches:\n- |-\n [plugins.\"io.containerd.grpc.v1.cri\".registry]\n config_path = \"/etc/containerd/certs.d\"\nnodes:\n${buildNodeMounts('control-plane')}\n${buildNodeMounts('worker')}\n${buildNodeMounts('worker')}\n`;\n }\n\n private static configureContainerdRegistry(): void {\n const nodes = KindService.getClusterNodes();\n const registryDir = `/etc/containerd/certs.d/localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`;\n const hostsToml = `[host.\"http://${KIND_CLUSTER_DEFAULTS.REGISTRY_NAME}:5000\"]`;\n\n for (const node of nodes) {\n try {\n execSync(`docker exec \"${node.name}\" mkdir -p \"${registryDir}\"`, { stdio: 'ignore' });\n execSync(\n `echo '${hostsToml}' | docker exec -i \"${node.name}\" cp /dev/stdin \"${registryDir}/hosts.toml\"`,\n { stdio: 'ignore' },\n );\n } catch {\n // non-fatal: node may not be ready yet\n }\n }\n }\n\n private static applyRegistryConfigMap(): void {\n const yaml = `apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: local-registry-hosting\n namespace: kube-public\ndata:\n localRegistryHosting.v1: |\n host: \"localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}\"\n help: \"https://kind.sigs.k8s.io/docs/user/local-registry/\"\n`;\n\n try {\n execSync(\n `echo '${yaml}' | kubectl --context=\"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" apply -f -`,\n { stdio: 'ignore' },\n );\n } catch {\n // non-fatal\n }\n }\n\n private static applyStorageClass(frameworkRoot: string): void {\n const storageClassPath = join(\n resolveFrameworkLayout(frameworkRoot).k8sTemplatesHome,\n 'storage',\n 'local',\n 'storage-class.yaml',\n );\n try {\n if (existsSync(storageClassPath)) {\n execSync(\n `kubectl --context=\"${KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT}\" apply -f \"${storageClassPath}\"`,\n { stdio: 'ignore' },\n );\n }\n } catch {\n // non-fatal\n }\n }\n}\n"]}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * How long a `wildo local dev` run log stays on disk once its run has ended: **90 days** (decided by Paul,
3
+ * 2026-10-03).
4
+ *
5
+ * ## Why these logs are kept at all, and why 90 days
6
+ *
7
+ * A run log is more than a debugging aid. It is the host's archive of what every runtime DID — each line a
8
+ * runtime's stdout — and `scripts/assurance/collect-performed-evidence.mjs` reads it to measure PERFORMED
9
+ * evidence for a window. Once a measurement is recorded it lives 400 days in the application's assurance
10
+ * repository, so the raw log only has to outlive the delay between a run and its collection. Ninety days is that
11
+ * delay, with room. A log is never expired before it is 90 days past its last write, whatever the disk pressure.
12
+ *
13
+ * ## Why compress first
14
+ *
15
+ * Nothing removed these files: measured 2026-10-02, 582 logs and 2.7 GB on Wonder Todos (oldest May), 129 and
16
+ * 1.3 GB on Wonder CRM. They compress 27× (228 MB → 8 MB measured), so a finished log is gzipped as soon as its run
17
+ * is over and stays readable — the collector reads `.log.gz` — for the whole window at a few percent of its size.
18
+ */
19
+ export declare const LOCAL_DEV_LOG_RETENTION_DAYS = 90;
20
+ export interface LocalDevLogRetentionOutcome {
21
+ /** Run logs compressed to `.log.gz` by this pass. */
22
+ readonly compressed: readonly string[];
23
+ /** Compressed run logs deleted because their last write is older than {@link LOCAL_DEV_LOG_RETENTION_DAYS}. */
24
+ readonly expired: readonly string[];
25
+ /** Files this pass could not handle, with why — reported, never thrown. */
26
+ readonly failed: readonly {
27
+ readonly name: string;
28
+ readonly reason: string;
29
+ }[];
30
+ }
31
+ /**
32
+ * Compress every finished run log in `logsDir` and delete compressed ones past the retention window.
33
+ *
34
+ * Called by `wildo local dev` BEFORE it opens the new run's log, so the only logs present are those of runs that
35
+ * have ended. Best-effort by construction: it runs on the stack's start path, and a log that cannot be compressed
36
+ * or deleted must never be why a development stack does not start — the failure is reported and the file is left
37
+ * as it was, which loses nothing.
38
+ *
39
+ * A compression writes `<name>.gz.tmp`, gives it the log's own modification time (the collector bounds a file's
40
+ * records by its last write, so a compressed file must keep it), renames it into place and only then removes the
41
+ * `.log`. An interruption leaves either the untouched `.log` or both files; the next pass recompresses from the
42
+ * `.log`, and the collector reads only the `.log` while both exist.
43
+ */
44
+ export declare function retainLocalDevLogs(logsDir: string, now?: Date): Promise<LocalDevLogRetentionOutcome>;
45
+ //# sourceMappingURL=local-dev-log-retention.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-dev-log-retention.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-dev-log-retention.service.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAW/C,MAAM,WAAW,2BAA2B;IAC1C,qDAAqD;IACrD,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,+GAA+G;IAC/G,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAChF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,GAAE,IAAiB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAmCtH"}
@@ -0,0 +1,83 @@
1
+ import { createReadStream, createWriteStream, existsSync, readdirSync, renameSync, statSync, unlinkSync, utimesSync } from 'fs';
2
+ import { join } from 'path';
3
+ import { pipeline } from 'stream/promises';
4
+ import { createGzip } from 'zlib';
5
+ /**
6
+ * How long a `wildo local dev` run log stays on disk once its run has ended: **90 days** (decided by Paul,
7
+ * 2026-10-03).
8
+ *
9
+ * ## Why these logs are kept at all, and why 90 days
10
+ *
11
+ * A run log is more than a debugging aid. It is the host's archive of what every runtime DID — each line a
12
+ * runtime's stdout — and `scripts/assurance/collect-performed-evidence.mjs` reads it to measure PERFORMED
13
+ * evidence for a window. Once a measurement is recorded it lives 400 days in the application's assurance
14
+ * repository, so the raw log only has to outlive the delay between a run and its collection. Ninety days is that
15
+ * delay, with room. A log is never expired before it is 90 days past its last write, whatever the disk pressure.
16
+ *
17
+ * ## Why compress first
18
+ *
19
+ * Nothing removed these files: measured 2026-10-02, 582 logs and 2.7 GB on Wonder Todos (oldest May), 129 and
20
+ * 1.3 GB on Wonder CRM. They compress 27× (228 MB → 8 MB measured), so a finished log is gzipped as soon as its run
21
+ * is over and stays readable — the collector reads `.log.gz` — for the whole window at a few percent of its size.
22
+ */
23
+ export const LOCAL_DEV_LOG_RETENTION_DAYS = 90;
24
+ /**
25
+ * A log written to this recently may still have a live writer — a second `wildo local dev` the stale cleanup did
26
+ * not stop — and is left alone. Compressing a file under a writer would lose everything written after the read.
27
+ */
28
+ const RECENTLY_WRITTEN_MS = 5 * 60 * 1000;
29
+ /** `dev-<YYYY-MM-DDTHH-MM-SS>.log`, the name `wildo local dev` gives each run's combined log. */
30
+ const RUN_LOG_PATTERN = /^dev-\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\.log$/;
31
+ /**
32
+ * Compress every finished run log in `logsDir` and delete compressed ones past the retention window.
33
+ *
34
+ * Called by `wildo local dev` BEFORE it opens the new run's log, so the only logs present are those of runs that
35
+ * have ended. Best-effort by construction: it runs on the stack's start path, and a log that cannot be compressed
36
+ * or deleted must never be why a development stack does not start — the failure is reported and the file is left
37
+ * as it was, which loses nothing.
38
+ *
39
+ * A compression writes `<name>.gz.tmp`, gives it the log's own modification time (the collector bounds a file's
40
+ * records by its last write, so a compressed file must keep it), renames it into place and only then removes the
41
+ * `.log`. An interruption leaves either the untouched `.log` or both files; the next pass recompresses from the
42
+ * `.log`, and the collector reads only the `.log` while both exist.
43
+ */
44
+ export async function retainLocalDevLogs(logsDir, now = new Date()) {
45
+ const compressed = [];
46
+ const expired = [];
47
+ const failed = [];
48
+ if (!existsSync(logsDir))
49
+ return { compressed, expired, failed };
50
+ const names = readdirSync(logsDir);
51
+ for (const name of names.filter((entry) => RUN_LOG_PATTERN.test(entry))) {
52
+ const path = join(logsDir, name);
53
+ try {
54
+ const { mtime, atime } = statSync(path);
55
+ if (now.getTime() - mtime.getTime() < RECENTLY_WRITTEN_MS)
56
+ continue;
57
+ const temporary = `${path}.gz.tmp`;
58
+ await pipeline(createReadStream(path), createGzip(), createWriteStream(temporary));
59
+ utimesSync(temporary, atime, mtime);
60
+ renameSync(temporary, `${path}.gz`);
61
+ unlinkSync(path);
62
+ compressed.push(name);
63
+ }
64
+ catch (error) {
65
+ failed.push({ name, reason: error instanceof Error ? error.message : String(error) });
66
+ }
67
+ }
68
+ const cutoff = now.getTime() - LOCAL_DEV_LOG_RETENTION_DAYS * 24 * 60 * 60 * 1000;
69
+ for (const name of readdirSync(logsDir).filter((entry) => entry.endsWith('.log.gz') && RUN_LOG_PATTERN.test(entry.slice(0, -'.gz'.length)))) {
70
+ const path = join(logsDir, name);
71
+ try {
72
+ if (statSync(path).mtime.getTime() >= cutoff)
73
+ continue;
74
+ unlinkSync(path);
75
+ expired.push(name);
76
+ }
77
+ catch (error) {
78
+ failed.push({ name, reason: error instanceof Error ? error.message : String(error) });
79
+ }
80
+ }
81
+ return { compressed, expired, failed };
82
+ }
83
+ //# sourceMappingURL=local-dev-log-retention.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-dev-log-retention.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-dev-log-retention.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChI,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C;;;GAGG;AACH,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAE1C,iGAAiG;AACjG,MAAM,eAAe,GAAG,gDAAgD,CAAC;AAWzE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,OAAe,EAAE,MAAY,IAAI,IAAI,EAAE;IAC9E,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAuC,EAAE,CAAC;IACtD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAEjE,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACnC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,GAAG,IAAI,CAAC,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CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC;YACH,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,MAAM;gBAAE,SAAS;YACvD,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxF,CAAC;IACH,CAAC;IACD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AACzC,CAAC","sourcesContent":["import { createReadStream, createWriteStream, existsSync, readdirSync, renameSync, statSync, unlinkSync, utimesSync } from 'fs';\nimport { join } from 'path';\nimport { pipeline } from 'stream/promises';\nimport { createGzip } from 'zlib';\n\n/**\n * How long a `wildo local dev` run log stays on disk once its run has ended: **90 days** (decided by Paul,\n * 2026-10-03).\n *\n * ## Why these logs are kept at all, and why 90 days\n *\n * A run log is more than a debugging aid. It is the host's archive of what every runtime DID — each line a\n * runtime's stdout — and `scripts/assurance/collect-performed-evidence.mjs` reads it to measure PERFORMED\n * evidence for a window. Once a measurement is recorded it lives 400 days in the application's assurance\n * repository, so the raw log only has to outlive the delay between a run and its collection. Ninety days is that\n * delay, with room. A log is never expired before it is 90 days past its last write, whatever the disk pressure.\n *\n * ## Why compress first\n *\n * Nothing removed these files: measured 2026-10-02, 582 logs and 2.7 GB on Wonder Todos (oldest May), 129 and\n * 1.3 GB on Wonder CRM. They compress 27× (228 MB → 8 MB measured), so a finished log is gzipped as soon as its run\n * is over and stays readable — the collector reads `.log.gz` — for the whole window at a few percent of its size.\n */\nexport const LOCAL_DEV_LOG_RETENTION_DAYS = 90;\n\n/**\n * A log written to this recently may still have a live writer — a second `wildo local dev` the stale cleanup did\n * not stop — and is left alone. Compressing a file under a writer would lose everything written after the read.\n */\nconst RECENTLY_WRITTEN_MS = 5 * 60 * 1000;\n\n/** `dev-<YYYY-MM-DDTHH-MM-SS>.log`, the name `wildo local dev` gives each run's combined log. */\nconst RUN_LOG_PATTERN = /^dev-\\d{4}-\\d{2}-\\d{2}T\\d{2}-\\d{2}-\\d{2}\\.log$/;\n\nexport interface LocalDevLogRetentionOutcome {\n /** Run logs compressed to `.log.gz` by this pass. */\n readonly compressed: readonly string[];\n /** Compressed run logs deleted because their last write is older than {@link LOCAL_DEV_LOG_RETENTION_DAYS}. */\n readonly expired: readonly string[];\n /** Files this pass could not handle, with why — reported, never thrown. */\n readonly failed: readonly { readonly name: string; readonly reason: string }[];\n}\n\n/**\n * Compress every finished run log in `logsDir` and delete compressed ones past the retention window.\n *\n * Called by `wildo local dev` BEFORE it opens the new run's log, so the only logs present are those of runs that\n * have ended. Best-effort by construction: it runs on the stack's start path, and a log that cannot be compressed\n * or deleted must never be why a development stack does not start — the failure is reported and the file is left\n * as it was, which loses nothing.\n *\n * A compression writes `<name>.gz.tmp`, gives it the log's own modification time (the collector bounds a file's\n * records by its last write, so a compressed file must keep it), renames it into place and only then removes the\n * `.log`. An interruption leaves either the untouched `.log` or both files; the next pass recompresses from the\n * `.log`, and the collector reads only the `.log` while both exist.\n */\nexport async function retainLocalDevLogs(logsDir: string, now: Date = new Date()): Promise<LocalDevLogRetentionOutcome> {\n const compressed: string[] = [];\n const expired: string[] = [];\n const failed: { name: string; reason: string }[] = [];\n if (!existsSync(logsDir)) return { compressed, expired, failed };\n\n const names = readdirSync(logsDir);\n for (const name of names.filter((entry) => RUN_LOG_PATTERN.test(entry))) {\n const path = join(logsDir, name);\n try {\n const { mtime, atime } = statSync(path);\n if (now.getTime() - mtime.getTime() < RECENTLY_WRITTEN_MS) continue;\n const temporary = `${path}.gz.tmp`;\n await pipeline(createReadStream(path), createGzip(), createWriteStream(temporary));\n utimesSync(temporary, atime, mtime);\n renameSync(temporary, `${path}.gz`);\n unlinkSync(path);\n compressed.push(name);\n } catch (error) {\n failed.push({ name, reason: error instanceof Error ? error.message : String(error) });\n }\n }\n\n const cutoff = now.getTime() - LOCAL_DEV_LOG_RETENTION_DAYS * 24 * 60 * 60 * 1000;\n for (const name of readdirSync(logsDir).filter((entry) => entry.endsWith('.log.gz') && RUN_LOG_PATTERN.test(entry.slice(0, -'.gz'.length)))) {\n const path = join(logsDir, name);\n try {\n if (statSync(path).mtime.getTime() >= cutoff) continue;\n unlinkSync(path);\n expired.push(name);\n } catch (error) {\n failed.push({ name, reason: error instanceof Error ? error.message : String(error) });\n }\n }\n return { compressed, expired, failed };\n}\n"]}
@@ -70,8 +70,8 @@ export declare enum SharedPlatformIntent {
70
70
  */
71
71
  CONVERGE = "converge",
72
72
  /**
73
- * Recreate, stop or destroy the shared containers — `local down`, `local reset`, `local up
74
- * --rebuild`'s force-recreate. Never safe under a foreign owner at any running state.
73
+ * Recreate, stop or destroy the shared containers — `local down`, `local reset` (and `local up
74
+ * --rebuild`'s force-recreate until #2988 removed it). Never safe under a foreign owner at any running state.
75
75
  */
76
76
  DISRUPT = "disrupt"
77
77
  }
@@ -249,8 +249,8 @@ export var SharedPlatformIntent;
249
249
  */
250
250
  SharedPlatformIntent["CONVERGE"] = "converge";
251
251
  /**
252
- * Recreate, stop or destroy the shared containers — `local down`, `local reset`, `local up
253
- * --rebuild`'s force-recreate. Never safe under a foreign owner at any running state.
252
+ * Recreate, stop or destroy the shared containers — `local down`, `local reset` (and `local up
253
+ * --rebuild`'s force-recreate until #2988 removed it). Never safe under a foreign owner at any running state.
254
254
  */
255
255
  SharedPlatformIntent["DISRUPT"] = "disrupt";
256
256
  })(SharedPlatformIntent || (SharedPlatformIntent = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"local-dev-session-lease.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-dev-session-l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O,EAAE,CAAC;IACrD,IAAI,KAAK,CAAC,wBAAwB,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,OAAO;YACpC,KAAK;YACL,OAAO,EAAE,iFAAiF,GAAG,yCAAyC;kBAClI,sFAAsF;SAC3F,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,oBAAoB,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;YACnC,KAAK;YACL,OAAO,EAAE,8EAA8E,GAAG,KAAK;kBAC3F,2FAA2F;SAChG,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QACxB,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;YACnC,KAAK;YACL,OAAO,EAAE,8EAA8E,GAAG,aAAa;kBACnG,sGAAsG;kBACtG,qCAAqC;SAC1C,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,KAAK;QACL,OAAO,EAAE,iDAAiD,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,OAAO,wCAAwC;KAC9H,CAAC;AACJ,CAAC","sourcesContent":["import {\n chmodSync,\n existsSync,\n mkdirSync,\n readFileSync,\n renameSync,\n rmSync,\n statSync,\n writeFileSync,\n} from 'fs';\nimport { dirname, resolve } from 'path';\nimport { randomUUID } from 'crypto';\n\nconst LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION = 1;\nconst DEFAULT_HEARTBEAT_INTERVAL_MS = 5_000;\nconst DEFAULT_STALE_AFTER_MS = 120_000;\n\ninterface LocalDevSessionLeaseOwner {\n readonly schemaVersion: number;\n readonly instanceId: string;\n readonly pid: number;\n readonly appRoot: string;\n readonly frameworkRoot: string | null;\n readonly ownsPlatform: boolean;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\nexport interface LocalDevSessionLease {\n readonly instanceId: string;\n readonly leasePaths: readonly string[];\n release(): Promise<void>;\n}\n\nexport class LocalDevSessionLeaseConflictError extends Error {\n constructor(public readonly leasePath: string, owner: LocalDevSessionLeaseOwner | null) {\n super(\n owner\n ? `Another wildo local dev owner is active (pid ${owner.pid}, acquired ${owner.acquiredAt}).`\n : 'Another wildo local dev owner is active and its lease metadata is unavailable.',\n );\n this.name = 'LocalDevSessionLeaseConflictError';\n }\n}\n\n/**\n * Atomic ownership boundary for `wildo local dev`.\n *\n * Every invocation owns its app lease. An invocation that starts the shared\n * platform additionally owns the framework lease, preventing a second app from\n * cleaning or replacing that shared generation. Lease directories are acquired\n * in lexical path order, so multi-root acquisition cannot deadlock.\n */\nexport class LocalDevSessionLeaseService {\n static acquire(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n heartbeatIntervalMs?: number;\n staleAfterMs?: number;\n onCompromised?: (error: Error) => void;\n }): LocalDevSessionLease {\n const instanceId = `${process.pid}-${Date.now()}-${randomUUID()}`;\n const acquiredAt = new Date().toISOString();\n const ownerBase = {\n schemaVersion: LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION,\n instanceId,\n pid: process.pid,\n appRoot: resolve(input.saasRoot),\n frameworkRoot: input.frameworkRoot ? resolve(input.frameworkRoot) : null,\n ownsPlatform: input.ownsPlatform,\n acquiredAt,\n };\n const leasePaths = resolveLocalDevSessionLeasePaths(input).sort();\n const acquiredPaths: string[] = [];\n const staleAfterMs = input.staleAfterMs ?? DEFAULT_STALE_AFTER_MS;\n\n try {\n for (const leasePath of leasePaths) {\n acquireLeasePath(leasePath, ownerBase, staleAfterMs);\n acquiredPaths.push(leasePath);\n }\n } catch (error) {\n for (const leasePath of acquiredPaths.reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n throw error;\n }\n\n let compromised = false;\n const publishHeartbeat = () => {\n if (compromised) return;\n try {\n for (const leasePath of leasePaths) {\n const currentOwner = readLeaseOwner(leasePath);\n if (!currentOwner || currentOwner.instanceId !== instanceId) {\n throw new Error(`Local-dev lease ownership was replaced at '${leasePath}'.`);\n }\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n }\n } catch (error) {\n compromised = true;\n clearInterval(heartbeat);\n try {\n input.onCompromised?.(error instanceof Error ? error : new Error(String(error)));\n } catch {\n // The timer boundary must never surface an uncaught exception. The\n // lease remains compromised and heartbeats stay stopped even if the\n // coordinator callback itself cannot report the failure.\n }\n }\n };\n const heartbeat = setInterval(publishHeartbeat, input.heartbeatIntervalMs ?? DEFAULT_HEARTBEAT_INTERVAL_MS);\n heartbeat.unref();\n let released = false;\n\n return {\n instanceId,\n leasePaths,\n async release() {\n if (released) return;\n released = true;\n clearInterval(heartbeat);\n for (const leasePath of [...leasePaths].reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n },\n };\n }\n}\n\n/** The live owner of the shared platform, as read from the framework-root platform lease. */\nexport interface LiveLocalDevPlatformOwner {\n readonly pid: number;\n readonly appRoot: string;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\n/**\n * Who currently OWNS the shared local platform, or `null` when nobody live does.\n *\n * This is the predicate every lane that would CONVERGE shared substrate must consult before writing\n * (issue #50): the platform reconciliation in `local init`, the backing-container compose-up in\n * `local dev`, and the platform-service env regeneration in `config sync` each destroyed a RUNNING\n * stack on 2026-08-25 because they asserted platform ownership without asking. The lease is\n * heartbeated by the owning `wildo local dev` session every few seconds; an owner whose heartbeat is\n * older than `staleAfterMs` is treated as dead (same staleness window the acquisition path uses), so\n * a crashed owner never wedges initialization.\n */\nexport function readLiveLocalDevPlatformOwner(\n frameworkRoot: string,\n staleAfterMs: number = DEFAULT_STALE_AFTER_MS,\n): LiveLocalDevPlatformOwner | null {\n const leasePath = resolve(frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock');\n if (!existsSync(leasePath)) return null;\n const owner = readLeaseOwner(leasePath);\n if (!owner) return null;\n const heartbeatAtMs = Date.parse(owner.heartbeatAt);\n if (!Number.isFinite(heartbeatAtMs) || Date.now() - heartbeatAtMs >= staleAfterMs) return null;\n return { pid: owner.pid, appRoot: owner.appRoot, acquiredAt: owner.acquiredAt, heartbeatAt: owner.heartbeatAt };\n}\n\nexport function resolveLocalDevSessionLeasePaths(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n}): string[] {\n const paths = [resolve(input.saasRoot, '.wildo-saas', 'runtime-signals', 'ownership', 'local-dev.lock')];\n if (input.ownsPlatform) {\n if (!input.frameworkRoot) {\n throw new Error('A platform-owning local-dev session requires a framework root.');\n }\n paths.push(resolve(input.frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock'));\n }\n return paths;\n}\n\nfunction acquireLeasePath(\n leasePath: string,\n ownerBase: Omit<LocalDevSessionLeaseOwner, 'heartbeatAt'>,\n staleAfterMs: number,\n): void {\n mkdirSync(dirname(leasePath), { recursive: true, mode: 0o700 });\n chmodSync(dirname(leasePath), 0o700);\n\n for (let attempt = 0; attempt < 3; attempt += 1) {\n try {\n mkdirSync(leasePath, { mode: 0o700 });\n try {\n chmodSync(leasePath, 0o700);\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n return;\n } catch (error) {\n rmSync(leasePath, { recursive: true, force: true });\n throw error;\n }\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'EEXIST') throw error;\n }\n\n const owner = readLeaseOwner(leasePath);\n let ageMs: number;\n try {\n ageMs = Date.now() - statSync(leasePath).mtimeMs;\n } catch (error) {\n // A previous owner may release between our EEXIST and metadata read.\n // Retry the atomic mkdir instead of turning that normal hand-off race\n // into a false startup failure.\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n const ownerLiveness = owner ? probeProcessLiveness(owner.pid) : 'unknown';\n // A delayed heartbeat is not proof that a live owner is abandoned. The\n // CLI can legitimately block in Docker/platform startup longer than the\n // stale window, so PID liveness always wins. Age-based recovery is only\n // permitted when metadata is unavailable; a confirmed-dead owner can be\n // reclaimed immediately.\n if ((owner && ownerLiveness !== 'dead') || (!owner && ageMs <= staleAfterMs)) {\n throw new LocalDevSessionLeaseConflictError(leasePath, owner);\n }\n\n const stalePath = `${leasePath}.stale-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, stalePath);\n rmSync(stalePath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n }\n throw new LocalDevSessionLeaseConflictError(leasePath, readLeaseOwner(leasePath));\n}\n\nfunction writeLeaseOwner(leasePath: string, owner: LocalDevSessionLeaseOwner): void {\n const ownerPath = resolve(leasePath, 'owner.json');\n const temporaryPath = `${ownerPath}.tmp-${process.pid}-${randomUUID()}`;\n writeFileSync(temporaryPath, `${JSON.stringify(owner, null, 2)}\\n`, { encoding: 'utf-8', mode: 0o600 });\n renameSync(temporaryPath, ownerPath);\n chmodSync(ownerPath, 0o600);\n}\n\nfunction readLeaseOwner(leasePath: string): LocalDevSessionLeaseOwner | null {\n try {\n const owner = JSON.parse(readFileSync(resolve(leasePath, 'owner.json'), 'utf-8')) as LocalDevSessionLeaseOwner;\n if (\n owner?.schemaVersion !== LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION\n || typeof owner.instanceId !== 'string'\n || !Number.isInteger(owner.pid) || owner.pid <= 0\n || typeof owner.appRoot !== 'string'\n || (owner.frameworkRoot !== null && typeof owner.frameworkRoot !== 'string')\n || typeof owner.ownsPlatform !== 'boolean'\n || typeof owner.acquiredAt !== 'string'\n || typeof owner.heartbeatAt !== 'string'\n ) {\n return null;\n }\n return owner;\n } catch {\n return null;\n }\n}\n\nfunction releaseLeasePath(leasePath: string, instanceId: string): void {\n if (!existsSync(leasePath)) return;\n const owner = readLeaseOwner(leasePath);\n if (!owner || owner.instanceId !== instanceId) return;\n const retiredPath = `${leasePath}.retired-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, retiredPath);\n rmSync(retiredPath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n}\n\nfunction probeProcessLiveness(pid: number): 'alive' | 'dead' | 'unknown' {\n try {\n process.kill(pid, 0);\n return 'alive';\n } catch (error) {\n const code = (error as NodeJS.ErrnoException).code;\n if (code === 'EPERM') return 'alive';\n if (code === 'ESRCH') return 'dead';\n return 'unknown';\n }\n}\n\n/**\n * What a lane intends to do to the SHARED local platform. It is the only input that decides how a\n * foreign owner is treated, so a new lane declares its intent rather than re-deriving the policy.\n */\nexport enum SharedPlatformIntent {\n /**\n * Bring the shared containers up and leave them there — `local up`, `dev start`, the `local dev`\n * readiness converge. Harmless when nobody else is running, and a substrate swap when somebody is.\n */\n CONVERGE = 'converge',\n /**\n * Recreate, stop or destroy the shared containers — `local down`, `local reset`, `local up\n * --rebuild`'s force-recreate. Never safe under a foreign owner at any running state.\n */\n DISRUPT = 'disrupt',\n}\n\n/** What a lane may do to the shared platform right now. */\nexport enum SharedPlatformAccess {\n /** Nobody else owns it. Proceed exactly as the lane would have without this check. */\n PROCEED = 'proceed',\n /** A foreign session owns it and its containers are up: use them, converge nothing. */\n ATTACH = 'attach',\n /** A foreign session owns it and this lane must not touch it. */\n REFUSE = 'refuse',\n}\n\nexport interface SharedPlatformAccessDecision {\n readonly access: SharedPlatformAccess;\n /** The owning session, when one is live and is a different app root. */\n readonly owner: LiveLocalDevPlatformOwner | null;\n /** Ready-to-print explanation for ATTACH and REFUSE. Absent for PROCEED. */\n readonly message?: string;\n}\n\n/**\n * Whether this lane may converge or disrupt the shared local platform right now.\n *\n * ## Why this is a function rather than a check each lane writes\n *\n * The platform stack is deliberately ONE-APP-AT-A-TIME: every application renders its compose under\n * the same project name with the same `wildo-*` container names and its OWN `local_data/` bind\n * mounts, and `--remove-orphans` is what stops a converge from leaving the previous app's extra\n * services running on the previous app's data (measured 2026-09-03 — a half-migrated stack with 18\n * cron jobs pointing at a vhost that existed only in the other app's broker state). So switching\n * applications re-homes the stack ON PURPOSE. What must not happen is re-homing it out from under a\n * session that is still using it.\n *\n * {@link readLiveLocalDevPlatformOwner} has answered that since issue #50, and its own docstring\n * named the three lanes that must consult it. **It was reached from three of the SEVEN lanes that\n * mutate the shared stack** — measured 2026-09-15 (#1126): `local up`, `local up --rebuild`,\n * `local down`, `local reset` and `dev start` all converged or tore down without asking. The\n * observed cost was a running `wildo local dev` losing `wildo-postgresql`, `wildo-clamav`,\n * `wildo-immudb` and `wildo-otel-collector` to another application's `wildo local up`, and then\n * failing to boot with an error naming neither the other application nor the deletion. `local\n * reset`'s `down -v` would have taken the volumes.\n *\n * That is `.claude/rules/invariant-call-site-enumeration.md`'s defect shape exactly — the invariant\n * applied at some of its sites — so the remedy is the one that rule prefers: ONE predicate every\n * lane declares its intent to, rather than the same condition hand-written six more times.\n *\n * @param infraRunning Whether the shared containers are currently up. Only consulted for\n * {@link SharedPlatformIntent.CONVERGE}: an owner whose containers are gone cannot be attached to,\n * and starting them from this app root is the substrate swap the check exists to prevent.\n * @param acknowledgedForeignOwner The operator has stated, on this invocation, that they intend to\n * take the shared platform from its current owner. The refusal is the DEFAULT and the door is\n * explicit, narrow and per-invocation — `design-philosophy.md`, \"immutability needs a paired\n * mutation path\". A lane that offers no such flag passes `false`.\n */\nexport function decideSharedPlatformAccess(input: {\n frameworkRoot: string | null;\n saasRoot: string;\n intent: SharedPlatformIntent;\n infraRunning: boolean;\n acknowledgedForeignOwner?: boolean;\n staleAfterMs?: number;\n}): SharedPlatformAccessDecision {\n const owner = input.frameworkRoot\n ? readLiveLocalDevPlatformOwner(input.frameworkRoot, input.staleAfterMs)\n : null;\n // An owner at THIS app root is this application's own session: converging its own substrate is\n // what it is for, and re-homing is not in question.\n if (!owner || resolve(owner.appRoot) === resolve(input.saasRoot)) {\n return { access: SharedPlatformAccess.PROCEED, owner: null };\n }\n\n const who = `pid ${owner.pid}, app ${owner.appRoot}`;\n if (input.acknowledgedForeignOwner === true) {\n return {\n access: SharedPlatformAccess.PROCEED,\n owner,\n message: `Taking the shared platform from the \\`wildo local dev\\` session that owns it (${who}), as acknowledged on this invocation. `\n + 'That session\\'s processes are now running against a substrate this app root defines.',\n };\n }\n\n if (input.intent === SharedPlatformIntent.DISRUPT) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}). `\n + 'Refusing to recreate or stop its containers from this app root — stop that session first.',\n };\n }\n\n if (!input.infraRunning) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}), but its `\n + 'infrastructure containers are not running. Refusing to start shared containers from this app root — '\n + 'start them from the owning session.',\n };\n }\n\n return {\n access: SharedPlatformAccess.ATTACH,\n owner,\n message: `Attaching to the shared platform owned by pid ${owner.pid} (${owner.appRoot}); infrastructure convergence skipped.`,\n };\n}\n"]}
1
+ {"version":3,"file":"local-dev-session-lease.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-dev-session-lease.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EACV,MAAM,EACN,QAAQ,EACR,aAAa,GACd,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,sCAAsC,GAAG,CAAC,CAAC;AACjD,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAC5C,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAmBvC,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IAC9B;IAA5B,YAA4B,SAAiB,EAAE,KAAuC;QACpF,KAAK,CACH,KAAK;YACH,CAAC,CAAC,gDAAgD,KAAK,CAAC,GAAG,cAAc,KAAK,CAAC,UAAU,IAAI;YAC7F,CAAC,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BACnG,sGAAsG;kBACtG,qCAAqC;SAC1C,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,KAAK;QACL,OAAO,EAAE,iDAAiD,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,OAAO,wCAAwC;KAC9H,CAAC;AACJ,CAAC","sourcesContent":["import {\n chmodSync,\n existsSync,\n mkdirSync,\n readFileSync,\n renameSync,\n rmSync,\n statSync,\n writeFileSync,\n} from 'fs';\nimport { dirname, resolve } from 'path';\nimport { randomUUID } from 'crypto';\n\nconst LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION = 1;\nconst DEFAULT_HEARTBEAT_INTERVAL_MS = 5_000;\nconst DEFAULT_STALE_AFTER_MS = 120_000;\n\ninterface LocalDevSessionLeaseOwner {\n readonly schemaVersion: number;\n readonly instanceId: string;\n readonly pid: number;\n readonly appRoot: string;\n readonly frameworkRoot: string | null;\n readonly ownsPlatform: boolean;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\nexport interface LocalDevSessionLease {\n readonly instanceId: string;\n readonly leasePaths: readonly string[];\n release(): Promise<void>;\n}\n\nexport class LocalDevSessionLeaseConflictError extends Error {\n constructor(public readonly leasePath: string, owner: LocalDevSessionLeaseOwner | null) {\n super(\n owner\n ? `Another wildo local dev owner is active (pid ${owner.pid}, acquired ${owner.acquiredAt}).`\n : 'Another wildo local dev owner is active and its lease metadata is unavailable.',\n );\n this.name = 'LocalDevSessionLeaseConflictError';\n }\n}\n\n/**\n * Atomic ownership boundary for `wildo local dev`.\n *\n * Every invocation owns its app lease. An invocation that starts the shared\n * platform additionally owns the framework lease, preventing a second app from\n * cleaning or replacing that shared generation. Lease directories are acquired\n * in lexical path order, so multi-root acquisition cannot deadlock.\n */\nexport class LocalDevSessionLeaseService {\n static acquire(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n heartbeatIntervalMs?: number;\n staleAfterMs?: number;\n onCompromised?: (error: Error) => void;\n }): LocalDevSessionLease {\n const instanceId = `${process.pid}-${Date.now()}-${randomUUID()}`;\n const acquiredAt = new Date().toISOString();\n const ownerBase = {\n schemaVersion: LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION,\n instanceId,\n pid: process.pid,\n appRoot: resolve(input.saasRoot),\n frameworkRoot: input.frameworkRoot ? resolve(input.frameworkRoot) : null,\n ownsPlatform: input.ownsPlatform,\n acquiredAt,\n };\n const leasePaths = resolveLocalDevSessionLeasePaths(input).sort();\n const acquiredPaths: string[] = [];\n const staleAfterMs = input.staleAfterMs ?? DEFAULT_STALE_AFTER_MS;\n\n try {\n for (const leasePath of leasePaths) {\n acquireLeasePath(leasePath, ownerBase, staleAfterMs);\n acquiredPaths.push(leasePath);\n }\n } catch (error) {\n for (const leasePath of acquiredPaths.reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n throw error;\n }\n\n let compromised = false;\n const publishHeartbeat = () => {\n if (compromised) return;\n try {\n for (const leasePath of leasePaths) {\n const currentOwner = readLeaseOwner(leasePath);\n if (!currentOwner || currentOwner.instanceId !== instanceId) {\n throw new Error(`Local-dev lease ownership was replaced at '${leasePath}'.`);\n }\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n }\n } catch (error) {\n compromised = true;\n clearInterval(heartbeat);\n try {\n input.onCompromised?.(error instanceof Error ? error : new Error(String(error)));\n } catch {\n // The timer boundary must never surface an uncaught exception. The\n // lease remains compromised and heartbeats stay stopped even if the\n // coordinator callback itself cannot report the failure.\n }\n }\n };\n const heartbeat = setInterval(publishHeartbeat, input.heartbeatIntervalMs ?? DEFAULT_HEARTBEAT_INTERVAL_MS);\n heartbeat.unref();\n let released = false;\n\n return {\n instanceId,\n leasePaths,\n async release() {\n if (released) return;\n released = true;\n clearInterval(heartbeat);\n for (const leasePath of [...leasePaths].reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n },\n };\n }\n}\n\n/** The live owner of the shared platform, as read from the framework-root platform lease. */\nexport interface LiveLocalDevPlatformOwner {\n readonly pid: number;\n readonly appRoot: string;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\n/**\n * Who currently OWNS the shared local platform, or `null` when nobody live does.\n *\n * This is the predicate every lane that would CONVERGE shared substrate must consult before writing\n * (issue #50): the platform reconciliation in `local init`, the backing-container compose-up in\n * `local dev`, and the platform-service env regeneration in `config sync` each destroyed a RUNNING\n * stack on 2026-08-25 because they asserted platform ownership without asking. The lease is\n * heartbeated by the owning `wildo local dev` session every few seconds; an owner whose heartbeat is\n * older than `staleAfterMs` is treated as dead (same staleness window the acquisition path uses), so\n * a crashed owner never wedges initialization.\n */\nexport function readLiveLocalDevPlatformOwner(\n frameworkRoot: string,\n staleAfterMs: number = DEFAULT_STALE_AFTER_MS,\n): LiveLocalDevPlatformOwner | null {\n const leasePath = resolve(frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock');\n if (!existsSync(leasePath)) return null;\n const owner = readLeaseOwner(leasePath);\n if (!owner) return null;\n const heartbeatAtMs = Date.parse(owner.heartbeatAt);\n if (!Number.isFinite(heartbeatAtMs) || Date.now() - heartbeatAtMs >= staleAfterMs) return null;\n return { pid: owner.pid, appRoot: owner.appRoot, acquiredAt: owner.acquiredAt, heartbeatAt: owner.heartbeatAt };\n}\n\nexport function resolveLocalDevSessionLeasePaths(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n}): string[] {\n const paths = [resolve(input.saasRoot, '.wildo-saas', 'runtime-signals', 'ownership', 'local-dev.lock')];\n if (input.ownsPlatform) {\n if (!input.frameworkRoot) {\n throw new Error('A platform-owning local-dev session requires a framework root.');\n }\n paths.push(resolve(input.frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock'));\n }\n return paths;\n}\n\nfunction acquireLeasePath(\n leasePath: string,\n ownerBase: Omit<LocalDevSessionLeaseOwner, 'heartbeatAt'>,\n staleAfterMs: number,\n): void {\n mkdirSync(dirname(leasePath), { recursive: true, mode: 0o700 });\n chmodSync(dirname(leasePath), 0o700);\n\n for (let attempt = 0; attempt < 3; attempt += 1) {\n try {\n mkdirSync(leasePath, { mode: 0o700 });\n try {\n chmodSync(leasePath, 0o700);\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n return;\n } catch (error) {\n rmSync(leasePath, { recursive: true, force: true });\n throw error;\n }\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'EEXIST') throw error;\n }\n\n const owner = readLeaseOwner(leasePath);\n let ageMs: number;\n try {\n ageMs = Date.now() - statSync(leasePath).mtimeMs;\n } catch (error) {\n // A previous owner may release between our EEXIST and metadata read.\n // Retry the atomic mkdir instead of turning that normal hand-off race\n // into a false startup failure.\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n const ownerLiveness = owner ? probeProcessLiveness(owner.pid) : 'unknown';\n // A delayed heartbeat is not proof that a live owner is abandoned. The\n // CLI can legitimately block in Docker/platform startup longer than the\n // stale window, so PID liveness always wins. Age-based recovery is only\n // permitted when metadata is unavailable; a confirmed-dead owner can be\n // reclaimed immediately.\n if ((owner && ownerLiveness !== 'dead') || (!owner && ageMs <= staleAfterMs)) {\n throw new LocalDevSessionLeaseConflictError(leasePath, owner);\n }\n\n const stalePath = `${leasePath}.stale-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, stalePath);\n rmSync(stalePath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n }\n throw new LocalDevSessionLeaseConflictError(leasePath, readLeaseOwner(leasePath));\n}\n\nfunction writeLeaseOwner(leasePath: string, owner: LocalDevSessionLeaseOwner): void {\n const ownerPath = resolve(leasePath, 'owner.json');\n const temporaryPath = `${ownerPath}.tmp-${process.pid}-${randomUUID()}`;\n writeFileSync(temporaryPath, `${JSON.stringify(owner, null, 2)}\\n`, { encoding: 'utf-8', mode: 0o600 });\n renameSync(temporaryPath, ownerPath);\n chmodSync(ownerPath, 0o600);\n}\n\nfunction readLeaseOwner(leasePath: string): LocalDevSessionLeaseOwner | null {\n try {\n const owner = JSON.parse(readFileSync(resolve(leasePath, 'owner.json'), 'utf-8')) as LocalDevSessionLeaseOwner;\n if (\n owner?.schemaVersion !== LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION\n || typeof owner.instanceId !== 'string'\n || !Number.isInteger(owner.pid) || owner.pid <= 0\n || typeof owner.appRoot !== 'string'\n || (owner.frameworkRoot !== null && typeof owner.frameworkRoot !== 'string')\n || typeof owner.ownsPlatform !== 'boolean'\n || typeof owner.acquiredAt !== 'string'\n || typeof owner.heartbeatAt !== 'string'\n ) {\n return null;\n }\n return owner;\n } catch {\n return null;\n }\n}\n\nfunction releaseLeasePath(leasePath: string, instanceId: string): void {\n if (!existsSync(leasePath)) return;\n const owner = readLeaseOwner(leasePath);\n if (!owner || owner.instanceId !== instanceId) return;\n const retiredPath = `${leasePath}.retired-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, retiredPath);\n rmSync(retiredPath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n}\n\nfunction probeProcessLiveness(pid: number): 'alive' | 'dead' | 'unknown' {\n try {\n process.kill(pid, 0);\n return 'alive';\n } catch (error) {\n const code = (error as NodeJS.ErrnoException).code;\n if (code === 'EPERM') return 'alive';\n if (code === 'ESRCH') return 'dead';\n return 'unknown';\n }\n}\n\n/**\n * What a lane intends to do to the SHARED local platform. It is the only input that decides how a\n * foreign owner is treated, so a new lane declares its intent rather than re-deriving the policy.\n */\nexport enum SharedPlatformIntent {\n /**\n * Bring the shared containers up and leave them there — `local up`, `dev start`, the `local dev`\n * readiness converge. Harmless when nobody else is running, and a substrate swap when somebody is.\n */\n CONVERGE = 'converge',\n /**\n * Recreate, stop or destroy the shared containers — `local down`, `local reset` (and `local up\n * --rebuild`'s force-recreate until #2988 removed it). Never safe under a foreign owner at any running state.\n */\n DISRUPT = 'disrupt',\n}\n\n/** What a lane may do to the shared platform right now. */\nexport enum SharedPlatformAccess {\n /** Nobody else owns it. Proceed exactly as the lane would have without this check. */\n PROCEED = 'proceed',\n /** A foreign session owns it and its containers are up: use them, converge nothing. */\n ATTACH = 'attach',\n /** A foreign session owns it and this lane must not touch it. */\n REFUSE = 'refuse',\n}\n\nexport interface SharedPlatformAccessDecision {\n readonly access: SharedPlatformAccess;\n /** The owning session, when one is live and is a different app root. */\n readonly owner: LiveLocalDevPlatformOwner | null;\n /** Ready-to-print explanation for ATTACH and REFUSE. Absent for PROCEED. */\n readonly message?: string;\n}\n\n/**\n * Whether this lane may converge or disrupt the shared local platform right now.\n *\n * ## Why this is a function rather than a check each lane writes\n *\n * The platform stack is deliberately ONE-APP-AT-A-TIME: every application renders its compose under\n * the same project name with the same `wildo-*` container names and its OWN `local_data/` bind\n * mounts, and `--remove-orphans` is what stops a converge from leaving the previous app's extra\n * services running on the previous app's data (measured 2026-09-03 — a half-migrated stack with 18\n * cron jobs pointing at a vhost that existed only in the other app's broker state). So switching\n * applications re-homes the stack ON PURPOSE. What must not happen is re-homing it out from under a\n * session that is still using it.\n *\n * {@link readLiveLocalDevPlatformOwner} has answered that since issue #50, and its own docstring\n * named the three lanes that must consult it. **It was reached from three of the SEVEN lanes that\n * mutate the shared stack** — measured 2026-09-15 (#1126): `local up`, `local up --rebuild`,\n * `local down`, `local reset` and `dev start` all converged or tore down without asking. The\n * observed cost was a running `wildo local dev` losing `wildo-postgresql`, `wildo-clamav`,\n * `wildo-immudb` and `wildo-otel-collector` to another application's `wildo local up`, and then\n * failing to boot with an error naming neither the other application nor the deletion. `local\n * reset`'s `down -v` would have taken the volumes.\n *\n * That is `.claude/rules/invariant-call-site-enumeration.md`'s defect shape exactly — the invariant\n * applied at some of its sites — so the remedy is the one that rule prefers: ONE predicate every\n * lane declares its intent to, rather than the same condition hand-written six more times.\n *\n * @param infraRunning Whether the shared containers are currently up. Only consulted for\n * {@link SharedPlatformIntent.CONVERGE}: an owner whose containers are gone cannot be attached to,\n * and starting them from this app root is the substrate swap the check exists to prevent.\n * @param acknowledgedForeignOwner The operator has stated, on this invocation, that they intend to\n * take the shared platform from its current owner. The refusal is the DEFAULT and the door is\n * explicit, narrow and per-invocation — `design-philosophy.md`, \"immutability needs a paired\n * mutation path\". A lane that offers no such flag passes `false`.\n */\nexport function decideSharedPlatformAccess(input: {\n frameworkRoot: string | null;\n saasRoot: string;\n intent: SharedPlatformIntent;\n infraRunning: boolean;\n acknowledgedForeignOwner?: boolean;\n staleAfterMs?: number;\n}): SharedPlatformAccessDecision {\n const owner = input.frameworkRoot\n ? readLiveLocalDevPlatformOwner(input.frameworkRoot, input.staleAfterMs)\n : null;\n // An owner at THIS app root is this application's own session: converging its own substrate is\n // what it is for, and re-homing is not in question.\n if (!owner || resolve(owner.appRoot) === resolve(input.saasRoot)) {\n return { access: SharedPlatformAccess.PROCEED, owner: null };\n }\n\n const who = `pid ${owner.pid}, app ${owner.appRoot}`;\n if (input.acknowledgedForeignOwner === true) {\n return {\n access: SharedPlatformAccess.PROCEED,\n owner,\n message: `Taking the shared platform from the \\`wildo local dev\\` session that owns it (${who}), as acknowledged on this invocation. `\n + 'That session\\'s processes are now running against a substrate this app root defines.',\n };\n }\n\n if (input.intent === SharedPlatformIntent.DISRUPT) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}). `\n + 'Refusing to recreate or stop its containers from this app root — stop that session first.',\n };\n }\n\n if (!input.infraRunning) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}), but its `\n + 'infrastructure containers are not running. Refusing to start shared containers from this app root — '\n + 'start them from the owning session.',\n };\n }\n\n return {\n access: SharedPlatformAccess.ATTACH,\n owner,\n message: `Attaching to the shared platform owned by pid ${owner.pid} (${owner.appRoot}); infrastructure convergence skipped.`,\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"local-infrastructure-initialization.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-infrastructure-initialization.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAa5G,MAAM,WAAW,sCAAsC;IACrD,GAAG,EAAE,gCAAgC,CAAC;IACtC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,qBAAa,wCAAwC;WACtC,WAAW,CAAC,KAAK,EAAE,sCAAsC,GAAG,OAAO,CAAC,IAAI,CAAC;mBAkBjE,cAAc;CA6CpC"}
1
+ {"version":3,"file":"local-infrastructure-initialization.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-infrastructure-initialization.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAiB5G,MAAM,WAAW,sCAAsC;IACrD,GAAG,EAAE,gCAAgC,CAAC;IACtC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,qBAAa,wCAAwC;WACtC,WAAW,CAAC,KAAK,EAAE,sCAAsC,GAAG,OAAO,CAAC,IAAI,CAAC;mBAkBjE,cAAc;CAgEpC"}
@@ -8,7 +8,7 @@ import { DockerComposeReadinessService } from './docker/docker-compose-readiness
8
8
  import { ensureLocalDataServiceDirsForComposeRender } from './docker/docker-compose-generator.service.js';
9
9
  import { K8sOperations } from './k8s/k8s-operations.service.js';
10
10
  import { pruneLegacyLocalApplicationResources } from './k8s/local-k8s-application-pruning.service.js';
11
- import { waitForLocalK8sInfraReady } from './k8s/k8s-local-infra-readiness.service.js';
11
+ import { LocalK8sPlatformReadinessScope, waitForLocalK8sInfraReady, waitForLocalK8sPlatformReady, } from './k8s/k8s-local-infra-readiness.service.js';
12
12
  import { getDeployableInfraServicesForK8s } from '../../services/catalog/service-catalog.schemas.js';
13
13
  import { shouldDeployPlatformServicesInRuntime } from './platform-runtime-policy.service.js';
14
14
  import { ErrorUtils } from '../../infrastructure/errors/error.utils.js';
@@ -56,6 +56,7 @@ export class LocalInfrastructureInitializationService {
56
56
  'internal',
57
57
  ...(shouldDeployPlatformServicesInRuntime(input.env, input.isFrameworkDeveloper) ? ['platform'] : []),
58
58
  ];
59
+ let appliedPlatformManifests = false;
59
60
  for (const dir of dirs) {
60
61
  const dirPath = join(manifestsBase, dir);
61
62
  if (!existsSync(dirPath))
@@ -64,11 +65,29 @@ export class LocalInfrastructureInitializationService {
64
65
  if (!result.success) {
65
66
  throw new Error(`Failed to apply ${dir}: ${result.error}`);
66
67
  }
68
+ if (dir === 'platform')
69
+ appliedPlatformManifests = true;
67
70
  }
68
71
  const ready = await waitForLocalK8sInfraReady(input.env, namespace, input.log, context);
69
72
  if (!ready) {
70
73
  throw new Error('Local K8s infrastructure failed to become ready during initialization.');
71
74
  }
75
+ /*
76
+ * The platform manifests were applied above too (#2971), and the infra gate does not cover them. Initialization
77
+ * is a command whose purpose includes the platform, so every deployment is awaited: the claim the native lane
78
+ * makes in `PlatformLifecycle.start` for local application initialization and re-init, and the one the Compose
79
+ * lane makes through `startAndWait`. The caller's apps-manager `/health/ready` wait that follows is a different,
80
+ * narrower question (the HTTP contract application bootstrap needs) and stays.
81
+ */
82
+ if (appliedPlatformManifests) {
83
+ const platformReady = await waitForLocalK8sPlatformReady(namespace, input.log, {
84
+ scope: LocalK8sPlatformReadinessScope.ALL_DEPLOYMENTS,
85
+ context,
86
+ });
87
+ if (!platformReady) {
88
+ throw new Error('Local K8s platform deployments failed to become ready during initialization.');
89
+ }
90
+ }
72
91
  }
73
92
  }
74
93
  //# sourceMappingURL=local-infrastructure-initialization.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-infrastructure-initialization.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-infrastructure-initialization.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAC7H,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EAAE,qCAAqC,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAQ1E;;;GAGG;AACH,MAAM,OAAO,wCAAwC;IACnD,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAA6C;QACpE,kBAAkB,CAAC,8BAA8B,CAAC,KAAK,CAAC,GAAG,EAAE,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;QACnH,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,KAAK,sBAAsB,CAAC,UAAU,EAAE,CAAC;YAC5D,MAAM,wCAAwC,CAAC,cAAc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DEFAULTS,\n WildoDeploymentRuntime,\n} from '@wildo-ai/platform-config-lib';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { ContextManager } from '~wildo-cli/services/context/context-manager.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost, SharedInfrastructureAction } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { DockerComposeReadinessService } from './docker/docker-compose-readiness.service';\nimport { ensureLocalDataServiceDirsForComposeRender } from './docker/docker-compose-generator.service';\nimport { K8sOperations } from './k8s/k8s-operations.service';\nimport { pruneLegacyLocalApplicationResources } from './k8s/local-k8s-application-pruning.service';\nimport { waitForLocalK8sInfraReady } from './k8s/k8s-local-infra-readiness.service';\nimport { getDeployableInfraServicesForK8s } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { shouldDeployPlatformServicesInRuntime } from './platform-runtime-policy.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nexport interface LocalInfrastructureInitializationInput {\n env: PlatformEnvironmentConfiguration;\n isFrameworkDeveloper: boolean;\n log: Logger;\n}\n\n/**\n * Registered local-infrastructure bring-up and readiness boundary shared by initialization and destructive\n * reinitialization. Returning means backing services (and the Mongo initialization job on K8s) are usable.\n */\nexport class LocalInfrastructureInitializationService {\n static async ensureReady(input: LocalInfrastructureInitializationInput): Promise<void> {\n InfrastructureHost.assertOwnsSharedInfrastructure(input.env, SharedInfrastructureAction.CONVERGE_BACKING_SERVICES);\n if (input.env.runtime === WildoDeploymentRuntime.KUBERNETES) {\n await LocalInfrastructureInitializationService.ensureK8sReady(input);\n return;\n }\n\n try {\n ensureLocalDataServiceDirsForComposeRender(input.env);\n } catch (error) {\n throw new Error(\n `Failed to pre-create local_data directories before Docker Compose initialization: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n const infraContext = ContextManager.resolveInfraContext(input.env.name);\n await DockerComposeReadinessService.startAndWait(infraContext, input.log);\n }\n\n private static async ensureK8sReady(input: LocalInfrastructureInitializationInput): Promise<void> {\n const namespace = input.env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const context = KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT;\n const manifestsBase = join(EnvironmentPaths.resolveInfraDir(input.env.name), 'manifests');\n if (!existsSync(manifestsBase)) {\n throw new Error(\n `K8s manifests not found at ${manifestsBase}. Run 'wildo config sync --domain manifest' first.`,\n );\n }\n\n const cleanupResult = pruneLegacyLocalApplicationResources(namespace, context);\n if (!cleanupResult.success) {\n throw new Error(cleanupResult.error ?? 'Failed to remove retired local application resources.');\n }\n\n const deployable = getDeployableInfraServicesForK8s(input.env);\n if (deployable.includes('mongodb')) {\n const jobDeleteResult = K8sOperations.kubectlDeleteJob('mongodb-init', namespace, context);\n if (!jobDeleteResult.success) {\n input.log.warn(\n ` Warning: failed to clear previous mongodb-init Job before re-apply: ${jobDeleteResult.error}`,\n );\n }\n }\n\n const dirs = [\n 'cluster',\n 'storage',\n 'internal',\n ...(shouldDeployPlatformServicesInRuntime(input.env, input.isFrameworkDeveloper) ? ['platform'] : []),\n ];\n for (const dir of dirs) {\n const dirPath = join(manifestsBase, dir);\n if (!existsSync(dirPath)) continue;\n const result = K8sOperations.kubectlApply(dirPath, { namespace, context });\n if (!result.success) {\n throw new Error(`Failed to apply ${dir}: ${result.error}`);\n }\n }\n\n const ready = await waitForLocalK8sInfraReady(input.env, namespace, input.log, context);\n if (!ready) {\n throw new Error('Local K8s infrastructure failed to become ready during initialization.');\n }\n }\n}\n"]}
1
+ {"version":3,"file":"local-infrastructure-initialization.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/local-infrastructure-initialization.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,kBAA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AAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;YAClG,CAAC;QACH,CAAC;IACH,CAAC;CACF","sourcesContent":["import { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport {\n K8S_LOCAL_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n WildoDeploymentRuntime,\n} from '@wildo-ai/platform-config-lib';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { ContextManager } from '~wildo-cli/services/context/context-manager.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost, SharedInfrastructureAction } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { DockerComposeReadinessService } from './docker/docker-compose-readiness.service';\nimport { ensureLocalDataServiceDirsForComposeRender } from './docker/docker-compose-generator.service';\nimport { K8sOperations } from './k8s/k8s-operations.service';\nimport { pruneLegacyLocalApplicationResources } from './k8s/local-k8s-application-pruning.service';\nimport {\n LocalK8sPlatformReadinessScope,\n waitForLocalK8sInfraReady,\n waitForLocalK8sPlatformReady,\n} from './k8s/k8s-local-infra-readiness.service';\nimport { getDeployableInfraServicesForK8s } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { shouldDeployPlatformServicesInRuntime } from './platform-runtime-policy.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nexport interface LocalInfrastructureInitializationInput {\n env: PlatformEnvironmentConfiguration;\n isFrameworkDeveloper: boolean;\n log: Logger;\n}\n\n/**\n * Registered local-infrastructure bring-up and readiness boundary shared by initialization and destructive\n * reinitialization. Returning means backing services (and the Mongo initialization job on K8s) are usable.\n */\nexport class LocalInfrastructureInitializationService {\n static async ensureReady(input: LocalInfrastructureInitializationInput): Promise<void> {\n InfrastructureHost.assertOwnsSharedInfrastructure(input.env, SharedInfrastructureAction.CONVERGE_BACKING_SERVICES);\n if (input.env.runtime === WildoDeploymentRuntime.KUBERNETES) {\n await LocalInfrastructureInitializationService.ensureK8sReady(input);\n return;\n }\n\n try {\n ensureLocalDataServiceDirsForComposeRender(input.env);\n } catch (error) {\n throw new Error(\n `Failed to pre-create local_data directories before Docker Compose initialization: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n const infraContext = ContextManager.resolveInfraContext(input.env.name);\n await DockerComposeReadinessService.startAndWait(infraContext, input.log);\n }\n\n private static async ensureK8sReady(input: LocalInfrastructureInitializationInput): Promise<void> {\n const namespace = input.env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const context = KIND_CLUSTER_DEFAULTS.KUBECTL_CONTEXT;\n const manifestsBase = join(EnvironmentPaths.resolveInfraDir(input.env.name), 'manifests');\n if (!existsSync(manifestsBase)) {\n throw new Error(\n `K8s manifests not found at ${manifestsBase}. Run 'wildo config sync --domain manifest' first.`,\n );\n }\n\n const cleanupResult = pruneLegacyLocalApplicationResources(namespace, context);\n if (!cleanupResult.success) {\n throw new Error(cleanupResult.error ?? 'Failed to remove retired local application resources.');\n }\n\n const deployable = getDeployableInfraServicesForK8s(input.env);\n if (deployable.includes('mongodb')) {\n const jobDeleteResult = K8sOperations.kubectlDeleteJob('mongodb-init', namespace, context);\n if (!jobDeleteResult.success) {\n input.log.warn(\n ` Warning: failed to clear previous mongodb-init Job before re-apply: ${jobDeleteResult.error}`,\n );\n }\n }\n\n const dirs = [\n 'cluster',\n 'storage',\n 'internal',\n ...(shouldDeployPlatformServicesInRuntime(input.env, input.isFrameworkDeveloper) ? ['platform'] : []),\n ];\n let appliedPlatformManifests = false;\n for (const dir of dirs) {\n const dirPath = join(manifestsBase, dir);\n if (!existsSync(dirPath)) continue;\n const result = K8sOperations.kubectlApply(dirPath, { namespace, context });\n if (!result.success) {\n throw new Error(`Failed to apply ${dir}: ${result.error}`);\n }\n if (dir === 'platform') appliedPlatformManifests = true;\n }\n\n const ready = await waitForLocalK8sInfraReady(input.env, namespace, input.log, context);\n if (!ready) {\n throw new Error('Local K8s infrastructure failed to become ready during initialization.');\n }\n\n /*\n * The platform manifests were applied above too (#2971), and the infra gate does not cover them. Initialization\n * is a command whose purpose includes the platform, so every deployment is awaited: the claim the native lane\n * makes in `PlatformLifecycle.start` for local application initialization and re-init, and the one the Compose\n * lane makes through `startAndWait`. The caller's apps-manager `/health/ready` wait that follows is a different,\n * narrower question (the HTTP contract application bootstrap needs) and stays.\n */\n if (appliedPlatformManifests) {\n const platformReady = await waitForLocalK8sPlatformReady(namespace, input.log, {\n scope: LocalK8sPlatformReadinessScope.ALL_DEPLOYMENTS,\n context,\n });\n if (!platformReady) {\n throw new Error('Local K8s platform deployments failed to become ready during initialization.');\n }\n }\n }\n}\n"]}
@@ -45,6 +45,7 @@
45
45
  * command the operator runs next — because a precondition check whose output
46
46
  * still requires a search is only half a check.
47
47
  */
48
+ import type { PlatformEnvSecretsJson } from '../../services/credentials/credentials.schemas';
48
49
  import { type Cxx20ProbeResult, type PnpmProbeResult } from '../../services/deployment/host-toolchain-readiness.service';
49
50
  import { type LocalRuntimeProcessGroupCandidate } from '../../services/deployment/local-runtime-process-cleanup.service';
50
51
  import { type RefusedProviderRuntimeArtifact } from '../../services/application/provider-runtime-sync.service';
@@ -397,6 +398,19 @@ export declare function checkSelectedCodingAgentLogin(input: {
397
398
  preference?: string;
398
399
  failWhenUnusable: boolean;
399
400
  }): LocalPreconditionCheckResult;
401
+ /**
402
+ * #2891 — apps-manager's key-encryption root. apps-manager starts without one and refuses its first key operation; it
403
+ * refuses to start with a MALFORMED one, so that is named here, before the boot does. Read from the environment's secrets.json, the one source every lane's apps-manager env is generated from;
404
+ * the value is never printed.
405
+ *
406
+ * Only a secrets.json that holds the platform's own materials is asked: the response keys are the sibling material
407
+ * that says so (a hosted application's secrets.json holds neither; its host's does). An absent root is a WARN, because
408
+ * `wildo local dev` and `wildo config sync` mint it before apps-manager boots; a malformed one is a FAIL, because no
409
+ * command repairs it without losing the keys sealed under it. This check cannot see whether keys were ever sealed (they
410
+ * live in apps-manager's store), so the absent-root remedy names both cases: a platform that never had a root mints one,
411
+ * and one that lost it restores it from backup, because a newly minted root cannot open the keys the old one sealed.
412
+ */
413
+ export declare function checkKeyEncryptionRoot(secrets: PlatformEnvSecretsJson | null): LocalPreconditionCheckResult;
400
414
  export declare function collectLocalPreconditionChecks(input: {
401
415
  saasRoot: string | null;
402
416
  frameworkPath?: string | null;