@wildo-ai/wildo-cli 1.1.2 → 1.1.4

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 (1002) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
  3. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  4. package/dist/src/commands/acp/probe.command.js +13 -0
  5. package/dist/src/commands/acp/probe.command.js.map +1 -1
  6. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  7. package/dist/src/commands/assets/sync.command.d.ts +6 -0
  8. package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
  9. package/dist/src/commands/assets/sync.command.js +13 -3
  10. package/dist/src/commands/assets/sync.command.js.map +1 -1
  11. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  12. package/dist/src/commands/compose.command.d.ts.map +1 -1
  13. package/dist/src/commands/compose.command.js +16 -0
  14. package/dist/src/commands/compose.command.js.map +1 -1
  15. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
  16. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
  17. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
  18. package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
  19. package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
  20. package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
  21. package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
  22. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  23. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  24. package/dist/src/commands/config/sync.command.d.ts +36 -0
  25. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  26. package/dist/src/commands/config/sync.command.js +61 -7
  27. package/dist/src/commands/config/sync.command.js.map +1 -1
  28. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  29. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +2 -0
  30. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +1 -0
  31. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +63 -0
  32. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +1 -0
  33. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
  34. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
  35. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
  36. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
  37. package/dist/src/commands/context/assurance-basis.command.d.ts +61 -0
  38. package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -0
  39. package/dist/src/commands/context/assurance-basis.command.js +166 -0
  40. package/dist/src/commands/context/assurance-basis.command.js.map +1 -0
  41. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  42. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  43. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  44. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  45. package/dist/src/commands/context/journey.command.d.ts +6 -2
  46. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  47. package/dist/src/commands/context/journey.command.js +8 -4
  48. package/dist/src/commands/context/journey.command.js.map +1 -1
  49. package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
  50. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
  51. package/dist/src/commands/context/jurisdictions.command.js +115 -0
  52. package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
  53. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  54. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  55. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  56. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  57. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  58. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  59. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
  60. package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
  61. package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
  62. package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
  63. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
  64. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
  65. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
  66. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
  67. package/dist/src/commands/dev/charts-audit.command.d.ts +5 -3
  68. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  69. package/dist/src/commands/dev/charts-audit.command.js +36 -7
  70. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  71. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  72. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  73. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  74. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  75. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  76. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  77. package/dist/src/commands/dev/start.command.js +8 -7
  78. package/dist/src/commands/dev/start.command.js.map +1 -1
  79. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  80. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  81. package/dist/src/commands/dev/sync-csp.command.js +35 -7
  82. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  83. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
  84. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
  85. package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
  86. package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
  87. package/dist/src/commands/docs/publish.command.d.ts +29 -0
  88. package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
  89. package/dist/src/commands/docs/publish.command.js +82 -0
  90. package/dist/src/commands/docs/publish.command.js.map +1 -0
  91. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  92. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
  93. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
  94. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
  95. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  96. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  97. package/dist/src/commands/fwk/dev-skills.command.js +12 -0
  98. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  99. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  100. package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
  101. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
  102. package/dist/src/commands/fwk/generate-providers.command.js +325 -0
  103. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
  104. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  105. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  106. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  107. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  108. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  109. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  110. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  111. package/dist/src/commands/fwk/version-show.command.js +9 -1
  112. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  113. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  114. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  115. package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
  116. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  117. package/dist/src/commands/fwk/wt-status.command.js +34 -5
  118. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  119. package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
  120. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  121. package/dist/src/commands/fwk/wt-tail.command.js +40 -10
  122. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  123. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
  124. package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
  125. package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
  126. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  127. package/dist/src/commands/generate/email-command.utils.js +1 -0
  128. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  129. package/dist/src/commands/generate/email-preview.command.d.ts +8 -0
  130. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  131. package/dist/src/commands/generate/email-preview.command.js +57 -0
  132. package/dist/src/commands/generate/email-preview.command.js.map +1 -1
  133. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  134. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  135. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  136. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  137. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  138. package/dist/src/commands/generate/labelling-command.utils.js +1 -0
  139. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  140. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  141. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  142. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  143. package/dist/src/commands/help.command.d.ts.map +1 -1
  144. package/dist/src/commands/help.command.js +2 -0
  145. package/dist/src/commands/help.command.js.map +1 -1
  146. package/dist/src/commands/init.command.d.ts +17 -0
  147. package/dist/src/commands/init.command.d.ts.map +1 -1
  148. package/dist/src/commands/init.command.js +89 -4
  149. package/dist/src/commands/init.command.js.map +1 -1
  150. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
  151. package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
  152. package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
  153. package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
  154. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
  155. package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
  156. package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
  157. package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
  158. package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
  159. package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
  160. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
  161. package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
  162. package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
  163. package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
  164. package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
  165. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  166. package/dist/src/commands/local/dev.command.d.ts +6 -3
  167. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  168. package/dist/src/commands/local/dev.command.js +13 -4
  169. package/dist/src/commands/local/dev.command.js.map +1 -1
  170. package/dist/src/commands/local/doctor.command.d.ts +9 -0
  171. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  172. package/dist/src/commands/local/doctor.command.js +24 -6
  173. package/dist/src/commands/local/doctor.command.js.map +1 -1
  174. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  175. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  176. package/dist/src/commands/local/init.command.js +11 -2
  177. package/dist/src/commands/local/init.command.js.map +1 -1
  178. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  179. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  180. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  181. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  182. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  183. package/dist/src/commands/local/up.command.js.map +1 -1
  184. package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
  185. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
  186. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  187. package/dist/src/commands/lock/check.command.js +4 -10
  188. package/dist/src/commands/lock/check.command.js.map +1 -1
  189. package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
  190. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
  191. package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
  192. package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
  193. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  194. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  195. package/dist/src/commands/market/market-command.utils.js +1 -0
  196. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  197. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
  198. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
  199. package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
  200. package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
  201. package/dist/src/commands/providers/show.command.d.ts +51 -0
  202. package/dist/src/commands/providers/show.command.d.ts.map +1 -0
  203. package/dist/src/commands/providers/show.command.js +152 -0
  204. package/dist/src/commands/providers/show.command.js.map +1 -0
  205. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  206. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  207. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  208. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  209. package/dist/src/commands/registry/login.command.js +2 -0
  210. package/dist/src/commands/registry/login.command.js.map +1 -1
  211. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  212. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  213. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  214. package/dist/src/commands/registry/publish.command.js +2 -0
  215. package/dist/src/commands/registry/publish.command.js.map +1 -1
  216. package/dist/src/commands/registry/registry-transport.constants.d.ts +33 -0
  217. package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -0
  218. package/dist/src/commands/registry/registry-transport.constants.js +33 -0
  219. package/dist/src/commands/registry/registry-transport.constants.js.map +1 -0
  220. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  221. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  222. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  223. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  224. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  225. package/dist/src/commands/registry/whoami.command.js +2 -0
  226. package/dist/src/commands/registry/whoami.command.js.map +1 -1
  227. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
  228. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  229. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  230. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  231. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  232. package/dist/src/commands/setup.command.d.ts.map +1 -1
  233. package/dist/src/commands/version.command.d.ts.map +1 -1
  234. package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
  235. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  236. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
  237. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  238. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  239. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  240. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  241. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  242. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  243. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  244. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
  245. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  246. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  247. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  248. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  249. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  250. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  251. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  252. package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
  253. package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
  254. package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
  255. package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
  256. package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
  257. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
  258. package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
  259. package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
  260. package/dist/src/kernel/base-command.d.ts.map +1 -1
  261. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  262. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  263. package/dist/src/kernel/command-registry.js +6 -0
  264. package/dist/src/kernel/command-registry.js.map +1 -1
  265. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  266. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  267. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  268. package/dist/src/kernel/hooks.d.ts.map +1 -1
  269. package/dist/src/kernel/logger.d.ts.map +1 -1
  270. package/dist/src/kernel/types.d.ts +17 -1
  271. package/dist/src/kernel/types.d.ts.map +1 -1
  272. package/dist/src/kernel/types.js +16 -0
  273. package/dist/src/kernel/types.js.map +1 -1
  274. package/dist/src/main.d.ts.map +1 -1
  275. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
  276. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +2 -0
  277. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +1 -0
  278. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +146 -0
  279. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +1 -0
  280. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
  281. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
  282. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
  283. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  284. package/dist/src/modules/domain/credentials/approver-user.module.d.ts +85 -0
  285. package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -0
  286. package/dist/src/modules/domain/credentials/approver-user.module.js +92 -0
  287. package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -0
  288. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  289. package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
  290. package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
  291. package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
  292. package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
  293. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
  294. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  295. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  296. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  297. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  298. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  299. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  300. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +2 -0
  301. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +1 -0
  302. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +111 -0
  303. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +1 -0
  304. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
  305. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
  306. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
  307. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
  308. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
  309. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
  310. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
  311. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
  312. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
  313. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
  314. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
  315. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
  316. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
  317. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
  318. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
  319. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
  320. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
  321. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
  322. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
  323. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
  324. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
  325. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
  326. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
  327. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
  328. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
  329. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
  330. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
  331. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
  332. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
  333. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
  334. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
  335. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
  336. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
  337. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
  338. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
  339. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
  340. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
  341. package/dist/src/services/application/__tests__/provider-package-links.service.test.js +224 -0
  342. package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
  343. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
  344. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
  345. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
  346. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
  347. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
  348. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
  349. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
  350. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
  351. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
  352. package/dist/src/services/application/app-bootstrap.service.d.ts +43 -10
  353. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  354. package/dist/src/services/application/app-bootstrap.service.js +92 -49
  355. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  356. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  357. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  358. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  359. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  360. package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
  361. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  362. package/dist/src/services/application/application-assets-delivery.service.js +35 -7
  363. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  364. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  365. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  366. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  367. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  368. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +6 -0
  369. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  370. package/dist/src/services/application/application-runtime-bootstrap.service.js +41 -2
  371. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  372. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  373. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  374. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  375. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  376. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  377. package/dist/src/services/application/local-application-initialization.service.js +22 -6
  378. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  379. package/dist/src/services/application/provider-package-links.service.d.ts +160 -0
  380. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
  381. package/dist/src/services/application/provider-package-links.service.js +312 -0
  382. package/dist/src/services/application/provider-package-links.service.js.map +1 -0
  383. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  384. package/dist/src/services/application/provider-runtime-sync.service.js +7 -20
  385. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  386. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  387. package/dist/src/services/application/saas-scaffold.service.js +11 -2
  388. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  389. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  390. package/dist/src/services/application/saas-skeleton.service.js +46 -26
  391. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  392. package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
  393. package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
  394. package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
  395. package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
  396. package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
  397. package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
  398. package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
  399. package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
  400. package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
  401. package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
  402. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
  403. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
  404. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
  405. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
  406. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
  407. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
  408. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
  409. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
  410. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
  411. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
  412. package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
  413. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  414. package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
  415. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  416. package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
  417. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  418. package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
  419. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  420. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
  421. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
  422. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
  423. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
  424. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
  425. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  426. package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
  427. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  428. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
  429. package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
  430. package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
  431. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
  432. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
  433. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
  434. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  435. package/dist/src/services/companion/companion-client-options.utils.js +6 -0
  436. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  437. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  438. package/dist/src/services/companion/companion-client.service.js +34 -0
  439. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  440. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  441. package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
  442. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
  443. package/dist/src/services/companion/companion-local-token.utils.js +62 -0
  444. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
  445. package/dist/src/services/companion/companion.schemas.d.ts +12 -0
  446. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  447. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  448. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  449. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  450. package/dist/src/services/companion/local-companion-authority.service.js +9 -30
  451. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  452. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  453. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  454. package/dist/src/services/companion/workbench-cli.service.js +10 -1
  455. package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
  456. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
  457. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
  458. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
  459. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
  460. package/dist/src/services/context/context-manager.service.d.ts +9 -0
  461. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  462. package/dist/src/services/context/context-manager.service.js +13 -1
  463. package/dist/src/services/context/context-manager.service.js.map +1 -1
  464. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  465. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  466. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
  467. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
  468. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
  469. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
  470. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
  471. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
  472. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
  473. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
  474. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
  475. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +2 -0
  476. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +1 -0
  477. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +94 -0
  478. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +1 -0
  479. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
  480. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  481. package/dist/src/services/credentials/ci-secrets-adapter.service.js +114 -37
  482. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  483. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +209 -0
  484. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
  485. package/dist/src/services/credentials/composed-provider-catalogue.js +263 -0
  486. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
  487. package/dist/src/services/credentials/credentials.schemas.d.ts +29 -22
  488. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  489. package/dist/src/services/credentials/credentials.schemas.js +67 -5
  490. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  491. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  492. package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
  493. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  494. package/dist/src/services/credentials/framework-managed-secrets.js +51 -8
  495. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  496. package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
  497. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  498. package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
  499. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  500. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  501. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  502. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  503. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  504. package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
  505. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  506. package/dist/src/services/data-services/data-services.schemas.js +0 -1
  507. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  508. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  509. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
  510. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
  511. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
  512. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
  513. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
  514. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
  515. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
  516. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
  517. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
  518. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
  519. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
  520. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
  521. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
  522. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
  523. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
  524. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
  525. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
  526. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
  527. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
  528. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
  529. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
  530. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
  531. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
  532. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
  533. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
  534. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  535. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  536. package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
  537. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  538. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  539. package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
  540. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  541. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
  542. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
  543. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
  544. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
  545. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
  546. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
  547. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -1
  548. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  549. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +60 -12
  550. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  551. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  552. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  553. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  554. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  555. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  556. package/dist/src/services/deployment/infra-writer.service.js +34 -7
  557. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  558. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
  559. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +45 -2
  560. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -1
  561. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
  562. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
  563. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
  564. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
  565. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
  566. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
  567. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
  568. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
  569. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
  570. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
  571. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
  572. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
  573. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
  574. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +23 -0
  575. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  576. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +52 -6
  577. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  578. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  579. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  580. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
  581. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  582. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
  583. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  584. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
  585. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  586. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  587. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
  588. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  589. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
  590. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  591. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  592. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  593. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  594. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  595. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  596. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  597. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  598. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  599. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  600. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
  601. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  602. package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
  603. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  604. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  605. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  606. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  607. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  608. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  609. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  610. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  611. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  612. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  613. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  614. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  615. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
  616. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
  617. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
  618. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
  619. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
  620. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
  621. package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
  622. package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
  623. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
  624. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
  625. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
  626. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
  627. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
  628. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
  629. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
  630. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
  631. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
  632. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
  633. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
  634. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
  635. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
  636. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
  637. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
  638. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
  639. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
  640. package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
  641. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
  642. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
  643. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
  644. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  645. package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
  646. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  647. package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
  648. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  649. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  650. package/dist/src/services/environment/env-sync.service.js +13 -13
  651. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  652. package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
  653. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  654. package/dist/src/services/environment/env-vars-builder.service.js +188 -41
  655. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  656. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  657. package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
  658. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  659. package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
  660. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  661. package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
  662. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  663. package/dist/src/services/environment/environment-paths.service.js +5 -3
  664. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  665. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  666. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  667. package/dist/src/services/environment/environment-setup.service.js +23 -9
  668. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  669. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  670. package/dist/src/services/environment/environment.service.d.ts +6 -1
  671. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  672. package/dist/src/services/environment/environment.service.js +2 -0
  673. package/dist/src/services/environment/environment.service.js.map +1 -1
  674. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  675. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  676. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  677. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  678. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  679. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
  680. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
  681. package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
  682. package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
  683. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
  684. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
  685. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +55 -0
  686. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
  687. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
  688. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
  689. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
  690. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
  691. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
  692. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
  693. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
  694. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
  695. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
  696. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
  697. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +17 -0
  698. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
  699. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
  700. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +101 -0
  701. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
  702. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
  703. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
  704. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
  705. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
  706. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
  707. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
  708. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
  709. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
  710. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
  711. package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
  712. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
  713. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
  714. package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
  715. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
  716. package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
  717. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
  718. package/dist/src/services/framework/application-rule-imports.js +77 -0
  719. package/dist/src/services/framework/application-rule-imports.js.map +1 -0
  720. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
  721. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  722. package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
  723. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  724. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  725. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  726. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  727. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +86 -1
  728. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  729. package/dist/src/services/framework/framework-knowledge-audit.service.js +212 -1
  730. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  731. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
  732. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  733. package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
  734. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  735. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  736. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  737. package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
  738. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  739. package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
  740. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  741. package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
  742. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  743. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  744. package/dist/src/services/framework/framework-version.service.d.ts +13 -0
  745. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  746. package/dist/src/services/framework/framework-version.service.js +23 -24
  747. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  748. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  749. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +2 -0
  750. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +1 -0
  751. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +100 -0
  752. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +1 -0
  753. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
  754. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
  755. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
  756. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
  757. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
  758. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
  759. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
  760. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
  761. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
  762. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
  763. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +219 -0
  764. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
  765. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
  766. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
  767. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
  768. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
  769. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
  770. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
  771. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
  772. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
  773. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
  774. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
  775. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
  776. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
  777. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
  778. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
  779. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
  780. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
  781. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
  782. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
  783. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
  784. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
  785. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
  786. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
  787. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
  788. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
  789. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
  790. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
  791. package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
  792. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
  793. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +139 -0
  794. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
  795. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1586 -0
  796. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
  797. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
  798. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
  799. package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
  800. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
  801. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
  802. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
  803. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
  804. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
  805. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
  806. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
  807. package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
  808. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
  809. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
  810. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
  811. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
  812. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  813. package/dist/src/services/frontend/cloudflare-cdn.service.js +33 -2
  814. package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
  815. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  816. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  817. package/dist/src/services/frontend/frontend-publish.service.js +1 -1
  818. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  819. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  820. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  821. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  822. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  823. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  824. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  825. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  826. package/dist/src/services/registry/index.d.ts.map +1 -1
  827. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  828. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
  829. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  830. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  831. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
  832. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
  833. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
  834. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
  835. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
  836. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
  837. package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
  838. package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
  839. package/dist/src/services/security/csp-sync.service.d.ts +27 -5
  840. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  841. package/dist/src/services/security/csp-sync.service.js +204 -16
  842. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  843. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  844. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
  845. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
  846. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
  847. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
  848. package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
  849. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  850. package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
  851. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  852. package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
  853. package/dist/tsconfig.build.tsbuildinfo +1 -1
  854. package/dist/tsconfig.tsbuildinfo +1 -1
  855. package/framework-root-package.json +2 -0
  856. package/package.json +19 -17
  857. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +15 -0
  858. package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
  859. package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
  860. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +394 -90
  861. package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
  862. package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
  863. package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
  864. package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
  865. package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
  866. package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
  867. package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
  868. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
  869. package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
  870. package/templates/saas/engine-peer-closure.json +12 -0
  871. package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
  872. package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
  873. package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
  874. package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
  875. package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
  876. package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
  877. package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
  878. package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
  879. package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
  880. package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
  881. package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
  882. package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
  883. package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
  884. package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
  885. package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
  886. package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
  887. package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
  888. package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
  889. package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
  890. package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
  891. package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
  892. package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
  893. package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
  894. package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
  895. package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
  896. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
  897. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
  898. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
  899. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
  900. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
  901. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
  902. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
  903. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
  904. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
  905. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
  906. package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
  907. package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
  908. package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
  909. package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
  910. package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
  911. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
  912. package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
  913. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
  914. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
  915. package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
  916. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
  917. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
  918. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
  919. package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
  920. package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
  921. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
  922. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
  923. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
  924. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
  925. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
  926. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
  927. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
  928. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
  929. package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
  930. package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
  931. package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
  932. package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
  933. package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
  934. package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
  935. package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
  936. package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
  937. package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
  938. package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
  939. package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
  940. package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
  941. package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
  942. package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
  943. package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
  944. package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
  945. package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
  946. package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
  947. package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
  948. package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
  949. package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
  950. package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
  951. package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
  952. package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
  953. package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
  954. package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
  955. package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
  956. package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
  957. package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
  958. package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
  959. package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
  960. package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
  961. package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
  962. package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
  963. package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
  964. package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
  965. package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
  966. package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
  967. package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
  968. package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
  969. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
  970. package/templates/saas/scenarios/add-module/scenario.json +3 -3
  971. package/templates/saas/scenarios/add-provider/scenario.json +36 -0
  972. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +52 -2
  973. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
  974. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +75 -0
  975. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
  976. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +46 -4
  977. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
  978. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
  979. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
  980. package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
  981. package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
  982. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
  983. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
  984. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
  985. package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
  986. package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
  987. package/templates/saas/skeleton/backend-api/package.json.hbs +1 -1
  988. package/templates/saas/skeleton/backend-api/src/companion-exports.ts +13 -2
  989. package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
  990. package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
  991. package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
  992. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
  993. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
  994. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
  995. package/wildo-framework.info.json +1 -1
  996. package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
  997. package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
  998. package/templates/infra/k8s/middleware.yaml.hbs +0 -101
  999. package/templates/saas/scenarios/add-backend-provider/scenario.json +0 -17
  1000. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
  1001. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
  1002. package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +0 -44
