@wildo-ai/wildo-cli 1.1.7 → 1.1.9

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 (1426) hide show
  1. package/dist/src/commands/build/run.command.d.ts +8 -5
  2. package/dist/src/commands/build/run.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/run.command.js +62 -9
  4. package/dist/src/commands/build/run.command.js.map +1 -1
  5. package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
  6. package/dist/src/commands/config/document-releases.command.js +2 -1
  7. package/dist/src/commands/config/document-releases.command.js.map +1 -1
  8. package/dist/src/commands/config/mutate.command.js +1 -1
  9. package/dist/src/commands/config/mutate.command.js.map +1 -1
  10. package/dist/src/commands/config/reapply-declaration.command.d.ts +9 -3
  11. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  12. package/dist/src/commands/config/reapply-declaration.command.js +10 -4
  13. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  14. package/dist/src/commands/config/validate.command.d.ts +20 -0
  15. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  16. package/dist/src/commands/config/validate.command.js +57 -5
  17. package/dist/src/commands/config/validate.command.js.map +1 -1
  18. package/dist/src/commands/context/journey.command.d.ts +54 -0
  19. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  20. package/dist/src/commands/context/journey.command.js +126 -14
  21. package/dist/src/commands/context/journey.command.js.map +1 -1
  22. package/dist/src/commands/context/launch-blockers.command.d.ts +19 -0
  23. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -0
  24. package/dist/src/commands/context/launch-blockers.command.js +71 -0
  25. package/dist/src/commands/context/launch-blockers.command.js.map +1 -0
  26. package/dist/src/commands/creation/answer.command.d.ts +3 -0
  27. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  28. package/dist/src/commands/creation/answer.command.js +18 -2
  29. package/dist/src/commands/creation/answer.command.js.map +1 -1
  30. package/dist/src/commands/creation/deliberate.command.js +1 -1
  31. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  32. package/dist/src/commands/creation/depth.command.d.ts +16 -0
  33. package/dist/src/commands/creation/depth.command.d.ts.map +1 -0
  34. package/dist/src/commands/creation/depth.command.js +50 -0
  35. package/dist/src/commands/creation/depth.command.js.map +1 -0
  36. package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
  37. package/dist/src/commands/creation/loop.command.js +11 -1
  38. package/dist/src/commands/creation/loop.command.js.map +1 -1
  39. package/dist/src/commands/creation/preflight.command.d.ts +15 -0
  40. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -0
  41. package/dist/src/commands/creation/preflight.command.js +53 -0
  42. package/dist/src/commands/creation/preflight.command.js.map +1 -0
  43. package/dist/src/commands/creation/propose.command.d.ts +18 -0
  44. package/dist/src/commands/creation/propose.command.d.ts.map +1 -0
  45. package/dist/src/commands/creation/propose.command.js +57 -0
  46. package/dist/src/commands/creation/propose.command.js.map +1 -0
  47. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  48. package/dist/src/commands/creation/questions.command.js +21 -6
  49. package/dist/src/commands/creation/questions.command.js.map +1 -1
  50. package/dist/src/commands/creation/reason.command.d.ts +12 -0
  51. package/dist/src/commands/creation/reason.command.d.ts.map +1 -0
  52. package/dist/src/commands/creation/reason.command.js +37 -0
  53. package/dist/src/commands/creation/reason.command.js.map +1 -0
  54. package/dist/src/commands/creation/report.command.d.ts +23 -0
  55. package/dist/src/commands/creation/report.command.d.ts.map +1 -0
  56. package/dist/src/commands/creation/report.command.js +129 -0
  57. package/dist/src/commands/creation/report.command.js.map +1 -0
  58. package/dist/src/commands/creation/run.command.d.ts +2 -0
  59. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  60. package/dist/src/commands/creation/run.command.js +9 -0
  61. package/dist/src/commands/creation/run.command.js.map +1 -1
  62. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts +28 -0
  63. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -0
  64. package/dist/src/commands/db/db-schema-plan-migration.utils.js +38 -0
  65. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -0
  66. package/dist/src/commands/db/db-schema-plan.utils.d.ts +0 -27
  67. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  68. package/dist/src/commands/db/db-schema-plan.utils.js +0 -26
  69. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  70. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  71. package/dist/src/commands/db/generate.command.js +2 -1
  72. package/dist/src/commands/db/generate.command.js.map +1 -1
  73. package/dist/src/commands/help.command.d.ts.map +1 -1
  74. package/dist/src/commands/help.command.js +2 -0
  75. package/dist/src/commands/help.command.js.map +1 -1
  76. package/dist/src/commands/init.command.d.ts +6 -1
  77. package/dist/src/commands/init.command.d.ts.map +1 -1
  78. package/dist/src/commands/init.command.js +50 -12
  79. package/dist/src/commands/init.command.js.map +1 -1
  80. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  81. package/dist/src/commands/local/dev.command.js +10 -5
  82. package/dist/src/commands/local/dev.command.js.map +1 -1
  83. package/dist/src/commands/local/doctor.command.d.ts +7 -4
  84. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  85. package/dist/src/commands/local/doctor.command.js +33 -54
  86. package/dist/src/commands/local/doctor.command.js.map +1 -1
  87. package/dist/src/commands/local/smoke.command.d.ts +18 -0
  88. package/dist/src/commands/local/smoke.command.d.ts.map +1 -0
  89. package/dist/src/commands/local/smoke.command.js +59 -0
  90. package/dist/src/commands/local/smoke.command.js.map +1 -0
  91. package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
  92. package/dist/src/commands/local-defaults/capture.command.js +3 -2
  93. package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
  94. package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
  95. package/dist/src/commands/prefs/set.command.js +6 -1
  96. package/dist/src/commands/prefs/set.command.js.map +1 -1
  97. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  98. package/dist/src/commands/secrets/set.command.js +17 -4
  99. package/dist/src/commands/secrets/set.command.js.map +1 -1
  100. package/dist/src/commands/setup.command.d.ts.map +1 -1
  101. package/dist/src/commands/setup.command.js +5 -4
  102. package/dist/src/commands/setup.command.js.map +1 -1
  103. package/dist/src/commands/update.command.d.ts.map +1 -1
  104. package/dist/src/commands/update.command.js +65 -12
  105. package/dist/src/commands/update.command.js.map +1 -1
  106. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  107. package/dist/src/commands/website/audit.command.js +4 -0
  108. package/dist/src/commands/website/audit.command.js.map +1 -1
  109. package/dist/src/commands/workbench/open.command.js +1 -1
  110. package/dist/src/commands/workbench/open.command.js.map +1 -1
  111. package/dist/src/commands/workbench/status.command.js +1 -1
  112. package/dist/src/commands/workbench/status.command.js.map +1 -1
  113. package/dist/src/kernel/bootstrap.js +3 -2
  114. package/dist/src/kernel/bootstrap.js.map +1 -1
  115. package/dist/src/kernel/command-index-cache.d.ts +29 -0
  116. package/dist/src/kernel/command-index-cache.d.ts.map +1 -0
  117. package/dist/src/kernel/command-index-cache.js +89 -0
  118. package/dist/src/kernel/command-index-cache.js.map +1 -0
  119. package/dist/src/kernel/command-registry.d.ts +28 -0
  120. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  121. package/dist/src/kernel/command-registry.js +89 -18
  122. package/dist/src/kernel/command-registry.js.map +1 -1
  123. package/dist/src/services/application/app-bootstrap.service.d.ts +26 -5
  124. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  125. package/dist/src/services/application/app-bootstrap.service.js +39 -13
  126. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  127. package/dist/src/services/application/application-browser-smoke.service.d.ts +77 -0
  128. package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -0
  129. package/dist/src/services/application/application-browser-smoke.service.js +195 -0
  130. package/dist/src/services/application/application-browser-smoke.service.js.map +1 -0
  131. package/dist/src/services/application/application-creation-readiness.service.d.ts +107 -0
  132. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  133. package/dist/src/services/application/application-creation-readiness.service.js +278 -18
  134. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  135. package/dist/src/services/application/application-initialization-verification.service.d.ts +8 -3
  136. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  137. package/dist/src/services/application/application-initialization-verification.service.js +8 -3
  138. package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
  139. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +2 -0
  140. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  141. package/dist/src/services/application/application-runtime-bootstrap.service.js +26 -0
  142. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  143. package/dist/src/services/application/backend-config.paths.d.ts +8 -0
  144. package/dist/src/services/application/backend-config.paths.d.ts.map +1 -0
  145. package/dist/src/services/application/backend-config.paths.js +9 -0
  146. package/dist/src/services/application/backend-config.paths.js.map +1 -0
  147. package/dist/src/services/application/creation-host-readiness.service.d.ts +61 -0
  148. package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -0
  149. package/dist/src/services/application/creation-host-readiness.service.js +167 -0
  150. package/dist/src/services/application/creation-host-readiness.service.js.map +1 -0
  151. package/dist/src/services/application/creation-preflight.service.d.ts +46 -0
  152. package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -0
  153. package/dist/src/services/application/creation-preflight.service.js +87 -0
  154. package/dist/src/services/application/creation-preflight.service.js.map +1 -0
  155. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts +79 -0
  156. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -0
  157. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js +110 -0
  158. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -0
  159. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  160. package/dist/src/services/application/dev-schema-drift.service.js +2 -1
  161. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  162. package/dist/src/services/application/provider-runtime-sync.service.d.ts +70 -10
  163. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  164. package/dist/src/services/application/provider-runtime-sync.service.js +100 -11
  165. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  166. package/dist/src/services/application/saas-skeleton.service.d.ts +12 -0
  167. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  168. package/dist/src/services/application/saas-skeleton.service.js +27 -2
  169. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  170. package/dist/src/services/application/stored-declaration-currency.service.d.ts +46 -0
  171. package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -0
  172. package/dist/src/services/application/stored-declaration-currency.service.js +76 -0
  173. package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -0
  174. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  175. package/dist/src/services/application/systems-of-record-library.service.js +3 -1
  176. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  177. package/dist/src/services/companion/build-console.service.d.ts +53 -3
  178. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  179. package/dist/src/services/companion/build-console.service.js +94 -8
  180. package/dist/src/services/companion/build-console.service.js.map +1 -1
  181. package/dist/src/services/companion/creation-console.service.d.ts +25 -1
  182. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  183. package/dist/src/services/companion/creation-console.service.js +72 -1
  184. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  185. package/dist/src/services/companion/creation-run-report.models.d.ts +97 -0
  186. package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -0
  187. package/dist/src/services/companion/creation-run-report.models.js +1 -0
  188. package/dist/src/services/companion/creation-run-report.models.js.map +1 -0
  189. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts +0 -1
  190. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  191. package/dist/src/services/compliance/generated-compliance-module-wiring.js +1 -1
  192. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  193. package/dist/src/services/compliance/governed-document-releases.generator.d.ts +0 -2
  194. package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
  195. package/dist/src/services/compliance/governed-document-releases.generator.js +2 -5
  196. package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
  197. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  198. package/dist/src/services/context/context-manager.service.js +3 -0
  199. package/dist/src/services/context/context-manager.service.js.map +1 -1
  200. package/dist/src/services/context/context.schemas.d.ts +8 -3
  201. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  202. package/dist/src/services/context/context.schemas.js.map +1 -1
  203. package/dist/src/services/credentials/application-secrets.service.d.ts +14 -0
  204. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  205. package/dist/src/services/credentials/application-secrets.service.js +76 -7
  206. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  207. package/dist/src/services/credentials/local-defaults.service.d.ts +42 -11
  208. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  209. package/dist/src/services/credentials/local-defaults.service.js +75 -10
  210. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  211. package/dist/src/services/deployment/docker/compose-service-health.d.ts +5 -0
  212. package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
  213. package/dist/src/services/deployment/docker/compose-service-health.js +5 -0
  214. package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
  215. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts +136 -2
  216. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  217. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js +360 -32
  218. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  219. package/dist/src/services/deployment/docker/docker.service.d.ts +28 -0
  220. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  221. package/dist/src/services/deployment/docker/docker.service.js +53 -1
  222. package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
  223. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +16 -0
  224. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  225. package/dist/src/services/deployment/local-precondition-checks.service.js +37 -1
  226. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  227. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +1 -1
  228. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
  229. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  230. package/dist/src/services/deployment/platform-lifecycle.service.js +20 -8
  231. package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
  232. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  233. package/dist/src/services/environment/environment-setup.service.js +19 -9
  234. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  235. package/dist/src/services/environment/environment.schemas.d.ts +5 -2
  236. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  237. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  238. package/dist/src/services/environment/infrastructure-host.service.js +1 -1
  239. package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
  240. package/dist/src/services/environment/platform-runtime.schemas.d.ts +9 -0
  241. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  242. package/dist/src/services/environment/platform-runtime.schemas.js +11 -0
  243. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  244. package/dist/src/services/framework/application-claude-settings.js +1 -1
  245. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  246. package/dist/src/services/framework/dev-compile-status.paths.d.ts +9 -0
  247. package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -0
  248. package/dist/src/services/framework/dev-compile-status.paths.js +10 -0
  249. package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -0
  250. package/dist/src/services/framework/framework-development-skills-sync.service.js +1 -1
  251. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  252. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  253. package/dist/src/services/framework/framework-knowledge-audit.service.js +3 -1
  254. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  255. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  256. package/dist/src/services/framework/framework-knowledge-generation.service.js +8 -0
  257. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  258. package/dist/src/services/framework/framework-npm-publish.service.d.ts +20 -5
  259. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  260. package/dist/src/services/framework/framework-npm-publish.service.js +88 -7
  261. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  262. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  263. package/dist/src/services/framework/framework-publish-manifest.service.js +43 -5
  264. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  265. package/dist/src/services/framework/installed-framework-assets.service.d.ts +20 -2
  266. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  267. package/dist/src/services/framework/installed-framework-assets.service.js +24 -1
  268. package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
  269. package/dist/src/services/tracker/creation-run-tracker.service.d.ts +46 -0
  270. package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -0
  271. package/dist/src/services/tracker/creation-run-tracker.service.js +66 -0
  272. package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -0
  273. package/dist/src/services/website/website-label-pack-audit.service.d.ts +11 -1
  274. package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
  275. package/dist/src/services/website/website-label-pack-audit.service.js +14 -2
  276. package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
  277. package/package.json +20 -17
  278. package/scripts/dev-orchestrator/compile-diagnostic-protocol.mjs +189 -0
  279. package/scripts/dev-orchestrator/local-dev-protocol.mjs +683 -0
  280. package/scripts/dev-orchestrator/local-dev-status.mjs +1234 -0
  281. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +8 -0
  282. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.page.tsx.hbs +9 -19
  283. package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +6 -2
  284. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
  285. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/wait-for-publication.mjs +117 -8
  286. package/templates/saas/scenarios/add-technical-doc/scenario.json +3 -0
  287. package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.page.tsx +7 -17
  288. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +9 -2
  289. package/templates/saas/scenarios/add-website/scenario.json +2 -0
  290. package/templates/saas/skeleton/CLAUDE.md.hbs +4 -1
  291. package/templates/saas/skeleton/frontend/tsconfig.json.hbs +6 -3
  292. package/templates/saas/skeleton/frontend/tsconfig.node.json +18 -3
  293. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +247 -0
  294. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +31 -15
  295. package/templates/saas/skeleton/specifications/src/brand/resolved-assets.generated.ts +10 -0
  296. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +20 -6
  297. package/wildo-framework.info.json +1 -1
  298. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts +0 -8
  299. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +0 -1
  300. package/dist/src/__tests__/sandbox-dependencies.test-helpers.js +0 -54
  301. package/dist/src/__tests__/sandbox-dependencies.test-helpers.js.map +0 -1
  302. package/dist/src/commands/__tests__/compose-dependency-preview.test.d.ts +0 -2
  303. package/dist/src/commands/__tests__/compose-dependency-preview.test.d.ts.map +0 -1
  304. package/dist/src/commands/__tests__/compose-dependency-preview.test.js +0 -271
  305. package/dist/src/commands/__tests__/compose-dependency-preview.test.js.map +0 -1
  306. package/dist/src/commands/__tests__/init-application-repository.test.d.ts +0 -2
  307. package/dist/src/commands/__tests__/init-application-repository.test.d.ts.map +0 -1
  308. package/dist/src/commands/__tests__/init-application-repository.test.js +0 -125
  309. package/dist/src/commands/__tests__/init-application-repository.test.js.map +0 -1
  310. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.d.ts +0 -2
  311. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.d.ts.map +0 -1
  312. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.js +0 -51
  313. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.js.map +0 -1
  314. package/dist/src/commands/__tests__/update.command.test.d.ts +0 -2
  315. package/dist/src/commands/__tests__/update.command.test.d.ts.map +0 -1
  316. package/dist/src/commands/__tests__/update.command.test.js +0 -249
  317. package/dist/src/commands/__tests__/update.command.test.js.map +0 -1
  318. package/dist/src/commands/acp/__tests__/probe.command.test.d.ts +0 -2
  319. package/dist/src/commands/acp/__tests__/probe.command.test.d.ts.map +0 -1
  320. package/dist/src/commands/acp/__tests__/probe.command.test.js +0 -36
  321. package/dist/src/commands/acp/__tests__/probe.command.test.js.map +0 -1
  322. package/dist/src/commands/build/__tests__/console-verbs.commands.test.d.ts +0 -2
  323. package/dist/src/commands/build/__tests__/console-verbs.commands.test.d.ts.map +0 -1
  324. package/dist/src/commands/build/__tests__/console-verbs.commands.test.js +0 -259
  325. package/dist/src/commands/build/__tests__/console-verbs.commands.test.js.map +0 -1
  326. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts +0 -22
  327. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +0 -1
  328. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +0 -268
  329. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +0 -1
  330. package/dist/src/commands/config/__tests__/sync.command.test.d.ts +0 -2
  331. package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +0 -1
  332. package/dist/src/commands/config/__tests__/sync.command.test.js +0 -1591
  333. package/dist/src/commands/config/__tests__/sync.command.test.js.map +0 -1
  334. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.d.ts +0 -2
  335. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.d.ts.map +0 -1
  336. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.js +0 -134
  337. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.js.map +0 -1
  338. package/dist/src/commands/config/__tests__/sync.hosted.command.test.d.ts +0 -2
  339. package/dist/src/commands/config/__tests__/sync.hosted.command.test.d.ts.map +0 -1
  340. package/dist/src/commands/config/__tests__/sync.hosted.command.test.js +0 -106
  341. package/dist/src/commands/config/__tests__/sync.hosted.command.test.js.map +0 -1
  342. package/dist/src/commands/config/__tests__/validate.command.test.d.ts +0 -14
  343. package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +0 -1
  344. package/dist/src/commands/config/__tests__/validate.command.test.js +0 -1076
  345. package/dist/src/commands/config/__tests__/validate.command.test.js.map +0 -1
  346. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +0 -2
  347. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +0 -1
  348. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +0 -63
  349. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +0 -1
  350. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.d.ts +0 -2
  351. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.d.ts.map +0 -1
  352. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.js +0 -118
  353. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.js.map +0 -1
  354. package/dist/src/commands/context/__tests__/default-service-key.test.d.ts +0 -2
  355. package/dist/src/commands/context/__tests__/default-service-key.test.d.ts.map +0 -1
  356. package/dist/src/commands/context/__tests__/default-service-key.test.js +0 -103
  357. package/dist/src/commands/context/__tests__/default-service-key.test.js.map +0 -1
  358. package/dist/src/commands/context/__tests__/elements.command.test.d.ts +0 -2
  359. package/dist/src/commands/context/__tests__/elements.command.test.d.ts.map +0 -1
  360. package/dist/src/commands/context/__tests__/elements.command.test.js +0 -82
  361. package/dist/src/commands/context/__tests__/elements.command.test.js.map +0 -1
  362. package/dist/src/commands/context/__tests__/info.command.test.d.ts +0 -2
  363. package/dist/src/commands/context/__tests__/info.command.test.d.ts.map +0 -1
  364. package/dist/src/commands/context/__tests__/info.command.test.js +0 -321
  365. package/dist/src/commands/context/__tests__/info.command.test.js.map +0 -1
  366. package/dist/src/commands/context/__tests__/journey-application-line.test.d.ts +0 -2
  367. package/dist/src/commands/context/__tests__/journey-application-line.test.d.ts.map +0 -1
  368. package/dist/src/commands/context/__tests__/journey-application-line.test.js +0 -71
  369. package/dist/src/commands/context/__tests__/journey-application-line.test.js.map +0 -1
  370. package/dist/src/commands/context/__tests__/journey-attempt-history.test.d.ts +0 -2
  371. package/dist/src/commands/context/__tests__/journey-attempt-history.test.d.ts.map +0 -1
  372. package/dist/src/commands/context/__tests__/journey-attempt-history.test.js +0 -27
  373. package/dist/src/commands/context/__tests__/journey-attempt-history.test.js.map +0 -1
  374. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +0 -19
  375. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +0 -1
  376. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +0 -106
  377. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +0 -1
  378. package/dist/src/commands/context/__tests__/pipelines.command.test.d.ts +0 -2
  379. package/dist/src/commands/context/__tests__/pipelines.command.test.d.ts.map +0 -1
  380. package/dist/src/commands/context/__tests__/pipelines.command.test.js +0 -136
  381. package/dist/src/commands/context/__tests__/pipelines.command.test.js.map +0 -1
  382. package/dist/src/commands/context/__tests__/workspace.command.test.d.ts +0 -2
  383. package/dist/src/commands/context/__tests__/workspace.command.test.d.ts.map +0 -1
  384. package/dist/src/commands/context/__tests__/workspace.command.test.js +0 -78
  385. package/dist/src/commands/context/__tests__/workspace.command.test.js.map +0 -1
  386. package/dist/src/commands/creation/__tests__/creation.commands.test.d.ts +0 -2
  387. package/dist/src/commands/creation/__tests__/creation.commands.test.d.ts.map +0 -1
  388. package/dist/src/commands/creation/__tests__/creation.commands.test.js +0 -294
  389. package/dist/src/commands/creation/__tests__/creation.commands.test.js.map +0 -1
  390. package/dist/src/commands/creation/__tests__/revert.command.test.d.ts +0 -2
  391. package/dist/src/commands/creation/__tests__/revert.command.test.d.ts.map +0 -1
  392. package/dist/src/commands/creation/__tests__/revert.command.test.js +0 -62
  393. package/dist/src/commands/creation/__tests__/revert.command.test.js.map +0 -1
  394. package/dist/src/commands/db/__tests__/compiled-model-currency.test.d.ts +0 -2
  395. package/dist/src/commands/db/__tests__/compiled-model-currency.test.d.ts.map +0 -1
  396. package/dist/src/commands/db/__tests__/compiled-model-currency.test.js +0 -99
  397. package/dist/src/commands/db/__tests__/compiled-model-currency.test.js.map +0 -1
  398. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.d.ts +0 -2
  399. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.d.ts.map +0 -1
  400. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.js +0 -68
  401. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.js.map +0 -1
  402. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts +0 -2
  403. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +0 -1
  404. package/dist/src/commands/dev/__tests__/design-tokens.command.test.js +0 -202
  405. package/dist/src/commands/dev/__tests__/design-tokens.command.test.js.map +0 -1
  406. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.d.ts +0 -2
  407. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.d.ts.map +0 -1
  408. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.js +0 -69
  409. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.js.map +0 -1
  410. package/dist/src/commands/dev/__tests__/start.command.test.d.ts +0 -2
  411. package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +0 -1
  412. package/dist/src/commands/dev/__tests__/start.command.test.js +0 -475
  413. package/dist/src/commands/dev/__tests__/start.command.test.js.map +0 -1
  414. package/dist/src/commands/dev/__tests__/start.hosted.command.test.d.ts +0 -2
  415. package/dist/src/commands/dev/__tests__/start.hosted.command.test.d.ts.map +0 -1
  416. package/dist/src/commands/dev/__tests__/start.hosted.command.test.js +0 -132
  417. package/dist/src/commands/dev/__tests__/start.hosted.command.test.js.map +0 -1
  418. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.d.ts +0 -2
  419. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.d.ts.map +0 -1
  420. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.js +0 -88
  421. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.js.map +0 -1
  422. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts +0 -2
  423. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +0 -1
  424. package/dist/src/commands/dev/__tests__/stop.command.test.js +0 -72
  425. package/dist/src/commands/dev/__tests__/stop.command.test.js.map +0 -1
  426. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts +0 -2
  427. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +0 -1
  428. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +0 -198
  429. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +0 -1
  430. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +0 -2
  431. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +0 -1
  432. package/dist/src/commands/docs/__tests__/publish.command.test.js +0 -124
  433. package/dist/src/commands/docs/__tests__/publish.command.test.js.map +0 -1
  434. package/dist/src/commands/frontend/__tests__/publish.command.test.d.ts +0 -2
  435. package/dist/src/commands/frontend/__tests__/publish.command.test.d.ts.map +0 -1
  436. package/dist/src/commands/frontend/__tests__/publish.command.test.js +0 -70
  437. package/dist/src/commands/frontend/__tests__/publish.command.test.js.map +0 -1
  438. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts +0 -2
  439. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +0 -1
  440. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js +0 -79
  441. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js.map +0 -1
  442. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts +0 -2
  443. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +0 -1
  444. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js +0 -119
  445. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +0 -1
  446. package/dist/src/commands/fwk/__tests__/publish-all.command.test.d.ts +0 -2
  447. package/dist/src/commands/fwk/__tests__/publish-all.command.test.d.ts.map +0 -1
  448. package/dist/src/commands/fwk/__tests__/publish-all.command.test.js +0 -308
  449. package/dist/src/commands/fwk/__tests__/publish-all.command.test.js.map +0 -1
  450. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts +0 -2
  451. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +0 -1
  452. package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -96
  453. package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +0 -1
  454. package/dist/src/commands/generate/__tests__/email-test-send.command.test.d.ts +0 -2
  455. package/dist/src/commands/generate/__tests__/email-test-send.command.test.d.ts.map +0 -1
  456. package/dist/src/commands/generate/__tests__/email-test-send.command.test.js +0 -46
  457. package/dist/src/commands/generate/__tests__/email-test-send.command.test.js.map +0 -1
  458. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.d.ts +0 -2
  459. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.d.ts.map +0 -1
  460. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.js +0 -33
  461. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.js.map +0 -1
  462. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts +0 -2
  463. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +0 -1
  464. package/dist/src/commands/local/__tests__/dev-status.command.test.js +0 -58
  465. package/dist/src/commands/local/__tests__/dev-status.command.test.js.map +0 -1
  466. package/dist/src/commands/local/__tests__/dev.command.test.d.ts +0 -2
  467. package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +0 -1
  468. package/dist/src/commands/local/__tests__/dev.command.test.js +0 -467
  469. package/dist/src/commands/local/__tests__/dev.command.test.js.map +0 -1
  470. package/dist/src/commands/local/__tests__/dev.hosted.command.test.d.ts +0 -2
  471. package/dist/src/commands/local/__tests__/dev.hosted.command.test.d.ts.map +0 -1
  472. package/dist/src/commands/local/__tests__/dev.hosted.command.test.js +0 -164
  473. package/dist/src/commands/local/__tests__/dev.hosted.command.test.js.map +0 -1
  474. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts +0 -2
  475. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +0 -1
  476. package/dist/src/commands/local/__tests__/doctor.command.test.js +0 -285
  477. package/dist/src/commands/local/__tests__/doctor.command.test.js.map +0 -1
  478. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.d.ts +0 -2
  479. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.d.ts.map +0 -1
  480. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.js +0 -111
  481. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.js.map +0 -1
  482. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.d.ts +0 -2
  483. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.d.ts.map +0 -1
  484. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.js +0 -136
  485. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.js.map +0 -1
  486. package/dist/src/commands/local/__tests__/init.command.test.d.ts +0 -2
  487. package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +0 -1
  488. package/dist/src/commands/local/__tests__/init.command.test.js +0 -110
  489. package/dist/src/commands/local/__tests__/init.command.test.js.map +0 -1
  490. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts +0 -2
  491. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +0 -1
  492. package/dist/src/commands/local/__tests__/reinit.command.test.js +0 -186
  493. package/dist/src/commands/local/__tests__/reinit.command.test.js.map +0 -1
  494. package/dist/src/commands/local/__tests__/reset.command.test.d.ts +0 -2
  495. package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +0 -1
  496. package/dist/src/commands/local/__tests__/reset.command.test.js +0 -308
  497. package/dist/src/commands/local/__tests__/reset.command.test.js.map +0 -1
  498. package/dist/src/commands/local/__tests__/up.command.test.d.ts +0 -2
  499. package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +0 -1
  500. package/dist/src/commands/local/__tests__/up.command.test.js +0 -225
  501. package/dist/src/commands/local/__tests__/up.command.test.js.map +0 -1
  502. package/dist/src/commands/lock/__tests__/check.command.test.d.ts +0 -11
  503. package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +0 -1
  504. package/dist/src/commands/lock/__tests__/check.command.test.js +0 -140
  505. package/dist/src/commands/lock/__tests__/check.command.test.js.map +0 -1
  506. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts +0 -35
  507. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +0 -1
  508. package/dist/src/commands/lock/__tests__/check.live.contract.test.js +0 -122
  509. package/dist/src/commands/lock/__tests__/check.live.contract.test.js.map +0 -1
  510. package/dist/src/commands/market/__tests__/generate.command.test.d.ts +0 -2
  511. package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +0 -1
  512. package/dist/src/commands/market/__tests__/generate.command.test.js +0 -217
  513. package/dist/src/commands/market/__tests__/generate.command.test.js.map +0 -1
  514. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts +0 -2
  515. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +0 -1
  516. package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -148
  517. package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +0 -1
  518. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +0 -2
  519. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +0 -1
  520. package/dist/src/commands/providers/__tests__/required-inputs.test.js +0 -35
  521. package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +0 -1
  522. package/dist/src/commands/registry/__tests__/edited-files-protection.test.d.ts +0 -10
  523. package/dist/src/commands/registry/__tests__/edited-files-protection.test.d.ts.map +0 -1
  524. package/dist/src/commands/registry/__tests__/edited-files-protection.test.js +0 -232
  525. package/dist/src/commands/registry/__tests__/edited-files-protection.test.js.map +0 -1
  526. package/dist/src/commands/registry/__tests__/local-checkout-install.test.d.ts +0 -11
  527. package/dist/src/commands/registry/__tests__/local-checkout-install.test.d.ts.map +0 -1
  528. package/dist/src/commands/registry/__tests__/local-checkout-install.test.js +0 -450
  529. package/dist/src/commands/registry/__tests__/local-checkout-install.test.js.map +0 -1
  530. package/dist/src/commands/registry/__tests__/publish.test.d.ts +0 -2
  531. package/dist/src/commands/registry/__tests__/publish.test.d.ts.map +0 -1
  532. package/dist/src/commands/registry/__tests__/publish.test.js +0 -196
  533. package/dist/src/commands/registry/__tests__/publish.test.js.map +0 -1
  534. package/dist/src/commands/registry/__tests__/repair-contract.test.d.ts +0 -2
  535. package/dist/src/commands/registry/__tests__/repair-contract.test.d.ts.map +0 -1
  536. package/dist/src/commands/registry/__tests__/repair-contract.test.js +0 -168
  537. package/dist/src/commands/registry/__tests__/repair-contract.test.js.map +0 -1
  538. package/dist/src/commands/registry/__tests__/requirements.test.d.ts +0 -2
  539. package/dist/src/commands/registry/__tests__/requirements.test.d.ts.map +0 -1
  540. package/dist/src/commands/registry/__tests__/requirements.test.js +0 -500
  541. package/dist/src/commands/registry/__tests__/requirements.test.js.map +0 -1
  542. package/dist/src/commands/registry/__tests__/version-resolution.test.d.ts +0 -2
  543. package/dist/src/commands/registry/__tests__/version-resolution.test.d.ts.map +0 -1
  544. package/dist/src/commands/registry/__tests__/version-resolution.test.js +0 -87
  545. package/dist/src/commands/registry/__tests__/version-resolution.test.js.map +0 -1
  546. package/dist/src/commands/registry/__tests__/yank.test.d.ts +0 -9
  547. package/dist/src/commands/registry/__tests__/yank.test.d.ts.map +0 -1
  548. package/dist/src/commands/registry/__tests__/yank.test.js +0 -92
  549. package/dist/src/commands/registry/__tests__/yank.test.js.map +0 -1
  550. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts +0 -2
  551. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +0 -1
  552. package/dist/src/commands/remote/__tests__/remote-commands.test.js +0 -100
  553. package/dist/src/commands/remote/__tests__/remote-commands.test.js.map +0 -1
  554. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.d.ts +0 -2
  555. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.d.ts.map +0 -1
  556. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.js +0 -61
  557. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.js.map +0 -1
  558. package/dist/src/commands/website/__tests__/audit.command.test.d.ts +0 -2
  559. package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +0 -1
  560. package/dist/src/commands/website/__tests__/audit.command.test.js +0 -163
  561. package/dist/src/commands/website/__tests__/audit.command.test.js.map +0 -1
  562. package/dist/src/commands/workbench/__tests__/parallelism.command.test.d.ts +0 -2
  563. package/dist/src/commands/workbench/__tests__/parallelism.command.test.d.ts.map +0 -1
  564. package/dist/src/commands/workbench/__tests__/parallelism.command.test.js +0 -51
  565. package/dist/src/commands/workbench/__tests__/parallelism.command.test.js.map +0 -1
  566. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts +0 -2
  567. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +0 -1
  568. package/dist/src/commands/workbench/__tests__/workbench.commands.test.js +0 -59
  569. package/dist/src/commands/workbench/__tests__/workbench.commands.test.js.map +0 -1
  570. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts +0 -2
  571. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +0 -1
  572. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js +0 -138
  573. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js.map +0 -1
  574. package/dist/src/kernel/__tests__/bootstrap.test.d.ts +0 -2
  575. package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +0 -1
  576. package/dist/src/kernel/__tests__/bootstrap.test.js +0 -88
  577. package/dist/src/kernel/__tests__/bootstrap.test.js.map +0 -1
  578. package/dist/src/kernel/__tests__/command-registry.test.d.ts +0 -2
  579. package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +0 -1
  580. package/dist/src/kernel/__tests__/command-registry.test.js +0 -197
  581. package/dist/src/kernel/__tests__/command-registry.test.js.map +0 -1
  582. package/dist/src/kernel/__tests__/command-runner.test.d.ts +0 -2
  583. package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +0 -1
  584. package/dist/src/kernel/__tests__/command-runner.test.js +0 -285
  585. package/dist/src/kernel/__tests__/command-runner.test.js.map +0 -1
  586. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts +0 -2
  587. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +0 -1
  588. package/dist/src/kernel/__tests__/command-scope-utils.test.js +0 -46
  589. package/dist/src/kernel/__tests__/command-scope-utils.test.js.map +0 -1
  590. package/dist/src/kernel/__tests__/flag-utils.test.d.ts +0 -2
  591. package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +0 -1
  592. package/dist/src/kernel/__tests__/flag-utils.test.js +0 -38
  593. package/dist/src/kernel/__tests__/flag-utils.test.js.map +0 -1
  594. package/dist/src/kernel/__tests__/hooks.test.d.ts +0 -2
  595. package/dist/src/kernel/__tests__/hooks.test.d.ts.map +0 -1
  596. package/dist/src/kernel/__tests__/hooks.test.js +0 -72
  597. package/dist/src/kernel/__tests__/hooks.test.js.map +0 -1
  598. package/dist/src/kernel/__tests__/machine-preference-answers.test.d.ts +0 -2
  599. package/dist/src/kernel/__tests__/machine-preference-answers.test.d.ts.map +0 -1
  600. package/dist/src/kernel/__tests__/machine-preference-answers.test.js +0 -118
  601. package/dist/src/kernel/__tests__/machine-preference-answers.test.js.map +0 -1
  602. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts +0 -2
  603. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +0 -1
  604. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js +0 -88
  605. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js.map +0 -1
  606. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +0 -2
  607. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +0 -1
  608. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +0 -154
  609. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +0 -1
  610. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts +0 -2
  611. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +0 -1
  612. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js +0 -89
  613. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js.map +0 -1
  614. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +0 -2
  615. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +0 -1
  616. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +0 -112
  617. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +0 -1
  618. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.d.ts +0 -2
  619. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.d.ts.map +0 -1
  620. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.js +0 -91
  621. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.js.map +0 -1
  622. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts +0 -2
  623. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +0 -1
  624. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js +0 -140
  625. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js.map +0 -1
  626. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts +0 -2
  627. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +0 -1
  628. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js +0 -220
  629. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js.map +0 -1
  630. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts +0 -2
  631. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +0 -1
  632. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +0 -114
  633. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +0 -1
  634. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts +0 -2
  635. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +0 -1
  636. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +0 -884
  637. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +0 -1
  638. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts +0 -2
  639. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +0 -1
  640. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +0 -254
  641. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +0 -1
  642. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts +0 -2
  643. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +0 -1
  644. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +0 -263
  645. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +0 -1
  646. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.d.ts +0 -2
  647. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.d.ts.map +0 -1
  648. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.js +0 -51
  649. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.js.map +0 -1
  650. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts +0 -2
  651. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +0 -1
  652. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +0 -160
  653. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +0 -1
  654. package/dist/src/services/application/__tests__/application-creation-readiness.test.d.ts +0 -2
  655. package/dist/src/services/application/__tests__/application-creation-readiness.test.d.ts.map +0 -1
  656. package/dist/src/services/application/__tests__/application-creation-readiness.test.js +0 -152
  657. package/dist/src/services/application/__tests__/application-creation-readiness.test.js.map +0 -1
  658. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts +0 -2
  659. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +0 -1
  660. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js +0 -233
  661. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js.map +0 -1
  662. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.d.ts +0 -2
  663. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.d.ts.map +0 -1
  664. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.js +0 -29
  665. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.js.map +0 -1
  666. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts +0 -2
  667. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +0 -1
  668. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js +0 -159
  669. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js.map +0 -1
  670. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts +0 -2
  671. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +0 -1
  672. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js +0 -143
  673. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js.map +0 -1
  674. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts +0 -2
  675. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +0 -1
  676. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js +0 -41
  677. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +0 -1
  678. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts +0 -2
  679. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +0 -1
  680. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js +0 -65
  681. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js.map +0 -1
  682. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts +0 -2
  683. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +0 -1
  684. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js +0 -46
  685. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js.map +0 -1
  686. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts +0 -10
  687. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +0 -1
  688. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js +0 -156
  689. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js.map +0 -1
  690. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.d.ts +0 -2
  691. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.d.ts.map +0 -1
  692. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.js +0 -60
  693. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.js.map +0 -1
  694. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts +0 -2
  695. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +0 -1
  696. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -298
  697. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +0 -1
  698. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.d.ts +0 -2
  699. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.d.ts.map +0 -1
  700. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.js +0 -118
  701. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.js.map +0 -1
  702. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.d.ts +0 -2
  703. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.d.ts.map +0 -1
  704. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.js +0 -175
  705. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.js.map +0 -1
  706. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.d.ts +0 -2
  707. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.d.ts.map +0 -1
  708. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.js +0 -31
  709. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.js.map +0 -1
  710. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.d.ts +0 -2
  711. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.d.ts.map +0 -1
  712. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.js +0 -82
  713. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.js.map +0 -1
  714. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts +0 -2
  715. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +0 -1
  716. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +0 -383
  717. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +0 -1
  718. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts +0 -2
  719. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +0 -1
  720. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js +0 -98
  721. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js.map +0 -1
  722. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.d.ts +0 -2
  723. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.d.ts.map +0 -1
  724. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.js +0 -138
  725. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.js.map +0 -1
  726. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts +0 -2
  727. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +0 -1
  728. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +0 -129
  729. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +0 -1
  730. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.d.ts +0 -2
  731. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.d.ts.map +0 -1
  732. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.js +0 -76
  733. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.js.map +0 -1
  734. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +0 -2
  735. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +0 -1
  736. package/dist/src/services/application/__tests__/provider-package-links.service.test.js +0 -284
  737. package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +0 -1
  738. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.d.ts +0 -2
  739. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.d.ts.map +0 -1
  740. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.js +0 -40
  741. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.js.map +0 -1
  742. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts +0 -2
  743. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +0 -1
  744. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +0 -946
  745. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +0 -1
  746. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts +0 -19
  747. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +0 -1
  748. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -188
  749. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +0 -1
  750. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts +0 -2
  751. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +0 -1
  752. package/dist/src/services/application/__tests__/saas-scaffold.service.test.js +0 -29
  753. package/dist/src/services/application/__tests__/saas-scaffold.service.test.js.map +0 -1
  754. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts +0 -2
  755. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +0 -1
  756. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js +0 -860
  757. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +0 -1
  758. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.d.ts +0 -2
  759. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.d.ts.map +0 -1
  760. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.js +0 -180
  761. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.js.map +0 -1
  762. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.d.ts +0 -2
  763. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.d.ts.map +0 -1
  764. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.js +0 -79
  765. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.js.map +0 -1
  766. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +0 -2
  767. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +0 -1
  768. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +0 -93
  769. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +0 -1
  770. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.d.ts +0 -2
  771. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.d.ts.map +0 -1
  772. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.js +0 -89
  773. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.js.map +0 -1
  774. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts +0 -2
  775. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +0 -1
  776. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +0 -172
  777. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +0 -1
  778. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts +0 -2
  779. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +0 -1
  780. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +0 -152
  781. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +0 -1
  782. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +0 -2
  783. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +0 -1
  784. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +0 -123
  785. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +0 -1
  786. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts +0 -10
  787. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +0 -1
  788. package/dist/src/services/companion/__tests__/companion-client.service.test.js +0 -241
  789. package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +0 -1
  790. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.d.ts +0 -2
  791. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.d.ts.map +0 -1
  792. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.js +0 -25
  793. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.js.map +0 -1
  794. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts +0 -2
  795. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +0 -1
  796. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js +0 -74
  797. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js.map +0 -1
  798. package/dist/src/services/companion/__tests__/console-fast-path.test.d.ts +0 -2
  799. package/dist/src/services/companion/__tests__/console-fast-path.test.d.ts.map +0 -1
  800. package/dist/src/services/companion/__tests__/console-fast-path.test.js +0 -138
  801. package/dist/src/services/companion/__tests__/console-fast-path.test.js.map +0 -1
  802. package/dist/src/services/companion/__tests__/creation-watch.test.d.ts +0 -2
  803. package/dist/src/services/companion/__tests__/creation-watch.test.d.ts.map +0 -1
  804. package/dist/src/services/companion/__tests__/creation-watch.test.js +0 -86
  805. package/dist/src/services/companion/__tests__/creation-watch.test.js.map +0 -1
  806. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts +0 -2
  807. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +0 -1
  808. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js +0 -14
  809. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js.map +0 -1
  810. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts +0 -2
  811. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +0 -1
  812. package/dist/src/services/companion/__tests__/workbench-cli.service.test.js +0 -51
  813. package/dist/src/services/companion/__tests__/workbench-cli.service.test.js.map +0 -1
  814. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.d.ts +0 -2
  815. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.d.ts.map +0 -1
  816. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.js +0 -71
  817. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.js.map +0 -1
  818. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.d.ts +0 -2
  819. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.d.ts.map +0 -1
  820. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.js +0 -85
  821. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.js.map +0 -1
  822. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.d.ts +0 -2
  823. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.d.ts.map +0 -1
  824. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.js +0 -289
  825. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.js.map +0 -1
  826. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.d.ts +0 -2
  827. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.d.ts.map +0 -1
  828. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.js +0 -78
  829. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.js.map +0 -1
  830. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.d.ts +0 -2
  831. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.d.ts.map +0 -1
  832. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.js +0 -67
  833. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.js.map +0 -1
  834. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.d.ts +0 -2
  835. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.d.ts.map +0 -1
  836. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.js +0 -109
  837. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.js.map +0 -1
  838. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.d.ts +0 -2
  839. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.d.ts.map +0 -1
  840. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.js +0 -54
  841. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.js.map +0 -1
  842. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts +0 -2
  843. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +0 -1
  844. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +0 -56
  845. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +0 -1
  846. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts +0 -2
  847. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +0 -1
  848. package/dist/src/services/context/__tests__/context-manager.service.test.js +0 -119
  849. package/dist/src/services/context/__tests__/context-manager.service.test.js.map +0 -1
  850. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.d.ts +0 -2
  851. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.d.ts.map +0 -1
  852. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.js +0 -138
  853. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.js.map +0 -1
  854. package/dist/src/services/credentials/__tests__/application-secrets.service.test.d.ts +0 -2
  855. package/dist/src/services/credentials/__tests__/application-secrets.service.test.d.ts.map +0 -1
  856. package/dist/src/services/credentials/__tests__/application-secrets.service.test.js +0 -201
  857. package/dist/src/services/credentials/__tests__/application-secrets.service.test.js.map +0 -1
  858. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +0 -28
  859. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +0 -1
  860. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +0 -239
  861. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +0 -1
  862. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +0 -2
  863. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +0 -1
  864. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +0 -328
  865. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +0 -1
  866. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.d.ts +0 -2
  867. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.d.ts.map +0 -1
  868. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.js +0 -52
  869. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.js.map +0 -1
  870. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.d.ts +0 -2
  871. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.d.ts.map +0 -1
  872. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.js +0 -89
  873. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.js.map +0 -1
  874. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts +0 -14
  875. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +0 -1
  876. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js +0 -284
  877. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js.map +0 -1
  878. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.d.ts +0 -2
  879. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.d.ts.map +0 -1
  880. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.js +0 -56
  881. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.js.map +0 -1
  882. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +0 -2
  883. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +0 -1
  884. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +0 -95
  885. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +0 -1
  886. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.d.ts +0 -2
  887. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.d.ts.map +0 -1
  888. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.js +0 -113
  889. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.js.map +0 -1
  890. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.d.ts +0 -2
  891. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.d.ts.map +0 -1
  892. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.js +0 -271
  893. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.js.map +0 -1
  894. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts +0 -2
  895. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +0 -1
  896. package/dist/src/services/credentials/__tests__/secrets-contracts.test.js +0 -277
  897. package/dist/src/services/credentials/__tests__/secrets-contracts.test.js.map +0 -1
  898. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.d.ts +0 -2
  899. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.d.ts.map +0 -1
  900. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.js +0 -54
  901. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.js.map +0 -1
  902. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.d.ts +0 -2
  903. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.d.ts.map +0 -1
  904. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.js +0 -61
  905. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.js.map +0 -1
  906. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts +0 -2
  907. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +0 -1
  908. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js +0 -64
  909. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js.map +0 -1
  910. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.d.ts +0 -2
  911. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.d.ts.map +0 -1
  912. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.js +0 -90
  913. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.js.map +0 -1
  914. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts +0 -2
  915. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +0 -1
  916. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +0 -369
  917. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +0 -1
  918. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.d.ts +0 -2
  919. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.d.ts.map +0 -1
  920. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.js +0 -51
  921. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.js.map +0 -1
  922. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts +0 -2
  923. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +0 -1
  924. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js +0 -148
  925. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js.map +0 -1
  926. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.d.ts +0 -2
  927. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.d.ts.map +0 -1
  928. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.js +0 -47
  929. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.js.map +0 -1
  930. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts +0 -2
  931. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +0 -1
  932. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +0 -799
  933. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +0 -1
  934. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts +0 -20
  935. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +0 -1
  936. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +0 -348
  937. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +0 -1
  938. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.d.ts +0 -2
  939. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.d.ts.map +0 -1
  940. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.js +0 -83
  941. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.js.map +0 -1
  942. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts +0 -2
  943. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +0 -1
  944. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js +0 -211
  945. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js.map +0 -1
  946. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.d.ts +0 -2
  947. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.d.ts.map +0 -1
  948. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.js +0 -68
  949. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.js.map +0 -1
  950. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts +0 -2
  951. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +0 -1
  952. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js +0 -97
  953. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js.map +0 -1
  954. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts +0 -2
  955. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +0 -1
  956. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js +0 -258
  957. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js.map +0 -1
  958. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts +0 -2
  959. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +0 -1
  960. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js +0 -336
  961. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js.map +0 -1
  962. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts +0 -2
  963. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +0 -1
  964. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js +0 -100
  965. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js.map +0 -1
  966. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.d.ts +0 -2
  967. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.d.ts.map +0 -1
  968. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.js +0 -79
  969. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.js.map +0 -1
  970. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts +0 -11
  971. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +0 -1
  972. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +0 -494
  973. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +0 -1
  974. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts +0 -2
  975. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +0 -1
  976. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js +0 -229
  977. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js.map +0 -1
  978. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts +0 -2
  979. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +0 -1
  980. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +0 -145
  981. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +0 -1
  982. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.d.ts +0 -2
  983. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.d.ts.map +0 -1
  984. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.js +0 -100
  985. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.js.map +0 -1
  986. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts +0 -2
  987. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +0 -1
  988. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js +0 -245
  989. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js.map +0 -1
  990. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts +0 -2
  991. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +0 -1
  992. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js +0 -27
  993. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js.map +0 -1
  994. package/dist/src/services/deployment/__tests__/platform-service-memory.test.d.ts +0 -2
  995. package/dist/src/services/deployment/__tests__/platform-service-memory.test.d.ts.map +0 -1
  996. package/dist/src/services/deployment/__tests__/platform-service-memory.test.js +0 -88
  997. package/dist/src/services/deployment/__tests__/platform-service-memory.test.js.map +0 -1
  998. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.d.ts +0 -2
  999. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.d.ts.map +0 -1
  1000. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.js +0 -339
  1001. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.js.map +0 -1
  1002. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts +0 -2
  1003. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +0 -1
  1004. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js +0 -45
  1005. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js.map +0 -1
  1006. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts +0 -2
  1007. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +0 -1
  1008. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js +0 -81
  1009. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js.map +0 -1
  1010. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.d.ts +0 -2
  1011. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.d.ts.map +0 -1
  1012. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.js +0 -151
  1013. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.js.map +0 -1
  1014. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts +0 -2
  1015. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +0 -1
  1016. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +0 -1183
  1017. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +0 -1
  1018. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts +0 -2
  1019. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +0 -1
  1020. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js +0 -156
  1021. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js.map +0 -1
  1022. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.d.ts +0 -2
  1023. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.d.ts.map +0 -1
  1024. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.js +0 -199
  1025. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.js.map +0 -1
  1026. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.d.ts +0 -2
  1027. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.d.ts.map +0 -1
  1028. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.js +0 -81
  1029. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.js.map +0 -1
  1030. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.d.ts +0 -2
  1031. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.d.ts.map +0 -1
  1032. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.js +0 -62
  1033. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.js.map +0 -1
  1034. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts +0 -2
  1035. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +0 -1
  1036. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +0 -265
  1037. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +0 -1
  1038. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.d.ts +0 -2
  1039. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.d.ts.map +0 -1
  1040. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.js +0 -77
  1041. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.js.map +0 -1
  1042. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts +0 -2
  1043. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +0 -1
  1044. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +0 -1087
  1045. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +0 -1
  1046. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts +0 -2
  1047. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +0 -1
  1048. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js +0 -39
  1049. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js.map +0 -1
  1050. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +0 -2
  1051. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +0 -1
  1052. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +0 -235
  1053. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +0 -1
  1054. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.d.ts +0 -2
  1055. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.d.ts.map +0 -1
  1056. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.js +0 -71
  1057. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.js.map +0 -1
  1058. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts +0 -2
  1059. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +0 -1
  1060. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +0 -307
  1061. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +0 -1
  1062. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts +0 -2
  1063. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +0 -1
  1064. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js +0 -47
  1065. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js.map +0 -1
  1066. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts +0 -2
  1067. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +0 -1
  1068. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js +0 -22
  1069. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js.map +0 -1
  1070. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.d.ts +0 -2
  1071. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.d.ts.map +0 -1
  1072. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.js +0 -52
  1073. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.js.map +0 -1
  1074. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts +0 -2
  1075. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +0 -1
  1076. package/dist/src/services/environment/__tests__/compose-converge-args.test.js +0 -112
  1077. package/dist/src/services/environment/__tests__/compose-converge-args.test.js.map +0 -1
  1078. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts +0 -2
  1079. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +0 -1
  1080. package/dist/src/services/environment/__tests__/config-hydration-seam.test.js +0 -105
  1081. package/dist/src/services/environment/__tests__/config-hydration-seam.test.js.map +0 -1
  1082. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.d.ts +0 -2
  1083. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.d.ts.map +0 -1
  1084. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.js +0 -86
  1085. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.js.map +0 -1
  1086. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts +0 -2
  1087. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +0 -1
  1088. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +0 -571
  1089. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +0 -1
  1090. package/dist/src/services/environment/__tests__/env-sync.hosted.test.d.ts +0 -2
  1091. package/dist/src/services/environment/__tests__/env-sync.hosted.test.d.ts.map +0 -1
  1092. package/dist/src/services/environment/__tests__/env-sync.hosted.test.js +0 -80
  1093. package/dist/src/services/environment/__tests__/env-sync.hosted.test.js.map +0 -1
  1094. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts +0 -2
  1095. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +0 -1
  1096. package/dist/src/services/environment/__tests__/env-sync.service.test.js +0 -195
  1097. package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +0 -1
  1098. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts +0 -2
  1099. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +0 -1
  1100. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +0 -1896
  1101. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +0 -1
  1102. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts +0 -22
  1103. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +0 -1
  1104. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js +0 -110
  1105. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js.map +0 -1
  1106. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts +0 -2
  1107. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +0 -1
  1108. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js +0 -82
  1109. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js.map +0 -1
  1110. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts +0 -2
  1111. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +0 -1
  1112. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js +0 -116
  1113. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js.map +0 -1
  1114. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +0 -2
  1115. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +0 -1
  1116. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +0 -128
  1117. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +0 -1
  1118. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts +0 -2
  1119. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +0 -1
  1120. package/dist/src/services/environment/__tests__/environment-paths.service.test.js +0 -18
  1121. package/dist/src/services/environment/__tests__/environment-paths.service.test.js.map +0 -1
  1122. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.d.ts +0 -2
  1123. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.d.ts.map +0 -1
  1124. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.js +0 -220
  1125. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.js.map +0 -1
  1126. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts +0 -2
  1127. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +0 -1
  1128. package/dist/src/services/environment/__tests__/environment-registry.service.test.js +0 -175
  1129. package/dist/src/services/environment/__tests__/environment-registry.service.test.js.map +0 -1
  1130. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts +0 -2
  1131. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +0 -1
  1132. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +0 -321
  1133. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +0 -1
  1134. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.d.ts +0 -2
  1135. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.d.ts.map +0 -1
  1136. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.js +0 -83
  1137. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.js.map +0 -1
  1138. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.d.ts +0 -2
  1139. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.d.ts.map +0 -1
  1140. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.js +0 -162
  1141. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.js.map +0 -1
  1142. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts +0 -2
  1143. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +0 -1
  1144. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js +0 -96
  1145. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js.map +0 -1
  1146. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts +0 -2
  1147. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +0 -1
  1148. package/dist/src/services/environment/__tests__/platform-image-ref.test.js +0 -109
  1149. package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +0 -1
  1150. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts +0 -2
  1151. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +0 -1
  1152. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js +0 -48
  1153. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js.map +0 -1
  1154. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts +0 -2
  1155. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +0 -1
  1156. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js +0 -96
  1157. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js.map +0 -1
  1158. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts +0 -2
  1159. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +0 -1
  1160. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js +0 -150
  1161. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js.map +0 -1
  1162. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.d.ts +0 -2
  1163. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.d.ts.map +0 -1
  1164. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.js +0 -79
  1165. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.js.map +0 -1
  1166. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.d.ts +0 -2
  1167. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.d.ts.map +0 -1
  1168. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.js +0 -108
  1169. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.js.map +0 -1
  1170. package/dist/src/services/framework/__tests__/application-claude-settings.test.d.ts +0 -2
  1171. package/dist/src/services/framework/__tests__/application-claude-settings.test.d.ts.map +0 -1
  1172. package/dist/src/services/framework/__tests__/application-claude-settings.test.js +0 -174
  1173. package/dist/src/services/framework/__tests__/application-claude-settings.test.js.map +0 -1
  1174. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +0 -2
  1175. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +0 -1
  1176. package/dist/src/services/framework/__tests__/application-rule-imports.test.js +0 -58
  1177. package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +0 -1
  1178. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.d.ts +0 -2
  1179. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.d.ts.map +0 -1
  1180. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.js +0 -152
  1181. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.js.map +0 -1
  1182. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.d.ts +0 -2
  1183. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.d.ts.map +0 -1
  1184. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.js +0 -81
  1185. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.js.map +0 -1
  1186. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.d.ts +0 -2
  1187. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.d.ts.map +0 -1
  1188. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.js +0 -66
  1189. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.js.map +0 -1
  1190. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +0 -2
  1191. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +0 -1
  1192. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +0 -58
  1193. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +0 -1
  1194. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts +0 -14
  1195. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +0 -1
  1196. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js +0 -65
  1197. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +0 -1
  1198. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts +0 -2
  1199. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +0 -1
  1200. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js +0 -41
  1201. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +0 -1
  1202. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts +0 -2
  1203. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +0 -1
  1204. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js +0 -38
  1205. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js.map +0 -1
  1206. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts +0 -2
  1207. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +0 -1
  1208. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js +0 -181
  1209. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js.map +0 -1
  1210. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts +0 -2
  1211. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +0 -1
  1212. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js +0 -415
  1213. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +0 -1
  1214. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts +0 -2
  1215. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +0 -1
  1216. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js +0 -100
  1217. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js.map +0 -1
  1218. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts +0 -2
  1219. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +0 -1
  1220. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +0 -270
  1221. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +0 -1
  1222. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts +0 -2
  1223. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +0 -1
  1224. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +0 -1731
  1225. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +0 -1
  1226. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts +0 -2
  1227. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +0 -1
  1228. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +0 -1211
  1229. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +0 -1
  1230. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts +0 -2
  1231. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +0 -1
  1232. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js +0 -783
  1233. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +0 -1
  1234. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts +0 -2
  1235. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +0 -1
  1236. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +0 -545
  1237. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +0 -1
  1238. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts +0 -2
  1239. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +0 -1
  1240. package/dist/src/services/framework/__tests__/framework-release.service.test.js +0 -96
  1241. package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +0 -1
  1242. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts +0 -2
  1243. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +0 -1
  1244. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js +0 -64
  1245. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js.map +0 -1
  1246. package/dist/src/services/framework/__tests__/framework-update.service.test.d.ts +0 -2
  1247. package/dist/src/services/framework/__tests__/framework-update.service.test.d.ts.map +0 -1
  1248. package/dist/src/services/framework/__tests__/framework-update.service.test.js +0 -348
  1249. package/dist/src/services/framework/__tests__/framework-update.service.test.js.map +0 -1
  1250. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts +0 -2
  1251. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +0 -1
  1252. package/dist/src/services/framework/__tests__/framework-version.service.test.js +0 -105
  1253. package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +0 -1
  1254. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.d.ts +0 -2
  1255. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.d.ts.map +0 -1
  1256. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.js +0 -200
  1257. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.js.map +0 -1
  1258. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts +0 -2
  1259. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +0 -1
  1260. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js +0 -60
  1261. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js.map +0 -1
  1262. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.d.ts +0 -2
  1263. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.d.ts.map +0 -1
  1264. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.js +0 -20
  1265. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.js.map +0 -1
  1266. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.d.ts +0 -2
  1267. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.d.ts.map +0 -1
  1268. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.js +0 -28
  1269. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.js.map +0 -1
  1270. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.d.ts +0 -2
  1271. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.d.ts.map +0 -1
  1272. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.js +0 -60
  1273. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.js.map +0 -1
  1274. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.d.ts +0 -2
  1275. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.d.ts.map +0 -1
  1276. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.js +0 -57
  1277. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.js.map +0 -1
  1278. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +0 -2
  1279. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +0 -1
  1280. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +0 -100
  1281. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +0 -1
  1282. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +0 -2
  1283. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +0 -1
  1284. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +0 -92
  1285. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +0 -1
  1286. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.d.ts +0 -2
  1287. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.d.ts.map +0 -1
  1288. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.js +0 -95
  1289. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.js.map +0 -1
  1290. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.d.ts +0 -2
  1291. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.d.ts.map +0 -1
  1292. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.js +0 -255
  1293. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.js.map +0 -1
  1294. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +0 -2
  1295. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +0 -1
  1296. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +0 -83
  1297. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +0 -1
  1298. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.d.ts +0 -2
  1299. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.d.ts.map +0 -1
  1300. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.js +0 -114
  1301. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.js.map +0 -1
  1302. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.d.ts +0 -2
  1303. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.d.ts.map +0 -1
  1304. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.js +0 -905
  1305. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.js.map +0 -1
  1306. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.d.ts +0 -2
  1307. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.d.ts.map +0 -1
  1308. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.js +0 -228
  1309. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.js.map +0 -1
  1310. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.d.ts +0 -2
  1311. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.d.ts.map +0 -1
  1312. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.js +0 -310
  1313. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.js.map +0 -1
  1314. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.d.ts +0 -2
  1315. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.d.ts.map +0 -1
  1316. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.js +0 -351
  1317. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.js.map +0 -1
  1318. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.d.ts +0 -2
  1319. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.d.ts.map +0 -1
  1320. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.js +0 -363
  1321. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.js.map +0 -1
  1322. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +0 -2
  1323. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +0 -1
  1324. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +0 -226
  1325. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +0 -1
  1326. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +0 -2
  1327. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +0 -1
  1328. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +0 -399
  1329. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +0 -1
  1330. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.d.ts +0 -2
  1331. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.d.ts.map +0 -1
  1332. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.js +0 -177
  1333. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.js.map +0 -1
  1334. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.d.ts +0 -2
  1335. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.d.ts.map +0 -1
  1336. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.js +0 -48
  1337. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.js.map +0 -1
  1338. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +0 -2
  1339. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +0 -1
  1340. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +0 -818
  1341. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +0 -1
  1342. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.d.ts +0 -9
  1343. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.d.ts.map +0 -1
  1344. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.js +0 -77
  1345. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.js.map +0 -1
  1346. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.d.ts +0 -2
  1347. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.d.ts.map +0 -1
  1348. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.js +0 -221
  1349. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.js.map +0 -1
  1350. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.d.ts +0 -2
  1351. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.d.ts.map +0 -1
  1352. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.js +0 -144
  1353. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.js.map +0 -1
  1354. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts +0 -2
  1355. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +0 -1
  1356. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js +0 -70
  1357. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js.map +0 -1
  1358. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts +0 -2
  1359. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +0 -1
  1360. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js +0 -52
  1361. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js.map +0 -1
  1362. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts +0 -2
  1363. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +0 -1
  1364. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js +0 -135
  1365. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js.map +0 -1
  1366. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.d.ts +0 -2
  1367. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.d.ts.map +0 -1
  1368. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.js +0 -85
  1369. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.js.map +0 -1
  1370. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.d.ts +0 -2
  1371. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.d.ts.map +0 -1
  1372. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.js +0 -159
  1373. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.js.map +0 -1
  1374. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.d.ts +0 -8
  1375. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.d.ts.map +0 -1
  1376. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.js +0 -148
  1377. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.js.map +0 -1
  1378. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.d.ts +0 -2
  1379. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.d.ts.map +0 -1
  1380. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.js +0 -50
  1381. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.js.map +0 -1
  1382. package/dist/src/services/registry/__tests__/module-registration.service.test.d.ts +0 -2
  1383. package/dist/src/services/registry/__tests__/module-registration.service.test.d.ts.map +0 -1
  1384. package/dist/src/services/registry/__tests__/module-registration.service.test.js +0 -302
  1385. package/dist/src/services/registry/__tests__/module-registration.service.test.js.map +0 -1
  1386. package/dist/src/services/registry/__tests__/module-requirements.service.test.d.ts +0 -2
  1387. package/dist/src/services/registry/__tests__/module-requirements.service.test.d.ts.map +0 -1
  1388. package/dist/src/services/registry/__tests__/module-requirements.service.test.js +0 -138
  1389. package/dist/src/services/registry/__tests__/module-requirements.service.test.js.map +0 -1
  1390. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.d.ts +0 -2
  1391. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.d.ts.map +0 -1
  1392. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.js +0 -68
  1393. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.js.map +0 -1
  1394. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.d.ts +0 -2
  1395. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.d.ts.map +0 -1
  1396. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.js +0 -91
  1397. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.js.map +0 -1
  1398. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.d.ts +0 -2
  1399. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.d.ts.map +0 -1
  1400. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.js +0 -67
  1401. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.js.map +0 -1
  1402. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +0 -67
  1403. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +0 -1
  1404. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +0 -229
  1405. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +0 -1
  1406. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts +0 -2
  1407. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +0 -1
  1408. package/dist/src/services/security/__tests__/csp-boundary.test.js +0 -103
  1409. package/dist/src/services/security/__tests__/csp-boundary.test.js.map +0 -1
  1410. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts +0 -2
  1411. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +0 -1
  1412. package/dist/src/services/security/__tests__/csp-sync.service.test.js +0 -617
  1413. package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +0 -1
  1414. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +0 -2
  1415. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +0 -1
  1416. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +0 -117
  1417. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +0 -1
  1418. package/dist/src/test-utils/certificate-fixtures.test.utils.d.ts +0 -21
  1419. package/dist/src/test-utils/certificate-fixtures.test.utils.d.ts.map +0 -1
  1420. package/dist/src/test-utils/certificate-fixtures.test.utils.js +0 -57
  1421. package/dist/src/test-utils/certificate-fixtures.test.utils.js.map +0 -1
  1422. package/dist/src/test-utils/resolved-homes.test.utils.d.ts +0 -4
  1423. package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +0 -1
  1424. package/dist/src/test-utils/resolved-homes.test.utils.js +0 -18
  1425. package/dist/src/test-utils/resolved-homes.test.utils.js.map +0 -1
  1426. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -30,13 +30,26 @@
