@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":"list.command.js","sourceRoot":"","sources":["../../../../../../src/commands/secrets/list.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,iBAAiB,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AmB,CAAC,GAAmB;QAC7C,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,0BAA0B,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;YACjG,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,2DAA2D,EAAE,CAAC;QAClM,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo secrets list` — which secrets this application needs in an environment, and which are set.\n *\n * Derived from what the application DECLARES (the providers it scopes, the capabilities it enables, its\n * systems of record and inbound endpoints), never from the whole provider catalogue: `wildo setup` used to\n * offer every provider whatever the application used (#1637). A stored key nothing consumes is listed as\n * UNUSED, to be removed. Names and standings only — never a value — so the output can be pasted,\n * logged and shown in the workbench, which reads `--json`.\n */\nimport chalk from 'chalk';\n\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { checkCodingAgentLogin, resolveSelectedCodingAgent } from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { describeEnvironmentSecrets } from '~wildo-cli/services/credentials/application-secrets.service';\nimport { loadSecretRequirementInputs, type SecretRequirementInputs } from '~wildo-cli/services/credentials/secret-requirements.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { ApplicationSecretKind, ApplicationSecretStanding } from '@wildo-ai/platform-core-shared';\n\n/** Display order: what blocks something first. */\nconst STANDING_ORDER: readonly ApplicationSecretStanding[] = [\n ApplicationSecretStanding.NEEDED,\n ApplicationSecretStanding.UNUSED,\n ApplicationSecretStanding.SET,\n ApplicationSecretStanding.AVAILABLE,\n];\n\n/** What a row says it belongs to, in the terminal: `openai`, `system of record odoo`, `inbound endpoint todo-intake`. */\nconst OWNER_PREFIXES: Readonly<Record<ApplicationSecretKind, string>> = {\n [ApplicationSecretKind.PROVIDER]: '',\n [ApplicationSecretKind.SYSTEM_OF_RECORD]: 'system of record ',\n [ApplicationSecretKind.INBOUND_ENDPOINT]: 'inbound endpoint ',\n};\n\nexport default class SecretsListCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'secrets list',\n description: 'List the secrets this application needs in an environment, and which are set (never their values)',\n category: CommandCategory.Core,\n flags: {\n env: { type: 'string', description: 'Environment (default: the active one)', default: undefined },\n all: { type: 'boolean', description: 'Every registered environment (with --json: one report each, an unreadable one carrying its error)', default: false },\n json: { type: 'boolean', description: 'Machine-readable output: ONE line of JSON, so a caller can find it among any other output', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const saasRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n if (!saasRoot) {\n ctx.log.error('Run this inside an application (a directory with wildo.saas.config.ts).');\n return { success: false };\n }\n if (ctx.flags.all === true) return this.listAll(ctx, saasRoot);\n const envName = (ctx.flags.env as string | undefined) ?? ctx.activeEnv?.name ?? WildoLocationType.LOCAL;\n try {\n const report = await describeEnvironmentSecrets(saasRoot, envName);\n /*\n * The coding agent is not a secret — it runs on the operator's own login — but it is the other\n * half of \"what development needs\", so it is reported beside the secrets for a local\n * environment, where that login is this machine's.\n */\n const codingAgent = report.locationType === WildoLocationType.LOCAL ? this.describeCodingAgent(ctx) : null;\n if (ctx.flags.json === true) {\n process.stdout.write(`${JSON.stringify({ ...report, codingAgent })}\\n`);\n return { success: true };\n }\n ctx.log.info(chalk.bold(`\\n Secrets for '${envName}' (${report.locationType})\\n`));\n if (codingAgent) {\n const mark = codingAgent.state === CodingAgentHostLoginState.SIGNED_IN ? chalk.green('✓') : chalk.yellow('⚠');\n ctx.log.info(` ${mark} coding agent ${codingAgent.providerRef}: ${codingAgent.detail}`);\n if (codingAgent.remedy) ctx.log.info(chalk.dim(` ${codingAgent.remedy}`));\n ctx.log.info('');\n }\n for (const standing of STANDING_ORDER) {\n const rows = report.requirements.filter((row) => row.standing === standing);\n if (rows.length === 0) continue;\n ctx.log.info(chalk.bold(` ${standing.toUpperCase()} (${rows.length})`));\n for (const row of rows) {\n const owner = `${OWNER_PREFIXES[row.kind]}${row.ownerRef ?? 'no provider'}`;\n const where = row.capabilities.length > 0 ? ` · ${row.capabilities.join(', ')}` : '';\n // `runtimes` is who RECEIVES the key, which for an unused one is not who uses it — hence \"received by\".\n const readers = row.runtimes.length > 0 ? ` · received by ${row.runtimes.join(', ')}` : ' · received by no runtime';\n const level = 'remoteLevel' in row && row.remoteLevel ? `, ${row.remoteLevel} secret` : '';\n ctx.log.info(` ${row.envVarName.padEnd(34)} ${chalk.dim(`${owner}${where}${readers}${level}`)}`);\n }\n ctx.log.info('');\n }\n for (const note of report.incomplete) ctx.log.warn(` Not listed: ${note}`);\n if (report.requirements.some((row) => row.standing === ApplicationSecretStanding.UNUSED)) {\n ctx.log.info(chalk.dim(` Remove an unused one with: wildo secrets unset <NAME>${envName === WildoLocationType.LOCAL ? '' : ` --env ${envName}`}`));\n }\n if (report.requirements.some((row) => row.standing === ApplicationSecretStanding.NEEDED)) {\n ctx.log.info(chalk.dim(` Set one with: wildo secrets set <NAME>${envName === WildoLocationType.LOCAL ? '' : ` --env ${envName}`}`));\n }\n return { success: true };\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n }\n\n /**\n * Every registered environment, in one run — what the workbench's secrets section reads. One\n * environment that cannot be read (a remote one without `gh`, say) is reported with its error rather\n * than failing the others.\n */\n private async listAll(ctx: CommandContext, saasRoot: string): Promise<CommandResult> {\n const environments = [];\n // The application is loaded ONCE for every environment; only what is set differs between them.\n let inputs: SecretRequirementInputs | null = null;\n let inputsFailure: string | null = null;\n try {\n inputs = await loadSecretRequirementInputs(saasRoot, { withOwners: true });\n } catch (error) {\n inputsFailure = ErrorUtils.extractErrorMessage(error);\n }\n for (const envName of EnvironmentUtils.listNames()) {\n try {\n if (!inputs) throw new Error(inputsFailure ?? 'The application could not be loaded.');\n environments.push({ ...(await describeEnvironmentSecrets(saasRoot, envName, inputs)), error: null });\n } catch (error) {\n environments.push({ envName, locationType: null, requirements: [], incomplete: [], error: ErrorUtils.extractErrorMessage(error) });\n }\n }\n // No coding-agent line here: `--all` is the workbench's feed, and the companion reads the agent's login\n // itself (its coding-lane status), so probing it here only added the status command's seconds.\n if (ctx.flags.json === true) {\n process.stdout.write(`${JSON.stringify({ environments })}\\n`);\n return { success: true };\n }\n for (const environment of environments) {\n const needed = environment.requirements.filter((row) => row.standing === ApplicationSecretStanding.NEEDED).length;\n ctx.log.info(environment.error\n ? ` ${environment.envName}: ${chalk.yellow(environment.error)}`\n : ` ${environment.envName} (${environment.locationType}): ${environment.requirements.length} declared, ${needed} needed`);\n }\n return { success: true };\n }\n\n private describeCodingAgent(ctx: CommandContext): { providerRef: string; state: CodingAgentHostLoginState; detail: string; remedy: string | null } | null {\n try {\n const agent = resolveSelectedCodingAgent({ preference: ctx.preferences?.defaults?.codingAgent });\n return { providerRef: agent.providerRef, ...checkCodingAgentLogin(agent) };\n } catch (error) {\n return { providerRef: 'unknown', state: CodingAgentHostLoginState.UNKNOWN, detail: ErrorUtils.extractErrorMessage(error), remedy: 'Choose one with `wildo prefs set --coding-agent <agent>`.' };\n }\n }\n}\n"]}
1
+ {"version":3,"file":"list.command.js","sourceRoot":"","sources":["../../../../../../src/commands/secrets/list.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GA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AAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,mBAAmB,CAAC,GAAmB;QAC7C,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,0BAA0B,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;YACjG,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,2DAA2D,EAAE,CAAC;QAClM,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo secrets list` — which secrets this application needs in an environment, and which are set.\n *\n * Derived from what the application DECLARES (the providers it scopes, the capabilities it enables, its\n * systems of record and inbound endpoints), never from the whole provider catalogue: `wildo setup` used to\n * offer every provider whatever the application used (#1637). A stored key nothing consumes is listed as\n * UNUSED, to be removed. Names and standings only — never a value — so the output can be pasted,\n * logged and shown in the workbench, which reads `--json`.\n */\nimport chalk from 'chalk';\n\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { checkCodingAgentLogin, resolveSelectedCodingAgent } from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { describeEnvironmentSecrets } from '~wildo-cli/services/credentials/application-secrets.service';\nimport { loadSecretRequirementInputs, type SecretRequirementInputs } from '~wildo-cli/services/credentials/secret-requirements.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { ApplicationSecretKind, ApplicationSecretStanding } from '@wildo-ai/platform-core-shared';\n\n/** Display order: what blocks something first. */\nconst STANDING_ORDER: readonly ApplicationSecretStanding[] = [\n ApplicationSecretStanding.NEEDED,\n ApplicationSecretStanding.UNUSED,\n ApplicationSecretStanding.SET,\n ApplicationSecretStanding.AVAILABLE,\n];\n\n/** What a row says it belongs to, in the terminal: `openai`, `system of record odoo`, `inbound endpoint todo-intake`. */\nconst OWNER_PREFIXES: Readonly<Record<ApplicationSecretKind, string>> = {\n [ApplicationSecretKind.PROVIDER]: '',\n [ApplicationSecretKind.SYSTEM_OF_RECORD]: 'system of record ',\n [ApplicationSecretKind.INBOUND_ENDPOINT]: 'inbound endpoint ',\n};\n\nexport default class SecretsListCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'secrets list',\n description: 'List the secrets this application needs in an environment, and which are set (never their values)',\n category: CommandCategory.Core,\n flags: {\n env: { type: 'string', description: 'Environment (default: the active one)', default: undefined },\n all: { type: 'boolean', description: 'Every registered environment (with --json: one report each, an unreadable one carrying its error)', default: false },\n json: { type: 'boolean', description: 'Machine-readable output: ONE line of JSON, so a caller can find it among any other output', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const saasRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n if (!saasRoot) {\n ctx.log.error('Run this inside an application (a directory with wildo.saas.config.ts).');\n return { success: false };\n }\n if (ctx.flags.all === true) return this.listAll(ctx, saasRoot);\n const envName = (ctx.flags.env as string | undefined) ?? ctx.activeEnv?.name ?? WildoLocationType.LOCAL;\n try {\n const report = await describeEnvironmentSecrets(saasRoot, envName);\n /*\n * The coding agent is not a secret — it runs on the operator's own login — but it is the other\n * half of \"what development needs\", so it is reported beside the secrets for a local\n * environment, where that login is this machine's.\n */\n const codingAgent = report.locationType === WildoLocationType.LOCAL ? this.describeCodingAgent(ctx) : null;\n if (ctx.flags.json === true) {\n writeJsonDocument({ ...report, codingAgent });\n return { success: true };\n }\n ctx.log.info(chalk.bold(`\\n Secrets for '${envName}' (${report.locationType})\\n`));\n if (codingAgent) {\n const mark = codingAgent.state === CodingAgentHostLoginState.SIGNED_IN ? chalk.green('✓') : chalk.yellow('⚠');\n ctx.log.info(` ${mark} coding agent ${codingAgent.providerRef}: ${codingAgent.detail}`);\n if (codingAgent.remedy) ctx.log.info(chalk.dim(` ${codingAgent.remedy}`));\n ctx.log.info('');\n }\n for (const standing of STANDING_ORDER) {\n const rows = report.requirements.filter((row) => row.standing === standing);\n if (rows.length === 0) continue;\n ctx.log.info(chalk.bold(` ${standing.toUpperCase()} (${rows.length})`));\n for (const row of rows) {\n const owner = `${OWNER_PREFIXES[row.kind]}${row.ownerRef ?? 'no provider'}`;\n const where = row.capabilities.length > 0 ? ` · ${row.capabilities.join(', ')}` : '';\n // `runtimes` is who RECEIVES the key, which for an unused one is not who uses it — hence \"received by\".\n const readers = row.runtimes.length > 0 ? ` · received by ${row.runtimes.join(', ')}` : ' · received by no runtime';\n const level = 'remoteLevel' in row && row.remoteLevel ? `, ${row.remoteLevel} secret` : '';\n ctx.log.info(` ${row.envVarName.padEnd(34)} ${chalk.dim(`${owner}${where}${readers}${level}`)}`);\n }\n ctx.log.info('');\n }\n for (const note of report.incomplete) ctx.log.warn(` Not listed: ${note}`);\n if (report.requirements.some((row) => row.standing === ApplicationSecretStanding.UNUSED)) {\n ctx.log.info(chalk.dim(` Remove an unused one with: wildo secrets unset <NAME>${envName === WildoLocationType.LOCAL ? '' : ` --env ${envName}`}`));\n }\n if (report.requirements.some((row) => row.standing === ApplicationSecretStanding.NEEDED)) {\n ctx.log.info(chalk.dim(` Set one with: wildo secrets set <NAME>${envName === WildoLocationType.LOCAL ? '' : ` --env ${envName}`}`));\n }\n return { success: true };\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n }\n\n /**\n * Every registered environment, in one run — what the workbench's secrets section reads. One\n * environment that cannot be read (a remote one without `gh`, say) is reported with its error rather\n * than failing the others.\n */\n private async listAll(ctx: CommandContext, saasRoot: string): Promise<CommandResult> {\n const environments = [];\n // The application is loaded ONCE for every environment; only what is set differs between them.\n let inputs: SecretRequirementInputs | null = null;\n let inputsFailure: string | null = null;\n try {\n inputs = await loadSecretRequirementInputs(saasRoot, { withOwners: true });\n } catch (error) {\n inputsFailure = ErrorUtils.extractErrorMessage(error);\n }\n for (const envName of EnvironmentUtils.listNames()) {\n try {\n if (!inputs) throw new Error(inputsFailure ?? 'The application could not be loaded.');\n environments.push({ ...(await describeEnvironmentSecrets(saasRoot, envName, inputs)), error: null });\n } catch (error) {\n environments.push({ envName, locationType: null, requirements: [], incomplete: [], error: ErrorUtils.extractErrorMessage(error) });\n }\n }\n // No coding-agent line here: `--all` is the workbench's feed, and the companion reads the agent's login\n // itself (its coding-lane status), so probing it here only added the status command's seconds.\n if (ctx.flags.json === true) {\n writeJsonDocument({ environments });\n return { success: true };\n }\n for (const environment of environments) {\n const needed = environment.requirements.filter((row) => row.standing === ApplicationSecretStanding.NEEDED).length;\n ctx.log.info(environment.error\n ? ` ${environment.envName}: ${chalk.yellow(environment.error)}`\n : ` ${environment.envName} (${environment.locationType}): ${environment.requirements.length} declared, ${needed} needed`);\n }\n return { success: true };\n }\n\n private describeCodingAgent(ctx: CommandContext): { providerRef: string; state: CodingAgentHostLoginState; detail: string; remedy: string | null } | null {\n try {\n const agent = resolveSelectedCodingAgent({ preference: ctx.preferences?.defaults?.codingAgent });\n return { providerRef: agent.providerRef, ...checkCodingAgentLogin(agent) };\n } catch (error) {\n return { providerRef: 'unknown', state: CodingAgentHostLoginState.UNKNOWN, detail: ErrorUtils.extractErrorMessage(error), remedy: 'Choose one with `wildo prefs set --coding-agent <agent>`.' };\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"set.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/secrets/set.command.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE1F,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,6DAA6D,CAAC;AAS7H;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,aAAa,CAItG;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAwBvH;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AAEX,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAEtE;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,qBAAqB,GAAG,SAAS,CAO1F;AAED,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAaxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAyBvD"}
1
+ {"version":3,"file":"set.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/secrets/set.command.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE1F,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,6DAA6D,CAAC;AAS7H;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,aAAa,CAItG;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAwBvH;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AAEX,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAEtE;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,qBAAqB,GAAG,SAAS,CAO1F;AAED,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAaxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAyBvD"}
@@ -11,6 +11,7 @@ import chalk from 'chalk';
11
11
  import { WildoLocationType } from '@wildo-ai/platform-config-lib';
12
12
  import { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';
13
13
  import { BaseCommand } from '../../kernel/base-command.js';
14
+ import { writeJsonDocument } from '../../kernel/json-document-output.js';
14
15
  import { CommandCategory } from '../../kernel/types.js';
15
16
  import { ErrorUtils } from '../../infrastructure/errors/error.utils.js';
16
17
  import { setApplicationSecret } from '../../services/credentials/application-secrets.service.js';
@@ -34,13 +35,13 @@ async function readStdin() {
34
35
  export function refuseSecretChange(ctx, sentence, json) {
35
36
  ctx.log.error(sentence);
36
37
  if (json)
37
- process.stdout.write(`${JSON.stringify({ error: sentence })}\n`);
38
+ writeJsonDocument({ error: sentence });
38
39
  return { success: false };
39
40
  }
40
41
  /** What a change did, in one line per consequence — shared by `set` and `unset`. */
41
42
  export function reportSecretChange(ctx, verb, outcome, json) {
42
43
  if (json) {
43
- process.stdout.write(`${JSON.stringify(outcome)}\n`);
44
+ writeJsonDocument(outcome);
44
45
  return;
45
46
  }
46
47
  ctx.log.success(` ${outcome.envVarName} ${verb} in '${outcome.envName}'.`);
@@ -1 +1 @@
1
- {"version":3,"file":"set.command.js","sourceRoot":"","sources":["../../../../../../src/commands/secrets/set.command.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAA4B,MAAM,6DAA6D,CAAC;AAC7H,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AAEpG,KAAK,UAAU,SAAS;IACtB,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,OAAO,CAAC,KAAK;QAAE,MAAM,CAAC,IAAI,CAAC,KAAe,CAAC,CAAC;IACtE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACtE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F","sourcesContent":["/**\n * `wildo secrets set <NAME>` — provide one secret, in one environment, when something needs it.\n *\n * The value is typed into a masked prompt, or read from stdin with `--value-stdin` (how the workbench\n * sends it) — never taken as an argument, which would put it in shell history and process listings.\n * Locally it lands in `secrets.json`, the runtimes' `.env` files are regenerated and only the runtimes\n * that read the key restart; remotely it becomes the GitHub Environment secret the deploy reads (#1637).\n */\nimport { password } from '@inquirer/prompts';\nimport chalk from 'chalk';\n\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { setApplicationSecret, type SecretChangeOutcome } from '~wildo-cli/services/credentials/application-secrets.service';\nimport { describeSecretValueProblem } from '~wildo-cli/services/credentials/provider-secret-format';\n\nasync function readStdin(): Promise<string> {\n const chunks: Buffer[] = [];\n for await (const chunk of process.stdin) chunks.push(chunk as Buffer);\n return Buffer.concat(chunks).toString('utf8').replace(/\\r?\\n$/, '');\n}\n\n/**\n * Refuse a change, saying why. With `--json` the sentence is ALSO printed as one `{\"error\": …}` line on\n * stdout, where the success answer goes, so a machine caller reads the reason from the answer channel.\n * Without it, the workbench had only stderr to go on, whose last line is the CLI's generic\n * \"secrets set failed\" rather than the sentence that names the remedy (a key without its `sk-` prefix,\n * a name the application does not declare, `gh` to install). Shared by `set` and `unset`.\n *\n * It covers refusals made inside `run()`. One raised before it (an unknown flag, a failed bootstrap)\n * still reaches stderr only, where it is the LAST line, which is the companion's fallback reading.\n */\nexport function refuseSecretChange(ctx: CommandContext, sentence: string, json: boolean): CommandResult {\n ctx.log.error(sentence);\n if (json) process.stdout.write(`${JSON.stringify({ error: sentence })}\\n`);\n return { success: false };\n}\n\n/** What a change did, in one line per consequence — shared by `set` and `unset`. */\nexport function reportSecretChange(ctx: CommandContext, verb: string, outcome: SecretChangeOutcome, json: boolean): void {\n if (json) {\n process.stdout.write(`${JSON.stringify(outcome)}\\n`);\n return;\n }\n ctx.log.success(` ${outcome.envVarName} ${verb} in '${outcome.envName}'.`);\n if (outcome.envFilesRegenerationFailure) {\n ctx.log.warn(` ${outcome.envFilesRegenerationFailure}`);\n return;\n }\n if (!outcome.envFilesRegenerated) return;\n if (outcome.companionLoadedInProcess) ctx.log.info(chalk.dim(' Loaded into the running dev companion; nothing restarted.'));\n if (outcome.companionLoadFailure) ctx.log.warn(` ${outcome.companionLoadFailure}`);\n if (outcome.restartSignalledRuntimes.length > 0) {\n ctx.log.info(chalk.dim(` Asked to restart to read it: ${outcome.restartSignalledRuntimes.join(', ')}.`));\n } else if (!outcome.companionLoadedInProcess && !outcome.companionLoadFailure) {\n /*\n * Not \"no runtime reading it is running\": in a created application `wildo local dev` runs the backend\n * and the companion without a supervisor that can be signalled, so a running process can still hold\n * the old value. Say what is true — what was regenerated, and when an unsupervised runtime reads it.\n */\n ctx.log.info(chalk.dim(' Runtime .env files regenerated. No supervised runtime reads it, so a runtime reads it at its next start'\n + ' (restart `wildo local dev` if one that reads it is running).'));\n }\n}\n\n/**\n * `--skip-companion-restart`: the caller applies a change the companion reads itself. Passed by the\n * workbench, whose request is served BY the companion — a restart would end it and any run in flight.\n * Not `--no-…`: Commander reads that prefix as the negation of another option.\n */\nexport const SKIP_COMPANION_RESTART_FLAG = {\n type: 'boolean',\n description: 'Do not restart the dev companion for a key it reads (the caller applies it; the workbench does)',\n default: false,\n} as const;\n\nexport function restartCompanionRequested(ctx: CommandContext): boolean {\n return ctx.flags['skip-companion-restart'] !== true;\n}\n\n/**\n * `--kind`: which `secrets.json` section the name is in. Needed only when a name is in more than one (a key a\n * migration left in the wrong section); the workbench always passes the kind of the row it acts on.\n */\nexport const SECRET_KIND_FLAG = {\n type: 'string',\n description: `The section the secret is in, when its name is in more than one: ${Object.values(ApplicationSecretKind).join(' | ')}`,\n default: undefined,\n} as const;\n\n/** The `--kind` a change names, refused when it is not a kind. */\nexport function requestedSecretKind(ctx: CommandContext): ApplicationSecretKind | undefined {\n const raw = ctx.flags.kind as string | undefined;\n if (raw === undefined) return undefined;\n if (!(Object.values(ApplicationSecretKind) as string[]).includes(raw)) {\n throw new Error(`--kind ${raw} is not a kind of secret. Kinds: ${Object.values(ApplicationSecretKind).join(', ')}.`);\n }\n return raw as ApplicationSecretKind;\n}\n\nexport default class SecretsSetCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'secrets set',\n description: 'Provide one secret in an environment (masked prompt, or --value-stdin); local runtimes that read it restart',\n category: CommandCategory.Core,\n args: [{ name: 'name', description: 'The secret, as `wildo secrets list` names it (e.g. RESEND_API_KEY)', required: true }],\n flags: {\n env: { type: 'string', description: 'Environment (default: the active one)', default: undefined },\n // Declared KEBAB: the kernel registers `--<key>` verbatim, so a camelCase key would be `--valueStdin`.\n 'value-stdin': { type: 'boolean', description: 'Read the value from stdin instead of prompting', default: false },\n 'skip-companion-restart': SKIP_COMPANION_RESTART_FLAG,\n kind: SECRET_KIND_FLAG,\n json: { type: 'boolean', description: 'Machine-readable outcome', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const saasRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n const name = ctx.args.name?.trim();\n const json = ctx.flags.json === true;\n if (!saasRoot || !name) {\n return refuseSecretChange(ctx, !saasRoot ? 'Run this inside an application (a directory with wildo.saas.config.ts).' : 'Which secret? `wildo secrets set <NAME>`.', json);\n }\n const envName = (ctx.flags.env as string | undefined) ?? ctx.activeEnv?.name ?? WildoLocationType.LOCAL;\n try {\n // Checked before the prompt, so a mistyped --kind is refused before anyone types a secret.\n const kind = requestedSecretKind(ctx);\n const fromStdin = ctx.flags['value-stdin'] === true;\n if (!fromStdin && process.stdin.isTTY !== true) {\n return refuseSecretChange(ctx, 'No terminal to prompt on. Pipe the value with --value-stdin.', json);\n }\n const value = fromStdin\n ? await readStdin()\n : await password({ message: `${name}:`, mask: true, validate: (raw) => describeSecretValueProblem(name, raw, true) ?? true });\n const outcome = await setApplicationSecret(saasRoot, envName, name, value, { restartCompanion: restartCompanionRequested(ctx), kind });\n reportSecretChange(ctx, 'set', outcome, json);\n return { success: true };\n } catch (error) {\n return refuseSecretChange(ctx, ErrorUtils.extractErrorMessage(error), json);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"set.command.js","sourceRoot":"","sources":["../../../../../../src/commands/secrets/set.command.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAA4B,MAAM,6DAA6D,CAAC;AAC7H,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AAEpG,KAAK,UAAU,SAAS;IACtB,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,OAAO,CAAC,KAAK;QAAE,MAAM,CAAC,IAAI,CAAC,KAAe,CAAC,CAAC;IACtE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACtE,CAAC;AAED;;;;;;;;;GASG;AACH,MAA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A2F;YAC3F,MAAM,IAAI,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;YACtC,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;YACpD,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBAC/C,OAAO,kBAAkB,CAAC,GAAG,EAAE,8DAA8D,EAAE,IAAI,CAAC,CAAC;YACvG,CAAC;YACD,MAAM,KAAK,GAAG,SAAS;gBACrB,CAAC,CAAC,MAAM,SAAS,EAAE;gBACnB,CAAC,CAAC,MAAM,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;YAChI,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,yBAAyB,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YACvI,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;YAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,kBAAkB,CAAC,GAAG,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo secrets set <NAME>` — provide one secret, in one environment, when something needs it.\n *\n * The value is typed into a masked prompt, or read from stdin with `--value-stdin` (how the workbench\n * sends it) — never taken as an argument, which would put it in shell history and process listings.\n * Locally it lands in `secrets.json`, the runtimes' `.env` files are regenerated and only the runtimes\n * that read the key restart; remotely it becomes the GitHub Environment secret the deploy reads (#1637).\n */\nimport { password } from '@inquirer/prompts';\nimport chalk from 'chalk';\n\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { setApplicationSecret, type SecretChangeOutcome } from '~wildo-cli/services/credentials/application-secrets.service';\nimport { describeSecretValueProblem } from '~wildo-cli/services/credentials/provider-secret-format';\n\nasync function readStdin(): Promise<string> {\n const chunks: Buffer[] = [];\n for await (const chunk of process.stdin) chunks.push(chunk as Buffer);\n return Buffer.concat(chunks).toString('utf8').replace(/\\r?\\n$/, '');\n}\n\n/**\n * Refuse a change, saying why. With `--json` the sentence is ALSO printed as one `{\"error\": …}` line on\n * stdout, where the success answer goes, so a machine caller reads the reason from the answer channel.\n * Without it, the workbench had only stderr to go on, whose last line is the CLI's generic\n * \"secrets set failed\" rather than the sentence that names the remedy (a key without its `sk-` prefix,\n * a name the application does not declare, `gh` to install). Shared by `set` and `unset`.\n *\n * It covers refusals made inside `run()`. One raised before it (an unknown flag, a failed bootstrap)\n * still reaches stderr only, where it is the LAST line, which is the companion's fallback reading.\n */\nexport function refuseSecretChange(ctx: CommandContext, sentence: string, json: boolean): CommandResult {\n ctx.log.error(sentence);\n if (json) writeJsonDocument({ error: sentence });\n return { success: false };\n}\n\n/** What a change did, in one line per consequence — shared by `set` and `unset`. */\nexport function reportSecretChange(ctx: CommandContext, verb: string, outcome: SecretChangeOutcome, json: boolean): void {\n if (json) {\n writeJsonDocument(outcome);\n return;\n }\n ctx.log.success(` ${outcome.envVarName} ${verb} in '${outcome.envName}'.`);\n if (outcome.envFilesRegenerationFailure) {\n ctx.log.warn(` ${outcome.envFilesRegenerationFailure}`);\n return;\n }\n if (!outcome.envFilesRegenerated) return;\n if (outcome.companionLoadedInProcess) ctx.log.info(chalk.dim(' Loaded into the running dev companion; nothing restarted.'));\n if (outcome.companionLoadFailure) ctx.log.warn(` ${outcome.companionLoadFailure}`);\n if (outcome.restartSignalledRuntimes.length > 0) {\n ctx.log.info(chalk.dim(` Asked to restart to read it: ${outcome.restartSignalledRuntimes.join(', ')}.`));\n } else if (!outcome.companionLoadedInProcess && !outcome.companionLoadFailure) {\n /*\n * Not \"no runtime reading it is running\": in a created application `wildo local dev` runs the backend\n * and the companion without a supervisor that can be signalled, so a running process can still hold\n * the old value. Say what is true — what was regenerated, and when an unsupervised runtime reads it.\n */\n ctx.log.info(chalk.dim(' Runtime .env files regenerated. No supervised runtime reads it, so a runtime reads it at its next start'\n + ' (restart `wildo local dev` if one that reads it is running).'));\n }\n}\n\n/**\n * `--skip-companion-restart`: the caller applies a change the companion reads itself. Passed by the\n * workbench, whose request is served BY the companion — a restart would end it and any run in flight.\n * Not `--no-…`: Commander reads that prefix as the negation of another option.\n */\nexport const SKIP_COMPANION_RESTART_FLAG = {\n type: 'boolean',\n description: 'Do not restart the dev companion for a key it reads (the caller applies it; the workbench does)',\n default: false,\n} as const;\n\nexport function restartCompanionRequested(ctx: CommandContext): boolean {\n return ctx.flags['skip-companion-restart'] !== true;\n}\n\n/**\n * `--kind`: which `secrets.json` section the name is in. Needed only when a name is in more than one (a key a\n * migration left in the wrong section); the workbench always passes the kind of the row it acts on.\n */\nexport const SECRET_KIND_FLAG = {\n type: 'string',\n description: `The section the secret is in, when its name is in more than one: ${Object.values(ApplicationSecretKind).join(' | ')}`,\n default: undefined,\n} as const;\n\n/** The `--kind` a change names, refused when it is not a kind. */\nexport function requestedSecretKind(ctx: CommandContext): ApplicationSecretKind | undefined {\n const raw = ctx.flags.kind as string | undefined;\n if (raw === undefined) return undefined;\n if (!(Object.values(ApplicationSecretKind) as string[]).includes(raw)) {\n throw new Error(`--kind ${raw} is not a kind of secret. Kinds: ${Object.values(ApplicationSecretKind).join(', ')}.`);\n }\n return raw as ApplicationSecretKind;\n}\n\nexport default class SecretsSetCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'secrets set',\n description: 'Provide one secret in an environment (masked prompt, or --value-stdin); local runtimes that read it restart',\n category: CommandCategory.Core,\n args: [{ name: 'name', description: 'The secret, as `wildo secrets list` names it (e.g. RESEND_API_KEY)', required: true }],\n flags: {\n env: { type: 'string', description: 'Environment (default: the active one)', default: undefined },\n // Declared KEBAB: the kernel registers `--<key>` verbatim, so a camelCase key would be `--valueStdin`.\n 'value-stdin': { type: 'boolean', description: 'Read the value from stdin instead of prompting', default: false },\n 'skip-companion-restart': SKIP_COMPANION_RESTART_FLAG,\n kind: SECRET_KIND_FLAG,\n json: { type: 'boolean', description: 'Machine-readable outcome', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const saasRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n const name = ctx.args.name?.trim();\n const json = ctx.flags.json === true;\n if (!saasRoot || !name) {\n return refuseSecretChange(ctx, !saasRoot ? 'Run this inside an application (a directory with wildo.saas.config.ts).' : 'Which secret? `wildo secrets set <NAME>`.', json);\n }\n const envName = (ctx.flags.env as string | undefined) ?? ctx.activeEnv?.name ?? WildoLocationType.LOCAL;\n try {\n // Checked before the prompt, so a mistyped --kind is refused before anyone types a secret.\n const kind = requestedSecretKind(ctx);\n const fromStdin = ctx.flags['value-stdin'] === true;\n if (!fromStdin && process.stdin.isTTY !== true) {\n return refuseSecretChange(ctx, 'No terminal to prompt on. Pipe the value with --value-stdin.', json);\n }\n const value = fromStdin\n ? await readStdin()\n : await password({ message: `${name}:`, mask: true, validate: (raw) => describeSecretValueProblem(name, raw, true) ?? true });\n const outcome = await setApplicationSecret(saasRoot, envName, name, value, { restartCompanion: restartCompanionRequested(ctx), kind });\n reportSecretChange(ctx, 'set', outcome, json);\n return { success: true };\n } catch (error) {\n return refuseSecretChange(ctx, ErrorUtils.extractErrorMessage(error), json);\n }\n }\n}\n"]}
@@ -216,6 +216,9 @@ async function updateApplication(ctx, applicationRoot, target) {
216
216
  for (const pattern of alignment.unsupportedWorkspacePatterns) {
217
217
  ctx.log.warn(` pnpm-workspace.yaml member '${pattern}' is not a shape alignment can expand; the packages it covers were not aligned.`);
218
218
  }
219
+ // #2789: report-only defects alignment never removes; an update says them and goes on.
220
+ for (const report of alignment.reports)
221
+ ctx.log.warn(` ${report.manifestRelativePath}: ${report.name} is ${report.kind} (${report.detail}); run \`wildo align-deps\` for what to do.`);
219
222
  if (alignment.findings.length === 0) {
220
223
  ctx.log.success(' Dependency pins and peer declarations already match the release.');
221
224
  }
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.js","sourceRoot":"","sources":["../../../../../src/commands/update.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAC9G,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qCAAqC,EAAE,MAAM,0EAA0E,CAAC;AACjI,OAAO,EACL,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,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CAAC,CAAC;AAC3B,CAAC","sourcesContent":["/**\n * `wildo update` — move this machine's CLI, and the application you are standing in, to a published\n * framework release (the `latest` dist-tag by default).\n *\n * wildo update # CLI → latest; inside an application, the application too\n * wildo update --to 1.1.7 # a specific release (upgrade, or downgrade to one that has `update`)\n * wildo update --tag next # follow another dist-tag\n * wildo update --check # report only: CLI, application and target versions\n * wildo update --cli-only # move the CLI, leave the application alone\n *\n * Outside an application it moves the CLI and stops. Inside one it moves the CLI, then re-executes the\n * NEW CLI (`--app-only`) for the application half:\n *\n * 1. every `@wildo-ai/*` pin in `pnpm.overrides` → the release (plus framework-knowledge and\n * dev-companion, which nothing pinned before)\n * 2. the companion and workbench drops rewritten at the release (the workbench drop CREATED in an\n * application scaffolded before the workbench was published)\n * 3. `pnpm install` → `align-deps --write` → `pnpm install` (only when alignment changed anything)\n * 4. `assets sync` — templates, docs, skills and rules from the release\n * 5. the config judged by the release's contract; then `config sync --domain manifest`, so the\n * compose / k8s files name the release's platform image\n * 6. `dev sync-csp` — the provider runtime artifacts and the CSP files derived from them, because a\n * release can change what their readers require while no input changes (#2253). The\n * systems-of-record library that sync declares is declared and installed FIRST, so the sync\n * never meets a manifest edited after the last install.\n *\n * It never restarts anything: a running stack keeps the old code until you restart it, and when to\n * do that is yours. The closing lines say what to restart.\n *\n * The flag is `--to`, not `--version`: the CLI bootstrap answers `--version` itself, before any\n * command runs.\n *\n * See `framework-update.service.ts` for why the CLI moves first, how it moves without touching the\n * running installation, and what the command refuses.\n */\nimport { spawnSync } from 'child_process';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { forwardedGlobalFlags } from '~wildo-cli/kernel/command-runner';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { APP_CREATOR_ADDITIONAL_FRAMEWORK_PINS } from '~wildo-cli/services/application/saas-skeleton.service';\nimport { findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\nimport { ApplicationDependencyAlignmentService } from '~wildo-cli/services/application/application-dependency-alignment.service';\nimport {\n ApplicationAssetsDeliveryService,\n ApplicationAssetsLaneStatus,\n} from '~wildo-cli/services/application/application-assets-delivery.service';\nimport { resolveInstalledFrameworkAssetsRoot } from '~wildo-cli/services/framework/installed-framework-assets.service';\nimport {\n ApplicationConfigCheckOutcome,\n ApplicationFrameworkPinsKind,\n assertReleaseCarriesUpdateCommand,\n checkApplicationConfigAgainstRelease,\n DEFAULT_FRAMEWORK_DIST_TAG,\n findRetiredFrameworkPackageDependents,\n installCliRelease,\n InstalledCliLocationKind,\n locateInstalledCli,\n npmRegistryClient,\n pinApplicationFrameworkVersion,\n readApplicationFrameworkPins,\n RegistryVersionStatus,\n resolveApplicationWorkbenchPorts,\n removeApplicationWorkbenchDrop,\n rewriteApplicationWorkbenchDrop,\n type WorkbenchDropPorts,\n WORKBENCH_PACKAGE_NAME,\n resolveTargetFrameworkVersion,\n rewriteApplicationCompanionDrop,\n} from '~wildo-cli/services/framework/framework-update.service';\nimport { runPnpmInstall } from '~wildo-cli/services/framework/package-install.service';\nimport { declareSystemsOfRecordLibrary } from '~wildo-cli/services/application/systems-of-record-library.service';\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { join } from 'path';\n\nexport default class UpdateCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'update',\n description: 'Update the Wildo CLI, and the application you are in, to a published framework release',\n category: CommandCategory.Core,\n flags: {\n to: { type: 'string', description: 'The exact release to move to (default: the --tag release)' },\n tag: { type: 'string', description: `The npm dist-tag to follow (default: ${DEFAULT_FRAMEWORK_DIST_TAG})` },\n check: { type: 'boolean', description: 'Report the current and target versions without changing anything' },\n 'cli-only': { type: 'boolean', description: 'Move the CLI only; leave the application untouched' },\n 'app-only': { type: 'boolean', description: 'Update the application only (the CLI must already be at the target release)' },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const cliVersion = readVersion();\n const applicationRoot = findApplicationRoot(process.cwd());\n const cliOnly = ctx.flags['cli-only'] === true;\n const appOnly = ctx.flags['app-only'] === true;\n if (cliOnly && appOnly) {\n ctx.log.error('--cli-only and --app-only are mutually exclusive.');\n return { success: false };\n }\n\n const requestedVersion = typeof ctx.flags.to === 'string' && ctx.flags.to.length > 0 ? ctx.flags.to : undefined;\n const requestedTag = typeof ctx.flags.tag === 'string' && ctx.flags.tag.length > 0 ? ctx.flags.tag : undefined;\n let target: string;\n try {\n target = resolveTargetFrameworkVersion({ requestedVersion, distTag: requestedTag ?? DEFAULT_FRAMEWORK_DIST_TAG });\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n\n if (ctx.flags.check === true) {\n return reportCheck(ctx, { cliVersion, applicationRoot, target, requestedVersion, requestedTag });\n }\n\n // ── CLI half ──\n if (!appOnly && cliVersion !== target) {\n const location = locateInstalledCli(resolveInstalledFrameworkAssetsRoot());\n if (location.kind === InstalledCliLocationKind.REFUSED) {\n ctx.log.error(location.reason);\n return { success: false };\n }\n let entryPoint: string;\n try {\n assertReleaseCarriesUpdateCommand(target);\n ctx.log.info(` Installing @wildo-ai/wildo-cli ${target} (was ${cliVersion})…`);\n const installation = installCliRelease({ prefix: location.prefix, version: target });\n entryPoint = installation.entryPoint;\n for (const directory of installation.retainedDirectories) {\n ctx.log.warn(` Could not remove the earlier CLI at ${directory}; the next update retries it.`);\n }\n } catch (error) {\n ctx.log.error(`CLI update failed; the CLI in use is unchanged. ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n ctx.log.success(` CLI updated to ${target}.`);\n\n if (cliOnly || !applicationRoot) {\n if (!applicationRoot) ctx.log.info(\" Not inside an application. Run 'wildo update' in each application to move it too.\");\n return { success: true };\n }\n // The application half must run from the release it installs: re-execute the new binary.\n const child = spawnSync(\n process.execPath,\n [entryPoint, ...forwardedGlobalFlags(ctx.globalFlags), 'update', '--app-only', '--to', target],\n { cwd: process.cwd(), stdio: 'inherit' },\n );\n return { success: child.status === 0 };\n }\n\n if (!appOnly) ctx.log.success(` CLI already at ${target}.`);\n if (cliOnly) return { success: true };\n if (!applicationRoot) {\n if (appOnly) ctx.log.error('--app-only needs an application: run it inside one (a directory containing wildo.saas.config.ts).');\n return { success: !appOnly };\n }\n if (cliVersion !== target) {\n ctx.log.error(\n `This CLI is ${cliVersion} but the target is ${target}. The application half reads templates from the CLI, `\n + \"so it must run from the target release: run 'wildo update' without --app-only.\",\n );\n return { success: false };\n }\n\n return updateApplication(ctx, applicationRoot, target);\n }\n}\n\nfunction reportCheck(\n ctx: CommandContext,\n input: { cliVersion: string; applicationRoot: string | null; target: string; requestedVersion?: string; requestedTag?: string },\n): CommandResult {\n const pins = input.applicationRoot ? readApplicationFrameworkPins(input.applicationRoot) : null;\n ctx.log.info(` CLI: ${input.cliVersion}`);\n if (pins !== null) {\n const described = pins.kind === ApplicationFrameworkPinsKind.RELEASE\n ? pins.versions.join(', ')\n : pins.kind === ApplicationFrameworkPinsKind.CHECKOUT\n ? 'follows a framework checkout (file: links) — `wildo update` does not move it'\n : 'no @wildo-ai/* pins in pnpm.overrides';\n ctx.log.info(` Application: ${described}`);\n }\n ctx.log.info(` Target: ${input.target}`);\n // Only an application pinned to releases can be behind; a checkout-linked one is not ours to move.\n const applicationBehind = pins?.kind === ApplicationFrameworkPinsKind.RELEASE\n && (pins.versions.length !== 1 || pins.versions[0] !== input.target);\n if (input.cliVersion === input.target && !applicationBehind) {\n ctx.log.success(' Already at the target release.');\n } else {\n const selector = input.requestedVersion ? ` --to ${input.target}` : input.requestedTag ? ` --tag ${input.requestedTag}` : '';\n ctx.log.warn(` An update is available: run 'wildo update${selector}'.`);\n }\n return { success: true };\n}\n\nasync function updateApplication(ctx: CommandContext, applicationRoot: string, target: string): Promise<CommandResult> {\n ctx.log.info(`\\n Updating the application at ${applicationRoot} to ${target}`);\n\n /*\n * Everything that can refuse is decided BEFORE anything is written, so a refusal leaves the\n * application exactly as it was rather than with its pins moved and a drop missing.\n *\n * The workbench is published from 1.1.5 on. A release without it (an explicit `--to` below that)\n * gets no workbench pin and no drop — pinning a version npm has never seen would fail the install.\n */\n let workbenchPorts: WorkbenchDropPorts | null = null;\n try {\n const workbenchStatus = npmRegistryClient.versionStatus(WORKBENCH_PACKAGE_NAME, target);\n if (workbenchStatus === RegistryVersionStatus.UNKNOWN) {\n throw new Error(`Could not ask npm whether ${WORKBENCH_PACKAGE_NAME}@${target} exists (is the registry reachable?).`);\n }\n if (workbenchStatus === RegistryVersionStatus.PUBLISHED) workbenchPorts = await resolveApplicationWorkbenchPorts(applicationRoot);\n else ctx.log.warn(` ${target} publishes no ${WORKBENCH_PACKAGE_NAME}: the workbench is removed from this application for this release.`);\n } catch (error) {\n ctx.log.error(`${ErrorUtils.extractErrorMessage(error)} Nothing was changed.`);\n return { success: false };\n }\n\n try {\n const pins = pinApplicationFrameworkVersion({\n applicationRoot,\n version: target,\n additionalPins: APP_CREATOR_ADDITIONAL_FRAMEWORK_PINS.filter((name) => workbenchPorts !== null || name !== WORKBENCH_PACKAGE_NAME),\n // A release without the workbench cannot keep a pin naming it: the version would not exist.\n removedPins: workbenchPorts === null ? [WORKBENCH_PACKAGE_NAME] : [],\n });\n ctx.log.success(\n pins.changedPackages.length === 0\n ? ` pnpm.overrides already pin @wildo-ai/* at ${target}.`\n : ` pnpm.overrides: ${pins.changedPackages.length} @wildo-ai/* pin(s) ${pins.previousVersions.join(', ')} → ${target}.`,\n );\n for (const dependent of findRetiredFrameworkPackageDependents(applicationRoot)) {\n ctx.log.warn(` ${dependent.manifestRelativePath} still depends on ${dependent.packageName}, which is no longer published: ${dependent.replacement}.`);\n }\n rewriteApplicationCompanionDrop({ applicationRoot, version: target });\n ctx.log.success(` Companion drop pinned to @wildo-ai/dev-companion ${target}.`);\n if (workbenchPorts === null) {\n if (removeApplicationWorkbenchDrop(applicationRoot)) ctx.log.success(' Workbench drop removed (this release does not publish it).');\n } else {\n rewriteApplicationWorkbenchDrop({ applicationRoot, version: target, ports: workbenchPorts });\n ctx.log.success(` Workbench drop pinned to ${WORKBENCH_PACKAGE_NAME} ${target} (http://localhost:${workbenchPorts.workbenchPort}).`);\n }\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n\n if (!runPnpmInstall(ctx.log, 'pnpm install', applicationRoot)) return { success: false };\n\n try {\n const alignment = ApplicationDependencyAlignmentService.align({ applicationRoot, write: true });\n for (const pattern of alignment.unsupportedWorkspacePatterns) {\n ctx.log.warn(` pnpm-workspace.yaml member '${pattern}' is not a shape alignment can expand; the packages it covers were not aligned.`);\n }\n if (alignment.findings.length === 0) {\n ctx.log.success(' Dependency pins and peer declarations already match the release.');\n } else {\n ctx.log.success(` align-deps: applied ${alignment.findings.length} change(s) derived from the release.`);\n if (!runPnpmInstall(ctx.log, 'pnpm install (alignment)', applicationRoot)) return { success: false };\n }\n } catch (error) {\n ctx.log.error(`Dependency alignment failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n let assetsOk = true;\n try {\n const assets = ApplicationAssetsDeliveryService.deliver({\n applicationRoot,\n frameworkAssetsRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n });\n for (const [label, lane] of [['templates', assets.templates], ['docs', assets.docs], ['skills + rules', assets.skills]] as const) {\n if (lane.status === ApplicationAssetsLaneStatus.DELIVERED && lane.warning === undefined) {\n ctx.log.success(` ${label}: ${lane.detail}`);\n } else {\n assetsOk = false;\n ctx.log.warn(` ${label}: ${lane.warning ?? `skipped — ${lane.detail}`}`);\n }\n }\n const knowledgeVersion = ApplicationAssetsDeliveryService.readInstalledPackageVersion(assets.knowledgePackageRoot);\n const skew = ApplicationAssetsDeliveryService.describeFrameworkVersionSkew(target, knowledgeVersion);\n if (skew) {\n assetsOk = false;\n ctx.log.warn(` ${skew}`);\n }\n } catch (error) {\n ctx.log.error(`Asset delivery failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n // A release may REQUIRE a declaration this application predates. Judge the config by the release\n // now running, and report an owed declaration as what it is rather than letting `config sync` fail\n // on it with a raw schema dump (see `checkApplicationConfigAgainstRelease`).\n const config = await checkApplicationConfigAgainstRelease(applicationRoot);\n if (config.outcome === ApplicationConfigCheckOutcome.CONTRACT_UNMET) {\n ctx.log.warn(` wildo.saas.config.ts does not satisfy ${target}'s config contract (${config.issues.length} issue(s)):`);\n for (const issue of config.issues) ctx.log.warn(` - ${issue}`);\n ctx.log.warn(' The release requires a declaration this application predates. Add it, using the current scaffold as the');\n ctx.log.warn(' reference: .wildo-saas/templates/skeleton/wildo.saas.config.ts.init.hbs — then run `wildo config sync`.');\n } else if (config.outcome === ApplicationConfigCheckOutcome.LOAD_FAILED) {\n ctx.log.warn(` wildo.saas.config.ts could not be loaded: ${config.message}`);\n }\n\n // Re-render the compose / k8s files so they name the release's platform image. `manifest` is the\n // one domain that needs no running platform and rewrites no env file or secret. Skipped when the\n // config does not load: it would fail on the same problem, only less legibly. Re-invoked with this\n // process's own runtime flags, so a loader-based launch (tsx) is reproduced faithfully.\n let manifestsOk = false;\n let generatedOk = false;\n if (config.outcome === ApplicationConfigCheckOutcome.LOADS) {\n manifestsOk = runReleaseCliStep(ctx, applicationRoot, ['config', 'sync', '--domain', 'manifest']);\n\n /*\n * The provider runtime artifacts, and the CSP files built from their origins (#2253). A release can change what\n * their READERS require without any input changing — #1705 made the website and the backend refuse a served\n * frontend provider entry with no `publicConfigKeys`, which only the newer generator writes — so an application\n * updated without this step crash-looped on its first `wildo local dev`, and nothing in the update said why.\n *\n * `dev sync-csp` rather than `config sync --domain config`: it is the one door that regenerates exactly these, for\n * the active environment, and it writes no env file and no secret. `config` would also reconcile the authored infra\n * config and mint missing framework secrets — a wider write than moving to a release should make.\n *\n * It does write ONE authored thing: the generation declares the systems-of-record library on the backend manifests\n * of an application whose `systemsOfRecord` is non-empty (#2013), and discovery then refuses that library until it\n * is installed. Declared there, after this command's installs, it would fail the update with the application's\n * manifests already edited. So it is declared here and installed before the generation runs, which leaves that\n * step a no-op.\n */\n generatedOk = await declareAndInstallSystemsOfRecordLibrary(ctx, applicationRoot)\n && runReleaseCliStep(ctx, applicationRoot, ['dev', 'sync-csp']);\n }\n\n ctx.log.info('');\n if (assetsOk && manifestsOk && generatedOk) {\n ctx.log.success(` Application updated to ${target}.`);\n } else {\n const owed = config.outcome === ApplicationConfigCheckOutcome.CONTRACT_UNMET ? 'config changes it owes' : 'warnings';\n ctx.log.warn(` Application moved to ${target}, with the ${owed} above.`);\n }\n ctx.log.info(' Nothing running was restarted. To run the release:');\n ctx.log.info(` wildo local up # platform containers on the ${target} image`);\n ctx.log.info(' wildo local dev # restart the application stack and its companion');\n return { success: assetsOk && manifestsOk && generatedOk };\n}\n\n/**\n * Declares the systems-of-record library the provider generation would declare, and installs it when that\n * changed anything (#2253 review). Returns false only when the install failed; an application declaring no\n * system of record changes nothing here.\n */\nasync function declareAndInstallSystemsOfRecordLibrary(ctx: CommandContext, applicationRoot: string): Promise<boolean> {\n try {\n const declaration = declareSystemsOfRecordLibrary({\n saasRoot: applicationRoot,\n saasConfig: await loadSaasConfig(join(applicationRoot, 'wildo.saas.config.ts')),\n // `update` refuses a checkout-linked application, so the library resolves from the published release.\n frameworkPath: null,\n log: { info: (message) => ctx.log.info(message), warn: (message) => ctx.log.warn(message) },\n });\n if (declaration.declaredIn.length === 0 && declaration.linksAdded.length === 0) return true;\n return runPnpmInstall(ctx.log, 'pnpm install (systems-of-record library)', applicationRoot);\n } catch (error) {\n ctx.log.error(` Could not declare the systems-of-record library: ${ErrorUtils.extractErrorMessage(error)}`);\n return false;\n }\n}\n\n/**\n * Runs one `wildo` step of the application half with THIS process's runtime — the release's CLI, re-invoked with\n * its own runtime flags so a loader-based launch (tsx) is reproduced faithfully — non-interactively, from the\n * application root. Reports a failure and returns whether the step succeeded.\n */\nfunction runReleaseCliStep(ctx: CommandContext, applicationRoot: string, args: readonly string[]): boolean {\n const label = args.join(' ');\n ctx.log.info(` ${label}…`);\n const step = spawnSync(\n process.execPath,\n [...process.execArgv, process.argv[1], ...forwardedGlobalFlags({ ...ctx.globalFlags, nonInteractive: true }), ...args],\n { cwd: applicationRoot, stdio: 'inherit' },\n );\n if (step.status !== 0) ctx.log.error(` ${label} failed (exit ${step.status ?? 'signal'}).`);\n return step.status === 0;\n}\n"]}
1
+ {"version":3,"file":"update.command.js","sourceRoot":"","sources":["../../../../../src/commands/update.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAC9G,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qCAAqC,EAAE,MAAM,0EAA0E,CAAC;AACjI,OAAO,EACL,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AACvH,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,iCAAiC,EACjC,oCAAoC,EACpC,0BAA0B,EAC1B,qCAAqC,EACrC,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EACrB,gCAAgC,EAChC,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AAC;AAC3B,CAAC","sourcesContent":["/**\n * `wildo update` — move this machine's CLI, and the application you are standing in, to a published\n * framework release (the `latest` dist-tag by default).\n *\n * wildo update # CLI → latest; inside an application, the application too\n * wildo update --to 1.1.7 # a specific release (upgrade, or downgrade to one that has `update`)\n * wildo update --tag next # follow another dist-tag\n * wildo update --check # report only: CLI, application and target versions\n * wildo update --cli-only # move the CLI, leave the application alone\n *\n * Outside an application it moves the CLI and stops. Inside one it moves the CLI, then re-executes the\n * NEW CLI (`--app-only`) for the application half:\n *\n * 1. every `@wildo-ai/*` pin in `pnpm.overrides` → the release (plus framework-knowledge and\n * dev-companion, which nothing pinned before)\n * 2. the companion and workbench drops rewritten at the release (the workbench drop CREATED in an\n * application scaffolded before the workbench was published)\n * 3. `pnpm install` → `align-deps --write` → `pnpm install` (only when alignment changed anything)\n * 4. `assets sync` — templates, docs, skills and rules from the release\n * 5. the config judged by the release's contract; then `config sync --domain manifest`, so the\n * compose / k8s files name the release's platform image\n * 6. `dev sync-csp` — the provider runtime artifacts and the CSP files derived from them, because a\n * release can change what their readers require while no input changes (#2253). The\n * systems-of-record library that sync declares is declared and installed FIRST, so the sync\n * never meets a manifest edited after the last install.\n *\n * It never restarts anything: a running stack keeps the old code until you restart it, and when to\n * do that is yours. The closing lines say what to restart.\n *\n * The flag is `--to`, not `--version`: the CLI bootstrap answers `--version` itself, before any\n * command runs.\n *\n * See `framework-update.service.ts` for why the CLI moves first, how it moves without touching the\n * running installation, and what the command refuses.\n */\nimport { spawnSync } from 'child_process';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { forwardedGlobalFlags } from '~wildo-cli/kernel/command-runner';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { APP_CREATOR_ADDITIONAL_FRAMEWORK_PINS } from '~wildo-cli/services/application/saas-skeleton.service';\nimport { findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\nimport { ApplicationDependencyAlignmentService } from '~wildo-cli/services/application/application-dependency-alignment.service';\nimport {\n ApplicationAssetsDeliveryService,\n ApplicationAssetsLaneStatus,\n} from '~wildo-cli/services/application/application-assets-delivery.service';\nimport { resolveInstalledFrameworkAssetsRoot } from '~wildo-cli/services/framework/installed-framework-assets.service';\nimport {\n ApplicationConfigCheckOutcome,\n ApplicationFrameworkPinsKind,\n assertReleaseCarriesUpdateCommand,\n checkApplicationConfigAgainstRelease,\n DEFAULT_FRAMEWORK_DIST_TAG,\n findRetiredFrameworkPackageDependents,\n installCliRelease,\n InstalledCliLocationKind,\n locateInstalledCli,\n npmRegistryClient,\n pinApplicationFrameworkVersion,\n readApplicationFrameworkPins,\n RegistryVersionStatus,\n resolveApplicationWorkbenchPorts,\n removeApplicationWorkbenchDrop,\n rewriteApplicationWorkbenchDrop,\n type WorkbenchDropPorts,\n WORKBENCH_PACKAGE_NAME,\n resolveTargetFrameworkVersion,\n rewriteApplicationCompanionDrop,\n} from '~wildo-cli/services/framework/framework-update.service';\nimport { runPnpmInstall } from '~wildo-cli/services/framework/package-install.service';\nimport { declareSystemsOfRecordLibrary } from '~wildo-cli/services/application/systems-of-record-library.service';\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { join } from 'path';\n\nexport default class UpdateCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'update',\n description: 'Update the Wildo CLI, and the application you are in, to a published framework release',\n category: CommandCategory.Core,\n flags: {\n to: { type: 'string', description: 'The exact release to move to (default: the --tag release)' },\n tag: { type: 'string', description: `The npm dist-tag to follow (default: ${DEFAULT_FRAMEWORK_DIST_TAG})` },\n check: { type: 'boolean', description: 'Report the current and target versions without changing anything' },\n 'cli-only': { type: 'boolean', description: 'Move the CLI only; leave the application untouched' },\n 'app-only': { type: 'boolean', description: 'Update the application only (the CLI must already be at the target release)' },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const cliVersion = readVersion();\n const applicationRoot = findApplicationRoot(process.cwd());\n const cliOnly = ctx.flags['cli-only'] === true;\n const appOnly = ctx.flags['app-only'] === true;\n if (cliOnly && appOnly) {\n ctx.log.error('--cli-only and --app-only are mutually exclusive.');\n return { success: false };\n }\n\n const requestedVersion = typeof ctx.flags.to === 'string' && ctx.flags.to.length > 0 ? ctx.flags.to : undefined;\n const requestedTag = typeof ctx.flags.tag === 'string' && ctx.flags.tag.length > 0 ? ctx.flags.tag : undefined;\n let target: string;\n try {\n target = resolveTargetFrameworkVersion({ requestedVersion, distTag: requestedTag ?? DEFAULT_FRAMEWORK_DIST_TAG });\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n\n if (ctx.flags.check === true) {\n return reportCheck(ctx, { cliVersion, applicationRoot, target, requestedVersion, requestedTag });\n }\n\n // ── CLI half ──\n if (!appOnly && cliVersion !== target) {\n const location = locateInstalledCli(resolveInstalledFrameworkAssetsRoot());\n if (location.kind === InstalledCliLocationKind.REFUSED) {\n ctx.log.error(location.reason);\n return { success: false };\n }\n let entryPoint: string;\n try {\n assertReleaseCarriesUpdateCommand(target);\n ctx.log.info(` Installing @wildo-ai/wildo-cli ${target} (was ${cliVersion})…`);\n const installation = installCliRelease({ prefix: location.prefix, version: target });\n entryPoint = installation.entryPoint;\n for (const directory of installation.retainedDirectories) {\n ctx.log.warn(` Could not remove the earlier CLI at ${directory}; the next update retries it.`);\n }\n } catch (error) {\n ctx.log.error(`CLI update failed; the CLI in use is unchanged. ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n ctx.log.success(` CLI updated to ${target}.`);\n\n if (cliOnly || !applicationRoot) {\n if (!applicationRoot) ctx.log.info(\" Not inside an application. Run 'wildo update' in each application to move it too.\");\n return { success: true };\n }\n // The application half must run from the release it installs: re-execute the new binary.\n const child = spawnSync(\n process.execPath,\n [entryPoint, ...forwardedGlobalFlags(ctx.globalFlags), 'update', '--app-only', '--to', target],\n { cwd: process.cwd(), stdio: 'inherit' },\n );\n return { success: child.status === 0 };\n }\n\n if (!appOnly) ctx.log.success(` CLI already at ${target}.`);\n if (cliOnly) return { success: true };\n if (!applicationRoot) {\n if (appOnly) ctx.log.error('--app-only needs an application: run it inside one (a directory containing wildo.saas.config.ts).');\n return { success: !appOnly };\n }\n if (cliVersion !== target) {\n ctx.log.error(\n `This CLI is ${cliVersion} but the target is ${target}. The application half reads templates from the CLI, `\n + \"so it must run from the target release: run 'wildo update' without --app-only.\",\n );\n return { success: false };\n }\n\n return updateApplication(ctx, applicationRoot, target);\n }\n}\n\nfunction reportCheck(\n ctx: CommandContext,\n input: { cliVersion: string; applicationRoot: string | null; target: string; requestedVersion?: string; requestedTag?: string },\n): CommandResult {\n const pins = input.applicationRoot ? readApplicationFrameworkPins(input.applicationRoot) : null;\n ctx.log.info(` CLI: ${input.cliVersion}`);\n if (pins !== null) {\n const described = pins.kind === ApplicationFrameworkPinsKind.RELEASE\n ? pins.versions.join(', ')\n : pins.kind === ApplicationFrameworkPinsKind.CHECKOUT\n ? 'follows a framework checkout (file: links) — `wildo update` does not move it'\n : 'no @wildo-ai/* pins in pnpm.overrides';\n ctx.log.info(` Application: ${described}`);\n }\n ctx.log.info(` Target: ${input.target}`);\n // Only an application pinned to releases can be behind; a checkout-linked one is not ours to move.\n const applicationBehind = pins?.kind === ApplicationFrameworkPinsKind.RELEASE\n && (pins.versions.length !== 1 || pins.versions[0] !== input.target);\n if (input.cliVersion === input.target && !applicationBehind) {\n ctx.log.success(' Already at the target release.');\n } else {\n const selector = input.requestedVersion ? ` --to ${input.target}` : input.requestedTag ? ` --tag ${input.requestedTag}` : '';\n ctx.log.warn(` An update is available: run 'wildo update${selector}'.`);\n }\n return { success: true };\n}\n\nasync function updateApplication(ctx: CommandContext, applicationRoot: string, target: string): Promise<CommandResult> {\n ctx.log.info(`\\n Updating the application at ${applicationRoot} to ${target}`);\n\n /*\n * Everything that can refuse is decided BEFORE anything is written, so a refusal leaves the\n * application exactly as it was rather than with its pins moved and a drop missing.\n *\n * The workbench is published from 1.1.5 on. A release without it (an explicit `--to` below that)\n * gets no workbench pin and no drop — pinning a version npm has never seen would fail the install.\n */\n let workbenchPorts: WorkbenchDropPorts | null = null;\n try {\n const workbenchStatus = npmRegistryClient.versionStatus(WORKBENCH_PACKAGE_NAME, target);\n if (workbenchStatus === RegistryVersionStatus.UNKNOWN) {\n throw new Error(`Could not ask npm whether ${WORKBENCH_PACKAGE_NAME}@${target} exists (is the registry reachable?).`);\n }\n if (workbenchStatus === RegistryVersionStatus.PUBLISHED) workbenchPorts = await resolveApplicationWorkbenchPorts(applicationRoot);\n else ctx.log.warn(` ${target} publishes no ${WORKBENCH_PACKAGE_NAME}: the workbench is removed from this application for this release.`);\n } catch (error) {\n ctx.log.error(`${ErrorUtils.extractErrorMessage(error)} Nothing was changed.`);\n return { success: false };\n }\n\n try {\n const pins = pinApplicationFrameworkVersion({\n applicationRoot,\n version: target,\n additionalPins: APP_CREATOR_ADDITIONAL_FRAMEWORK_PINS.filter((name) => workbenchPorts !== null || name !== WORKBENCH_PACKAGE_NAME),\n // A release without the workbench cannot keep a pin naming it: the version would not exist.\n removedPins: workbenchPorts === null ? [WORKBENCH_PACKAGE_NAME] : [],\n });\n ctx.log.success(\n pins.changedPackages.length === 0\n ? ` pnpm.overrides already pin @wildo-ai/* at ${target}.`\n : ` pnpm.overrides: ${pins.changedPackages.length} @wildo-ai/* pin(s) ${pins.previousVersions.join(', ')} → ${target}.`,\n );\n for (const dependent of findRetiredFrameworkPackageDependents(applicationRoot)) {\n ctx.log.warn(` ${dependent.manifestRelativePath} still depends on ${dependent.packageName}, which is no longer published: ${dependent.replacement}.`);\n }\n rewriteApplicationCompanionDrop({ applicationRoot, version: target });\n ctx.log.success(` Companion drop pinned to @wildo-ai/dev-companion ${target}.`);\n if (workbenchPorts === null) {\n if (removeApplicationWorkbenchDrop(applicationRoot)) ctx.log.success(' Workbench drop removed (this release does not publish it).');\n } else {\n rewriteApplicationWorkbenchDrop({ applicationRoot, version: target, ports: workbenchPorts });\n ctx.log.success(` Workbench drop pinned to ${WORKBENCH_PACKAGE_NAME} ${target} (http://localhost:${workbenchPorts.workbenchPort}).`);\n }\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n\n if (!runPnpmInstall(ctx.log, 'pnpm install', applicationRoot)) return { success: false };\n\n try {\n const alignment = ApplicationDependencyAlignmentService.align({ applicationRoot, write: true });\n for (const pattern of alignment.unsupportedWorkspacePatterns) {\n ctx.log.warn(` pnpm-workspace.yaml member '${pattern}' is not a shape alignment can expand; the packages it covers were not aligned.`);\n }\n // #2789: report-only defects alignment never removes; an update says them and goes on.\n for (const report of alignment.reports) ctx.log.warn(` ${report.manifestRelativePath}: ${report.name} is ${report.kind} (${report.detail}); run \\`wildo align-deps\\` for what to do.`);\n if (alignment.findings.length === 0) {\n ctx.log.success(' Dependency pins and peer declarations already match the release.');\n } else {\n ctx.log.success(` align-deps: applied ${alignment.findings.length} change(s) derived from the release.`);\n if (!runPnpmInstall(ctx.log, 'pnpm install (alignment)', applicationRoot)) return { success: false };\n }\n } catch (error) {\n ctx.log.error(`Dependency alignment failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n let assetsOk = true;\n try {\n const assets = ApplicationAssetsDeliveryService.deliver({\n applicationRoot,\n frameworkAssetsRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n });\n for (const [label, lane] of [['templates', assets.templates], ['docs', assets.docs], ['skills + rules', assets.skills]] as const) {\n if (lane.status === ApplicationAssetsLaneStatus.DELIVERED && lane.warning === undefined) {\n ctx.log.success(` ${label}: ${lane.detail}`);\n } else {\n assetsOk = false;\n ctx.log.warn(` ${label}: ${lane.warning ?? `skipped — ${lane.detail}`}`);\n }\n }\n const knowledgeVersion = ApplicationAssetsDeliveryService.readInstalledPackageVersion(assets.knowledgePackageRoot);\n const skew = ApplicationAssetsDeliveryService.describeFrameworkVersionSkew(target, knowledgeVersion);\n if (skew) {\n assetsOk = false;\n ctx.log.warn(` ${skew}`);\n }\n } catch (error) {\n ctx.log.error(`Asset delivery failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n // A release may REQUIRE a declaration this application predates. Judge the config by the release\n // now running, and report an owed declaration as what it is rather than letting `config sync` fail\n // on it with a raw schema dump (see `checkApplicationConfigAgainstRelease`).\n const config = await checkApplicationConfigAgainstRelease(applicationRoot);\n if (config.outcome === ApplicationConfigCheckOutcome.CONTRACT_UNMET) {\n ctx.log.warn(` wildo.saas.config.ts does not satisfy ${target}'s config contract (${config.issues.length} issue(s)):`);\n for (const issue of config.issues) ctx.log.warn(` - ${issue}`);\n ctx.log.warn(' The release requires a declaration this application predates. Add it, using the current scaffold as the');\n ctx.log.warn(' reference: .wildo-saas/templates/skeleton/wildo.saas.config.ts.init.hbs — then run `wildo config sync`.');\n } else if (config.outcome === ApplicationConfigCheckOutcome.LOAD_FAILED) {\n ctx.log.warn(` wildo.saas.config.ts could not be loaded: ${config.message}`);\n }\n\n // Re-render the compose / k8s files so they name the release's platform image. `manifest` is the\n // one domain that needs no running platform and rewrites no env file or secret. Skipped when the\n // config does not load: it would fail on the same problem, only less legibly. Re-invoked with this\n // process's own runtime flags, so a loader-based launch (tsx) is reproduced faithfully.\n let manifestsOk = false;\n let generatedOk = false;\n if (config.outcome === ApplicationConfigCheckOutcome.LOADS) {\n manifestsOk = runReleaseCliStep(ctx, applicationRoot, ['config', 'sync', '--domain', 'manifest']);\n\n /*\n * The provider runtime artifacts, and the CSP files built from their origins (#2253). A release can change what\n * their READERS require without any input changing — #1705 made the website and the backend refuse a served\n * frontend provider entry with no `publicConfigKeys`, which only the newer generator writes — so an application\n * updated without this step crash-looped on its first `wildo local dev`, and nothing in the update said why.\n *\n * `dev sync-csp` rather than `config sync --domain config`: it is the one door that regenerates exactly these, for\n * the active environment, and it writes no env file and no secret. `config` would also reconcile the authored infra\n * config and mint missing framework secrets — a wider write than moving to a release should make.\n *\n * It does write ONE authored thing: the generation declares the systems-of-record library on the backend manifests\n * of an application whose `systemsOfRecord` is non-empty (#2013), and discovery then refuses that library until it\n * is installed. Declared there, after this command's installs, it would fail the update with the application's\n * manifests already edited. So it is declared here and installed before the generation runs, which leaves that\n * step a no-op.\n */\n generatedOk = await declareAndInstallSystemsOfRecordLibrary(ctx, applicationRoot)\n && runReleaseCliStep(ctx, applicationRoot, ['dev', 'sync-csp']);\n }\n\n ctx.log.info('');\n if (assetsOk && manifestsOk && generatedOk) {\n ctx.log.success(` Application updated to ${target}.`);\n } else {\n const owed = config.outcome === ApplicationConfigCheckOutcome.CONTRACT_UNMET ? 'config changes it owes' : 'warnings';\n ctx.log.warn(` Application moved to ${target}, with the ${owed} above.`);\n }\n ctx.log.info(' Nothing running was restarted. To run the release:');\n ctx.log.info(` wildo local up # platform containers on the ${target} image`);\n ctx.log.info(' wildo local dev # restart the application stack and its companion');\n return { success: assetsOk && manifestsOk && generatedOk };\n}\n\n/**\n * Declares the systems-of-record library the provider generation would declare, and installs it when that\n * changed anything (#2253 review). Returns false only when the install failed; an application declaring no\n * system of record changes nothing here.\n */\nasync function declareAndInstallSystemsOfRecordLibrary(ctx: CommandContext, applicationRoot: string): Promise<boolean> {\n try {\n const declaration = declareSystemsOfRecordLibrary({\n saasRoot: applicationRoot,\n saasConfig: await loadSaasConfig(join(applicationRoot, 'wildo.saas.config.ts')),\n // `update` refuses a checkout-linked application, so the library resolves from the published release.\n frameworkPath: null,\n log: { info: (message) => ctx.log.info(message), warn: (message) => ctx.log.warn(message) },\n });\n if (declaration.declaredIn.length === 0 && declaration.linksAdded.length === 0) return true;\n return runPnpmInstall(ctx.log, 'pnpm install (systems-of-record library)', applicationRoot);\n } catch (error) {\n ctx.log.error(` Could not declare the systems-of-record library: ${ErrorUtils.extractErrorMessage(error)}`);\n return false;\n }\n}\n\n/**\n * Runs one `wildo` step of the application half with THIS process's runtime — the release's CLI, re-invoked with\n * its own runtime flags so a loader-based launch (tsx) is reproduced faithfully — non-interactively, from the\n * application root. Reports a failure and returns whether the step succeeded.\n */\nfunction runReleaseCliStep(ctx: CommandContext, applicationRoot: string, args: readonly string[]): boolean {\n const label = args.join(' ');\n ctx.log.info(` ${label}…`);\n const step = spawnSync(\n process.execPath,\n [...process.execArgv, process.argv[1], ...forwardedGlobalFlags({ ...ctx.globalFlags, nonInteractive: true }), ...args],\n { cwd: applicationRoot, stdio: 'inherit' },\n );\n if (step.status !== 0) ctx.log.error(` ${label} failed (exit ${step.status ?? 'signal'}).`);\n return step.status === 0;\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import { BaseCommand } from '../../kernel/base-command';
2
+ import type { CommandContext, CommandMeta, CommandResult } from '../../kernel/types';
3
+ /**
4
+ * `wildo website look [route]` — photograph the locally running public website, every page it declares (or the one
5
+ * route given; the blog's post page once per post), in the default locale or every locale `--locale` / `--all-locales` names, full page at a desktop and a phone width with reduced motion, and run an accessibility pass on each. The
6
+ * screenshots go to `.wildo-saas/tmp/website-look/<time>/` (gitignored) unless `--out` names a directory. Open them
7
+ * and judge the site against the `website-building-blocks` skill's `references/website-visual-quality-rubric.md`. See
8
+ * `website-look.service.ts` for why reduced motion and why it is a camera, never a judge.
9
+ *
10
+ * Exit codes: 0 looked, no accessibility violation · 1 the look failed part-way · 2 could not look (no camera, no
11
+ * axe-core, the website not answering, a locale the site does not serve) · 3 looked, and the accessibility pass found violations (listed) · 4 looked,
12
+ * and a page the site declares answered with an error status, or a section asked for with `--section` was not rendered
13
+ * (listed; outranks 3).
14
+ *
15
+ * The opt-out is `--skip-accessibility`, never `--no-accessibility`: Commander reads a `--no-x` option as the negation
16
+ * of `x`, so a flag declared under the `no-` name is never set.
17
+ */
18
+ export default class WebsiteLookCommand extends BaseCommand {
19
+ readonly meta: CommandMeta;
20
+ run(ctx: CommandContext): Promise<CommandResult>;
21
+ }
22
+ //# sourceMappingURL=look.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"look.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/website/look.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA2B1F;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IACzD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAiBxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAyEvD"}
@@ -0,0 +1,147 @@
1
+ import { existsSync } from 'node:fs';
2
+ import { join, resolve } from 'node:path';
3
+ import { BaseCommand } from '../../kernel/base-command.js';
4
+ import { CommandCategory } from '../../kernel/types.js';
5
+ import { ensureSaasAppScope } from '../../kernel/command-scope-utils.js';
6
+ import { printJsonPayload } from '../../commands/context/context-command.utils.js';
7
+ import { FrontendLookFailedError, FrontendLookRefusedError, LookColorScheme } from '../../services/frontend/frontend-look.service.js';
8
+ import { WebsiteLookSectionAbsence, WebsiteLookShotKind, WebsiteLookViewport } from '@wildo-ai/saas-website';
9
+ import { runWebsiteLook } from '../../services/website/website-look.service.js';
10
+ /** Exit code for "could not look" (no camera, no website answering): a different repair from a failed look. */
11
+ const COULD_NOT_LOOK_EXIT_CODE = 2;
12
+ /** Exit code for "looked, and the accessibility pass found violations": the pictures are taken, the findings listed. */
13
+ const ACCESSIBILITY_VIOLATIONS_EXIT_CODE = 3;
14
+ /**
15
+ * Exit code for "looked, and a declared page answered with an error status": photographed (what a visitor reaching it
16
+ * sees), listed in `missingRoutes`. It outranks 3, since a page the site declares and does not serve is the larger
17
+ * defect; the JSON carries both lists whatever the code.
18
+ */
19
+ const DECLARED_PAGE_ERROR_EXIT_CODE = 4;
20
+ /** A directory no earlier look wrote to. */
21
+ function freshLookDirectory(appRoot) {
22
+ const stamp = new Date().toISOString().replace(/[-:]/g, '').replace('T', '-').replace('.', '-').replace(/Z$/, '');
23
+ const base = join(appRoot, '.wildo-saas', 'tmp', 'website-look', stamp);
24
+ let candidate = base;
25
+ for (let suffix = 2; existsSync(candidate); suffix += 1)
26
+ candidate = `${base}-${suffix}`;
27
+ return candidate;
28
+ }
29
+ /**
30
+ * `wildo website look [route]` — photograph the locally running public website, every page it declares (or the one
31
+ * route given; the blog's post page once per post), in the default locale or every locale `--locale` / `--all-locales` names, full page at a desktop and a phone width with reduced motion, and run an accessibility pass on each. The
32
+ * screenshots go to `.wildo-saas/tmp/website-look/<time>/` (gitignored) unless `--out` names a directory. Open them
33
+ * and judge the site against the `website-building-blocks` skill's `references/website-visual-quality-rubric.md`. See
34
+ * `website-look.service.ts` for why reduced motion and why it is a camera, never a judge.
35
+ *
36
+ * Exit codes: 0 looked, no accessibility violation · 1 the look failed part-way · 2 could not look (no camera, no
37
+ * axe-core, the website not answering, a locale the site does not serve) · 3 looked, and the accessibility pass found violations (listed) · 4 looked,
38
+ * and a page the site declares answered with an error status, or a section asked for with `--section` was not rendered
39
+ * (listed; outranks 3).
40
+ *
41
+ * The opt-out is `--skip-accessibility`, never `--no-accessibility`: Commander reads a `--no-x` option as the negation
42
+ * of `x`, so a flag declared under the `no-` name is never set.
43
+ */
44
+ export default class WebsiteLookCommand extends BaseCommand {
45
+ meta = {
46
+ name: 'website look',
47
+ description: 'Screenshot every page of the running public website (desktop and phone) and run an accessibility pass, for a visual check',
48
+ category: CommandCategory.Website,
49
+ args: [{ name: 'route', description: 'One route to look at, e.g. /pricing. Defaults to every page the site declares', required: false }],
50
+ flags: {
51
+ dark: { type: 'boolean', description: 'Render in dark mode', default: false },
52
+ desktop: { type: 'boolean', description: 'Only the desktop width (1440x900)', default: false },
53
+ phone: { type: 'boolean', description: 'Only the phone width (390x844, touch)', default: false },
54
+ 'skip-accessibility': { type: 'boolean', description: 'Skip the accessibility pass (axe, and the sideways-scroll measure)', default: false },
55
+ section: { type: 'string[]', description: 'Shoot only these sections (their data-section-ref), each element alone; the accessibility pass is scoped to them', default: undefined },
56
+ overview: { type: 'boolean', description: 'Also shoot the first screenful and (desktop) a whole-page overview at a quarter of its size', default: false },
57
+ locale: { type: 'string[]', description: 'Look at these locales (e.g. fr), each page at the path the site serves it on. Defaults to the default locale', default: undefined },
58
+ 'all-locales': { type: 'boolean', description: 'Look at every locale the site declares', default: false },
59
+ out: { type: 'string', description: 'Directory to write the screenshots to, relative to the current directory (default .wildo-saas/tmp/website-look/<time>/)', default: undefined },
60
+ json: { type: 'boolean', description: 'Print the result as JSON', default: false },
61
+ },
62
+ };
63
+ async run(ctx) {
64
+ if (!ensureSaasAppScope(ctx))
65
+ return { success: false };
66
+ const appRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;
67
+ if (!appRoot) {
68
+ ctx.log.error('No targeted app root detected. Navigate to a directory containing wildo.saas.config.ts.');
69
+ return { success: false };
70
+ }
71
+ const outputDirectory = typeof ctx.flags.out === 'string' && ctx.flags.out.trim().length > 0 ? resolve(process.cwd(), ctx.flags.out.trim()) : freshLookDirectory(appRoot);
72
+ const route = typeof ctx.args.route === 'string' && ctx.args.route.trim().length > 0 ? ctx.args.route.trim() : null;
73
+ const sectionRefs = Array.isArray(ctx.flags.section) && ctx.flags.section.length > 0 ? ctx.flags.section.map(String) : null;
74
+ if (sectionRefs !== null && route === null) {
75
+ // A section lives on one page: asked of every page, it would be reported missing on all the others.
76
+ ctx.log.error('--section names sections of ONE page: give its route too, e.g. `wildo website look / --section landing-hero`.');
77
+ return { success: false, exitCode: COULD_NOT_LOOK_EXIT_CODE };
78
+ }
79
+ const onlyDesktop = ctx.flags.desktop === true;
80
+ const onlyPhone = ctx.flags.phone === true;
81
+ const viewports = onlyDesktop === onlyPhone ? [WebsiteLookViewport.DESKTOP, WebsiteLookViewport.PHONE] : onlyDesktop ? [WebsiteLookViewport.DESKTOP] : [WebsiteLookViewport.PHONE];
82
+ const asJson = ctx.flags.json === true;
83
+ try {
84
+ const result = await runWebsiteLook({
85
+ appRoot,
86
+ frameworkRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null,
87
+ routes: route === null ? null : [route.startsWith('/') ? route : `/${route}`],
88
+ viewports,
89
+ colorScheme: ctx.flags.dark === true ? LookColorScheme.DARK : LookColorScheme.LIGHT,
90
+ accessibility: ctx.flags['skip-accessibility'] !== true,
91
+ outputDirectory,
92
+ sectionRefs,
93
+ overview: ctx.flags.overview === true,
94
+ locales: Array.isArray(ctx.flags.locale) && ctx.flags.locale.length > 0 ? ctx.flags.locale.map(String) : null,
95
+ allLocales: ctx.flags['all-locales'] === true,
96
+ });
97
+ const violations = result.accessibility.length + result.horizontalOverflows.length;
98
+ if (asJson) {
99
+ printJsonPayload(ctx, { looked: true, ...result });
100
+ }
101
+ else {
102
+ ctx.log.info(`Looked at ${result.siteUrl}: ${result.shots.length} screenshot(s) in ${outputDirectory}`);
103
+ for (const shot of result.shots) {
104
+ const what = shot.firstVisit ? ' · first visit, under the consent prompt' : shot.kind === WebsiteLookShotKind.PAGE ? '' : ` · ${shot.sectionRef ?? shot.kind}`;
105
+ ctx.log.info(` ${shot.route} · ${shot.viewport}${what} → ${shot.file}`);
106
+ }
107
+ for (const missing of result.missingSections) {
108
+ ctx.log.warn(`${missing.route} · ${missing.viewport} · section "${missing.sectionRef}" ${missing.absence === WebsiteLookSectionAbsence.HIDDEN ? 'is hidden at this width' : 'is not rendered'}.`);
109
+ }
110
+ for (const overflow of result.horizontalOverflows) {
111
+ const reflow = overflow.viewport === WebsiteLookViewport.PHONE ? ' (WCAG 2.1 SC 1.4.10 Reflow)' : '';
112
+ ctx.log.warn(`Accessibility · ${overflow.route} · ${overflow.viewport} · the page is ${overflow.overflowPx}px wider than the screen and scrolls sideways${reflow}`);
113
+ }
114
+ for (const skipped of result.skippedRoutes)
115
+ ctx.log.warn(`Not looked at (a route with a parameter): ${skipped}`);
116
+ for (const missing of result.missingRoutes)
117
+ ctx.log.warn(`The site answered ${missing} with an error status (photographed anyway).`);
118
+ for (const finding of result.accessibility) {
119
+ ctx.log.warn(`Accessibility · ${finding.route} · ${finding.viewport}${finding.firstVisit ? ' · first visit' : ''} · ${finding.rule}${finding.impact ? ` (${finding.impact})` : ''}: ${finding.help} — ${finding.targets.join(', ')}`);
120
+ }
121
+ ctx.log.info('Judge the screenshots against the website-building-blocks skill\'s references/website-visual-quality-rubric.md.');
122
+ }
123
+ const notRendered = result.missingSections.filter((missing) => missing.absence === WebsiteLookSectionAbsence.NOT_RENDERED);
124
+ if (result.missingRoutes.length > 0 || notRendered.length > 0)
125
+ return { success: false, exitCode: DECLARED_PAGE_ERROR_EXIT_CODE };
126
+ if (violations > 0)
127
+ return { success: false, exitCode: ACCESSIBILITY_VIOLATIONS_EXIT_CODE };
128
+ return { success: true };
129
+ }
130
+ catch (error) {
131
+ if (error instanceof FrontendLookRefusedError) {
132
+ if (asJson)
133
+ printJsonPayload(ctx, { looked: false, refusal: error.refusal, message: error.message });
134
+ else
135
+ ctx.log.error(error.message);
136
+ return { success: false, exitCode: COULD_NOT_LOOK_EXIT_CODE };
137
+ }
138
+ const failure = error instanceof FrontendLookFailedError ? error.message : String(error);
139
+ if (asJson)
140
+ printJsonPayload(ctx, { looked: false, failure });
141
+ else
142
+ ctx.log.error(`The look failed: ${failure}`);
143
+ return { success: false };
144
+ }
145
+ }
146
+ }
147
+ //# sourceMappingURL=look.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"look.command.js","sourceRoot":"","sources":["../../../../../../src/commands/website/look.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE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AE,gBAAgB,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;;gBACzD,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;YAClD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF","sourcesContent":["import { existsSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { printJsonPayload } from '~wildo-cli/commands/context/context-command.utils';\nimport { FrontendLookFailedError, FrontendLookRefusedError, LookColorScheme } from '~wildo-cli/services/frontend/frontend-look.service';\nimport { WebsiteLookSectionAbsence, WebsiteLookShotKind, WebsiteLookViewport } from '@wildo-ai/saas-website';\nimport { runWebsiteLook } from '~wildo-cli/services/website/website-look.service';\n\n/** Exit code for \"could not look\" (no camera, no website answering): a different repair from a failed look. */\nconst COULD_NOT_LOOK_EXIT_CODE = 2;\n/** Exit code for \"looked, and the accessibility pass found violations\": the pictures are taken, the findings listed. */\nconst ACCESSIBILITY_VIOLATIONS_EXIT_CODE = 3;\n/**\n * Exit code for \"looked, and a declared page answered with an error status\": photographed (what a visitor reaching it\n * sees), listed in `missingRoutes`. It outranks 3, since a page the site declares and does not serve is the larger\n * defect; the JSON carries both lists whatever the code.\n */\nconst DECLARED_PAGE_ERROR_EXIT_CODE = 4;\n\n/** A directory no earlier look wrote to. */\nfunction freshLookDirectory(appRoot: string): string {\n const stamp = new Date().toISOString().replace(/[-:]/g, '').replace('T', '-').replace('.', '-').replace(/Z$/, '');\n const base = join(appRoot, '.wildo-saas', 'tmp', 'website-look', stamp);\n let candidate = base;\n for (let suffix = 2; existsSync(candidate); suffix += 1) candidate = `${base}-${suffix}`;\n return candidate;\n}\n\n/**\n * `wildo website look [route]` — photograph the locally running public website, every page it declares (or the one\n * route given; the blog's post page once per post), in the default locale or every locale `--locale` / `--all-locales` names, full page at a desktop and a phone width with reduced motion, and run an accessibility pass on each. The\n * screenshots go to `.wildo-saas/tmp/website-look/<time>/` (gitignored) unless `--out` names a directory. Open them\n * and judge the site against the `website-building-blocks` skill's `references/website-visual-quality-rubric.md`. See\n * `website-look.service.ts` for why reduced motion and why it is a camera, never a judge.\n *\n * Exit codes: 0 looked, no accessibility violation · 1 the look failed part-way · 2 could not look (no camera, no\n * axe-core, the website not answering, a locale the site does not serve) · 3 looked, and the accessibility pass found violations (listed) · 4 looked,\n * and a page the site declares answered with an error status, or a section asked for with `--section` was not rendered\n * (listed; outranks 3).\n *\n * The opt-out is `--skip-accessibility`, never `--no-accessibility`: Commander reads a `--no-x` option as the negation\n * of `x`, so a flag declared under the `no-` name is never set.\n */\nexport default class WebsiteLookCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'website look',\n description: 'Screenshot every page of the running public website (desktop and phone) and run an accessibility pass, for a visual check',\n category: CommandCategory.Website,\n args: [{ name: 'route', description: 'One route to look at, e.g. /pricing. Defaults to every page the site declares', required: false }],\n flags: {\n dark: { type: 'boolean', description: 'Render in dark mode', default: false },\n desktop: { type: 'boolean', description: 'Only the desktop width (1440x900)', default: false },\n phone: { type: 'boolean', description: 'Only the phone width (390x844, touch)', default: false },\n 'skip-accessibility': { type: 'boolean', description: 'Skip the accessibility pass (axe, and the sideways-scroll measure)', default: false },\n section: { type: 'string[]', description: 'Shoot only these sections (their data-section-ref), each element alone; the accessibility pass is scoped to them', default: undefined },\n overview: { type: 'boolean', description: 'Also shoot the first screenful and (desktop) a whole-page overview at a quarter of its size', default: false },\n locale: { type: 'string[]', description: 'Look at these locales (e.g. fr), each page at the path the site serves it on. Defaults to the default locale', default: undefined },\n 'all-locales': { type: 'boolean', description: 'Look at every locale the site declares', default: false },\n out: { type: 'string', description: 'Directory to write the screenshots to, relative to the current directory (default .wildo-saas/tmp/website-look/<time>/)', default: undefined },\n json: { type: 'boolean', description: 'Print the result as JSON', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (!ensureSaasAppScope(ctx)) return { success: false };\n const appRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n if (!appRoot) {\n ctx.log.error('No targeted app root detected. Navigate to a directory containing wildo.saas.config.ts.');\n return { success: false };\n }\n const outputDirectory = typeof ctx.flags.out === 'string' && ctx.flags.out.trim().length > 0 ? resolve(process.cwd(), ctx.flags.out.trim()) : freshLookDirectory(appRoot);\n const route = typeof ctx.args.route === 'string' && ctx.args.route.trim().length > 0 ? ctx.args.route.trim() : null;\n const sectionRefs = Array.isArray(ctx.flags.section) && ctx.flags.section.length > 0 ? ctx.flags.section.map(String) : null;\n if (sectionRefs !== null && route === null) {\n // A section lives on one page: asked of every page, it would be reported missing on all the others.\n ctx.log.error('--section names sections of ONE page: give its route too, e.g. `wildo website look / --section landing-hero`.');\n return { success: false, exitCode: COULD_NOT_LOOK_EXIT_CODE };\n }\n const onlyDesktop = ctx.flags.desktop === true;\n const onlyPhone = ctx.flags.phone === true;\n const viewports = onlyDesktop === onlyPhone ? [WebsiteLookViewport.DESKTOP, WebsiteLookViewport.PHONE] : onlyDesktop ? [WebsiteLookViewport.DESKTOP] : [WebsiteLookViewport.PHONE];\n const asJson = ctx.flags.json === true;\n\n try {\n const result = await runWebsiteLook({\n appRoot,\n frameworkRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null,\n routes: route === null ? null : [route.startsWith('/') ? route : `/${route}`],\n viewports,\n colorScheme: ctx.flags.dark === true ? LookColorScheme.DARK : LookColorScheme.LIGHT,\n accessibility: ctx.flags['skip-accessibility'] !== true,\n outputDirectory,\n sectionRefs,\n overview: ctx.flags.overview === true,\n locales: Array.isArray(ctx.flags.locale) && ctx.flags.locale.length > 0 ? ctx.flags.locale.map(String) : null,\n allLocales: ctx.flags['all-locales'] === true,\n });\n const violations = result.accessibility.length + result.horizontalOverflows.length;\n if (asJson) {\n printJsonPayload(ctx, { looked: true, ...result });\n } else {\n ctx.log.info(`Looked at ${result.siteUrl}: ${result.shots.length} screenshot(s) in ${outputDirectory}`);\n for (const shot of result.shots) {\n const what = shot.firstVisit ? ' · first visit, under the consent prompt' : shot.kind === WebsiteLookShotKind.PAGE ? '' : ` · ${shot.sectionRef ?? shot.kind}`;\n ctx.log.info(` ${shot.route} · ${shot.viewport}${what} → ${shot.file}`);\n }\n for (const missing of result.missingSections) {\n ctx.log.warn(`${missing.route} · ${missing.viewport} · section \"${missing.sectionRef}\" ${missing.absence === WebsiteLookSectionAbsence.HIDDEN ? 'is hidden at this width' : 'is not rendered'}.`);\n }\n for (const overflow of result.horizontalOverflows) {\n const reflow = overflow.viewport === WebsiteLookViewport.PHONE ? ' (WCAG 2.1 SC 1.4.10 Reflow)' : '';\n ctx.log.warn(`Accessibility · ${overflow.route} · ${overflow.viewport} · the page is ${overflow.overflowPx}px wider than the screen and scrolls sideways${reflow}`);\n }\n for (const skipped of result.skippedRoutes) ctx.log.warn(`Not looked at (a route with a parameter): ${skipped}`);\n for (const missing of result.missingRoutes) ctx.log.warn(`The site answered ${missing} with an error status (photographed anyway).`);\n for (const finding of result.accessibility) {\n ctx.log.warn(`Accessibility · ${finding.route} · ${finding.viewport}${finding.firstVisit ? ' · first visit' : ''} · ${finding.rule}${finding.impact ? ` (${finding.impact})` : ''}: ${finding.help} — ${finding.targets.join(', ')}`);\n }\n ctx.log.info('Judge the screenshots against the website-building-blocks skill\\'s references/website-visual-quality-rubric.md.');\n }\n const notRendered = result.missingSections.filter((missing) => missing.absence === WebsiteLookSectionAbsence.NOT_RENDERED);\n if (result.missingRoutes.length > 0 || notRendered.length > 0) return { success: false, exitCode: DECLARED_PAGE_ERROR_EXIT_CODE };\n if (violations > 0) return { success: false, exitCode: ACCESSIBILITY_VIOLATIONS_EXIT_CODE };\n return { success: true };\n } catch (error) {\n if (error instanceof FrontendLookRefusedError) {\n if (asJson) printJsonPayload(ctx, { looked: false, refusal: error.refusal, message: error.message });\n else ctx.log.error(error.message);\n return { success: false, exitCode: COULD_NOT_LOOK_EXIT_CODE };\n }\n const failure = error instanceof FrontendLookFailedError ? error.message : String(error);\n if (asJson) printJsonPayload(ctx, { looked: false, failure });\n else ctx.log.error(`The look failed: ${failure}`);\n return { success: false };\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"status.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/workbench/status.command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAM1F,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,WAAW;IAC7D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAQxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAsCvD"}
1
+ {"version":3,"file":"status.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/workbench/status.command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAO1F,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,WAAW;IAC7D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAQxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAsCvD"}