@@ -0,0 +1,209 @@
1
+ /**
2
+ * The COMPOSED provider catalogue — the one place the CLI's secrets layer asks
3
+ * "which providers exist, and which environment variables carry their credentials?".
4
+ *
5
+ * ## Why this module exists (issue #329, audit finding PL-3)
6
+ *
7
+ * Every secrets and environment path used to answer that question from
8
+ * `EngineBackendProviderRegistry`, a map that by construction can only ever hold the engine's
9
+ * own modules. While every provider was engine-shipped that was invisible. It stopped being
10
+ * true with `providers/slack` (#341), the first provider shipped as its own package, and it
11
+ * becomes routine once the loading slice (#330) lets an application compose one.
12
+ *
13
+ * The consequence was not a missing feature but a SILENT SECURITY REGRESSION, in two places at
14
+ * once:
15
+ *
16
+ * - a package-shipped provider's key is attributable to no provider, so it is not classified
17
+ * sensitive — it can land in a Kubernetes `ConfigMap` instead of a `Secret`;
18
+ * - the per-runtime confinement filter allow-listed by the same registry and KEPT any key it
19
+ * could not attribute, "because it is configuration rather than a provider secret" — so the
20
+ * key was copied into every worker and minion environment, which is exactly what LLM-driven
21
+ * minion code can read.
22
+ *
23
+ * Neither logged, warned or refused. That is why the plan orders this slice BEFORE the loader.
24
+ *
25
+ * ## The two sources, one shape
26
+ *
27
+ * | tier | source | carries |
28
+ * |---|---|---|
29
+ * | engine | `EngineBackendProviderRegistry.modules` | metadata, capabilities, `secretsContract`, and the full `protocols[]` runtime contracts |
30
+ * | package / application | {@link ProviderCompanionContribution} | the same, MINUS the runtime contracts (a contribution is values-free DATA, so the CLI can read a provider whose backend module it cannot import) |
31
+ *
32
+ * **For CLASSIFICATION and CONFINEMENT, a contribution-sourced entry loses nothing, and that is
33
+ * measured rather than assumed.** Across all 22 engine providers, every `secretRef` named by any
34
+ * protocol's `runtimeContract` is already an `envVarName` declared in that same provider's
35
+ * `secretsContract` — zero exceptions, 25 occurrences. So `secretsContractShape` is a COMPLETE
36
+ * attribution source for those two questions: a package provider that ships only a `./companion`
37
+ * export is classified and confined exactly as well as an engine one.
38
+ *
39
+ * **The converse does NOT hold, and one consumer depends on it.** The contract half is a strict
40
+ * SUPERSET of what the bindings name — 13 engine contract keys are named by no binding at all
41
+ * (every `IMMUDB_*`, `POSTHOG_PROJECT_API_KEY`, `BETTERSTACK_SOURCE_TOKEN`,
42
+ * `ODOO_BASE_URL`/`_DB`/`_LOGIN`) — so anything that enumerates BINDINGS rather than the contract
43
+ * sees less than the whole provider. `wildo config sync` builds the CI
44
+ * `WILDO_SECRET_PROVIDER_ENV_*` block that way, so a contribution-sourced provider (zero bindings)
45
+ * contributes zero CI secret keys. That gap is pre-existing for those 13 engine keys and is
46
+ * tracked as issue #361; do not read the paragraph above as saying `protocolBindings: []` is
47
+ * harmless everywhere. It is harmless for the two questions this module answers.
48
+ *
49
+ * ## Why registration is a door rather than a constructor argument
50
+ *
51
+ * Discovery of an application's provider packages necessarily runs AFTER this module is
52
+ * imported — `credentials.schemas.ts` evaluates its sensitive-key set at module load, on the
53
+ * first import of the CLI's credential layer. So composition cannot be an argument threaded
54
+ * from a caller; it is a registration the discovery walk performs once it knows the
55
+ * application, and every derived view recomputes from it. See {@link catalogueGeneration}.
56
+ *
57
+ * The engine tier is never registered and never removed: it is the floor.
58
+ */
59
+ import { type BackendProtocolBinding, type BackendProviderModule } from '@wildo-ai/external-connectors-private/backend';
60
+ import { type DiscoveredProviderCompanionContribution, type WildoSaasConfig } from '@wildo-ai/platform-config-lib';
61
+ import type { ProviderCompanionContribution } from '@wildo-ai/saas-models';
62
+ /**
63
+ * The identity half a catalogue entry carries: package, tier, vendor, origin.
64
+ *
65
+ * Taken from the CONTRIBUTION's inferred type rather than from `ProviderIdentity`, because the
66
+ * two disagree on `origin`: the hand-written `ProviderIdentity` narrows it to the three-member
67
+ * union (`catalogue` present iff `GENERATED`), while the contribution schema types the field
68
+ * straight off `z.infer`, where it is the flat object the union's members all satisfy. This is
69
+ * therefore the widest common shape — an engine module's `ProviderMetadata` assigns to it, and a
70
+ * contribution's does too, with no cast on either side. Narrowing the wire record is territory A's
71
+ * decision, not this slice's.
72
+ */
73
+ export type ProviderCatalogueIdentity = NonNullable<ProviderCompanionContribution['identity']>;
74
+ /** One secret a provider declares, values-free. Mirrors `ProviderSecretContractShapeEntry`. */
75
+ export interface ProviderCatalogueSecret {
76
+ /** The provider-owned stable slug (the `secretsContract` key). */
77
+ slug: string;
78
+ /** The environment variable that carries the value. */
79
+ envVarName: string;
80
+ /** The provider refuses to boot without it once enabled. */
81
+ required: boolean;
82
+ description?: string;
83
+ }
84
+ /**
85
+ * One provider as the CLI's secrets layer sees it, whatever tier shipped it.
86
+ *
87
+ * Deliberately NOT `BackendProviderModule`: that type is only constructible by importing a
88
+ * provider's backend module, which is precisely what a package-shipped provider makes
89
+ * impossible for tooling. This is the intersection the secrets layer actually needs.
90
+ */
91
+ export interface ProviderSecretsCatalogueEntry {
92
+ providerRef: string;
93
+ /** Operator-facing label. Falls back to the ref — a contribution carries no display name. */
94
+ label: string;
95
+ /** Package / tier / vendor / origin, when the source declares it. */
96
+ identity?: ProviderCatalogueIdentity;
97
+ providerCapabilities: readonly string[];
98
+ /**
99
+ * Sorted by slug. Uniqueness on both slug and env-var name is enforced by
100
+ * `ProviderCompanionContributionSchema` at the WIRE boundary — which this door is not — so the
101
+ * ordering is re-established here rather than assumed, and uniqueness is a caller obligation
102
+ * that {@link registerDiscoveredProviderContributions} deliberately does not re-parse.
103
+ */
104
+ secrets: readonly ProviderCatalogueSecret[];
105
+ /**
106
+ * The provider's protocol bindings — EMPTY for a contribution-sourced entry, because a
107
+ * runtime contract is code and a contribution is data. Consumers that need bindings must
108
+ * tolerate the empty case rather than treating it as an unknown provider.
109
+ */
110
+ protocolBindings: readonly BackendProtocolBinding[];
111
+ /**
112
+ * The OTLP auth hint, when the source is a loadable module. A contribution does not carry it,
113
+ * so a package-shipped telemetry provider currently yields no header — the same outcome as an
114
+ * engine provider that declares none, and a gap owed to whichever slice makes the hint
115
+ * companion-safe.
116
+ */
117
+ otlpAuth?: BackendProviderModule['otlpAuth'];
118
+ }
119
+ /**
120
+ * Register provider contributions discovered outside the engine registry.
121
+ *
122
+ * This is the door the package-provider discovery walk (#330) calls once it has resolved an
123
+ * application's declared provider packages and read their `./companion` exports. Idempotent by
124
+ * ref: registering the same ref twice replaces the entry rather than duplicating it, so a
125
+ * re-run of discovery is safe.
126
+ *
127
+ * A ref that the ENGINE already ships is ignored, deliberately and loudly: the engine tier is
128
+ * the floor, and a package silently shadowing an engine provider's secret contract is exactly
129
+ * the substitution this layer must not perform.
130
+ */
131
+ export declare function registerDiscoveredProviderContributions(contributions: readonly ProviderCompanionContribution[]): void;
132
+ /**
133
+ * Discover an application's provider contributions AND register them, as one step.
134
+ *
135
+ * ## Why the pairing, and why here (2026-09-09)
136
+ *
137
+ * `resolveValidatedSaasProviderContributions` already pairs the WALK with the VALIDATION, for the
138
+ * reason its own JSDoc gives: three correct call sites with nothing making a fourth correct is the
139
+ * shape `.claude/rules/invariant-call-site-enumeration.md` is about. This is the same defect one
140
+ * step further along — every CLI caller resolved contributions and none of them registered the
141
+ * result, so {@link getComposedProviderSecretsCatalogue} was ENGINE-TIER ONLY in every CLI process
142
+ * that had, moments earlier, read the full catalogue off disk.
143
+ *
144
+ * What that cost is not abstract. {@link filterProviderEnvToScope} attributes a `providerEnv` key
145
+ * by asking this catalogue which provider declares it, and drops what it cannot attribute. So an
146
+ * application that declares `asana` in `providers.scopes.backend`, and authors the
147
+ * `ASANA_CLIENT_ID` / `ASANA_CLIENT_SECRET` its generated secrets contract names, had both keys
148
+ * dropped from the backend runtime's env — with a warning saying they "belong to no provider the
149
+ * CLI can see", naming `asana` in the very list of providers the runtime was scoped to. Measured
150
+ * 2026-09-09 on Wonder Todos: the drop reached every one of the catalogue-tier providers, which is
151
+ * the entire OAuth2 connect lane, because a provider registration cannot reach the process that
152
+ * performs the authorization-code exchange.
153
+ *
154
+ * It read as an authoring mistake and was a wiring gap. The engine tier worked throughout, which is
155
+ * exactly why it survived: every provider the framework ships is registered by the floor, so the
156
+ * only population that could reveal this is the one nobody had authored a secret for yet.
157
+ *
158
+ * Registration is idempotent per ref and additive, so calling this more than once in a process is
159
+ * safe; the engine tier always wins a collision (see {@link registerDiscoveredProviderContributions}).
160
+ */
161
+ export declare function resolveAndRegisterSaasProviderContributions(input: {
162
+ saasRoot: string;
163
+ saasConfig: Pick<WildoSaasConfig, 'modules' | 'services' | 'libraries' | 'minions' | 'providers' | 'workers'>;
164
+ }): Promise<DiscoveredProviderCompanionContribution[]>;
165
+ /**
166
+ * Drop every registered contribution. The engine tier is untouched — it is not registered.
167
+ *
168
+ * Used when discovery re-runs for a different application, and by tests. A CLI process that
169
+ * handles one application never needs it.
170
+ */
171
+ export declare function resetDiscoveredProviderContributions(): void;
172
+ /**
173
+ * Every provider the CLI can currently see: the engine tier, plus whatever discovery has
174
+ * registered. Insertion order is engine-first, then registration order, so callers that sort
175
+ * (the setup catalogue) and callers that do not (classification) both stay deterministic.
176
+ */
177
+ export declare function getComposedProviderSecretsCatalogue(): ReadonlyMap<string, ProviderSecretsCatalogueEntry>;
178
+ /** One provider by ref, or `undefined` when nothing in the composed catalogue claims it. */
179
+ export declare function getComposedProviderEntry(providerRef: string): ProviderSecretsCatalogueEntry | undefined;
180
+ /**
181
+ * Memoise a value derived from the composed catalogue, invalidated by registration.
182
+ *
183
+ * The point is not speed. It is that a derived view CANNOT be a module-load snapshot: the
184
+ * previous `PROVIDER_SENSITIVE_ENV_KEYS` was computed the moment its module was imported, which
185
+ * is always before discovery could have run, so a composed catalogue would have been silently
186
+ * ignored by the very classification it exists to feed.
187
+ */
188
+ export declare function memoiseOverCatalogue<T>(compute: () => T): () => T;
189
+ /**
190
+ * A `ReadonlySet<string>` whose contents are recomputed from the composed catalogue on every
191
+ * read, rather than frozen when the module was imported.
192
+ *
193
+ * Exists so `PROVIDER_SENSITIVE_ENV_KEYS` and `SENSITIVE_ENV_KEYS` can keep their exported
194
+ * NAMES and their `.has()` shape while becoming composition-aware — their consumers
195
+ * (`k8s-secrets-generator.service.ts`, `sync.command.ts`) live outside this slice's territory
196
+ * and must not need an edit to stay correct.
197
+ */
198
+ export declare class LiveEnvKeySet implements ReadonlySet<string> {
199
+ private readonly resolve;
200
+ constructor(resolve: () => ReadonlySet<string>);
201
+ get size(): number;
202
+ has(key: string): boolean;
203
+ forEach(callback: (value: string, value2: string, set: ReadonlySet<string>) => void, thisArg?: unknown): void;
204
+ keys(): ReturnType<ReadonlySet<string>['keys']>;
205
+ values(): ReturnType<ReadonlySet<string>['values']>;
206
+ entries(): ReturnType<ReadonlySet<string>['entries']>;
207
+ [Symbol.iterator](): ReturnType<ReadonlySet<string>[typeof Symbol.iterator]>;
208
+ }
209
+ //# sourceMappingURL=composed-provider-catalogue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composed-provider-catalogue.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials/composed-provider-catalogue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC3B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEL,KAAK,uCAA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environment variables carry their credentials?".
4
+ *
5
+ * ## Why this module exists (issue #329, audit finding PL-3)
6
+ *
7
+ * Every secrets and environment path used to answer that question from
8
+ * `EngineBackendProviderRegistry`, a map that by construction can only ever hold the engine's
9
+ * own modules. While every provider was engine-shipped that was invisible. It stopped being
10
+ * true with `providers/slack` (#341), the first provider shipped as its own package, and it
11
+ * becomes routine once the loading slice (#330) lets an application compose one.
12
+ *
13
+ * The consequence was not a missing feature but a SILENT SECURITY REGRESSION, in two places at
14
+ * once:
15
+ *
16
+ * - a package-shipped provider's key is attributable to no provider, so it is not classified
17
+ * sensitive — it can land in a Kubernetes `ConfigMap` instead of a `Secret`;
18
+ * - the per-runtime confinement filter allow-listed by the same registry and KEPT any key it
19
+ * could not attribute, "because it is configuration rather than a provider secret" — so the
20
+ * key was copied into every worker and minion environment, which is exactly what LLM-driven
21
+ * minion code can read.
22
+ *
23
+ * Neither logged, warned or refused. That is why the plan orders this slice BEFORE the loader.
24
+ *
25
+ * ## The two sources, one shape
26
+ *
27
+ * | tier | source | carries |
28
+ * |---|---|---|
29
+ * | engine | `EngineBackendProviderRegistry.modules` | metadata, capabilities, `secretsContract`, and the full `protocols[]` runtime contracts |
30
+ * | package / application | {@link ProviderCompanionContribution} | the same, MINUS the runtime contracts (a contribution is values-free DATA, so the CLI can read a provider whose backend module it cannot import) |
31
+ *
32
+ * **For CLASSIFICATION and CONFINEMENT, a contribution-sourced entry loses nothing, and that is
33
+ * measured rather than assumed.** Across all 22 engine providers, every `secretRef` named by any
34
+ * protocol's `runtimeContract` is already an `envVarName` declared in that same provider's
35
+ * `secretsContract` — zero exceptions, 25 occurrences. So `secretsContractShape` is a COMPLETE
36
+ * attribution source for those two questions: a package provider that ships only a `./companion`
37
+ * export is classified and confined exactly as well as an engine one.
38
+ *
39
+ * **The converse does NOT hold, and one consumer depends on it.** The contract half is a strict
40
+ * SUPERSET of what the bindings name — 13 engine contract keys are named by no binding at all
41
+ * (every `IMMUDB_*`, `POSTHOG_PROJECT_API_KEY`, `BETTERSTACK_SOURCE_TOKEN`,
42
+ * `ODOO_BASE_URL`/`_DB`/`_LOGIN`) — so anything that enumerates BINDINGS rather than the contract
43
+ * sees less than the whole provider. `wildo config sync` builds the CI
44
+ * `WILDO_SECRET_PROVIDER_ENV_*` block that way, so a contribution-sourced provider (zero bindings)
45
+ * contributes zero CI secret keys. That gap is pre-existing for those 13 engine keys and is
46
+ * tracked as issue #361; do not read the paragraph above as saying `protocolBindings: []` is
47
+ * harmless everywhere. It is harmless for the two questions this module answers.
48
+ *
49
+ * ## Why registration is a door rather than a constructor argument
50
+ *
51
+ * Discovery of an application's provider packages necessarily runs AFTER this module is
52
+ * imported — `credentials.schemas.ts` evaluates its sensitive-key set at module load, on the
53
+ * first import of the CLI's credential layer. So composition cannot be an argument threaded
54
+ * from a caller; it is a registration the discovery walk performs once it knows the
55
+ * application, and every derived view recomputes from it. See {@link catalogueGeneration}.
56
+ *
57
+ * The engine tier is never registered and never removed: it is the floor.
58
+ */
59
+ import { EngineBackendProviderRegistry, } from '@wildo-ai/external-connectors-private/backend';
60
+ import { resolveValidatedSaasProviderContributions, } from '@wildo-ai/platform-config-lib';
61
+ // ---------------------------------------------------------------------------
62
+ // Composition state
63
+ // ---------------------------------------------------------------------------
64
+ /** Registered non-engine contributions, keyed by ref. */
65
+ const discoveredContributions = new Map();
66
+ /**
67
+ * Bumped by every registration and reset. Derived views memoise against it, so a view computed
68
+ * before discovery cannot survive discovery — the stale-singleton failure this slice removes.
69
+ */
70
+ let catalogueGeneration = 0;
71
+ /**
72
+ * Register provider contributions discovered outside the engine registry.
73
+ *
74
+ * This is the door the package-provider discovery walk (#330) calls once it has resolved an
75
+ * application's declared provider packages and read their `./companion` exports. Idempotent by
76
+ * ref: registering the same ref twice replaces the entry rather than duplicating it, so a
77
+ * re-run of discovery is safe.
78
+ *
79
+ * A ref that the ENGINE already ships is ignored, deliberately and loudly: the engine tier is
80
+ * the floor, and a package silently shadowing an engine provider's secret contract is exactly
81
+ * the substitution this layer must not perform.
82
+ */
83
+ export function registerDiscoveredProviderContributions(contributions) {
84
+ for (const contribution of contributions) {
85
+ if (EngineBackendProviderRegistry.getProviderByRef(contribution.ref)) {
86
+ // eslint-disable-next-line no-console
87
+ console.warn(`[provider-catalogue] Contribution for '${contribution.ref}' is ignored: an engine-shipped `
88
+ + 'provider already owns that ref, and the engine tier is authoritative for its secrets contract.');
89
+ continue;
90
+ }
91
+ discoveredContributions.set(contribution.ref, contribution);
92
+ }
93
+ catalogueGeneration += 1;
94
+ }
95
+ /**
96
+ * Discover an application's provider contributions AND register them, as one step.
97
+ *
98
+ * ## Why the pairing, and why here (2026-09-09)
99
+ *
100
+ * `resolveValidatedSaasProviderContributions` already pairs the WALK with the VALIDATION, for the
101
+ * reason its own JSDoc gives: three correct call sites with nothing making a fourth correct is the
102
+ * shape `.claude/rules/invariant-call-site-enumeration.md` is about. This is the same defect one
103
+ * step further along — every CLI caller resolved contributions and none of them registered the
104
+ * result, so {@link getComposedProviderSecretsCatalogue} was ENGINE-TIER ONLY in every CLI process
105
+ * that had, moments earlier, read the full catalogue off disk.
106
+ *
107
+ * What that cost is not abstract. {@link filterProviderEnvToScope} attributes a `providerEnv` key
108
+ * by asking this catalogue which provider declares it, and drops what it cannot attribute. So an
109
+ * application that declares `asana` in `providers.scopes.backend`, and authors the
110
+ * `ASANA_CLIENT_ID` / `ASANA_CLIENT_SECRET` its generated secrets contract names, had both keys
111
+ * dropped from the backend runtime's env — with a warning saying they "belong to no provider the
112
+ * CLI can see", naming `asana` in the very list of providers the runtime was scoped to. Measured
113
+ * 2026-09-09 on Wonder Todos: the drop reached every one of the catalogue-tier providers, which is
114
+ * the entire OAuth2 connect lane, because a provider registration cannot reach the process that
115
+ * performs the authorization-code exchange.
116
+ *
117
+ * It read as an authoring mistake and was a wiring gap. The engine tier worked throughout, which is
118
+ * exactly why it survived: every provider the framework ships is registered by the floor, so the
119
+ * only population that could reveal this is the one nobody had authored a secret for yet.
120
+ *
121
+ * Registration is idempotent per ref and additive, so calling this more than once in a process is
122
+ * safe; the engine tier always wins a collision (see {@link registerDiscoveredProviderContributions}).
123
+ */
124
+ export async function resolveAndRegisterSaasProviderContributions(input) {
125
+ const contributions = await resolveValidatedSaasProviderContributions(input);
126
+ registerDiscoveredProviderContributions(contributions);
127
+ return contributions;
128
+ }
129
+ /**
130
+ * Drop every registered contribution. The engine tier is untouched — it is not registered.
131
+ *
132
+ * Used when discovery re-runs for a different application, and by tests. A CLI process that
133
+ * handles one application never needs it.
134
+ */
135
+ export function resetDiscoveredProviderContributions() {
136
+ discoveredContributions.clear();
137
+ catalogueGeneration += 1;
138
+ }
139
+ // ---------------------------------------------------------------------------
140
+ // The composed view
141
+ // ---------------------------------------------------------------------------
142
+ function entryFromEngineModule(module) {
143
+ const secretsContract = module.secretsContract;
144
+ return {
145
+ providerRef: module.metadata.ref,
146
+ label: module.metadata.displayName ?? module.metadata.ref,
147
+ identity: {
148
+ packageName: module.metadata.packageName,
149
+ tier: module.metadata.tier,
150
+ vendor: module.metadata.vendor,
151
+ origin: module.metadata.origin,
152
+ },
153
+ providerCapabilities: [...module.providerCapabilities],
154
+ secrets: Object.entries(secretsContract ?? {})
155
+ .map(([slug, entry]) => ({
156
+ slug,
157
+ envVarName: entry.envVarName,
158
+ required: Boolean(entry.required),
159
+ description: entry.description,
160
+ }))
161
+ .sort((left, right) => left.slug.localeCompare(right.slug)),
162
+ protocolBindings: module.protocols,
163
+ otlpAuth: module.otlpAuth,
164
+ };
165
+ }
166
+ function entryFromContribution(contribution) {
167
+ return {
168
+ providerRef: contribution.ref,
169
+ // A contribution carries `identity` but no display name — the metadata field is
170
+ // frontend-facing copy and stays out of the values-free wire record. The ref is the honest
171
+ // fallback, and it is what an unnamed engine provider gets too.
172
+ label: contribution.ref,
173
+ identity: contribution.identity,
174
+ providerCapabilities: contribution.providerCapabilities ?? [],
175
+ secrets: (contribution.secretsContractShape ?? [])
176
+ .map((entry) => ({
177
+ slug: entry.slug,
178
+ envVarName: entry.envVarName,
179
+ required: entry.required,
180
+ description: entry.description,
181
+ }))
182
+ // Re-sorted rather than trusted: the schema orders these, but this door accepts a
183
+ // contribution object, not a parsed wire record, so the ordering is only guaranteed where it
184
+ // is performed. The engine branch sorts for the same reason.
185
+ .sort((left, right) => left.slug.localeCompare(right.slug)),
186
+ protocolBindings: [],
187
+ };
188
+ }
189
+ let cachedCatalogue;
190
+ let cachedCatalogueGeneration = -1;
191
+ /**
192
+ * Every provider the CLI can currently see: the engine tier, plus whatever discovery has
193
+ * registered. Insertion order is engine-first, then registration order, so callers that sort
194
+ * (the setup catalogue) and callers that do not (classification) both stay deterministic.
195
+ */
196
+ export function getComposedProviderSecretsCatalogue() {
197
+ if (cachedCatalogue && cachedCatalogueGeneration === catalogueGeneration)
198
+ return cachedCatalogue;
199
+ const catalogue = new Map();
200
+ for (const module of EngineBackendProviderRegistry.modules.values()) {
201
+ catalogue.set(module.metadata.ref, entryFromEngineModule(module));
202
+ }
203
+ for (const contribution of discoveredContributions.values()) {
204
+ if (catalogue.has(contribution.ref))
205
+ continue;
206
+ catalogue.set(contribution.ref, entryFromContribution(contribution));
207
+ }
208
+ cachedCatalogue = catalogue;
209
+ cachedCatalogueGeneration = catalogueGeneration;
210
+ return catalogue;
211
+ }
212
+ /** One provider by ref, or `undefined` when nothing in the composed catalogue claims it. */
213
+ export function getComposedProviderEntry(providerRef) {
214
+ return getComposedProviderSecretsCatalogue().get(providerRef);
215
+ }
216
+ /**
217
+ * Memoise a value derived from the composed catalogue, invalidated by registration.
218
+ *
219
+ * The point is not speed. It is that a derived view CANNOT be a module-load snapshot: the
220
+ * previous `PROVIDER_SENSITIVE_ENV_KEYS` was computed the moment its module was imported, which
221
+ * is always before discovery could have run, so a composed catalogue would have been silently
222
+ * ignored by the very classification it exists to feed.
223
+ */
224
+ export function memoiseOverCatalogue(compute) {
225
+ let cached;
226
+ let cachedGeneration = -1;
227
+ return () => {
228
+ if (cachedGeneration !== catalogueGeneration) {
229
+ cached = compute();
230
+ cachedGeneration = catalogueGeneration;
231
+ }
232
+ return cached;
233
+ };
234
+ }
235
+ /**
236
+ * A `ReadonlySet<string>` whose contents are recomputed from the composed catalogue on every
237
+ * read, rather than frozen when the module was imported.
238
+ *
239
+ * Exists so `PROVIDER_SENSITIVE_ENV_KEYS` and `SENSITIVE_ENV_KEYS` can keep their exported
240
+ * NAMES and their `.has()` shape while becoming composition-aware — their consumers
241
+ * (`k8s-secrets-generator.service.ts`, `sync.command.ts`) live outside this slice's territory
242
+ * and must not need an edit to stay correct.
243
+ */
244
+ export class LiveEnvKeySet {
245
+ resolve;
246
+ constructor(resolve) {
247
+ this.resolve = resolve;
248
+ }
249
+ get size() { return this.resolve().size; }
250
+ has(key) { return this.resolve().has(key); }
251
+ forEach(callback, thisArg) {
252
+ for (const key of this.resolve())
253
+ callback.call(thisArg, key, key, this);
254
+ }
255
+ // Return types are read OFF `ReadonlySet` rather than spelled as `IterableIterator`: the
256
+ // standard library renamed these to `SetIterator` (which also carries `[Symbol.dispose]`) in a
257
+ // recent lib, so a spelled-out type breaks on one lib version or the other.
258
+ keys() { return this.resolve().keys(); }
259
+ values() { return this.resolve().values(); }
260
+ entries() { return this.resolve().entries(); }
261
+ [Symbol.iterator]() { return this.resolve()[Symbol.iterator](); }
262
+ }
263
+ //# sourceMappingURL=composed-provider-catalogue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composed-provider-catalogue.js","sourceRoot":"","sources":["../../../../src/services/credentials/composed-provider-catalogue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,EACL,6BAA6B,GAG9B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,yCAAyC,GAG1C,MAAM,+BAA+B,CAAC;AA+DvC,8EAA8E;AAC9E,oBAAoB;AACpB,8EAA8E;AAE9E,yDAAyD;AACzD,MAAM,uBAAuB,GAAG,IAA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ent":["/**\n * The COMPOSED provider catalogue — the one place the CLI's secrets layer asks\n * \"which providers exist, and which environment variables carry their credentials?\".\n *\n * ## Why this module exists (issue #329, audit finding PL-3)\n *\n * Every secrets and environment path used to answer that question from\n * `EngineBackendProviderRegistry`, a map that by construction can only ever hold the engine's\n * own modules. While every provider was engine-shipped that was invisible. It stopped being\n * true with `providers/slack` (#341), the first provider shipped as its own package, and it\n * becomes routine once the loading slice (#330) lets an application compose one.\n *\n * The consequence was not a missing feature but a SILENT SECURITY REGRESSION, in two places at\n * once:\n *\n * - a package-shipped provider's key is attributable to no provider, so it is not classified\n * sensitive — it can land in a Kubernetes `ConfigMap` instead of a `Secret`;\n * - the per-runtime confinement filter allow-listed by the same registry and KEPT any key it\n * could not attribute, \"because it is configuration rather than a provider secret\" — so the\n * key was copied into every worker and minion environment, which is exactly what LLM-driven\n * minion code can read.\n *\n * Neither logged, warned or refused. That is why the plan orders this slice BEFORE the loader.\n *\n * ## The two sources, one shape\n *\n * | tier | source | carries |\n * |---|---|---|\n * | engine | `EngineBackendProviderRegistry.modules` | metadata, capabilities, `secretsContract`, and the full `protocols[]` runtime contracts |\n * | package / application | {@link ProviderCompanionContribution} | the same, MINUS the runtime contracts (a contribution is values-free DATA, so the CLI can read a provider whose backend module it cannot import) |\n *\n * **For CLASSIFICATION and CONFINEMENT, a contribution-sourced entry loses nothing, and that is\n * measured rather than assumed.** Across all 22 engine providers, every `secretRef` named by any\n * protocol's `runtimeContract` is already an `envVarName` declared in that same provider's\n * `secretsContract` — zero exceptions, 25 occurrences. So `secretsContractShape` is a COMPLETE\n * attribution source for those two questions: a package provider that ships only a `./companion`\n * export is classified and confined exactly as well as an engine one.\n *\n * **The converse does NOT hold, and one consumer depends on it.** The contract half is a strict\n * SUPERSET of what the bindings name — 13 engine contract keys are named by no binding at all\n * (every `IMMUDB_*`, `POSTHOG_PROJECT_API_KEY`, `BETTERSTACK_SOURCE_TOKEN`,\n * `ODOO_BASE_URL`/`_DB`/`_LOGIN`) — so anything that enumerates BINDINGS rather than the contract\n * sees less than the whole provider. `wildo config sync` builds the CI\n * `WILDO_SECRET_PROVIDER_ENV_*` block that way, so a contribution-sourced provider (zero bindings)\n * contributes zero CI secret keys. That gap is pre-existing for those 13 engine keys and is\n * tracked as issue #361; do not read the paragraph above as saying `protocolBindings: []` is\n * harmless everywhere. It is harmless for the two questions this module answers.\n *\n * ## Why registration is a door rather than a constructor argument\n *\n * Discovery of an application's provider packages necessarily runs AFTER this module is\n * imported — `credentials.schemas.ts` evaluates its sensitive-key set at module load, on the\n * first import of the CLI's credential layer. So composition cannot be an argument threaded\n * from a caller; it is a registration the discovery walk performs once it knows the\n * application, and every derived view recomputes from it. See {@link catalogueGeneration}.\n *\n * The engine tier is never registered and never removed: it is the floor.\n */\n\nimport {\n EngineBackendProviderRegistry,\n type BackendProtocolBinding,\n type BackendProviderModule,\n} from '@wildo-ai/external-connectors-private/backend';\nimport {\n resolveValidatedSaasProviderContributions,\n type DiscoveredProviderCompanionContribution,\n type WildoSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport type { ProviderCompanionContribution } from '@wildo-ai/saas-models';\n\n/**\n * The identity half a catalogue entry carries: package, tier, vendor, origin.\n *\n * Taken from the CONTRIBUTION's inferred type rather than from `ProviderIdentity`, because the\n * two disagree on `origin`: the hand-written `ProviderIdentity` narrows it to the three-member\n * union (`catalogue` present iff `GENERATED`), while the contribution schema types the field\n * straight off `z.infer`, where it is the flat object the union's members all satisfy. This is\n * therefore the widest common shape — an engine module's `ProviderMetadata` assigns to it, and a\n * contribution's does too, with no cast on either side. Narrowing the wire record is territory A's\n * decision, not this slice's.\n */\nexport type ProviderCatalogueIdentity = NonNullable<ProviderCompanionContribution['identity']>;\n\n/** One secret a provider declares, values-free. Mirrors `ProviderSecretContractShapeEntry`. */\nexport interface ProviderCatalogueSecret {\n /** The provider-owned stable slug (the `secretsContract` key). */\n slug: string;\n /** The environment variable that carries the value. */\n envVarName: string;\n /** The provider refuses to boot without it once enabled. */\n required: boolean;\n description?: string;\n}\n\n/**\n * One provider as the CLI's secrets layer sees it, whatever tier shipped it.\n *\n * Deliberately NOT `BackendProviderModule`: that type is only constructible by importing a\n * provider's backend module, which is precisely what a package-shipped provider makes\n * impossible for tooling. This is the intersection the secrets layer actually needs.\n */\nexport interface ProviderSecretsCatalogueEntry {\n providerRef: string;\n /** Operator-facing label. Falls back to the ref — a contribution carries no display name. */\n label: string;\n /** Package / tier / vendor / origin, when the source declares it. */\n identity?: ProviderCatalogueIdentity;\n providerCapabilities: readonly string[];\n /**\n * Sorted by slug. Uniqueness on both slug and env-var name is enforced by\n * `ProviderCompanionContributionSchema` at the WIRE boundary — which this door is not — so the\n * ordering is re-established here rather than assumed, and uniqueness is a caller obligation\n * that {@link registerDiscoveredProviderContributions} deliberately does not re-parse.\n */\n secrets: readonly ProviderCatalogueSecret[];\n /**\n * The provider's protocol bindings — EMPTY for a contribution-sourced entry, because a\n * runtime contract is code and a contribution is data. Consumers that need bindings must\n * tolerate the empty case rather than treating it as an unknown provider.\n */\n protocolBindings: readonly BackendProtocolBinding[];\n /**\n * The OTLP auth hint, when the source is a loadable module. A contribution does not carry it,\n * so a package-shipped telemetry provider currently yields no header — the same outcome as an\n * engine provider that declares none, and a gap owed to whichever slice makes the hint\n * companion-safe.\n */\n otlpAuth?: BackendProviderModule['otlpAuth'];\n}\n\n// ---------------------------------------------------------------------------\n// Composition state\n// ---------------------------------------------------------------------------\n\n/** Registered non-engine contributions, keyed by ref. */\nconst discoveredContributions = new Map<string, ProviderCompanionContribution>();\n\n/**\n * Bumped by every registration and reset. Derived views memoise against it, so a view computed\n * before discovery cannot survive discovery — the stale-singleton failure this slice removes.\n */\nlet catalogueGeneration = 0;\n\n/**\n * Register provider contributions discovered outside the engine registry.\n *\n * This is the door the package-provider discovery walk (#330) calls once it has resolved an\n * application's declared provider packages and read their `./companion` exports. Idempotent by\n * ref: registering the same ref twice replaces the entry rather than duplicating it, so a\n * re-run of discovery is safe.\n *\n * A ref that the ENGINE already ships is ignored, deliberately and loudly: the engine tier is\n * the floor, and a package silently shadowing an engine provider's secret contract is exactly\n * the substitution this layer must not perform.\n */\nexport function registerDiscoveredProviderContributions(\n contributions: readonly ProviderCompanionContribution[],\n): void {\n for (const contribution of contributions) {\n if (EngineBackendProviderRegistry.getProviderByRef(contribution.ref as never)) {\n // eslint-disable-next-line no-console\n console.warn(\n `[provider-catalogue] Contribution for '${contribution.ref}' is ignored: an engine-shipped `\n + 'provider already owns that ref, and the engine tier is authoritative for its secrets contract.',\n );\n continue;\n }\n discoveredContributions.set(contribution.ref, contribution);\n }\n catalogueGeneration += 1;\n}\n\n/**\n * Discover an application's provider contributions AND register them, as one step.\n *\n * ## Why the pairing, and why here (2026-09-09)\n *\n * `resolveValidatedSaasProviderContributions` already pairs the WALK with the VALIDATION, for the\n * reason its own JSDoc gives: three correct call sites with nothing making a fourth correct is the\n * shape `.claude/rules/invariant-call-site-enumeration.md` is about. This is the same defect one\n * step further along — every CLI caller resolved contributions and none of them registered the\n * result, so {@link getComposedProviderSecretsCatalogue} was ENGINE-TIER ONLY in every CLI process\n * that had, moments earlier, read the full catalogue off disk.\n *\n * What that cost is not abstract. {@link filterProviderEnvToScope} attributes a `providerEnv` key\n * by asking this catalogue which provider declares it, and drops what it cannot attribute. So an\n * application that declares `asana` in `providers.scopes.backend`, and authors the\n * `ASANA_CLIENT_ID` / `ASANA_CLIENT_SECRET` its generated secrets contract names, had both keys\n * dropped from the backend runtime's env — with a warning saying they \"belong to no provider the\n * CLI can see\", naming `asana` in the very list of providers the runtime was scoped to. Measured\n * 2026-09-09 on Wonder Todos: the drop reached every one of the catalogue-tier providers, which is\n * the entire OAuth2 connect lane, because a provider registration cannot reach the process that\n * performs the authorization-code exchange.\n *\n * It read as an authoring mistake and was a wiring gap. The engine tier worked throughout, which is\n * exactly why it survived: every provider the framework ships is registered by the floor, so the\n * only population that could reveal this is the one nobody had authored a secret for yet.\n *\n * Registration is idempotent per ref and additive, so calling this more than once in a process is\n * safe; the engine tier always wins a collision (see {@link registerDiscoveredProviderContributions}).\n */\nexport async function resolveAndRegisterSaasProviderContributions(input: {\n saasRoot: string;\n saasConfig: Pick<\n WildoSaasConfig,\n 'modules' | 'services' | 'libraries' | 'minions' | 'providers' | 'workers'\n >;\n}): Promise<DiscoveredProviderCompanionContribution[]> {\n const contributions = await resolveValidatedSaasProviderContributions(input);\n registerDiscoveredProviderContributions(contributions);\n return contributions;\n}\n\n/**\n * Drop every registered contribution. The engine tier is untouched — it is not registered.\n *\n * Used when discovery re-runs for a different application, and by tests. A CLI process that\n * handles one application never needs it.\n */\nexport function resetDiscoveredProviderContributions(): void {\n discoveredContributions.clear();\n catalogueGeneration += 1;\n}\n\n// ---------------------------------------------------------------------------\n// The composed view\n// ---------------------------------------------------------------------------\n\nfunction entryFromEngineModule(module: BackendProviderModule): ProviderSecretsCatalogueEntry {\n const secretsContract = module.secretsContract as Record<\n string,\n { envVarName: string; required?: boolean; description?: string }\n >;\n return {\n providerRef: module.metadata.ref,\n label: module.metadata.displayName ?? module.metadata.ref,\n identity: {\n packageName: module.metadata.packageName,\n tier: module.metadata.tier,\n vendor: module.metadata.vendor,\n origin: module.metadata.origin,\n },\n providerCapabilities: [...module.providerCapabilities],\n secrets: Object.entries(secretsContract ?? {})\n .map(([slug, entry]) => ({\n slug,\n envVarName: entry.envVarName,\n required: Boolean(entry.required),\n description: entry.description,\n }))\n .sort((left, right) => left.slug.localeCompare(right.slug)),\n protocolBindings: module.protocols,\n otlpAuth: module.otlpAuth,\n };\n}\n\nfunction entryFromContribution(\n contribution: ProviderCompanionContribution,\n): ProviderSecretsCatalogueEntry {\n return {\n providerRef: contribution.ref,\n // A contribution carries `identity` but no display name — the metadata field is\n // frontend-facing copy and stays out of the values-free wire record. The ref is the honest\n // fallback, and it is what an unnamed engine provider gets too.\n label: contribution.ref,\n identity: contribution.identity,\n providerCapabilities: contribution.providerCapabilities ?? [],\n secrets: (contribution.secretsContractShape ?? [])\n .map((entry) => ({\n slug: entry.slug,\n envVarName: entry.envVarName,\n required: entry.required,\n description: entry.description,\n }))\n // Re-sorted rather than trusted: the schema orders these, but this door accepts a\n // contribution object, not a parsed wire record, so the ordering is only guaranteed where it\n // is performed. The engine branch sorts for the same reason.\n .sort((left, right) => left.slug.localeCompare(right.slug)),\n protocolBindings: [],\n };\n}\n\nlet cachedCatalogue: ReadonlyMap<string, ProviderSecretsCatalogueEntry> | undefined;\nlet cachedCatalogueGeneration = -1;\n\n/**\n * Every provider the CLI can currently see: the engine tier, plus whatever discovery has\n * registered. Insertion order is engine-first, then registration order, so callers that sort\n * (the setup catalogue) and callers that do not (classification) both stay deterministic.\n */\nexport function getComposedProviderSecretsCatalogue(): ReadonlyMap<string, ProviderSecretsCatalogueEntry> {\n if (cachedCatalogue && cachedCatalogueGeneration === catalogueGeneration) return cachedCatalogue;\n\n const catalogue = new Map<string, ProviderSecretsCatalogueEntry>();\n for (const module of EngineBackendProviderRegistry.modules.values()) {\n catalogue.set(module.metadata.ref, entryFromEngineModule(module));\n }\n for (const contribution of discoveredContributions.values()) {\n if (catalogue.has(contribution.ref)) continue;\n catalogue.set(contribution.ref, entryFromContribution(contribution));\n }\n\n cachedCatalogue = catalogue;\n cachedCatalogueGeneration = catalogueGeneration;\n return catalogue;\n}\n\n/** One provider by ref, or `undefined` when nothing in the composed catalogue claims it. */\nexport function getComposedProviderEntry(providerRef: string): ProviderSecretsCatalogueEntry | undefined {\n return getComposedProviderSecretsCatalogue().get(providerRef);\n}\n\n/**\n * Memoise a value derived from the composed catalogue, invalidated by registration.\n *\n * The point is not speed. It is that a derived view CANNOT be a module-load snapshot: the\n * previous `PROVIDER_SENSITIVE_ENV_KEYS` was computed the moment its module was imported, which\n * is always before discovery could have run, so a composed catalogue would have been silently\n * ignored by the very classification it exists to feed.\n */\nexport function memoiseOverCatalogue<T>(compute: () => T): () => T {\n let cached: T | undefined;\n let cachedGeneration = -1;\n return () => {\n if (cachedGeneration !== catalogueGeneration) {\n cached = compute();\n cachedGeneration = catalogueGeneration;\n }\n return cached as T;\n };\n}\n\n/**\n * A `ReadonlySet<string>` whose contents are recomputed from the composed catalogue on every\n * read, rather than frozen when the module was imported.\n *\n * Exists so `PROVIDER_SENSITIVE_ENV_KEYS` and `SENSITIVE_ENV_KEYS` can keep their exported\n * NAMES and their `.has()` shape while becoming composition-aware — their consumers\n * (`k8s-secrets-generator.service.ts`, `sync.command.ts`) live outside this slice's territory\n * and must not need an edit to stay correct.\n */\nexport class LiveEnvKeySet implements ReadonlySet<string> {\n constructor(private readonly resolve: () => ReadonlySet<string>) {}\n\n get size(): number { return this.resolve().size; }\n has(key: string): boolean { return this.resolve().has(key); }\n forEach(callback: (value: string, value2: string, set: ReadonlySet<string>) => void, thisArg?: unknown): void {\n for (const key of this.resolve()) callback.call(thisArg, key, key, this);\n }\n // Return types are read OFF `ReadonlySet` rather than spelled as `IterableIterator`: the\n // standard library renamed these to `SetIterator` (which also carries `[Symbol.dispose]`) in a\n // recent lib, so a spelled-out type breaks on one lib version or the other.\n keys(): ReturnType<ReadonlySet<string>['keys']> { return this.resolve().keys(); }\n values(): ReturnType<ReadonlySet<string>['values']> { return this.resolve().values(); }\n entries(): ReturnType<ReadonlySet<string>['entries']> { return this.resolve().entries(); }\n [Symbol.iterator](): ReturnType<ReadonlySet<string>[typeof Symbol.iterator]> { return this.resolve()[Symbol.iterator](); }\n}\n"]}
@@ -55,6 +55,27 @@ export declare enum WildoCliInitAdminEnvKeys {
55
55
  WILDO_INIT_ADMIN_LASTNAME = "WILDO_INIT_ADMIN_LASTNAME",
56
56
  WILDO_INIT_ADMIN_PASSWORD = "WILDO_INIT_ADMIN_PASSWORD"
57
57
  }
58
+ /**
59
+ * The same one-shot CLI contract, for the SECOND administrator (#575).
60
+ *
61
+ * A separate enum rather than four more members on {@link WildoCliInitAdminEnvKeys}, because the two
62
+ * identities have different provenance rules and a shared enum would hide that. The admin's fields
63
+ * are always operator-authored; the approver's are operator-authored on a REMOTE environment and
64
+ * DERIVED from the admin on a local one. Reading them from one vocabulary invites a caller to treat
65
+ * a derived value and a stated one as interchangeable, which is the whole distinction
66
+ * {@link resolveApproverIdentity} exists to keep.
67
+ *
68
+ * Unlike the admin keys the PASSWORD is not optional-with-a-generator here: locally the approver
69
+ * shares the admin's password by construction, and remotely a generated password nobody was told
70
+ * about would produce an approver who cannot sign in — an account that exists and cannot act is
71
+ * worse than a refusal, because the refusal is the part that gets fixed.
72
+ */
73
+ export declare enum WildoCliInitApproverEnvKeys {
74
+ WILDO_INIT_APPROVER_EMAIL = "WILDO_INIT_APPROVER_EMAIL",
75
+ WILDO_INIT_APPROVER_FIRSTNAME = "WILDO_INIT_APPROVER_FIRSTNAME",
76
+ WILDO_INIT_APPROVER_LASTNAME = "WILDO_INIT_APPROVER_LASTNAME",
77
+ WILDO_INIT_APPROVER_PASSWORD = "WILDO_INIT_APPROVER_PASSWORD"
78
+ }
58
79
  export interface ProviderKeysInput {
59
80
  /**
60
81
  * Provider secrets keyed by their exact env-var name (e.g. `OPENAI_API_KEY`,
@@ -80,15 +101,7 @@ export declare const DEFAULT_PLATFORM_ENV_INTERNAL_SERVICE_CREDENTIAL_USERNAME:
80
101
  readonly RABBITMQ_ADMIN_USERNAME: "wildo";
81
102
  readonly MINIO_ACCESS_KEY: "wildo";
82
103
  };
83
- /**
84
- * Env var keys classified as sensitive (credentials, passwords, API keys).
85
- * Used to separate secret values from plain-text config when generating
86
- * deployment artifacts (K8s Secret vs ConfigMap, Docker env_file, etc.).
87
- *
88
- * Infrastructure keys are listed explicitly. Provider credentials are derived
89
- * dynamically from `EngineBackendProviderRegistry` via `PROVIDER_SENSITIVE_ENV_KEYS`.
90
- */
91
- export declare const SENSITIVE_ENV_KEYS: Set<string>;
104
+ export declare const SENSITIVE_ENV_KEYS: ReadonlySet<string>;
92
105
  export declare const PlatformEnvSecretsJson_Schema: z.ZodObject<{
93
106
  mongodb: z.ZodOptional<z.ZodObject<{
94
107
  rootUser: z.ZodString;
@@ -129,6 +142,12 @@ export declare const PlatformEnvSecretsJson_Schema: z.ZodObject<{
129
142
  firstName: z.ZodString;
130
143
  lastName: z.ZodString;
131
144
  }, z.core.$strip>;
145
+ approver: z.ZodOptional<z.ZodObject<{
146
+ email: z.ZodString;
147
+ password: z.ZodString;
148
+ firstName: z.ZodString;
149
+ lastName: z.ZodString;
150
+ }, z.core.$strip>>;
132
151
  atlas: z.ZodOptional<z.ZodObject<{
133
152
  apiPublicKey: z.ZodString;
134
153
  apiPrivateKey: z.ZodString;
@@ -254,12 +273,6 @@ export declare const PlatformEnvConfigJson_Schema: z.ZodObject<{
254
273
  port: z.ZodOptional<z.ZodNumber>;
255
274
  database: z.ZodOptional<z.ZodString>;
256
275
  }, z.core.$strict>>;
257
- gotenberg: z.ZodOptional<z.ZodObject<{
258
- source: z.ZodEnum<typeof BackingServiceSource>;
259
- provider: z.ZodOptional<z.ZodString>;
260
- host: z.ZodOptional<z.ZodString>;
261
- port: z.ZodOptional<z.ZodNumber>;
262
- }, z.core.$strict>>;
263
276
  clamav: z.ZodOptional<z.ZodObject<{
264
277
  source: z.ZodEnum<typeof BackingServiceSource>;
265
278
  provider: z.ZodOptional<z.ZodString>;
@@ -273,12 +286,6 @@ export declare const PlatformEnvConfigJson_Schema: z.ZodObject<{
273
286
  port: z.ZodOptional<z.ZodNumber>;
274
287
  database: z.ZodOptional<z.ZodString>;
275
288
  }, z.core.$strict>>;
276
- "metrics-telemetry": z.ZodOptional<z.ZodObject<{
277
- source: z.ZodEnum<typeof BackingServiceSource>;
278
- provider: z.ZodOptional<z.ZodString>;
279
- host: z.ZodOptional<z.ZodString>;
280
- port: z.ZodOptional<z.ZodNumber>;
281
- }, z.core.$strict>>;
282
289
  backup: z.ZodOptional<z.ZodObject<{
283
290
  source: z.ZodEnum<typeof BackingServiceSource>;
284
291
  provider: z.ZodOptional<z.ZodString>;
@@ -343,7 +350,7 @@ export declare const PlatformEnvConfigJson_Schema: z.ZodObject<{
343
350
  */
344
351
  providerSelection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("@wildo-ai/saas-models").EngineCapability> & z.core.$partial, z.ZodObject<{
345
352
  primary: z.ZodString;
346
- fallbacks: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
+ whenUnavailable: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
354
  }, z.core.$strict>>>;
348
355
  /**
349
356
  * Authored per-environment DOCUMENTATION-SITE origins mirrored from
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.schemas.d.ts","sourceRoot":"","sources":["../../../../../../src/services/credentials/credentials.schemas.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAIL,oBAAoB,EAEpB,cAAc,EAGd,sBAAsB,EACtB,iBAAiB,EAMlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAY3D,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,oBAAY,wBAAwB;IAClC,sBAAsB,2BAA2B;IACjD,0BAA0B,+BAA+B;IACzD,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;CACxD;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAMD,eAAO,MAAM,yDAAyD;;;;;;CAM5D,CAAC;AAOX;;;;;;;GAOG;AACH,eAAO,MAAM,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