30
30
  * and the required secrets are taken from the DISCOVERED contribution's own `secretsContractShape`
31
31
  * rather than from a list of environment-variable names kept here. A provider added to the engine
32
32
  * tomorrow is checked correctly by this file without being mentioned in it.
33
+ *
34
+ * ## What the creation preflight added (#2229)
35
+ *
36
+ * The capability lines ask whether SOME provider serves a capability; the runtime refuses per AGENT, on the
37
+ * provider that agent pins. So the lane's pinned providers are checked one `(provider, protocol)` pair at a
38
+ * time — the playbook lane, the logo step's image generation and judge, the expert-persona agents — from
39
+ * `CREATION_LANE_PROVIDER_REQUIREMENTS`, the table those agents read their `providerRef` from; and the billing
40
+ * provider's key is checked the way the backend's boot reads it. `evaluateProviderProtocolReadiness` is the one
41
+ * predicate both use. This file is half of the preflight; `creation-preflight.service.ts` joins it with the host
42
+ * checks for `wildo creation preflight`, `wildo local doctor` and the gate on `wildo creation run` / `loop`.
33
43
  */
34
44
  import { existsSync } from 'fs';
35
- import { discoverSaasProviderCompanionContributions, loadSaasConfig, } from '@wildo-ai/platform-config-lib';
36
- import { EngineCapability } from '@wildo-ai/saas-models';
45
+ import { discoverSaasProviderCompanionContributions, loadConfig, loadSaasConfig, } from '@wildo-ai/platform-config-lib';
46
+ import { CREATION_LANE_PROVIDER_REQUIREMENTS, CreationLaneProviderConsumer } from '@wildo-ai/application-creation-runtime';
47
+ import { BUILTIN_PROVIDER_PROTOCOL, EngineCapability, describeCaughtError } from '@wildo-ai/saas-models';
37
48
  import { LocalPreconditionCheckStatus } from '../../services/deployment/local-precondition-checks.schemas.js';
