@wildo-ai/wildo-cli 1.1.10 → 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 (2053) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/bin/wildo.js +0 -0
  3. package/dist/bin/wildo.js.map +1 -1
  4. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  5. package/dist/src/commands/acp/probe.command.js +2 -1
  6. package/dist/src/commands/acp/probe.command.js.map +1 -1
  7. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  8. package/dist/src/commands/align-deps.command.js +17 -1
  9. package/dist/src/commands/align-deps.command.js.map +1 -1
  10. package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
  11. package/dist/src/commands/assets/sync.command.js.map +1 -1
  12. package/dist/src/commands/blueprint/pack.command.d.ts +16 -0
  13. package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -0
  14. package/dist/src/commands/blueprint/pack.command.js +86 -0
  15. package/dist/src/commands/blueprint/pack.command.js.map +1 -0
  16. package/dist/src/commands/blueprint/publish.command.d.ts +16 -0
  17. package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -0
  18. package/dist/src/commands/blueprint/publish.command.js +114 -0
  19. package/dist/src/commands/blueprint/publish.command.js.map +1 -0
  20. package/dist/src/commands/blueprint/status.command.d.ts +14 -0
  21. package/dist/src/commands/blueprint/status.command.d.ts.map +1 -0
  22. package/dist/src/commands/blueprint/status.command.js +62 -0
  23. package/dist/src/commands/blueprint/status.command.js.map +1 -0
  24. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  25. package/dist/src/commands/brand/propagate.command.js.map +1 -1
  26. package/dist/src/commands/build/accept.command.d.ts.map +1 -1
  27. package/dist/src/commands/build/accept.command.js.map +1 -1
  28. package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
  29. package/dist/src/commands/build/dispatches.command.js +6 -1
  30. package/dist/src/commands/build/dispatches.command.js.map +1 -1
  31. package/dist/src/commands/build/next.command.d.ts.map +1 -1
  32. package/dist/src/commands/build/next.command.js.map +1 -1
  33. package/dist/src/commands/build/rearm.command.d.ts +6 -4
  34. package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
  35. package/dist/src/commands/build/rearm.command.js +12 -7
  36. package/dist/src/commands/build/rearm.command.js.map +1 -1
  37. package/dist/src/commands/build/run.command.d.ts.map +1 -1
  38. package/dist/src/commands/build/run.command.js.map +1 -1
  39. package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
  40. package/dist/src/commands/build/tasks.command.js.map +1 -1
  41. package/dist/src/commands/compose.command.d.ts.map +1 -1
  42. package/dist/src/commands/compose.command.js.map +1 -1
  43. package/dist/src/commands/config/check-resources.command.d.ts.map +1 -1
  44. package/dist/src/commands/config/check-resources.command.js +3 -1
  45. package/dist/src/commands/config/check-resources.command.js.map +1 -1
  46. package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
  47. package/dist/src/commands/config/data-retention.command.js.map +1 -1
  48. package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
  49. package/dist/src/commands/config/document-releases.command.js.map +1 -1
  50. package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -1
  51. package/dist/src/commands/config/legal-notice.command.js.map +1 -1
  52. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  53. package/dist/src/commands/config/mutate.command.js.map +1 -1
  54. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  55. package/dist/src/commands/config/reapply-declaration.command.js +24 -0
  56. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  57. package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
  58. package/dist/src/commands/config/service-consent.command.js.map +1 -1
  59. package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
  60. package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
  61. package/dist/src/commands/config/sync.command.d.ts +13 -0
  62. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  63. package/dist/src/commands/config/sync.command.js +37 -2
  64. package/dist/src/commands/config/sync.command.js.map +1 -1
  65. package/dist/src/commands/config/validate.command.d.ts +3 -2
  66. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  67. package/dist/src/commands/config/validate.command.js +35 -3
  68. package/dist/src/commands/config/validate.command.js.map +1 -1
  69. package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
  70. package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
  71. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  72. package/dist/src/commands/context/coherence.command.js.map +1 -1
  73. package/dist/src/commands/context/context-command.utils.d.ts +6 -1
  74. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  75. package/dist/src/commands/context/context-command.utils.js +8 -2
  76. package/dist/src/commands/context/context-command.utils.js.map +1 -1
  77. package/dist/src/commands/context/elements.command.d.ts +3 -1
  78. package/dist/src/commands/context/elements.command.d.ts.map +1 -1
  79. package/dist/src/commands/context/elements.command.js +3 -1
  80. package/dist/src/commands/context/elements.command.js.map +1 -1
  81. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  82. package/dist/src/commands/context/health.command.js.map +1 -1
  83. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  84. package/dist/src/commands/context/info.command.js.map +1 -1
  85. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  86. package/dist/src/commands/context/journey.command.js +43 -6
  87. package/dist/src/commands/context/journey.command.js.map +1 -1
  88. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
  89. package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
  90. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
  91. package/dist/src/commands/context/launch-blockers.command.js +3 -2
  92. package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
  93. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  94. package/dist/src/commands/context/list.command.js.map +1 -1
  95. package/dist/src/commands/context/pipelines.command.d.ts +2 -0
  96. package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
  97. package/dist/src/commands/context/pipelines.command.js +6 -3
  98. package/dist/src/commands/context/pipelines.command.js.map +1 -1
  99. package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
  100. package/dist/src/commands/context/workspace.command.js.map +1 -1
  101. package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
  102. package/dist/src/commands/creation/accept.command.js.map +1 -1
  103. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  104. package/dist/src/commands/creation/answer.command.js +2 -1
  105. package/dist/src/commands/creation/answer.command.js.map +1 -1
  106. package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -1
  107. package/dist/src/commands/creation/brand-logo.command.js.map +1 -1
  108. package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
  109. package/dist/src/commands/creation/brief.command.js.map +1 -1
  110. package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
  111. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  112. package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
  113. package/dist/src/commands/creation/depth.command.js.map +1 -1
  114. package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
  115. package/dist/src/commands/creation/diff.command.js.map +1 -1
  116. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  117. package/dist/src/commands/creation/feed.command.js +3 -2
  118. package/dist/src/commands/creation/feed.command.js.map +1 -1
  119. package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
  120. package/dist/src/commands/creation/loop.command.js.map +1 -1
  121. package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
  122. package/dist/src/commands/creation/persona.command.js.map +1 -1
  123. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
  124. package/dist/src/commands/creation/preflight.command.js +3 -1
  125. package/dist/src/commands/creation/preflight.command.js.map +1 -1
  126. package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
  127. package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
  128. package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
  129. package/dist/src/commands/creation/propose.command.js.map +1 -1
  130. package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
  131. package/dist/src/commands/creation/pulse.command.js.map +1 -1
  132. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  133. package/dist/src/commands/creation/questions.command.js +2 -1
  134. package/dist/src/commands/creation/questions.command.js.map +1 -1
  135. package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
  136. package/dist/src/commands/creation/reason.command.js.map +1 -1
  137. package/dist/src/commands/creation/report.command.d.ts.map +1 -1
  138. package/dist/src/commands/creation/report.command.js.map +1 -1
  139. package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
  140. package/dist/src/commands/creation/revert.command.js.map +1 -1
  141. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  142. package/dist/src/commands/creation/run.command.js +2 -1
  143. package/dist/src/commands/creation/run.command.js.map +1 -1
  144. package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
  145. package/dist/src/commands/creation/statusline.command.js.map +1 -1
  146. package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
  147. package/dist/src/commands/creation/watch.command.js.map +1 -1
  148. package/dist/src/commands/creation/why.command.d.ts.map +1 -1
  149. package/dist/src/commands/creation/why.command.js.map +1 -1
  150. package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
  151. package/dist/src/commands/creation/writes.command.js.map +1 -1
  152. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts +17 -0
  153. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
  154. package/dist/src/commands/db/db-schema-plan-migration.utils.js +27 -0
  155. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
  156. package/dist/src/commands/db/db-schema-plan.utils.d.ts +33 -3
  157. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  158. package/dist/src/commands/db/db-schema-plan.utils.js +71 -6
  159. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  160. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  161. package/dist/src/commands/db/diff.command.js +1 -1
  162. package/dist/src/commands/db/diff.command.js.map +1 -1
  163. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  164. package/dist/src/commands/db/generate.command.js +32 -5
  165. package/dist/src/commands/db/generate.command.js.map +1 -1
  166. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  167. package/dist/src/commands/db/migrate.command.js.map +1 -1
  168. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  169. package/dist/src/commands/db/resolve.command.js.map +1 -1
  170. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  171. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  172. package/dist/src/commands/dev/design-tokens-brand.command.d.ts +10 -0
  173. package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -0
  174. package/dist/src/commands/dev/design-tokens-brand.command.js +24 -0
  175. package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -0
  176. package/dist/src/commands/dev/design-tokens-contract.command.d.ts +10 -0
  177. package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -0
  178. package/dist/src/commands/dev/design-tokens-contract.command.js +24 -0
  179. package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -0
  180. package/dist/src/commands/dev/design-tokens-contrast.command.d.ts +10 -0
  181. package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -0
  182. package/dist/src/commands/dev/design-tokens-contrast.command.js +24 -0
  183. package/dist/src/commands/dev/design-tokens-contrast.command.js.map +1 -0
  184. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  185. package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -1
  186. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  187. package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
  188. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  189. package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
  190. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  191. package/dist/src/commands/dev/force-stop.command.js.map +1 -1
  192. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  193. package/dist/src/commands/dev/resources.command.js.map +1 -1
  194. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  195. package/dist/src/commands/dev/start.command.js +34 -8
  196. package/dist/src/commands/dev/start.command.js.map +1 -1
  197. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  198. package/dist/src/commands/dev/stop-all.command.js.map +1 -1
  199. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  200. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  201. package/dist/src/commands/docs/check.command.d.ts +25 -0
  202. package/dist/src/commands/docs/check.command.d.ts.map +1 -0
  203. package/dist/src/commands/docs/check.command.js +91 -0
  204. package/dist/src/commands/docs/check.command.js.map +1 -0
  205. package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
  206. package/dist/src/commands/docs/publish.command.js.map +1 -1
  207. package/dist/src/commands/frontend/look.command.d.ts +26 -0
  208. package/dist/src/commands/frontend/look.command.d.ts.map +1 -0
  209. package/dist/src/commands/frontend/look.command.js +132 -0
  210. package/dist/src/commands/frontend/look.command.js.map +1 -0
  211. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  212. package/dist/src/commands/frontend/publish.command.js.map +1 -1
  213. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  214. package/dist/src/commands/fwk/audit.command.js.map +1 -1
  215. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  216. package/dist/src/commands/fwk/dev-skills.command.js +3 -0
  217. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  218. package/dist/src/commands/fwk/generate-blueprints.command.d.ts +12 -0
  219. package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -0
  220. package/dist/src/commands/fwk/generate-blueprints.command.js +75 -0
  221. package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -0
  222. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  223. package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
  224. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
  225. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
  226. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  227. package/dist/src/commands/fwk/graph.command.js.map +1 -1
  228. package/dist/src/commands/fwk/publish-all.command.d.ts +4 -3
  229. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  230. package/dist/src/commands/fwk/publish-all.command.js +94 -32
  231. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  232. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  233. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  234. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  235. package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
  236. package/dist/src/commands/fwk/publish-promote.command.d.ts +8 -0
  237. package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -0
  238. package/dist/src/commands/fwk/publish-promote.command.js +137 -0
  239. package/dist/src/commands/fwk/publish-promote.command.js.map +1 -0
  240. package/dist/src/commands/fwk/publish-providers.command.d.ts +19 -0
  241. package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -0
  242. package/dist/src/commands/fwk/publish-providers.command.js +80 -0
  243. package/dist/src/commands/fwk/publish-providers.command.js.map +1 -0
  244. package/dist/src/commands/fwk/registry-host.command.d.ts +41 -0
  245. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -0
  246. package/dist/src/commands/fwk/registry-host.command.js +393 -0
  247. package/dist/src/commands/fwk/registry-host.command.js.map +1 -0
  248. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  249. package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
  250. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  251. package/dist/src/commands/fwk/version-set.command.js.map +1 -1
  252. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  253. package/dist/src/commands/fwk/version-show.command.js +1 -2
  254. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  255. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  256. package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
  257. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  258. package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
  259. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  260. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  261. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  262. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  263. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  264. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  265. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  266. package/dist/src/commands/generate/email-preview.command.js.map +1 -1
  267. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  268. package/dist/src/commands/generate/email-status.command.js.map +1 -1
  269. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  270. package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
  271. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  272. package/dist/src/commands/generate/email-translate.command.js.map +1 -1
  273. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  274. package/dist/src/commands/generate/email.command.js.map +1 -1
  275. package/dist/src/commands/generate/labelling-command.utils.d.ts +15 -0
  276. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  277. package/dist/src/commands/generate/labelling-command.utils.js +21 -2
  278. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  279. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  280. package/dist/src/commands/generate/labels-plan.command.js.map +1 -1
  281. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  282. package/dist/src/commands/generate/labels.command.js +10 -1
  283. package/dist/src/commands/generate/labels.command.js.map +1 -1
  284. package/dist/src/commands/generate/translate.command.d.ts +5 -0
  285. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  286. package/dist/src/commands/generate/translate.command.js +30 -3
  287. package/dist/src/commands/generate/translate.command.js.map +1 -1
  288. package/dist/src/commands/help.command.d.ts.map +1 -1
  289. package/dist/src/commands/help.command.js +2 -0
  290. package/dist/src/commands/help.command.js.map +1 -1
  291. package/dist/src/commands/init.command.d.ts +59 -0
  292. package/dist/src/commands/init.command.d.ts.map +1 -1
  293. package/dist/src/commands/init.command.js +401 -12
  294. package/dist/src/commands/init.command.js.map +1 -1
  295. package/dist/src/commands/keys/rotate.command.d.ts +36 -0
  296. package/dist/src/commands/keys/rotate.command.d.ts.map +1 -0
  297. package/dist/src/commands/keys/rotate.command.js +140 -0
  298. package/dist/src/commands/keys/rotate.command.js.map +1 -0
  299. package/dist/src/commands/keys/thumbprint.command.d.ts +10 -0
  300. package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -0
  301. package/dist/src/commands/keys/thumbprint.command.js +64 -0
  302. package/dist/src/commands/keys/thumbprint.command.js.map +1 -0
  303. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  304. package/dist/src/commands/local/deregister.command.js.map +1 -1
  305. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  306. package/dist/src/commands/local/dev-status.command.js.map +1 -1
  307. package/dist/src/commands/local/dev.command.d.ts +8 -1
  308. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  309. package/dist/src/commands/local/dev.command.js +37 -6
  310. package/dist/src/commands/local/dev.command.js.map +1 -1
  311. package/dist/src/commands/local/doctor.command.d.ts +18 -0
  312. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  313. package/dist/src/commands/local/doctor.command.js +115 -1
  314. package/dist/src/commands/local/doctor.command.js.map +1 -1
  315. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  316. package/dist/src/commands/local/down.command.js.map +1 -1
  317. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  318. package/dist/src/commands/local/init.command.js.map +1 -1
  319. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  320. package/dist/src/commands/local/logs.command.js.map +1 -1
  321. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  322. package/dist/src/commands/local/reinit.command.js +1 -1
  323. package/dist/src/commands/local/reinit.command.js.map +1 -1
  324. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  325. package/dist/src/commands/local/reset.command.js.map +1 -1
  326. package/dist/src/commands/local/restore.command.d.ts.map +1 -1
  327. package/dist/src/commands/local/restore.command.js.map +1 -1
  328. package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
  329. package/dist/src/commands/local/smoke.command.js +2 -1
  330. package/dist/src/commands/local/smoke.command.js.map +1 -1
  331. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  332. package/dist/src/commands/local/status.command.js.map +1 -1
  333. package/dist/src/commands/local/up.command.d.ts +11 -5
  334. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  335. package/dist/src/commands/local/up.command.js +51 -145
  336. package/dist/src/commands/local/up.command.js.map +1 -1
  337. package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
  338. package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
  339. package/dist/src/commands/lock/check.command.d.ts +8 -6
  340. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  341. package/dist/src/commands/lock/check.command.js +12 -19
  342. package/dist/src/commands/lock/check.command.js.map +1 -1
  343. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  344. package/dist/src/commands/market/generate.command.js +2 -1
  345. package/dist/src/commands/market/generate.command.js.map +1 -1
  346. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  347. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  348. package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
  349. package/dist/src/commands/prefs/set.command.js.map +1 -1
  350. package/dist/src/commands/providers/chat-command-registrations.utils.d.ts +32 -0
  351. package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -0
  352. package/dist/src/commands/providers/chat-command-registrations.utils.js +120 -0
  353. package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -0
  354. package/dist/src/commands/providers/new.command.d.ts +14 -0
  355. package/dist/src/commands/providers/new.command.d.ts.map +1 -0
  356. package/dist/src/commands/providers/new.command.js +119 -0
  357. package/dist/src/commands/providers/new.command.js.map +1 -0
  358. package/dist/src/commands/providers/probe.command.d.ts +20 -0
  359. package/dist/src/commands/providers/probe.command.d.ts.map +1 -0
  360. package/dist/src/commands/providers/probe.command.js +164 -0
  361. package/dist/src/commands/providers/probe.command.js.map +1 -0
  362. package/dist/src/commands/providers/register.command.d.ts +34 -0
  363. package/dist/src/commands/providers/register.command.d.ts.map +1 -0
  364. package/dist/src/commands/providers/register.command.js +258 -0
  365. package/dist/src/commands/providers/register.command.js.map +1 -0
  366. package/dist/src/commands/providers/show.command.d.ts +1 -0
  367. package/dist/src/commands/providers/show.command.d.ts.map +1 -1
  368. package/dist/src/commands/providers/show.command.js +6 -46
  369. package/dist/src/commands/providers/show.command.js.map +1 -1
  370. package/dist/src/commands/registry/add.command.d.ts +3 -0
  371. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  372. package/dist/src/commands/registry/add.command.js +23 -212
  373. package/dist/src/commands/registry/add.command.js.map +1 -1
  374. package/dist/src/commands/registry/domain.command.d.ts +32 -0
  375. package/dist/src/commands/registry/domain.command.d.ts.map +1 -0
  376. package/dist/src/commands/registry/domain.command.js +118 -0
  377. package/dist/src/commands/registry/domain.command.js.map +1 -0
  378. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  379. package/dist/src/commands/registry/info.command.js.map +1 -1
  380. package/dist/src/commands/registry/key.command.d.ts.map +1 -1
  381. package/dist/src/commands/registry/key.command.js.map +1 -1
  382. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  383. package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
  384. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  385. package/dist/src/commands/registry/login.command.js.map +1 -1
  386. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  387. package/dist/src/commands/registry/logout.command.js.map +1 -1
  388. package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
  389. package/dist/src/commands/registry/outdated.command.js.map +1 -1
  390. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  391. package/dist/src/commands/registry/ping.command.js.map +1 -1
  392. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  393. package/dist/src/commands/registry/publish.command.js +26 -50
  394. package/dist/src/commands/registry/publish.command.js.map +1 -1
  395. package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
  396. package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
  397. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  398. package/dist/src/commands/registry/remove.command.js +16 -1
  399. package/dist/src/commands/registry/remove.command.js.map +1 -1
  400. package/dist/src/commands/registry/repair-lockfile.command.d.ts +11 -1
  401. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  402. package/dist/src/commands/registry/repair-lockfile.command.js +145 -12
  403. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  404. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  405. package/dist/src/commands/registry/search.command.js +4 -4
  406. package/dist/src/commands/registry/search.command.js.map +1 -1
  407. package/dist/src/commands/registry/status.command.d.ts.map +1 -1
  408. package/dist/src/commands/registry/status.command.js.map +1 -1
  409. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  410. package/dist/src/commands/registry/update.command.js +22 -6
  411. package/dist/src/commands/registry/update.command.js.map +1 -1
  412. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  413. package/dist/src/commands/registry/whoami.command.js.map +1 -1
  414. package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
  415. package/dist/src/commands/registry/yank.command.js.map +1 -1
  416. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  417. package/dist/src/commands/remote/create.command.js.map +1 -1
  418. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  419. package/dist/src/commands/remote/list.command.js.map +1 -1
  420. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  421. package/dist/src/commands/remote/status.command.js.map +1 -1
  422. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  423. package/dist/src/commands/remote/sync.command.js.map +1 -1
  424. package/dist/src/commands/seal/dead.command.d.ts +11 -0
  425. package/dist/src/commands/seal/dead.command.d.ts.map +1 -0
  426. package/dist/src/commands/seal/dead.command.js +44 -0
  427. package/dist/src/commands/seal/dead.command.js.map +1 -0
  428. package/dist/src/commands/seal/export.command.d.ts +12 -0
  429. package/dist/src/commands/seal/export.command.d.ts.map +1 -0
  430. package/dist/src/commands/seal/export.command.js +67 -0
  431. package/dist/src/commands/seal/export.command.js.map +1 -0
  432. package/dist/src/commands/seal/log-export.command.d.ts +18 -0
  433. package/dist/src/commands/seal/log-export.command.d.ts.map +1 -0
  434. package/dist/src/commands/seal/log-export.command.js +93 -0
  435. package/dist/src/commands/seal/log-export.command.js.map +1 -0
  436. package/dist/src/commands/seal/log-verify.command.d.ts +13 -0
  437. package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -0
  438. package/dist/src/commands/seal/log-verify.command.js +74 -0
  439. package/dist/src/commands/seal/log-verify.command.js.map +1 -0
  440. package/dist/src/commands/seal/retry.command.d.ts +12 -0
  441. package/dist/src/commands/seal/retry.command.d.ts.map +1 -0
  442. package/dist/src/commands/seal/retry.command.js +48 -0
  443. package/dist/src/commands/seal/retry.command.js.map +1 -0
  444. package/dist/src/commands/seal/seal-admin-door.utils.d.ts +13 -0
  445. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -0
  446. package/dist/src/commands/seal/seal-admin-door.utils.js +88 -0
  447. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -0
  448. package/dist/src/commands/seal/signing-log-files.utils.d.ts +9 -0
  449. package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -0
  450. package/dist/src/commands/seal/signing-log-files.utils.js +15 -0
  451. package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -0
  452. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  453. package/dist/src/commands/seal/verify.command.d.ts.map +1 -0
  454. package/dist/src/commands/seal/verify.command.js +120 -0
  455. package/dist/src/commands/seal/verify.command.js.map +1 -0
  456. package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
  457. package/dist/src/commands/secrets/github.command.js.map +1 -1
  458. package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
  459. package/dist/src/commands/secrets/list.command.js +3 -2
  460. package/dist/src/commands/secrets/list.command.js.map +1 -1
  461. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  462. package/dist/src/commands/secrets/set.command.js +3 -2
  463. package/dist/src/commands/secrets/set.command.js.map +1 -1
  464. package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
  465. package/dist/src/commands/secrets/unset.command.js.map +1 -1
  466. package/dist/src/commands/setup.command.d.ts.map +1 -1
  467. package/dist/src/commands/setup.command.js.map +1 -1
  468. package/dist/src/commands/update.command.d.ts.map +1 -1
  469. package/dist/src/commands/update.command.js +3 -0
  470. package/dist/src/commands/update.command.js.map +1 -1
  471. package/dist/src/commands/version.command.d.ts.map +1 -1
  472. package/dist/src/commands/version.command.js.map +1 -1
  473. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  474. package/dist/src/commands/website/audit.command.js.map +1 -1
  475. package/dist/src/commands/website/look.command.d.ts +22 -0
  476. package/dist/src/commands/website/look.command.d.ts.map +1 -0
  477. package/dist/src/commands/website/look.command.js +147 -0
  478. package/dist/src/commands/website/look.command.js.map +1 -0
  479. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  480. package/dist/src/commands/workbench/open.command.js.map +1 -1
  481. package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
  482. package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
  483. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  484. package/dist/src/commands/workbench/status.command.js +2 -1
  485. package/dist/src/commands/workbench/status.command.js.map +1 -1
  486. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  487. package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
  488. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  489. package/dist/src/infrastructure/io/file.utils.js.map +1 -1
  490. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  491. package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
  492. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  493. package/dist/src/infrastructure/io/template-processor.js.map +1 -1
  494. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  495. package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
  496. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  497. package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
  498. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  499. package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
  500. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  501. package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
  502. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  503. package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
  504. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  505. package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
  506. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  507. package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
  508. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  509. package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
  510. package/dist/src/kernel/base-command.d.ts.map +1 -1
  511. package/dist/src/kernel/base-command.js.map +1 -1
  512. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  513. package/dist/src/kernel/bootstrap.js.map +1 -1
  514. package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
  515. package/dist/src/kernel/command-index-cache.js.map +1 -1
  516. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  517. package/dist/src/kernel/command-registry.js +3 -0
  518. package/dist/src/kernel/command-registry.js.map +1 -1
  519. package/dist/src/kernel/command-runner.d.ts +5 -0
  520. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  521. package/dist/src/kernel/command-runner.js +13 -1
  522. package/dist/src/kernel/command-runner.js.map +1 -1
  523. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  524. package/dist/src/kernel/command-scope-utils.js.map +1 -1
  525. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  526. package/dist/src/kernel/flag-utils.js.map +1 -1
  527. package/dist/src/kernel/hooks.d.ts.map +1 -1
  528. package/dist/src/kernel/hooks.js +5 -3
  529. package/dist/src/kernel/hooks.js.map +1 -1
  530. package/dist/src/kernel/json-document-output.d.ts +25 -0
  531. package/dist/src/kernel/json-document-output.d.ts.map +1 -0
  532. package/dist/src/kernel/json-document-output.js +29 -0
  533. package/dist/src/kernel/json-document-output.js.map +1 -0
  534. package/dist/src/kernel/logger.d.ts +16 -1
  535. package/dist/src/kernel/logger.d.ts.map +1 -1
  536. package/dist/src/kernel/logger.js +21 -4
  537. package/dist/src/kernel/logger.js.map +1 -1
  538. package/dist/src/kernel/types.d.ts +6 -0
  539. package/dist/src/kernel/types.d.ts.map +1 -1
  540. package/dist/src/kernel/types.js +6 -0
  541. package/dist/src/kernel/types.js.map +1 -1
  542. package/dist/src/main.d.ts.map +1 -1
  543. package/dist/src/main.js.map +1 -1
  544. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  545. package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
  546. package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
  547. package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
  548. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts +5 -1
  549. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
  550. package/dist/src/modules/domain/credentials/creation-essentials.module.js +1 -4
  551. package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
  552. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  553. package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
  554. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  555. package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
  556. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  557. package/dist/src/modules/domain/environment/module.types.js.map +1 -1
  558. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  559. package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
  560. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  561. package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
  562. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  563. package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
  564. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  565. package/dist/src/modules/domain/module.types.js.map +1 -1
  566. package/dist/src/services/application/ai-use-declarations.service.d.ts +89 -0
  567. package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -0
  568. package/dist/src/services/application/ai-use-declarations.service.js +178 -0
  569. package/dist/src/services/application/ai-use-declarations.service.js.map +1 -0
  570. package/dist/src/services/application/app-bootstrap.service.d.ts +6 -1
  571. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  572. package/dist/src/services/application/app-bootstrap.service.js +12 -1
  573. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  574. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  575. package/dist/src/services/application/app-env.service.js.map +1 -1
  576. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  577. package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
  578. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  579. package/dist/src/services/application/app-runtime-targets.service.js +6 -0
  580. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  581. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  582. package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
  583. package/dist/src/services/application/application-assets-delivery.service.d.ts +6 -0
  584. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  585. package/dist/src/services/application/application-assets-delivery.service.js +13 -1
  586. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  587. package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
  588. package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
  589. package/dist/src/services/application/application-creation-readiness.service.d.ts +10 -2
  590. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  591. package/dist/src/services/application/application-creation-readiness.service.js +74 -21
  592. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  593. package/dist/src/services/application/application-dependency-alignment.service.d.ts +52 -4
  594. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  595. package/dist/src/services/application/application-dependency-alignment.service.js +118 -8
  596. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  597. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  598. package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
  599. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  600. package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
  601. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  602. package/dist/src/services/application/application-root.utils.js.map +1 -1
  603. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  604. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  605. package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
  606. package/dist/src/services/application/backend-config.paths.js.map +1 -1
  607. package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
  608. package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
  609. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +80 -0
  610. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -0
  611. package/dist/src/services/application/content-guardrail-classifier.service.js +199 -0
  612. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -0
  613. package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
  614. package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
  615. package/dist/src/services/application/creation-preflight.service.d.ts +2 -2
  616. package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
  617. package/dist/src/services/application/creation-preflight.service.js +2 -2
  618. package/dist/src/services/application/creation-preflight.service.js.map +1 -1
  619. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
  620. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
  621. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  622. package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
  623. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  624. package/dist/src/services/application/dev-schema-drift.service.js +1 -1
  625. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  626. package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
  627. package/dist/src/services/application/environment-provider-configurations.service.js +96 -2
  628. package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
  629. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  630. package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
  631. package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts +23 -0
  632. package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -0
  633. package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +107 -0
  634. package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -0
  635. package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
  636. package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
  637. package/dist/src/services/application/frontend-providers-not-configured.service.d.ts +23 -0
  638. package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -0
  639. package/dist/src/services/application/frontend-providers-not-configured.service.js +62 -0
  640. package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -0
  641. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts +13 -2
  642. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
  643. package/dist/src/services/application/frontend-public-config-secret-screen.service.js +4 -2
  644. package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
  645. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  646. package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
  647. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  648. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  649. package/dist/src/services/application/provider-package-links.service.d.ts +7 -6
  650. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
  651. package/dist/src/services/application/provider-package-links.service.js +7 -6
  652. package/dist/src/services/application/provider-package-links.service.js.map +1 -1
  653. package/dist/src/services/application/provider-runtime-sync.service.d.ts +68 -9
  654. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  655. package/dist/src/services/application/provider-runtime-sync.service.js +264 -108
  656. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  657. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  658. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  659. package/dist/src/services/application/saas-skeleton.service.d.ts +53 -0
  660. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  661. package/dist/src/services/application/saas-skeleton.service.js +45 -13
  662. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  663. package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
  664. package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
  665. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  666. package/dist/src/services/application/systems-of-record-library.service.js +4 -3
  667. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  668. package/dist/src/services/blueprint/blueprint-apply.service.d.ts +147 -0
  669. package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -0
  670. package/dist/src/services/blueprint/blueprint-apply.service.js +490 -0
  671. package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -0
  672. package/dist/src/services/blueprint/blueprint-artifact.service.d.ts +33 -0
  673. package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -0
  674. package/dist/src/services/blueprint/blueprint-artifact.service.js +88 -0
  675. package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -0
  676. package/dist/src/services/blueprint/blueprint-definition.reader.d.ts +37 -0
  677. package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -0
  678. package/dist/src/services/blueprint/blueprint-definition.reader.js +160 -0
  679. package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -0
  680. package/dist/src/services/blueprint/blueprint-export.service.d.ts +72 -0
  681. package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -0
  682. package/dist/src/services/blueprint/blueprint-export.service.js +899 -0
  683. package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -0
  684. package/dist/src/services/blueprint/blueprint-line.service.d.ts +76 -0
  685. package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -0
  686. package/dist/src/services/blueprint/blueprint-line.service.js +200 -0
  687. package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -0
  688. package/dist/src/services/blueprint/blueprint-module-references.service.d.ts +81 -0
  689. package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -0
  690. package/dist/src/services/blueprint/blueprint-module-references.service.js +185 -0
  691. package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -0
  692. package/dist/src/services/blueprint/blueprint-registry.service.d.ts +63 -0
  693. package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -0
  694. package/dist/src/services/blueprint/blueprint-registry.service.js +119 -0
  695. package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -0
  696. package/dist/src/services/blueprint/blueprint-report.d.ts +8 -0
  697. package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -0
  698. package/dist/src/services/blueprint/blueprint-report.js +32 -0
  699. package/dist/src/services/blueprint/blueprint-report.js.map +1 -0
  700. package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +31 -0
  701. package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -0
  702. package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +65 -0
  703. package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -0
  704. package/dist/src/services/blueprint/framework-blueprints.service.d.ts +68 -0
  705. package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -0
  706. package/dist/src/services/blueprint/framework-blueprints.service.js +239 -0
  707. package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -0
  708. package/dist/src/services/catalog/service-address-resolver.service.d.ts +6 -0
  709. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  710. package/dist/src/services/catalog/service-address-resolver.service.js +4 -0
  711. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  712. package/dist/src/services/catalog/service-catalog.schemas.d.ts +7 -3
  713. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  714. package/dist/src/services/catalog/service-catalog.schemas.js +24 -3
  715. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  716. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  717. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  718. package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
  719. package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
  720. package/dist/src/services/companion/agent-stop-reason-words.d.ts +5 -0
  721. package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -0
  722. package/dist/src/services/companion/agent-stop-reason-words.js +25 -0
  723. package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -0
  724. package/dist/src/services/companion/agent-work-shortfall-words.d.ts +8 -0
  725. package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -0
  726. package/dist/src/services/companion/agent-work-shortfall-words.js +35 -0
  727. package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -0
  728. package/dist/src/services/companion/build-console.service.d.ts +50 -1
  729. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  730. package/dist/src/services/companion/build-console.service.js +61 -6
  731. package/dist/src/services/companion/build-console.service.js.map +1 -1
  732. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  733. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  734. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  735. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  736. package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
  737. package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
  738. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  739. package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
  740. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
  741. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
  742. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  743. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  744. package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
  745. package/dist/src/services/companion/console-fast-path.js.map +1 -1
  746. package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
  747. package/dist/src/services/companion/console-verb.utils.js +2 -1
  748. package/dist/src/services/companion/console-verb.utils.js.map +1 -1
  749. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  750. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  751. package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
  752. package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
  753. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  754. package/dist/src/services/companion/git-helper.service.js.map +1 -1
  755. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  756. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  757. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  758. package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
  759. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  760. package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
  761. package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
  762. package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
  763. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  764. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  765. package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
  766. package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
  767. package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -1
  768. package/dist/src/services/compliance/legal-notice.generator.js.map +1 -1
  769. package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
  770. package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
  771. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts +5 -2
  772. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
  773. package/dist/src/services/compliance/subject-data-recipients.generator.js +7 -3
  774. package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
  775. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  776. package/dist/src/services/context/context-manager.service.js.map +1 -1
  777. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  778. package/dist/src/services/context/context.schemas.js.map +1 -1
  779. package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
  780. package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
  781. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  782. package/dist/src/services/context/state-manager.service.js.map +1 -1
  783. package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
  784. package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
  785. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  786. package/dist/src/services/credentials/application-secrets.service.js +5 -7
  787. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  788. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  789. package/dist/src/services/credentials/ci-secrets-adapter.service.js +2 -2
  790. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  791. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +5 -12
  792. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  793. package/dist/src/services/credentials/composed-provider-catalogue.js +12 -0
  794. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  795. package/dist/src/services/credentials/credentials.schemas.d.ts +77 -0
  796. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  797. package/dist/src/services/credentials/credentials.schemas.js +69 -1
  798. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  799. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  800. package/dist/src/services/credentials/credentials.service.js.map +1 -1
  801. package/dist/src/services/credentials/framework-managed-secrets.d.ts +77 -5
  802. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  803. package/dist/src/services/credentials/framework-managed-secrets.js +155 -1
  804. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  805. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  806. package/dist/src/services/credentials/local-defaults.service.js +2 -2
  807. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  808. package/dist/src/services/credentials/local-secrets-store.service.d.ts +14 -2
  809. package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
  810. package/dist/src/services/credentials/local-secrets-store.service.js +29 -2
  811. package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
  812. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  813. package/dist/src/services/credentials/provider-env-vars.utils.js +4 -0
  814. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  815. package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
  816. package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
  817. package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
  818. package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
  819. package/dist/src/services/credentials/secret-requirements.service.d.ts +144 -4
  820. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  821. package/dist/src/services/credentials/secret-requirements.service.js +467 -20
  822. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  823. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  824. package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
  825. package/dist/src/services/credentials/secrets-reader.service.d.ts +6 -0
  826. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  827. package/dist/src/services/credentials/secrets-reader.service.js +13 -2
  828. package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
  829. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  830. package/dist/src/services/credentials/secrets-rotation.service.js +3 -2
  831. package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
  832. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  833. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  834. package/dist/src/services/data-services/data-services.schemas.d.ts +2 -1
  835. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  836. package/dist/src/services/data-services/data-services.schemas.js +5 -0
  837. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  838. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  839. package/dist/src/services/data-services/data-services.service.js.map +1 -1
  840. package/dist/src/services/data-services/platform-key-vault.server-config.d.ts +79 -0
  841. package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -0
  842. package/dist/src/services/data-services/platform-key-vault.server-config.js +157 -0
  843. package/dist/src/services/data-services/platform-key-vault.server-config.js.map +1 -0
  844. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  845. package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
  846. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  847. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  848. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  849. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  850. package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
  851. package/dist/src/services/deployment/docker/backing-service-health-watch.js +4 -1
  852. package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
  853. package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
  854. package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
  855. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +9 -16
  856. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  857. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +67 -25
  858. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  859. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts +15 -1
  860. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  861. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js +19 -6
  862. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  863. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  864. package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
  865. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  866. package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
  867. package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
  868. package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
  869. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  870. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  871. package/dist/src/services/deployment/infra-writer.service.d.ts +1 -1
  872. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  873. package/dist/src/services/deployment/infra-writer.service.js +2 -2
  874. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  875. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
  876. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
  877. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +38 -0
  878. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  879. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +51 -2
  880. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  881. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts +69 -0
  882. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  883. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js +103 -1
  884. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
  885. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +1 -2
  886. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  887. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +59 -45
  888. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  889. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +26 -20
  890. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  891. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  892. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts +26 -0
  893. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  894. package/dist/src/services/deployment/k8s/k8s-operations.service.js +79 -0
  895. package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
  896. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  897. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +19 -2
  898. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  899. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts +5 -2
  900. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  901. package/dist/src/services/deployment/k8s/k8s.schemas.js +5 -2
  902. package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
  903. package/dist/src/services/deployment/k8s/kind.service.d.ts +10 -6
  904. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  905. package/dist/src/services/deployment/k8s/kind.service.js +3 -57
  906. package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
  907. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  908. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
  909. package/dist/src/services/deployment/local-dev-log-retention.service.d.ts +45 -0
  910. package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -0
  911. package/dist/src/services/deployment/local-dev-log-retention.service.js +83 -0
  912. package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -0
  913. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  914. package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
  915. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  916. package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -1
  917. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts +2 -2
  918. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  919. package/dist/src/services/deployment/local-dev-session-lease.service.js +2 -2
  920. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  921. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  922. package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
  923. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  924. package/dist/src/services/deployment/local-infrastructure-initialization.service.js +20 -1
  925. package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
  926. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  927. package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -1
  928. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +14 -0
  929. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  930. package/dist/src/services/deployment/local-precondition-checks.service.js +42 -0
  931. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  932. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  933. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
  934. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  935. package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
  936. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  937. package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
  938. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  939. package/dist/src/services/deployment/version-compare.utils.js.map +1 -1
  940. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts +60 -0
  941. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  942. package/dist/src/services/design-tokens/design-tokens-command.service.js +317 -64
  943. package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
  944. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts +21 -2
  945. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  946. package/dist/src/services/design-tokens/design-tokens-config.service.js +23 -40
  947. package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
  948. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts +20 -0
  949. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  950. package/dist/src/services/design-tokens/design-tokens-config.template.js +47 -5
  951. package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
  952. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  953. package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -1
  954. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts +28 -4
  955. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  956. package/dist/src/services/design-tokens/design-tokens-paths.service.js +67 -9
  957. package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
  958. package/dist/src/services/design-tokens/design-tokens.constants.d.ts +63 -0
  959. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  960. package/dist/src/services/design-tokens/design-tokens.constants.js +63 -0
  961. package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
  962. package/dist/src/services/design-tokens/design-tokens.models.d.ts +24 -0
  963. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  964. package/dist/src/services/design-tokens/design-tokens.models.js +22 -0
  965. package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
  966. package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
  967. package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
  968. package/dist/src/services/environment/authored-infra-config.utils.d.ts +30 -0
  969. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  970. package/dist/src/services/environment/authored-infra-config.utils.js +47 -1
  971. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  972. package/dist/src/services/environment/env-configuration-generator.service.d.ts +4 -4
  973. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  974. package/dist/src/services/environment/env-configuration-generator.service.js +18 -12
  975. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  976. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  977. package/dist/src/services/environment/env-sync.service.js +1 -1
  978. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  979. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  980. package/dist/src/services/environment/env-vars-builder.service.js +201 -6
  981. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  982. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  983. package/dist/src/services/environment/environment-hydration.utils.js +6 -0
  984. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  985. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  986. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  987. package/dist/src/services/environment/environment-paths.service.d.ts +5 -7
  988. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  989. package/dist/src/services/environment/environment-paths.service.js +5 -7
  990. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  991. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  992. package/dist/src/services/environment/environment-registry.service.js.map +1 -1
  993. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  994. package/dist/src/services/environment/environment-setup.service.js +15 -19
  995. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  996. package/dist/src/services/environment/environment.schemas.d.ts +21 -3
  997. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  998. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  999. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  1000. package/dist/src/services/environment/environment.service.js.map +1 -1
  1001. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
  1002. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
  1003. package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
  1004. package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
  1005. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  1006. package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
  1007. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  1008. package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
  1009. package/dist/src/services/environment/platform-runtime.schemas.d.ts +36 -58
  1010. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  1011. package/dist/src/services/environment/platform-runtime.schemas.js +37 -58
  1012. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  1013. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +17 -12
  1014. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  1015. package/dist/src/services/environment/runtime-bootstrap.service.js +100 -23
  1016. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  1017. package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
  1018. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  1019. package/dist/src/services/framework/application-provider-skills.service.d.ts +38 -0
  1020. package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -0
  1021. package/dist/src/services/framework/application-provider-skills.service.js +189 -0
  1022. package/dist/src/services/framework/application-provider-skills.service.js.map +1 -0
  1023. package/dist/src/services/framework/application-rule-imports.d.ts +2 -1
  1024. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
  1025. package/dist/src/services/framework/application-rule-imports.js +25 -7
  1026. package/dist/src/services/framework/application-rule-imports.js.map +1 -1
  1027. package/dist/src/services/framework/auditable-event-catalog.generator.d.ts +49 -0
  1028. package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -0
  1029. package/dist/src/services/framework/auditable-event-catalog.generator.js +84 -0
  1030. package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -0
  1031. package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
  1032. package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
  1033. package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
  1034. package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
  1035. package/dist/src/services/framework/enum-member-docs.reader.d.ts +33 -0
  1036. package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -0
  1037. package/dist/src/services/framework/enum-member-docs.reader.js +63 -0
  1038. package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -0
  1039. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +30 -0
  1040. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -0
  1041. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +57 -0
  1042. package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -0
  1043. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +6 -0
  1044. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  1045. package/dist/src/services/framework/framework-development-skills-sync.service.js +64 -2
  1046. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  1047. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  1048. package/dist/src/services/framework/framework-docker-publish.service.js +3 -2
  1049. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  1050. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  1051. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -1
  1052. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +0 -6
  1053. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  1054. package/dist/src/services/framework/framework-knowledge-audit.service.js +11 -36
  1055. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  1056. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +7 -3
  1057. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  1058. package/dist/src/services/framework/framework-knowledge-generation.service.js +79 -69
  1059. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  1060. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts +6 -1
  1061. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  1062. package/dist/src/services/framework/framework-knowledge-scan.constants.js +13 -0
  1063. package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
  1064. package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +81 -0
  1065. package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -0
  1066. package/dist/src/services/framework/framework-npm-dist-tag.service.js +149 -0
  1067. package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -0
  1068. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  1069. package/dist/src/services/framework/framework-npm-publish.service.js +7 -5
  1070. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  1071. package/dist/src/services/framework/framework-publish-manifest.service.d.ts +10 -36
  1072. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  1073. package/dist/src/services/framework/framework-publish-manifest.service.js +15 -58
  1074. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  1075. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  1076. package/dist/src/services/framework/framework-release.service.js +4 -1
  1077. package/dist/src/services/framework/framework-release.service.js.map +1 -1
  1078. package/dist/src/services/framework/framework-update.service.d.ts +6 -0
  1079. package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
  1080. package/dist/src/services/framework/framework-update.service.js +15 -1
  1081. package/dist/src/services/framework/framework-update.service.js.map +1 -1
  1082. package/dist/src/services/framework/framework-version.service.d.ts +2 -4
  1083. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  1084. package/dist/src/services/framework/framework-version.service.js +5 -7
  1085. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  1086. package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
  1087. package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
  1088. package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
  1089. package/dist/src/services/framework/frontend-library-root-exports.js +3 -3
  1090. package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
  1091. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  1092. package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
  1093. package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
  1094. package/dist/src/services/framework/npm-registry-output.js.map +1 -1
  1095. package/dist/src/services/framework/package-install.service.d.ts +9 -0
  1096. package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
  1097. package/dist/src/services/framework/package-install.service.js +14 -0
  1098. package/dist/src/services/framework/package-install.service.js.map +1 -1
  1099. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
  1100. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
  1101. package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
  1102. package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
  1103. package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
  1104. package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
  1105. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
  1106. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
  1107. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
  1108. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
  1109. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
  1110. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
  1111. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
  1112. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
  1113. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
  1114. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +12 -4
  1115. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
  1116. package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
  1117. package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
  1118. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
  1119. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
  1120. package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
  1121. package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
  1122. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
  1123. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
  1124. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
  1125. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
  1126. package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts +43 -0
  1127. package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -0
  1128. package/dist/src/services/framework/registry-host/registry-host-monitoring.js +103 -0
  1129. package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -0
  1130. package/dist/src/services/framework/registry-host/registry-host-remote.d.ts +29 -0
  1131. package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -0
  1132. package/dist/src/services/framework/registry-host/registry-host-remote.js +98 -0
  1133. package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -0
  1134. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +102 -0
  1135. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -0
  1136. package/dist/src/services/framework/registry-host/registry-host.service.js +318 -0
  1137. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -0
  1138. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  1139. package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
  1140. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  1141. package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
  1142. package/dist/src/services/frontend/frontend-look.service.d.ts +264 -0
  1143. package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -0
  1144. package/dist/src/services/frontend/frontend-look.service.js +640 -0
  1145. package/dist/src/services/frontend/frontend-look.service.js.map +1 -0
  1146. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  1147. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  1148. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  1149. package/dist/src/services/generation/domain-generator.service.js.map +1 -1
  1150. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  1151. package/dist/src/services/generation/generator.schemas.js.map +1 -1
  1152. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  1153. package/dist/src/services/generation/operation-generator.service.js.map +1 -1
  1154. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  1155. package/dist/src/services/generation/resource-generator.service.js.map +1 -1
  1156. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  1157. package/dist/src/services/generation/template-registry.service.js.map +1 -1
  1158. package/dist/src/services/registry/artifact-extractor.utils.d.ts +9 -4
  1159. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  1160. package/dist/src/services/registry/artifact-extractor.utils.js +16 -9
  1161. package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
  1162. package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
  1163. package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
  1164. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  1165. package/dist/src/services/registry/boundary-fanout.utils.js +7 -2
  1166. package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
  1167. package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
  1168. package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
  1169. package/dist/src/services/registry/index.d.ts +0 -1
  1170. package/dist/src/services/registry/index.d.ts.map +1 -1
  1171. package/dist/src/services/registry/index.js +0 -1
  1172. package/dist/src/services/registry/index.js.map +1 -1
  1173. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  1174. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  1175. package/dist/src/services/registry/installed-provider-module.service.d.ts +25 -0
  1176. package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -0
  1177. package/dist/src/services/registry/installed-provider-module.service.js +56 -0
  1178. package/dist/src/services/registry/installed-provider-module.service.js.map +1 -0
  1179. package/dist/src/services/registry/local-checkout-module-source.service.d.ts +12 -10
  1180. package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
  1181. package/dist/src/services/registry/local-checkout-module-source.service.js +60 -58
  1182. package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
  1183. package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
  1184. package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
  1185. package/dist/src/services/registry/module-acquisition.utils.d.ts +6 -0
  1186. package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
  1187. package/dist/src/services/registry/module-acquisition.utils.js +7 -0
  1188. package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
  1189. package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
  1190. package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
  1191. package/dist/src/services/registry/module-install.service.d.ts +70 -0
  1192. package/dist/src/services/registry/module-install.service.d.ts.map +1 -0
  1193. package/dist/src/services/registry/module-install.service.js +199 -0
  1194. package/dist/src/services/registry/module-install.service.js.map +1 -0
  1195. package/dist/src/services/registry/module-publish.service.d.ts +49 -0
  1196. package/dist/src/services/registry/module-publish.service.d.ts.map +1 -0
  1197. package/dist/src/services/registry/module-publish.service.js +79 -0
  1198. package/dist/src/services/registry/module-publish.service.js.map +1 -0
  1199. package/dist/src/services/registry/module-registration.service.d.ts +26 -0
  1200. package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
  1201. package/dist/src/services/registry/module-registration.service.js +474 -20
  1202. package/dist/src/services/registry/module-registration.service.js.map +1 -1
  1203. package/dist/src/services/registry/module-requirements.service.d.ts +42 -2
  1204. package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
  1205. package/dist/src/services/registry/module-requirements.service.js +133 -6
  1206. package/dist/src/services/registry/module-requirements.service.js.map +1 -1
  1207. package/dist/src/services/registry/provider-install-step.d.ts +77 -14
  1208. package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
  1209. package/dist/src/services/registry/provider-install-step.js +189 -4
  1210. package/dist/src/services/registry/provider-install-step.js.map +1 -1
  1211. package/dist/src/services/registry/provider-module-checks.service.d.ts +27 -4
  1212. package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
  1213. package/dist/src/services/registry/provider-module-checks.service.js +513 -19
  1214. package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
  1215. package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
  1216. package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
  1217. package/dist/src/services/registry/provider-module-scaffold.service.d.ts +156 -0
  1218. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -0
  1219. package/dist/src/services/registry/provider-module-scaffold.service.js +681 -0
  1220. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -0
  1221. package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +84 -0
  1222. package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -0
  1223. package/dist/src/services/registry/provider-module-vendor-packages.service.js +361 -0
  1224. package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -0
  1225. package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +107 -0
  1226. package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -0
  1227. package/dist/src/services/registry/provider-openapi-conformance.service.js +484 -0
  1228. package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -0
  1229. package/dist/src/services/registry/provider-probe.service.d.ts +84 -0
  1230. package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -0
  1231. package/dist/src/services/registry/provider-probe.service.js +230 -0
  1232. package/dist/src/services/registry/provider-probe.service.js.map +1 -0
  1233. package/dist/src/services/registry/provider-publication.service.d.ts +35 -0
  1234. package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -0
  1235. package/dist/src/services/registry/provider-publication.service.js +203 -0
  1236. package/dist/src/services/registry/provider-publication.service.js.map +1 -0
  1237. package/dist/src/services/registry/provider-vendor-registration.service.d.ts +73 -0
  1238. package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -0
  1239. package/dist/src/services/registry/provider-vendor-registration.service.js +88 -0
  1240. package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -0
  1241. package/dist/src/services/registry/provider-wiring.service.d.ts +21 -2
  1242. package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
  1243. package/dist/src/services/registry/provider-wiring.service.js +90 -16
  1244. package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
  1245. package/dist/src/services/registry/registry-command.utils.d.ts +19 -2
  1246. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  1247. package/dist/src/services/registry/registry-command.utils.js +35 -2
  1248. package/dist/src/services/registry/registry-command.utils.js.map +1 -1
  1249. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  1250. package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
  1251. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  1252. package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
  1253. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  1254. package/dist/src/services/security/csp-sync.service.js +11 -30
  1255. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  1256. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  1257. package/dist/src/services/tools/utility-tools.service.js.map +1 -1
  1258. package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
  1259. package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
  1260. package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
  1261. package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
  1262. package/dist/src/services/website/website-look.service.d.ts +167 -0
  1263. package/dist/src/services/website/website-look.service.d.ts.map +1 -0
  1264. package/dist/src/services/website/website-look.service.js +430 -0
  1265. package/dist/src/services/website/website-look.service.js.map +1 -0
  1266. package/dist/src/services/website/website-structured-data-audit.service.d.ts +5 -0
  1267. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  1268. package/dist/src/services/website/website-structured-data-audit.service.js +20 -0
  1269. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  1270. package/dist/src/services/website/website-workspace.service.d.ts +16 -0
  1271. package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
  1272. package/dist/src/services/website/website-workspace.service.js +19 -2
  1273. package/dist/src/services/website/website-workspace.service.js.map +1 -1
  1274. package/framework-root-package.json +9 -2
  1275. package/package.json +26 -19
  1276. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +4 -11
  1277. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +159 -5
  1278. package/templates/infra/docker-images/platform/Dockerfile.platform-base +23 -5
  1279. package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +6 -1
  1280. package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +20 -0
  1281. package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +110 -0
  1282. package/templates/infra/k8s/internal/openbao/service.yaml.hbs +20 -0
  1283. package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +23 -79
  1284. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +21 -75
  1285. package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +22 -75
  1286. package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +27 -0
  1287. package/templates/infra/registry-host/Caddyfile +33 -0
  1288. package/templates/infra/registry-host/backup.sh +73 -0
  1289. package/templates/infra/registry-host/docker-compose.yml +328 -0
  1290. package/templates/infra/registry-host/restore-check.sh +43 -0
  1291. package/templates/infra/registry-host/wildo-registry-backup.service +15 -0
  1292. package/templates/infra/registry-host/wildo-registry-backup.timer +12 -0
  1293. package/templates/saas/blueprints/b2b-saas/blueprint.json +26 -0
  1294. package/templates/saas/blueprints/internal-tool/blueprint.json +47 -0
  1295. package/templates/saas/blueprints/service-firm/blueprint.json +57 -0
  1296. package/templates/saas/i18n/email/components/EmailFooter.tsx +5 -3
  1297. package/templates/saas/i18n/email/components/labels.en.ts +14 -0
  1298. package/templates/saas/i18n/email/components/labels.fr.ts +13 -0
  1299. package/templates/saas/i18n/email/email-template-definitions.ts +8 -0
  1300. package/templates/saas/i18n/email/index.ts +1 -1
  1301. package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +2 -2
  1302. package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +2 -2
  1303. package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +2 -2
  1304. package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +2 -2
  1305. package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +2 -2
  1306. package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/labels.en.ts +16 -0
  1307. package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/labels.fr.ts +22 -0
  1308. package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/template.tsx +57 -0
  1309. package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +2 -2
  1310. package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/labels.en.ts +17 -0
  1311. package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/labels.fr.ts +23 -0
  1312. package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/template.tsx +61 -0
  1313. package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/labels.en.ts +17 -0
  1314. package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/labels.fr.ts +23 -0
  1315. package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/template.tsx +61 -0
  1316. package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +2 -2
  1317. package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +2 -2
  1318. package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/labels.en.ts +17 -0
  1319. package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/labels.fr.ts +23 -0
  1320. package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/template.tsx +62 -0
  1321. package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +2 -2
  1322. package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +2 -2
  1323. package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +2 -2
  1324. package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +2 -2
  1325. package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +2 -2
  1326. package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +2 -2
  1327. package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +2 -2
  1328. package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +2 -2
  1329. package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +2 -2
  1330. package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +2 -2
  1331. package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +2 -2
  1332. package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +2 -2
  1333. package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +2 -2
  1334. package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +4 -4
  1335. package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +4 -4
  1336. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +4 -4
  1337. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +4 -4
  1338. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +4 -4
  1339. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +4 -4
  1340. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +4 -4
  1341. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +4 -4
  1342. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +4 -4
  1343. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +4 -4
  1344. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +4 -4
  1345. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +4 -4
  1346. package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +2 -2
  1347. package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +2 -2
  1348. package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +2 -2
  1349. package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +2 -2
  1350. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.en.ts +18 -0
  1351. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +19 -0
  1352. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/template.tsx +50 -0
  1353. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.en.ts +18 -0
  1354. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +19 -0
  1355. package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/template.tsx +50 -0
  1356. package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +9 -5
  1357. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/labels.en.ts +18 -0
  1358. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/labels.fr.ts +21 -0
  1359. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/template.tsx +58 -0
  1360. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +2 -2
  1361. package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +2 -2
  1362. package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/labels.en.ts +20 -0
  1363. package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/labels.fr.ts +22 -0
  1364. package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/template.tsx +60 -0
  1365. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/labels.en.ts +18 -0
  1366. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/labels.fr.ts +21 -0
  1367. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/template.tsx +58 -0
  1368. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +2 -2
  1369. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.users-custom/template.tsx +2 -2
  1370. package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +2 -2
  1371. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +2 -2
  1372. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +2 -2
  1373. package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/labels.en.ts +19 -0
  1374. package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/labels.fr.ts +21 -0
  1375. package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/template.tsx +63 -0
  1376. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/labels.en.ts +18 -0
  1377. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/labels.fr.ts +21 -0
  1378. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/template.tsx +58 -0
  1379. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +2 -2
  1380. package/templates/saas/i18n/email/resources/organizationMembers/suspend.users-custom/template.tsx +2 -2
  1381. package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +2 -2
  1382. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +2 -2
  1383. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +2 -2
  1384. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/labels.en.ts +17 -0
  1385. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/labels.fr.ts +23 -0
  1386. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/template.tsx +63 -0
  1387. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/labels.en.ts +17 -0
  1388. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/labels.fr.ts +23 -0
  1389. package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/template.tsx +63 -0
  1390. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +2 -2
  1391. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +2 -2
  1392. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/labels.en.ts +17 -0
  1393. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/labels.fr.ts +23 -0
  1394. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/template.tsx +62 -0
  1395. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/labels.en.ts +17 -0
  1396. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/labels.fr.ts +23 -0
  1397. package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/template.tsx +62 -0
  1398. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +2 -2
  1399. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +2 -2
  1400. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +2 -2
  1401. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +2 -2
  1402. package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/labels.en.ts +19 -0
  1403. package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/labels.fr.ts +25 -0
  1404. package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/template.tsx +72 -0
  1405. package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/labels.en.ts +25 -0
  1406. package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/labels.fr.ts +25 -0
  1407. package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/template.tsx +68 -0
  1408. package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/labels.en.ts +19 -0
  1409. package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/labels.fr.ts +22 -0
  1410. package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/template.tsx +66 -0
  1411. package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/labels.en.ts +18 -0
  1412. package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/labels.fr.ts +21 -0
  1413. package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/template.tsx +63 -0
  1414. package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/labels.en.ts +18 -0
  1415. package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/labels.fr.ts +21 -0
  1416. package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/template.tsx +62 -0
  1417. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/labels.en.ts +18 -0
  1418. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/labels.fr.ts +21 -0
  1419. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/template.tsx +55 -0
  1420. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/labels.en.ts +17 -0
  1421. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/labels.fr.ts +20 -0
  1422. package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/template.tsx +53 -0
  1423. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/labels.en.ts +19 -0
  1424. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/labels.fr.ts +22 -0
  1425. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/template.tsx +63 -0
  1426. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/labels.en.ts +19 -0
  1427. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/labels.fr.ts +22 -0
  1428. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/template.tsx +65 -0
  1429. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/labels.en.ts +19 -0
  1430. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/labels.fr.ts +22 -0
  1431. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/template.tsx +61 -0
  1432. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/labels.en.ts +20 -0
  1433. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/labels.fr.ts +23 -0
  1434. package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/template.tsx +66 -0
  1435. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/labels.en.ts +18 -0
  1436. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/labels.fr.ts +21 -0
  1437. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/template.tsx +56 -0
  1438. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/labels.en.ts +18 -0
  1439. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/labels.fr.ts +21 -0
  1440. package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/template.tsx +63 -0
  1441. package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/labels.en.ts +19 -0
  1442. package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/labels.fr.ts +22 -0
  1443. package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/template.tsx +66 -0
  1444. package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/labels.en.ts +19 -0
  1445. package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/labels.fr.ts +22 -0
  1446. package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/template.tsx +66 -0
  1447. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/labels.en.ts +18 -0
  1448. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/labels.fr.ts +21 -0
  1449. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/template.tsx +58 -0
  1450. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/labels.en.ts +18 -0
  1451. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/labels.fr.ts +21 -0
  1452. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/template.tsx +61 -0
  1453. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/labels.en.ts +18 -0
  1454. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/labels.fr.ts +21 -0
  1455. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/template.tsx +58 -0
  1456. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/labels.en.ts +18 -0
  1457. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/labels.fr.ts +21 -0
  1458. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/template.tsx +61 -0
  1459. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/labels.en.ts +18 -0
  1460. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/labels.fr.ts +21 -0
  1461. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/template.tsx +58 -0
  1462. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/labels.en.ts +18 -0
  1463. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/labels.fr.ts +21 -0
  1464. package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/template.tsx +61 -0
  1465. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/labels.en.ts +18 -0
  1466. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/labels.fr.ts +21 -0
  1467. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/template.tsx +56 -0
  1468. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/labels.en.ts +18 -0
  1469. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/labels.fr.ts +21 -0
  1470. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/template.tsx +59 -0
  1471. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/labels.en.ts +18 -0
  1472. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/labels.fr.ts +21 -0
  1473. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/template.tsx +57 -0
  1474. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/labels.en.ts +18 -0
  1475. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/labels.fr.ts +21 -0
  1476. package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/template.tsx +59 -0
  1477. package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/labels.en.ts +19 -0
  1478. package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/labels.fr.ts +22 -0
  1479. package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/template.tsx +66 -0
  1480. package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/labels.en.ts +19 -0
  1481. package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/labels.fr.ts +22 -0
  1482. package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/template.tsx +66 -0
  1483. package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/labels.en.ts +22 -0
  1484. package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/labels.fr.ts +25 -0
  1485. package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/template.tsx +73 -0
  1486. package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/labels.en.ts +19 -0
  1487. package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/labels.fr.ts +22 -0
  1488. package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/template.tsx +64 -0
  1489. package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/labels.en.ts +19 -0
  1490. package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/labels.fr.ts +22 -0
  1491. package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/template.tsx +64 -0
  1492. package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/labels.en.ts +19 -0
  1493. package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/labels.fr.ts +22 -0
  1494. package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/template.tsx +64 -0
  1495. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/labels.en.ts +19 -0
  1496. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/labels.fr.ts +22 -0
  1497. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/template.tsx +65 -0
  1498. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/labels.en.ts +18 -0
  1499. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/labels.fr.ts +21 -0
  1500. package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/template.tsx +56 -0
  1501. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.en.ts +21 -0
  1502. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +22 -0
  1503. package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/template.tsx +56 -0
  1504. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.en.ts +23 -0
  1505. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +24 -0
  1506. package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/template.tsx +60 -0
  1507. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.en.ts +21 -0
  1508. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +22 -0
  1509. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/template.tsx +56 -0
  1510. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.en.ts +23 -0
  1511. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +24 -0
  1512. package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/template.tsx +60 -0
  1513. package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +2 -2
  1514. package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +2 -2
  1515. package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +2 -2
  1516. package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +2 -2
  1517. package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +2 -2
  1518. package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +2 -2
  1519. package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +2 -2
  1520. package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/labels.en.ts +26 -0
  1521. package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/labels.fr.ts +29 -0
  1522. package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/template.tsx +79 -0
  1523. package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +2 -2
  1524. package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +2 -2
  1525. package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +2 -2
  1526. package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +2 -2
  1527. package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +2 -2
  1528. package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +2 -2
  1529. package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +2 -2
  1530. package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +2 -2
  1531. package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/labels.en.ts +18 -0
  1532. package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/labels.fr.ts +21 -0
  1533. package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/template.tsx +58 -0
  1534. package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/labels.en.ts +17 -0
  1535. package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/labels.fr.ts +20 -0
  1536. package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/template.tsx +55 -0
  1537. package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +2 -2
  1538. package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/labels.en.ts +17 -0
  1539. package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/labels.fr.ts +20 -0
  1540. package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/template.tsx +55 -0
  1541. package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/labels.en.ts +20 -0
  1542. package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/labels.fr.ts +23 -0
  1543. package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/template.tsx +49 -0
  1544. package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/labels.en.ts +19 -0
  1545. package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/labels.fr.ts +22 -0
  1546. package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/template.tsx +48 -0
  1547. package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/labels.en.ts +19 -0
  1548. package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/labels.fr.ts +22 -0
  1549. package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/template.tsx +48 -0
  1550. package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/labels.en.ts +19 -0
  1551. package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/labels.fr.ts +22 -0
  1552. package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/template.tsx +48 -0
  1553. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/labels.en.ts +20 -0
  1554. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/labels.fr.ts +23 -0
  1555. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/template.tsx +49 -0
  1556. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/labels.en.ts +19 -0
  1557. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/labels.fr.ts +22 -0
  1558. package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/template.tsx +48 -0
  1559. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/labels.en.ts +18 -0
  1560. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/labels.fr.ts +21 -0
  1561. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/template.tsx +60 -0
  1562. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/labels.en.ts +19 -0
  1563. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/labels.fr.ts +22 -0
  1564. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/template.tsx +63 -0
  1565. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/labels.en.ts +19 -0
  1566. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/labels.fr.ts +22 -0
  1567. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/template.tsx +63 -0
  1568. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/labels.en.ts +18 -0
  1569. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/labels.fr.ts +21 -0
  1570. package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/template.tsx +60 -0
  1571. package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/labels.en.ts +18 -0
  1572. package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/labels.fr.ts +21 -0
  1573. package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/template.tsx +60 -0
  1574. package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/labels.en.ts +20 -0
  1575. package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/labels.fr.ts +23 -0
  1576. package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/template.tsx +60 -0
  1577. package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/labels.en.ts +18 -0
  1578. package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/labels.fr.ts +21 -0
  1579. package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/template.tsx +60 -0
  1580. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.en.ts +17 -0
  1581. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +18 -0
  1582. package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/template.tsx +48 -0
  1583. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.en.ts +17 -0
  1584. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +18 -0
  1585. package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/template.tsx +48 -0
  1586. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.en.ts +20 -0
  1587. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +21 -0
  1588. package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/template.tsx +54 -0
  1589. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.en.ts +22 -0
  1590. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +23 -0
  1591. package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/template.tsx +58 -0
  1592. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.en.ts +20 -0
  1593. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +21 -0
  1594. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/template.tsx +54 -0
  1595. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.en.ts +22 -0
  1596. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +23 -0
  1597. package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/template.tsx +58 -0
  1598. package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +2 -2
  1599. package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +2 -2
  1600. package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +2 -2
  1601. package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +7 -7
  1602. package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +2 -2
  1603. package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +2 -2
  1604. package/templates/saas/i18n/email/resources/users/reactivate_user.application-administrator/template.tsx +2 -2
  1605. package/templates/saas/i18n/email/resources/users/reactivate_user.users-custom/template.tsx +2 -2
  1606. package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +2 -2
  1607. package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +2 -2
  1608. package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +2 -2
  1609. package/templates/saas/i18n/email/resources/users/suspend_user.users-custom/template.tsx +2 -2
  1610. package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +2 -2
  1611. package/templates/saas/i18n/email/resources/users/unsuspend_user.users-custom/template.tsx +2 -2
  1612. package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +2 -2
  1613. package/templates/saas/i18n/email/system/new-device-login/labels.en.ts +6 -8
  1614. package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +6 -8
  1615. package/templates/saas/i18n/email/system/new-device-login/template.tsx +25 -26
  1616. package/templates/saas/i18n/email/system/operation-approval-ended/labels.en.ts +40 -0
  1617. package/templates/saas/i18n/email/system/operation-approval-ended/labels.fr.ts +43 -0
  1618. package/templates/saas/i18n/email/system/operation-approval-ended/template.tsx +72 -0
  1619. package/templates/saas/i18n/email/system/relationship-invitation/labels.en.ts +18 -0
  1620. package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +22 -0
  1621. package/templates/saas/i18n/email/system/relationship-invitation/template.tsx +66 -0
  1622. package/templates/saas/i18n/email/system/security-alert/labels.en.ts +5 -0
  1623. package/templates/saas/i18n/email/system/security-alert/labels.fr.ts +13 -8
  1624. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -2
  1625. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -2
  1626. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.ts +5 -5
  1627. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.fr.ts +5 -5
  1628. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_SIDEBAR.en.ts +3 -1
  1629. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_SIDEBAR.fr.ts +3 -1
  1630. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_STATUS_BAR.en.ts +1 -1
  1631. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_STATUS_BAR.fr.ts +1 -1
  1632. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +6 -2
  1633. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +6 -2
  1634. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_UTILITY_PANEL.en.ts +0 -1
  1635. package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_UTILITY_PANEL.fr.ts +0 -1
  1636. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS.en.ts +28 -0
  1637. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS.fr.ts +28 -0
  1638. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +55 -0
  1639. package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +55 -0
  1640. package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +47 -10
  1641. package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +47 -10
  1642. package/templates/saas/i18n/engine/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.ts +12 -1
  1643. package/templates/saas/i18n/engine/components/APP_LAYOUTS_INVITATIONS_SETTINGS.fr.ts +12 -1
  1644. package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +38 -0
  1645. package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +38 -0
  1646. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.en.ts +11 -1
  1647. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +11 -1
  1648. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SETTINGS_HUB.en.ts +2 -1
  1649. package/templates/saas/i18n/engine/components/APP_LAYOUTS_SETTINGS_HUB.fr.ts +2 -1
  1650. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +1 -9
  1651. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +1 -9
  1652. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ACTOR.en.ts +5 -10
  1653. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ACTOR.fr.ts +5 -10
  1654. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_AGENT_CONFIG.en.ts +1 -1
  1655. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.ts +1 -1
  1656. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +28 -9
  1657. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +28 -9
  1658. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.ts +1 -1
  1659. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.fr.ts +1 -1
  1660. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION.en.ts +1 -1
  1661. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION.fr.ts +1 -1
  1662. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +92 -0
  1663. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +92 -0
  1664. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DECISION.en.ts +1 -1
  1665. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DECISION.fr.ts +1 -1
  1666. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DIFF_BLOCK.en.ts +5 -5
  1667. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DIFF_BLOCK.fr.ts +5 -5
  1668. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.ts +4 -7
  1669. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_PLAN.fr.ts +4 -7
  1670. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +21 -0
  1671. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +21 -0
  1672. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.ts +2 -9
  1673. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_EXECUTION.fr.ts +2 -9
  1674. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_NODE.en.ts +1 -9
  1675. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_NODE.fr.ts +1 -9
  1676. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_GRAPH_VIEWER.en.ts +29 -0
  1677. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_GRAPH_VIEWER.fr.ts +29 -0
  1678. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.ts +3 -2
  1679. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_SYSTEM_CATALOG.fr.ts +3 -2
  1680. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.ts +1 -1
  1681. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_PRICING_TABLE.fr.ts +1 -1
  1682. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.ts +5 -4
  1683. package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.fr.ts +5 -4
  1684. package/templates/saas/i18n/engine/components/LOW_LEVEL_CHIPS_INPUT.en.ts +14 -0
  1685. package/templates/saas/i18n/engine/components/LOW_LEVEL_CHIPS_INPUT.fr.ts +14 -0
  1686. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -3
  1687. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -3
  1688. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATEPICKER.en.ts +11 -0
  1689. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATEPICKER.fr.ts +11 -0
  1690. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_PICKER.en.ts +11 -0
  1691. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_PICKER.fr.ts +11 -0
  1692. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.ts +2 -1
  1693. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_RANGE_PICKER.fr.ts +2 -1
  1694. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATE_RANGE_PICKER.en.ts +11 -0
  1695. package/templates/saas/i18n/engine/components/LOW_LEVEL_DATE_RANGE_PICKER.fr.ts +11 -0
  1696. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.ts +1 -1
  1697. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE.fr.ts +1 -1
  1698. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.ts +1 -1
  1699. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.fr.ts +1 -1
  1700. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.ts +1 -1
  1701. package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.fr.ts +1 -1
  1702. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_LIMIT_INDICATOR.en.ts +12 -0
  1703. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_LIMIT_INDICATOR.fr.ts +12 -0
  1704. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.ts +2 -2
  1705. package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.fr.ts +2 -2
  1706. package/templates/saas/i18n/engine/components/LOW_LEVEL_FILE_UPLOAD.en.ts +1 -1
  1707. package/templates/saas/i18n/engine/components/LOW_LEVEL_FILE_UPLOAD.fr.ts +1 -1
  1708. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD.en.ts +14 -4
  1709. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD.fr.ts +14 -4
  1710. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.ts +1 -1
  1711. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_ADDRESS.fr.ts +1 -1
  1712. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_CODE.en.ts +1 -1
  1713. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_CODE.fr.ts +1 -1
  1714. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_DURATION.en.ts +11 -0
  1715. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_DURATION.fr.ts +11 -0
  1716. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_FILE.en.ts +5 -5
  1717. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_FILE.fr.ts +5 -5
  1718. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_MONEY.en.ts +11 -0
  1719. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_MONEY.fr.ts +11 -0
  1720. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_RANGE_MONEY.en.ts +11 -0
  1721. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_RANGE_MONEY.fr.ts +11 -0
  1722. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_MESSAGE.en.ts +6 -6
  1723. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_MESSAGE.fr.ts +6 -6
  1724. package/templates/saas/i18n/engine/components/LOW_LEVEL_SELECT_MULTIPLE.en.ts +1 -1
  1725. package/templates/saas/i18n/engine/components/LOW_LEVEL_SELECT_MULTIPLE.fr.ts +1 -1
  1726. package/templates/saas/i18n/engine/components/LOW_LEVEL_STEPPER.en.ts +12 -0
  1727. package/templates/saas/i18n/engine/components/LOW_LEVEL_STEPPER.fr.ts +12 -0
  1728. package/templates/saas/i18n/engine/components/LOW_LEVEL_TIME_RANGE_PICKER.en.ts +2 -1
  1729. package/templates/saas/i18n/engine/components/LOW_LEVEL_TIME_RANGE_PICKER.fr.ts +2 -1
  1730. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_CHAT_IDENTITY_LINK.en.ts +31 -0
  1731. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_CHAT_IDENTITY_LINK.fr.ts +31 -0
  1732. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_LEGAL_NOTICE.en.ts +29 -0
  1733. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_LEGAL_NOTICE.fr.ts +29 -0
  1734. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +5 -1
  1735. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +5 -1
  1736. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_INVITATION.en.ts +2 -2
  1737. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_INVITATION.fr.ts +2 -2
  1738. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.ts +2 -2
  1739. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.fr.ts +2 -2
  1740. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_REGISTER.en.ts +2 -2
  1741. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_REGISTER.fr.ts +2 -2
  1742. package/templates/saas/i18n/engine/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.ts +5 -2
  1743. package/templates/saas/i18n/engine/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.fr.ts +5 -2
  1744. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_ACTION.en.ts +2 -1
  1745. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_ACTION.fr.ts +3 -2
  1746. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_CREATE.en.ts +3 -1
  1747. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_CREATE.fr.ts +3 -1
  1748. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +4 -5
  1749. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +4 -5
  1750. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.ts +5 -5
  1751. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.fr.ts +6 -6
  1752. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.ts +6 -5
  1753. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.fr.ts +6 -5
  1754. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_RECORD_SHARING.en.ts +29 -0
  1755. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_RECORD_SHARING.fr.ts +29 -0
  1756. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_SEARCH.en.ts +0 -1
  1757. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_SEARCH.fr.ts +0 -1
  1758. package/templates/saas/i18n/engine/components/guidance_checklist.en.ts +1 -1
  1759. package/templates/saas/i18n/engine/components/guidance_checklist.fr.ts +1 -1
  1760. package/templates/saas/i18n/engine/components/progression_milestone_tracker.en.ts +1 -1
  1761. package/templates/saas/i18n/engine/components/progression_milestone_tracker.fr.ts +1 -1
  1762. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +334 -0
  1763. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +334 -0
  1764. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +397 -0
  1765. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +397 -0
  1766. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -0
  1767. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +8 -0
  1768. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +55 -0
  1769. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +55 -0
  1770. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +16 -0
  1771. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +16 -0
  1772. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +5 -2
  1773. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +35 -32
  1774. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +20 -4
  1775. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +20 -4
  1776. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +405 -21
  1777. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +405 -21
  1778. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +8 -0
  1779. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -0
  1780. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +104 -0
  1781. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +104 -0
  1782. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +16 -0
  1783. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +16 -0
  1784. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +5 -2
  1785. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +23 -20
  1786. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -0
  1787. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +14 -0
  1788. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +43 -24
  1789. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +43 -24
  1790. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +8 -0
  1791. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +8 -0
  1792. package/templates/saas/i18n/engine/resources/applications.en.ts +336 -0
  1793. package/templates/saas/i18n/engine/resources/applications.fr.ts +336 -0
  1794. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +39 -7
  1795. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +39 -7
  1796. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +486 -0
  1797. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +486 -0
  1798. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +271 -0
  1799. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +271 -0
  1800. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +10 -2
  1801. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +10 -2
  1802. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +140 -11
  1803. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +140 -11
  1804. package/templates/saas/i18n/engine/resources/documentSequenceCounters.en.ts +69 -0
  1805. package/templates/saas/i18n/engine/resources/documentSequenceCounters.fr.ts +69 -0
  1806. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +46 -1
  1807. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +46 -1
  1808. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +16 -0
  1809. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +16 -0
  1810. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +72 -48
  1811. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +72 -48
  1812. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +2 -1
  1813. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +2 -1
  1814. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +26 -3
  1815. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +26 -3
  1816. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +160 -0
  1817. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +160 -0
  1818. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +180 -2
  1819. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +180 -2
  1820. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +24 -0
  1821. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +24 -0
  1822. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +422 -0
  1823. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +422 -0
  1824. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +153 -7
  1825. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +153 -7
  1826. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +2 -1
  1827. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +2 -1
  1828. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +23 -0
  1829. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +23 -0
  1830. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +8 -0
  1831. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +8 -0
  1832. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +8 -0
  1833. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +8 -0
  1834. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +8 -0
  1835. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +8 -0
  1836. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +478 -0
  1837. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +478 -0
  1838. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +16 -0
  1839. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +16 -0
  1840. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +5 -2
  1841. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +36 -33
  1842. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +16 -0
  1843. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +16 -0
  1844. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +153 -0
  1845. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +153 -0
  1846. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +1 -1
  1847. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -9
  1848. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -9
  1849. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +405 -21
  1850. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +405 -21
  1851. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +8 -0
  1852. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -0
  1853. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +104 -0
  1854. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +104 -0
  1855. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +16 -0
  1856. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +16 -0
  1857. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +13 -5
  1858. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +31 -23
  1859. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +5 -2
  1860. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +18 -15
  1861. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +19 -0
  1862. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +19 -0
  1863. package/templates/saas/i18n/engine/resources/{serviceProviderRelationships.en.ts → organizationRelationships.en.ts} +220 -37
  1864. package/templates/saas/i18n/engine/resources/{serviceProviderRelationships.fr.ts → organizationRelationships.fr.ts} +204 -21
  1865. package/templates/saas/i18n/engine/resources/{serviceEngagements.en.ts → organizationRepresentations.en.ts} +97 -84
  1866. package/templates/saas/i18n/engine/resources/{serviceEngagements.fr.ts → organizationRepresentations.fr.ts} +75 -62
  1867. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +8 -0
  1868. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +8 -0
  1869. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +14 -0
  1870. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +14 -0
  1871. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +68 -49
  1872. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +68 -49
  1873. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -2
  1874. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +9 -9
  1875. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +8 -0
  1876. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +8 -0
  1877. package/templates/saas/i18n/engine/resources/organizations.en.ts +71 -11
  1878. package/templates/saas/i18n/engine/resources/organizations.fr.ts +71 -11
  1879. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +42 -0
  1880. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +42 -0
  1881. package/templates/saas/i18n/engine/resources/promotions.en.ts +28 -0
  1882. package/templates/saas/i18n/engine/resources/promotions.fr.ts +28 -0
  1883. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +50 -0
  1884. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +50 -0
  1885. package/templates/saas/i18n/engine/resources/{serviceProviderCapabilityGrants.en.ts → relationshipCapabilityGrants.en.ts} +19 -3
  1886. package/templates/saas/i18n/engine/resources/{serviceProviderCapabilityGrants.fr.ts → relationshipCapabilityGrants.fr.ts} +40 -24
  1887. package/templates/saas/i18n/engine/resources/{serviceProviderActivityFeed.en.ts → relationshipInvitations.en.ts} +137 -55
  1888. package/templates/saas/i18n/engine/resources/{serviceProviderActivityFeed.fr.ts → relationshipInvitations.fr.ts} +137 -55
  1889. package/templates/saas/i18n/engine/resources/{clientMailboxes.en.ts → relationshipMailboxes.en.ts} +35 -35
  1890. package/templates/saas/i18n/engine/resources/{clientMailboxes.fr.ts → relationshipMailboxes.fr.ts} +39 -39
  1891. package/templates/saas/i18n/engine/resources/{serviceEngagementAssignments.en.ts → representativeAssignments.en.ts} +43 -6
  1892. package/templates/saas/i18n/engine/resources/{serviceEngagementAssignments.fr.ts → representativeAssignments.fr.ts} +43 -6
  1893. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +16 -0
  1894. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +16 -0
  1895. package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +16 -0
  1896. package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +16 -0
  1897. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +405 -21
  1898. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +405 -21
  1899. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +8 -0
  1900. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -0
  1901. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +19 -0
  1902. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +19 -0
  1903. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -0
  1904. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -0
  1905. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -0
  1906. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -0
  1907. package/templates/saas/i18n/engine/resources/user_self.en.ts +112 -38
  1908. package/templates/saas/i18n/engine/resources/user_self.fr.ts +125 -51
  1909. package/templates/saas/i18n/engine/resources/users.en.ts +15 -15
  1910. package/templates/saas/i18n/engine/resources/users.fr.ts +11 -11
  1911. package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +27 -11
  1912. package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +27 -3
  1913. package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +134 -0
  1914. package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +134 -0
  1915. package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.en.ts +134 -0
  1916. package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +134 -0
  1917. package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +134 -0
  1918. package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +134 -0
  1919. package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +27 -11
  1920. package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +27 -3
  1921. package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +27 -11
  1922. package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +27 -3
  1923. package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +8 -0
  1924. package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +8 -0
  1925. package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +24 -0
  1926. package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +24 -0
  1927. package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +209 -0
  1928. package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +209 -0
  1929. package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +702 -0
  1930. package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +702 -0
  1931. package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +120 -0
  1932. package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +120 -0
  1933. package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +174 -0
  1934. package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +174 -0
  1935. package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +32 -0
  1936. package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +32 -0
  1937. package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +64 -0
  1938. package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +64 -0
  1939. package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +183 -0
  1940. package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +183 -0
  1941. package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +254 -0
  1942. package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +254 -0
  1943. package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +32 -0
  1944. package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +32 -0
  1945. package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +40 -0
  1946. package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +40 -0
  1947. package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +58 -34
  1948. package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +58 -26
  1949. package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +40 -0
  1950. package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +40 -0
  1951. package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +96 -0
  1952. package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +96 -0
  1953. package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +736 -0
  1954. package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +736 -0
  1955. package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +40 -0
  1956. package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +40 -0
  1957. package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +232 -0
  1958. package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +232 -0
  1959. package/templates/saas/scenarios/add-3d-layout/scenario.json +2 -2
  1960. package/templates/saas/scenarios/add-custom-operation/files/backend-api/src/modules/__moduleDir__/resources/__resourceDir__/__resourceDir__.__operationIdentifier__.default.operation.ts.hbs +1 -1
  1961. package/templates/saas/scenarios/add-custom-operation/scenario.json +1 -0
  1962. package/templates/saas/scenarios/add-environment/files/infrastructure/__envName__/wildo.infra.remote.config.ts.hbs +4 -4
  1963. package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +1 -1
  1964. package/templates/saas/scenarios/add-file-picker-provider/scenario.json +2 -0
  1965. package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +16 -9
  1966. package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +5 -2
  1967. package/templates/saas/scenarios/add-locale/scenario.json +5 -3
  1968. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +5 -2
  1969. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.bridge.tsx.hbs +2 -0
  1970. package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +16 -44
  1971. package/templates/saas/scenarios/add-marketing-page/scenario.json +72 -18
  1972. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +4 -4
  1973. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/application-initialization.ts.hbs +6 -1
  1974. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/wildo.minion.config.ts.hbs +4 -4
  1975. package/templates/saas/scenarios/add-minion/scenario.json +3 -3
  1976. package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-shell.module.frontend.ts.hbs +2 -0
  1977. package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/index.ts.hbs +2 -2
  1978. package/templates/saas/scenarios/add-module/scenario.json +2 -0
  1979. package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +1 -1
  1980. package/templates/saas/scenarios/add-resource/files/specifications/src/modules/__moduleId__/resources/__resourceDir__.resource.specification.ts.hbs +7 -7
  1981. package/templates/saas/scenarios/add-resource/scenario.json +2 -1
  1982. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +10 -4
  1983. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +4 -3
  1984. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/substitute-api-origin.mjs +64 -0
  1985. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +11 -1
  1986. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +2 -2
  1987. package/templates/saas/scenarios/add-technical-doc/scenario.json +2 -2
  1988. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +49 -6
  1989. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  1990. package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +8 -6
  1991. package/templates/saas/scenarios/add-website/files/website/src/brand-theme.ts +66 -0
  1992. package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +25 -20
  1993. package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +15 -100
  1994. package/templates/saas/scenarios/add-website/files/website/src/components/index.ts +9 -7
  1995. package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +15 -9
  1996. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +5 -2
  1997. package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.bridge.tsx +3 -1
  1998. package/templates/saas/scenarios/add-website/files/website/src/sections/index.ts +5 -9
  1999. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +22 -58
  2000. package/templates/saas/scenarios/add-website/files/website/src/site-menu.ts +47 -0
  2001. package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +46 -411
  2002. package/templates/saas/scenarios/add-website/files/website/src/website-root.config.ts.hbs +34 -45
  2003. package/templates/saas/scenarios/add-website/files/website/wildo.website.config.ts.hbs +5 -4
  2004. package/templates/saas/scenarios/add-website/scenario.json +1 -1
  2005. package/templates/saas/scenarios/add-website-section/scenario.json +17 -7
  2006. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +2 -2
  2007. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/wildo.worker.config.ts.hbs +3 -3
  2008. package/templates/saas/scenarios/add-worker-node/scenario.json +1 -1
  2009. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +1 -1
  2010. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +9 -2
  2011. package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/wildo.worker.config.ts.hbs +3 -3
  2012. package/templates/saas/skeleton/CLAUDE.md.hbs +8 -0
  2013. package/templates/saas/skeleton/backend-api/Dockerfile +2 -1
  2014. package/templates/saas/skeleton/backend-api/src/bootstrap-config.ts +13 -4
  2015. package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +8 -0
  2016. package/templates/saas/skeleton/backend-api/src/engine/email/index.ts +1 -1
  2017. package/templates/saas/skeleton/backend-api/src/engine/index.ts +2 -1
  2018. package/templates/saas/skeleton/backend-api/src/modules-registry.backend.ts.hbs +5 -0
  2019. package/templates/saas/skeleton/frontend/src/config/app-shell.config.ts +2 -13
  2020. package/templates/saas/skeleton/frontend/src/config/design-system.config.ts +35 -125
  2021. package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +14 -12
  2022. package/templates/saas/skeleton/frontend/src/index.css.hbs +145 -130
  2023. package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +2 -0
  2024. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +35 -0
  2025. package/templates/saas/skeleton/gitignore +1 -0
  2026. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +53 -20
  2027. package/wildo-framework.info.json +1 -1
  2028. package/dist/src/services/registry/registry-config-resolver.service.d.ts +0 -62
  2029. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +0 -1
  2030. package/dist/src/services/registry/registry-config-resolver.service.js +0 -148
  2031. package/dist/src/services/registry/registry-config-resolver.service.js.map +0 -1
  2032. package/dist/tsconfig.build.tsbuildinfo +0 -1
  2033. package/dist/tsconfig.tsbuildinfo +0 -1
  2034. package/templates/saas/i18n/email/system/organization-invitation/labels.en.ts +0 -15
  2035. package/templates/saas/i18n/email/system/organization-invitation/labels.fr.ts +0 -21
  2036. package/templates/saas/i18n/email/system/organization-invitation/template.tsx +0 -66
  2037. package/templates/saas/i18n/email/system/payment-failed/labels.en.ts +0 -16
  2038. package/templates/saas/i18n/email/system/payment-failed/labels.fr.ts +0 -21
  2039. package/templates/saas/i18n/email/system/payment-failed/template.tsx +0 -59
  2040. package/templates/saas/i18n/email/system/subscription-cancelled/labels.en.ts +0 -15
  2041. package/templates/saas/i18n/email/system/subscription-cancelled/labels.fr.ts +0 -20
  2042. package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +0 -56
  2043. package/templates/saas/i18n/email/system/subscription-confirmation/labels.en.ts +0 -14
  2044. package/templates/saas/i18n/email/system/subscription-confirmation/labels.fr.ts +0 -21
  2045. package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +0 -60
  2046. package/templates/saas/i18n/engine/resources/applicationScimTokens.en.ts +0 -240
  2047. package/templates/saas/i18n/engine/resources/applicationScimTokens.fr.ts +0 -345
  2048. package/templates/saas/i18n/engine/resources/serviceProviderActivityFeedSettings.en.ts +0 -209
  2049. package/templates/saas/i18n/engine/resources/serviceProviderActivityFeedSettings.fr.ts +0 -209
  2050. package/templates/saas/i18n/engine/resources/wildoApplication.en.ts +0 -590
  2051. package/templates/saas/i18n/engine/resources/wildoApplication.fr.ts +0 -574
  2052. package/templates/saas/i18n/engine/resources/wildoApplicationVersions.en.ts +0 -293
  2053. package/templates/saas/i18n/engine/resources/wildoApplicationVersions.fr.ts +0 -293
