@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,434 @@
1
+ import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ import { TransposedOperationResolution } from './transposed-provider.model.js';
4
+ /**
5
+ * What survives a regeneration.
6
+ *
7
+ * The batch is stateless by design — generate from source, replace the tree — and that is right for
8
+ * everything DERIVABLE. It is wrong for one class of thing: whatever outside the generator has come
9
+ * to depend on what the generator produced.
10
+ *
11
+ * Today that is already true and unguarded. An application writes
12
+ * `execute('slack', 'slack_get_channel_info', …)`, and that id is DERIVED — from the source's action
13
+ * name, then disambiguated by method, then by path tail, then by ordinal. One new colliding
14
+ * operation upstream renames an id an application is calling, and nothing notices. Paul, 2026-09-07:
15
+ * *"trust in a fully unconsolidated aspect is not possible."*
16
+ *
17
+ * ## The test for what belongs here
18
+ *
19
+ * Not "is this valuable?" — most generated facts are. It is: **would a re-run be allowed to change
20
+ * this silently?** If no, consolidate it. If yes, consolidating it recreates the ledger
21
+ * `one-source-of-truth.md` exists to prevent, and the record slowly becomes a second catalogue.
22
+ *
23
+ * So endpoints, methods, parameters, summaries and schemas are NOT here: all derivable, all
24
+ * re-derived every run. What is here is IDENTITY and DECISIONS.
25
+ *
26
+ * ## Split by WRITER, which is why there are two directories
27
+ *
28
+ * The ledger is written by the GENERATOR on every run and never by hand. The decisions are written
29
+ * by HAND and never by the generator. One file for both would mean a regeneration can clobber a
30
+ * decision, and every decision diff would arrive buried in six thousand operations of mechanical
31
+ * churn — and reviewability by diff is the whole reason git is allowed to be the record.
32
+ *
33
+ * Both live OUTSIDE `providers/src/`, which the emitter replaces.
34
+ */
35
+ /** Bumped when {@link naturalKeysFor} changes shape. See {@link CatalogueLedger.keyVersion}. */
36
+ export const NATURAL_KEY_VERSION = 1;
37
+ const LEDGER_DIRECTORY = 'catalogue-record/ledger';
38
+ const DECISIONS_DIRECTORY = 'catalogue-record/decisions';
39
+ /**
40
+ * The natural key(s) an operation is addressed by, INDEPENDENT of its id.
41
+ *
42
+ * Keying on the id would defeat the purpose — the id is the thing being stabilised. A resolved
43
+ * operation is its endpoint; a pending one is the vendor operation the source named, which is
44
+ * exactly the key the merge already matches on when it completes one.
45
+ */
46
+ /**
47
+ * The id an application will actually call, made safe to be one.
48
+ *
49
+ * A source that titles an action "Add Order Note" produces exactly that as the operation id, and the
50
+ * id is a PUBLIC ADDRESS: it is the second argument of `execute('woocommerce', …)`, the key of the
51
+ * emitted catalogue, and the stem the typed client's method name is derived from. Measured on the
52
+ * seeded catalogue: 16 of 6,054 carried a space or a parenthesis, all in two vendors.
53
+ *
54
+ * Normalised HERE, at the emitter's boundary, rather than in a reader: this is a fact about the
55
+ * address Wildo publishes, not about how a catalogue spells its own action, and a reader that
56
+ * normalised would lose the source's own name from the provenance.
57
+ *
58
+ * Done at the moment the ledger is SEEDED and not later, deliberately. Afterwards it is a rename,
59
+ * and the record exists to make renames impossible — so an id that cannot be typed without quotes
60
+ * would be frozen with everything else.
61
+ */
62
+ export function publishableOperationId(operationId) {
63
+ const normalised = operationId.replace(/[^A-Za-z0-9_.-]+/g, '_').replace(/^_+|_+$/g, '');
64
+ return normalised.length === 0 ? operationId : normalised;
65
+ }
66
+ export function naturalKeysFor(operation) {
67
+ const keys = [];
68
+ if (operation.method !== undefined && operation.pathTemplate !== undefined) {
69
+ keys.push(`endpoint:${operation.method} ${operation.pathTemplate.replace(/\{[^}]*\}/g, '{}')}`);
70
+ }
71
+ if (operation.vendorOperationName !== undefined)
72
+ keys.push(`vendorOperation:${operation.vendorOperationName}`);
73
+ return keys;
74
+ }
75
+ function rawEndpointFor(operation) {
76
+ if (operation.method === undefined || operation.pathTemplate === undefined)
77
+ return undefined;
78
+ return `${operation.method} ${operation.pathTemplate}`;
79
+ }
80
+ export function readLedger(packageRoot, ref) {
81
+ const path = join(packageRoot, LEDGER_DIRECTORY, `${ref}.json`);
82
+ if (!existsSync(path))
83
+ return undefined;
84
+ return JSON.parse(readFileSync(path, 'utf8'));
85
+ }
86
+ export function readDecisions(packageRoot, ref) {
87
+ const path = join(packageRoot, DECISIONS_DIRECTORY, `${ref}.json`);
88
+ if (!existsSync(path))
89
+ return undefined;
90
+ return JSON.parse(readFileSync(path, 'utf8'));
91
+ }
92
+ /** Every vendor a decisions file names, so a decision for a vendor that no longer exists is visible. */
93
+ export function readDecisionRefs(packageRoot) {
94
+ const directory = join(packageRoot, DECISIONS_DIRECTORY);
95
+ if (!existsSync(directory))
96
+ return [];
97
+ return readdirSync(directory)
98
+ .filter((entry) => entry.endsWith('.json'))
99
+ .map((entry) => entry.slice(0, -'.json'.length));
100
+ }
101
+ /**
102
+ * Write a vendor's ledger, unless there is nothing to record.
103
+ *
104
+ * 188 of 926 vendors read produce no operation, no withdrawal and no refusal — a source directory
105
+ * the readers could not turn into anything. A file asserting three empty objects is not a record of
106
+ * that; it is noise in a directory whose whole value is that a reader can scan it.
107
+ */
108
+ /**
109
+ * WHAT a catalogue entry is, as somebody decided rather than as the transposer guessed.
110
+ *
111
+ * The source catalogues describe every directory they hold as though it were an integration, and a
112
+ * meaningful share of them are not: a platform's own abstraction over language models, its control
113
+ * API, one service of a vendor split across eighteen entries, a database the framework already owns.
114
+ * Until this existed that knowledge lived in commit messages, which is to say nowhere — the next
115
+ * regeneration re-emitted the entry and the next reader re-derived the judgement.
116
+ *
117
+ * A closed vocabulary with a named home, because each member carries an explanation that a bare
118
+ * string cannot: what the classification MEANS is the reason somebody would agree or disagree with
119
+ * it, and that reason is the whole value of the record.
120
+ *
121
+ * The classification does not itself withhold anything — `scrape: false` does. They are kept apart
122
+ * on purpose: WHAT a thing is and WHETHER we ship it are different decisions, and an entry can be
123
+ * correctly classified and still shipped while somebody thinks about it.
124
+ */
125
+ export var CatalogueEntryClassification;
126
+ (function (CatalogueEntryClassification) {
127
+ /**
128
+ * A third party this application could genuinely integrate with. The default reading, and the only
129
+ * class for which an admissibility judgement is meaningful.
130
+ */
131
+ CatalogueEntryClassification["THIRD_PARTY_VENDOR"] = "third-party-vendor";
132
+ /**
133
+ * The SOURCE PLATFORM's own machinery — Activepieces' AI abstraction, Sim's `function` and `memory`
134
+ * blocks, either platform's control API. Not an integration at all: transposing one produces a
135
+ * provider that fronts whatever the AUTHORING platform configured, or invites a runtime dependency
136
+ * on a catalogue we deliberately only read at build time.
137
+ */
138
+ CatalogueEntryClassification["SOURCE_PLATFORM_INTERNAL"] = "source-platform-internal";
139
+ /**
140
+ * A vendor the engine already implements as a MAIN-tier provider. The scraped copy is CATALOGUE
141
+ * tier and the tier rule forbids it from binding an engine slot, so it can only ever be a thinner
142
+ * second route to a vendor the framework already reaches properly — and two entries for one vendor
143
+ * leave an application author unable to tell which is real.
144
+ */
145
+ CatalogueEntryClassification["CORE_PROVIDER_DUPLICATE"] = "core-provider-duplicate";
146
+ /**
147
+ * Infrastructure the framework owns rather than integrates with — a relational database, a cache, a
148
+ * queue. Real software with a real API, and still not a third-party integration in Wildo's sense:
149
+ * an application reaches its own datastore through the engine, not through a connector.
150
+ */
151
+ CatalogueEntryClassification["INFRASTRUCTURE_NOT_INTEGRATION"] = "infrastructure-not-integration";
152
+ /**
153
+ * ONE service of a vendor that the source catalogue split across many entries — the eighteen AWS
154
+ * services that are all AWS. Classified rather than withheld, because the answer is probably to
155
+ * MERGE them into one provider, and that is a design decision this record can hold the evidence for
156
+ * without pre-empting.
157
+ */
158
+ CatalogueEntryClassification["VENDOR_SERVICE_FAMILY_MEMBER"] = "vendor-service-family-member";
159
+ })(CatalogueEntryClassification || (CatalogueEntryClassification = {}));
160
+ /** Where the generator consolidates what it knows about every entry in the catalogue. */
161
+ const INVENTORY_FILE = 'catalogue-record/inventory.json';
162
+ /**
163
+ * The consolidated account of the catalogue — every entry, what it is, and what became of it.
164
+ *
165
+ * Four records existed and none of them answered "where do we stand". The ledger holds operation
166
+ * IDENTITY, the decisions hold hand-written JUDGEMENTS one file at a time, the per-vendor
167
+ * `pending-operations.json` holds one vendor's losses, and a run's summary line holds totals that
168
+ * name nobody. Answering "which vendors are unjudged", "which are platform internals", "which lost
169
+ * the most operations" meant a script across all four, which is why those answers kept being
170
+ * re-derived and then lost in a commit message.
171
+ *
172
+ * DERIVED, never authored. Delete it and the next batch rebuilds it identically; nothing here is a
173
+ * fact that exists only in this file, which is what keeps it a report rather than a second ledger
174
+ * that could disagree with the first. It is committed for the same reason the ledger is: the diff is
175
+ * the point — a vendor that changes class, loses its judgement or starts failing shows up in review
176
+ * rather than in a log nobody reads.
177
+ *
178
+ * SUPERSEDES `withheld.json`, which this replaces rather than sits beside. That file answered a
179
+ * strict subset of this one, and two overlapping reports are how a reader ends up trusting the stale
180
+ * one; the old file is removed on the first run that writes this.
181
+ *
182
+ * Written only on a FULL, unfiltered, non-dry batch: a partial run has not seen every vendor, so its
183
+ * inventory would silently omit entries it never opened.
184
+ */
185
+ export function writeInventory(packageRoot, inventory) {
186
+ const entries = [...inventory.entries].sort((left, right) => left.ref.localeCompare(right.ref));
187
+ writeFileSync(join(packageRoot, INVENTORY_FILE), `${JSON.stringify({ ...inventory, entries }, null, 2)}\n`, 'utf8');
188
+ // The record it replaces. Removed here rather than by hand so a checkout that predates the change
189
+ // converges on the first run instead of carrying both.
190
+ const superseded = join(packageRoot, 'catalogue-record/withheld.json');
191
+ if (existsSync(superseded))
192
+ rmSync(superseded);
193
+ }
194
+ export function readInventory(packageRoot) {
195
+ const path = join(packageRoot, INVENTORY_FILE);
196
+ if (!existsSync(path))
197
+ return undefined;
198
+ return JSON.parse(readFileSync(path, 'utf8'));
199
+ }
200
+ export function writeLedger(packageRoot, ledger) {
201
+ if (Object.keys(ledger.operations).length === 0 && Object.keys(ledger.withdrawn).length === 0 && Object.keys(ledger.refusals).length === 0) {
202
+ removeLedger(packageRoot, ledger.ref);
203
+ return;
204
+ }
205
+ const directory = join(packageRoot, LEDGER_DIRECTORY);
206
+ mkdirSync(directory, { recursive: true });
207
+ writeFileSync(join(directory, `${ledger.ref}.json`), `${JSON.stringify(ledger, null, 2)}\n`, 'utf8');
208
+ }
209
+ /** Delete a vendor's ledger outright. Reserved for a ledger with nothing left to record. */
210
+ export function removeLedger(packageRoot, ref) {
211
+ rmSync(join(packageRoot, LEDGER_DIRECTORY, `${ref}.json`), { force: true });
212
+ }
213
+ /**
214
+ * Move an entire vendor to `withdrawn`, keeping every id and every key (#500).
215
+ *
216
+ * ## Why the file survives the vendor
217
+ *
218
+ * This used to DELETE the ledger, on the reasoning that "the file IS the vendor's record, and a
219
+ * ledger for a vendor nothing produces is a claim about an absence". That reasoning is refuted by
220
+ * the two neighbours it sits between, which both keep the record for the same reason:
221
+ *
222
+ * - an OPERATION the source stops describing is withdrawn WITH ITS KEYS, so a restored endpoint
223
+ * resurrects the id instead of minting a second one;
224
+ * - a WITHHELD vendor (`scrape: false`) keeps its whole ledger, and the README says why — that is
225
+ * what makes withholding reversible.
226
+ *
227
+ * Deleting on a source drop was the one path where an id could be lost, and it is the worst of the
228
+ * three: a vendor that disappears upstream for one release and returns comes back with every
229
+ * operation freshly derived, so every application calling `execute('acme', 'acme_create_thing')`
230
+ * breaks silently. That is the exact failure the record exists to prevent, one level up from the
231
+ * level it was prevented at.
232
+ *
233
+ * ## What READS a vendor withdrawal — asked before it was written
234
+ *
235
+ * A withdrawal record earns its place only if something reads it. Two things do, and neither is
236
+ * hypothetical: {@link applyRecord} matches this run's natural keys against `withdrawn` before
237
+ * deriving anything, so a resurrected vendor keeps its ids; and the file answers *"did we once
238
+ * support this vendor, and when did it go?"* — which `ledgerRefs` alone cannot, because a deleted
239
+ * file and a vendor that never existed are the same absence.
240
+ *
241
+ * Refusals are dropped on withdrawal: the count answers "how is this vendor trending at emit", and
242
+ * a vendor with no emit has no trend. Keeping a frozen count would read as current.
243
+ */
244
+ export function withdrawVendor(ledger, today, reason) {
245
+ return {
246
+ ref: ledger.ref,
247
+ keyVersion: ledger.keyVersion,
248
+ operations: {},
249
+ withdrawn: {
250
+ ...ledger.withdrawn,
251
+ ...Object.fromEntries(Object.entries(ledger.operations).map(([operationId, row]) => [
252
+ operationId,
253
+ { since: today, keys: row.keys, firstEmitted: row.firstEmitted, reason },
254
+ ])),
255
+ },
256
+ refusals: {},
257
+ };
258
+ }
259
+ export function ledgerRefs(packageRoot) {
260
+ const directory = join(packageRoot, LEDGER_DIRECTORY);
261
+ if (!existsSync(directory))
262
+ return [];
263
+ return readdirSync(directory)
264
+ .filter((entry) => entry.endsWith('.json'))
265
+ .map((entry) => entry.slice(0, -'.json'.length));
266
+ }
267
+ /**
268
+ * Give every operation the id the ledger already recorded for it, and record the ones it has not
269
+ * seen.
270
+ *
271
+ * The order matters and is the whole mechanism: an id RECORDED for a natural key is authoritative,
272
+ * and an id DERIVED this run yields to it. So a source rename cannot move an id, a collision
273
+ * resolved one way stays resolved that way, and a genuinely new operation is genuinely new.
274
+ */
275
+ export function applyRecord(options) {
276
+ const { provider, operations, pending, decisions, refusals, today } = options;
277
+ const previous = options.ledger ?? { ref: provider.ref, keyVersion: NATURAL_KEY_VERSION, operations: {}, withdrawn: {}, refusals: {} };
278
+ // A succession says "this new key IS the operation the old key named". Applied before lookup, so
279
+ // an endpoint the vendor moved keeps its id rather than reading as a withdrawal plus an arrival.
280
+ const succession = decisions?.succession ?? {};
281
+ const usedSuccessions = new Set();
282
+ const byKey = new Map();
283
+ for (const [operationId, row] of Object.entries(previous.operations)) {
284
+ for (const key of row.keys)
285
+ if (!byKey.has(key))
286
+ byKey.set(key, operationId);
287
+ }
288
+ // WITHDRAWN entries are looked up too, and that is why a withdrawal keeps its keys. A source can
289
+ // restore an endpoint it removed, and when it does, the application that was calling the old id
290
+ // must keep working — resurrecting the id is the whole reason the withdrawal is a record rather
291
+ // than a deletion. Live rows are consulted first, so a key that is live cannot be shadowed by a
292
+ // withdrawal that once carried it.
293
+ for (const [operationId, entry] of Object.entries(previous.withdrawn)) {
294
+ for (const key of entry.keys)
295
+ if (!byKey.has(key))
296
+ byKey.set(key, operationId);
297
+ }
298
+ const adopted = new Map();
299
+ const derived = [];
300
+ const all = [...operations, ...pending];
301
+ for (const operation of all) {
302
+ const keys = naturalKeysFor(operation);
303
+ const publishable = publishableOperationId(operation.operationId);
304
+ let recordedId;
305
+ for (const key of keys) {
306
+ const successorOf = succession[key];
307
+ if (successorOf !== undefined && byKey.has(successorOf)) {
308
+ usedSuccessions.add(key);
309
+ recordedId = byKey.get(successorOf);
310
+ break;
311
+ }
312
+ if (byKey.has(key)) {
313
+ recordedId = byKey.get(key);
314
+ break;
315
+ }
316
+ }
317
+ if (recordedId !== undefined)
318
+ adopted.set(operation.operationId, recordedId);
319
+ else
320
+ derived.push({ original: operation.operationId, publishable });
321
+ }
322
+ // Adopted ids are authoritative; a derived id that collides with one yields, because the adopted
323
+ // id is what an application is already calling.
324
+ const taken = new Set(adopted.values());
325
+ const finalIds = new Map(adopted);
326
+ for (const { original, publishable } of derived) {
327
+ let candidate = publishable;
328
+ let ordinal = 2;
329
+ while (taken.has(candidate))
330
+ candidate = `${publishable}-${ordinal++}`;
331
+ taken.add(candidate);
332
+ finalIds.set(original, candidate);
333
+ }
334
+ const rows = {};
335
+ const rename = (operation) => {
336
+ const operationId = finalIds.get(operation.operationId) ?? operation.operationId;
337
+ const existing = previous.operations[operationId];
338
+ const keys = naturalKeysFor(operation);
339
+ rows[operationId] = {
340
+ // Union, most recent first: a resolved operation keeps the vendorOperation key it was pending
341
+ // under, so the resolution is not a rename and the history stays diagnosable.
342
+ keys: [...new Set([...keys, ...(existing?.keys ?? [])])],
343
+ ...(rawEndpointFor(operation) === undefined ? {} : { rawEndpoint: rawEndpointFor(operation) }),
344
+ // A RESURRECTED id keeps the date it first appeared: the withdrawal carries it, and stamping
345
+ // today would make the record call a long-standing id new in the same breath as it restores it.
346
+ firstEmitted: existing?.firstEmitted ?? previous.withdrawn[operationId]?.firstEmitted ?? today,
347
+ ...(operation.resolution === TransposedOperationResolution.PENDING_ENDPOINT ? { pending: true } : {}),
348
+ };
349
+ return operationId === operation.operationId ? operation : { ...operation, operationId };
350
+ };
351
+ const renamedOperations = operations.map(rename);
352
+ for (const operation of pending)
353
+ rename(operation);
354
+ const withdrawn = { ...previous.withdrawn };
355
+ for (const [operationId, row] of Object.entries(previous.operations)) {
356
+ if (rows[operationId] !== undefined)
357
+ continue;
358
+ withdrawn[operationId] = {
359
+ since: today,
360
+ keys: row.keys,
361
+ firstEmitted: row.firstEmitted,
362
+ /*
363
+ * States WHAT was observed and not WHY, because the record cannot know why.
364
+ *
365
+ * This said "— the source no longer describes it" until 2026-09-09, and that day it wrote the
366
+ * sentence three times about operations the source describes perfectly well: Salesforce's SOQL
367
+ * queries, which the EMITTER began refusing because their path template is not a path. An
368
+ * unmatched key means the operation is not in this batch's output. Upstream removal is one
369
+ * cause; a new refusal, a rename the natural key could not follow, and a filtered source are
370
+ * others, and the withdrawal row is written by something that can see none of them.
371
+ *
372
+ * Worth keeping strict: this row is DURABLE, and a reader who trusts the stated cause goes
373
+ * looking upstream for a change that never happened.
374
+ */
375
+ reason: 'No operation in this run matched any of its natural keys, so it is not in the emitted catalogue.',
376
+ };
377
+ }
378
+ // An id that came BACK is live again, and leaving it in both lists would make the record
379
+ // contradict itself.
380
+ for (const operationId of Object.keys(rows))
381
+ delete withdrawn[operationId];
382
+ const unmatched = [];
383
+ for (const key of Object.keys(succession)) {
384
+ if (usedSuccessions.has(key))
385
+ continue;
386
+ unmatched.push({
387
+ ref: provider.ref,
388
+ kind: 'succession',
389
+ detail: `succession '${key}' → '${succession[key]}' matched no operation in this run`,
390
+ });
391
+ }
392
+ const currentRefusals = Object.fromEntries(refusals);
393
+ const refusalDelta = {};
394
+ for (const reason of new Set([...Object.keys(currentRefusals), ...Object.keys(previous.refusals)])) {
395
+ const movement = (currentRefusals[reason] ?? 0) - (previous.refusals[reason] ?? 0);
396
+ if (movement !== 0)
397
+ refusalDelta[reason] = movement;
398
+ }
399
+ return {
400
+ operations: renamedOperations,
401
+ refusalDelta,
402
+ ledger: {
403
+ ref: provider.ref,
404
+ keyVersion: NATURAL_KEY_VERSION,
405
+ operations: rows,
406
+ withdrawn,
407
+ refusals: Object.fromEntries(refusals),
408
+ },
409
+ unmatched,
410
+ };
411
+ }
412
+ export function readPolicy(packageRoot) {
413
+ const path = join(packageRoot, 'catalogue-record/policy.json');
414
+ if (!existsSync(path))
415
+ return undefined;
416
+ return JSON.parse(readFileSync(path, 'utf8'));
417
+ }
418
+ /**
419
+ * Whether this run may conclude that something is gone.
420
+ *
421
+ * Fail-SAFE in both directions that matter: an absent policy means NOT full, because withdrawal is
422
+ * the destructive conclusion and a repository with no declared policy has not said what complete
423
+ * means. A filter always means not full, however many catalogues were read.
424
+ */
425
+ export function isFullBatch(options) {
426
+ if (options.filtered)
427
+ return false;
428
+ const policy = readPolicy(options.packageRoot);
429
+ if (policy === undefined)
430
+ return false;
431
+ const read = new Set(options.sourcesRead);
432
+ return policy.catalogues.every((source) => read.has(source));
433
+ }
434
+ //# sourceMappingURL=provider-catalogue-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-catalogue-record.js","sourceRoot":"","sources":["../../../../../src/services/framework/provider-transposition/provider-catalogue-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAA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ransposedOperationResolution, type TransposedOperation, type TransposedProvider } from './transposed-provider.model';\n\n/**\n * What survives a regeneration.\n *\n * The batch is stateless by design — generate from source, replace the tree — and that is right for\n * everything DERIVABLE. It is wrong for one class of thing: whatever outside the generator has come\n * to depend on what the generator produced.\n *\n * Today that is already true and unguarded. An application writes\n * `execute('slack', 'slack_get_channel_info', …)`, and that id is DERIVED — from the source's action\n * name, then disambiguated by method, then by path tail, then by ordinal. One new colliding\n * operation upstream renames an id an application is calling, and nothing notices. Paul, 2026-09-07:\n * *\"trust in a fully unconsolidated aspect is not possible.\"*\n *\n * ## The test for what belongs here\n *\n * Not \"is this valuable?\" — most generated facts are. It is: **would a re-run be allowed to change\n * this silently?** If no, consolidate it. If yes, consolidating it recreates the ledger\n * `one-source-of-truth.md` exists to prevent, and the record slowly becomes a second catalogue.\n *\n * So endpoints, methods, parameters, summaries and schemas are NOT here: all derivable, all\n * re-derived every run. What is here is IDENTITY and DECISIONS.\n *\n * ## Split by WRITER, which is why there are two directories\n *\n * The ledger is written by the GENERATOR on every run and never by hand. The decisions are written\n * by HAND and never by the generator. One file for both would mean a regeneration can clobber a\n * decision, and every decision diff would arrive buried in six thousand operations of mechanical\n * churn — and reviewability by diff is the whole reason git is allowed to be the record.\n *\n * Both live OUTSIDE `providers/src/`, which the emitter replaces.\n */\n\n/** Bumped when {@link naturalKeysFor} changes shape. See {@link CatalogueLedger.keyVersion}. */\nexport const NATURAL_KEY_VERSION = 1;\n\nconst LEDGER_DIRECTORY = 'catalogue-record/ledger';\nconst DECISIONS_DIRECTORY = 'catalogue-record/decisions';\n\n/** One vendor's generator-maintained identity record. */\nexport interface CatalogueLedger {\n readonly ref: string;\n /**\n * Which shape {@link CatalogueLedgerRow.keys} are written in.\n *\n * The endpoint key is a NORMALISATION of method and path. The day anyone changes that\n * normalisation — a trailing slash, a case fold, a repeated hole — every key in every ledger\n * detaches at once and six thousand ids are silently reminted. A stamped version lets a run detect\n * that and re-key from `rawEndpoint` instead. It costs one integer and the failure it prevents is\n * total.\n */\n readonly keyVersion: number;\n readonly operations: Record<string, CatalogueLedgerRow>;\n readonly withdrawn: Record<string, CatalogueWithdrawal>;\n /**\n * How many operations this vendor lost at emit, by reason code. Never a list of ids.\n *\n * The ids are derivable — the guard recomputes them every run — and a stored copy would rot the\n * first time a hole is named. The COUNT cannot be re-derived from anything else after the fact,\n * and it is the number that says whether a vendor is getting better or worse.\n *\n * **Not a shrink-only baseline, and an earlier revision of this comment wrongly said it was.** The\n * baseline pattern elsewhere in this repository (`spec-citations.baseline.json`,\n * `check:invented-display-text`) refuses growth, and that is wrong here: a refusal count grows\n * whenever an upstream catalogue adds an operation whose path hole it names positionally, which is\n * ordinary source movement and not a regression. Refusing it would make the batch un-runnable for\n * a reason nobody can act on, and a gate that fires on normal movement is one people learn to\n * bypass.\n *\n * What makes growth visible instead is that this file is COMMITTED: `3 → 7` is a line in the\n * ledger's diff, and the run prints the delta so nobody has to go looking. Git is the record.\n */\n readonly refusals: Record<string, number>;\n}\n\nexport interface CatalogueLedgerRow {\n /**\n * Every natural key this operation has been known by, most recent first.\n *\n * A SET rather than one key, because the most common good event in this lane changes it: a PENDING\n * operation keyed `vendorOperation:files.uploadV2` becomes a RESOLVED one keyed\n * `endpoint:POST /api/files.getUploadURLExternal`. Under a single key that is a new id and a\n * withdrawal — a rename on every successful resolution, which is the opposite of what a ledger is\n * for. A match on any alias keeps the id, and the row absorbs whatever key this run produced.\n */\n readonly keys: readonly string[];\n /** The un-normalised `METHOD path`, so a key-version change can re-key without minting. */\n readonly rawEndpoint?: string;\n readonly firstEmitted: string;\n /** True while the operation still awaits an endpoint. Recorded so an id is reserved before anything binds to it. */\n readonly pending?: boolean;\n}\n\nexport interface CatalogueWithdrawal {\n readonly since: string;\n readonly keys: readonly string[];\n /**\n * When this id was FIRST emitted, carried through the withdrawal.\n *\n * Without it a resurrection resets the date to the day the operation came back, so the record\n * would claim a long-standing id is new — contradicting the resurrection it just performed, and\n * losing the one fact that says how long applications have had to bind to it. Optional because\n * withdrawals written before this field existed do not have it; a resurrected row with no recorded\n * origin falls back to today, which is the previous behaviour rather than a fabricated date.\n */\n readonly firstEmitted?: string;\n /**\n * Why it is gone, in the generator's words.\n *\n * Recorded rather than left to silence: a caller of a withdrawn id deserves *\"the source removed\n * it on 2026-09-07\"* and not *\"unknown operation\"*, and only this file can say which.\n */\n readonly reason: string;\n}\n\n/** One vendor's hand-written decisions. Sparse: a file exists only where a decision was taken. */\nexport interface CatalogueDecisions {\n readonly ref: string;\n /** Why this file exists, for whoever reads the vendor next. Required so an exception is never undeletable. */\n readonly reason: string;\n /**\n * Whether this vendor is EXPORTED.\n *\n * `false` withholds the vendor's SOURCE and its subpath. Its **ledger is still maintained**, and\n * that is what makes withholding reversible: re-enabling the vendor later reuses every recorded id\n * rather than deriving new ones, so an application that was calling them keeps working.\n *\n * An earlier revision of this comment said `false` meant \"emitted but not exported\", on the\n * reasoning that not emitting would let the ledger go stale. **That premise was false about this\n * very file** — `writeLedger` runs before the export decision, so the ledger is maintained either\n * way, and emitting source for a vendor no specifier can reach is 3 files of noise per vendor plus\n * a `providers/src/github/` that exists while `@wildo-ai/providers/github` does not resolve.\n * Measured on the nine withheld refs: source gone, exports gone, 99 ledger rows intact for\n * `github` and zero withdrawals.\n */\n readonly scrape?: boolean;\n /**\n * WHAT this entry is. See {@link CatalogueEntryClassification}.\n *\n * Absent means {@link CatalogueEntryClassification.THIRD_PARTY_VENDOR} — the ordinary reading, and\n * the honest default: an unclassified entry is one nobody has looked at, and treating that as\n * \"probably a vendor\" is what the catalogue already assumed before anyone could say otherwise.\n */\n readonly classification?: CatalogueEntryClassification;\n /** Which catalogue wins for this vendor when two disagree. Absent means the merge's own heuristic. */\n readonly sourceOfTrust?: string;\n /** A promotion out of `CATALOGUE`. Absent means `CATALOGUE`, which is what the emitter can derive. */\n readonly tier?: string;\n /**\n * WHICH connections this vendor admits — whose account, and on whose behalf.\n *\n * Absent means the floor: an APPLICATION-owned, non-delegated connection, and nothing else. That\n * floor is deliberately the one answer that is always true — an operator can always author an\n * environment variable, and an application-owned account has exactly one instance, so it cannot\n * produce a cross-tenant mistake.\n *\n * **Never derived from the scraped catalogue.** \"This vendor declares OAuth2\" is a fact about the\n * source; \"an application may connect it per tenant\" is a fact about the vendor's PRODUCT and about\n * what someone verified, and it is not recoverable from an action list. Deriving the second from the\n * first yields a claim nobody can falsify and that one upstream change flips silently — which is\n * the whole reason this file exists rather than a heuristic in the emitter.\n *\n * Combinations are listed EXPLICITLY rather than as two independent sets, because the cross product\n * is not true: a vendor may issue a tenant-owned token that acts for one of its members while\n * having no notion of an application-owned delegated one.\n */\n readonly admissibleConnections?: readonly { readonly ownerScope: string; readonly delegation: string }[];\n /**\n * `newKey → oldKey`, for a vendor that moved an endpoint without changing the operation.\n *\n * A path version bump (`/v1/x` → `/v2/x`) produces a new natural key, so without this it reads as\n * a withdrawal plus a new operation — a rename with extra steps. This is the one place a human\n * asserts that two endpoints are the same operation, which is a judgement no generator can make.\n */\n readonly succession?: Record<string, string>;\n}\n\n/** A record entry that matched nothing in the generated output. */\nexport interface UnmatchedRecordEntry {\n readonly ref: string;\n readonly kind: 'succession';\n readonly detail: string;\n}\n\nexport interface AppliedRecord {\n /** Operations with their LEDGER ids, replacing whatever the merge derived. */\n readonly operations: readonly TransposedOperation[];\n readonly ledger: CatalogueLedger;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n /**\n * Reasons whose refusal count MOVED since the last run, by how much.\n *\n * Reported rather than refused — see {@link CatalogueLedger.refusals} for why growth is ordinary.\n * Surfacing it in the run's output is what stops it being noticed only by whoever happens to read\n * a 738-file diff.\n */\n readonly refusalDelta: Readonly<Record<string, number>>;\n}\n\n/**\n * The natural key(s) an operation is addressed by, INDEPENDENT of its id.\n *\n * Keying on the id would defeat the purpose — the id is the thing being stabilised. A resolved\n * operation is its endpoint; a pending one is the vendor operation the source named, which is\n * exactly the key the merge already matches on when it completes one.\n */\n/**\n * The id an application will actually call, made safe to be one.\n *\n * A source that titles an action \"Add Order Note\" produces exactly that as the operation id, and the\n * id is a PUBLIC ADDRESS: it is the second argument of `execute('woocommerce', …)`, the key of the\n * emitted catalogue, and the stem the typed client's method name is derived from. Measured on the\n * seeded catalogue: 16 of 6,054 carried a space or a parenthesis, all in two vendors.\n *\n * Normalised HERE, at the emitter's boundary, rather than in a reader: this is a fact about the\n * address Wildo publishes, not about how a catalogue spells its own action, and a reader that\n * normalised would lose the source's own name from the provenance.\n *\n * Done at the moment the ledger is SEEDED and not later, deliberately. Afterwards it is a rename,\n * and the record exists to make renames impossible — so an id that cannot be typed without quotes\n * would be frozen with everything else.\n */\nexport function publishableOperationId(operationId: string): string {\n const normalised = operationId.replace(/[^A-Za-z0-9_.-]+/g, '_').replace(/^_+|_+$/g, '');\n return normalised.length === 0 ? operationId : normalised;\n}\n\nexport function naturalKeysFor(operation: TransposedOperation): readonly string[] {\n const keys: string[] = [];\n if (operation.method !== undefined && operation.pathTemplate !== undefined) {\n keys.push(`endpoint:${operation.method} ${operation.pathTemplate.replace(/\\{[^}]*\\}/g, '{}')}`);\n }\n if (operation.vendorOperationName !== undefined) keys.push(`vendorOperation:${operation.vendorOperationName}`);\n return keys;\n}\n\nfunction rawEndpointFor(operation: TransposedOperation): string | undefined {\n if (operation.method === undefined || operation.pathTemplate === undefined) return undefined;\n return `${operation.method} ${operation.pathTemplate}`;\n}\n\nexport function readLedger(packageRoot: string, ref: string): CatalogueLedger | undefined {\n const path = join(packageRoot, LEDGER_DIRECTORY, `${ref}.json`);\n if (!existsSync(path)) return undefined;\n return JSON.parse(readFileSync(path, 'utf8')) as CatalogueLedger;\n}\n\nexport function readDecisions(packageRoot: string, ref: string): CatalogueDecisions | undefined {\n const path = join(packageRoot, DECISIONS_DIRECTORY, `${ref}.json`);\n if (!existsSync(path)) return undefined;\n return JSON.parse(readFileSync(path, 'utf8')) as CatalogueDecisions;\n}\n\n/** Every vendor a decisions file names, so a decision for a vendor that no longer exists is visible. */\nexport function readDecisionRefs(packageRoot: string): readonly string[] {\n const directory = join(packageRoot, DECISIONS_DIRECTORY);\n if (!existsSync(directory)) return [];\n return readdirSync(directory)\n .filter((entry) => entry.endsWith('.json'))\n .map((entry) => entry.slice(0, -'.json'.length));\n}\n\n/**\n * Write a vendor's ledger, unless there is nothing to record.\n *\n * 188 of 926 vendors read produce no operation, no withdrawal and no refusal — a source directory\n * the readers could not turn into anything. A file asserting three empty objects is not a record of\n * that; it is noise in a directory whose whole value is that a reader can scan it.\n */\n/**\n * WHAT a catalogue entry is, as somebody decided rather than as the transposer guessed.\n *\n * The source catalogues describe every directory they hold as though it were an integration, and a\n * meaningful share of them are not: a platform's own abstraction over language models, its control\n * API, one service of a vendor split across eighteen entries, a database the framework already owns.\n * Until this existed that knowledge lived in commit messages, which is to say nowhere — the next\n * regeneration re-emitted the entry and the next reader re-derived the judgement.\n *\n * A closed vocabulary with a named home, because each member carries an explanation that a bare\n * string cannot: what the classification MEANS is the reason somebody would agree or disagree with\n * it, and that reason is the whole value of the record.\n *\n * The classification does not itself withhold anything — `scrape: false` does. They are kept apart\n * on purpose: WHAT a thing is and WHETHER we ship it are different decisions, and an entry can be\n * correctly classified and still shipped while somebody thinks about it.\n */\nexport enum CatalogueEntryClassification {\n /**\n * A third party this application could genuinely integrate with. The default reading, and the only\n * class for which an admissibility judgement is meaningful.\n */\n THIRD_PARTY_VENDOR = 'third-party-vendor',\n /**\n * The SOURCE PLATFORM's own machinery — Activepieces' AI abstraction, Sim's `function` and `memory`\n * blocks, either platform's control API. Not an integration at all: transposing one produces a\n * provider that fronts whatever the AUTHORING platform configured, or invites a runtime dependency\n * on a catalogue we deliberately only read at build time.\n */\n SOURCE_PLATFORM_INTERNAL = 'source-platform-internal',\n /**\n * A vendor the engine already implements as a MAIN-tier provider. The scraped copy is CATALOGUE\n * tier and the tier rule forbids it from binding an engine slot, so it can only ever be a thinner\n * second route to a vendor the framework already reaches properly — and two entries for one vendor\n * leave an application author unable to tell which is real.\n */\n CORE_PROVIDER_DUPLICATE = 'core-provider-duplicate',\n /**\n * Infrastructure the framework owns rather than integrates with — a relational database, a cache, a\n * queue. Real software with a real API, and still not a third-party integration in Wildo's sense:\n * an application reaches its own datastore through the engine, not through a connector.\n */\n INFRASTRUCTURE_NOT_INTEGRATION = 'infrastructure-not-integration',\n /**\n * ONE service of a vendor that the source catalogue split across many entries — the eighteen AWS\n * services that are all AWS. Classified rather than withheld, because the answer is probably to\n * MERGE them into one provider, and that is a design decision this record can hold the evidence for\n * without pre-empting.\n */\n VENDOR_SERVICE_FAMILY_MEMBER = 'vendor-service-family-member',\n}\n\n/** Where the generator consolidates what it knows about every entry in the catalogue. */\nconst INVENTORY_FILE = 'catalogue-record/inventory.json';\n\n/** One catalogue entry, as the last full batch found it. */\nexport interface InventoryEntry {\n readonly ref: string;\n /** What somebody decided this entry IS. Absent from the decision file means third-party vendor. */\n readonly classification: CatalogueEntryClassification;\n /** Which catalogues described it, so a vendor vanishing is never confused with a catalogue absent. */\n readonly sources: readonly string[];\n /** Whether a subpath was exported. False for a withheld entry and for one with nothing callable. */\n readonly exported: boolean;\n /** Withheld deliberately by `scrape: false`, as opposed to having produced nothing. */\n readonly withheld: boolean;\n /** Whether somebody has judged which connections it admits. */\n readonly admissibilityJudged: boolean;\n readonly operations: number;\n readonly pending: number;\n readonly unreadable: number;\n readonly refusedAtEmit: Record<string, number>;\n}\n\nexport interface CatalogueInventory {\n readonly generatedOn: string;\n readonly sourcesRead: readonly string[];\n readonly entries: readonly InventoryEntry[];\n}\n\n/**\n * The consolidated account of the catalogue — every entry, what it is, and what became of it.\n *\n * Four records existed and none of them answered \"where do we stand\". The ledger holds operation\n * IDENTITY, the decisions hold hand-written JUDGEMENTS one file at a time, the per-vendor\n * `pending-operations.json` holds one vendor's losses, and a run's summary line holds totals that\n * name nobody. Answering \"which vendors are unjudged\", \"which are platform internals\", \"which lost\n * the most operations\" meant a script across all four, which is why those answers kept being\n * re-derived and then lost in a commit message.\n *\n * DERIVED, never authored. Delete it and the next batch rebuilds it identically; nothing here is a\n * fact that exists only in this file, which is what keeps it a report rather than a second ledger\n * that could disagree with the first. It is committed for the same reason the ledger is: the diff is\n * the point — a vendor that changes class, loses its judgement or starts failing shows up in review\n * rather than in a log nobody reads.\n *\n * SUPERSEDES `withheld.json`, which this replaces rather than sits beside. That file answered a\n * strict subset of this one, and two overlapping reports are how a reader ends up trusting the stale\n * one; the old file is removed on the first run that writes this.\n *\n * Written only on a FULL, unfiltered, non-dry batch: a partial run has not seen every vendor, so its\n * inventory would silently omit entries it never opened.\n */\nexport function writeInventory(packageRoot: string, inventory: CatalogueInventory): void {\n const entries = [...inventory.entries].sort((left, right) => left.ref.localeCompare(right.ref));\n writeFileSync(\n join(packageRoot, INVENTORY_FILE),\n `${JSON.stringify({ ...inventory, entries }, null, 2)}\\n`,\n 'utf8',\n );\n // The record it replaces. Removed here rather than by hand so a checkout that predates the change\n // converges on the first run instead of carrying both.\n const superseded = join(packageRoot, 'catalogue-record/withheld.json');\n if (existsSync(superseded)) rmSync(superseded);\n}\n\nexport function readInventory(packageRoot: string): CatalogueInventory | undefined {\n const path = join(packageRoot, INVENTORY_FILE);\n if (!existsSync(path)) return undefined;\n return JSON.parse(readFileSync(path, 'utf8')) as CatalogueInventory;\n}\n\nexport function writeLedger(packageRoot: string, ledger: CatalogueLedger): void {\n if (Object.keys(ledger.operations).length === 0 && Object.keys(ledger.withdrawn).length === 0 && Object.keys(ledger.refusals).length === 0) {\n removeLedger(packageRoot, ledger.ref);\n return;\n }\n const directory = join(packageRoot, LEDGER_DIRECTORY);\n mkdirSync(directory, { recursive: true });\n writeFileSync(join(directory, `${ledger.ref}.json`), `${JSON.stringify(ledger, null, 2)}\\n`, 'utf8');\n}\n\n/** Delete a vendor's ledger outright. Reserved for a ledger with nothing left to record. */\nexport function removeLedger(packageRoot: string, ref: string): void {\n rmSync(join(packageRoot, LEDGER_DIRECTORY, `${ref}.json`), { force: true });\n}\n\n/**\n * Move an entire vendor to `withdrawn`, keeping every id and every key (#500).\n *\n * ## Why the file survives the vendor\n *\n * This used to DELETE the ledger, on the reasoning that \"the file IS the vendor's record, and a\n * ledger for a vendor nothing produces is a claim about an absence\". That reasoning is refuted by\n * the two neighbours it sits between, which both keep the record for the same reason:\n *\n * - an OPERATION the source stops describing is withdrawn WITH ITS KEYS, so a restored endpoint\n * resurrects the id instead of minting a second one;\n * - a WITHHELD vendor (`scrape: false`) keeps its whole ledger, and the README says why — that is\n * what makes withholding reversible.\n *\n * Deleting on a source drop was the one path where an id could be lost, and it is the worst of the\n * three: a vendor that disappears upstream for one release and returns comes back with every\n * operation freshly derived, so every application calling `execute('acme', 'acme_create_thing')`\n * breaks silently. That is the exact failure the record exists to prevent, one level up from the\n * level it was prevented at.\n *\n * ## What READS a vendor withdrawal — asked before it was written\n *\n * A withdrawal record earns its place only if something reads it. Two things do, and neither is\n * hypothetical: {@link applyRecord} matches this run's natural keys against `withdrawn` before\n * deriving anything, so a resurrected vendor keeps its ids; and the file answers *\"did we once\n * support this vendor, and when did it go?\"* — which `ledgerRefs` alone cannot, because a deleted\n * file and a vendor that never existed are the same absence.\n *\n * Refusals are dropped on withdrawal: the count answers \"how is this vendor trending at emit\", and\n * a vendor with no emit has no trend. Keeping a frozen count would read as current.\n */\nexport function withdrawVendor(ledger: CatalogueLedger, today: string, reason: string): CatalogueLedger {\n return {\n ref: ledger.ref,\n keyVersion: ledger.keyVersion,\n operations: {},\n withdrawn: {\n ...ledger.withdrawn,\n ...Object.fromEntries(\n Object.entries(ledger.operations).map(([operationId, row]) => [\n operationId,\n { since: today, keys: row.keys, firstEmitted: row.firstEmitted, reason },\n ]),\n ),\n },\n refusals: {},\n };\n}\n\nexport function ledgerRefs(packageRoot: string): readonly string[] {\n const directory = join(packageRoot, LEDGER_DIRECTORY);\n if (!existsSync(directory)) return [];\n return readdirSync(directory)\n .filter((entry) => entry.endsWith('.json'))\n .map((entry) => entry.slice(0, -'.json'.length));\n}\n\n/**\n * Give every operation the id the ledger already recorded for it, and record the ones it has not\n * seen.\n *\n * The order matters and is the whole mechanism: an id RECORDED for a natural key is authoritative,\n * and an id DERIVED this run yields to it. So a source rename cannot move an id, a collision\n * resolved one way stays resolved that way, and a genuinely new operation is genuinely new.\n */\nexport function applyRecord(options: {\n readonly provider: TransposedProvider;\n readonly operations: readonly TransposedOperation[];\n readonly pending: readonly TransposedOperation[];\n readonly ledger: CatalogueLedger | undefined;\n readonly decisions: CatalogueDecisions | undefined;\n readonly refusals: ReadonlyMap<string, number>;\n readonly today: string;\n}): AppliedRecord {\n const { provider, operations, pending, decisions, refusals, today } = options;\n const previous = options.ledger ?? { ref: provider.ref, keyVersion: NATURAL_KEY_VERSION, operations: {}, withdrawn: {}, refusals: {} };\n\n // A succession says \"this new key IS the operation the old key named\". Applied before lookup, so\n // an endpoint the vendor moved keeps its id rather than reading as a withdrawal plus an arrival.\n const succession = decisions?.succession ?? {};\n const usedSuccessions = new Set<string>();\n\n const byKey = new Map<string, string>();\n for (const [operationId, row] of Object.entries(previous.operations)) {\n for (const key of row.keys) if (!byKey.has(key)) byKey.set(key, operationId);\n }\n // WITHDRAWN entries are looked up too, and that is why a withdrawal keeps its keys. A source can\n // restore an endpoint it removed, and when it does, the application that was calling the old id\n // must keep working — resurrecting the id is the whole reason the withdrawal is a record rather\n // than a deletion. Live rows are consulted first, so a key that is live cannot be shadowed by a\n // withdrawal that once carried it.\n for (const [operationId, entry] of Object.entries(previous.withdrawn)) {\n for (const key of entry.keys) if (!byKey.has(key)) byKey.set(key, operationId);\n }\n\n const adopted = new Map<string, string>();\n const derived: { readonly original: string; readonly publishable: string }[] = [];\n const all = [...operations, ...pending];\n\n for (const operation of all) {\n const keys = naturalKeysFor(operation);\n const publishable = publishableOperationId(operation.operationId);\n let recordedId: string | undefined;\n for (const key of keys) {\n const successorOf = succession[key];\n if (successorOf !== undefined && byKey.has(successorOf)) {\n usedSuccessions.add(key);\n recordedId = byKey.get(successorOf);\n break;\n }\n if (byKey.has(key)) {\n recordedId = byKey.get(key);\n break;\n }\n }\n if (recordedId !== undefined) adopted.set(operation.operationId, recordedId);\n else derived.push({ original: operation.operationId, publishable });\n }\n\n // Adopted ids are authoritative; a derived id that collides with one yields, because the adopted\n // id is what an application is already calling.\n const taken = new Set(adopted.values());\n const finalIds = new Map<string, string>(adopted);\n for (const { original, publishable } of derived) {\n let candidate = publishable;\n let ordinal = 2;\n while (taken.has(candidate)) candidate = `${publishable}-${ordinal++}`;\n taken.add(candidate);\n finalIds.set(original, candidate);\n }\n\n const rows: Record<string, CatalogueLedgerRow> = {};\n const rename = (operation: TransposedOperation): TransposedOperation => {\n const operationId = finalIds.get(operation.operationId) ?? operation.operationId;\n const existing = previous.operations[operationId];\n const keys = naturalKeysFor(operation);\n rows[operationId] = {\n // Union, most recent first: a resolved operation keeps the vendorOperation key it was pending\n // under, so the resolution is not a rename and the history stays diagnosable.\n keys: [...new Set([...keys, ...(existing?.keys ?? [])])],\n ...(rawEndpointFor(operation) === undefined ? {} : { rawEndpoint: rawEndpointFor(operation) }),\n // A RESURRECTED id keeps the date it first appeared: the withdrawal carries it, and stamping\n // today would make the record call a long-standing id new in the same breath as it restores it.\n firstEmitted: existing?.firstEmitted ?? previous.withdrawn[operationId]?.firstEmitted ?? today,\n ...(operation.resolution === TransposedOperationResolution.PENDING_ENDPOINT ? { pending: true } : {}),\n };\n return operationId === operation.operationId ? operation : { ...operation, operationId };\n };\n\n const renamedOperations = operations.map(rename);\n for (const operation of pending) rename(operation);\n\n const withdrawn: Record<string, CatalogueWithdrawal> = { ...previous.withdrawn };\n for (const [operationId, row] of Object.entries(previous.operations)) {\n if (rows[operationId] !== undefined) continue;\n withdrawn[operationId] = {\n since: today,\n keys: row.keys,\n firstEmitted: row.firstEmitted,\n /*\n * States WHAT was observed and not WHY, because the record cannot know why.\n *\n * This said \"— the source no longer describes it\" until 2026-09-09, and that day it wrote the\n * sentence three times about operations the source describes perfectly well: Salesforce's SOQL\n * queries, which the EMITTER began refusing because their path template is not a path. An\n * unmatched key means the operation is not in this batch's output. Upstream removal is one\n * cause; a new refusal, a rename the natural key could not follow, and a filtered source are\n * others, and the withdrawal row is written by something that can see none of them.\n *\n * Worth keeping strict: this row is DURABLE, and a reader who trusts the stated cause goes\n * looking upstream for a change that never happened.\n */\n reason: 'No operation in this run matched any of its natural keys, so it is not in the emitted catalogue.',\n };\n }\n // An id that came BACK is live again, and leaving it in both lists would make the record\n // contradict itself.\n for (const operationId of Object.keys(rows)) delete withdrawn[operationId];\n\n const unmatched: UnmatchedRecordEntry[] = [];\n for (const key of Object.keys(succession)) {\n if (usedSuccessions.has(key)) continue;\n unmatched.push({\n ref: provider.ref,\n kind: 'succession',\n detail: `succession '${key}' → '${succession[key]}' matched no operation in this run`,\n });\n }\n\n const currentRefusals = Object.fromEntries(refusals);\n const refusalDelta: Record<string, number> = {};\n for (const reason of new Set([...Object.keys(currentRefusals), ...Object.keys(previous.refusals)])) {\n const movement = (currentRefusals[reason] ?? 0) - (previous.refusals[reason] ?? 0);\n if (movement !== 0) refusalDelta[reason] = movement;\n }\n\n return {\n operations: renamedOperations,\n refusalDelta,\n ledger: {\n ref: provider.ref,\n keyVersion: NATURAL_KEY_VERSION,\n operations: rows,\n withdrawn,\n refusals: Object.fromEntries(refusals),\n },\n unmatched,\n };\n}\n\n/**\n * The batch policy — about the RUN, not about any vendor.\n *\n * Per-vendor it would be 697 copies of one decision. It exists for one question that nothing else\n * can answer: **which catalogues make a batch COMPLETE.** Without it, a run over one catalogue looks\n * exactly like a run over both, and the record would withdraw every operation the absent catalogue\n * supplies — a destructive conclusion drawn from a partial look.\n */\nexport interface CatalogueRecordPolicy {\n /**\n * The catalogue sources a FULL batch covers.\n *\n * A run whose sources do not include all of these is partial by definition, whatever the operator\n * intended, and may not withdraw anything.\n */\n readonly catalogues: readonly string[];\n}\n\nexport function readPolicy(packageRoot: string): CatalogueRecordPolicy | undefined {\n const path = join(packageRoot, 'catalogue-record/policy.json');\n if (!existsSync(path)) return undefined;\n return JSON.parse(readFileSync(path, 'utf8')) as CatalogueRecordPolicy;\n}\n\n/**\n * Whether this run may conclude that something is gone.\n *\n * Fail-SAFE in both directions that matter: an absent policy means NOT full, because withdrawal is\n * the destructive conclusion and a repository with no declared policy has not said what complete\n * means. A filter always means not full, however many catalogues were read.\n */\nexport function isFullBatch(options: {\n readonly packageRoot: string;\n readonly sourcesRead: readonly string[];\n readonly filtered: boolean;\n}): boolean {\n if (options.filtered) return false;\n const policy = readPolicy(options.packageRoot);\n if (policy === undefined) return false;\n const read = new Set(options.sourcesRead);\n return policy.catalogues.every((source) => read.has(source));\n}\n"]}
@@ -0,0 +1,39 @@
1
+ import { type TransposedProvider } from './transposed-provider.model';
2
+ /**
3
+ * Merge every catalogue's view of a vendor into ONE Wildo provider.
4
+ *
5
+ * Decided by Paul on 2026-09-06: **one merged provider per vendor**. Slack, Google, HubSpot and
6
+ * Notion are described by more than one source, and they produce one `providers/<vendor>` package
7
+ * each — never `slack-activepieces` beside `slack-sim`. Package identity is the vendor; the sources
8
+ * are provenance carried per operation.
9
+ *
10
+ * ## The merge is not tidying — it is what completes the catalogue
11
+ *
12
+ * The two sources fail in opposite directions, and that is why merging them is worth more than
13
+ * either. An Activepieces action for a big vendor delegates to an SDK: it carries the operation's
14
+ * identity, its inputs, its description and its auth, and no endpoint. A Sim tool for the same
15
+ * vendor carries the endpoint. Matched on the vendor operation the SDK call named, the pending half
16
+ * is COMPLETED by the other catalogue in the same pass — which is why 70 unreachable Slack actions
17
+ * and 35 Sim endpoints are together better than either alone.
18
+ *
19
+ * ## What decides a tie
20
+ *
21
+ * When two sources describe the same endpoint, the one carrying more declared parameters wins, and
22
+ * the loser is recorded in `alsoDescribedBy` rather than dropped: the NOTICE owes it attribution,
23
+ * and a future disagreement between two catalogues is only diagnosable if both were kept.
24
+ */
25
+ export interface MergeReport {
26
+ readonly vendor: string;
27
+ /** Operations that existed in more than one catalogue and were collapsed into one. */
28
+ readonly deduplicated: number;
29
+ /** PENDING operations an endpoint from another catalogue completed. */
30
+ readonly completed: number;
31
+ /** PENDING operations no catalogue could complete — the honest remainder. */
32
+ readonly stillPending: number;
33
+ }
34
+ export interface MergeResult {
35
+ readonly providers: readonly TransposedProvider[];
36
+ readonly reports: readonly MergeReport[];
37
+ }
38
+ export declare function mergeTransposedProviders(providers: readonly TransposedProvider[]): MergeResult;
39
+ //# sourceMappingURL=provider-merge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-merge.d.ts","sourceRoot":"","sources":["../../../../../src/services/framework/provider-transposition/provider-merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;CAC1C;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,GAAG,WAAW,CA+E9F"}