38
49
  import { EnvironmentUtils } from '../../services/environment/environment.service.js';
39
50
  import { resolveLocalDefaultsPath } from '../../services/credentials/local-defaults.service.js';
51
+ import { resolveEnvironmentProviderConfigurations } from '../../services/application/environment-provider-configurations.service.js';
52
+ import { BACKEND_CONFIG_RELATIVE_PATH } from '../../services/application/backend-config.paths.js';
40
53
  import { WORKSPACE_CONFIG_NAMES } from '@wildo-ai/platform-config-lib';
41
54
  import { join } from 'path';
42
55
  /**
@@ -61,21 +74,238 @@ function warn(name, detail, fix) {
61
74
  return { name, status: LocalPreconditionCheckStatus.WARN, detail, fix };
62
75
  }
63
76
  /**
64
- * Every runtime the COMPANION can resolve a provider through.
77
+ * The process a provider must reach for a refusal to be avoided — both a `providers.scopes.<host>` key and the
78
+ * `runtimeTargets[].kind` a contribution names for it, which spell the same two words.
79
+ *
80
+ * semantic-literal-boundary: the values are `wildo.saas.config.ts` scope keys and companion runtime-target kinds,
81
+ * owned by platform-config-lib's config schema; this enum names the two this file asks about.
82
+ */
83
+ export var CreationProviderHost;
84
+ (function (CreationProviderHost) {
85
+ /** The dev companion: it runs the creation journey and every agent of the lane. */
86
+ CreationProviderHost["COMPANION"] = "companion";
87
+ /** The application's backend: it resolves the billing provider at boot. */
88
+ CreationProviderHost["BACKEND"] = "backend";
89
+ })(CreationProviderHost || (CreationProviderHost = {}));
90
+ /**
91
+ * Where the key a protocol call needs is named, which differs by refusal and must not be merged.
92
+ *
93
+ * `getProviderApiKey` (an agent's LLM or image call) reads the protocol configuration's `authConfig.secretRef`,
94
+ * so an application that overrides it in `providerConfigurations` moves the key. `resolveBillingProvider` reads
95
+ * the runtime contract's own `secretRef` and honours no override. Checking the billing key through the
96
+ * override would report a key the backend never reads.
97
+ */
98
+ export var ProviderKeySource;
99
+ (function (ProviderKeySource) {
100
+ ProviderKeySource["CONFIGURED_AUTH_SECRET_REF"] = "configured-auth-secret-ref";
101
+ ProviderKeySource["RUNTIME_CONTRACT_SECRET_REF"] = "runtime-contract-secret-ref";
102
+ })(ProviderKeySource || (ProviderKeySource = {}));
103
+ /** Why a provider protocol would be refused, in the order the runtime asks. */
104
+ export var ProviderProtocolRefusal;
105
+ (function (ProviderProtocolRefusal) {
106
+ /** Not under `providers.scopes.<host>`: the host's registry never loads it, so `isProviderEnabled` is false. */
107
+ ProviderProtocolRefusal["NOT_SCOPED"] = "not-scoped";
108
+ /** Scoped, but no installed package contributes it for that host: `wildo config sync` refuses, and the host cannot boot. */
109
+ ProviderProtocolRefusal["NOT_CONTRIBUTED"] = "not-contributed";
110
+ /** Loaded, but the module binds no such protocol: `provider.protocols.includes(kind)` is false. */
111
+ ProviderProtocolRefusal["PROTOCOL_NOT_BOUND"] = "protocol-not-bound";
112
+ /** `providerConfigurations.<ref>.<protocol>.enabled` is `false` for this environment. */
113
+ ProviderProtocolRefusal["DISABLED"] = "disabled";
114
+ /** Everything holds except the key: `getProviderApiKey` / the billing secret read returns nothing. */
115
+ ProviderProtocolRefusal["SECRET_MISSING"] = "secret-missing";
116
+ })(ProviderProtocolRefusal || (ProviderProtocolRefusal = {}));
117
+ /**
118
+ * Would `providerRef` serve `protocol` on `host`, and does that host hold its key — evaluated the way the runtime
119
+ * evaluates it, from the sources the runtime reads.
120
+ *
121
+ * The runtime predicate, piece by piece:
122
+ *
123
+ * | runtime | here |
124
+ * |---|---|
125
+ * | `hasProvider(ref)` — the host's registry holds only the refs its provider-runtime artifact lists, which `wildo config sync` writes from `providers.scopes.<host>` | `ref` under that scope, AND a discovered contribution targeting that host |
126
+ * | `provider.protocols.includes(kind)` — the module's bindings, NOT the scope's authored `protocols` | the contribution's `protocols`, projected from those same bindings |
127
+ * | `getProviderConfiguration(ref, kind).enabled !== false` — application config overlaid by the environment's | `resolveEnvironmentProviderConfigurations`, the overlay `wildo config sync` stores |
128
+ * | the key — `authConfig.secretRef` (default: the binding's contract) or the billing contract's `secretRef`, read from the process env | `protocolSecretRefs` (or an override) read from `secrets.json > providerEnv`, which is what reaches that env |
129
+ *
130
+ * A contribution emitted before `protocolSecretRefs` existed names no per-protocol key, and then every REQUIRED
131
+ * entry of its secrets shape is asked for — stricter than the runtime for a provider with several keys, and the
132
+ * reason the field was added.
133
+ */
134
+ export function evaluateProviderProtocolReadiness(input) {
135
+ const { providerRef, protocol, host } = input;
136
+ const configFile = WORKSPACE_CONFIG_NAMES.SAAS;
137
+ if (input.scopes[host]?.providers?.[providerRef] === undefined) {
138
+ return {
139
+ ready: false,
140
+ refusal: ProviderProtocolRefusal.NOT_SCOPED,
141
+ detail: `${providerRef} is not scoped under providers.scopes.${host}, so the ${host}'s registry never loads it.`,
142
+ fix: `Add ${providerRef} under providers.scopes.${host}.providers in ${configFile}, then run \`wildo config sync\`.`,
143
+ };
144
+ }
145
+ const contribution = input.contributions.find((candidate) => candidate.ref === providerRef
146
+ && candidate.runtimeTargets.some((target) => target.kind === host));
147
+ if (!contribution) {
148
+ return {
149
+ ready: false,
150
+ refusal: ProviderProtocolRefusal.NOT_CONTRIBUTED,
151
+ detail: `${providerRef} is scoped for the ${host}, but no installed package contributes it for that runtime.`,
152
+ fix: 'Install the package that ships it (a dependency of a declared service), then `pnpm install` and `wildo config sync`.',
153
+ };
154
+ }
155
+ if (!contribution.protocols.includes(protocol)) {
156
+ return {
157
+ ready: false,
158
+ refusal: ProviderProtocolRefusal.PROTOCOL_NOT_BOUND,
159
+ detail: `${providerRef} binds no ${protocol} (it binds ${contribution.protocols.join(', ') || 'nothing'}).`,
160
+ fix: `Nothing in ${configFile} can add a binding a provider does not declare: point the step at a provider that binds ${protocol}.`,
161
+ };
162
+ }
163
+ const configured = input.providerConfigurations[providerRef]?.[protocol];
164
+ if (configured?.enabled === false) {
165
+ return {
166
+ ready: false,
167
+ refusal: ProviderProtocolRefusal.DISABLED,
168
+ detail: `providerConfigurations.${providerRef}.${protocol}.enabled is false for this environment.`,
169
+ fix: `Remove that \`enabled: false\` from ${configFile} or from this environment's infrastructure config.`,
170
+ };
171
+ }
172
+ const keyEnvVarNames = (() => {
173
+ const override = input.keySource === ProviderKeySource.CONFIGURED_AUTH_SECRET_REF ? configured?.authConfig?.secretRef : undefined;
174
+ if (override)
175
+ return [override];
176
+ if (contribution.protocolSecretRefs !== undefined) {
177
+ const ref = contribution.protocolSecretRefs[protocol];
178
+ return ref === undefined ? [] : [ref];
179
+ }
180
+ return (contribution.secretsContractShape ?? []).filter((entry) => entry.required).map((entry) => entry.envVarName);
181
+ })();
182
+ const missing = keyEnvVarNames.filter((name) => !(input.providerEnv[name] ?? '').trim());
183
+ if (missing.length > 0) {
184
+ return {
185
+ ready: false,
186
+ refusal: ProviderProtocolRefusal.SECRET_MISSING,
187
+ detail: `${providerRef} serves ${protocol} on the ${host}, but ${missing.join(', ')} has no value.`,
188
+ fix: `Add ${missing.join(', ')} to providerEnv in this environment's secrets.json — or capture keys once with `
189
+ + '`wildo local-defaults capture --from <an app that has them>` so every later application adopts them.',
190
+ };
191
+ }
192
+ return { ready: true, keyEnvVarNames };
193
+ }
194
+ /**
195
+ * The creation lane's provider requirements, one line per `(provider, protocol)` pair.
196
+ *
197
+ * Grouped because two consumers can need the same pair (the playbook lane and the logo judge both call
198
+ * `openai` over `LLM_PROVIDER`), and one refusal reported twice reads as two problems. Each line still names
199
+ * every consumer that stops, since which steps a missing key takes out is the operator's whole interest.
200
+ */
201
+ function collectCreationLaneProviderChecks(input) {
202
+ const groups = new Map();
203
+ for (const consumer of Object.values(CreationLaneProviderConsumer)) {
204
+ const requirement = CREATION_LANE_PROVIDER_REQUIREMENTS[consumer];
205
+ const key = `${requirement.providerRef} ${requirement.protocol}`;
206
+ const group = groups.get(key) ?? { requirement, consumers: [] };
207
+ group.consumers.push(consumer);
208
+ groups.set(key, group);
209
+ }
210
+ return [...groups.entries()].map(([key, { requirement, consumers }]) => {
211
+ const name = `app-creation: ${key} (${consumers.join(', ')})`;
212
+ const readiness = evaluateProviderProtocolReadiness({
213
+ providerRef: requirement.providerRef,
214
+ protocol: requirement.protocol,
215
+ host: CreationProviderHost.COMPANION,
216
+ keySource: ProviderKeySource.CONFIGURED_AUTH_SECRET_REF,
217
+ ...input,
218
+ });
219
+ // Literal comparison, not truthiness: this package compiles without `strictNullChecks`, under which
220
+ // `if (readiness.ready)` does not narrow the union to its refusal member.
221
+ if (readiness.ready === false) {
222
+ const stops = consumers.map((consumer) => CREATION_LANE_PROVIDER_REQUIREMENTS[consumer].stops).join('; ');
223
+ return fail(name, `${readiness.detail} Stops: ${stops}.`, readiness.fix);
224
+ }
225
+ const keyState = readiness.keyEnvVarNames.length === 0 ? 'no key required' : `${readiness.keyEnvVarNames.join(', ')} present`;
226
+ return pass(name, `${requirement.providerRef} serves ${requirement.protocol} on the companion; ${keyState}.`);
227
+ });
228
+ }
229
+ /**
230
+ * Reads `billing` from the application backend's `saas-config.backend.ts`, the object the backend boots with.
231
+ *
232
+ * `null` when the file does not exist (an application with no backend yet). Throws when it exists and cannot be
233
+ * loaded, which the caller reports rather than reading as "billing off".
234
+ */
235
+ export async function readBackendBillingDeclaration(saasRoot) {
236
+ const path = join(saasRoot, BACKEND_CONFIG_RELATIVE_PATH);
237
+ if (!existsSync(path))
238
+ return null;
239
+ const backendConfig = await loadConfig(path);
240
+ return backendConfig?.billing ?? {};
241
+ }
242
+ /**
243
+ * The billing checks — two, because two different refusals exist and they read different sources.
244
+ *
245
+ * 1. **The required-capability floor** (`assertRequiredCapabilityFloor`): BILLING enabled in `engineCapabilities`
246
+ * with no provider serving it, and the backend does not start. It reads no secret. Mirrored as "no
247
+ * backend-scoped provider declares BILLING".
248
+ * 2. **The billing provider's key** (`resolveBillingProvider`, `SECRET_MISSING`): read only when the BACKEND's own
249
+ * `billing.enabled` is true (`initializeBillingServices` runs under that and nothing else), for the provider
250
+ * `billing.providerRef` names, from its runtime contract's `secretRef`. Mirrored from those same fields of
251
+ * `saas-config.backend.ts`, never from the capability: nothing forces the capability and `billing.enabled` to
252
+ * agree, and an application with the capability on and backend billing off boots without any Stripe key.
65
253
  *
66
- * The creation journey runs in the companion process, and a provider reaches it when the application
67
- * scopes that provider to the companion. `backend` is accepted too because an application may run
68
- * the same provider from its backend and the capability is then genuinely enabled for the
69
- * application — the check exists to predict a refusal, not to impose a topology.
254
+ * That last state is common in a creation run — the capability is declared at definition time, the backend switch
255
+ * is wired by the build — so it gets a WARN naming the key the switch will need, not a FAIL the runtime would not
256
+ * raise. The webhook signing secret is never asked for: no boot refusal reads it.
70
257
  */