@@ -7,10 +7,9 @@
7
7
  * adapter. Phase 1 will add credentials, registry-config readers,
8
8
  * and the proper post-mutation provider-sync runner.
9
9
  */
10
- import { type RegistryConfig, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';
10
+ import { type RegistryConfig, type RegistryModulesLockEntry, type ResolvedRegistry } from '@wildo-ai/platform-config-lib';
11
11
  import { type RegistryClientLogger } from '@wildo-ai/wildo-module-client';
12
12
  import type { CommandContext } from '../../kernel/types';
13
- import { type ResolvedRegistry } from './registry-config-resolver.service';
14
13
  /**
15
14
  * Read the SaaS app declaration root from the already-injected
16
15
  * `CommandContext`. Per Review-pass-4 / HIGH-CC, the canonical
@@ -134,4 +133,22 @@ export declare function withRegistryWorkspaceMutationLock<T>(saasRoot: string, w
134
133
  * `expected: undefined` asserts the module is still NOT installed (the `add` case).
135
134
  */
136
135
  export declare function assertModuleEntryUnchangedUnderLock(saasRoot: string, moduleId: string, expected: RegistryModulesLockEntry | undefined): Promise<void>;
136
+ /** A registry module spec, parsed: the registry domain, the module id inside it, and the range. */
137
+ export interface ParsedModuleSpec {
138
+ domain: string;
139
+ moduleId: string;
140
+ range: string;
141
+ }
142
+ /**
143
+ * Parse `<domain>/<moduleId>[@<range>]`. The moduleId is itself
144
+ * `<scope>/<name>` (e.g. `acme/billing`), so the registry domain is
145
+ * always the first segment BEFORE the second `/` of the spec — i.e.
146
+ * the spec parses as: `<domain>/<scope>/<name>[@<range>]`.
147
+ *
148
+ * Range defaults to `latest` when omitted. The `@` separator is
149
+ * detected only when followed by a semver-shaped suffix
150
+ * (`RANGE_SUFFIX_RE`), so npm-scoped ids like `wildo/@scope/name`
151
+ * (no range) are NOT mis-parsed as having a range.
152
+ */
153
+ export declare function parseModuleSpec(spec: string): ParsedModuleSpec;
137
154
  //# sourceMappingURL=registry-command.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry-command.utils.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/registry-command.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAI9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAA2B,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAqD,KAAK,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI9H;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAazE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,oBAAoB,GACzB,OAAO,CAAC,cAAc,CAAC,CAkCzB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAS9E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,2BAA2B,CAAC,EAAE,OAAO,CAAA;CAAE,GAChF,OAAO,CAAC,gBAAgB,CAAC,CAa3B;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAMvC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,oBAAoB,CAO1E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iCAAiC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAqBrH;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mCAAmC,CACvD,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,wBAAwB,GAAG,SAAS,GAC7C,OAAO,CAAC,IAAI,CAAC,CAQf"}
1
+ {"version":3,"file":"registry-command.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/registry-command.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EAItB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAA2B,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,EAA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B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAUD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAmB9D"}
@@ -9,9 +9,8 @@
9
9
  */
10
10
  import { promises as fs } from 'node:fs';
11
11
  import * as path from 'node:path';
12
- import { ConfigArtifactsZone, loadConfig, registryProvenanceOf, getWorkspaceMutationLockPath, withDedicatedFileLock, } from '@wildo-ai/platform-config-lib';
12
+ import { assertRegistryTransportIsSafe, ConfigArtifactsZone, loadConfig, resolveRegistryUrl, registryProvenanceOf, getWorkspaceMutationLockPath, withDedicatedFileLock, } from '@wildo-ai/platform-config-lib';
13
13
  import { RegistryLockfileService } from '@wildo-ai/wildo-module-client';
14
- import { assertRegistryTransportIsSafe, resolveRegistryUrl } from './registry-config-resolver.service.js';
15
14
  import { SaasRootRequiredError } from './saas-root-required.error.js';
16
15
  import { ErrorUtils } from '../../infrastructure/errors/error.utils.js';
17
16
  /**
@@ -234,4 +233,38 @@ export async function assertModuleEntryUnchangedUnderLock(saasRoot, moduleId, ex
234
233
  'command in this checkout got there first). Nothing was written; re-run the command.');
235
234
  }
236
235
  }
236
+ /**
237
+ * Range-suffix shape: a `@` followed by something that looks like a
238
+ * semver / npm-range token (digits, `^`, `~`, `*`, `x`, `>=`, `latest`,
239
+ * etc.). Used to disambiguate a real `@<range>` separator from an `@`
240
+ * inside an npm-style scope (e.g. `wildo/@scope/name`).
241
+ */
242
+ const RANGE_SUFFIX_RE = /@([\^~]?\d|>=?|<=?|\*|x|latest|next|canary|beta|alpha|rc)/i;
243
+ /**
244
+ * Parse `<domain>/<moduleId>[@<range>]`. The moduleId is itself
245
+ * `<scope>/<name>` (e.g. `acme/billing`), so the registry domain is
246
+ * always the first segment BEFORE the second `/` of the spec — i.e.
247
+ * the spec parses as: `<domain>/<scope>/<name>[@<range>]`.
248
+ *
249
+ * Range defaults to `latest` when omitted. The `@` separator is
250
+ * detected only when followed by a semver-shaped suffix
251
+ * (`RANGE_SUFFIX_RE`), so npm-scoped ids like `wildo/@scope/name`
252
+ * (no range) are NOT mis-parsed as having a range.
253
+ */
254
+ export function parseModuleSpec(spec) {
255
+ const rangeMatch = spec.match(RANGE_SUFFIX_RE);
256
+ const hasRange = rangeMatch !== null && rangeMatch.index !== undefined && rangeMatch.index > 0;
257
+ const head = hasRange ? spec.slice(0, rangeMatch.index) : spec;
258
+ const range = hasRange ? spec.slice(rangeMatch.index + 1) : 'latest';
259
+ const slashIdx = head.indexOf('/');
260
+ if (slashIdx <= 0 || slashIdx === head.length - 1) {
261
+ throw new Error(`Invalid module spec "${spec}". Expected "<domain>/<moduleId>[@<range>]" (e.g. "wildo/acme/billing@^1.2.0").`);
262
+ }
263
+ const domain = head.slice(0, slashIdx);
264
+ const moduleId = head.slice(slashIdx + 1);
265
+ if (!moduleId.includes('/')) {
266
+ throw new Error(`Invalid module spec "${spec}". moduleId must be "<scope>/<name>" (e.g. "acme/billing").`);
267
+ }
268
+ return { domain, moduleId, range };
269
+ }
237
270
  //# sourceMappingURL=registry-command.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry-command.utils.js","sourceRoot":"","sources":["../../../../src/services/registry/registry-command.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EAIpB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAA6B,MAAM,+BAA+B,CAAC;AAEnG,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAyB,MAAM,oCAAoC,CAAC;AAC9H,OAAO,EAAE,qBAAqB,EAAE,MAAM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UAAU,EAAE,CAAC;QACtB,CAAC,EACD,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,CAC5B,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,QAAQ,IAAK,KAA2B,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAClE,MAAM,IAAI,KAAK,CACb,wCAAwC,QAAQ,qDAAqD;gBACnG,kHAAkH,CACrH,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACvD,QAAgB,EAChB,QAAgB,EAChB,QAA8C;IAE9C,MAAM,OAAO,GAAG,CAAC,MAAM,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACnF,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,IAAI,CAAC,EAAE,CAAC;QACzE,MAAM,IAAI,KAAK,CACb,IAAI,QAAQ,qFAAqF;YAC/F,qFAAqF,CACxF,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["/**\n * Shared helpers used by every `wildo-cli/src/commands/registry/*`\n * command. Mirrors the local-utils pattern from\n * `wildo-cli/src/commands/market/market-command.utils.ts`.\n *\n * Phase 0.5 only ships saas-root resolution + a thin logger\n * adapter. Phase 1 will add credentials, registry-config readers,\n * and the proper post-mutation provider-sync runner.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport {\n ConfigArtifactsZone,\n loadConfig,\n registryProvenanceOf,\n type RegistryConfig,\n type RegistryModulesLockEntry,\n type WildoSaasConfig,\n getWorkspaceMutationLockPath,\n withDedicatedFileLock,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryLockfileService, type RegistryClientLogger } from '@wildo-ai/wildo-module-client';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { assertRegistryTransportIsSafe, resolveRegistryUrl, type ResolvedRegistry } from './registry-config-resolver.service';\nimport { SaasRootRequiredError } from './saas-root-required.error';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\n/**\n * Read the SaaS app declaration root from the already-injected\n * `CommandContext`. Per Review-pass-4 / HIGH-CC, the canonical\n * path is `ctx.cliContext.resolvedHomes.app.declarationRoot`; the\n * `EnvironmentRegistry.getSaasRoot()` shortcut would form a\n * cross-package cycle with `wildo-module-client` and is forbidden.\n *\n * Throws `SaasRootRequiredError` when the cwd is not inside an\n * app workspace. The `CommandCategory.Registry` gate already\n * rejects pre-execution when `scope < SAAS_APP`; this guard is\n * defensive against future regressions where a registry command\n * is reached without that gate (e.g. via a non-discovery test\n * harness).\n */\nexport function requireSaasRoot(ctx: CommandContext, verb: string): string {\n const home = ctx.cliContext.resolvedHomes.app;\n if (!home || !home.isInAppWorkspace || !home.declarationRoot) {\n throw new SaasRootRequiredError(verb);\n }\n // Defensive: every downstream service (lockfile IO, smoke sandbox,\n // staging folders) joins against this path. A relative\n // `declarationRoot` would land writes under `process.cwd()` —\n // a silent corruption mode if `resolveHomes` ever regresses.\n if (!path.isAbsolute(home.declarationRoot)) {\n throw new SaasRootRequiredError(verb);\n }\n return home.declarationRoot;\n}\n\n/**\n * Lazily load the SaaS app's `wildo.saas.config.ts` and return the\n * authored `moduleRegistries` array (or an empty array when the\n * config doesn't author one).\n *\n * Phase-4 wiring requirement (H7 from third-pass review): the\n * canonical `resolveRegistryUrl({ flag, moduleRegistries })` always\n * received `moduleRegistries: undefined`, so registry IDs authored in\n * `wildo.saas.config.ts` were silently unreachable from the CLI.\n * Every registry command that takes `--registry <id|url|alias>`\n * should call this helper and forward the result to\n * `resolveRegistryUrl({ flag, moduleRegistries })`.\n *\n * Failure mode: when the SaaS config file is missing/malformed, the\n * helper returns `[]` and logs a warning. The caller still falls\n * back to the env-policy default — a config-load error must NOT\n * block `wildo registry login --registry public` in a fresh repo.\n */\nexport async function loadModuleRegistries(\n saasRoot: string,\n log?: RegistryClientLogger,\n): Promise<RegistryConfig> {\n const configPath = path.resolve(saasRoot, 'wildo.saas.config.ts');\n // M7 (4th-pass review): the no-config case (fresh repo, or `info`/\n // `search`/`login` from a non-app dir) is the COMMON path — silently\n // return `[]` so we don't print a stderr warning every time. Only\n // surface a warning when the file exists but loading fails (real\n // problem the operator should see).\n try {\n await fs.stat(configPath);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') {\n return [];\n }\n // stat failed for some non-ENOENT reason (perms, IO error) — fall\n // through to loadConfig and let it produce a more specific error.\n }\n try {\n const cfg = await loadConfig<WildoSaasConfig>(configPath, {\n artifactLocation: {\n zone: ConfigArtifactsZone.SAAS,\n ownerRoot: saasRoot,\n },\n });\n // The schema permits `moduleRegistries?: RegistryConfig` —\n // omitted = no app-authored registries; the env-policy default\n // applies.\n return cfg.moduleRegistries ?? [];\n } catch (err) {\n log?.warn?.(\n `[registry] Failed to parse wildo.saas.config.ts at ${configPath} (${ErrorUtils.extractErrorMessage(err)}). ` +\n 'Falling back to alias/URL/env-policy resolution.',\n );\n return [];\n }\n}\n\n/**\n * Read the SaaS app declaration root WITHOUT throwing when the cwd\n * isn't an app workspace. Used by `login`/`logout`/`whoami`/`info`/\n * `search`/`ping` — the kernel gate exempts them from the SAAS_APP\n * scope requirement, so they may legitimately run outside an app.\n */\nexport function getSaasRootIfAvailable(ctx: CommandContext): string | undefined {\n const home = ctx.cliContext.resolvedHomes.app;\n if (!home || !home.isInAppWorkspace || !home.declarationRoot) {\n return undefined;\n }\n if (!path.isAbsolute(home.declarationRoot)) {\n return undefined;\n }\n return home.declarationRoot;\n}\n\n/**\n * Composite helper: load `moduleRegistries` from the SaaS app config\n * (when reachable) and forward the result to `resolveRegistryUrl`.\n * This is the canonical entry point every registry command should\n * call; passing `flag` alone (without `moduleRegistries`) was the\n * H7 finding from the third-pass review — it left registry IDs\n * authored in `wildo.saas.config.ts > moduleRegistries` silently\n * unreachable from the CLI.\n *\n * `saasRoot` is optional because `login`/`logout`/`whoami` may run\n * without a SaaS workspace (the auth verbs declare\n * `minimumScope: WorkspaceScope.UNINITIALIZED` per 5th-pass H1).\n * When omitted, this helper short-circuits the `moduleRegistries`\n * lookup entirely — no `fs.stat` of `wildo.saas.config.ts`, no\n * warning logs from `loadModuleRegistries`. The resolver still\n * works via alias / URL / env-policy fallback.\n *\n * 6th-pass K-L1 — call-site contract: pass `saasRoot: getSaasRootIfAvailable(ctx)`\n * from auth/read commands so the short-circuit fires when out of an\n * app workspace, and `saasRoot: requireSaasRoot(ctx, '<verb>')` from\n * mutation commands so the lookup is mandatory.\n */\nexport async function resolveRegistryUrlForCommand(\n ctx: CommandContext,\n args: { flag?: string; saasRoot?: string; forceFrameworkDeveloperMode?: boolean },\n): Promise<ResolvedRegistry> {\n let moduleRegistries: RegistryConfig | undefined = undefined;\n if (args.saasRoot) {\n // Only stat + load the SaaS config when a workspace is actually\n // available — `getSaasRootIfAvailable` returns `undefined`\n // outside an app dir, in which case we skip the FS read.\n moduleRegistries = await loadModuleRegistries(args.saasRoot, asRegistryLogger(ctx));\n }\n return resolveRegistryUrl({\n flag: args.flag,\n moduleRegistries,\n forceFrameworkDeveloperMode: args.forceFrameworkDeveloperMode,\n });\n}\n\n/**\n * The registry an installed module was fetched from, as its lockfile entry records it — put through the\n * same transport check `resolveRegistryUrl` applies (#1764). `update` without `--registry` and\n * `repair-lockfile` talk to the RECORDED url rather than resolving one, and until the review of #1764\n * both skipped the check: a lockfile naming plain `http://` (or a key stored for one before #1764) would\n * have sent that key in clear. Every registry call now goes through a resolver or through this.\n */\nexport async function resolveLockedRegistry(\n ctx: CommandContext,\n saasRoot: string,\n entry: RegistryModulesLockEntry,\n): Promise<{ url: string; id?: string }> {\n // A checkout-distributed entry (#2015) has no registry: `registryProvenanceOf` refuses it by name\n // rather than handing a caller an `undefined` URL to dial.\n const { registryUrl, registryId } = registryProvenanceOf(entry);\n assertRegistryTransportIsSafe(registryUrl, await loadModuleRegistries(saasRoot, asRegistryLogger(ctx)));\n return { url: registryUrl, id: registryId };\n}\n\n/**\n * Adapt the kernel's chalk-aware `Logger` to the simpler\n * `RegistryClientLogger` interface consumed by `wildo-module-client`.\n * The registry client deliberately avoids depending on `chalk` so it\n * stays usable in non-CLI hosts (companion, server) without dragging\n * the chalk surface into them.\n */\nexport function asRegistryLogger(ctx: CommandContext): RegistryClientLogger {\n return {\n info: ctx.log.info.bind(ctx.log),\n success: ctx.log.success.bind(ctx.log),\n warn: ctx.log.warn.bind(ctx.log),\n error: ctx.log.error.bind(ctx.log),\n };\n}\n\n/**\n * Run a registry command's WRITE PHASE under the application's workspace-mutation lock.\n *\n * `add` / `update` / `remove` / `repair-lockfile --fix` write application source. The companion's\n * coding-agent dispatch holds this lock for a whole agent run, and `wildo config sync` takes it around\n * its writes — so without it a registry install could land in the middle of an agent run, mixing its\n * files into the change set the run is attributed from. Until 2026-09-25 no registry command took it.\n *\n * Two rules the callers follow:\n *\n * - **Fail fast, never queue** — same policy as `config sync`: a dispatch run can hold the lock for\n * many minutes, and a silent wait reads as a hang.\n * - **Release BEFORE provider sync.** The post-mutation provider sync spawns `wildo config sync`,\n * which takes this same lock; holding it across that call would make the child refuse itself.\n *\n * Only a contention on THIS lock is reported as \"the workspace is busy\". The lockfile service takes a\n * separate file lock inside the write phase, and its `ELOCKED` is a different fact — so the report is\n * gated on whether this lock was ever acquired.\n */\nexport async function withRegistryWorkspaceMutationLock<T>(saasRoot: string, writePhase: () => Promise<T>): Promise<T> {\n const lockPath = getWorkspaceMutationLockPath(saasRoot);\n let acquired = false;\n try {\n return await withDedicatedFileLock(\n lockPath,\n async () => {\n acquired = true;\n return writePhase();\n },\n { retries: { retries: 2 } },\n );\n } catch (error) {\n if (!acquired && (error as { code?: string })?.code === 'ELOCKED') {\n throw new Error(\n `The workspace-mutation lock is held (${lockPath}) — an active coding-agent dispatch run or another ` +\n 'worktree-writing command owns the application worktree right now. Nothing was written; retry after it completes.',\n );\n }\n throw error;\n }\n}\n\n/**\n * Inside the workspace-mutation lock, confirm the module's lockfile entry is still the one the\n * command decided from BEFORE taking the lock — and refuse otherwise.\n *\n * The lock makes the write phase exclusive, but each command reads `sections.modules` first (to\n * decide whether it is installed, which files to shrink, whether the pin changed) and only then\n * takes the lock, after a network round trip. Two registry commands in one checkout can therefore\n * interleave: a second `update` would shrink against the first one's stale file set and orphan\n * files, a `remove` could be followed by an `update` re-installing the module, two `add`s could both\n * pass the \"already installed\" check. Re-reading under the lock and comparing turns each of those\n * into a clean refusal — nothing is written — and the operator re-runs the command against the\n * current state.\n *\n * `expected: undefined` asserts the module is still NOT installed (the `add` case).\n */\nexport async function assertModuleEntryUnchangedUnderLock(\n saasRoot: string,\n moduleId: string,\n expected: RegistryModulesLockEntry | undefined,\n): Promise<void> {\n const current = (await RegistryLockfileService.read(saasRoot)).installed[moduleId];\n if (JSON.stringify(current ?? null) !== JSON.stringify(expected ?? null)) {\n throw new Error(\n `\"${moduleId}\" changed in wildo-saas.lock.json while this command was running (another registry ` +\n 'command in this checkout got there first). Nothing was written; re-run the command.',\n );\n }\n}\n\n"]}
1
+ {"version":3,"file":"registry-command.utils.js","sourceRoot":"","sources":["../../../../../../src/services/registry/registry-command.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EAKpB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAA6B,MAAM,+BAA+B,CAAC;AAEnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B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I,CAAC;IAChE,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAW,CAAC,KAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,QAAQ,IAAI,CAAC,IAAI,QAAQ,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CACb,wBAAwB,IAAI,iFAAiF,CAC9G,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;IAC1C,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,wBAAwB,IAAI,6DAA6D,CAC1F,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACrC,CAAC","sourcesContent":["/**\n * Shared helpers used by every `wildo-cli/src/commands/registry/*`\n * command. Mirrors the local-utils pattern from\n * `wildo-cli/src/commands/market/market-command.utils.ts`.\n *\n * Phase 0.5 only ships saas-root resolution + a thin logger\n * adapter. Phase 1 will add credentials, registry-config readers,\n * and the proper post-mutation provider-sync runner.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport {\n assertRegistryTransportIsSafe,\n ConfigArtifactsZone,\n loadConfig,\n resolveRegistryUrl,\n registryProvenanceOf,\n type RegistryConfig,\n type RegistryModulesLockEntry,\n type ResolvedRegistry,\n type WildoSaasConfig,\n getWorkspaceMutationLockPath,\n withDedicatedFileLock,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryLockfileService, type RegistryClientLogger } from '@wildo-ai/wildo-module-client';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { SaasRootRequiredError } from './saas-root-required.error';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\n/**\n * Read the SaaS app declaration root from the already-injected\n * `CommandContext`. Per Review-pass-4 / HIGH-CC, the canonical\n * path is `ctx.cliContext.resolvedHomes.app.declarationRoot`; the\n * `EnvironmentRegistry.getSaasRoot()` shortcut would form a\n * cross-package cycle with `wildo-module-client` and is forbidden.\n *\n * Throws `SaasRootRequiredError` when the cwd is not inside an\n * app workspace. The `CommandCategory.Registry` gate already\n * rejects pre-execution when `scope < SAAS_APP`; this guard is\n * defensive against future regressions where a registry command\n * is reached without that gate (e.g. via a non-discovery test\n * harness).\n */\nexport function requireSaasRoot(ctx: CommandContext, verb: string): string {\n const home = ctx.cliContext.resolvedHomes.app;\n if (!home || !home.isInAppWorkspace || !home.declarationRoot) {\n throw new SaasRootRequiredError(verb);\n }\n // Defensive: every downstream service (lockfile IO, smoke sandbox,\n // staging folders) joins against this path. A relative\n // `declarationRoot` would land writes under `process.cwd()` —\n // a silent corruption mode if `resolveHomes` ever regresses.\n if (!path.isAbsolute(home.declarationRoot)) {\n throw new SaasRootRequiredError(verb);\n }\n return home.declarationRoot;\n}\n\n/**\n * Lazily load the SaaS app's `wildo.saas.config.ts` and return the\n * authored `moduleRegistries` array (or an empty array when the\n * config doesn't author one).\n *\n * Phase-4 wiring requirement (H7 from third-pass review): the\n * canonical `resolveRegistryUrl({ flag, moduleRegistries })` always\n * received `moduleRegistries: undefined`, so registry IDs authored in\n * `wildo.saas.config.ts` were silently unreachable from the CLI.\n * Every registry command that takes `--registry <id|url|alias>`\n * should call this helper and forward the result to\n * `resolveRegistryUrl({ flag, moduleRegistries })`.\n *\n * Failure mode: when the SaaS config file is missing/malformed, the\n * helper returns `[]` and logs a warning. The caller still falls\n * back to the env-policy default — a config-load error must NOT\n * block `wildo registry login --registry public` in a fresh repo.\n */\nexport async function loadModuleRegistries(\n saasRoot: string,\n log?: RegistryClientLogger,\n): Promise<RegistryConfig> {\n const configPath = path.resolve(saasRoot, 'wildo.saas.config.ts');\n // M7 (4th-pass review): the no-config case (fresh repo, or `info`/\n // `search`/`login` from a non-app dir) is the COMMON path — silently\n // return `[]` so we don't print a stderr warning every time. Only\n // surface a warning when the file exists but loading fails (real\n // problem the operator should see).\n try {\n await fs.stat(configPath);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') {\n return [];\n }\n // stat failed for some non-ENOENT reason (perms, IO error) — fall\n // through to loadConfig and let it produce a more specific error.\n }\n try {\n const cfg = await loadConfig<WildoSaasConfig>(configPath, {\n artifactLocation: {\n zone: ConfigArtifactsZone.SAAS,\n ownerRoot: saasRoot,\n },\n });\n // The schema permits `moduleRegistries?: RegistryConfig` —\n // omitted = no app-authored registries; the env-policy default\n // applies.\n return cfg.moduleRegistries ?? [];\n } catch (err) {\n log?.warn?.(\n `[registry] Failed to parse wildo.saas.config.ts at ${configPath} (${ErrorUtils.extractErrorMessage(err)}). ` +\n 'Falling back to alias/URL/env-policy resolution.',\n );\n return [];\n }\n}\n\n/**\n * Read the SaaS app declaration root WITHOUT throwing when the cwd\n * isn't an app workspace. Used by `login`/`logout`/`whoami`/`info`/\n * `search`/`ping` — the kernel gate exempts them from the SAAS_APP\n * scope requirement, so they may legitimately run outside an app.\n */\nexport function getSaasRootIfAvailable(ctx: CommandContext): string | undefined {\n const home = ctx.cliContext.resolvedHomes.app;\n if (!home || !home.isInAppWorkspace || !home.declarationRoot) {\n return undefined;\n }\n if (!path.isAbsolute(home.declarationRoot)) {\n return undefined;\n }\n return home.declarationRoot;\n}\n\n/**\n * Composite helper: load `moduleRegistries` from the SaaS app config\n * (when reachable) and forward the result to `resolveRegistryUrl`.\n * This is the canonical entry point every registry command should\n * call; passing `flag` alone (without `moduleRegistries`) was the\n * H7 finding from the third-pass review — it left registry IDs\n * authored in `wildo.saas.config.ts > moduleRegistries` silently\n * unreachable from the CLI.\n *\n * `saasRoot` is optional because `login`/`logout`/`whoami` may run\n * without a SaaS workspace (the auth verbs declare\n * `minimumScope: WorkspaceScope.UNINITIALIZED` per 5th-pass H1).\n * When omitted, this helper short-circuits the `moduleRegistries`\n * lookup entirely — no `fs.stat` of `wildo.saas.config.ts`, no\n * warning logs from `loadModuleRegistries`. The resolver still\n * works via alias / URL / env-policy fallback.\n *\n * 6th-pass K-L1 — call-site contract: pass `saasRoot: getSaasRootIfAvailable(ctx)`\n * from auth/read commands so the short-circuit fires when out of an\n * app workspace, and `saasRoot: requireSaasRoot(ctx, '<verb>')` from\n * mutation commands so the lookup is mandatory.\n */\nexport async function resolveRegistryUrlForCommand(\n ctx: CommandContext,\n args: { flag?: string; saasRoot?: string; forceFrameworkDeveloperMode?: boolean },\n): Promise<ResolvedRegistry> {\n let moduleRegistries: RegistryConfig | undefined = undefined;\n if (args.saasRoot) {\n // Only stat + load the SaaS config when a workspace is actually\n // available — `getSaasRootIfAvailable` returns `undefined`\n // outside an app dir, in which case we skip the FS read.\n moduleRegistries = await loadModuleRegistries(args.saasRoot, asRegistryLogger(ctx));\n }\n return resolveRegistryUrl({\n flag: args.flag,\n moduleRegistries,\n forceFrameworkDeveloperMode: args.forceFrameworkDeveloperMode,\n });\n}\n\n/**\n * The registry an installed module was fetched from, as its lockfile entry records it — put through the\n * same transport check `resolveRegistryUrl` applies (#1764). `update` without `--registry` and\n * `repair-lockfile` talk to the RECORDED url rather than resolving one, and until the review of #1764\n * both skipped the check: a lockfile naming plain `http://` (or a key stored for one before #1764) would\n * have sent that key in clear. Every registry call now goes through a resolver or through this.\n */\nexport async function resolveLockedRegistry(\n ctx: CommandContext,\n saasRoot: string,\n entry: RegistryModulesLockEntry,\n): Promise<{ url: string; id?: string }> {\n // A checkout-distributed entry (#2015) has no registry: `registryProvenanceOf` refuses it by name\n // rather than handing a caller an `undefined` URL to dial.\n const { registryUrl, registryId } = registryProvenanceOf(entry);\n assertRegistryTransportIsSafe(registryUrl, await loadModuleRegistries(saasRoot, asRegistryLogger(ctx)));\n return { url: registryUrl, id: registryId };\n}\n\n/**\n * Adapt the kernel's chalk-aware `Logger` to the simpler\n * `RegistryClientLogger` interface consumed by `wildo-module-client`.\n * The registry client deliberately avoids depending on `chalk` so it\n * stays usable in non-CLI hosts (companion, server) without dragging\n * the chalk surface into them.\n */\nexport function asRegistryLogger(ctx: CommandContext): RegistryClientLogger {\n return {\n info: ctx.log.info.bind(ctx.log),\n success: ctx.log.success.bind(ctx.log),\n warn: ctx.log.warn.bind(ctx.log),\n error: ctx.log.error.bind(ctx.log),\n };\n}\n\n/**\n * Run a registry command's WRITE PHASE under the application's workspace-mutation lock.\n *\n * `add` / `update` / `remove` / `repair-lockfile --fix` write application source. The companion's\n * coding-agent dispatch holds this lock for a whole agent run, and `wildo config sync` takes it around\n * its writes — so without it a registry install could land in the middle of an agent run, mixing its\n * files into the change set the run is attributed from. Until 2026-09-25 no registry command took it.\n *\n * Two rules the callers follow:\n *\n * - **Fail fast, never queue** — same policy as `config sync`: a dispatch run can hold the lock for\n * many minutes, and a silent wait reads as a hang.\n * - **Release BEFORE provider sync.** The post-mutation provider sync spawns `wildo config sync`,\n * which takes this same lock; holding it across that call would make the child refuse itself.\n *\n * Only a contention on THIS lock is reported as \"the workspace is busy\". The lockfile service takes a\n * separate file lock inside the write phase, and its `ELOCKED` is a different fact — so the report is\n * gated on whether this lock was ever acquired.\n */\nexport async function withRegistryWorkspaceMutationLock<T>(saasRoot: string, writePhase: () => Promise<T>): Promise<T> {\n const lockPath = getWorkspaceMutationLockPath(saasRoot);\n let acquired = false;\n try {\n return await withDedicatedFileLock(\n lockPath,\n async () => {\n acquired = true;\n return writePhase();\n },\n { retries: { retries: 2 } },\n );\n } catch (error) {\n if (!acquired && (error as { code?: string })?.code === 'ELOCKED') {\n throw new Error(\n `The workspace-mutation lock is held (${lockPath}) — an active coding-agent dispatch run or another ` +\n 'worktree-writing command owns the application worktree right now. Nothing was written; retry after it completes.',\n );\n }\n throw error;\n }\n}\n\n/**\n * Inside the workspace-mutation lock, confirm the module's lockfile entry is still the one the\n * command decided from BEFORE taking the lock — and refuse otherwise.\n *\n * The lock makes the write phase exclusive, but each command reads `sections.modules` first (to\n * decide whether it is installed, which files to shrink, whether the pin changed) and only then\n * takes the lock, after a network round trip. Two registry commands in one checkout can therefore\n * interleave: a second `update` would shrink against the first one's stale file set and orphan\n * files, a `remove` could be followed by an `update` re-installing the module, two `add`s could both\n * pass the \"already installed\" check. Re-reading under the lock and comparing turns each of those\n * into a clean refusal — nothing is written — and the operator re-runs the command against the\n * current state.\n *\n * `expected: undefined` asserts the module is still NOT installed (the `add` case).\n */\nexport async function assertModuleEntryUnchangedUnderLock(\n saasRoot: string,\n moduleId: string,\n expected: RegistryModulesLockEntry | undefined,\n): Promise<void> {\n const current = (await RegistryLockfileService.read(saasRoot)).installed[moduleId];\n if (JSON.stringify(current ?? null) !== JSON.stringify(expected ?? null)) {\n throw new Error(\n `\"${moduleId}\" changed in wildo-saas.lock.json while this command was running (another registry ` +\n 'command in this checkout got there first). Nothing was written; re-run the command.',\n );\n }\n}\n\n/** A registry module spec, parsed: the registry domain, the module id inside it, and the range. */\nexport interface ParsedModuleSpec {\n domain: string;\n moduleId: string;\n range: string;\n}\n\n/**\n * Range-suffix shape: a `@` followed by something that looks like a\n * semver / npm-range token (digits, `^`, `~`, `*`, `x`, `>=`, `latest`,\n * etc.). Used to disambiguate a real `@<range>` separator from an `@`\n * inside an npm-style scope (e.g. `wildo/@scope/name`).\n */\nconst RANGE_SUFFIX_RE = /@([\\^~]?\\d|>=?|<=?|\\*|x|latest|next|canary|beta|alpha|rc)/i;\n\n/**\n * Parse `<domain>/<moduleId>[@<range>]`. The moduleId is itself\n * `<scope>/<name>` (e.g. `acme/billing`), so the registry domain is\n * always the first segment BEFORE the second `/` of the spec — i.e.\n * the spec parses as: `<domain>/<scope>/<name>[@<range>]`.\n *\n * Range defaults to `latest` when omitted. The `@` separator is\n * detected only when followed by a semver-shaped suffix\n * (`RANGE_SUFFIX_RE`), so npm-scoped ids like `wildo/@scope/name`\n * (no range) are NOT mis-parsed as having a range.\n */\nexport function parseModuleSpec(spec: string): ParsedModuleSpec {\n const rangeMatch = spec.match(RANGE_SUFFIX_RE);\n const hasRange = rangeMatch !== null && rangeMatch.index !== undefined && rangeMatch.index > 0;\n const head = hasRange ? spec.slice(0, rangeMatch!.index) : spec;\n const range = hasRange ? spec.slice(rangeMatch!.index! + 1) : 'latest';\n const slashIdx = head.indexOf('/');\n if (slashIdx <= 0 || slashIdx === head.length - 1) {\n throw new Error(\n `Invalid module spec \"${spec}\". Expected \"<domain>/<moduleId>[@<range>]\" (e.g. \"wildo/acme/billing@^1.2.0\").`,\n );\n }\n const domain = head.slice(0, slashIdx);\n const moduleId = head.slice(slashIdx + 1);\n if (!moduleId.includes('/')) {\n throw new Error(\n `Invalid module spec \"${spec}\". moduleId must be \"<scope>/<name>\" (e.g. \"acme/billing\").`,\n );\n }\n return { domain, moduleId, range };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-credentials.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/registry-credentials.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,6BAA6B;;;;;;;iBAejC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAmBpF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGxD;AA0DD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B;IACrC;;;OAGG;qBACoB,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC;IAM5E,uEAAuE;YACzD,OAAO,CAAC,SAAS,uBAAuB,EAAE,CAAC;IAKzD;;;;OAIG;eACc,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAgBtE,qEAAqE;wBAC3C,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IASnD,gEAAgE;uBACvC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAWhD,CAAC"}
1
+ {"version":3,"file":"registry-credentials.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/registry-credentials.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,6BAA6B;;;;;;;iBAejC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAmBpF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGxD;AA0DD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B;IACrC;;;OAGG;qBACoB,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC;IAM5E,uEAAuE;YACzD,OAAO,CAAC,SAAS,uBAAuB,EAAE,CAAC;IAKzD;;;;OAIG;eACc,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAgBtE,qEAAqE;wBAC3C,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IASnD,gEAAgE;uBACvC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAWhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-credentials.service.js","sourceRoot":"","sources":["../../../../src/services/registry/registry-credentials.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,+DAA+D;IAC/D,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE;IACpB;;;;OAIG;IACH,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,mHAAmH;IACnH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,+DAA+D;IAC/D,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAGH,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6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EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,qEAAqE;IACrE,KAAK,CAAC,MAAM,CAAC,WAAmB;QAC9B,MAAM,UAAU,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,QAAQ,EAAE,CAAC;QAC9B,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,UAAU,CAAC,CAAC;QAC9E,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI,CAAC,WAAW,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAC9D,MAAM,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gEAAgE;IAChE,KAAK,CAAC,KAAK,CAAC,WAAmB;QAC7B,MAAM,UAAU,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,UAAU,CAAC,CAAC;QAC5E,IAAI,GAAG,GAAG,CAAC;YAAE,OAAO;QACpB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG;YACtB,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;YACxB,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;QACF,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACF,CAAC","sourcesContent":["/**\n * Per-machine registry credentials store.\n *\n * Holds bearer tokens that authenticate the CLI against\n * `platform-module-registry` instances. Credentials live OUTSIDE the\n * SaaS app workspace (per KD-11 / Security model) — they're per-user,\n * per-machine, never committed alongside code.\n *\n * Storage: a single JSON file at `$WILDO_HOME/registry-credentials.json`\n * (defaults to `~/.wildo/registry-credentials.json`). The file is\n * group/world-unreadable (`chmod 0600`) so other users on shared\n * machines can't read tokens. Atomic write (temp file + rename) so\n * a SIGINT mid-write can't half-update the file.\n *\n * Lookups are keyed by **registry URL** (normalized: lowercased,\n * trailing-slash-stripped) — there's no notion of registry id at this\n * layer because credentials are issued per-server, not per-config-entry.\n * The resolver above this service translates a `--registry <id>` flag\n * to a URL before consulting the credential store.\n */\n\nimport * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { z } from 'zod';\nimport { resolveMachineWildoHomePath } from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nconst RegistryCredentialEntrySchema = z.object({\n /** Normalized registry URL (lowercased, no trailing slash). */\n registryUrl: z.url(),\n /**\n * Display label (org name, api-key name) — surfaced by `whoami` so\n * the user knows which credential is active. Cached at login;\n * re-fetched on demand if absent.\n */\n organizationId: z.string().min(1).optional(),\n apiKeyId: z.string().min(1).optional(),\n apiKeyName: z.string().min(1).optional(),\n /** Raw registry key (`sk_org_...`, minted by `wildo registry key create`). Stored only here; never echoed back. */\n rawToken: z.string().min(1),\n /** ISO timestamp of last successful use (for staleness UX). */\n lastUsedAt: z.iso.datetime().optional(),\n});\nexport type RegistryCredentialEntry = z.infer<typeof RegistryCredentialEntrySchema>;\n\nconst RegistryCredentialFileSchema = z.object({\n schemaVersion: z.literal(1),\n credentials: z.array(RegistryCredentialEntrySchema).default([]),\n});\ntype RegistryCredentialFile = z.infer<typeof RegistryCredentialFileSchema>;\n\nconst FILE_BASENAME = 'registry-credentials.json';\n\n/** The machine Wildo home — one rule for every file there, `$WILDO_HOME` first (see `resolveMachineWildoHomePath`). */\nfunction defaultCredentialsRoot(): string {\n return resolveMachineWildoHomePath();\n}\n\nfunction credentialsFilePath(root: string = defaultCredentialsRoot()): string {\n return path.join(root, FILE_BASENAME);\n}\n\n/**\n * Normalize a registry URL so lookups are stable regardless of how\n * the user typed the flag — `Https://Registry.Wildo.AI/` and\n * `https://registry.wildo.ai` collapse to the same key.\n */\nexport function normalizeRegistryUrl(url: string): string {\n const lower = url.trim().toLowerCase();\n return lower.endsWith('/') ? lower.slice(0, -1) : lower;\n}\n\nasync function readFile(): Promise<RegistryCredentialFile> {\n const filePath = credentialsFilePath();\n try {\n const raw = await fs.readFile(filePath, 'utf8');\n const parsed = JSON.parse(raw) as unknown;\n return RegistryCredentialFileSchema.parse(parsed);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') {\n return { schemaVersion: 1, credentials: [] };\n }\n throw err;\n }\n}\n\nasync function writeFile(file: RegistryCredentialFile): Promise<void> {\n const filePath = credentialsFilePath();\n // 0700 when this creates the directory (#1764): the file is 0600, but a world-listable parent still\n // discloses that credentials exist. An EXISTING directory is left alone — it is `$WILDO_HOME`, which\n // other tooling owns too.\n await fs.mkdir(path.dirname(filePath), { recursive: true, mode: 0o700 });\n const tmp = `${filePath}.${process.pid}.${Date.now()}.tmp`;\n await fs.writeFile(tmp, JSON.stringify(file, null, 2), { mode: 0o600 });\n // Belt-and-braces: `fs.writeFile`'s `mode` is umask-sensitive on\n // first create, so on hosts with a permissive umask the tmp file\n // can briefly be group-readable. `chmod` immediately closes that\n // window before the rename publishes the file.\n //\n // L11 (third-pass review): chmod failures used to be silently\n // swallowed. On non-POSIX hosts (Windows) chmod is intentionally\n // a no-op; on POSIX a failure is potentially security-relevant.\n // Log to stderr at warn-level instead of swallowing — operators\n // running with `WILDO_DEBUG=1` see the signal, normal users see\n // nothing change. We don't throw because the fallback (default\n // perms) is still acceptable for a credential file in $WILDO_HOME.\n await fs.chmod(tmp, 0o600).catch((err) => {\n if (process.platform !== 'win32') {\n console.warn(\n `[wildo-registry-credentials] chmod 0600 failed on tmp file (${tmp}): ${ErrorUtils.extractErrorMessage(err)}. ` +\n 'Credential file may be created with default umask permissions.',\n );\n }\n });\n await fs.rename(tmp, filePath);\n // Defensive again on the final path — `rename` preserves the tmp's\n // mode, but a pre-existing file may have looser perms from older\n // versions / manual edits.\n await fs.chmod(filePath, 0o600).catch((err) => {\n if (process.platform !== 'win32') {\n console.warn(\n `[wildo-registry-credentials] chmod 0600 failed on final path (${filePath}): ${ErrorUtils.extractErrorMessage(err)}. ` +\n 'Existing file may have looser permissions; consider \\`chmod 600\\` manually.',\n );\n }\n });\n}\n\nexport interface SetCredentialInput {\n registryUrl: string;\n rawToken: string;\n organizationId?: string;\n apiKeyId?: string;\n apiKeyName?: string;\n}\n\nexport const RegistryCredentialsService = {\n /**\n * Look up the credential for a given registry URL. Returns\n * `undefined` if no credential is stored.\n */\n async get(registryUrl: string): Promise<RegistryCredentialEntry | undefined> {\n const normalized = normalizeRegistryUrl(registryUrl);\n const file = await readFile();\n return file.credentials.find((c) => c.registryUrl === normalized);\n },\n\n /** List all stored credentials (for `wildo registry whoami --all`). */\n async list(): Promise<readonly RegistryCredentialEntry[]> {\n const file = await readFile();\n return file.credentials;\n },\n\n /**\n * Upsert a credential entry. The raw token is shown ONCE at\n * registry-side mint time — once persisted here, it's the only\n * surviving copy on the user's machine.\n */\n async set(input: SetCredentialInput): Promise<RegistryCredentialEntry> {\n const normalized = normalizeRegistryUrl(input.registryUrl);\n const file = await readFile();\n const others = file.credentials.filter((c) => c.registryUrl !== normalized);\n const next: RegistryCredentialEntry = {\n registryUrl: normalized,\n rawToken: input.rawToken,\n organizationId: input.organizationId,\n apiKeyId: input.apiKeyId,\n apiKeyName: input.apiKeyName,\n lastUsedAt: new Date().toISOString(),\n };\n await writeFile({ schemaVersion: 1, credentials: [...others, next] });\n return next;\n },\n\n /** Remove the credential for a registry URL. Returns true on hit. */\n async remove(registryUrl: string): Promise<boolean> {\n const normalized = normalizeRegistryUrl(registryUrl);\n const file = await readFile();\n const filtered = file.credentials.filter((c) => c.registryUrl !== normalized);\n if (filtered.length === file.credentials.length) return false;\n await writeFile({ schemaVersion: 1, credentials: filtered });\n return true;\n },\n\n /** Touch `lastUsedAt` after a successful authenticated call. */\n async touch(registryUrl: string): Promise<void> {\n const normalized = normalizeRegistryUrl(registryUrl);\n const file = await readFile();\n const idx = file.credentials.findIndex((c) => c.registryUrl === normalized);\n if (idx < 0) return;\n file.credentials[idx] = {\n ...file.credentials[idx],\n lastUsedAt: new Date().toISOString(),\n };\n await writeFile(file);\n },\n};\n"]}
1
+ {"version":3,"file":"registry-credentials.service.js","sourceRoot":"","sources":["../../../../../../src/services/registry/registry-credentials.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,+DAA+D;IAC/D,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE;IACpB;;;;OAIG;IACH,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,mHAAmH;IACnH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,+DAA+D;IAC/D,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,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IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;QACF,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACF,CAAC","sourcesContent":["/**\n * Per-machine registry credentials store.\n *\n * Holds bearer tokens that authenticate the CLI against\n * `platform-module-registry` instances. Credentials live OUTSIDE the\n * SaaS app workspace (per KD-11 / Security model) — they're per-user,\n * per-machine, never committed alongside code.\n *\n * Storage: a single JSON file at `$WILDO_HOME/registry-credentials.json`\n * (defaults to `~/.wildo/registry-credentials.json`). The file is\n * group/world-unreadable (`chmod 0600`) so other users on shared\n * machines can't read tokens. Atomic write (temp file + rename) so\n * a SIGINT mid-write can't half-update the file.\n *\n * Lookups are keyed by **registry URL** (normalized: lowercased,\n * trailing-slash-stripped) — there's no notion of registry id at this\n * layer because credentials are issued per-server, not per-config-entry.\n * The resolver above this service translates a `--registry <id>` flag\n * to a URL before consulting the credential store.\n */\n\nimport * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { z } from 'zod';\nimport { resolveMachineWildoHomePath } from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nconst RegistryCredentialEntrySchema = z.object({\n /** Normalized registry URL (lowercased, no trailing slash). */\n registryUrl: z.url(),\n /**\n * Display label (org name, api-key name) — surfaced by `whoami` so\n * the user knows which credential is active. Cached at login;\n * re-fetched on demand if absent.\n */\n organizationId: z.string().min(1).optional(),\n apiKeyId: z.string().min(1).optional(),\n apiKeyName: z.string().min(1).optional(),\n /** Raw registry key (`sk_org_...`, minted by `wildo registry key create`). Stored only here; never echoed back. */\n rawToken: z.string().min(1),\n /** ISO timestamp of last successful use (for staleness UX). */\n lastUsedAt: z.iso.datetime().optional(),\n});\nexport type RegistryCredentialEntry = z.infer<typeof RegistryCredentialEntrySchema>;\n\nconst RegistryCredentialFileSchema = z.object({\n schemaVersion: z.literal(1),\n credentials: z.array(RegistryCredentialEntrySchema).default([]),\n});\ntype RegistryCredentialFile = z.infer<typeof RegistryCredentialFileSchema>;\n\nconst FILE_BASENAME = 'registry-credentials.json';\n\n/** The machine Wildo home — one rule for every file there, `$WILDO_HOME` first (see `resolveMachineWildoHomePath`). */\nfunction defaultCredentialsRoot(): string {\n return resolveMachineWildoHomePath();\n}\n\nfunction credentialsFilePath(root: string = defaultCredentialsRoot()): string {\n return path.join(root, FILE_BASENAME);\n}\n\n/**\n * Normalize a registry URL so lookups are stable regardless of how\n * the user typed the flag — `Https://Registry.Wildo.AI/` and\n * `https://registry.wildo.ai` collapse to the same key.\n */\nexport function normalizeRegistryUrl(url: string): string {\n const lower = url.trim().toLowerCase();\n return lower.endsWith('/') ? lower.slice(0, -1) : lower;\n}\n\nasync function readFile(): Promise<RegistryCredentialFile> {\n const filePath = credentialsFilePath();\n try {\n const raw = await fs.readFile(filePath, 'utf8');\n const parsed = JSON.parse(raw) as unknown;\n return RegistryCredentialFileSchema.parse(parsed);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') {\n return { schemaVersion: 1, credentials: [] };\n }\n throw err;\n }\n}\n\nasync function writeFile(file: RegistryCredentialFile): Promise<void> {\n const filePath = credentialsFilePath();\n // 0700 when this creates the directory (#1764): the file is 0600, but a world-listable parent still\n // discloses that credentials exist. An EXISTING directory is left alone — it is `$WILDO_HOME`, which\n // other tooling owns too.\n await fs.mkdir(path.dirname(filePath), { recursive: true, mode: 0o700 });\n const tmp = `${filePath}.${process.pid}.${Date.now()}.tmp`;\n await fs.writeFile(tmp, JSON.stringify(file, null, 2), { mode: 0o600 });\n // Belt-and-braces: `fs.writeFile`'s `mode` is umask-sensitive on\n // first create, so on hosts with a permissive umask the tmp file\n // can briefly be group-readable. `chmod` immediately closes that\n // window before the rename publishes the file.\n //\n // L11 (third-pass review): chmod failures used to be silently\n // swallowed. On non-POSIX hosts (Windows) chmod is intentionally\n // a no-op; on POSIX a failure is potentially security-relevant.\n // Log to stderr at warn-level instead of swallowing — operators\n // running with `WILDO_DEBUG=1` see the signal, normal users see\n // nothing change. We don't throw because the fallback (default\n // perms) is still acceptable for a credential file in $WILDO_HOME.\n await fs.chmod(tmp, 0o600).catch((err) => {\n if (process.platform !== 'win32') {\n console.warn(\n `[wildo-registry-credentials] chmod 0600 failed on tmp file (${tmp}): ${ErrorUtils.extractErrorMessage(err)}. ` +\n 'Credential file may be created with default umask permissions.',\n );\n }\n });\n await fs.rename(tmp, filePath);\n // Defensive again on the final path — `rename` preserves the tmp's\n // mode, but a pre-existing file may have looser perms from older\n // versions / manual edits.\n await fs.chmod(filePath, 0o600).catch((err) => {\n if (process.platform !== 'win32') {\n console.warn(\n `[wildo-registry-credentials] chmod 0600 failed on final path (${filePath}): ${ErrorUtils.extractErrorMessage(err)}. ` +\n 'Existing file may have looser permissions; consider \\`chmod 600\\` manually.',\n );\n }\n });\n}\n\nexport interface SetCredentialInput {\n registryUrl: string;\n rawToken: string;\n organizationId?: string;\n apiKeyId?: string;\n apiKeyName?: string;\n}\n\nexport const RegistryCredentialsService = {\n /**\n * Look up the credential for a given registry URL. Returns\n * `undefined` if no credential is stored.\n */\n async get(registryUrl: string): Promise<RegistryCredentialEntry | undefined> {\n const normalized = normalizeRegistryUrl(registryUrl);\n const file = await readFile();\n return file.credentials.find((c) => c.registryUrl === normalized);\n },\n\n /** List all stored credentials (for `wildo registry whoami --all`). */\n async list(): Promise<readonly RegistryCredentialEntry[]> {\n const file = await readFile();\n return file.credentials;\n },\n\n /**\n * Upsert a credential entry. The raw token is shown ONCE at\n * registry-side mint time — once persisted here, it's the only\n * surviving copy on the user's machine.\n */\n async set(input: SetCredentialInput): Promise<RegistryCredentialEntry> {\n const normalized = normalizeRegistryUrl(input.registryUrl);\n const file = await readFile();\n const others = file.credentials.filter((c) => c.registryUrl !== normalized);\n const next: RegistryCredentialEntry = {\n registryUrl: normalized,\n rawToken: input.rawToken,\n organizationId: input.organizationId,\n apiKeyId: input.apiKeyId,\n apiKeyName: input.apiKeyName,\n lastUsedAt: new Date().toISOString(),\n };\n await writeFile({ schemaVersion: 1, credentials: [...others, next] });\n return next;\n },\n\n /** Remove the credential for a registry URL. Returns true on hit. */\n async remove(registryUrl: string): Promise<boolean> {\n const normalized = normalizeRegistryUrl(registryUrl);\n const file = await readFile();\n const filtered = file.credentials.filter((c) => c.registryUrl !== normalized);\n if (filtered.length === file.credentials.length) return false;\n await writeFile({ schemaVersion: 1, credentials: filtered });\n return true;\n },\n\n /** Touch `lastUsedAt` after a successful authenticated call. */\n async touch(registryUrl: string): Promise<void> {\n const normalized = normalizeRegistryUrl(registryUrl);\n const file = await readFile();\n const idx = file.credentials.findIndex((c) => c.registryUrl === normalized);\n if (idx < 0) return;\n file.credentials[idx] = {\n ...file.credentials[idx],\n lastUsedAt: new Date().toISOString(),\n };\n await writeFile(file);\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"saas-root-required.error.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/saas-root-required.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,EAAG,mCAAmC,CAAU;gBAEjD,IAAI,EAAE,MAAM;CAOzB"}
1
+ {"version":3,"file":"saas-root-required.error.d.ts","sourceRoot":"","sources":["../../../../../../src/services/registry/saas-root-required.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,EAAG,mCAAmC,CAAU;gBAEjD,IAAI,EAAE,MAAM;CAOzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"saas-root-required.error.js","sourceRoot":"","sources":["../../../../src/services/registry/saas-root-required.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IACrC,IAAI,GAAG,mCAA4C,CAAC;IAE7D,YAAY,IAAY;QACtB,KAAK,CACH,oBAAoB,IAAI,uCAAuC;YAC/D,qEAAqE,CACtE,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF","sourcesContent":["/**\n * `SaasRootRequiredError` — thrown when a registry CLI verb requires\n * a discovered SaaS app root but `CommandContext` did not surface\n * one.\n *\n * Pattern reference (per Review-pass-4 / HIGH-CC + HIGH-DD):\n * registry CLI verbs MUST resolve the SaaS root from\n * `ctx.cliContext.resolvedHomes.app.declarationRoot`. Crossing a\n * package boundary to call `EnvironmentRegistry.getSaasRoot()`\n * would re-form the `wildo-cli ↔ wildo-module-client` cycle that\n * v2.5 / KD-3 forbids.\n *\n * The error message is intentionally identical to the\n * `CommandCategory.Registry` unavailability copy so the CLI surface\n * stays consistent whether the gate fails at registry-level (no\n * SaaS root) or at command-level (e.g. publish without a manifest).\n */\nexport class SaasRootRequiredError extends Error {\n readonly code = 'WILDO_REGISTRY_SAAS_ROOT_REQUIRED' as const;\n\n constructor(verb: string) {\n super(\n `\\`wildo registry ${verb}\\` requires a SaaS application root. ` +\n `Navigate to a directory containing wildo.saas.config.ts and re-run.`,\n );\n this.name = 'SaasRootRequiredError';\n }\n}\n"]}
1
+ {"version":3,"file":"saas-root-required.error.js","sourceRoot":"","sources":["../../../../../../src/services/registry/saas-root-required.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IACrC,IAAI,GAAG,mCAA4C,CAAC;IAE7D,YAAY,IAAY;QACtB,KAAK,CACH,oBAAoB,IAAI,uCAAuC;YAC/D,qEAAqE,CACtE,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF","sourcesContent":["/**\n * `SaasRootRequiredError` — thrown when a registry CLI verb requires\n * a discovered SaaS app root but `CommandContext` did not surface\n * one.\n *\n * Pattern reference (per Review-pass-4 / HIGH-CC + HIGH-DD):\n * registry CLI verbs MUST resolve the SaaS root from\n * `ctx.cliContext.resolvedHomes.app.declarationRoot`. Crossing a\n * package boundary to call `EnvironmentRegistry.getSaasRoot()`\n * would re-form the `wildo-cli ↔ wildo-module-client` cycle that\n * v2.5 / KD-3 forbids.\n *\n * The error message is intentionally identical to the\n * `CommandCategory.Registry` unavailability copy so the CLI surface\n * stays consistent whether the gate fails at registry-level (no\n * SaaS root) or at command-level (e.g. publish without a manifest).\n */\nexport class SaasRootRequiredError extends Error {\n readonly code = 'WILDO_REGISTRY_SAAS_ROOT_REQUIRED' as const;\n\n constructor(verb: string) {\n super(\n `\\`wildo registry ${verb}\\` requires a SaaS application root. ` +\n `Navigate to a directory containing wildo.saas.config.ts and re-run.`,\n );\n this.name = 'SaasRootRequiredError';\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"csp-sync.service.d.ts","sourceRoot":"","sources":["../../../../src/services/security/csp-sync.service.ts"],"names":[],"mappings":"AASA,OAAO,EACL,eAAe,EAaf,KAAK,iBAAiB,EAIvB,MAAM,+BAA+B,CAAC;AAWvC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,UAAU,EAAE;YACnB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;YAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;SAC1B,CAAC;KACH,GAAG,IAAI,CAAC;CACV;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,C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,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACjC;;;;;;;;OAQG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAucD;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;CACpC;AAED,qBAAa,cAAc;IACzB;;;;;;;;;;;OAWG;WACU,sBAAsB,CACjC,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,wBAAwB,EAAE,CAAC;WAoEzB,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAkD7E"}
@@ -1,7 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync, } from 'node:fs';
2
2
  import { dirname, join, relative, resolve } from 'node:path';
3
3
  import { AppFrontendType, ConfigArtifactsZone, EnvCspOverrideSchema, NGINX_CSP_BEGIN_MARKER, emitCspArtifacts, loadConfig, loadMaterializedFrontendProviders, resolveInfraEnvConfigPath, resolveCspPolicy, resolveFrontendServicesArtifactPath, rewriteNginxCspMarkerPairs, rewriteNginxCspMarkerPairsString, WildoCspConfigSchema, } from '@wildo-ai/platform-config-lib';
4
- import { loadInfraEnvConfig, withConsumedInfraCspServiceKeys } from '@wildo-ai/platform-config-lib';
4
+ import { loadInfraEnvConfig } from '@wildo-ai/platform-config-lib';
5
5
  // The footprint type is owned by the package that puts it on the wire, and is
6
6
  // read here through the same public door every browser-bound consumer uses.
7
7
  import { normalizeProviderFrontendCspFootprint, PROVIDER_FRONTEND_CSP_ORIGIN_BUCKETS, } from '@wildo-ai/saas-models/public-runtime';
@@ -69,32 +69,14 @@ async function loadSaasScopedConfig(saasRoot, filePath) {
69
69
  async function loadSaasConfig(saasRoot) {
70
70
  return loadSaasScopedConfig(saasRoot, resolve(saasRoot, 'wildo.saas.config.ts'));
71
71
  }
72
- async function loadInfraConfig(saasRoot, envName, consumedCspServiceKeys) {
73
- const consumedKeys = [...consumedCspServiceKeys];
74
- const previousEnvValue = process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS;
75
- process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS = [
76
- ...(previousEnvValue ?? '').split(',').map((value) => value.trim()).filter(Boolean),
77
- ...consumedKeys,
78
- ].join(',');
79
- try {
80
- // Through the shared loader, like every other reader of the descriptor: `csp` is application-owned, but a
81
- // HOSTED descriptor is not an environment until it is resolved, and this function returns the environment.
82
- return await withConsumedInfraCspServiceKeys(consumedKeys, async () => {
83
- const loaded = await loadInfraEnvConfig(saasRoot, envName);
84
- if (loaded === null) {
85
- throw new Error(`Config file not found: ${resolveAuthoredInfraConfigPath(saasRoot, envName)}`);
86
- }
87
- return loaded.config;
88
- });
89
- }
90
- finally {
91
- if (previousEnvValue === undefined) {
92
- delete process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS;
93
- }
94
- else {
95
- process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS = previousEnvValue;
96
- }
72
+ async function loadInfraConfig(saasRoot, envName) {
73
+ // Through the shared loader, like every other reader of the descriptor: `csp` is application-owned, but a
74
+ // HOSTED descriptor is not an environment until it is resolved, and this function returns the environment.
75
+ const loaded = await loadInfraEnvConfig(saasRoot, envName);
76
+ if (loaded === null) {
77
+ throw new Error(`Config file not found: ${resolveAuthoredInfraConfigPath(saasRoot, envName)}`);
97
78
  }
79
+ return loaded.config;
98
80
  }
99
81
  function resolveFrontendServiceEntries(saasConfig, requestedServiceKey) {
100
82
  const entries = Object.entries(saasConfig.services).filter(([, service]) => service.frontendType !== undefined &&
@@ -387,11 +369,10 @@ export class CspSyncService {
387
369
  const saasRoot = resolve(input.saasRoot);
388
370
  const env = input.env ?? process.env;
389
371
  const saasConfig = await loadSaasConfig(saasRoot);
390
- const allCspServiceEntries = resolveFrontendServiceEntries(saasConfig, undefined);
391
372
  const serviceEntries = resolveFrontendServiceEntries(saasConfig, input.serviceKey);
392
- const consumedCspServiceKeys = allCspServiceEntries.map(([serviceKey]) => serviceKey);
393
- const infraConfig = await loadInfraConfig(saasRoot, input.envName, consumedCspServiceKeys);
394
- assertInfraCspKeysExistAsServices(infraConfig, saasConfig, new Set(consumedCspServiceKeys), input.envName);
373
+ const cspCapableServiceKeys = resolveFrontendServiceEntries(saasConfig, undefined).map(([serviceKey]) => serviceKey);
374
+ const infraConfig = await loadInfraConfig(saasRoot, input.envName);
375
+ assertInfraCspKeysExistAsServices(infraConfig, saasConfig, new Set(cspCapableServiceKeys), input.envName);
395
376
  const resolved = [];
396
377
  for (const [serviceKey, service] of serviceEntries) {
397
378
  const frontendType = service.frontendType;
@@ -1 +1 @@
1
- {"version":3,"file":"csp-sync.service.js","sourceRoot":"","sources":["../../../../src/services/security/csp-sync.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,iCAAiC,EACjC,yBAAyB,EACzB,gBAAgB,EAChB,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,oBAAoB,GAKrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AACpG,8EAA8E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C;gBACZ,UAAU;gBACV,YAAY;gBACZ,qBAAqB,EAAE,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;gBAChE,0BAA0B;gBAC1B,mBAAmB;gBACnB,YAAY,EAAE,KAAK,IAAI,CAAC,0BAA0B,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC;aACtF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ;SACT,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n existsSync,\n mkdirSync,\n readFileSync,\n readdirSync,\n statSync,\n writeFileSync,\n} from 'node:fs';\nimport { dirname, join, relative, resolve } from 'node:path';\nimport {\n AppFrontendType,\n ConfigArtifactsZone,\n EnvCspOverrideSchema,\n NGINX_CSP_BEGIN_MARKER,\n emitCspArtifacts,\n loadConfig,\n loadMaterializedFrontendProviders,\n resolveInfraEnvConfigPath,\n resolveCspPolicy,\n resolveFrontendServicesArtifactPath,\n rewriteNginxCspMarkerPairs,\n rewriteNginxCspMarkerPairsString,\n WildoCspConfigSchema,\n type ResolvedCspPolicy,\n type WildoCspConfig,\n type WildoInfraEnvConfig,\n type WildoSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport { loadInfraEnvConfig, withConsumedInfraCspServiceKeys } from '@wildo-ai/platform-config-lib';\n// The footprint type is owned by the package that puts it on the wire, and is\n// read here through the same public door every browser-bound consumer uses.\nimport {\n normalizeProviderFrontendCspFootprint,\n PROVIDER_FRONTEND_CSP_ORIGIN_BUCKETS,\n type ProviderFrontendCspFootprint,\n type ProviderFrontendCspOriginBucket,\n} from '@wildo-ai/saas-models/public-runtime';\n\nexport interface GeneratedCspArtifacts {\n readonly envName: string;\n readonly serviceKey: string;\n readonly connectSrc: string[];\n readonly nginxHeaderName: string;\n readonly nginxPolicyValue: string;\n readonly nginxAddHeaderLine: string;\n readonly metaTag: {\n readonly tagName: 'meta';\n readonly attributes: {\n readonly 'http-equiv': string;\n readonly content: string;\n };\n } | null;\n}\n\nexport interface CspSyncServiceResult {\n readonly envName: string;\n readonly services: CspSyncServiceEntryResult[];\n}\n\nexport interface CspSyncServiceEntryResult {\n readonly serviceKey: string;\n readonly frontendType: AppFrontendType;\n readonly generatedArtifactPath: string;\n /**\n * The policy resolved from this service's inputs differs from the committed artifact.\n *\n * Separate from `wroteChanges` on purpose. This is a fact about the REPOSITORY — the generated\n * file no longer describes its own inputs — and it is true whether or not this run was allowed to\n * repair it. Collapsing the two into one \"wrote\" boolean is what made a check mode impossible to\n * express: under `checkOnly` nothing is written and the interesting answer is still yes.\n */\n readonly generatedArtifactOutOfDate: boolean;\n /** Nginx marker pairs whose header line differs from the resolved policy, written or not. */\n readonly outOfDateNginxFiles: readonly string[];\n /** Whether this run actually touched the filesystem. Always false under `checkOnly`. */\n readonly wroteChanges: boolean;\n}\n\ninterface ServiceCspAuthoringConfig {\n readonly csp?: WildoCspConfig;\n}\n\ninterface CspSyncServiceInput {\n readonly saasRoot: string;\n readonly envName: string;\n readonly serviceKey?: string;\n readonly env?: NodeJS.ProcessEnv;\n /**\n * Resolve and compare, writing nothing.\n *\n * The CSP artifacts are TRACKED and generated, and until #513 nothing re-derived them: Wonder\n * Todos' website artifact was four months behind its own authored inputs and its `app` artifact\n * three weeks, each missing a directive whose author had written down what breaks without it.\n * Local CSP is report-only, so the drift produced no symptom and would have been discovered by\n * whoever flipped enforcement.\n */\n readonly checkOnly?: boolean;\n}\n\nconst FRONTEND_TYPES_WITH_CSP = new Set<AppFrontendType>([\n AppFrontendType.SAAS_APP,\n AppFrontendType.TECH_DOC,\n AppFrontendType.STATIC_WEBSITE,\n]);\n\nfunction parseGeneratedCspArtifacts(input: unknown): GeneratedCspArtifacts {\n if (typeof input !== 'object' || input === null) {\n throw new Error('[wildo-csp-sync] generated CSP artifacts must be an object.');\n }\n\n return input as GeneratedCspArtifacts;\n}\n\n/**\n * Compare the resolved artifact against what is on disk, and write it unless checking.\n *\n * Returns whether the two DIFFER, which is the answer both modes want — the sync path reports it as\n * \"updated\", the check path as \"out of date\". The comparison is on the exact serialized bytes, so a\n * reordering that changes nothing semantically still reports, which is correct for a file whose\n * whole purpose is to be the byte-for-byte output of a resolution.\n */\nfunction reconcileGeneratedCspArtifacts(\n input: GeneratedCspArtifacts,\n filePath: string,\n options: { readonly write: boolean },\n): boolean {\n const nextSource = `${JSON.stringify(input, null, 2)}\\n`;\n let currentSource: string | null = null;\n\n try {\n currentSource = readFileSync(filePath, 'utf-8');\n } catch {\n currentSource = null;\n }\n\n if (currentSource === nextSource) {\n return false;\n }\n\n if (options.write) {\n mkdirSync(dirname(filePath), { recursive: true });\n writeFileSync(filePath, nextSource);\n }\n return true;\n}\n\n/**\n * The same comparison for an nginx marker pair, without writing.\n *\n * Uses the PURE string rewriter the writing variant is itself built on, rather than re-implementing\n * the marker parsing — a second parser would answer differently the first time the marker format\n * moved, and a check that disagrees with the thing it checks is worse than no check.\n */\nfunction nginxCspMarkerPairsAreOutOfDate(filePath: string, addHeaderLine: string): boolean {\n const original = readFileSync(filePath, 'utf-8');\n const { rewritten } = rewriteNginxCspMarkerPairsString(original, addHeaderLine, filePath);\n return rewritten !== original;\n}\n\n/** The shared authored-infra path rule (`resolveInfraEnvConfigPath`, platform-config-lib). */\nfunction resolveAuthoredInfraConfigPath(saasRoot: string, envName: string): string {\n return resolveInfraEnvConfigPath(saasRoot, envName);\n}\n\nasync function loadSaasScopedConfig<T>(saasRoot: string, filePath: string): Promise<T> {\n return loadConfig<T>(filePath, {\n artifactLocation: {\n zone: ConfigArtifactsZone.SAAS,\n ownerRoot: saasRoot,\n },\n });\n}\n\nasync function loadSaasConfig(saasRoot: string): Promise<WildoSaasConfig> {\n return loadSaasScopedConfig<WildoSaasConfig>(\n saasRoot,\n resolve(saasRoot, 'wildo.saas.config.ts'),\n );\n}\n\nasync function loadInfraConfig(\n saasRoot: string,\n envName: string,\n consumedCspServiceKeys: Iterable<string>,\n): Promise<WildoInfraEnvConfig> {\n const consumedKeys = [...consumedCspServiceKeys];\n const previousEnvValue = process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS;\n process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS = [\n ...(previousEnvValue ?? '').split(',').map((value) => value.trim()).filter(Boolean),\n ...consumedKeys,\n ].join(',');\n\n try {\n // Through the shared loader, like every other reader of the descriptor: `csp` is application-owned, but a\n // HOSTED descriptor is not an environment until it is resolved, and this function returns the environment.\n return await withConsumedInfraCspServiceKeys(consumedKeys, async () => {\n const loaded = await loadInfraEnvConfig(saasRoot, envName);\n if (loaded === null) {\n throw new Error(`Config file not found: ${resolveAuthoredInfraConfigPath(saasRoot, envName)}`);\n }\n return loaded.config;\n });\n } finally {\n if (previousEnvValue === undefined) {\n delete process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS;\n } else {\n process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS = previousEnvValue;\n }\n }\n}\n\nfunction resolveFrontendServiceEntries(\n saasConfig: WildoSaasConfig,\n requestedServiceKey: string | undefined,\n): Array<readonly [string, WildoSaasConfig['services'][string]]> {\n const entries = Object.entries(saasConfig.services).filter(([, service]) =>\n service.frontendType !== undefined &&\n FRONTEND_TYPES_WITH_CSP.has(service.frontendType),\n );\n\n if (!requestedServiceKey) {\n return entries;\n }\n\n const match = entries.filter(([serviceKey]) => serviceKey === requestedServiceKey);\n if (match.length !== 1) {\n throw new Error(\n `[wildo-csp-sync] expected one CSP-capable frontend service named \"${requestedServiceKey}\", found ${match.length}.`,\n );\n }\n\n return match;\n}\n\nfunction assertInfraCspKeysExistAsServices(\n config: WildoInfraEnvConfig,\n saasConfig: Pick<WildoSaasConfig, 'services'>,\n cspCapableServiceKeys: ReadonlySet<string>,\n envName: string,\n): void {\n if (!config.csp) {\n return;\n }\n\n const serviceKeys = new Set(Object.keys(saasConfig.services));\n const unknownKeys = Object.keys(config.csp).filter((key) => !serviceKeys.has(key));\n if (unknownKeys.length > 0) {\n throw new Error(\n `[wildo-csp-sync] infrastructure/${envName} authored csp override keys that do not exist in wildo.saas.config.ts services: ${unknownKeys.join(', ')}.`,\n );\n }\n\n const nonFrontendKeys = Object.keys(config.csp).filter((key) => !cspCapableServiceKeys.has(key));\n if (nonFrontendKeys.length > 0) {\n throw new Error(\n `[wildo-csp-sync] infrastructure/${envName} authored csp override keys for services that are not CSP-capable frontends: ${nonFrontendKeys.join(', ')}.`,\n );\n }\n}\n\nfunction resolvePerServiceConfigPath(serviceRoot: string, frontendType: AppFrontendType): string | null {\n switch (frontendType) {\n case AppFrontendType.TECH_DOC:\n return resolve(serviceRoot, 'wildo.tech-doc.config.ts');\n case AppFrontendType.STATIC_WEBSITE:\n return resolve(serviceRoot, 'wildo.website.config.ts');\n case AppFrontendType.SAAS_APP:\n return null;\n }\n}\n\nasync function resolveAppCsp(args: {\n readonly saasRoot: string;\n readonly serviceKey: string;\n readonly serviceRoot: string;\n readonly frontendType: AppFrontendType;\n readonly service: WildoSaasConfig['services'][string];\n}): Promise<WildoCspConfig> {\n if (args.frontendType === AppFrontendType.SAAS_APP) {\n /*\n * An unauthored app-static layer DEFAULTS to the pilot posture; it is not a refusal (#417).\n *\n * The refusal fired on the ONLY path a fresh application takes. Neither the skeleton template\n * nor Wonder CRM authors a `services.<key>.csp` block — measured 2026-09-08, zero occurrences\n * of the string in either — so `wildo dev start` failed on Wonder CRM and on every application\n * `wildo init` had just produced.\n *\n * ENABLED AND REPORT-ONLY, not the schema's own `{}` default, and the reason is a SECOND\n * refusal that #417's measurement did not name. `resolveServicePolicies` below throws for any\n * CSP-capable frontend whose policy resolves to `null` — \"CSP-capable frontend services require\n * csp.enabled = true\" — while `WildoCspConfigSchema.enabled` defaults to `false`. So parsing\n * the empty object here merely moves the wall one frame down, which is what the pin for this\n * change caught. The two are not in conflict once you read what each governs: the schema's\n * default governs AUTHORING in general, and that guard governs a surface the framework has\n * already decided must carry a policy.\n *\n * So the default is the posture the schema's own JSDoc prescribes for a first-time author —\n * `reportOnly: true`, \"to triage console-surfaced violations without breaking real traffic\" —\n * and it is byte-for-byte what Wonder Todos authors and what the skeleton's shipped\n * `csp.generated.json` already CLAIMS (`Content-Security-Policy-Report-Only`). The scaffold's\n * intended posture was never \"no CSP\"; the config block to express it was simply missing.\n *\n * Everything else stays at the schema's defaults, so the merge strategy, the directive\n * overrides and the report URI have exactly one source and this is not a second copy of them.\n *\n * The cost of removing the refusal, accepted deliberately in #417: an application that DELETES\n * its `csp` block is now defaulted rather than told. It is defaulted to a policy that reports\n * and does not enforce, so the failure mode of getting this wrong is a console warning rather\n * than a broken application.\n */\n /*\n * The parse wraps the authored block too, and that half is IDEMPOTENT HARDENING rather than a\n * second fix — stated because a reader should not have to re-derive it. `wildo.saas.config.ts`\n * is loaded by a bare cast, but it is authored through `defineSaasConfig`, which already runs\n * `WildoSaasConfigSchema.parse` — and `services.<key>.csp` is `WildoCspConfigSchema.optional()`\n * there, so a partial block is already defaulted by the time it arrives. Bypassing that helper\n * is not a supported shape and would fail on other defaults first, which is why no pin reddens\n * when this parse is removed (measured, #442). What it buys is that the invariant below holds\n * unconditionally instead of by way of somebody else's helper.\n */\n return WildoCspConfigSchema.parse(args.service.csp ?? { enabled: true, reportOnly: true });\n }\n\n const configPath = resolvePerServiceConfigPath(args.serviceRoot, args.frontendType);\n if (configPath === null) {\n throw new Error(`[wildo-csp-sync] Unsupported frontend type: ${args.frontendType}`);\n }\n\n const config = await loadSaasScopedConfig<ServiceCspAuthoringConfig>(\n args.saasRoot,\n configPath,\n );\n if (config.csp === undefined) {\n throw new Error(\n `[wildo-csp-sync] ${configPath} must author a csp block so service \"${args.serviceKey}\" has an app-static layer.`,\n );\n }\n\n /*\n * ─── PARSED, not returned verbatim (#442) ────────────────────────────────────────────────────\n *\n * This branch handed the authored block straight to `resolveCspPolicy`, so a hand-written PARTIAL\n * block — `{ enabled: true, reportOnly: true }`, no `directives`, no `mergeStrategy` — arrived\n * without the schema's defaults and the sync died on `TypeError: Cannot convert undefined or null\n * to object`. A stack trace naming neither the author's file nor the missing field.\n *\n * `WildoCspConfigSchema` is a `z.strictObject`, so parsing here buys a second thing: a typo like\n * `enable: true` becomes a parse error naming the key instead of silently resolving to\n * `enabled: false` — which the schema's own JSDoc calls \"CSP off, the worst possible default\".\n *\n * The SAAS_APP branch above parses for the same reason. Both are needed and neither is redundant:\n * `wildo.saas.config.ts` is parsed by `defineSaasConfig` only when the author USES that helper,\n * and this file is loaded by a bare cast with no validation at all. So the invariant is stated\n * where it can be relied on — every block `resolveAppCsp` returns has been through the schema,\n * however it arrived.\n */\n return WildoCspConfigSchema.parse(config.csp);\n}\n\nfunction assertOriginAllowedInConnectSrc(args: {\n readonly envVarName: string;\n readonly rawUrl: string | undefined;\n readonly connectSrc: readonly string[];\n readonly envName: string;\n readonly serviceKey: string;\n}): void {\n if (!args.rawUrl) {\n return;\n }\n\n let origin: string;\n try {\n origin = new URL(args.rawUrl).origin;\n } catch {\n throw new Error(\n `[wildo-csp-sync] ${args.envVarName} must be a valid absolute URL, got \"${args.rawUrl}\".`,\n );\n }\n\n if (!args.connectSrc.includes(origin)) {\n throw new Error(\n `[wildo-csp-sync] ${args.envVarName} origin \"${origin}\" is missing from the final connect-src allowlist for service \"${args.serviceKey}\" in ${args.envName}.`,\n );\n }\n}\n\nfunction assertExplicitHmrOriginAllowed(\n env: NodeJS.ProcessEnv,\n connectSrc: readonly string[],\n envName: string,\n serviceKey: string,\n): void {\n const explicitHmrHost = env.VITE_HMR_HOST?.trim();\n const explicitHmrClientPort = env.VITE_HMR_CLIENT_PORT?.trim();\n const explicitHmrProtocol = env.VITE_HMR_PROTOCOL?.trim();\n if (!explicitHmrHost && !explicitHmrClientPort && !explicitHmrProtocol) {\n return;\n }\n\n const protocol = explicitHmrProtocol || 'ws';\n const host = explicitHmrHost || 'localhost';\n const port = explicitHmrClientPort || env.VITE_PORT?.trim() || '4242';\n const hmrOrigin = `${protocol}://${host}:${port}`;\n if (!connectSrc.includes(hmrOrigin)) {\n throw new Error(\n `[wildo-csp-sync] explicit Vite HMR origin \"${hmrOrigin}\" is missing from the final connect-src allowlist for service \"${serviceKey}\" in ${envName}.`,\n );\n }\n}\n\nfunction assertRuntimeOriginsAllowed(args: {\n readonly frontendType: AppFrontendType;\n readonly env: NodeJS.ProcessEnv;\n readonly connectSrc: readonly string[];\n readonly envName: string;\n readonly serviceKey: string;\n}): void {\n if (args.frontendType === AppFrontendType.SAAS_APP) {\n assertOriginAllowedInConnectSrc({\n envVarName: 'VITE_API_BASE_URL',\n rawUrl: args.env.VITE_API_BASE_URL,\n connectSrc: args.connectSrc,\n envName: args.envName,\n serviceKey: args.serviceKey,\n });\n assertExplicitHmrOriginAllowed(args.env, args.connectSrc, args.envName, args.serviceKey);\n }\n\n if (args.frontendType === AppFrontendType.TECH_DOC) {\n assertOriginAllowedInConnectSrc({\n envVarName: 'WILDO_DOCS_API_BASE_URL',\n rawUrl: args.env.WILDO_DOCS_API_BASE_URL,\n connectSrc: args.connectSrc,\n envName: args.envName,\n serviceKey: args.serviceKey,\n });\n }\n}\n\n/**\n * The CSP footprints of the providers DECLARED FOR ONE SERVICE (#332).\n *\n * Read from the materialized `frontend-services.runtime-providers.generated.json`\n * that `wildo config sync` writes — which is the whole reason the footprint is\n * DATA. This CLI is a Node process and a frontend provider module is\n * browser-bound; it could not execute one to ask what origins it needs, and a\n * provider whose origins had to be transcribed into every application's config\n * by hand would be wrong in production the first time anyone forgot.\n *\n * Keyed by SERVICE, not by facet: a Zoom origin the marketing site declared\n * must not be admitted for the SaaS app, which is the isolation this per-service\n * read is for.\n *\n * A missing artifact is not an error. A clean checkout, or an application that\n * declares no frontend provider at all, legitimately has none — and refusing\n * here would make `wildo dev sync-csp` depend on a sync having already run.\n */\nfunction collectProviderCspFootprints(args: {\n readonly saasRoot: string;\n readonly serviceKey: string;\n}): ReadonlyArray<ProviderFrontendCspFootprint> {\n const block = loadMaterializedFrontendProviders({\n artifactPath: resolveFrontendServicesArtifactPath(args.saasRoot),\n serviceKey: args.serviceKey,\n });\n\n if (block === undefined) {\n return [];\n }\n\n return Object.values(block.providers)\n .map((provider) => resolveProviderCspFootprint(provider, args.serviceKey))\n .filter((footprint): footprint is ProviderFrontendCspFootprint => footprint !== undefined);\n}\n\n/**\n * Fills a provider's DERIVED origins in from its own public configuration.\n *\n * Some endpoints are not knowable by the provider: an error-monitoring\n * provider sends to the host inside its DSN, an analytics provider to whatever\n * `apiHost` the application configured — a region, a reverse proxy on the\n * application's own domain, or a self-hosted deployment. The provider therefore\n * declares WHERE the origin is, and this is the one place that has both halves:\n * the served entry carries `publicConfig` and the footprint beside it.\n *\n * Without this the application would author the same host twice — once as the\n * provider's config, once in its own CSP — and the copy that drifts fails in\n * production only.\n *\n * Absent key: contributes nothing. That is the correct reading of \"this\n * application has not configured that provider\", and refusing would make an\n * unconfigured optional provider break the sync.\n *\n * Present but not a URL: FAILS, naming the provider and the key. It is the one\n * case where the application said something and the framework cannot honour it,\n * and silently dropping it produces exactly the blocked-in-production-only\n * failure the whole layer exists to remove.\n */\nfunction resolveProviderCspFootprint(\n provider: { readonly csp?: ProviderFrontendCspFootprint; readonly publicConfig?: Readonly<Record<string, unknown>>; readonly metadata: { readonly ref: string } },\n serviceKey: string,\n): ProviderFrontendCspFootprint | undefined {\n const footprint = provider.csp;\n if (footprint === undefined) return undefined;\n if (footprint.derivedOrigins.length === 0) return footprint;\n\n const resolved = normalizeProviderFrontendCspFootprint({\n ...footprint,\n // Resolved here, so nothing downstream has to know the bucket existed.\n derivedOrigins: [],\n });\n // Every bucket, from the enum (#1702). This used to be a hand-written list of six, so a provider that\n // derived an origin into a bucket added later (worker, media) would have crashed here, and one that\n // merely declared such a bucket beside a derived origin would have had it silently erased.\n const buckets = Object.fromEntries(\n PROVIDER_FRONTEND_CSP_ORIGIN_BUCKETS.map((bucket) => [bucket, [...resolved[bucket]]]),\n ) as Record<ProviderFrontendCspOriginBucket, string[]>;\n\n for (const derived of footprint.derivedOrigins) {\n const configured = provider.publicConfig?.[derived.publicConfigKey];\n if (configured === undefined || configured === null || configured === '') continue;\n\n if (typeof configured !== 'string') {\n throw new Error(\n `[wildo-csp-sync] provider \"${provider.metadata.ref}\" on service \"${serviceKey}\" declares a CSP origin `\n + `derived from publicConfig.${derived.publicConfigKey}, but that value is not a string.`,\n );\n }\n\n let origin: string;\n try {\n origin = new URL(configured).origin;\n } catch {\n throw new Error(\n `[wildo-csp-sync] provider \"${provider.metadata.ref}\" on service \"${serviceKey}\" declares a CSP origin `\n + `derived from publicConfig.${derived.publicConfigKey}, but \"${configured}\" is not an absolute URL, so `\n + 'no origin can be read from it. The provider would then be blocked by the very policy it contributes '\n + 'to — and only where CSP enforces, so the failure would first appear in production.',\n );\n }\n\n const bucket = buckets[derived.bucket];\n if (!bucket.includes(origin)) bucket.push(origin);\n }\n\n return normalizeProviderFrontendCspFootprint(buckets);\n}\n\nfunction collectNginxConfigFilesWithCspMarkers(serviceRoot: string): string[] {\n const nginxConfigRoot = resolve(serviceRoot, 'nginx-config');\n if (!existsSync(nginxConfigRoot)) {\n return [];\n }\n\n const collected: string[] = [];\n const visit = (directory: string): void => {\n for (const entry of readdirSync(directory)) {\n const path = join(directory, entry);\n const stat = statSync(path);\n if (stat.isDirectory()) {\n visit(path);\n continue;\n }\n if (stat.isFile() && readFileSync(path, 'utf-8').includes(NGINX_CSP_BEGIN_MARKER)) {\n collected.push(path);\n }\n }\n };\n\n visit(nginxConfigRoot);\n return collected.sort();\n}\n\n/**\n * Per-service resolved CSP policy — the side-effect-free output of\n * {@link CspSyncService.resolveServicePolicies}. Both the nginx sync (write\n * side) and `wildo frontend publish` (CDN edge re-home) consume this, so the\n * layered resolution (baseline ⊕ app-static ⊕ env-override ⊕ the declared\n * providers' footprints, plus the Vite dev-loosening / companion-origin\n * auto-derivations) lives in ONE place and can never drift between the two\n * consumers.\n */\nexport interface ResolvedServiceCspPolicy {\n readonly serviceKey: string;\n readonly frontendType: AppFrontendType;\n readonly serviceRoot: string;\n readonly policy: ResolvedCspPolicy;\n}\n\nexport class CspSyncService {\n /**\n * Resolve each CSP-capable frontend's policy WITHOUT writing anything.\n *\n * Loads the saas + infra configs, validates the infra `csp` keys, resolves\n * the app-static layer (SAAS_APP inline / `wildo.website.config.ts` /\n * `wildo.tech-doc.config.ts`) merged with the per-env override, and asserts\n * the runtime origins are in `connect-src`. Returns one entry per\n * CSP-capable frontend (filtered to `input.serviceKey` when given).\n *\n * This is the shared resolution seam: {@link sync} adds the nginx-write side;\n * the CDN publish path adds the `_headers` / edge-policy side.\n */\n static async resolveServicePolicies(\n input: CspSyncServiceInput,\n ): Promise<ResolvedServiceCspPolicy[]> {\n const saasRoot = resolve(input.saasRoot);\n const env = input.env ?? process.env;\n const saasConfig = await loadSaasConfig(saasRoot);\n const allCspServiceEntries = resolveFrontendServiceEntries(saasConfig, undefined);\n const serviceEntries = resolveFrontendServiceEntries(saasConfig, input.serviceKey);\n const consumedCspServiceKeys = allCspServiceEntries.map(([serviceKey]) => serviceKey);\n const infraConfig = await loadInfraConfig(saasRoot, input.envName, consumedCspServiceKeys);\n\n assertInfraCspKeysExistAsServices(\n infraConfig,\n saasConfig,\n new Set(consumedCspServiceKeys),\n input.envName,\n );\n\n const resolved: ResolvedServiceCspPolicy[] = [];\n for (const [serviceKey, service] of serviceEntries) {\n const frontendType = service.frontendType;\n if (frontendType === undefined) {\n continue;\n }\n\n const serviceRoot = resolve(saasRoot, service.path);\n const appCsp = await resolveAppCsp({\n saasRoot,\n serviceKey,\n serviceRoot,\n frontendType,\n service,\n });\n const policy = resolveCspPolicy({\n frontendType,\n appCsp,\n envOverride: EnvCspOverrideSchema.optional().parse(infraConfig.csp?.[serviceKey]),\n // The fourth layer (#332): what the providers this service declared\n // actually need to reach. Resolved per service AND per environment\n // because both axes change the answer — a provider enabled only in\n // production contributes origins only to production's policy, and CSP\n // is enforcing there while it is report-only in development, so this is\n // the one layer whose absence shows up nowhere else.\n providerCspFootprints: collectProviderCspFootprints({ saasRoot, serviceKey }),\n // Pass the env id so the resolver can auto-apply Vite dev-mode\n // loosening for `'local'` + `SAAS_APP`. Without this the\n // framework would not know whether it's resolving for local dev\n // or prod, and apps would still have to opt-in per-env.\n environmentId: input.envName,\n });\n if (policy === null) {\n throw new Error(\n `[wildo-csp-sync] service \"${serviceKey}\" resolved to a disabled CSP. CSP-capable frontend services require csp.enabled = true.`,\n );\n }\n\n const connectSrc = [...(policy.directives['connect-src'] ?? [])];\n assertRuntimeOriginsAllowed({\n frontendType,\n env,\n connectSrc,\n envName: input.envName,\n serviceKey,\n });\n\n resolved.push({ serviceKey, frontendType, serviceRoot, policy });\n }\n\n return resolved;\n }\n\n static async sync(input: CspSyncServiceInput): Promise<CspSyncServiceResult> {\n const saasRoot = resolve(input.saasRoot);\n const resolvedServices = await CspSyncService.resolveServicePolicies(input);\n\n const services: CspSyncServiceEntryResult[] = [];\n for (const { serviceKey, frontendType, serviceRoot, policy } of resolvedServices) {\n const connectSrc = [...(policy.directives['connect-src'] ?? [])];\n const artifacts = emitCspArtifacts(policy);\n const generatedArtifacts = parseGeneratedCspArtifacts({\n envName: input.envName,\n serviceKey,\n connectSrc,\n nginxHeaderName: artifacts.nginxHeaderName,\n nginxPolicyValue: artifacts.nginxPolicyValue,\n nginxAddHeaderLine: artifacts.nginxAddHeaderLine,\n metaTag: artifacts.metaTag,\n });\n const generatedArtifactPath = resolve(serviceRoot, 'src', 'generated', 'csp.generated.json');\n const write = input.checkOnly !== true;\n const generatedArtifactOutOfDate = reconcileGeneratedCspArtifacts(\n generatedArtifacts,\n generatedArtifactPath,\n { write },\n );\n const outOfDateNginxFiles: string[] = [];\n\n for (const nginxConfigFile of collectNginxConfigFilesWithCspMarkers(serviceRoot)) {\n const outOfDate = write\n ? rewriteNginxCspMarkerPairs(nginxConfigFile, generatedArtifacts.nginxAddHeaderLine).fileWritten\n : nginxCspMarkerPairsAreOutOfDate(nginxConfigFile, generatedArtifacts.nginxAddHeaderLine);\n if (outOfDate) {\n outOfDateNginxFiles.push(relative(saasRoot, nginxConfigFile));\n }\n }\n\n services.push({\n serviceKey,\n frontendType,\n generatedArtifactPath: relative(saasRoot, generatedArtifactPath),\n generatedArtifactOutOfDate,\n outOfDateNginxFiles,\n wroteChanges: write && (generatedArtifactOutOfDate || outOfDateNginxFiles.length > 0),\n });\n }\n\n return {\n envName: input.envName,\n services,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"csp-sync.service.js","sourceRoot":"","sources":["../../../../../../src/services/security/csp-sync.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,iCAAiC,EACjC,yBAAyB,EACzB,gBAAgB,EAChB,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,oBAAoB,GAKrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,8EAA8E;AAC9E,4EAA4E;AAC5E,OAAO,EACL,qCAAqC,EACrC,oCAAoC,GAGrC,MAAM,sCAAsC,CAAC;AA+D9C,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAkB;IACvD,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,cAAc;CAC/B,CAAC,CAAC;AAEH,SAAS,0BAA0B,CAAC,KAAc;IAChD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,KAA8B,CAAC;AACxC,CAAC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ACZ,UAAU;gBACV,YAAY;gBACZ,qBAAqB,EAAE,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;gBAChE,0BAA0B;gBAC1B,mBAAmB;gBACnB,YAAY,EAAE,KAAK,IAAI,CAAC,0BAA0B,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC;aACtF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ;SACT,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n existsSync,\n mkdirSync,\n readFileSync,\n readdirSync,\n statSync,\n writeFileSync,\n} from 'node:fs';\nimport { dirname, join, relative, resolve } from 'node:path';\nimport {\n AppFrontendType,\n ConfigArtifactsZone,\n EnvCspOverrideSchema,\n NGINX_CSP_BEGIN_MARKER,\n emitCspArtifacts,\n loadConfig,\n loadMaterializedFrontendProviders,\n resolveInfraEnvConfigPath,\n resolveCspPolicy,\n resolveFrontendServicesArtifactPath,\n rewriteNginxCspMarkerPairs,\n rewriteNginxCspMarkerPairsString,\n WildoCspConfigSchema,\n type ResolvedCspPolicy,\n type WildoCspConfig,\n type WildoInfraEnvConfig,\n type WildoSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport { loadInfraEnvConfig } from '@wildo-ai/platform-config-lib';\n// The footprint type is owned by the package that puts it on the wire, and is\n// read here through the same public door every browser-bound consumer uses.\nimport {\n normalizeProviderFrontendCspFootprint,\n PROVIDER_FRONTEND_CSP_ORIGIN_BUCKETS,\n type ProviderFrontendCspFootprint,\n type ProviderFrontendCspOriginBucket,\n} from '@wildo-ai/saas-models/public-runtime';\n\nexport interface GeneratedCspArtifacts {\n readonly envName: string;\n readonly serviceKey: string;\n readonly connectSrc: string[];\n readonly nginxHeaderName: string;\n readonly nginxPolicyValue: string;\n readonly nginxAddHeaderLine: string;\n readonly metaTag: {\n readonly tagName: 'meta';\n readonly attributes: {\n readonly 'http-equiv': string;\n readonly content: string;\n };\n } | null;\n}\n\nexport interface CspSyncServiceResult {\n readonly envName: string;\n readonly services: CspSyncServiceEntryResult[];\n}\n\nexport interface CspSyncServiceEntryResult {\n readonly serviceKey: string;\n readonly frontendType: AppFrontendType;\n readonly generatedArtifactPath: string;\n /**\n * The policy resolved from this service's inputs differs from the committed artifact.\n *\n * Separate from `wroteChanges` on purpose. This is a fact about the REPOSITORY — the generated\n * file no longer describes its own inputs — and it is true whether or not this run was allowed to\n * repair it. Collapsing the two into one \"wrote\" boolean is what made a check mode impossible to\n * express: under `checkOnly` nothing is written and the interesting answer is still yes.\n */\n readonly generatedArtifactOutOfDate: boolean;\n /** Nginx marker pairs whose header line differs from the resolved policy, written or not. */\n readonly outOfDateNginxFiles: readonly string[];\n /** Whether this run actually touched the filesystem. Always false under `checkOnly`. */\n readonly wroteChanges: boolean;\n}\n\ninterface ServiceCspAuthoringConfig {\n readonly csp?: WildoCspConfig;\n}\n\ninterface CspSyncServiceInput {\n readonly saasRoot: string;\n readonly envName: string;\n readonly serviceKey?: string;\n readonly env?: NodeJS.ProcessEnv;\n /**\n * Resolve and compare, writing nothing.\n *\n * The CSP artifacts are TRACKED and generated, and until #513 nothing re-derived them: Wonder\n * Todos' website artifact was four months behind its own authored inputs and its `app` artifact\n * three weeks, each missing a directive whose author had written down what breaks without it.\n * Local CSP is report-only, so the drift produced no symptom and would have been discovered by\n * whoever flipped enforcement.\n */\n readonly checkOnly?: boolean;\n}\n\nconst FRONTEND_TYPES_WITH_CSP = new Set<AppFrontendType>([\n AppFrontendType.SAAS_APP,\n AppFrontendType.TECH_DOC,\n AppFrontendType.STATIC_WEBSITE,\n]);\n\nfunction parseGeneratedCspArtifacts(input: unknown): GeneratedCspArtifacts {\n if (typeof input !== 'object' || input === null) {\n throw new Error('[wildo-csp-sync] generated CSP artifacts must be an object.');\n }\n\n return input as GeneratedCspArtifacts;\n}\n\n/**\n * Compare the resolved artifact against what is on disk, and write it unless checking.\n *\n * Returns whether the two DIFFER, which is the answer both modes want — the sync path reports it as\n * \"updated\", the check path as \"out of date\". The comparison is on the exact serialized bytes, so a\n * reordering that changes nothing semantically still reports, which is correct for a file whose\n * whole purpose is to be the byte-for-byte output of a resolution.\n */\nfunction reconcileGeneratedCspArtifacts(\n input: GeneratedCspArtifacts,\n filePath: string,\n options: { readonly write: boolean },\n): boolean {\n const nextSource = `${JSON.stringify(input, null, 2)}\\n`;\n let currentSource: string | null = null;\n\n try {\n currentSource = readFileSync(filePath, 'utf-8');\n } catch {\n currentSource = null;\n }\n\n if (currentSource === nextSource) {\n return false;\n }\n\n if (options.write) {\n mkdirSync(dirname(filePath), { recursive: true });\n writeFileSync(filePath, nextSource);\n }\n return true;\n}\n\n/**\n * The same comparison for an nginx marker pair, without writing.\n *\n * Uses the PURE string rewriter the writing variant is itself built on, rather than re-implementing\n * the marker parsing — a second parser would answer differently the first time the marker format\n * moved, and a check that disagrees with the thing it checks is worse than no check.\n */\nfunction nginxCspMarkerPairsAreOutOfDate(filePath: string, addHeaderLine: string): boolean {\n const original = readFileSync(filePath, 'utf-8');\n const { rewritten } = rewriteNginxCspMarkerPairsString(original, addHeaderLine, filePath);\n return rewritten !== original;\n}\n\n/** The shared authored-infra path rule (`resolveInfraEnvConfigPath`, platform-config-lib). */\nfunction resolveAuthoredInfraConfigPath(saasRoot: string, envName: string): string {\n return resolveInfraEnvConfigPath(saasRoot, envName);\n}\n\nasync function loadSaasScopedConfig<T>(saasRoot: string, filePath: string): Promise<T> {\n return loadConfig<T>(filePath, {\n artifactLocation: {\n zone: ConfigArtifactsZone.SAAS,\n ownerRoot: saasRoot,\n },\n });\n}\n\nasync function loadSaasConfig(saasRoot: string): Promise<WildoSaasConfig> {\n return loadSaasScopedConfig<WildoSaasConfig>(\n saasRoot,\n resolve(saasRoot, 'wildo.saas.config.ts'),\n );\n}\n\nasync function loadInfraConfig(saasRoot: string, envName: string): Promise<WildoInfraEnvConfig> {\n // Through the shared loader, like every other reader of the descriptor: `csp` is application-owned, but a\n // HOSTED descriptor is not an environment until it is resolved, and this function returns the environment.\n const loaded = await loadInfraEnvConfig(saasRoot, envName);\n if (loaded === null) {\n throw new Error(`Config file not found: ${resolveAuthoredInfraConfigPath(saasRoot, envName)}`);\n }\n return loaded.config;\n}\n\nfunction resolveFrontendServiceEntries(\n saasConfig: WildoSaasConfig,\n requestedServiceKey: string | undefined,\n): Array<readonly [string, WildoSaasConfig['services'][string]]> {\n const entries = Object.entries(saasConfig.services).filter(([, service]) =>\n service.frontendType !== undefined &&\n FRONTEND_TYPES_WITH_CSP.has(service.frontendType),\n );\n\n if (!requestedServiceKey) {\n return entries;\n }\n\n const match = entries.filter(([serviceKey]) => serviceKey === requestedServiceKey);\n if (match.length !== 1) {\n throw new Error(\n `[wildo-csp-sync] expected one CSP-capable frontend service named \"${requestedServiceKey}\", found ${match.length}.`,\n );\n }\n\n return match;\n}\n\nfunction assertInfraCspKeysExistAsServices(\n config: WildoInfraEnvConfig,\n saasConfig: Pick<WildoSaasConfig, 'services'>,\n cspCapableServiceKeys: ReadonlySet<string>,\n envName: string,\n): void {\n if (!config.csp) {\n return;\n }\n\n const serviceKeys = new Set(Object.keys(saasConfig.services));\n const unknownKeys = Object.keys(config.csp).filter((key) => !serviceKeys.has(key));\n if (unknownKeys.length > 0) {\n throw new Error(\n `[wildo-csp-sync] infrastructure/${envName} authored csp override keys that do not exist in wildo.saas.config.ts services: ${unknownKeys.join(', ')}.`,\n );\n }\n\n const nonFrontendKeys = Object.keys(config.csp).filter((key) => !cspCapableServiceKeys.has(key));\n if (nonFrontendKeys.length > 0) {\n throw new Error(\n `[wildo-csp-sync] infrastructure/${envName} authored csp override keys for services that are not CSP-capable frontends: ${nonFrontendKeys.join(', ')}.`,\n );\n }\n}\n\nfunction resolvePerServiceConfigPath(serviceRoot: string, frontendType: AppFrontendType): string | null {\n switch (frontendType) {\n case AppFrontendType.TECH_DOC:\n return resolve(serviceRoot, 'wildo.tech-doc.config.ts');\n case AppFrontendType.STATIC_WEBSITE:\n return resolve(serviceRoot, 'wildo.website.config.ts');\n case AppFrontendType.SAAS_APP:\n return null;\n }\n}\n\nasync function resolveAppCsp(args: {\n readonly saasRoot: string;\n readonly serviceKey: string;\n readonly serviceRoot: string;\n readonly frontendType: AppFrontendType;\n readonly service: WildoSaasConfig['services'][string];\n}): Promise<WildoCspConfig> {\n if (args.frontendType === AppFrontendType.SAAS_APP) {\n /*\n * An unauthored app-static layer DEFAULTS to the pilot posture; it is not a refusal (#417).\n *\n * The refusal fired on the ONLY path a fresh application takes. Neither the skeleton template\n * nor Wonder CRM authors a `services.<key>.csp` block — measured 2026-09-08, zero occurrences\n * of the string in either — so `wildo dev start` failed on Wonder CRM and on every application\n * `wildo init` had just produced.\n *\n * ENABLED AND REPORT-ONLY, not the schema's own `{}` default, and the reason is a SECOND\n * refusal that #417's measurement did not name. `resolveServicePolicies` below throws for any\n * CSP-capable frontend whose policy resolves to `null` — \"CSP-capable frontend services require\n * csp.enabled = true\" — while `WildoCspConfigSchema.enabled` defaults to `false`. So parsing\n * the empty object here merely moves the wall one frame down, which is what the pin for this\n * change caught. The two are not in conflict once you read what each governs: the schema's\n * default governs AUTHORING in general, and that guard governs a surface the framework has\n * already decided must carry a policy.\n *\n * So the default is the posture the schema's own JSDoc prescribes for a first-time author —\n * `reportOnly: true`, \"to triage console-surfaced violations without breaking real traffic\" —\n * and it is byte-for-byte what Wonder Todos authors and what the skeleton's shipped\n * `csp.generated.json` already CLAIMS (`Content-Security-Policy-Report-Only`). The scaffold's\n * intended posture was never \"no CSP\"; the config block to express it was simply missing.\n *\n * Everything else stays at the schema's defaults, so the merge strategy, the directive\n * overrides and the report URI have exactly one source and this is not a second copy of them.\n *\n * The cost of removing the refusal, accepted deliberately in #417: an application that DELETES\n * its `csp` block is now defaulted rather than told. It is defaulted to a policy that reports\n * and does not enforce, so the failure mode of getting this wrong is a console warning rather\n * than a broken application.\n */\n /*\n * The parse wraps the authored block too, and that half is IDEMPOTENT HARDENING rather than a\n * second fix — stated because a reader should not have to re-derive it. `wildo.saas.config.ts`\n * is loaded by a bare cast, but it is authored through `defineSaasConfig`, which already runs\n * `WildoSaasConfigSchema.parse` — and `services.<key>.csp` is `WildoCspConfigSchema.optional()`\n * there, so a partial block is already defaulted by the time it arrives. Bypassing that helper\n * is not a supported shape and would fail on other defaults first, which is why no pin reddens\n * when this parse is removed (measured, #442). What it buys is that the invariant below holds\n * unconditionally instead of by way of somebody else's helper.\n */\n return WildoCspConfigSchema.parse(args.service.csp ?? { enabled: true, reportOnly: true });\n }\n\n const configPath = resolvePerServiceConfigPath(args.serviceRoot, args.frontendType);\n if (configPath === null) {\n throw new Error(`[wildo-csp-sync] Unsupported frontend type: ${args.frontendType}`);\n }\n\n const config = await loadSaasScopedConfig<ServiceCspAuthoringConfig>(\n args.saasRoot,\n configPath,\n );\n if (config.csp === undefined) {\n throw new Error(\n `[wildo-csp-sync] ${configPath} must author a csp block so service \"${args.serviceKey}\" has an app-static layer.`,\n );\n }\n\n /*\n * ─── PARSED, not returned verbatim (#442) ────────────────────────────────────────────────────\n *\n * This branch handed the authored block straight to `resolveCspPolicy`, so a hand-written PARTIAL\n * block — `{ enabled: true, reportOnly: true }`, no `directives`, no `mergeStrategy` — arrived\n * without the schema's defaults and the sync died on `TypeError: Cannot convert undefined or null\n * to object`. A stack trace naming neither the author's file nor the missing field.\n *\n * `WildoCspConfigSchema` is a `z.strictObject`, so parsing here buys a second thing: a typo like\n * `enable: true` becomes a parse error naming the key instead of silently resolving to\n * `enabled: false` — which the schema's own JSDoc calls \"CSP off, the worst possible default\".\n *\n * The SAAS_APP branch above parses for the same reason. Both are needed and neither is redundant:\n * `wildo.saas.config.ts` is parsed by `defineSaasConfig` only when the author USES that helper,\n * and this file is loaded by a bare cast with no validation at all. So the invariant is stated\n * where it can be relied on — every block `resolveAppCsp` returns has been through the schema,\n * however it arrived.\n */\n return WildoCspConfigSchema.parse(config.csp);\n}\n\nfunction assertOriginAllowedInConnectSrc(args: {\n readonly envVarName: string;\n readonly rawUrl: string | undefined;\n readonly connectSrc: readonly string[];\n readonly envName: string;\n readonly serviceKey: string;\n}): void {\n if (!args.rawUrl) {\n return;\n }\n\n let origin: string;\n try {\n origin = new URL(args.rawUrl).origin;\n } catch {\n throw new Error(\n `[wildo-csp-sync] ${args.envVarName} must be a valid absolute URL, got \"${args.rawUrl}\".`,\n );\n }\n\n if (!args.connectSrc.includes(origin)) {\n throw new Error(\n `[wildo-csp-sync] ${args.envVarName} origin \"${origin}\" is missing from the final connect-src allowlist for service \"${args.serviceKey}\" in ${args.envName}.`,\n );\n }\n}\n\nfunction assertExplicitHmrOriginAllowed(\n env: NodeJS.ProcessEnv,\n connectSrc: readonly string[],\n envName: string,\n serviceKey: string,\n): void {\n const explicitHmrHost = env.VITE_HMR_HOST?.trim();\n const explicitHmrClientPort = env.VITE_HMR_CLIENT_PORT?.trim();\n const explicitHmrProtocol = env.VITE_HMR_PROTOCOL?.trim();\n if (!explicitHmrHost && !explicitHmrClientPort && !explicitHmrProtocol) {\n return;\n }\n\n const protocol = explicitHmrProtocol || 'ws';\n const host = explicitHmrHost || 'localhost';\n const port = explicitHmrClientPort || env.VITE_PORT?.trim() || '4242';\n const hmrOrigin = `${protocol}://${host}:${port}`;\n if (!connectSrc.includes(hmrOrigin)) {\n throw new Error(\n `[wildo-csp-sync] explicit Vite HMR origin \"${hmrOrigin}\" is missing from the final connect-src allowlist for service \"${serviceKey}\" in ${envName}.`,\n );\n }\n}\n\nfunction assertRuntimeOriginsAllowed(args: {\n readonly frontendType: AppFrontendType;\n readonly env: NodeJS.ProcessEnv;\n readonly connectSrc: readonly string[];\n readonly envName: string;\n readonly serviceKey: string;\n}): void {\n if (args.frontendType === AppFrontendType.SAAS_APP) {\n assertOriginAllowedInConnectSrc({\n envVarName: 'VITE_API_BASE_URL',\n rawUrl: args.env.VITE_API_BASE_URL,\n connectSrc: args.connectSrc,\n envName: args.envName,\n serviceKey: args.serviceKey,\n });\n assertExplicitHmrOriginAllowed(args.env, args.connectSrc, args.envName, args.serviceKey);\n }\n\n if (args.frontendType === AppFrontendType.TECH_DOC) {\n assertOriginAllowedInConnectSrc({\n envVarName: 'WILDO_DOCS_API_BASE_URL',\n rawUrl: args.env.WILDO_DOCS_API_BASE_URL,\n connectSrc: args.connectSrc,\n envName: args.envName,\n serviceKey: args.serviceKey,\n });\n }\n}\n\n/**\n * The CSP footprints of the providers DECLARED FOR ONE SERVICE (#332).\n *\n * Read from the materialized `frontend-services.runtime-providers.generated.json`\n * that `wildo config sync` writes — which is the whole reason the footprint is\n * DATA. This CLI is a Node process and a frontend provider module is\n * browser-bound; it could not execute one to ask what origins it needs, and a\n * provider whose origins had to be transcribed into every application's config\n * by hand would be wrong in production the first time anyone forgot.\n *\n * Keyed by SERVICE, not by facet: a Zoom origin the marketing site declared\n * must not be admitted for the SaaS app, which is the isolation this per-service\n * read is for.\n *\n * A missing artifact is not an error. A clean checkout, or an application that\n * declares no frontend provider at all, legitimately has none — and refusing\n * here would make `wildo dev sync-csp` depend on a sync having already run.\n */\nfunction collectProviderCspFootprints(args: {\n readonly saasRoot: string;\n readonly serviceKey: string;\n}): ReadonlyArray<ProviderFrontendCspFootprint> {\n const block = loadMaterializedFrontendProviders({\n artifactPath: resolveFrontendServicesArtifactPath(args.saasRoot),\n serviceKey: args.serviceKey,\n });\n\n if (block === undefined) {\n return [];\n }\n\n return Object.values(block.providers)\n .map((provider) => resolveProviderCspFootprint(provider, args.serviceKey))\n .filter((footprint): footprint is ProviderFrontendCspFootprint => footprint !== undefined);\n}\n\n/**\n * Fills a provider's DERIVED origins in from its own public configuration.\n *\n * Some endpoints are not knowable by the provider: an error-monitoring\n * provider sends to the host inside its DSN, an analytics provider to whatever\n * `apiHost` the application configured — a region, a reverse proxy on the\n * application's own domain, or a self-hosted deployment. The provider therefore\n * declares WHERE the origin is, and this is the one place that has both halves:\n * the served entry carries `publicConfig` and the footprint beside it.\n *\n * Without this the application would author the same host twice — once as the\n * provider's config, once in its own CSP — and the copy that drifts fails in\n * production only.\n *\n * Absent key: contributes nothing. That is the correct reading of \"this\n * application has not configured that provider\", and refusing would make an\n * unconfigured optional provider break the sync.\n *\n * Present but not a URL: FAILS, naming the provider and the key. It is the one\n * case where the application said something and the framework cannot honour it,\n * and silently dropping it produces exactly the blocked-in-production-only\n * failure the whole layer exists to remove.\n */\nfunction resolveProviderCspFootprint(\n provider: { readonly csp?: ProviderFrontendCspFootprint; readonly publicConfig?: Readonly<Record<string, unknown>>; readonly metadata: { readonly ref: string } },\n serviceKey: string,\n): ProviderFrontendCspFootprint | undefined {\n const footprint = provider.csp;\n if (footprint === undefined) return undefined;\n if (footprint.derivedOrigins.length === 0) return footprint;\n\n const resolved = normalizeProviderFrontendCspFootprint({\n ...footprint,\n // Resolved here, so nothing downstream has to know the bucket existed.\n derivedOrigins: [],\n });\n // Every bucket, from the enum (#1702). This used to be a hand-written list of six, so a provider that\n // derived an origin into a bucket added later (worker, media) would have crashed here, and one that\n // merely declared such a bucket beside a derived origin would have had it silently erased.\n const buckets = Object.fromEntries(\n PROVIDER_FRONTEND_CSP_ORIGIN_BUCKETS.map((bucket) => [bucket, [...resolved[bucket]]]),\n ) as Record<ProviderFrontendCspOriginBucket, string[]>;\n\n for (const derived of footprint.derivedOrigins) {\n const configured = provider.publicConfig?.[derived.publicConfigKey];\n if (configured === undefined || configured === null || configured === '') continue;\n\n if (typeof configured !== 'string') {\n throw new Error(\n `[wildo-csp-sync] provider \"${provider.metadata.ref}\" on service \"${serviceKey}\" declares a CSP origin `\n + `derived from publicConfig.${derived.publicConfigKey}, but that value is not a string.`,\n );\n }\n\n let origin: string;\n try {\n origin = new URL(configured).origin;\n } catch {\n throw new Error(\n `[wildo-csp-sync] provider \"${provider.metadata.ref}\" on service \"${serviceKey}\" declares a CSP origin `\n + `derived from publicConfig.${derived.publicConfigKey}, but \"${configured}\" is not an absolute URL, so `\n + 'no origin can be read from it. The provider would then be blocked by the very policy it contributes '\n + 'to — and only where CSP enforces, so the failure would first appear in production.',\n );\n }\n\n const bucket = buckets[derived.bucket];\n if (!bucket.includes(origin)) bucket.push(origin);\n }\n\n return normalizeProviderFrontendCspFootprint(buckets);\n}\n\nfunction collectNginxConfigFilesWithCspMarkers(serviceRoot: string): string[] {\n const nginxConfigRoot = resolve(serviceRoot, 'nginx-config');\n if (!existsSync(nginxConfigRoot)) {\n return [];\n }\n\n const collected: string[] = [];\n const visit = (directory: string): void => {\n for (const entry of readdirSync(directory)) {\n const path = join(directory, entry);\n const stat = statSync(path);\n if (stat.isDirectory()) {\n visit(path);\n continue;\n }\n if (stat.isFile() && readFileSync(path, 'utf-8').includes(NGINX_CSP_BEGIN_MARKER)) {\n collected.push(path);\n }\n }\n };\n\n visit(nginxConfigRoot);\n return collected.sort();\n}\n\n/**\n * Per-service resolved CSP policy — the side-effect-free output of\n * {@link CspSyncService.resolveServicePolicies}. Both the nginx sync (write\n * side) and `wildo frontend publish` (CDN edge re-home) consume this, so the\n * layered resolution (baseline ⊕ app-static ⊕ env-override ⊕ the declared\n * providers' footprints, plus the Vite dev-loosening / companion-origin\n * auto-derivations) lives in ONE place and can never drift between the two\n * consumers.\n */\nexport interface ResolvedServiceCspPolicy {\n readonly serviceKey: string;\n readonly frontendType: AppFrontendType;\n readonly serviceRoot: string;\n readonly policy: ResolvedCspPolicy;\n}\n\nexport class CspSyncService {\n /**\n * Resolve each CSP-capable frontend's policy WITHOUT writing anything.\n *\n * Loads the saas + infra configs, validates the infra `csp` keys, resolves\n * the app-static layer (SAAS_APP inline / `wildo.website.config.ts` /\n * `wildo.tech-doc.config.ts`) merged with the per-env override, and asserts\n * the runtime origins are in `connect-src`. Returns one entry per\n * CSP-capable frontend (filtered to `input.serviceKey` when given).\n *\n * This is the shared resolution seam: {@link sync} adds the nginx-write side;\n * the CDN publish path adds the `_headers` / edge-policy side.\n */\n static async resolveServicePolicies(\n input: CspSyncServiceInput,\n ): Promise<ResolvedServiceCspPolicy[]> {\n const saasRoot = resolve(input.saasRoot);\n const env = input.env ?? process.env;\n const saasConfig = await loadSaasConfig(saasRoot);\n const serviceEntries = resolveFrontendServiceEntries(saasConfig, input.serviceKey);\n const cspCapableServiceKeys = resolveFrontendServiceEntries(saasConfig, undefined).map(([serviceKey]) => serviceKey);\n const infraConfig = await loadInfraConfig(saasRoot, input.envName);\n\n assertInfraCspKeysExistAsServices(\n infraConfig,\n saasConfig,\n new Set(cspCapableServiceKeys),\n input.envName,\n );\n\n const resolved: ResolvedServiceCspPolicy[] = [];\n for (const [serviceKey, service] of serviceEntries) {\n const frontendType = service.frontendType;\n if (frontendType === undefined) {\n continue;\n }\n\n const serviceRoot = resolve(saasRoot, service.path);\n const appCsp = await resolveAppCsp({\n saasRoot,\n serviceKey,\n serviceRoot,\n frontendType,\n service,\n });\n const policy = resolveCspPolicy({\n frontendType,\n appCsp,\n envOverride: EnvCspOverrideSchema.optional().parse(infraConfig.csp?.[serviceKey]),\n // The fourth layer (#332): what the providers this service declared\n // actually need to reach. Resolved per service AND per environment\n // because both axes change the answer — a provider enabled only in\n // production contributes origins only to production's policy, and CSP\n // is enforcing there while it is report-only in development, so this is\n // the one layer whose absence shows up nowhere else.\n providerCspFootprints: collectProviderCspFootprints({ saasRoot, serviceKey }),\n // Pass the env id so the resolver can auto-apply Vite dev-mode\n // loosening for `'local'` + `SAAS_APP`. Without this the\n // framework would not know whether it's resolving for local dev\n // or prod, and apps would still have to opt-in per-env.\n environmentId: input.envName,\n });\n if (policy === null) {\n throw new Error(\n `[wildo-csp-sync] service \"${serviceKey}\" resolved to a disabled CSP. CSP-capable frontend services require csp.enabled = true.`,\n );\n }\n\n const connectSrc = [...(policy.directives['connect-src'] ?? [])];\n assertRuntimeOriginsAllowed({\n frontendType,\n env,\n connectSrc,\n envName: input.envName,\n serviceKey,\n });\n\n resolved.push({ serviceKey, frontendType, serviceRoot, policy });\n }\n\n return resolved;\n }\n\n static async sync(input: CspSyncServiceInput): Promise<CspSyncServiceResult> {\n const saasRoot = resolve(input.saasRoot);\n const resolvedServices = await CspSyncService.resolveServicePolicies(input);\n\n const services: CspSyncServiceEntryResult[] = [];\n for (const { serviceKey, frontendType, serviceRoot, policy } of resolvedServices) {\n const connectSrc = [...(policy.directives['connect-src'] ?? [])];\n const artifacts = emitCspArtifacts(policy);\n const generatedArtifacts = parseGeneratedCspArtifacts({\n envName: input.envName,\n serviceKey,\n connectSrc,\n nginxHeaderName: artifacts.nginxHeaderName,\n nginxPolicyValue: artifacts.nginxPolicyValue,\n nginxAddHeaderLine: artifacts.nginxAddHeaderLine,\n metaTag: artifacts.metaTag,\n });\n const generatedArtifactPath = resolve(serviceRoot, 'src', 'generated', 'csp.generated.json');\n const write = input.checkOnly !== true;\n const generatedArtifactOutOfDate = reconcileGeneratedCspArtifacts(\n generatedArtifacts,\n generatedArtifactPath,\n { write },\n );\n const outOfDateNginxFiles: string[] = [];\n\n for (const nginxConfigFile of collectNginxConfigFilesWithCspMarkers(serviceRoot)) {\n const outOfDate = write\n ? rewriteNginxCspMarkerPairs(nginxConfigFile, generatedArtifacts.nginxAddHeaderLine).fileWritten\n : nginxCspMarkerPairsAreOutOfDate(nginxConfigFile, generatedArtifacts.nginxAddHeaderLine);\n if (outOfDate) {\n outOfDateNginxFiles.push(relative(saasRoot, nginxConfigFile));\n }\n }\n\n services.push({\n serviceKey,\n frontendType,\n generatedArtifactPath: relative(saasRoot, generatedArtifactPath),\n generatedArtifactOutOfDate,\n outOfDateNginxFiles,\n wroteChanges: write && (generatedArtifactOutOfDate || outOfDateNginxFiles.length > 0),\n });\n }\n\n return {\n envName: input.envName,\n services,\n };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utility-tools.service.d.ts","sourceRoot":"","sources":["../../../../src/services/tools/utility-tools.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AACrK,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+B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