71
- function scopedProviderRefs(scopes) {
72
- const byRef = new Map();
73
- for (const scopeName of ['companion', 'backend']) {
74
- for (const ref of Object.keys(scopes[scopeName]?.providers ?? {})) {
75
- byRef.set(ref, [...(byRef.get(ref) ?? []), scopeName]);
258
+ async function collectBillingProviderChecks(input) {
259
+ const results = [];
260
+ const stops = 'the application backend — it refuses to start, so the run cannot verify what it built';
261
+ const backendProviders = Object.keys(input.scopes[CreationProviderHost.BACKEND]?.providers ?? {});
262
+ // Both halves of the runtime's resolution: the scope entry SELECTS the capability (its own `engineCapabilities`,
263
+ // which defaults to none) and the provider's module DECLARES it. A `stripe: {}` scope entry serves nothing.
264
+ const backendScope = input.scopes[CreationProviderHost.BACKEND]?.providers ?? {};
265
+ const billingCapable = backendProviders.filter((ref) => (backendScope[ref]
266
+ ?.engineCapabilities ?? []).includes(EngineCapability.BILLING)
267
+ && input.contributions.some((contribution) => contribution.ref === ref
268
+ && contribution.runtimeTargets.some((target) => target.kind === CreationProviderHost.BACKEND)
269
+ && contribution.engineCapabilities.includes(EngineCapability.BILLING)));
270
+ const capabilityOn = input.enabled[EngineCapability.BILLING]?.enabled === true;
271
+ if (capabilityOn && billingCapable.length === 0) {
272
+ results.push(fail('app-creation: billing capability', `BILLING is enabled and no backend-scoped provider serves it, so the required-capability floor refuses the backend. Stops: ${stops}.`, `Scope a billing provider under providers.scopes.backend in ${WORKSPACE_CONFIG_NAMES.SAAS} with engineCapabilities: [BILLING] `
273
+ + '(e.g. stripe), or disable BILLING.'));
274
+ }
275
+ let backendBilling;
276
+ try {
277
+ backendBilling = await (input.readBackendBilling ?? readBackendBillingDeclaration)(input.saasRoot);
278
+ }
279
+ catch (error) {
280
+ if (capabilityOn || billingCapable.length > 0) {
281
+ results.push(warn('app-creation: billing provider', `${BACKEND_CONFIG_RELATIVE_PATH} could not be loaded, so whether the backend turns billing on is unknown: ${describeCaughtError(error)}`, 'Fix what it names; the billing key cannot be checked until the backend configuration loads.'));
76
282
  }
283
+ return results;
77
284
  }
78
- return byRef;
285
+ const shared = { ...input, protocol: BUILTIN_PROVIDER_PROTOCOL.BILLING_PROVIDER, host: CreationProviderHost.BACKEND, keySource: ProviderKeySource.RUNTIME_CONTRACT_SECRET_REF };
286
+ if (backendBilling?.enabled === true) {
287
+ const providerRef = backendBilling.providerRef;
288
+ if (!providerRef) {
289
+ results.push(fail('app-creation: billing provider', `billing.enabled is true in ${BACKEND_CONFIG_RELATIVE_PATH} and billing.providerRef is unset. Stops: ${stops}.`, `Set billing.providerRef (e.g. 'stripe') in ${BACKEND_CONFIG_RELATIVE_PATH}, or set billing.enabled to false.`));
290
+ return results;
291
+ }
292
+ const name = `app-creation: billing provider (${providerRef})`;
293
+ const readiness = evaluateProviderProtocolReadiness({ ...shared, providerRef });
294
+ results.push(readiness.ready === false
295
+ ? fail(name, `${readiness.detail} Stops: ${stops}.`, readiness.fix)
296
+ : pass(name, `Backend billing is on; ${providerRef} serves BILLING on the backend; ${readiness.keyEnvVarNames.join(', ') || 'no key required'} present.`));
297
+ return results;
298
+ }
299
+ // Declared, not yet switched on: say what the switch will need, without refusing anything today.
300
+ if (capabilityOn && billingCapable.length > 0) {
301
+ const providerRef = billingCapable[0];
302
+ const readiness = evaluateProviderProtocolReadiness({ ...shared, providerRef });
303
+ if (readiness.ready === false) {
304
+ results.push(warn(`app-creation: billing provider (${providerRef})`, `BILLING is declared but ${BACKEND_CONFIG_RELATIVE_PATH} does not turn billing on yet, so nothing refuses today. `
305
+ + `When the build sets billing.enabled, the backend refuses to start: ${readiness.detail}`, readiness.fix));
306
+ }
307
+ }
308
+ return results;
79
309
  }
80
310
  export async function collectApplicationCreationReadinessChecks(input) {
81
311
  const results = [];
@@ -113,9 +343,15 @@ export async function collectApplicationCreationReadinessChecks(input) {
113
343
  : 'Check that a provider package (@wildo-ai/external-connectors-private, or a provider installed with '
114
344
  + '`wildo registry add wildo/providers/<ref>`) is a dependency of a declared service and is installed — then re-run `pnpm install`.'));
115
345
  const enabled = saasConfig.engineCapabilities ?? {};
116
- const scopes = (saasConfig
117
- .providers?.scopes ?? {});
118
- const scoped = scopedProviderRefs(scopes);
346
+ const scopes = (saasConfig.providers?.scopes ?? {});
347
+ /*
348
+ * The companion scope ONLY. This accepted `backend` too until 2026-10-02, on the reasoning that a provider the
349
+ * backend runs is "genuinely enabled for the application". It is not enabled for the process that refuses: the
350
+ * creation journey runs in the companion, whose registry holds only the refs of its own provider-runtime artifact,
351
+ * which `wildo config sync` writes from `providers.scopes.companion` alone (`filterRegistryByProviderRuntime`). A
352
+ * backend-only provider therefore passed this line and was refused at the first agent call (#2229).
353
+ */
354
+ const companionScoped = new Set(Object.keys(scopes[CreationProviderHost.COMPANION]?.providers ?? {}));
119
355
  const secrets = EnvironmentUtils.loadSecretsJson(input.envName);
120
356
  const providerEnv = secrets?.providerEnv ?? {};
121
357
  // ── 2/3. Per capability: enabled, scoped, and its secrets present ──
@@ -132,10 +368,11 @@ export async function collectApplicationCreationReadinessChecks(input) {
132
368
  * `isProviderEnabled` refuses at dispatch. Requiring both is what makes a green line mean the
133
369
  * runtime predicate will hold.
134
370
  */
135
- const usable = contributions.filter((contribution) => scoped.has(contribution.ref)
371
+ const usable = contributions.filter((contribution) => companionScoped.has(contribution.ref)
372
+ && contribution.runtimeTargets.some((target) => target.kind === CreationProviderHost.COMPANION)
136
373
  && contribution.engineCapabilities.includes(capability));
137
374
  if (usable.length === 0) {
138
- const scopedRefs = [...scoped.keys()];
375
+ const scopedRefs = [...companionScoped];
139
376
  results.push(fail(name, `${capability} is enabled but no scoped provider supplies it${scopedRefs.length > 0 ? ` (scoped: ${scopedRefs.join(', ')})` : ' — no provider is scoped at all'}. `
140
377
  + `Stops: ${phase}.`, `Scope a provider declaring ${capability} under providers.scopes.companion in ${WORKSPACE_CONFIG_NAMES.SAAS}.`));
141
378
  continue;
@@ -172,6 +409,29 @@ export async function collectApplicationCreationReadinessChecks(input) {
172
409
  + `${missing.join(', ')}. Stops: ${phase}.`, 'Add them to providerEnv in this environment\'s secrets.json — or capture them once with '
173
410
  + '`wildo local-defaults capture --from <an app that has them>` so every later application adopts them.'));
174
411
  }
412
+ // ── 3a/3b. The providers the lane's agents PIN, and the billing provider's key ──
413
+ //
414
+ // The capability lines above ask whether SOME provider serves AI_LLM. The runtime asks a narrower
415
+ // question: each agent names its provider, and `isProviderEnabled(<that ref>, <its protocol>)` plus its key
416
+ // decide the call. These lines ask exactly that, for the refs the agents read from the same table (#2229).
417
+ let providerConfigurations;
418
+ try {
419
+ providerConfigurations = await resolveEnvironmentProviderConfigurations({
420
+ saasRoot: input.saasRoot,
421
+ applicationProviderConfigurations: saasConfig
422
+ .providerConfigurations,
423
+ environmentName: input.envName,
424
+ });
425
+ }
426
+ catch (error) {
427
+ providerConfigurations = null;
428
+ results.push(fail('app-creation: provider configurations', `The provider configuration for ${input.envName} could not be resolved: ${describeCaughtError(error)}`, 'Fix the configuration it names — the provider checks below cannot be evaluated without it.'));
429
+ }
430
+ if (providerConfigurations !== null) {
431
+ const providerInput = { scopes, contributions, providerConfigurations, providerEnv };
432
+ results.push(...collectCreationLaneProviderChecks(providerInput));
433
+ results.push(...await collectBillingProviderChecks({ saasRoot: input.saasRoot, enabled, readBackendBilling: input.readBackendBilling, ...providerInput }));
434
+ }
175
435
  // ── 4. The machine's shared provider keys ──
176
436
  //
177
437
  // ADVISORY, and only reported when something above is already missing its secrets: this file is how
@@ -1 +1 @@
1
- {"version":3,"file":"application-creation-readiness.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/application-creation-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,EACL,0CAA0C,EAC1C,cAAc,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAEhH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAA+D;IACvF,EAAE,UAAU,EAAE,gBAAgB,CAAC,MAAM,EAAE,KAAK,EAAE,iEAAiE,EAAE;IACjH,EAAE,UAAU,EAAE,gBAAgB,CAAC,eAAe,EAAE,KAAK,EAAE,iEAAiE,EAAE;CAC3H,CAAC;AAEF,SAAS,IAAI,CAAC,IAAY,EAAE,MAAc;IACxC,OAAO,EAAE,IAAI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AC;YACjH,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAC,CAAC;YACjH,SAAS;QACX,CAAC;QAED,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACzD,OAAO,CAAC,IAAI,CAAC,IAAI,CACf,IAAI,EACJ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,UAAU,sDAAsD;cACjH,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,GAAG,EAC3C,0FAA0F;cACxF,sGAAsG,CACzG,CAAC,CAAC;IACL,CAAC;IAED,8CAA8C;IAC9C,EAAE;IACF,oGAAoG;IACpG,8FAA8F;IAC9F,kDAAkD;IAClD,MAAM,iBAAiB,GAAG,wBAAwB,EAAE,CAAC;IACrD,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1G,OAAO,CAAC,IAAI,CAAC,IAAI,CACf,qCAAqC,EACrC,MAAM,iBAAiB,uFAAuF,EAC9G,0HAA0H,CAC3H,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Can this application START the application-creation journey?\n *\n * ## Why this is its own family, beside the stack checks\n *\n * `wildo local doctor` answers \"is the stack up\" — containers, ports, platform health, companion\n * readiness. That is a different question from \"will the journey run\", and the second one has\n * preconditions of its own. Measured on a freshly created application, 2026-09-18, each of these was\n * discovered by HITTING it, in this order, and the second one only after an operator had answered a\n * fifteen-question interview on the board:\n *\n * | what refused | what the operator saw |\n * |---|---|\n * | provider discovery yielded 0 contributions | \"no companion export contributes it for that runtime\" |\n * | no `AI_LLM` capability, no provider scoped | `agent_provider_not_enabled`, 400, context stripped |\n * | (next) the provider's secret absent | \"API key not found for …\" |\n * | (next) no coding agent scoped | the same refusal, one phase later |\n *\n * Every one is knowable before anything runs. That is the whole point: Paul's ask was \"we need to do\n * not be surprised at runtime\".\n *\n * ## The rule each check obeys\n *\n * **A check earns its place only by corresponding to a refusal that EXISTS in the runtime**, and it\n * must evaluate the same predicate that refusal evaluates, from the same sources. A check invented\n * from what seems prudent becomes a second description of the contract, and a second description can\n * disagree with the first — at which point a green line means nothing and a red one wastes a day.\n *\n * So: capability-and-scope is read the way `ExternalProvidersRegistry.isProviderEnabled` reads it,\n * and the required secrets are taken from the DISCOVERED contribution's own `secretsContractShape`\n * rather than from a list of environment-variable names kept here. A provider added to the engine\n * tomorrow is checked correctly by this file without being mentioned in it.\n */\n\nimport { existsSync } from 'fs';\n\nimport {\n discoverSaasProviderCompanionContributions,\n loadSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport { EngineCapability } from '@wildo-ai/saas-models';\n\nimport { LocalPreconditionCheckStatus } from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport type { LocalPreconditionCheckResult } from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { resolveLocalDefaultsPath } from '~wildo-cli/services/credentials/local-defaults.service';\nimport { WORKSPACE_CONFIG_NAMES } from '@wildo-ai/platform-config-lib';\nimport { join } from 'path';\n\n/**\n * The capabilities the journey cannot run without, and WHICH PHASE stops when one is absent.\n *\n * Named per capability rather than checked as one lump, because they fail at different moments and\n * the distinction is the operator's whole interest: without the LLM nothing generates and the very\n * first playbook refuses; without the coding agent the top-down half completes and the BUILD phase\n * refuses, which is much later and much more expensive to discover.\n */\nconst JOURNEY_CAPABILITIES: readonly { capability: EngineCapability; phase: string }[] = [\n { capability: EngineCapability.AI_LLM, phase: 'every playbook that composes content — the journey cannot start' },\n { capability: EngineCapability.AI_CODING_AGENT, phase: 'the build phase — the top-down half runs, then dispatch refuses' },\n];\n\nfunction pass(name: string, detail: string): LocalPreconditionCheckResult {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail };\n}\n\nfunction fail(name: string, detail: string, fix: string): LocalPreconditionCheckResult {\n return { name, status: LocalPreconditionCheckStatus.FAIL, detail, fix };\n}\n\nfunction warn(name: string, detail: string, fix: string): LocalPreconditionCheckResult {\n return { name, status: LocalPreconditionCheckStatus.WARN, detail, fix };\n}\n\n/**\n * Every runtime the COMPANION can resolve a provider through.\n *\n * The creation journey runs in the companion process, and a provider reaches it when the application\n * scopes that provider to the companion. `backend` is accepted too because an application may run\n * the same provider from its backend and the capability is then genuinely enabled for the\n * application — the check exists to predict a refusal, not to impose a topology.\n */\nfunction scopedProviderRefs(scopes: Record<string, { providers?: Record<string, unknown> } | undefined>): Map<string, string[]> {\n const byRef = new Map<string, string[]>();\n for (const scopeName of ['companion', 'backend']) {\n for (const ref of Object.keys(scopes[scopeName]?.providers ?? {})) {\n byRef.set(ref, [...(byRef.get(ref) ?? []), scopeName]);\n }\n }\n return byRef;\n}\n\nexport async function collectApplicationCreationReadinessChecks(input: {\n saasRoot: string;\n envName: string;\n}): Promise<LocalPreconditionCheckResult[]> {\n const results: LocalPreconditionCheckResult[] = [];\n const configPath = join(input.saasRoot, WORKSPACE_CONFIG_NAMES.SAAS);\n\n const saasConfig = await loadSaasConfig(configPath).catch(() => null);\n if (!saasConfig) {\n return [fail(\n 'app-creation: application configuration',\n `Could not load ${WORKSPACE_CONFIG_NAMES.SAAS}.`,\n 'Fix the configuration first — nothing below can be evaluated without it.',\n )];\n }\n\n // ── 1. Does discovery see any provider at all? ──\n //\n // A zero here is the state in which EVERY provider an application authors is refused with\n // \"no companion export contributes it for that runtime\", and nothing else reports it: discovery\n // returns an empty array for a broken walk and for an application with no providers alike (#1305).\n const { contributions, unreadableOwners } = await discoverSaasProviderCompanionContributions({\n saasRoot: input.saasRoot,\n saasConfig: saasConfig as never,\n }).catch(() => ({ contributions: [], unreadableOwners: [] }));\n\n /*\n * An owner that DECLARES a companion door and could not be read is the difference between \"this\n * application has no providers\" and \"the walk failed\" — the two used to be one answer, which is\n * what let a zero contribution count read as legitimate (#1305). Named here even when discovery\n * otherwise succeeded, because a broken package silently removes whatever it would have\n * contributed, and the provider that goes missing is refused somewhere else entirely.\n */\n const unreadable = unreadableOwners.length === 0\n ? ''\n : ` ${unreadableOwners.length} owner(s) declare a companion door that could not be read: `\n + `${unreadableOwners.map((owner) => owner.ownerLabel).join(', ')}.`;\n\n results.push(contributions.length > 0\n ? (unreadableOwners.length === 0\n ? pass('app-creation: provider discovery', `${contributions.length} provider contribution(s) discovered.`)\n : warn(\n 'app-creation: provider discovery',\n `${contributions.length} provider contribution(s) discovered, but${unreadable}`,\n 'Build or reinstall those packages — whatever they contribute is missing, and the provider will be refused elsewhere.',\n ))\n : fail(\n 'app-creation: provider discovery',\n `No provider contributions were discovered, so every provider this application declares will be refused.${unreadable}`,\n unreadableOwners.length > 0\n ? 'Build or reinstall the packages named above — the walk reached them and could not read them.'\n : 'Check that a provider package (@wildo-ai/external-connectors-private, or a provider installed with '\n + '`wildo registry add wildo/providers/<ref>`) is a dependency of a declared service and is installed — then re-run `pnpm install`.',\n ));\n\n const enabled = (saasConfig as { engineCapabilities?: Record<string, { enabled?: boolean }> }).engineCapabilities ?? {};\n const scopes = ((saasConfig as { providers?: { scopes?: Record<string, { providers?: Record<string, unknown> }> } })\n .providers?.scopes ?? {}) as Record<string, { providers?: Record<string, unknown> } | undefined>;\n const scoped = scopedProviderRefs(scopes);\n const secrets = EnvironmentUtils.loadSecretsJson(input.envName);\n const providerEnv = (secrets as { providerEnv?: Record<string, string> } | null)?.providerEnv ?? {};\n\n // ── 2/3. Per capability: enabled, scoped, and its secrets present ──\n for (const { capability, phase } of JOURNEY_CAPABILITIES) {\n const name = `app-creation: ${capability}`;\n\n if (enabled[capability]?.enabled !== true) {\n results.push(fail(\n name,\n `The application does not enable ${capability}. Stops: ${phase}.`,\n `Add [EngineCapability.${capability}]: { enabled: true } to engineCapabilities in ${WORKSPACE_CONFIG_NAMES.SAAS}, `\n + 'and scope a provider that declares it.',\n ));\n continue;\n }\n\n /*\n * The provider must be BOTH scoped by the application and discovered as declaring the capability.\n * Scoped-but-undiscovered is exactly what `config sync` refuses; discovered-but-unscoped is what\n * `isProviderEnabled` refuses at dispatch. Requiring both is what makes a green line mean the\n * runtime predicate will hold.\n */\n const usable = contributions.filter((contribution) => scoped.has(contribution.ref)\n && contribution.engineCapabilities.includes(capability));\n\n if (usable.length === 0) {\n const scopedRefs = [...scoped.keys()];\n results.push(fail(\n name,\n `${capability} is enabled but no scoped provider supplies it${scopedRefs.length > 0 ? ` (scoped: ${scopedRefs.join(', ')})` : ' — no provider is scoped at all'}. `\n + `Stops: ${phase}.`,\n `Scope a provider declaring ${capability} under providers.scopes.companion in ${WORKSPACE_CONFIG_NAMES.SAAS}.`,\n ));\n continue;\n }\n\n /*\n * ONE usable provider is enough, and getting this wrong was a false positive on the first run.\n *\n * A capability is satisfied by resolving ONE provider — `isProviderEnabled` is asked about a\n * single ref — so requiring every scoped provider to be credentialed reports a healthy\n * application as broken. Measured: Wonder Todos scopes `anthropic`, `google` and `openai` for\n * AI_LLM and holds no `GOOGLE_API_KEY`; it is the dogfood application and the journey runs there.\n * A check that fails on a working application is worse than no check, because it teaches its\n * reader to skim the line that one day means something.\n *\n * Required secrets come from each contribution's own `secretsContractShape`, so a provider added\n * to the engine tomorrow is evaluated correctly without this file naming it.\n */\n const missingFor = (contribution: typeof usable[number]): string[] => (contribution.secretsContractShape ?? [])\n .filter((entry) => entry.required && !(providerEnv[entry.envVarName] ?? '').trim())\n .map((entry) => entry.envVarName);\n\n const ready = usable.filter((contribution) => missingFor(contribution).length === 0);\n const unready = usable.filter((contribution) => missingFor(contribution).length > 0);\n\n if (ready.length > 0) {\n // The uncredentialed ones are NAMED rather than ignored — selecting one of them would still\n // refuse — but they do not fail the check, because the capability is satisfied.\n const aside = unready.length === 0\n ? ''\n : ` (${unready.map((c) => `${c.ref} lacks ${missingFor(c).join('/')}`).join('; ')} — usable only if selected)`;\n results.push(pass(name, `Supplied by ${ready.map((c) => c.ref).join(', ')}; required secrets present.${aside}`));\n continue;\n }\n\n const missing = [...new Set(usable.flatMap(missingFor))];\n results.push(fail(\n name,\n `${usable.map((c) => c.ref).join(', ')} supplies ${capability} but NO scoped provider has its required secret(s): `\n + `${missing.join(', ')}. Stops: ${phase}.`,\n 'Add them to providerEnv in this environment\\'s secrets.json — or capture them once with '\n + '`wildo local-defaults capture --from <an app that has them>` so every later application adopts them.',\n ));\n }\n\n // ── 4. The machine's shared provider keys ──\n //\n // ADVISORY, and only reported when something above is already missing its secrets: this file is how\n // a SECOND application gets its keys without anyone copying values between JSON files, so its\n // absence explains a gap rather than being a gap.\n const localDefaultsPath = resolveLocalDefaultsPath();\n if (!existsSync(localDefaultsPath) && results.some((r) => r.status === LocalPreconditionCheckStatus.FAIL)) {\n results.push(warn(\n 'app-creation: machine provider keys',\n `No ${localDefaultsPath} on this machine, so a newly created application mints everything and adopts nothing.`,\n 'Run `wildo local-defaults capture --from <an application that works>` once; later applications adopt it at `wildo init`.',\n ));\n }\n\n return results;\n}\n"]}
1
+ {"version":3,"file":"application-creation-readiness.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/application-creation-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,EACL,0CAA0C,EAC1C,UAAU,EACV,cAAc,GACf,MAAM,+BAA+B,CAAC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AkD;IAClD,MAAM,iBAAiB,GAAG,wBAAwB,EAAE,CAAC;IACrD,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1G,OAAO,CAAC,IAAI,CAAC,IAAI,CACf,qCAAqC,EACrC,MAAM,iBAAiB,uFAAuF,EAC9G,0HAA0H,CAC3H,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Can this application START the application-creation journey?\n *\n * ## Why this is its own family, beside the stack checks\n *\n * `wildo local doctor` answers \"is the stack up\" — containers, ports, platform health, companion\n * readiness. That is a different question from \"will the journey run\", and the second one has\n * preconditions of its own. Measured on a freshly created application, 2026-09-18, each of these was\n * discovered by HITTING it, in this order, and the second one only after an operator had answered a\n * fifteen-question interview on the board:\n *\n * | what refused | what the operator saw |\n * |---|---|\n * | provider discovery yielded 0 contributions | \"no companion export contributes it for that runtime\" |\n * | no `AI_LLM` capability, no provider scoped | `agent_provider_not_enabled`, 400, context stripped |\n * | (next) the provider's secret absent | \"API key not found for …\" |\n * | (next) no coding agent scoped | the same refusal, one phase later |\n *\n * Every one is knowable before anything runs. That is the whole point: Paul's ask was \"we need to do\n * not be surprised at runtime\".\n *\n * ## The rule each check obeys\n *\n * **A check earns its place only by corresponding to a refusal that EXISTS in the runtime**, and it\n * must evaluate the same predicate that refusal evaluates, from the same sources. A check invented\n * from what seems prudent becomes a second description of the contract, and a second description can\n * disagree with the first — at which point a green line means nothing and a red one wastes a day.\n *\n * So: capability-and-scope is read the way `ExternalProvidersRegistry.isProviderEnabled` reads it,\n * and the required secrets are taken from the DISCOVERED contribution's own `secretsContractShape`\n * rather than from a list of environment-variable names kept here. A provider added to the engine\n * tomorrow is checked correctly by this file without being mentioned in it.\n *\n * ## What the creation preflight added (#2229)\n *\n * The capability lines ask whether SOME provider serves a capability; the runtime refuses per AGENT, on the\n * provider that agent pins. So the lane's pinned providers are checked one `(provider, protocol)` pair at a\n * time — the playbook lane, the logo step's image generation and judge, the expert-persona agents — from\n * `CREATION_LANE_PROVIDER_REQUIREMENTS`, the table those agents read their `providerRef` from; and the billing\n * provider's key is checked the way the backend's boot reads it. `evaluateProviderProtocolReadiness` is the one\n * predicate both use. This file is half of the preflight; `creation-preflight.service.ts` joins it with the host\n * checks for `wildo creation preflight`, `wildo local doctor` and the gate on `wildo creation run` / `loop`.\n */\n\nimport { existsSync } from 'fs';\n\nimport {\n discoverSaasProviderCompanionContributions,\n loadConfig,\n loadSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport type { DiscoveredProviderCompanionContribution } from '@wildo-ai/platform-config-lib';\nimport { CREATION_LANE_PROVIDER_REQUIREMENTS, CreationLaneProviderConsumer } from '@wildo-ai/application-creation-runtime';\nimport type { CreationLaneProviderRequirement } from '@wildo-ai/application-creation-runtime';\nimport { BUILTIN_PROVIDER_PROTOCOL, EngineCapability, describeCaughtError } from '@wildo-ai/saas-models';\nimport type { BuiltinProviderProtocol } from '@wildo-ai/saas-models';\n\nimport { LocalPreconditionCheckStatus } from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport type { LocalPreconditionCheckResult } from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { resolveLocalDefaultsPath } from '~wildo-cli/services/credentials/local-defaults.service';\nimport { resolveEnvironmentProviderConfigurations } from '~wildo-cli/services/application/environment-provider-configurations.service';\nimport { BACKEND_CONFIG_RELATIVE_PATH } from '~wildo-cli/services/application/backend-config.paths';\nimport { WORKSPACE_CONFIG_NAMES } from '@wildo-ai/platform-config-lib';\nimport { join } from 'path';\n\n/**\n * The capabilities the journey cannot run without, and WHICH PHASE stops when one is absent.\n *\n * Named per capability rather than checked as one lump, because they fail at different moments and\n * the distinction is the operator's whole interest: without the LLM nothing generates and the very\n * first playbook refuses; without the coding agent the top-down half completes and the BUILD phase\n * refuses, which is much later and much more expensive to discover.\n */\nconst JOURNEY_CAPABILITIES: readonly { capability: EngineCapability; phase: string }[] = [\n { capability: EngineCapability.AI_LLM, phase: 'every playbook that composes content — the journey cannot start' },\n { capability: EngineCapability.AI_CODING_AGENT, phase: 'the build phase — the top-down half runs, then dispatch refuses' },\n];\n\nfunction pass(name: string, detail: string): LocalPreconditionCheckResult {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail };\n}\n\nfunction fail(name: string, detail: string, fix: string): LocalPreconditionCheckResult {\n return { name, status: LocalPreconditionCheckStatus.FAIL, detail, fix };\n}\n\nfunction warn(name: string, detail: string, fix: string): LocalPreconditionCheckResult {\n return { name, status: LocalPreconditionCheckStatus.WARN, detail, fix };\n}\n\n/**\n * The process a provider must reach for a refusal to be avoided — both a `providers.scopes.<host>` key and the\n * `runtimeTargets[].kind` a contribution names for it, which spell the same two words.\n *\n * semantic-literal-boundary: the values are `wildo.saas.config.ts` scope keys and companion runtime-target kinds,\n * owned by platform-config-lib's config schema; this enum names the two this file asks about.\n */\nexport enum CreationProviderHost {\n /** The dev companion: it runs the creation journey and every agent of the lane. */\n COMPANION = 'companion',\n /** The application's backend: it resolves the billing provider at boot. */\n BACKEND = 'backend',\n}\n\n/**\n * Where the key a protocol call needs is named, which differs by refusal and must not be merged.\n *\n * `getProviderApiKey` (an agent's LLM or image call) reads the protocol configuration's `authConfig.secretRef`,\n * so an application that overrides it in `providerConfigurations` moves the key. `resolveBillingProvider` reads\n * the runtime contract's own `secretRef` and honours no override. Checking the billing key through the\n * override would report a key the backend never reads.\n */\nexport enum ProviderKeySource {\n CONFIGURED_AUTH_SECRET_REF = 'configured-auth-secret-ref',\n RUNTIME_CONTRACT_SECRET_REF = 'runtime-contract-secret-ref',\n}\n\n/** Why a provider protocol would be refused, in the order the runtime asks. */\nexport enum ProviderProtocolRefusal {\n /** Not under `providers.scopes.<host>`: the host's registry never loads it, so `isProviderEnabled` is false. */\n NOT_SCOPED = 'not-scoped',\n /** Scoped, but no installed package contributes it for that host: `wildo config sync` refuses, and the host cannot boot. */\n NOT_CONTRIBUTED = 'not-contributed',\n /** Loaded, but the module binds no such protocol: `provider.protocols.includes(kind)` is false. */\n PROTOCOL_NOT_BOUND = 'protocol-not-bound',\n /** `providerConfigurations.<ref>.<protocol>.enabled` is `false` for this environment. */\n DISABLED = 'disabled',\n /** Everything holds except the key: `getProviderApiKey` / the billing secret read returns nothing. */\n SECRET_MISSING = 'secret-missing',\n}\n\nexport type ProviderProtocolReadiness =\n | { readonly ready: true; readonly keyEnvVarNames: readonly string[] }\n | { readonly ready: false; readonly refusal: ProviderProtocolRefusal; readonly detail: string; readonly fix: string };\n\ntype ProviderScopes = Record<string, { providers?: Record<string, unknown>; selection?: Record<string, { primary?: string } | undefined> } | undefined>;\ntype ProtocolConfiguration = { enabled?: boolean; authConfig?: { secretRef?: string } };\n\n/**\n * Would `providerRef` serve `protocol` on `host`, and does that host hold its key — evaluated the way the runtime\n * evaluates it, from the sources the runtime reads.\n *\n * The runtime predicate, piece by piece:\n *\n * | runtime | here |\n * |---|---|\n * | `hasProvider(ref)` — the host's registry holds only the refs its provider-runtime artifact lists, which `wildo config sync` writes from `providers.scopes.<host>` | `ref` under that scope, AND a discovered contribution targeting that host |\n * | `provider.protocols.includes(kind)` — the module's bindings, NOT the scope's authored `protocols` | the contribution's `protocols`, projected from those same bindings |\n * | `getProviderConfiguration(ref, kind).enabled !== false` — application config overlaid by the environment's | `resolveEnvironmentProviderConfigurations`, the overlay `wildo config sync` stores |\n * | the key — `authConfig.secretRef` (default: the binding's contract) or the billing contract's `secretRef`, read from the process env | `protocolSecretRefs` (or an override) read from `secrets.json > providerEnv`, which is what reaches that env |\n *\n * A contribution emitted before `protocolSecretRefs` existed names no per-protocol key, and then every REQUIRED\n * entry of its secrets shape is asked for — stricter than the runtime for a provider with several keys, and the\n * reason the field was added.\n */\nexport function evaluateProviderProtocolReadiness(input: {\n readonly providerRef: string;\n readonly protocol: BuiltinProviderProtocol;\n readonly host: CreationProviderHost;\n readonly keySource: ProviderKeySource;\n readonly scopes: ProviderScopes;\n readonly contributions: readonly DiscoveredProviderCompanionContribution[];\n readonly providerConfigurations: Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>>;\n readonly providerEnv: Readonly<Record<string, string>>;\n}): ProviderProtocolReadiness {\n const { providerRef, protocol, host } = input;\n const configFile = WORKSPACE_CONFIG_NAMES.SAAS;\n\n if (input.scopes[host]?.providers?.[providerRef] === undefined) {\n return {\n ready: false,\n refusal: ProviderProtocolRefusal.NOT_SCOPED,\n detail: `${providerRef} is not scoped under providers.scopes.${host}, so the ${host}'s registry never loads it.`,\n fix: `Add ${providerRef} under providers.scopes.${host}.providers in ${configFile}, then run \\`wildo config sync\\`.`,\n };\n }\n\n const contribution = input.contributions.find((candidate) => candidate.ref === providerRef\n && candidate.runtimeTargets.some((target) => target.kind === host));\n if (!contribution) {\n return {\n ready: false,\n refusal: ProviderProtocolRefusal.NOT_CONTRIBUTED,\n detail: `${providerRef} is scoped for the ${host}, but no installed package contributes it for that runtime.`,\n fix: 'Install the package that ships it (a dependency of a declared service), then `pnpm install` and `wildo config sync`.',\n };\n }\n\n if (!contribution.protocols.includes(protocol)) {\n return {\n ready: false,\n refusal: ProviderProtocolRefusal.PROTOCOL_NOT_BOUND,\n detail: `${providerRef} binds no ${protocol} (it binds ${contribution.protocols.join(', ') || 'nothing'}).`,\n fix: `Nothing in ${configFile} can add a binding a provider does not declare: point the step at a provider that binds ${protocol}.`,\n };\n }\n\n const configured = input.providerConfigurations[providerRef]?.[protocol] as ProtocolConfiguration | undefined;\n if (configured?.enabled === false) {\n return {\n ready: false,\n refusal: ProviderProtocolRefusal.DISABLED,\n detail: `providerConfigurations.${providerRef}.${protocol}.enabled is false for this environment.`,\n fix: `Remove that \\`enabled: false\\` from ${configFile} or from this environment's infrastructure config.`,\n };\n }\n\n const keyEnvVarNames = ((): string[] => {\n const override = input.keySource === ProviderKeySource.CONFIGURED_AUTH_SECRET_REF ? configured?.authConfig?.secretRef : undefined;\n if (override) return [override];\n if (contribution.protocolSecretRefs !== undefined) {\n const ref = contribution.protocolSecretRefs[protocol];\n return ref === undefined ? [] : [ref];\n }\n return (contribution.secretsContractShape ?? []).filter((entry) => entry.required).map((entry) => entry.envVarName);\n })();\n const missing = keyEnvVarNames.filter((name) => !(input.providerEnv[name] ?? '').trim());\n if (missing.length > 0) {\n return {\n ready: false,\n refusal: ProviderProtocolRefusal.SECRET_MISSING,\n detail: `${providerRef} serves ${protocol} on the ${host}, but ${missing.join(', ')} has no value.`,\n fix: `Add ${missing.join(', ')} to providerEnv in this environment's secrets.json — or capture keys once with `\n + '`wildo local-defaults capture --from <an app that has them>` so every later application adopts them.',\n };\n }\n return { ready: true, keyEnvVarNames };\n}\n\n/**\n * The creation lane's provider requirements, one line per `(provider, protocol)` pair.\n *\n * Grouped because two consumers can need the same pair (the playbook lane and the logo judge both call\n * `openai` over `LLM_PROVIDER`), and one refusal reported twice reads as two problems. Each line still names\n * every consumer that stops, since which steps a missing key takes out is the operator's whole interest.\n */\nfunction collectCreationLaneProviderChecks(input: {\n scopes: ProviderScopes;\n contributions: readonly DiscoveredProviderCompanionContribution[];\n providerConfigurations: Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>>;\n providerEnv: Readonly<Record<string, string>>;\n}): LocalPreconditionCheckResult[] {\n const groups = new Map<string, { requirement: CreationLaneProviderRequirement; consumers: CreationLaneProviderConsumer[] }>();\n for (const consumer of Object.values(CreationLaneProviderConsumer)) {\n const requirement = CREATION_LANE_PROVIDER_REQUIREMENTS[consumer];\n const key = `${requirement.providerRef} ${requirement.protocol}`;\n const group = groups.get(key) ?? { requirement, consumers: [] };\n group.consumers.push(consumer);\n groups.set(key, group);\n }\n\n return [...groups.entries()].map(([key, { requirement, consumers }]) => {\n const name = `app-creation: ${key} (${consumers.join(', ')})`;\n const readiness = evaluateProviderProtocolReadiness({\n providerRef: requirement.providerRef,\n protocol: requirement.protocol,\n host: CreationProviderHost.COMPANION,\n keySource: ProviderKeySource.CONFIGURED_AUTH_SECRET_REF,\n ...input,\n });\n // Literal comparison, not truthiness: this package compiles without `strictNullChecks`, under which\n // `if (readiness.ready)` does not narrow the union to its refusal member.\n if (readiness.ready === false) {\n const stops = consumers.map((consumer) => CREATION_LANE_PROVIDER_REQUIREMENTS[consumer].stops).join('; ');\n return fail(name, `${readiness.detail} Stops: ${stops}.`, readiness.fix);\n }\n const keyState = readiness.keyEnvVarNames.length === 0 ? 'no key required' : `${readiness.keyEnvVarNames.join(', ')} present`;\n return pass(name, `${requirement.providerRef} serves ${requirement.protocol} on the companion; ${keyState}.`);\n });\n}\n\n/** The backend's own `billing` block, as `saas-config.backend.ts` authors it — what the boot reads. */\nexport interface BackendBillingDeclaration {\n readonly enabled?: boolean;\n readonly providerRef?: string;\n}\n\n/**\n * Reads `billing` from the application backend's `saas-config.backend.ts`, the object the backend boots with.\n *\n * `null` when the file does not exist (an application with no backend yet). Throws when it exists and cannot be\n * loaded, which the caller reports rather than reading as \"billing off\".\n */\nexport async function readBackendBillingDeclaration(saasRoot: string): Promise<BackendBillingDeclaration | null> {\n const path = join(saasRoot, BACKEND_CONFIG_RELATIVE_PATH);\n if (!existsSync(path)) return null;\n const backendConfig = await loadConfig<{ billing?: BackendBillingDeclaration }>(path);\n return backendConfig?.billing ?? {};\n}\n\n/**\n * The billing checks — two, because two different refusals exist and they read different sources.\n *\n * 1. **The required-capability floor** (`assertRequiredCapabilityFloor`): BILLING enabled in `engineCapabilities`\n * with no provider serving it, and the backend does not start. It reads no secret. Mirrored as \"no\n * backend-scoped provider declares BILLING\".\n * 2. **The billing provider's key** (`resolveBillingProvider`, `SECRET_MISSING`): read only when the BACKEND's own\n * `billing.enabled` is true (`initializeBillingServices` runs under that and nothing else), for the provider\n * `billing.providerRef` names, from its runtime contract's `secretRef`. Mirrored from those same fields of\n * `saas-config.backend.ts`, never from the capability: nothing forces the capability and `billing.enabled` to\n * agree, and an application with the capability on and backend billing off boots without any Stripe key.\n *\n * That last state is common in a creation run — the capability is declared at definition time, the backend switch\n * is wired by the build — so it gets a WARN naming the key the switch will need, not a FAIL the runtime would not\n * raise. The webhook signing secret is never asked for: no boot refusal reads it.\n */\nasync function collectBillingProviderChecks(input: {\n saasRoot: string;\n enabled: Record<string, { enabled?: boolean }>;\n scopes: ProviderScopes;\n contributions: readonly DiscoveredProviderCompanionContribution[];\n providerConfigurations: Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>>;\n providerEnv: Readonly<Record<string, string>>;\n readBackendBilling?: (saasRoot: string) => Promise<BackendBillingDeclaration | null>;\n}): Promise<LocalPreconditionCheckResult[]> {\n const results: LocalPreconditionCheckResult[] = [];\n const stops = 'the application backend — it refuses to start, so the run cannot verify what it built';\n const backendProviders = Object.keys(input.scopes[CreationProviderHost.BACKEND]?.providers ?? {});\n // Both halves of the runtime's resolution: the scope entry SELECTS the capability (its own `engineCapabilities`,\n // which defaults to none) and the provider's module DECLARES it. A `stripe: {}` scope entry serves nothing.\n const backendScope = input.scopes[CreationProviderHost.BACKEND]?.providers ?? {};\n const billingCapable = backendProviders.filter((ref) => ((backendScope[ref] as { engineCapabilities?: readonly string[] } | undefined)\n ?.engineCapabilities ?? []).includes(EngineCapability.BILLING)\n && input.contributions.some((contribution) => contribution.ref === ref\n && contribution.runtimeTargets.some((target) => target.kind === CreationProviderHost.BACKEND)\n && contribution.engineCapabilities.includes(EngineCapability.BILLING)));\n const capabilityOn = input.enabled[EngineCapability.BILLING]?.enabled === true;\n\n if (capabilityOn && billingCapable.length === 0) {\n results.push(fail(\n 'app-creation: billing capability',\n `BILLING is enabled and no backend-scoped provider serves it, so the required-capability floor refuses the backend. Stops: ${stops}.`,\n `Scope a billing provider under providers.scopes.backend in ${WORKSPACE_CONFIG_NAMES.SAAS} with engineCapabilities: [BILLING] `\n + '(e.g. stripe), or disable BILLING.',\n ));\n }\n\n let backendBilling: BackendBillingDeclaration | null;\n try {\n backendBilling = await (input.readBackendBilling ?? readBackendBillingDeclaration)(input.saasRoot);\n } catch (error) {\n if (capabilityOn || billingCapable.length > 0) {\n results.push(warn(\n 'app-creation: billing provider',\n `${BACKEND_CONFIG_RELATIVE_PATH} could not be loaded, so whether the backend turns billing on is unknown: ${describeCaughtError(error)}`,\n 'Fix what it names; the billing key cannot be checked until the backend configuration loads.',\n ));\n }\n return results;\n }\n\n const shared = { ...input, protocol: BUILTIN_PROVIDER_PROTOCOL.BILLING_PROVIDER, host: CreationProviderHost.BACKEND, keySource: ProviderKeySource.RUNTIME_CONTRACT_SECRET_REF };\n\n if (backendBilling?.enabled === true) {\n const providerRef = backendBilling.providerRef;\n if (!providerRef) {\n results.push(fail(\n 'app-creation: billing provider',\n `billing.enabled is true in ${BACKEND_CONFIG_RELATIVE_PATH} and billing.providerRef is unset. Stops: ${stops}.`,\n `Set billing.providerRef (e.g. 'stripe') in ${BACKEND_CONFIG_RELATIVE_PATH}, or set billing.enabled to false.`,\n ));\n return results;\n }\n const name = `app-creation: billing provider (${providerRef})`;\n const readiness = evaluateProviderProtocolReadiness({ ...shared, providerRef });\n results.push(readiness.ready === false\n ? fail(name, `${readiness.detail} Stops: ${stops}.`, readiness.fix)\n : pass(name, `Backend billing is on; ${providerRef} serves BILLING on the backend; ${readiness.keyEnvVarNames.join(', ') || 'no key required'} present.`));\n return results;\n }\n\n // Declared, not yet switched on: say what the switch will need, without refusing anything today.\n if (capabilityOn && billingCapable.length > 0) {\n const providerRef = billingCapable[0];\n const readiness = evaluateProviderProtocolReadiness({ ...shared, providerRef });\n if (readiness.ready === false) {\n results.push(warn(\n `app-creation: billing provider (${providerRef})`,\n `BILLING is declared but ${BACKEND_CONFIG_RELATIVE_PATH} does not turn billing on yet, so nothing refuses today. `\n + `When the build sets billing.enabled, the backend refuses to start: ${readiness.detail}`,\n readiness.fix,\n ));\n }\n }\n return results;\n}\n\nexport async function collectApplicationCreationReadinessChecks(input: {\n saasRoot: string;\n envName: string;\n /** Test seam; production loads `saas-config.backend.ts` the way the backend does. */\n readBackendBilling?: (saasRoot: string) => Promise<BackendBillingDeclaration | null>;\n}): Promise<LocalPreconditionCheckResult[]> {\n const results: LocalPreconditionCheckResult[] = [];\n const configPath = join(input.saasRoot, WORKSPACE_CONFIG_NAMES.SAAS);\n\n const saasConfig = await loadSaasConfig(configPath).catch(() => null);\n if (!saasConfig) {\n return [fail(\n 'app-creation: application configuration',\n `Could not load ${WORKSPACE_CONFIG_NAMES.SAAS}.`,\n 'Fix the configuration first — nothing below can be evaluated without it.',\n )];\n }\n\n // ── 1. Does discovery see any provider at all? ──\n //\n // A zero here is the state in which EVERY provider an application authors is refused with\n // \"no companion export contributes it for that runtime\", and nothing else reports it: discovery\n // returns an empty array for a broken walk and for an application with no providers alike (#1305).\n const { contributions, unreadableOwners } = await discoverSaasProviderCompanionContributions({\n saasRoot: input.saasRoot,\n saasConfig: saasConfig as never,\n }).catch(() => ({ contributions: [], unreadableOwners: [] }));\n\n /*\n * An owner that DECLARES a companion door and could not be read is the difference between \"this\n * application has no providers\" and \"the walk failed\" — the two used to be one answer, which is\n * what let a zero contribution count read as legitimate (#1305). Named here even when discovery\n * otherwise succeeded, because a broken package silently removes whatever it would have\n * contributed, and the provider that goes missing is refused somewhere else entirely.\n */\n const unreadable = unreadableOwners.length === 0\n ? ''\n : ` ${unreadableOwners.length} owner(s) declare a companion door that could not be read: `\n + `${unreadableOwners.map((owner) => owner.ownerLabel).join(', ')}.`;\n\n results.push(contributions.length > 0\n ? (unreadableOwners.length === 0\n ? pass('app-creation: provider discovery', `${contributions.length} provider contribution(s) discovered.`)\n : warn(\n 'app-creation: provider discovery',\n `${contributions.length} provider contribution(s) discovered, but${unreadable}`,\n 'Build or reinstall those packages — whatever they contribute is missing, and the provider will be refused elsewhere.',\n ))\n : fail(\n 'app-creation: provider discovery',\n `No provider contributions were discovered, so every provider this application declares will be refused.${unreadable}`,\n unreadableOwners.length > 0\n ? 'Build or reinstall the packages named above — the walk reached them and could not read them.'\n : 'Check that a provider package (@wildo-ai/external-connectors-private, or a provider installed with '\n + '`wildo registry add wildo/providers/<ref>`) is a dependency of a declared service and is installed — then re-run `pnpm install`.',\n ));\n\n const enabled = (saasConfig as { engineCapabilities?: Record<string, { enabled?: boolean }> }).engineCapabilities ?? {};\n const scopes = ((saasConfig as { providers?: { scopes?: ProviderScopes } }).providers?.scopes ?? {}) as ProviderScopes;\n /*\n * The companion scope ONLY. This accepted `backend` too until 2026-10-02, on the reasoning that a provider the\n * backend runs is \"genuinely enabled for the application\". It is not enabled for the process that refuses: the\n * creation journey runs in the companion, whose registry holds only the refs of its own provider-runtime artifact,\n * which `wildo config sync` writes from `providers.scopes.companion` alone (`filterRegistryByProviderRuntime`). A\n * backend-only provider therefore passed this line and was refused at the first agent call (#2229).\n */\n const companionScoped = new Set(Object.keys(scopes[CreationProviderHost.COMPANION]?.providers ?? {}));\n const secrets = EnvironmentUtils.loadSecretsJson(input.envName);\n const providerEnv = (secrets as { providerEnv?: Record<string, string> } | null)?.providerEnv ?? {};\n\n // ── 2/3. Per capability: enabled, scoped, and its secrets present ──\n for (const { capability, phase } of JOURNEY_CAPABILITIES) {\n const name = `app-creation: ${capability}`;\n\n if (enabled[capability]?.enabled !== true) {\n results.push(fail(\n name,\n `The application does not enable ${capability}. Stops: ${phase}.`,\n `Add [EngineCapability.${capability}]: { enabled: true } to engineCapabilities in ${WORKSPACE_CONFIG_NAMES.SAAS}, `\n + 'and scope a provider that declares it.',\n ));\n continue;\n }\n\n /*\n * The provider must be BOTH scoped by the application and discovered as declaring the capability.\n * Scoped-but-undiscovered is exactly what `config sync` refuses; discovered-but-unscoped is what\n * `isProviderEnabled` refuses at dispatch. Requiring both is what makes a green line mean the\n * runtime predicate will hold.\n */\n const usable = contributions.filter((contribution) => companionScoped.has(contribution.ref)\n && contribution.runtimeTargets.some((target) => target.kind === CreationProviderHost.COMPANION)\n && contribution.engineCapabilities.includes(capability));\n\n if (usable.length === 0) {\n const scopedRefs = [...companionScoped];\n results.push(fail(\n name,\n `${capability} is enabled but no scoped provider supplies it${scopedRefs.length > 0 ? ` (scoped: ${scopedRefs.join(', ')})` : ' — no provider is scoped at all'}. `\n + `Stops: ${phase}.`,\n `Scope a provider declaring ${capability} under providers.scopes.companion in ${WORKSPACE_CONFIG_NAMES.SAAS}.`,\n ));\n continue;\n }\n\n /*\n * ONE usable provider is enough, and getting this wrong was a false positive on the first run.\n *\n * A capability is satisfied by resolving ONE provider — `isProviderEnabled` is asked about a\n * single ref — so requiring every scoped provider to be credentialed reports a healthy\n * application as broken. Measured: Wonder Todos scopes `anthropic`, `google` and `openai` for\n * AI_LLM and holds no `GOOGLE_API_KEY`; it is the dogfood application and the journey runs there.\n * A check that fails on a working application is worse than no check, because it teaches its\n * reader to skim the line that one day means something.\n *\n * Required secrets come from each contribution's own `secretsContractShape`, so a provider added\n * to the engine tomorrow is evaluated correctly without this file naming it.\n */\n const missingFor = (contribution: typeof usable[number]): string[] => (contribution.secretsContractShape ?? [])\n .filter((entry) => entry.required && !(providerEnv[entry.envVarName] ?? '').trim())\n .map((entry) => entry.envVarName);\n\n const ready = usable.filter((contribution) => missingFor(contribution).length === 0);\n const unready = usable.filter((contribution) => missingFor(contribution).length > 0);\n\n if (ready.length > 0) {\n // The uncredentialed ones are NAMED rather than ignored — selecting one of them would still\n // refuse — but they do not fail the check, because the capability is satisfied.\n const aside = unready.length === 0\n ? ''\n : ` (${unready.map((c) => `${c.ref} lacks ${missingFor(c).join('/')}`).join('; ')} — usable only if selected)`;\n results.push(pass(name, `Supplied by ${ready.map((c) => c.ref).join(', ')}; required secrets present.${aside}`));\n continue;\n }\n\n const missing = [...new Set(usable.flatMap(missingFor))];\n results.push(fail(\n name,\n `${usable.map((c) => c.ref).join(', ')} supplies ${capability} but NO scoped provider has its required secret(s): `\n + `${missing.join(', ')}. Stops: ${phase}.`,\n 'Add them to providerEnv in this environment\\'s secrets.json — or capture them once with '\n + '`wildo local-defaults capture --from <an app that has them>` so every later application adopts them.',\n ));\n }\n\n // ── 3a/3b. The providers the lane's agents PIN, and the billing provider's key ──\n //\n // The capability lines above ask whether SOME provider serves AI_LLM. The runtime asks a narrower\n // question: each agent names its provider, and `isProviderEnabled(<that ref>, <its protocol>)` plus its key\n // decide the call. These lines ask exactly that, for the refs the agents read from the same table (#2229).\n let providerConfigurations: Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>> | null;\n try {\n providerConfigurations = await resolveEnvironmentProviderConfigurations({\n saasRoot: input.saasRoot,\n applicationProviderConfigurations: (saasConfig as { providerConfigurations?: Record<string, Record<string, unknown> | undefined> })\n .providerConfigurations,\n environmentName: input.envName,\n });\n } catch (error) {\n providerConfigurations = null;\n results.push(fail(\n 'app-creation: provider configurations',\n `The provider configuration for ${input.envName} could not be resolved: ${describeCaughtError(error)}`,\n 'Fix the configuration it names — the provider checks below cannot be evaluated without it.',\n ));\n }\n if (providerConfigurations !== null) {\n const providerInput = { scopes, contributions, providerConfigurations, providerEnv };\n results.push(...collectCreationLaneProviderChecks(providerInput));\n results.push(...await collectBillingProviderChecks({ saasRoot: input.saasRoot, enabled, readBackendBilling: input.readBackendBilling, ...providerInput }));\n }\n\n // ── 4. The machine's shared provider keys ──\n //\n // ADVISORY, and only reported when something above is already missing its secrets: this file is how\n // a SECOND application gets its keys without anyone copying values between JSON files, so its\n // absence explains a gap rather than being a gap.\n const localDefaultsPath = resolveLocalDefaultsPath();\n if (!existsSync(localDefaultsPath) && results.some((r) => r.status === LocalPreconditionCheckStatus.FAIL)) {\n results.push(warn(\n 'app-creation: machine provider keys',\n `No ${localDefaultsPath} on this machine, so a newly created application mints everything and adopts nothing.`,\n 'Run `wildo local-defaults capture --from <an application that works>` once; later applications adopt it at `wildo init`.',\n ));\n }\n\n return results;\n}\n"]}
@@ -42,9 +42,14 @@ export declare class ApplicationInitializationVerificationService {
42
42
  * for a projection it no longer describes — the call-site divergence
43
43
  * `.claude/rules/invariant-call-site-enumeration.md` exists to prevent.
44
44
  *
45
- * This runs AFTER init has already converged the same projection, so drift here is not "the
46
- * operator forgot to reapply" — it is the convergence having failed to hold, which is a defect
47
- * worth stopping on rather than warning about.
45
+ * This runs AFTER the projection has been converged — by `/initialize` on a normal registration,
46
+ * or by `DegradedRegistrationDeclarationConvergenceService` when registration degraded and never
47
+ * called `/initialize` (until 2026-10-01 nothing covered that path, and an ordinary
48
+ * `engineCapabilities` edit stopped `wildo local dev` here). So on a LOCAL start drift here is not
49
+ * "the operator forgot to reapply" — it is the convergence having failed to hold, which is a defect
50
+ * worth stopping on rather than warning about. The one exception is a degraded NON-local start: the
51
+ * convergence step deliberately leaves a remote environment alone, so drift there is the
52
+ * operator's to apply, and the remedy below is the right one.
48
53
  */
49
54
  private static assertStoredConfigMatchesDeclaration;
50
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"application-initialization-verification.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/application/application-initialization-verification.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAU5G,+FAA+F;AAC/F,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,SAAiC,GAAG,MAAM,CAgB1H;AAED,MAAM,WAAW,0CAA0C;IACzD,GAAG,EAAE,gCAAgC,CAAC;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,yGAAyG;IACzG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,4CAA4C;WAC1C,cAAc,CACzB,KAAK,EAAE,0CAA0C,GAChD,OAAO,CAAC,IAAI,CAAC;IA+DhB;;;;;;;;;;;;OAYG;mBACkB,oCAAoC;CA0B1D"}
1
+ {"version":3,"file":"application-initialization-verification.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/application/application-initialization-verification.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAU5G,+FAA+F;AAC/F,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,SAAiC,GAAG,MAAM,CAgB1H;AAED,MAAM,WAAW,0CAA0C;IACzD,GAAG,EAAE,gCAAgC,CAAC;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,yGAAyG;IACzG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,4CAA4C;WAC1C,cAAc,CACzB,KAAK,EAAE,0CAA0C,GAChD,OAAO,CAAC,IAAI,CAAC;IA+DhB;;;;;;;;;;;;;;;;;OAiBG;mBACkB,oCAAoC;CA0B1D"}
@@ -96,9 +96,14 @@ export class ApplicationInitializationVerificationService {
96
96
  * for a projection it no longer describes — the call-site divergence
97
97
  * `.claude/rules/invariant-call-site-enumeration.md` exists to prevent.
98
98
  *
99
- * This runs AFTER init has already converged the same projection, so drift here is not "the
100
- * operator forgot to reapply" — it is the convergence having failed to hold, which is a defect
101
- * worth stopping on rather than warning about.
99
+ * This runs AFTER the projection has been converged — by `/initialize` on a normal registration,
100
+ * or by `DegradedRegistrationDeclarationConvergenceService` when registration degraded and never
101
+ * called `/initialize` (until 2026-10-01 nothing covered that path, and an ordinary
102
+ * `engineCapabilities` edit stopped `wildo local dev` here). So on a LOCAL start drift here is not
103
+ * "the operator forgot to reapply" — it is the convergence having failed to hold, which is a defect
104
+ * worth stopping on rather than warning about. The one exception is a degraded NON-local start: the
105
+ * convergence step deliberately leaves a remote environment alone, so drift there is the
106
+ * operator's to apply, and the remedy below is the right one.
102
107
  */
103
108
  static async assertStoredConfigMatchesDeclaration(input) {
104
109
  let preview;
@@ -1 +1 @@
1
- {"version":3,"file":"application-initialization-verification.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/application-initialization-verification.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAG5F,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAC1H,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAEvC,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAClE,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,kCAAkC,CAAC,UAAkB,EAAE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;IAChH,MAAM,SAAS,GAAG,uBAAuB,CAAC,qBAAqB,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,MAAM,OA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,yCAAyC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;kBAC7E,2DAA2D,KAAK,CAAC,OAAO,EAAE,CAC7E,CAAC;QACJ,CAAC;IACH,CAAC;CACF","sourcesContent":["import { sign } from 'node:crypto';\nimport { PlatformApplicationType } from '@wildo-ai/saas-backend-lib';\nimport { WildoHeaderKeys } from '@wildo-ai/saas-models';\nimport { APPS_MANAGER_APPLICATION_CONFIG_PATH } from '@wildo-ai/platform-config-lib';\nimport type { AdminAppManagedDeclaration } from '@wildo-ai/platform-config-lib';\nimport { AppBootstrapService } from '~wildo-cli/services/application/app-bootstrap.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { AddressPerspective, ServiceAddressResolver } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nconst VERIFICATION_TIMEOUT_MS = 15_000;\n\nfunction encodeJwtPart(value: unknown): string {\n return Buffer.from(JSON.stringify(value)).toString('base64url');\n}\n\n/** Sign the exact PLATFORM_TO_PLATFORM token apps-manager must accept after initialization. */\nexport function signAppsManagerInitializationProbe(privateKey: string, nowSeconds = Math.floor(Date.now() / 1_000)): string {\n const serviceId = PlatformApplicationType.PLATFORM_APPS_MANAGER;\n const header = encodeJwtPart({ alg: 'ES256', typ: 'JWT' });\n const payload = encodeJwtPart({\n iss: serviceId,\n sub: serviceId,\n aud: serviceId,\n iat: nowSeconds,\n exp: nowSeconds + 60,\n });\n const signingInput = `${header}.${payload}`;\n const signature = sign('sha256', Buffer.from(signingInput), {\n key: privateKey,\n dsaEncoding: 'ieee-p1363',\n }).toString('base64url');\n return `${signingInput}.${signature}`;\n}\n\nexport interface ApplicationInitializationVerificationInput {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n appSlug: string;\n /**\n * The declaration this initialization was performed against, i.e. the current\n * `wildo.saas.config.ts` projection.\n *\n * REQUIRED, deliberately. This is the only input that lets the postcondition COMPARE rather than\n * merely assert existence, and an optional field is one a caller silently omits — which is how\n * issue #97's \"managed application config verified\" came to pass against a document that\n * contradicted the authored source in an operator-visible way.\n */\n managedDeclaration: AdminAppManagedDeclaration;\n /** Test/diagnostic override. Normal callers derive this from the registered service address resolver. */\n appsManagerUrl?: string;\n}\n\n/**\n * Executable postcondition for a complete platform + application initialization generation. Health and\n * successful writes are insufficient: this crosses the real JWT verification door and reads the exact app\n * config that generated runtimes will consume.\n *\n * It then asks the harder question — is that config the same GENERATION as the declaration this\n * initialization was performed against? A postcondition that only proves a document EXISTS cannot fail\n * on the defect it is named after, and a verification that cannot fail is worse than none because it\n * actively discourages looking (issue #97: the stored provider configuration had been frozen at\n * registration for a day while every run reported the config coherent).\n */\nexport class ApplicationInitializationVerificationService {\n static async assertCoherent(\n input: ApplicationInitializationVerificationInput,\n ): Promise<void> {\n const appsManagerUrl = input.appsManagerUrl ?? (() => {\n const addressContext = ServiceAddressResolver.fromEnvironment(\n input.env,\n AddressPerspective.HOST_FACING,\n );\n return ServiceAddressResolver.resolve(addressContext).platform.appsManager.url;\n })();\n const token = signAppsManagerInitializationProbe(input.credentials.platform.appsManager.privateKey);\n const url = `${appsManagerUrl.replace(/\\/$/, '')}${APPS_MANAGER_APPLICATION_CONFIG_PATH}`;\n\n let response: Response;\n try {\n response = await fetch(url, {\n method: 'GET',\n headers: {\n [WildoHeaderKeys.AUTHORIZATION]: `Bearer ${token}`,\n [WildoHeaderKeys.SERVICE_ID]: PlatformApplicationType.PLATFORM_APPS_MANAGER,\n [WildoHeaderKeys.TARGET_APP_SLUG]: input.appSlug,\n },\n signal: AbortSignal.timeout(VERIFICATION_TIMEOUT_MS),\n });\n } catch (error) {\n throw new Error(\n `Initialization verification could not reach apps-manager at ${url}: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n\n let body: unknown;\n try {\n body = await response.json();\n } catch {\n body = null;\n }\n\n if (!response.ok) {\n const diagnosis = response.status === 401\n ? 'The platform-owned apps-manager signing key and DB-persisted verification key are not one generation.'\n : 'The registered application-config postcondition did not answer successfully.';\n throw new Error(\n `Initialization verification failed with HTTP ${response.status}. ${diagnosis} Body: ${JSON.stringify(body).slice(0, 500)}`,\n );\n }\n\n const outer = body && typeof body === 'object' ? body as Record<string, unknown> : {};\n const candidate = outer.data && typeof outer.data === 'object'\n ? outer.data as Record<string, unknown>\n : outer;\n if (candidate.appSlug !== input.appSlug) {\n throw new Error(\n `Initialization verification read appSlug '${String(candidate.appSlug)}', expected '${input.appSlug}'.`,\n );\n }\n const frontends = candidate.frontendServices;\n if (!frontends || typeof frontends !== 'object' || Array.isArray(frontends) || Object.keys(frontends).length === 0) {\n throw new Error(\n `Initialization verification read '${input.appSlug}' without a non-empty managed frontendServices projection.`,\n );\n }\n\n await ApplicationInitializationVerificationService.assertStoredConfigMatchesDeclaration(input);\n }\n\n /**\n * Ask apps-manager what a declaration reapply WOULD change. An empty `updatedFields` is the\n * coherence proof; a non-empty one names the exact stale slices.\n *\n * The comparison is deliberately NOT re-implemented here. `reapplyManagedDeclaration` is the one\n * owner of the declaration projection, so asking IT the question means the check can never vouch\n * for a projection it no longer describes — the call-site divergence\n * `.claude/rules/invariant-call-site-enumeration.md` exists to prevent.\n *\n * This runs AFTER init has already converged the same projection, so drift here is not \"the\n * operator forgot to reapply\" — it is the convergence having failed to hold, which is a defect\n * worth stopping on rather than warning about.\n */\n private static async assertStoredConfigMatchesDeclaration(\n input: ApplicationInitializationVerificationInput,\n ): Promise<void> {\n let preview: { updatedFields: string[] };\n try {\n preview = await AppBootstrapService.reapplyApplicationDeclaration(input.env, input.credentials, {\n appSlug: input.appSlug,\n managedDeclaration: input.managedDeclaration,\n dryRun: true,\n });\n } catch (error) {\n throw new Error(\n `Initialization verification could not compare the stored config for '${input.appSlug}' against `\n + `wildo.saas.config.ts: ${ErrorUtils.extractErrorMessage(error)}. `\n + 'The comparison is not optional — an initialization that cannot be compared is not verified.',\n );\n }\n\n if (preview.updatedFields.length > 0) {\n throw new Error(\n `Initialization verification found the stored config for '${input.appSlug}' out of generation with `\n + `wildo.saas.config.ts. Stale slice(s): ${preview.updatedFields.join(', ')}. `\n + `Apply them with: wildo config reapply-declaration --app ${input.appSlug}`,\n );\n }\n }\n}\n"]}
1
+ {"version":3,"file":"application-initialization-verification.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/application-initialization-verification.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAG5F,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAC1H,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAEvC,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAClE,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,kCAAkC,CAAC,UAAkB,EAAE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;IAChH,MAAM,SAAS,GAAG,uBAAuB,CAAC,qBAAqB,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,aAAa,CAA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AO,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;kBAC7E,2DAA2D,KAAK,CAAC,OAAO,EAAE,CAC7E,CAAC;QACJ,CAAC;IACH,CAAC;CACF","sourcesContent":["import { sign } from 'node:crypto';\nimport { PlatformApplicationType } from '@wildo-ai/saas-backend-lib';\nimport { WildoHeaderKeys } from '@wildo-ai/saas-models';\nimport { APPS_MANAGER_APPLICATION_CONFIG_PATH } from '@wildo-ai/platform-config-lib';\nimport type { AdminAppManagedDeclaration } from '@wildo-ai/platform-config-lib';\nimport { AppBootstrapService } from '~wildo-cli/services/application/app-bootstrap.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { AddressPerspective, ServiceAddressResolver } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nconst VERIFICATION_TIMEOUT_MS = 15_000;\n\nfunction encodeJwtPart(value: unknown): string {\n return Buffer.from(JSON.stringify(value)).toString('base64url');\n}\n\n/** Sign the exact PLATFORM_TO_PLATFORM token apps-manager must accept after initialization. */\nexport function signAppsManagerInitializationProbe(privateKey: string, nowSeconds = Math.floor(Date.now() / 1_000)): string {\n const serviceId = PlatformApplicationType.PLATFORM_APPS_MANAGER;\n const header = encodeJwtPart({ alg: 'ES256', typ: 'JWT' });\n const payload = encodeJwtPart({\n iss: serviceId,\n sub: serviceId,\n aud: serviceId,\n iat: nowSeconds,\n exp: nowSeconds + 60,\n });\n const signingInput = `${header}.${payload}`;\n const signature = sign('sha256', Buffer.from(signingInput), {\n key: privateKey,\n dsaEncoding: 'ieee-p1363',\n }).toString('base64url');\n return `${signingInput}.${signature}`;\n}\n\nexport interface ApplicationInitializationVerificationInput {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n appSlug: string;\n /**\n * The declaration this initialization was performed against, i.e. the current\n * `wildo.saas.config.ts` projection.\n *\n * REQUIRED, deliberately. This is the only input that lets the postcondition COMPARE rather than\n * merely assert existence, and an optional field is one a caller silently omits — which is how\n * issue #97's \"managed application config verified\" came to pass against a document that\n * contradicted the authored source in an operator-visible way.\n */\n managedDeclaration: AdminAppManagedDeclaration;\n /** Test/diagnostic override. Normal callers derive this from the registered service address resolver. */\n appsManagerUrl?: string;\n}\n\n/**\n * Executable postcondition for a complete platform + application initialization generation. Health and\n * successful writes are insufficient: this crosses the real JWT verification door and reads the exact app\n * config that generated runtimes will consume.\n *\n * It then asks the harder question — is that config the same GENERATION as the declaration this\n * initialization was performed against? A postcondition that only proves a document EXISTS cannot fail\n * on the defect it is named after, and a verification that cannot fail is worse than none because it\n * actively discourages looking (issue #97: the stored provider configuration had been frozen at\n * registration for a day while every run reported the config coherent).\n */\nexport class ApplicationInitializationVerificationService {\n static async assertCoherent(\n input: ApplicationInitializationVerificationInput,\n ): Promise<void> {\n const appsManagerUrl = input.appsManagerUrl ?? (() => {\n const addressContext = ServiceAddressResolver.fromEnvironment(\n input.env,\n AddressPerspective.HOST_FACING,\n );\n return ServiceAddressResolver.resolve(addressContext).platform.appsManager.url;\n })();\n const token = signAppsManagerInitializationProbe(input.credentials.platform.appsManager.privateKey);\n const url = `${appsManagerUrl.replace(/\\/$/, '')}${APPS_MANAGER_APPLICATION_CONFIG_PATH}`;\n\n let response: Response;\n try {\n response = await fetch(url, {\n method: 'GET',\n headers: {\n [WildoHeaderKeys.AUTHORIZATION]: `Bearer ${token}`,\n [WildoHeaderKeys.SERVICE_ID]: PlatformApplicationType.PLATFORM_APPS_MANAGER,\n [WildoHeaderKeys.TARGET_APP_SLUG]: input.appSlug,\n },\n signal: AbortSignal.timeout(VERIFICATION_TIMEOUT_MS),\n });\n } catch (error) {\n throw new Error(\n `Initialization verification could not reach apps-manager at ${url}: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n\n let body: unknown;\n try {\n body = await response.json();\n } catch {\n body = null;\n }\n\n if (!response.ok) {\n const diagnosis = response.status === 401\n ? 'The platform-owned apps-manager signing key and DB-persisted verification key are not one generation.'\n : 'The registered application-config postcondition did not answer successfully.';\n throw new Error(\n `Initialization verification failed with HTTP ${response.status}. ${diagnosis} Body: ${JSON.stringify(body).slice(0, 500)}`,\n );\n }\n\n const outer = body && typeof body === 'object' ? body as Record<string, unknown> : {};\n const candidate = outer.data && typeof outer.data === 'object'\n ? outer.data as Record<string, unknown>\n : outer;\n if (candidate.appSlug !== input.appSlug) {\n throw new Error(\n `Initialization verification read appSlug '${String(candidate.appSlug)}', expected '${input.appSlug}'.`,\n );\n }\n const frontends = candidate.frontendServices;\n if (!frontends || typeof frontends !== 'object' || Array.isArray(frontends) || Object.keys(frontends).length === 0) {\n throw new Error(\n `Initialization verification read '${input.appSlug}' without a non-empty managed frontendServices projection.`,\n );\n }\n\n await ApplicationInitializationVerificationService.assertStoredConfigMatchesDeclaration(input);\n }\n\n /**\n * Ask apps-manager what a declaration reapply WOULD change. An empty `updatedFields` is the\n * coherence proof; a non-empty one names the exact stale slices.\n *\n * The comparison is deliberately NOT re-implemented here. `reapplyManagedDeclaration` is the one\n * owner of the declaration projection, so asking IT the question means the check can never vouch\n * for a projection it no longer describes — the call-site divergence\n * `.claude/rules/invariant-call-site-enumeration.md` exists to prevent.\n *\n * This runs AFTER the projection has been converged — by `/initialize` on a normal registration,\n * or by `DegradedRegistrationDeclarationConvergenceService` when registration degraded and never\n * called `/initialize` (until 2026-10-01 nothing covered that path, and an ordinary\n * `engineCapabilities` edit stopped `wildo local dev` here). So on a LOCAL start drift here is not\n * \"the operator forgot to reapply\" — it is the convergence having failed to hold, which is a defect\n * worth stopping on rather than warning about. The one exception is a degraded NON-local start: the\n * convergence step deliberately leaves a remote environment alone, so drift there is the\n * operator's to apply, and the remedy below is the right one.\n */\n private static async assertStoredConfigMatchesDeclaration(\n input: ApplicationInitializationVerificationInput,\n ): Promise<void> {\n let preview: { updatedFields: string[] };\n try {\n preview = await AppBootstrapService.reapplyApplicationDeclaration(input.env, input.credentials, {\n appSlug: input.appSlug,\n managedDeclaration: input.managedDeclaration,\n dryRun: true,\n });\n } catch (error) {\n throw new Error(\n `Initialization verification could not compare the stored config for '${input.appSlug}' against `\n + `wildo.saas.config.ts: ${ErrorUtils.extractErrorMessage(error)}. `\n + 'The comparison is not optional — an initialization that cannot be compared is not verified.',\n );\n }\n\n if (preview.updatedFields.length > 0) {\n throw new Error(\n `Initialization verification found the stored config for '${input.appSlug}' out of generation with `\n + `wildo.saas.config.ts. Stale slice(s): ${preview.updatedFields.join(', ')}. `\n + `Apply them with: wildo config reapply-declaration --app ${input.appSlug}`,\n );\n }\n }\n}\n"]}