@wildo-ai/wildo-cli 1.1.2 → 1.1.3

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 (947) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
  3. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  4. package/dist/src/commands/acp/probe.command.js +13 -0
  5. package/dist/src/commands/acp/probe.command.js.map +1 -1
  6. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  7. package/dist/src/commands/assets/sync.command.d.ts +6 -0
  8. package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
  9. package/dist/src/commands/assets/sync.command.js +13 -3
  10. package/dist/src/commands/assets/sync.command.js.map +1 -1
  11. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  12. package/dist/src/commands/compose.command.d.ts.map +1 -1
  13. package/dist/src/commands/compose.command.js +16 -0
  14. package/dist/src/commands/compose.command.js.map +1 -1
  15. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
  16. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
  17. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
  18. package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
  19. package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
  20. package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
  21. package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
  22. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  23. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  24. package/dist/src/commands/config/sync.command.d.ts +36 -0
  25. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  26. package/dist/src/commands/config/sync.command.js +61 -7
  27. package/dist/src/commands/config/sync.command.js.map +1 -1
  28. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  29. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
  30. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
  31. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
  32. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
  33. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  34. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  35. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  36. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  37. package/dist/src/commands/context/journey.command.d.ts +6 -2
  38. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  39. package/dist/src/commands/context/journey.command.js +8 -4
  40. package/dist/src/commands/context/journey.command.js.map +1 -1
  41. package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
  42. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
  43. package/dist/src/commands/context/jurisdictions.command.js +115 -0
  44. package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
  45. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  46. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  47. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  48. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  49. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  50. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  51. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
  52. package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
  53. package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
  54. package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
  55. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
  56. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
  57. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
  58. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
  59. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  60. package/dist/src/commands/dev/charts-audit.command.js +1 -1
  61. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  62. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  63. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  64. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  65. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  66. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  67. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  68. package/dist/src/commands/dev/start.command.js +8 -7
  69. package/dist/src/commands/dev/start.command.js.map +1 -1
  70. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  71. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  72. package/dist/src/commands/dev/sync-csp.command.js +35 -7
  73. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  74. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
  75. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
  76. package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
  77. package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
  78. package/dist/src/commands/docs/publish.command.d.ts +29 -0
  79. package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
  80. package/dist/src/commands/docs/publish.command.js +82 -0
  81. package/dist/src/commands/docs/publish.command.js.map +1 -0
  82. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  83. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
  84. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
  85. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
  86. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  87. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  88. package/dist/src/commands/fwk/dev-skills.command.js +12 -0
  89. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  90. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  91. package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
  92. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
  93. package/dist/src/commands/fwk/generate-providers.command.js +309 -0
  94. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
  95. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  96. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  97. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  98. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  99. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  100. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  101. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  102. package/dist/src/commands/fwk/version-show.command.js +9 -1
  103. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  104. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  105. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  106. package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
  107. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  108. package/dist/src/commands/fwk/wt-status.command.js +34 -5
  109. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  110. package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
  111. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  112. package/dist/src/commands/fwk/wt-tail.command.js +40 -10
  113. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  114. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
  115. package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
  116. package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
  117. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  118. package/dist/src/commands/generate/email-command.utils.js +1 -0
  119. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  120. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  121. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  122. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  123. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  124. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  125. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  126. package/dist/src/commands/generate/labelling-command.utils.js +1 -0
  127. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  128. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  129. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  130. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  131. package/dist/src/commands/help.command.d.ts.map +1 -1
  132. package/dist/src/commands/help.command.js +2 -0
  133. package/dist/src/commands/help.command.js.map +1 -1
  134. package/dist/src/commands/init.command.d.ts +17 -0
  135. package/dist/src/commands/init.command.d.ts.map +1 -1
  136. package/dist/src/commands/init.command.js +57 -4
  137. package/dist/src/commands/init.command.js.map +1 -1
  138. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
  139. package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
  140. package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
  141. package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
  142. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
  143. package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
  144. package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
  145. package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
  146. package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
  147. package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
  148. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
  149. package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
  150. package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
  151. package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
  152. package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
  153. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  154. package/dist/src/commands/local/dev.command.d.ts +6 -3
  155. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  156. package/dist/src/commands/local/dev.command.js +13 -4
  157. package/dist/src/commands/local/dev.command.js.map +1 -1
  158. package/dist/src/commands/local/doctor.command.d.ts +9 -0
  159. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  160. package/dist/src/commands/local/doctor.command.js +24 -6
  161. package/dist/src/commands/local/doctor.command.js.map +1 -1
  162. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  163. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  164. package/dist/src/commands/local/init.command.js +11 -2
  165. package/dist/src/commands/local/init.command.js.map +1 -1
  166. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  167. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  168. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  169. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  170. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  171. package/dist/src/commands/local/up.command.js.map +1 -1
  172. package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
  173. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
  174. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  175. package/dist/src/commands/lock/check.command.js +3 -10
  176. package/dist/src/commands/lock/check.command.js.map +1 -1
  177. package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
  178. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
  179. package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
  180. package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
  181. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  182. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  183. package/dist/src/commands/market/market-command.utils.js +1 -0
  184. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  185. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
  186. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
  187. package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
  188. package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
  189. package/dist/src/commands/providers/show.command.d.ts +51 -0
  190. package/dist/src/commands/providers/show.command.d.ts.map +1 -0
  191. package/dist/src/commands/providers/show.command.js +152 -0
  192. package/dist/src/commands/providers/show.command.js.map +1 -0
  193. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  194. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  195. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  196. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  197. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  198. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  199. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  200. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  201. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  202. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  203. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  204. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  205. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
  206. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  207. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  208. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  209. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  210. package/dist/src/commands/setup.command.d.ts.map +1 -1
  211. package/dist/src/commands/version.command.d.ts.map +1 -1
  212. package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
  213. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  214. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
  215. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  216. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  217. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  218. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  219. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  220. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  221. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  222. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
  223. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  224. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  225. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  226. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  227. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  228. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  229. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  230. package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
  231. package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
  232. package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
  233. package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
  234. package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
  235. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
  236. package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
  237. package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
  238. package/dist/src/kernel/base-command.d.ts.map +1 -1
  239. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  240. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  241. package/dist/src/kernel/command-registry.js +6 -0
  242. package/dist/src/kernel/command-registry.js.map +1 -1
  243. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  244. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  245. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  246. package/dist/src/kernel/hooks.d.ts.map +1 -1
  247. package/dist/src/kernel/logger.d.ts.map +1 -1
  248. package/dist/src/kernel/types.d.ts +17 -1
  249. package/dist/src/kernel/types.d.ts.map +1 -1
  250. package/dist/src/kernel/types.js +16 -0
  251. package/dist/src/kernel/types.js.map +1 -1
  252. package/dist/src/main.d.ts.map +1 -1
  253. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
  254. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
  255. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
  256. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
  257. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  258. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  259. package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
  260. package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
  261. package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
  262. package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
  263. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
  264. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  265. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  266. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  267. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  268. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  269. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  270. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
  271. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
  272. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
  273. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
  274. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
  275. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
  276. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
  277. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
  278. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
  279. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
  280. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
  281. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
  282. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
  283. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
  284. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
  285. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
  286. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
  287. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
  288. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
  289. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
  290. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
  291. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
  292. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
  293. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
  294. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
  295. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
  296. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
  297. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
  298. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
  299. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
  300. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
  301. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
  302. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
  303. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
  304. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
  305. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
  306. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
  307. package/dist/src/services/application/__tests__/provider-package-links.service.test.js +156 -0
  308. package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
  309. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
  310. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
  311. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
  312. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
  313. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
  314. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
  315. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
  316. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
  317. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
  318. package/dist/src/services/application/app-bootstrap.service.d.ts +34 -10
  319. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  320. package/dist/src/services/application/app-bootstrap.service.js +62 -48
  321. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  322. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  323. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  324. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  325. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  326. package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
  327. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  328. package/dist/src/services/application/application-assets-delivery.service.js +35 -7
  329. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  330. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  331. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  332. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  333. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  334. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  335. package/dist/src/services/application/application-runtime-bootstrap.service.js +0 -2
  336. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  337. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  338. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  339. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  340. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  341. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  342. package/dist/src/services/application/local-application-initialization.service.js +22 -6
  343. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  344. package/dist/src/services/application/provider-package-links.service.d.ts +130 -0
  345. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
  346. package/dist/src/services/application/provider-package-links.service.js +280 -0
  347. package/dist/src/services/application/provider-package-links.service.js.map +1 -0
  348. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  349. package/dist/src/services/application/provider-runtime-sync.service.js +6 -20
  350. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  351. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  352. package/dist/src/services/application/saas-scaffold.service.js +11 -2
  353. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  354. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  355. package/dist/src/services/application/saas-skeleton.service.js +24 -24
  356. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  357. package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
  358. package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
  359. package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
  360. package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
  361. package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
  362. package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
  363. package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
  364. package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
  365. package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
  366. package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
  367. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
  368. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
  369. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
  370. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
  371. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
  372. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
  373. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
  374. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
  375. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
  376. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
  377. package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
  378. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  379. package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
  380. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  381. package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
  382. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  383. package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
  384. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  385. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
  386. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
  387. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
  388. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
  389. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
  390. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  391. package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
  392. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  393. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
  394. package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
  395. package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
  396. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
  397. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
  398. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
  399. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  400. package/dist/src/services/companion/companion-client-options.utils.js +6 -0
  401. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  402. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  403. package/dist/src/services/companion/companion-client.service.js +34 -0
  404. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  405. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  406. package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
  407. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
  408. package/dist/src/services/companion/companion-local-token.utils.js +62 -0
  409. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
  410. package/dist/src/services/companion/companion.schemas.d.ts +12 -0
  411. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  412. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  413. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  414. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  415. package/dist/src/services/companion/local-companion-authority.service.js +9 -30
  416. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  417. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  418. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  419. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
  420. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
  421. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
  422. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
  423. package/dist/src/services/context/context-manager.service.d.ts +9 -0
  424. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  425. package/dist/src/services/context/context-manager.service.js +13 -1
  426. package/dist/src/services/context/context-manager.service.js.map +1 -1
  427. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  428. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  429. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
  430. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
  431. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
  432. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
  433. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
  434. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
  435. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
  436. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
  437. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
  438. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
  439. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  440. package/dist/src/services/credentials/ci-secrets-adapter.service.js +98 -37
  441. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  442. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +175 -0
  443. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
  444. package/dist/src/services/credentials/composed-provider-catalogue.js +228 -0
  445. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
  446. package/dist/src/services/credentials/credentials.schemas.d.ts +2 -22
  447. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  448. package/dist/src/services/credentials/credentials.schemas.js +17 -5
  449. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  450. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  451. package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
  452. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  453. package/dist/src/services/credentials/framework-managed-secrets.js +2 -0
  454. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  455. package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
  456. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  457. package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
  458. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  459. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  460. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  461. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  462. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  463. package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
  464. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  465. package/dist/src/services/data-services/data-services.schemas.js +0 -1
  466. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  467. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  468. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
  469. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
  470. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
  471. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
  472. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
  473. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
  474. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
  475. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
  476. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
  477. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
  478. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
  479. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
  480. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
  481. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
  482. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
  483. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
  484. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
  485. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
  486. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
  487. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
  488. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
  489. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
  490. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
  491. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
  492. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
  493. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  494. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  495. package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
  496. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  497. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  498. package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
  499. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  500. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
  501. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
  502. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
  503. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
  504. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
  505. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
  506. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -1
  507. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  508. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +60 -12
  509. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  510. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  511. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  512. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  513. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  514. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  515. package/dist/src/services/deployment/infra-writer.service.js +11 -3
  516. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  517. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
  518. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
  519. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
  520. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
  521. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
  522. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
  523. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
  524. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
  525. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
  526. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
  527. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
  528. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
  529. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
  530. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
  531. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  532. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +3 -0
  533. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  534. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  535. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  536. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
  537. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  538. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
  539. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  540. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
  541. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  542. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  543. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
  544. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  545. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
  546. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  547. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  548. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  549. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  550. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  551. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  552. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  553. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  554. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  555. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  556. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
  557. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  558. package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
  559. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  560. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  561. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  562. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  563. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  564. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  565. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  566. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  567. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  568. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  569. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  570. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  571. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
  572. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
  573. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
  574. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
  575. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
  576. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
  577. package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
  578. package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
  579. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
  580. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
  581. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
  582. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
  583. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
  584. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
  585. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
  586. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
  587. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
  588. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
  589. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
  590. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
  591. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
  592. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
  593. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
  594. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
  595. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
  596. package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
  597. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
  598. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
  599. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
  600. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  601. package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
  602. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  603. package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
  604. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  605. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  606. package/dist/src/services/environment/env-sync.service.js +13 -13
  607. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  608. package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
  609. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  610. package/dist/src/services/environment/env-vars-builder.service.js +169 -41
  611. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  612. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  613. package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
  614. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  615. package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
  616. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  617. package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
  618. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  619. package/dist/src/services/environment/environment-paths.service.js +5 -3
  620. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  621. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  622. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  623. package/dist/src/services/environment/environment-setup.service.js +23 -9
  624. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  625. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  626. package/dist/src/services/environment/environment.service.d.ts +6 -1
  627. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  628. package/dist/src/services/environment/environment.service.js +2 -0
  629. package/dist/src/services/environment/environment.service.js.map +1 -1
  630. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  631. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  632. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  633. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  634. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  635. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
  636. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
  637. package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
  638. package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
  639. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
  640. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
  641. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +47 -0
  642. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
  643. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
  644. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
  645. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
  646. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
  647. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
  648. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
  649. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
  650. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
  651. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
  652. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
  653. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
  654. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
  655. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +50 -0
  656. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
  657. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
  658. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
  659. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
  660. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
  661. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
  662. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
  663. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
  664. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
  665. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
  666. package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
  667. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
  668. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
  669. package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
  670. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
  671. package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
  672. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
  673. package/dist/src/services/framework/application-rule-imports.js +77 -0
  674. package/dist/src/services/framework/application-rule-imports.js.map +1 -0
  675. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
  676. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  677. package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
  678. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  679. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  680. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  681. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  682. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +45 -0
  683. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  684. package/dist/src/services/framework/framework-knowledge-audit.service.js +122 -1
  685. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  686. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
  687. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  688. package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
  689. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  690. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  691. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  692. package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
  693. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  694. package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
  695. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  696. package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
  697. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  698. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  699. package/dist/src/services/framework/framework-version.service.d.ts +13 -0
  700. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  701. package/dist/src/services/framework/framework-version.service.js +23 -24
  702. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  703. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  704. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
  705. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
  706. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
  707. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
  708. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
  709. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
  710. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
  711. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
  712. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
  713. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
  714. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +166 -0
  715. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
  716. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
  717. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
  718. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
  719. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
  720. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
  721. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
  722. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
  723. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
  724. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
  725. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
  726. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
  727. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
  728. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
  729. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
  730. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
  731. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
  732. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
  733. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
  734. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
  735. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
  736. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
  737. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
  738. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
  739. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
  740. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
  741. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
  742. package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
  743. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
  744. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +130 -0
  745. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
  746. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1466 -0
  747. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
  748. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
  749. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
  750. package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
  751. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
  752. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
  753. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
  754. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
  755. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
  756. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
  757. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
  758. package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
  759. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
  760. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
  761. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
  762. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
  763. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  764. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  765. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  766. package/dist/src/services/frontend/frontend-publish.service.js +1 -1
  767. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  768. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  769. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  770. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  771. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  772. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  773. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  774. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  775. package/dist/src/services/registry/index.d.ts.map +1 -1
  776. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  777. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
  778. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  779. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  780. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
  781. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
  782. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
  783. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
  784. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
  785. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
  786. package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
  787. package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
  788. package/dist/src/services/security/csp-sync.service.d.ts +27 -5
  789. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  790. package/dist/src/services/security/csp-sync.service.js +204 -16
  791. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  792. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  793. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
  794. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
  795. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
  796. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
  797. package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
  798. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  799. package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
  800. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  801. package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
  802. package/dist/tsconfig.build.tsbuildinfo +1 -1
  803. package/dist/tsconfig.tsbuildinfo +1 -1
  804. package/framework-root-package.json +2 -0
  805. package/package.json +19 -17
  806. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -0
  807. package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
  808. package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
  809. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +330 -74
  810. package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
  811. package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
  812. package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
  813. package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
  814. package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
  815. package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
  816. package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
  817. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
  818. package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
  819. package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
  820. package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
  821. package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
  822. package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
  823. package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
  824. package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
  825. package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
  826. package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
  827. package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
  828. package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
  829. package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
  830. package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
  831. package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
  832. package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
  833. package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
  834. package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
  835. package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
  836. package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
  837. package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
  838. package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
  839. package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
  840. package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
  841. package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
  842. package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
  843. package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
  844. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
  845. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
  846. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
  847. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
  848. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
  849. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
  850. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
  851. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
  852. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
  853. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
  854. package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
  855. package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
  856. package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
  857. package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
  858. package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
  859. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
  860. package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
  861. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
  862. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
  863. package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
  864. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
  865. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
  866. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
  867. package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
  868. package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
  869. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
  870. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
  871. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
  872. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
  873. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
  874. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
  875. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
  876. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
  877. package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
  878. package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
  879. package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
  880. package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
  881. package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
  882. package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
  883. package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
  884. package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
  885. package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
  886. package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
  887. package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
  888. package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
  889. package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
  890. package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
  891. package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
  892. package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
  893. package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
  894. package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
  895. package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
  896. package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
  897. package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
  898. package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
  899. package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
  900. package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
  901. package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
  902. package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
  903. package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
  904. package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
  905. package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
  906. package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
  907. package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
  908. package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
  909. package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
  910. package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
  911. package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
  912. package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
  913. package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
  914. package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
  915. package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
  916. package/templates/saas/scenarios/add-backend-provider/scenario.json +2 -2
  917. package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
  918. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
  919. package/templates/saas/scenarios/add-module/scenario.json +3 -3
  920. package/templates/saas/scenarios/add-provider/scenario.json +36 -0
  921. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +18 -2
  922. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
  923. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +52 -0
  924. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
  925. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +26 -4
  926. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
  927. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
  928. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
  929. package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
  930. package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
  931. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
  932. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
  933. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
  934. package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
  935. package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
  936. package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
  937. package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
  938. package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
  939. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
  940. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
  941. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
  942. package/wildo-framework.info.json +1 -1
  943. package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
  944. package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
  945. package/templates/infra/k8s/middleware.yaml.hbs +0 -101
  946. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
  947. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"saas-skeleton.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/saas-skeleton.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC9H,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAC5H,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kEAAkE,CAAC;AAEpH;;;;GAIG;AACH,MAAM,CAAN,IAAY,YAcX;AAdD,WAAY,YAAY;IACtB;;;;OAIG;IACH,+CAA+B,CAAA;IAC/B;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EAAE,UAAU,EAAE,IAAI,IAAI,cAAc,EAAE,OAAO,CAAC;oBAC7H,GAAG,EAAE,OAAO;iBACb,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC7E,CAAC;CACF,CAAC","sourcesContent":["/**\n * SaasSkeletonService — materialize a full, bootable-after-setup application\n * skeleton from `templates/saas/skeleton/` (issue #51, T1–T10).\n *\n * The template tree carries three file classes:\n * - plain files, copied verbatim (`tsconfig.common.json`, package sources, …);\n * - `*.hbs` files, rendered through the shared Handlebars `TemplateProcessor`\n * with the app identity + ALLOCATED ports (D4: two applications sharing a\n * framework checkout must never collide on ports);\n * - `gitignore`, written as `.gitignore` (a literal dotfile inside the\n * template tree would make git ignore the template's own files).\n *\n * Two files are DERIVED rather than templated, per the T4 rule (\"derived from\n * the framework's current override set, never a frozen copy\"):\n * - the root `package.json` — its `pnpm.overrides` are computed live from\n * `scripts/app-dependency-alignment/propagated-engine-overrides.json`\n * (names) joined with the framework root's `pnpm.overrides` (versions),\n * plus, in framework-developer mode, `file:` links for every\n * `frameworkFileLinkPackages` entry resolved through the framework's own\n * pnpm-workspace;\n * - `.wildo-saas/dev-framework-scripts/run-dev-stack.sh` — its\n * `pnpm --filter` package lists are the scaffolded workspace members.\n *\n * DUAL MODE (D7 — both modes authored from the start). Both are live: the npm\n * publish lane put all twenty declared packages on the registry at 1.1.1 on\n * 2026-08-31, `@wildo-ai/dev-companion` among them, so app-creator mode installs\n * and delivers like any other consumer:\n * - `framework-dev`: `file:` overrides into the checkout, dev-framework\n * scripts installed, companion dist delivered via\n * `scripts/dev-orchestrator/dev-companion-deliver.mjs`;\n * - `app-creator`: `@wildo-ai/*` overrides pinned to the published framework\n * version; the companion drop is a re-export shim over the published\n * `@wildo-ai/dev-companion`, keeping the framework-dev entry layout.\n */\nimport { spawnSync } from 'child_process';\nimport { appendFileSync, copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync, chmodSync } from 'fs';\nimport { dirname, join, relative } from 'path';\nimport { parse as parseYaml } from 'yaml';\nimport { TemplateProcessor } from '~wildo-cli/infrastructure/io/template-processor';\nimport { COMPANION_PORT_OFFSET, WORKBENCH_PORT_OFFSET } from '~wildo-cli/services/application/application-dev-port-offsets';\nimport {\n APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE,\n ApplicationDependencyAlignmentService,\n} from '~wildo-cli/services/application/application-dependency-alignment.service';\nimport { resolveFrameworkRootManifestPath } from '~wildo-cli/services/framework/installed-framework-assets.service';\n\n/**\n * The two delivery modes every skeleton artifact is authored for (issue #51 D7).\n * The mode decides the root manifest's dependency story and which dev tooling\n * the scaffold materializes — it never changes the application's own sources.\n */\nexport enum SkeletonMode {\n /**\n * In-repo example app beside the framework checkout: `file:` overrides into\n * the checkout's workspace packages, dev-framework scripts installed, and the\n * companion dist delivered straight from the framework build.\n */\n FRAMEWORK_DEV = 'framework-dev',\n /**\n * Standalone app consuming published `@wildo-ai/*` versions. No framework\n * scripts; the companion arrives as a shim over the published\n * `@wildo-ai/dev-companion` rather than as a hard-linked build mirror. The\n * root `dev` script runs the workspace members' own dev scripts.\n */\n APP_CREATOR = 'app-creator',\n}\n\nexport interface SkeletonPorts {\n backend: number;\n app: number;\n companion: number;\n workbench: number;\n}\n\nexport interface SaasSkeletonOptions {\n name: string;\n frameworkPath: string | null;\n mode: SkeletonMode;\n portBase?: number;\n skipInstall?: boolean;\n log: { info(message: string): void; warn(message: string): void };\n}\n\nexport interface SaasSkeletonResult {\n slug: string;\n ports: SkeletonPorts;\n filesWritten: number;\n companionDelivered: boolean;\n installed: boolean;\n built: boolean;\n}\n\nconst SKELETON_TEMPLATE_RELATIVE = 'templates/saas/skeleton';\nconst OVERRIDES_MANIFEST_RELATIVE = 'scripts/app-dependency-alignment/propagated-engine-overrides.json';\nconst COMPANION_DELIVER_RELATIVE = 'scripts/dev-orchestrator/dev-companion-deliver.mjs';\n/**\n * The workspace members `buildWorkspaceYaml` declares, minus the two GENERATED drops (their\n * manifests are written by their own generators and would overwrite anything injected here).\n * Kept beside that function on purpose: the two lists describe the same scaffold and must move\n * together.\n */\nconst SCAFFOLDED_WORKSPACE_MEMBERS = ['.', 'specifications', 'shared-lib', 'backend-api', 'frontend'] as const;\n\nconst DEFAULT_PORT_BASE = 4241;\nconst PORT_BASE_STRIDE = 10;\n\nfunction toSlug(name: string): string {\n return name\n .trim()\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '');\n}\n\nfunction toDisplayName(name: string): string {\n return name\n .replace(/[-_]+/g, ' ')\n .replace(/\\b\\w/g, c => c.toUpperCase());\n}\n\n/**\n * Allocate the app's port base by scanning every sibling application's AUTHORED\n * port declarations under `<framework>/examples/*` (saas config `defaultPort:`\n * plus infra `port:` values). The next free `PORT_BASE_STRIDE` block above the\n * highest occupied one wins, so a second app lands at 4251 beside Wonder\n * Todos' 4241–4244 instead of silently colliding (the exact failure of the\n * 2026-08-25 hand bootstrap that T8/D4 records).\n */\nfunction allocatePortBase(frameworkPath: string | null): number {\n const used = collectUsedApplicationPorts(frameworkPath);\n // Walk stride-aligned bases upward until BOTH the service block (base..base+stride-1)\n // and the derived companion port (base+offset) are free of every scanned port.\n for (let base = DEFAULT_PORT_BASE; base < 5000; base += PORT_BASE_STRIDE) {\n if (portBlockIsFree(base, used)) {\n return base;\n }\n }\n // Exhaustion must REFUSE, not silently hand back the default base — returning\n // 4241 here would scaffold an app directly onto Wonder Todos' ports, which is\n // the exact collision this allocator exists to prevent.\n throw new Error(\n 'No free application port block found in the 4000-4999 tier (stride 10 + companion offset 100). '\n + 'Pass an explicit --port-base outside the scanned range, or retire an unused sibling application.',\n );\n}\n\n/** True when the whole service block AND both derived tool ports avoid every scanned port. */\nfunction portBlockIsFree(base: number, used: ReadonlySet<number>): boolean {\n const blockPorts = Array.from({ length: PORT_BASE_STRIDE }, (_, i) => base + i);\n return blockPorts.every((port) => !used.has(port))\n && !used.has(base + COMPANION_PORT_OFFSET)\n && !used.has(base + WORKBENCH_PORT_OFFSET);\n}\n\n/** Collect every authored sibling port (saas `defaultPort:` + infra `port:`) in the 4xxx tier. */\nfunction collectUsedApplicationPorts(frameworkPath: string | null): Set<number> {\n const usedPorts: number[] = [];\n if (frameworkPath) {\n const examplesHome = join(frameworkPath, 'examples');\n if (existsSync(examplesHome)) {\n for (const entry of readdirSync(examplesHome, { withFileTypes: true })) {\n if (!entry.isDirectory()) continue;\n const appRoot = join(examplesHome, entry.name);\n for (const candidate of [\n join(appRoot, 'wildo.saas.config.ts'),\n join(appRoot, 'infrastructure/local/wildo.infra.local.config.ts'),\n ]) {\n if (!existsSync(candidate)) continue;\n const source = readFileSync(candidate, 'utf8');\n for (const match of source.matchAll(/(?:defaultPort|port)\\s*:\\s*(\\d{4,5})/g)) {\n usedPorts.push(Number(match[1]));\n }\n }\n }\n }\n }\n return new Set(usedPorts.filter((port) => port >= 4000 && port < 5000));\n}\n\ninterface FrameworkWorkspacePackage {\n name: string;\n root: string;\n}\n\n/** Resolve every framework workspace member's package name → absolute root. */\nfunction readFrameworkWorkspacePackages(frameworkPath: string): Map<string, FrameworkWorkspacePackage> {\n const workspace = parseYaml(readFileSync(join(frameworkPath, 'pnpm-workspace.yaml'), 'utf8')) as { packages?: string[] };\n const packages = new Map<string, FrameworkWorkspacePackage>();\n for (const memberPattern of workspace.packages ?? []) {\n // The framework workspace deliberately uses explicit entries; tolerate a\n // one-level trailing glob for robustness.\n const candidates = memberPattern.endsWith('/*')\n ? readdirSync(join(frameworkPath, memberPattern.slice(0, -2)), { withFileTypes: true })\n .filter((entry) => entry.isDirectory())\n .map((entry) => join(memberPattern.slice(0, -2), entry.name))\n : [memberPattern];\n for (const memberRelative of candidates) {\n const manifestPath = join(frameworkPath, memberRelative, 'package.json');\n if (!existsSync(manifestPath)) continue;\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string };\n if (manifest.name) packages.set(manifest.name, { name: manifest.name, root: join(frameworkPath, memberRelative) });\n }\n }\n return packages;\n}\n\ninterface OverridesManifest {\n propagatedOverrideKeys?: string[];\n frameworkFileLinkPackages?: string[];\n}\n\nfunction buildRootOverrides(input: {\n appRoot: string;\n frameworkPath: string;\n mode: SkeletonMode;\n}): Record<string, string> {\n const manifest = JSON.parse(\n readFileSync(join(input.frameworkPath, OVERRIDES_MANIFEST_RELATIVE), 'utf8'),\n ) as OverridesManifest;\n // Through the resolver, never `<root>/package.json`: in an INSTALLED framework-assets root that\n // file is the CLI's own manifest, and the framework root manifest ships beside it under another\n // name (`installed-framework-assets.service.ts`).\n const frameworkRootManifest = JSON.parse(\n readFileSync(resolveFrameworkRootManifestPath(input.frameworkPath), 'utf8'),\n ) as { version?: string; pnpm?: { overrides?: Record<string, string> } };\n const frameworkOverrides = frameworkRootManifest.pnpm?.overrides ?? {};\n const frameworkInfo = JSON.parse(\n readFileSync(join(input.frameworkPath, 'wildo-framework.info.json'), 'utf8'),\n ) as { version: string };\n\n const overrides: Record<string, string> = {};\n\n if (input.mode === SkeletonMode.FRAMEWORK_DEV) {\n const workspacePackages = readFrameworkWorkspacePackages(input.frameworkPath);\n for (const packageName of manifest.frameworkFileLinkPackages ?? []) {\n const workspacePackage = workspacePackages.get(packageName);\n if (!workspacePackage) {\n throw new Error(\n `frameworkFileLinkPackages names '${packageName}' but no framework workspace member carries that name — `\n + `fix ${OVERRIDES_MANIFEST_RELATIVE} or the workspace.`,\n );\n }\n overrides[packageName] = `file:${relative(input.appRoot, workspacePackage.root)}`;\n }\n } else {\n for (const packageName of manifest.frameworkFileLinkPackages ?? []) {\n overrides[packageName] = frameworkInfo.version;\n }\n }\n\n for (const key of manifest.propagatedOverrideKeys ?? []) {\n const version = frameworkOverrides[key];\n if (!version) {\n throw new Error(\n `propagatedOverrideKeys names '${key}' but the framework root pnpm.overrides carries no version for it.`,\n );\n }\n overrides[key] = version;\n }\n\n return Object.fromEntries(Object.entries(overrides).sort(([a], [b]) => a.localeCompare(b)));\n}\n\nfunction buildRootPackageJson(input: {\n slug: string;\n appRoot: string;\n frameworkPath: string | null;\n mode: SkeletonMode;\n}): string {\n const frameworkRootManifest = input.frameworkPath\n ? JSON.parse(readFileSync(resolveFrameworkRootManifestPath(input.frameworkPath), 'utf8')) as { packageManager?: string }\n : {};\n\n const manifest: Record<string, unknown> = {\n name: `@${input.slug}/root`,\n version: '1.0.0',\n private: true,\n ...(frameworkRootManifest.packageManager ? { packageManager: frameworkRootManifest.packageManager } : {}),\n scripts: {\n // `run-dev-stack.sh` is only WRITTEN in framework-dev mode; an app-creator\n // manifest pointing at it would ship a `pnpm dev` that fails on a missing\n // file. App-creator runs the workspace members' own dev scripts directly.\n ...(input.mode === SkeletonMode.FRAMEWORK_DEV\n ? {\n dev: 'bash .wildo-saas/dev-framework-scripts/run-dev-stack.sh full',\n 'dev:sync': 'bash .wildo-saas/dev-framework-scripts/sync-engine.sh',\n }\n : { dev: 'pnpm --parallel -r run dev' }),\n build: 'turbo build',\n clean: 'turbo run clean',\n },\n ...(input.frameworkPath\n ? { pnpm: { overrides: buildRootOverrides({ appRoot: input.appRoot, frameworkPath: input.frameworkPath, mode: input.mode }) } }\n : {}),\n devDependencies: {\n '@wildo-ai/external-connectors-models': '*',\n // The compiled agent knowledge (skills, rules, references) `wildo assets sync` delivers into\n // `.claude/` and `.wildo-saas/docs/`. Declared at the ROOT so the CLI resolves it from the\n // application without knowing which workspace member happens to depend on it transitively.\n '@wildo-ai/framework-knowledge': '*',\n '@wildo-ai/platform-config-lib': '*',\n '@wildo-ai/saas-models': '*',\n tsx: '^4.21.0',\n turbo: '^2.8.11',\n },\n };\n return `${JSON.stringify(manifest, null, 2)}\\n`;\n}\n\nfunction buildWorkspaceYaml(): string {\n return [\n 'packages:',\n \" - 'specifications'\",\n \" - 'shared-lib'\",\n \" - 'backend-api'\",\n \" - 'frontend'\",\n ' # The dev companion drop: a GENERATED dist-only delivery (see the app',\n ' # .gitignore); its manifest is a workspace member so its dependencies',\n ' # resolve like every other package.',\n \" - '.wildo-saas/wildo-dev-companion'\",\n ' # The application-creation workbench drop: a launcher, not a delivery. Unlike the',\n ' # companion it carries no dist — in framework-dev mode it runs Vite against the',\n ' # framework source. It is a workspace member so `pnpm --filter` can reach it from',\n ' # the app root, which is what puts it in the dev stack beside everything else.',\n ' #',\n ' # Listed unconditionally, though an APP-CREATOR install never materializes the',\n ' # directory (it has no framework source to run Vite against). That is safe, and',\n ' # measured rather than assumed: a `packages:` entry naming a directory that does',\n ' # not exist is silently ignored — `pnpm install` exits 0, reports no warning, and',\n ' # does not count it among the workspace projects. The companion entry above has',\n ' # relied on the same behaviour for as long as it has existed, since it too is',\n ' # absent until its dist is delivered.',\n \" - '.wildo-saas/application-creation-workbench'\",\n '',\n ].join('\\n');\n}\n\nfunction buildRunDevStack(slug: string): string {\n return `#!/bin/bash\n\n# GENERATED by \\`wildo init\\` (issue #51 T9) — the mode→package dispatch mirrors\n# this application's workspace members. Regenerate by re-running the scaffolder\n# rather than hand-editing the filter lists.\n#\n# \\`full\\` DERIVES its set rather than listing it, and that is the whole point of the\n# mode. An application GROWS workspace members after \\`wildo init\\` — \\`wildo compose\n# add-website\\`, \\`add-technical-doc\\`, \\`add-minion\\`, \\`add-worker-node\\` each append one\n# — and no scenario edits this file. A hand-written list here is therefore a second\n# enumeration of a population somebody else owns, and it drifted exactly that way: a\n# composed documentation portal was a declared service, a workspace member, and an\n# allocated port, and \\`full\\` never started it. Nothing reported that, because an\n# unlisted package simply does not appear.\n#\n# \\`pnpm -r\\` runs \\`dev\\` in every workspace package that HAS one, which is the honest\n# reading of \"the full stack\" and cannot fall behind a scenario. The narrow modes below\n# stay explicit: each names a deliberate subset, so listing is what they are for.\n\nset -u\nset -o pipefail\n\nSCRIPT_DIR=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nMODE=\"\\${1:-full}\"\n\ncase \"$MODE\" in\n full)\n STACK_COMMAND=(\n pnpm --parallel -r\n run dev\n )\n ;;\n backend)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @${slug}/specifications\n --filter @${slug}/shared-lib\n --filter @${slug}/backend-api\n run dev\n )\n ;;\n companion)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @${slug}/specifications\n --filter @${slug}/shared-lib\n --filter @wildo-ai/dev-companion\n run dev\n )\n ;;\n frontend)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @${slug}/main-app\n run dev\n )\n ;;\n # The workbench ALONE, for iterating on the tool itself. It talks to a companion over HTTP\n # rather than importing it, so it runs perfectly well against a companion already started by\n # another mode — and starting it here does not drag the application's stack along.\n workbench)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @wildo-ai/application-creation-workbench\n run dev\n )\n ;;\n *)\n echo \"[dev-stack] Unknown mode: $MODE\"\n echo \"[dev-stack] Expected one of: full, backend, companion, frontend, workbench\"\n exit 1\n ;;\nesac\n\nif [ -f \"$SCRIPT_DIR/sync-engine.sh\" ]; then\n \"$SCRIPT_DIR/sync-engine.sh\" &\n SYNC_PID=$!\n HAS_CLEANED_UP=0\n\n cleanup() {\n if [ \"$HAS_CLEANED_UP\" -eq 1 ]; then\n return\n fi\n HAS_CLEANED_UP=1\n if kill -0 \"$SYNC_PID\" 2>/dev/null; then\n kill \"$SYNC_PID\" 2>/dev/null || true\n wait \"$SYNC_PID\" 2>/dev/null || true\n fi\n }\n\n trap cleanup EXIT INT TERM\nfi\n\n\"\\${STACK_COMMAND[@]}\"\n`;\n}\n\n/**\n * Declare, in every scaffolded workspace package, the engine peers it must SUPPLY (issue #167).\n *\n * A pnpm override rewrites a specifier that some manifest wrote down; it never creates one. A peer\n * nobody declares therefore falls to `autoInstallPeers`, whose resolution is STICKY: correct on a\n * fresh lockfile, and frozen at whatever predates the override otherwise. So an application that\n * does not declare the engine's peers cannot receive a later pin bump — moving a root pin from `^6`\n * to `^7` leaves it on 6 with a warning and no remedy short of deleting its lockfile.\n *\n * Each name is written as `\"*\"`, never a version: the root `pnpm.overrides` block written beside it\n * already carries the pin, so a framework bump reaches the application with no edit here.\n *\n * The name set is READ from the generated `enginePeerClosure` rather than re-derived. That map is\n * produced and gated by `scripts/app-dependency-alignment.mjs`; only the trivial union lookup is\n * repeated here, because this service is compiled TypeScript in another package and cannot import\n * the repository's `.mjs` derivation.\n *\n * Nothing is ever removed — the same restraint the reconciler applies. A template-authored peer that\n * the closure does not require (`ufo`, today) is the application's own declaration, and a shared name\n * is not evidence of shared ownership.\n */\nfunction declareEnginePeersInScaffoldedPackages(input: { appRoot: string; frameworkPath: string }): void {\n const manifestPath = join(input.frameworkPath, OVERRIDES_MANIFEST_RELATIVE);\n if (!existsSync(manifestPath)) return;\n const { enginePeerClosure } = JSON.parse(readFileSync(manifestPath, 'utf8')) as {\n enginePeerClosure?: Record<string, string[]>;\n };\n if (!enginePeerClosure) return;\n\n for (const member of SCAFFOLDED_WORKSPACE_MEMBERS) {\n const packageJsonPath = join(input.appRoot, member, 'package.json');\n if (!existsSync(packageJsonPath)) continue;\n const manifest = JSON.parse(readFileSync(packageJsonPath, 'utf8')) as Record<string, Record<string, string> | unknown>;\n\n const frameworkDependencies = new Set<string>();\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) {\n for (const name of Object.keys((manifest[field] as Record<string, string> | undefined) ?? {})) {\n if (name.startsWith('@wildo-ai/')) frameworkDependencies.add(name);\n }\n }\n const required = new Set<string>();\n for (const dependencyName of frameworkDependencies) {\n for (const peerName of enginePeerClosure[dependencyName] ?? []) required.add(peerName);\n }\n // A name the package already declares as a real dependency needs no peer entry: the override\n // reaches it there.\n for (const field of ['dependencies', 'devDependencies', 'optionalDependencies']) {\n for (const name of Object.keys((manifest[field] as Record<string, string> | undefined) ?? {})) required.delete(name);\n }\n if (required.size === 0) continue;\n\n const peers = { ...((manifest.peerDependencies as Record<string, string> | undefined) ?? {}) };\n for (const name of required) peers[name] = '*';\n manifest.peerDependencies = Object.fromEntries(Object.keys(peers).sort().map((name) => [name, peers[name]]));\n writeFileSync(packageJsonPath, `${JSON.stringify(manifest, null, 2)}\\n`, 'utf8');\n }\n}\n\n/**\n * Seed the application's dependency-exclusion list from the framework's own `deliberatelyExcluded`\n * (issue #222).\n *\n * The list names third-party packages that `wildo align-deps` must NEVER pin to the engine's version\n * because the application's own toolchain owns them — `esbuild` follows vite, `express` follows\n * webpack-dev-server, `mime` follows express, plus astro / docusaurus / jest / tailwindcss /\n * typescript. Each entry was measured against a real collision, not guessed.\n *\n * SEEDED, then APPLICATION-OWNED. The framework's copy is a judgement about a typical application's\n * stack; a real application knows its own better, and it is the one that breaks when the judgement is\n * wrong. The cost is that a later framework exclusion does not reach an existing application — which\n * is the right trade, because the conflict being described is the application's, not the framework's.\n */\nfunction seedDependencyExclusions(input: { appRoot: string; frameworkPath: string }): void {\n const excludedNames = ApplicationDependencyAlignmentService.readFrameworkExclusions(input.frameworkPath);\n if (Object.keys(excludedNames).length === 0) return;\n const targetPath = join(input.appRoot, APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE);\n mkdirSync(dirname(targetPath), { recursive: true });\n writeFileSync(targetPath, `${JSON.stringify({\n 'purpose-note':\n 'Names `wildo align-deps` must never pin to the framework version, because THIS application\\'s '\n + 'toolchain owns them. Seeded at `wildo init` from the framework of the day and yours from here: '\n + 'edit it when your stack needs a major the framework does not pin. A key ending in `*` is a '\n + 'prefix match. The value is the reason, and is never read by any tool — it is for whoever '\n + 'reads this file next.',\n excludedNames,\n }, null, 2)}\\n`, 'utf8');\n}\n\n/** Recursively materialize the template tree into the app root. */\nfunction materializeTemplateTree(input: {\n templateRoot: string;\n appRoot: string;\n mode: SkeletonMode;\n variables: Record<string, unknown>;\n processor: TemplateProcessor;\n}): number {\n let written = 0;\n const walk = (relativeDir: string) => {\n for (const entry of readdirSync(join(input.templateRoot, relativeDir), { withFileTypes: true })) {\n const relativePath = relativeDir ? join(relativeDir, entry.name) : entry.name;\n if (entry.isDirectory()) {\n walk(relativePath);\n continue;\n }\n if (!entry.isFile()) continue;\n\n // Framework-checkout dev-loop files: an app-creator install has no framework\n // scripts to call into, so neither the dev-framework-scripts home nor the\n // supervised dev wrappers (frontend Vite+library watcher, backend-api\n // watcher+runtime supervisor) are materialized there.\n if (\n input.mode === SkeletonMode.APP_CREATOR\n && (\n relativePath.startsWith(join('.wildo-saas', 'dev-framework-scripts'))\n // The workbench drop launches Vite against FRAMEWORK SOURCE, which an app-creator\n // install does not have. Materializing it there would produce a dev-stack member that\n // exits with \"the workbench runs against framework source\" on every start.\n || relativePath.startsWith(join('.wildo-saas', 'application-creation-workbench'))\n || relativePath === join('frontend', 'scripts', 'dev-supervised.sh')\n || relativePath === join('backend-api', 'scripts', 'dev-supervised.sh.hbs')\n )\n ) {\n continue;\n }\n\n let targetRelative = relativePath;\n let content: string | null = null;\n if (entry.name.endsWith('.init.hbs')) {\n // `.init.hbs` marks the INIT-time variant of a file whose later evolution belongs to a\n // service or scenario (e.g. `wildo.saas.config.ts.init.hbs` — the config service owns\n // post-init parametrization). Rendered once here, then never re-templated.\n targetRelative = relativePath.slice(0, -'.init.hbs'.length);\n content = input.processor.processTemplate(relativePath, input.variables);\n } else if (entry.name.endsWith('.hbs')) {\n targetRelative = relativePath.slice(0, -'.hbs'.length);\n content = input.processor.processTemplate(relativePath, input.variables);\n } else if (entry.name === 'gitignore' && relativeDir === '') {\n targetRelative = '.gitignore';\n }\n\n const targetPath = join(input.appRoot, targetRelative);\n mkdirSync(dirname(targetPath), { recursive: true });\n if (content !== null) {\n writeFileSync(targetPath, content, 'utf8');\n } else {\n copyFileSync(join(input.templateRoot, relativePath), targetPath);\n }\n // Keyed on the RENDERED name so a future `*.sh.hbs` template still lands executable.\n if (targetRelative.endsWith('.sh')) chmodSync(targetPath, 0o755);\n written += 1;\n }\n };\n walk('');\n return written;\n}\n\nfunction runStep(input: {\n log: SaasSkeletonOptions['log'];\n label: string;\n command: string;\n args: string[];\n cwd: string;\n}): boolean {\n input.log.info(` ${input.label}…`);\n const result = spawnSync(input.command, input.args, { cwd: input.cwd, stdio: 'inherit' });\n if (result.status !== 0) {\n input.log.warn(` ${input.label} failed (exit ${result.status ?? 'signal'}). Fix and re-run manually.`);\n return false;\n }\n return true;\n}\n\n/**\n * Files the scaffold writes at the APP ROOT. Their presence in the target\n * directory means the scaffold would OVERWRITE an existing project — most\n * dangerously the framework checkout itself, whose root carries every one of\n * these names (`wildo init` run from the monorepo root would clobber the\n * framework's own package.json / pnpm-workspace.yaml / turbo.json).\n */\nconst ROOT_COLLISION_FILES = [\n 'package.json',\n 'pnpm-workspace.yaml',\n 'turbo.json',\n 'wildo.saas.config.ts',\n 'tsconfig.common.json',\n '.gitignore',\n] as const;\n\nexport const SaasSkeletonService = {\n allocatePortBase,\n collectUsedApplicationPorts,\n buildRootOverrides,\n\n scaffold(appRoot: string, options: SaasSkeletonOptions): SaasSkeletonResult {\n const safeName = options.name.replace(/['\"\\\\]/g, '');\n const slug = toSlug(safeName) || 'app';\n const displayName = toDisplayName(safeName || slug) || 'App';\n\n if (options.mode === SkeletonMode.FRAMEWORK_DEV && !options.frameworkPath) {\n throw new Error('framework-dev skeleton mode requires a resolved framework checkout.');\n }\n\n // Refuse a NON-EMPTY target before writing anything: the scaffold is a\n // whole-project materialization, not a merge. Fail-closed here protects the\n // framework checkout root (which carries all of these files) and any\n // half-scaffolded directory from a silent clobber.\n const collisions = ROOT_COLLISION_FILES.filter((file) => existsSync(join(appRoot, file)));\n if (collisions.length > 0) {\n throw new Error(\n `Target directory already contains ${collisions.join(', ')} — refusing to scaffold over an existing project. `\n + 'Run `wildo init` in an empty directory (or delete the partial scaffold first).',\n );\n }\n\n // An EXPLICIT --port-base is validated against the same sibling scan the\n // allocator uses — accepting a colliding base would recreate the exact\n // hand-bootstrap failure the allocator was built to prevent.\n if (options.portBase !== undefined) {\n const used = collectUsedApplicationPorts(options.frameworkPath);\n if (!portBlockIsFree(options.portBase, used)) {\n throw new Error(\n `--port-base ${options.portBase} collides with a sibling application's authored ports `\n + `(block ${options.portBase}-${options.portBase + PORT_BASE_STRIDE - 1} or companion port ${options.portBase + COMPANION_PORT_OFFSET}). `\n + `Next free base: ${allocatePortBase(options.frameworkPath)}.`,\n );\n }\n }\n const portBase = options.portBase ?? allocatePortBase(options.frameworkPath);\n const ports: SkeletonPorts = {\n backend: portBase,\n app: portBase + 1,\n companion: portBase + COMPANION_PORT_OFFSET,\n workbench: portBase + WORKBENCH_PORT_OFFSET,\n };\n\n const templateRoot = options.frameworkPath\n ? join(options.frameworkPath, SKELETON_TEMPLATE_RELATIVE)\n : null;\n if (!templateRoot || !existsSync(templateRoot)) {\n throw new Error(\n 'Application skeleton templates not found'\n + (templateRoot ? ` at ${templateRoot}` : ' (no framework-assets root resolved)')\n + '. The full-skeleton scaffold needs the framework templates: a framework checkout, or a `@wildo-ai/wildo-cli` '\n + 'installed from npm (which ships them). Use --config-only to write only wildo.saas.config.ts.',\n );\n }\n\n const variables = {\n slug,\n displayName,\n backendPort: ports.backend,\n appPort: ports.app,\n companionPort: ports.companion,\n workbenchPort: ports.workbench,\n // Mode conditionals inside `.hbs` templates ({{#if isFrameworkDev}}): framework-dev\n // renders engine-source aliasing/tsconfig-paths/dev-supervision; app-creator renders\n // the standalone shape (published packages, plain vite dev).\n isFrameworkDev: options.mode === SkeletonMode.FRAMEWORK_DEV,\n };\n\n const processor = new TemplateProcessor(templateRoot);\n let filesWritten = materializeTemplateTree({\n templateRoot,\n appRoot,\n mode: options.mode,\n variables,\n processor,\n });\n\n // `.claude/` is framework-delivered in framework-dev mode (materialized by `wildo fwk\n // dev-skills`, synchronized on framework update) — ignoring it avoids duplicating the\n // compiled knowledge product in git. App-creator applications COMMIT their `.claude`, so\n // the block is mode-conditional rather than part of the template gitignore.\n if (options.mode === SkeletonMode.FRAMEWORK_DEV) {\n appendFileSync(\n join(appRoot, '.gitignore'),\n '\\n# Framework-delivered agent knowledge (framework-dev mode only) — materialized by\\n'\n + '# `wildo fwk dev-skills`, synchronized on framework update; never commit in this mode.\\n'\n + '.claude/\\n',\n 'utf8',\n );\n }\n\n writeFileSync(join(appRoot, 'package.json'), buildRootPackageJson({\n slug,\n appRoot,\n frameworkPath: options.frameworkPath,\n mode: options.mode,\n }), 'utf8');\n writeFileSync(join(appRoot, 'pnpm-workspace.yaml'), buildWorkspaceYaml(), 'utf8');\n\n if (options.frameworkPath) {\n declareEnginePeersInScaffoldedPackages({ appRoot, frameworkPath: options.frameworkPath });\n seedDependencyExclusions({ appRoot, frameworkPath: options.frameworkPath });\n }\n\n // Deliver the engine EMAIL CANON (system + engine-resource templates) into the backend's\n // engine tree. System emails are runtime behavior — a fresh app without them has no welcome\n // email, no invitation email, etc. The canon at `templates/saas/i18n/email` is synced from\n // the dogfood (V2-P1 catch-up) and the app owns its copy from here (regenerated/extended by\n // `wildo generate email`).\n const emailCanonRoot = join(options.frameworkPath ?? '', 'templates', 'saas', 'i18n', 'email');\n if (options.frameworkPath && existsSync(emailCanonRoot)) {\n const emailTarget = join(appRoot, 'backend-api', 'src', 'engine', 'email');\n const copyTree = (relativeDir: string) => {\n for (const entry of readdirSync(join(emailCanonRoot, relativeDir), { withFileTypes: true })) {\n const entryRelative = relativeDir ? join(relativeDir, entry.name) : entry.name;\n if (entry.isDirectory()) {\n copyTree(entryRelative);\n } else if (entry.isFile()) {\n const targetPath = join(emailTarget, entryRelative);\n mkdirSync(dirname(targetPath), { recursive: true });\n copyFileSync(join(emailCanonRoot, entryRelative), targetPath);\n filesWritten += 1;\n }\n }\n };\n // The canon's own aggregator files are also shipped by the skeleton tree; the canon copy\n // wins nothing over them (byte-identical), so copying the whole tree is safe.\n copyTree('');\n } else {\n options.log.warn(' Email canon not found — backend system emails will be missing until delivered.');\n }\n const devScriptsDir = join(appRoot, '.wildo-saas', 'dev-framework-scripts');\n if (options.mode === SkeletonMode.FRAMEWORK_DEV) {\n mkdirSync(devScriptsDir, { recursive: true });\n const runDevStackPath = join(devScriptsDir, 'run-dev-stack.sh');\n writeFileSync(runDevStackPath, buildRunDevStack(slug), 'utf8');\n chmodSync(runDevStackPath, 0o755);\n filesWritten += 1;\n }\n filesWritten += 2;\n\n let companionDelivered = false;\n if (options.mode === SkeletonMode.FRAMEWORK_DEV && options.frameworkPath) {\n const deliverScript = join(options.frameworkPath, COMPANION_DELIVER_RELATIVE);\n const result = spawnSync(process.execPath, [\n deliverScript,\n '--framework-root', options.frameworkPath,\n '--app-root', appRoot,\n '--mode', SkeletonMode.FRAMEWORK_DEV,\n ], { stdio: 'inherit' });\n companionDelivered = result.status === 0;\n if (!companionDelivered) {\n options.log.warn(\n ' Companion delivery failed — build @wildo-ai/dev-companion in the framework, then re-run '\n + `node ${COMPANION_DELIVER_RELATIVE} --app-root ${appRoot}`,\n );\n }\n } else if (options.mode === SkeletonMode.APP_CREATOR) {\n /*\n * App-creator delivery is a SHIM, not a dist mirror.\n *\n * `dev-companion-deliver.mjs` hard-links the companion's `dist/` out of a local framework\n * checkout. An app-creator has no checkout — it has the published CLI and a registry — so that\n * path cannot serve this mode. What it CAN do is what every other package in the generated app\n * already does: declare a dependency and let `pnpm install` fetch it.\n *\n * The drop is a WORKSPACE MEMBER (see the `pnpm-workspace.yaml` this skeleton writes), so its\n * dependencies resolve exactly like `specifications/` or `backend-api/`.\n *\n * Why a re-export file rather than repointing `main` into `node_modules`: 31 files in this\n * repository address the drop through the fixed `dist/esm/index.js` layout. Keeping that layout\n * byte-for-byte means no consumer can tell the two delivery modes apart, which is the whole\n * point — a targeted shim beats a 31-file resolution refactor with no lasting architectural\n * gain.\n *\n * Location-sensitivity was ENUMERATED before trusting this, not assumed. The companion has six\n * `import.meta.url` sites; five resolve to files inside its own package and stay correct when\n * that package lives in `node_modules`. The sixth is `dotenv` looking for `../.env` from\n * `dist/esm`, i.e. `dist/.env` — which no delivered drop has ever contained (the drop's `.env`\n * sits at its root), so it is already a no-op and the shim does not regress it.\n */\n const companionVersion = options.frameworkPath !== null\n ? (JSON.parse(\n readFileSync(join(options.frameworkPath, 'wildo-framework.info.json'), 'utf8'),\n ) as { version: string }).version\n : null;\n\n if (companionVersion === null) {\n options.log.warn(\n ' Companion delivery skipped: no framework-assets root is reachable (neither a checkout nor an '\n + 'npm-installed `@wildo-ai/wildo-cli`), so the published `@wildo-ai/dev-companion` version to pin '\n + 'could not be determined.',\n );\n } else {\n const companionDropRoot = join(appRoot, '.wildo-saas', 'wildo-dev-companion');\n mkdirSync(join(companionDropRoot, 'dist', 'esm'), { recursive: true });\n writeFileSync(\n join(companionDropRoot, 'dist', 'esm', 'index.js'),\n [\n '// GENERATED by `wildo init` (app-creator mode). Do not edit.',\n '//',\n '// The companion itself is the published `@wildo-ai/dev-companion` package, installed as a',\n '// dependency of this workspace member. This file exists so the drop keeps the same entry',\n '// layout as a framework-dev delivery, where `dist/` is a hard-linked mirror instead.',\n '//',\n '// `export *` evaluates the module, which is what starts the companion when this file is',\n '// executed by the `start` script.',\n \"export * from '@wildo-ai/dev-companion';\",\n '',\n ].join('\\n'),\n 'utf8',\n );\n writeFileSync(\n join(companionDropRoot, 'package.json'),\n `${JSON.stringify({\n name: `@${slug}/wildo-dev-companion`,\n version: companionVersion,\n description:\n 'Wildo.ai Dev Companion — app-creator delivery. A shim over the published '\n + '@wildo-ai/dev-companion package; generated by `wildo init`, do not edit by hand.',\n private: true,\n type: 'module',\n main: 'dist/esm/index.js',\n scripts: {\n dev: 'bash scripts/dev-supervised.sh',\n start: 'node dist/esm/index.js',\n },\n dependencies: {\n '@wildo-ai/dev-companion': companionVersion,\n },\n }, null, 2)}\\n`,\n 'utf8',\n );\n filesWritten += 2;\n companionDelivered = true;\n }\n }\n\n let installed = false;\n let built = false;\n /*\n * App-creator mode INSTALLS. It used to refuse, because the `@wildo-ai/*` packages a generated\n * application depends on were not all on the registry — four of the thirteen declared for publish\n * had never landed, `saas-specifications` among them, which a generated `specifications/` package\n * depends on directly.\n *\n * All thirteen are published at 1.1.0 as of 2026-08-31 (#151), and the generated manifests pin\n * `*`, so they resolve to it. Measured BEFORE removing the refusal rather than after: a scaffolded\n * app-creator application installs in ~24s with every `@wildo-ai` dependency resolved from the\n * registry.\n *\n * A refusal that outlives its cause is worse than no refusal — it teaches an operator that a\n * working path is broken, and this one named packages that are now present.\n */\n if (options.skipInstall !== true) {\n installed = runStep({ log: options.log, label: 'pnpm install', command: 'pnpm', args: ['install'], cwd: appRoot });\n if (installed) {\n built = runStep({\n log: options.log,\n label: 'build specifications + backend-api',\n command: 'pnpm',\n args: ['--filter', `@${slug}/specifications`, '--filter', `@${slug}/shared-lib`, '--filter', `@${slug}/backend-api`, 'build'],\n cwd: appRoot,\n });\n }\n }\n\n return { slug, ports, filesWritten, companionDelivered, installed, built };\n },\n};\n"]}
1
+ {"version":3,"file":"saas-skeleton.service.js","sourceRoot":"","sources":["../../../../src/services/application/saas-skeleton.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC9H,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAC5H,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,0EAA0E,CAAC;AAClF,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kEAAkE,CAAC;AAEpH;;;;GAIG;AACH,MAAM,CAAN,IAAY,YAcX;AAdD,WAAY,YAAY;IACtB;;;;O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E,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;YACnH,IAAI,SAAS,EAAE,CAAC;gBACd,KAAK,GAAG,OAAO,CAAC;oBACd,GAAG,EAAE,OAAO,CAAC,GAAG;oBAChB,KAAK,EAAE,oCAAoC;oBAC3C,OAAO,EAAE,MAAM;oBACf,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,IAAI,iBAAiB,EAAE,UAAU,EAAE,IAAI,IAAI,aAAa,EAAE,UAAU,EAAE,IAAI,IAAI,cAAc,EAAE,OAAO,CAAC;oBAC7H,GAAG,EAAE,OAAO;iBACb,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC7E,CAAC;CACF,CAAC","sourcesContent":["/**\n * SaasSkeletonService — materialize a full, bootable-after-setup application\n * skeleton from `templates/saas/skeleton/` (issue #51, T1–T10).\n *\n * The template tree carries three file classes:\n * - plain files, copied verbatim (`tsconfig.common.json`, package sources, …);\n * - `*.hbs` files, rendered through the shared Handlebars `TemplateProcessor`\n * with the app identity + ALLOCATED ports (D4: two applications sharing a\n * framework checkout must never collide on ports);\n * - `gitignore`, written as `.gitignore` (a literal dotfile inside the\n * template tree would make git ignore the template's own files).\n *\n * Two files are DERIVED rather than templated, per the T4 rule (\"derived from\n * the framework's current override set, never a frozen copy\"):\n * - the root `package.json` — its `pnpm.overrides` are computed live from\n * `scripts/app-dependency-alignment/propagated-engine-overrides.json`\n * (names) joined with the framework root's `pnpm.overrides` (versions),\n * plus, in framework-developer mode, `file:` links for every\n * `frameworkFileLinkPackages` entry resolved through the framework's own\n * pnpm-workspace;\n * - `.wildo-saas/dev-framework-scripts/run-dev-stack.sh` — its\n * `pnpm --filter` package lists are the scaffolded workspace members.\n *\n * DUAL MODE (D7 — both modes authored from the start). Both are live: the npm\n * publish lane put all twenty declared packages on the registry at 1.1.1 on\n * 2026-08-31, `@wildo-ai/dev-companion` among them, so app-creator mode installs\n * and delivers like any other consumer:\n * - `framework-dev`: `file:` overrides into the checkout, dev-framework\n * scripts installed, companion dist delivered via\n * `scripts/dev-orchestrator/dev-companion-deliver.mjs`;\n * - `app-creator`: `@wildo-ai/*` overrides pinned to the published framework\n * version; the companion drop is a re-export shim over the published\n * `@wildo-ai/dev-companion`, keeping the framework-dev entry layout.\n */\nimport { spawnSync } from 'child_process';\nimport { appendFileSync, copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync, chmodSync } from 'fs';\nimport { dirname, join, relative } from 'path';\nimport { parse as parseYaml } from 'yaml';\nimport { TemplateProcessor } from '~wildo-cli/infrastructure/io/template-processor';\nimport { COMPANION_PORT_OFFSET, WORKBENCH_PORT_OFFSET } from '~wildo-cli/services/application/application-dev-port-offsets';\nimport {\n APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE,\n ApplicationDependencyAlignmentService,\n} from '~wildo-cli/services/application/application-dependency-alignment.service';\nimport {\n ProviderPackageLinksService,\n readFrameworkWorkspacePackages,\n} from '~wildo-cli/services/application/provider-package-links.service';\nimport { resolveFrameworkRootManifestPath } from '~wildo-cli/services/framework/installed-framework-assets.service';\n\n/**\n * The two delivery modes every skeleton artifact is authored for (issue #51 D7).\n * The mode decides the root manifest's dependency story and which dev tooling\n * the scaffold materializes — it never changes the application's own sources.\n */\nexport enum SkeletonMode {\n /**\n * In-repo example app beside the framework checkout: `file:` overrides into\n * the checkout's workspace packages, dev-framework scripts installed, and the\n * companion dist delivered straight from the framework build.\n */\n FRAMEWORK_DEV = 'framework-dev',\n /**\n * Standalone app consuming published `@wildo-ai/*` versions. No framework\n * scripts; the companion arrives as a shim over the published\n * `@wildo-ai/dev-companion` rather than as a hard-linked build mirror. The\n * root `dev` script runs the workspace members' own dev scripts.\n */\n APP_CREATOR = 'app-creator',\n}\n\nexport interface SkeletonPorts {\n backend: number;\n app: number;\n companion: number;\n workbench: number;\n}\n\nexport interface SaasSkeletonOptions {\n name: string;\n frameworkPath: string | null;\n mode: SkeletonMode;\n portBase?: number;\n skipInstall?: boolean;\n log: { info(message: string): void; warn(message: string): void };\n}\n\nexport interface SaasSkeletonResult {\n slug: string;\n ports: SkeletonPorts;\n filesWritten: number;\n companionDelivered: boolean;\n installed: boolean;\n built: boolean;\n}\n\nconst SKELETON_TEMPLATE_RELATIVE = 'templates/saas/skeleton';\nconst OVERRIDES_MANIFEST_RELATIVE = 'scripts/app-dependency-alignment/propagated-engine-overrides.json';\nconst COMPANION_DELIVER_RELATIVE = 'scripts/dev-orchestrator/dev-companion-deliver.mjs';\n/**\n * The workspace members `buildWorkspaceYaml` declares, minus the two GENERATED drops (their\n * manifests are written by their own generators and would overwrite anything injected here).\n * Kept beside that function on purpose: the two lists describe the same scaffold and must move\n * together.\n */\nconst SCAFFOLDED_WORKSPACE_MEMBERS = ['.', 'specifications', 'shared-lib', 'backend-api', 'frontend'] as const;\n\nconst DEFAULT_PORT_BASE = 4241;\nconst PORT_BASE_STRIDE = 10;\n\nfunction toSlug(name: string): string {\n return name\n .trim()\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '');\n}\n\nfunction toDisplayName(name: string): string {\n return name\n .replace(/[-_]+/g, ' ')\n .replace(/\\b\\w/g, c => c.toUpperCase());\n}\n\n/**\n * Allocate the app's port base by scanning every sibling application's AUTHORED\n * port declarations under `<framework>/examples/*` (saas config `defaultPort:`\n * plus infra `port:` values). The next free `PORT_BASE_STRIDE` block above the\n * highest occupied one wins, so a second app lands at 4251 beside Wonder\n * Todos' 4241–4244 instead of silently colliding (the exact failure of the\n * 2026-08-25 hand bootstrap that T8/D4 records).\n */\nfunction allocatePortBase(frameworkPath: string | null): number {\n const used = collectUsedApplicationPorts(frameworkPath);\n // Walk stride-aligned bases upward until BOTH the service block (base..base+stride-1)\n // and the derived companion port (base+offset) are free of every scanned port.\n for (let base = DEFAULT_PORT_BASE; base < 5000; base += PORT_BASE_STRIDE) {\n if (portBlockIsFree(base, used)) {\n return base;\n }\n }\n // Exhaustion must REFUSE, not silently hand back the default base — returning\n // 4241 here would scaffold an app directly onto Wonder Todos' ports, which is\n // the exact collision this allocator exists to prevent.\n throw new Error(\n 'No free application port block found in the 4000-4999 tier (stride 10 + companion offset 100). '\n + 'Pass an explicit --port-base outside the scanned range, or retire an unused sibling application.',\n );\n}\n\n/** True when the whole service block AND both derived tool ports avoid every scanned port. */\nfunction portBlockIsFree(base: number, used: ReadonlySet<number>): boolean {\n const blockPorts = Array.from({ length: PORT_BASE_STRIDE }, (_, i) => base + i);\n return blockPorts.every((port) => !used.has(port))\n && !used.has(base + COMPANION_PORT_OFFSET)\n && !used.has(base + WORKBENCH_PORT_OFFSET);\n}\n\n/** Collect every authored sibling port (saas `defaultPort:` + infra `port:`) in the 4xxx tier. */\nfunction collectUsedApplicationPorts(frameworkPath: string | null): Set<number> {\n const usedPorts: number[] = [];\n if (frameworkPath) {\n const examplesHome = join(frameworkPath, 'examples');\n if (existsSync(examplesHome)) {\n for (const entry of readdirSync(examplesHome, { withFileTypes: true })) {\n if (!entry.isDirectory()) continue;\n const appRoot = join(examplesHome, entry.name);\n for (const candidate of [\n join(appRoot, 'wildo.saas.config.ts'),\n join(appRoot, 'infrastructure/local/wildo.infra.local.config.ts'),\n ]) {\n if (!existsSync(candidate)) continue;\n const source = readFileSync(candidate, 'utf8');\n for (const match of source.matchAll(/(?:defaultPort|port)\\s*:\\s*(\\d{4,5})/g)) {\n usedPorts.push(Number(match[1]));\n }\n }\n }\n }\n }\n return new Set(usedPorts.filter((port) => port >= 4000 && port < 5000));\n}\n\n\ninterface OverridesManifest {\n propagatedOverrideKeys?: string[];\n frameworkFileLinkPackages?: string[];\n}\n\nfunction buildRootOverrides(input: {\n appRoot: string;\n frameworkPath: string;\n mode: SkeletonMode;\n}): Record<string, string> {\n const manifest = JSON.parse(\n readFileSync(join(input.frameworkPath, OVERRIDES_MANIFEST_RELATIVE), 'utf8'),\n ) as OverridesManifest;\n // Through the resolver, never `<root>/package.json`: in an INSTALLED framework-assets root that\n // file is the CLI's own manifest, and the framework root manifest ships beside it under another\n // name (`installed-framework-assets.service.ts`).\n const frameworkRootManifest = JSON.parse(\n readFileSync(resolveFrameworkRootManifestPath(input.frameworkPath), 'utf8'),\n ) as { version?: string; pnpm?: { overrides?: Record<string, string> } };\n const frameworkOverrides = frameworkRootManifest.pnpm?.overrides ?? {};\n const frameworkInfo = JSON.parse(\n readFileSync(join(input.frameworkPath, 'wildo-framework.info.json'), 'utf8'),\n ) as { version: string };\n\n const overrides: Record<string, string> = {};\n\n /*\n * The framework CORE — every application links all of it, so the authored list is the decision.\n * The PROVIDER packages are handled below and are demand-driven: see\n * `ProviderPackageLinksService`. Keeping the two apart is what stops a scaffolded application\n * carrying two hundred `file:` links to packages it never imports (plan D7, issue #334).\n */\n if (input.mode === SkeletonMode.FRAMEWORK_DEV) {\n const workspacePackages = readFrameworkWorkspacePackages(input.frameworkPath);\n for (const packageName of manifest.frameworkFileLinkPackages ?? []) {\n const workspacePackage = workspacePackages.get(packageName);\n if (!workspacePackage) {\n throw new Error(\n `frameworkFileLinkPackages names '${packageName}' but no framework workspace member carries that name — `\n + `fix ${OVERRIDES_MANIFEST_RELATIVE} or the workspace.`,\n );\n }\n overrides[packageName] = `file:${relative(input.appRoot, workspacePackage.root)}`;\n }\n } else {\n for (const packageName of manifest.frameworkFileLinkPackages ?? []) {\n overrides[packageName] = frameworkInfo.version;\n }\n }\n\n /*\n * Provider packages the application ALREADY declares. At `wildo init` this is empty by\n * construction — a fresh scaffold declares no provider — and that is the point: a provider link\n * appears only after `wildo compose add-provider` writes the dependency, and it appears for that\n * provider alone. The same resolution runs again after every `wildo compose`, which is what makes\n * the scenario a single command rather than a scenario plus a hand-written override.\n */\n const providerLinks = ProviderPackageLinksService.resolveProviderOverrides({\n applicationRoot: input.appRoot,\n frameworkWorkspacePackages: input.mode === SkeletonMode.FRAMEWORK_DEV\n ? readFrameworkWorkspacePackages(input.frameworkPath)\n : null,\n frameworkVersion: frameworkInfo.version,\n });\n for (const [packageName, overrideValue] of Object.entries(providerLinks.overrides)) {\n overrides[packageName] = overrideValue;\n }\n\n for (const key of manifest.propagatedOverrideKeys ?? []) {\n const version = frameworkOverrides[key];\n if (!version) {\n throw new Error(\n `propagatedOverrideKeys names '${key}' but the framework root pnpm.overrides carries no version for it.`,\n );\n }\n overrides[key] = version;\n }\n\n return Object.fromEntries(Object.entries(overrides).sort(([a], [b]) => a.localeCompare(b)));\n}\n\nfunction buildRootPackageJson(input: {\n slug: string;\n appRoot: string;\n frameworkPath: string | null;\n mode: SkeletonMode;\n}): string {\n const frameworkRootManifest = input.frameworkPath\n ? JSON.parse(readFileSync(resolveFrameworkRootManifestPath(input.frameworkPath), 'utf8')) as { packageManager?: string }\n : {};\n\n const manifest: Record<string, unknown> = {\n name: `@${input.slug}/root`,\n version: '1.0.0',\n private: true,\n ...(frameworkRootManifest.packageManager ? { packageManager: frameworkRootManifest.packageManager } : {}),\n scripts: {\n // `run-dev-stack.sh` is only WRITTEN in framework-dev mode; an app-creator\n // manifest pointing at it would ship a `pnpm dev` that fails on a missing\n // file. App-creator runs the workspace members' own dev scripts directly.\n ...(input.mode === SkeletonMode.FRAMEWORK_DEV\n ? {\n dev: 'bash .wildo-saas/dev-framework-scripts/run-dev-stack.sh full',\n 'dev:sync': 'bash .wildo-saas/dev-framework-scripts/sync-engine.sh',\n }\n : { dev: 'pnpm --parallel -r run dev' }),\n build: 'turbo build',\n clean: 'turbo run clean',\n },\n ...(input.frameworkPath\n ? { pnpm: { overrides: buildRootOverrides({ appRoot: input.appRoot, frameworkPath: input.frameworkPath, mode: input.mode }) } }\n : {}),\n devDependencies: {\n '@wildo-ai/external-connectors-models': '*',\n // The compiled agent knowledge (skills, rules, references) `wildo assets sync` delivers into\n // `.claude/` and `.wildo-saas/docs/`. Declared at the ROOT so the CLI resolves it from the\n // application without knowing which workspace member happens to depend on it transitively.\n '@wildo-ai/framework-knowledge': '*',\n '@wildo-ai/platform-config-lib': '*',\n '@wildo-ai/saas-models': '*',\n tsx: '^4.21.0',\n turbo: '^2.8.11',\n },\n };\n return `${JSON.stringify(manifest, null, 2)}\\n`;\n}\n\nfunction buildWorkspaceYaml(): string {\n return [\n 'packages:',\n \" - 'specifications'\",\n \" - 'shared-lib'\",\n \" - 'backend-api'\",\n \" - 'frontend'\",\n ' # The dev companion drop: a GENERATED dist-only delivery (see the app',\n ' # .gitignore); its manifest is a workspace member so its dependencies',\n ' # resolve like every other package.',\n \" - '.wildo-saas/wildo-dev-companion'\",\n ' # The application-creation workbench drop: a launcher, not a delivery. Unlike the',\n ' # companion it carries no dist — in framework-dev mode it runs Vite against the',\n ' # framework source. It is a workspace member so `pnpm --filter` can reach it from',\n ' # the app root, which is what puts it in the dev stack beside everything else.',\n ' #',\n ' # Listed unconditionally, though an APP-CREATOR install never materializes the',\n ' # directory (it has no framework source to run Vite against). That is safe, and',\n ' # measured rather than assumed: a `packages:` entry naming a directory that does',\n ' # not exist is silently ignored — `pnpm install` exits 0, reports no warning, and',\n ' # does not count it among the workspace projects. The companion entry above has',\n ' # relied on the same behaviour for as long as it has existed, since it too is',\n ' # absent until its dist is delivered.',\n \" - '.wildo-saas/application-creation-workbench'\",\n '',\n ].join('\\n');\n}\n\nfunction buildRunDevStack(slug: string): string {\n return `#!/bin/bash\n\n# GENERATED by \\`wildo init\\` (issue #51 T9) — the mode→package dispatch mirrors\n# this application's workspace members. Regenerate by re-running the scaffolder\n# rather than hand-editing the filter lists.\n#\n# \\`full\\` DERIVES its set rather than listing it, and that is the whole point of the\n# mode. An application GROWS workspace members after \\`wildo init\\` — \\`wildo compose\n# add-website\\`, \\`add-technical-doc\\`, \\`add-minion\\`, \\`add-worker-node\\` each append one\n# — and no scenario edits this file. A hand-written list here is therefore a second\n# enumeration of a population somebody else owns, and it drifted exactly that way: a\n# composed documentation portal was a declared service, a workspace member, and an\n# allocated port, and \\`full\\` never started it. Nothing reported that, because an\n# unlisted package simply does not appear.\n#\n# \\`pnpm -r\\` runs \\`dev\\` in every workspace package that HAS one, which is the honest\n# reading of \"the full stack\" and cannot fall behind a scenario. The narrow modes below\n# stay explicit: each names a deliberate subset, so listing is what they are for.\n\nset -u\nset -o pipefail\n\nSCRIPT_DIR=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nMODE=\"\\${1:-full}\"\n\ncase \"$MODE\" in\n full)\n STACK_COMMAND=(\n pnpm --parallel -r\n run dev\n )\n ;;\n backend)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @${slug}/specifications\n --filter @${slug}/shared-lib\n --filter @${slug}/backend-api\n run dev\n )\n ;;\n companion)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @${slug}/specifications\n --filter @${slug}/shared-lib\n --filter @wildo-ai/dev-companion\n run dev\n )\n ;;\n frontend)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @${slug}/main-app\n run dev\n )\n ;;\n # The workbench ALONE, for iterating on the tool itself. It talks to a companion over HTTP\n # rather than importing it, so it runs perfectly well against a companion already started by\n # another mode — and starting it here does not drag the application's stack along.\n workbench)\n STACK_COMMAND=(\n pnpm --parallel\n --filter @wildo-ai/application-creation-workbench\n run dev\n )\n ;;\n *)\n echo \"[dev-stack] Unknown mode: $MODE\"\n echo \"[dev-stack] Expected one of: full, backend, companion, frontend, workbench\"\n exit 1\n ;;\nesac\n\nif [ -f \"$SCRIPT_DIR/sync-engine.sh\" ]; then\n \"$SCRIPT_DIR/sync-engine.sh\" &\n SYNC_PID=$!\n HAS_CLEANED_UP=0\n\n cleanup() {\n if [ \"$HAS_CLEANED_UP\" -eq 1 ]; then\n return\n fi\n HAS_CLEANED_UP=1\n if kill -0 \"$SYNC_PID\" 2>/dev/null; then\n kill \"$SYNC_PID\" 2>/dev/null || true\n wait \"$SYNC_PID\" 2>/dev/null || true\n fi\n }\n\n trap cleanup EXIT INT TERM\nfi\n\n\"\\${STACK_COMMAND[@]}\"\n`;\n}\n\n/**\n * Declare, in every scaffolded workspace package, the engine peers it must SUPPLY (issue #167).\n *\n * A pnpm override rewrites a specifier that some manifest wrote down; it never creates one. A peer\n * nobody declares therefore falls to `autoInstallPeers`, whose resolution is STICKY: correct on a\n * fresh lockfile, and frozen at whatever predates the override otherwise. So an application that\n * does not declare the engine's peers cannot receive a later pin bump — moving a root pin from `^6`\n * to `^7` leaves it on 6 with a warning and no remedy short of deleting its lockfile.\n *\n * Each name is written as `\"*\"`, never a version: the root `pnpm.overrides` block written beside it\n * already carries the pin, so a framework bump reaches the application with no edit here.\n *\n * The name set is READ from the generated `enginePeerClosure` rather than re-derived. That map is\n * produced and gated by `scripts/app-dependency-alignment.mjs`; only the trivial union lookup is\n * repeated here, because this service is compiled TypeScript in another package and cannot import\n * the repository's `.mjs` derivation.\n *\n * Nothing is ever removed — the same restraint the reconciler applies. A template-authored peer that\n * the closure does not require (`ufo`, today) is the application's own declaration, and a shared name\n * is not evidence of shared ownership.\n */\nfunction declareEnginePeersInScaffoldedPackages(input: { appRoot: string; frameworkPath: string }): void {\n const manifestPath = join(input.frameworkPath, OVERRIDES_MANIFEST_RELATIVE);\n if (!existsSync(manifestPath)) return;\n const { enginePeerClosure } = JSON.parse(readFileSync(manifestPath, 'utf8')) as {\n enginePeerClosure?: Record<string, string[]>;\n };\n if (!enginePeerClosure) return;\n\n for (const member of SCAFFOLDED_WORKSPACE_MEMBERS) {\n const packageJsonPath = join(input.appRoot, member, 'package.json');\n if (!existsSync(packageJsonPath)) continue;\n const manifest = JSON.parse(readFileSync(packageJsonPath, 'utf8')) as Record<string, Record<string, string> | unknown>;\n\n const frameworkDependencies = new Set<string>();\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) {\n for (const name of Object.keys((manifest[field] as Record<string, string> | undefined) ?? {})) {\n if (name.startsWith('@wildo-ai/')) frameworkDependencies.add(name);\n }\n }\n const required = new Set<string>();\n for (const dependencyName of frameworkDependencies) {\n for (const peerName of enginePeerClosure[dependencyName] ?? []) required.add(peerName);\n }\n // A name the package already declares as a real dependency needs no peer entry: the override\n // reaches it there.\n for (const field of ['dependencies', 'devDependencies', 'optionalDependencies']) {\n for (const name of Object.keys((manifest[field] as Record<string, string> | undefined) ?? {})) required.delete(name);\n }\n if (required.size === 0) continue;\n\n const peers = { ...((manifest.peerDependencies as Record<string, string> | undefined) ?? {}) };\n for (const name of required) peers[name] = '*';\n manifest.peerDependencies = Object.fromEntries(Object.keys(peers).sort().map((name) => [name, peers[name]]));\n writeFileSync(packageJsonPath, `${JSON.stringify(manifest, null, 2)}\\n`, 'utf8');\n }\n}\n\n/**\n * Seed the application's dependency-exclusion list from the framework's own `deliberatelyExcluded`\n * (issue #222).\n *\n * The list names third-party packages that `wildo align-deps` must NEVER pin to the engine's version\n * because the application's own toolchain owns them — `esbuild` follows vite, `express` follows\n * webpack-dev-server, `mime` follows express, plus astro / docusaurus / jest / tailwindcss /\n * typescript. Each entry was measured against a real collision, not guessed.\n *\n * SEEDED, then APPLICATION-OWNED. The framework's copy is a judgement about a typical application's\n * stack; a real application knows its own better, and it is the one that breaks when the judgement is\n * wrong. The cost is that a later framework exclusion does not reach an existing application — which\n * is the right trade, because the conflict being described is the application's, not the framework's.\n */\nfunction seedDependencyExclusions(input: { appRoot: string; frameworkPath: string }): void {\n const excludedNames = ApplicationDependencyAlignmentService.readFrameworkExclusions(input.frameworkPath);\n if (Object.keys(excludedNames).length === 0) return;\n const targetPath = join(input.appRoot, APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE);\n mkdirSync(dirname(targetPath), { recursive: true });\n writeFileSync(targetPath, `${JSON.stringify({\n 'purpose-note':\n 'Names `wildo align-deps` must never pin to the framework version, because THIS application\\'s '\n + 'toolchain owns them. Seeded at `wildo init` from the framework of the day and yours from here: '\n + 'edit it when your stack needs a major the framework does not pin. A key ending in `*` is a '\n + 'prefix match. The value is the reason, and is never read by any tool — it is for whoever '\n + 'reads this file next.',\n excludedNames,\n }, null, 2)}\\n`, 'utf8');\n}\n\n/** Recursively materialize the template tree into the app root. */\nfunction materializeTemplateTree(input: {\n templateRoot: string;\n appRoot: string;\n mode: SkeletonMode;\n variables: Record<string, unknown>;\n processor: TemplateProcessor;\n}): number {\n let written = 0;\n const walk = (relativeDir: string) => {\n for (const entry of readdirSync(join(input.templateRoot, relativeDir), { withFileTypes: true })) {\n const relativePath = relativeDir ? join(relativeDir, entry.name) : entry.name;\n if (entry.isDirectory()) {\n walk(relativePath);\n continue;\n }\n if (!entry.isFile()) continue;\n\n // Framework-checkout dev-loop files: an app-creator install has no framework\n // scripts to call into, so neither the dev-framework-scripts home nor the\n // supervised dev wrappers (frontend Vite+library watcher, backend-api\n // watcher+runtime supervisor) are materialized there.\n if (\n input.mode === SkeletonMode.APP_CREATOR\n && (\n relativePath.startsWith(join('.wildo-saas', 'dev-framework-scripts'))\n // The workbench drop launches Vite against FRAMEWORK SOURCE, which an app-creator\n // install does not have. Materializing it there would produce a dev-stack member that\n // exits with \"the workbench runs against framework source\" on every start.\n || relativePath.startsWith(join('.wildo-saas', 'application-creation-workbench'))\n || relativePath === join('frontend', 'scripts', 'dev-supervised.sh')\n || relativePath === join('backend-api', 'scripts', 'dev-supervised.sh.hbs')\n )\n ) {\n continue;\n }\n\n let targetRelative = relativePath;\n let content: string | null = null;\n if (entry.name.endsWith('.init.hbs')) {\n // `.init.hbs` marks the INIT-time variant of a file whose later evolution belongs to a\n // service or scenario (e.g. `wildo.saas.config.ts.init.hbs` — the config service owns\n // post-init parametrization). Rendered once here, then never re-templated.\n targetRelative = relativePath.slice(0, -'.init.hbs'.length);\n content = input.processor.processTemplate(relativePath, input.variables);\n } else if (entry.name.endsWith('.hbs')) {\n targetRelative = relativePath.slice(0, -'.hbs'.length);\n content = input.processor.processTemplate(relativePath, input.variables);\n } else if (entry.name === 'gitignore' && relativeDir === '') {\n targetRelative = '.gitignore';\n }\n\n const targetPath = join(input.appRoot, targetRelative);\n mkdirSync(dirname(targetPath), { recursive: true });\n if (content !== null) {\n writeFileSync(targetPath, content, 'utf8');\n } else {\n copyFileSync(join(input.templateRoot, relativePath), targetPath);\n }\n // Keyed on the RENDERED name so a future `*.sh.hbs` template still lands executable.\n if (targetRelative.endsWith('.sh')) chmodSync(targetPath, 0o755);\n written += 1;\n }\n };\n walk('');\n return written;\n}\n\nfunction runStep(input: {\n log: SaasSkeletonOptions['log'];\n label: string;\n command: string;\n args: string[];\n cwd: string;\n}): boolean {\n input.log.info(` ${input.label}…`);\n const result = spawnSync(input.command, input.args, { cwd: input.cwd, stdio: 'inherit' });\n if (result.status !== 0) {\n input.log.warn(` ${input.label} failed (exit ${result.status ?? 'signal'}). Fix and re-run manually.`);\n return false;\n }\n return true;\n}\n\n/**\n * Files the scaffold writes at the APP ROOT. Their presence in the target\n * directory means the scaffold would OVERWRITE an existing project — most\n * dangerously the framework checkout itself, whose root carries every one of\n * these names (`wildo init` run from the monorepo root would clobber the\n * framework's own package.json / pnpm-workspace.yaml / turbo.json).\n */\nconst ROOT_COLLISION_FILES = [\n 'package.json',\n 'pnpm-workspace.yaml',\n 'turbo.json',\n 'wildo.saas.config.ts',\n 'tsconfig.common.json',\n '.gitignore',\n] as const;\n\nexport const SaasSkeletonService = {\n allocatePortBase,\n collectUsedApplicationPorts,\n buildRootOverrides,\n\n scaffold(appRoot: string, options: SaasSkeletonOptions): SaasSkeletonResult {\n const safeName = options.name.replace(/['\"\\\\]/g, '');\n const slug = toSlug(safeName) || 'app';\n const displayName = toDisplayName(safeName || slug) || 'App';\n\n if (options.mode === SkeletonMode.FRAMEWORK_DEV && !options.frameworkPath) {\n throw new Error('framework-dev skeleton mode requires a resolved framework checkout.');\n }\n\n // Refuse a NON-EMPTY target before writing anything: the scaffold is a\n // whole-project materialization, not a merge. Fail-closed here protects the\n // framework checkout root (which carries all of these files) and any\n // half-scaffolded directory from a silent clobber.\n const collisions = ROOT_COLLISION_FILES.filter((file) => existsSync(join(appRoot, file)));\n if (collisions.length > 0) {\n throw new Error(\n `Target directory already contains ${collisions.join(', ')} — refusing to scaffold over an existing project. `\n + 'Run `wildo init` in an empty directory (or delete the partial scaffold first).',\n );\n }\n\n // An EXPLICIT --port-base is validated against the same sibling scan the\n // allocator uses — accepting a colliding base would recreate the exact\n // hand-bootstrap failure the allocator was built to prevent.\n if (options.portBase !== undefined) {\n const used = collectUsedApplicationPorts(options.frameworkPath);\n if (!portBlockIsFree(options.portBase, used)) {\n throw new Error(\n `--port-base ${options.portBase} collides with a sibling application's authored ports `\n + `(block ${options.portBase}-${options.portBase + PORT_BASE_STRIDE - 1} or companion port ${options.portBase + COMPANION_PORT_OFFSET}). `\n + `Next free base: ${allocatePortBase(options.frameworkPath)}.`,\n );\n }\n }\n const portBase = options.portBase ?? allocatePortBase(options.frameworkPath);\n const ports: SkeletonPorts = {\n backend: portBase,\n app: portBase + 1,\n companion: portBase + COMPANION_PORT_OFFSET,\n workbench: portBase + WORKBENCH_PORT_OFFSET,\n };\n\n const templateRoot = options.frameworkPath\n ? join(options.frameworkPath, SKELETON_TEMPLATE_RELATIVE)\n : null;\n if (!templateRoot || !existsSync(templateRoot)) {\n throw new Error(\n 'Application skeleton templates not found'\n + (templateRoot ? ` at ${templateRoot}` : ' (no framework-assets root resolved)')\n + '. The full-skeleton scaffold needs the framework templates: a framework checkout, or a `@wildo-ai/wildo-cli` '\n + 'installed from npm (which ships them). Use --config-only to write only wildo.saas.config.ts.',\n );\n }\n\n const variables = {\n slug,\n displayName,\n backendPort: ports.backend,\n appPort: ports.app,\n companionPort: ports.companion,\n workbenchPort: ports.workbench,\n // Mode conditionals inside `.hbs` templates ({{#if isFrameworkDev}}): framework-dev\n // renders engine-source aliasing/tsconfig-paths/dev-supervision; app-creator renders\n // the standalone shape (published packages, plain vite dev).\n isFrameworkDev: options.mode === SkeletonMode.FRAMEWORK_DEV,\n };\n\n const processor = new TemplateProcessor(templateRoot);\n let filesWritten = materializeTemplateTree({\n templateRoot,\n appRoot,\n mode: options.mode,\n variables,\n processor,\n });\n\n // `.claude/` is framework-delivered in framework-dev mode (materialized by `wildo fwk\n // dev-skills`, synchronized on framework update) — ignoring it avoids duplicating the\n // compiled knowledge product in git. App-creator applications COMMIT their `.claude`, so\n // the block is mode-conditional rather than part of the template gitignore.\n if (options.mode === SkeletonMode.FRAMEWORK_DEV) {\n appendFileSync(\n join(appRoot, '.gitignore'),\n '\\n# Framework-delivered agent knowledge (framework-dev mode only) — materialized by\\n'\n + '# `wildo fwk dev-skills`, synchronized on framework update; never commit in this mode.\\n'\n + '.claude/\\n',\n 'utf8',\n );\n }\n\n writeFileSync(join(appRoot, 'package.json'), buildRootPackageJson({\n slug,\n appRoot,\n frameworkPath: options.frameworkPath,\n mode: options.mode,\n }), 'utf8');\n writeFileSync(join(appRoot, 'pnpm-workspace.yaml'), buildWorkspaceYaml(), 'utf8');\n\n if (options.frameworkPath) {\n declareEnginePeersInScaffoldedPackages({ appRoot, frameworkPath: options.frameworkPath });\n seedDependencyExclusions({ appRoot, frameworkPath: options.frameworkPath });\n }\n\n // Deliver the engine EMAIL CANON (system + engine-resource templates) into the backend's\n // engine tree. System emails are runtime behavior — a fresh app without them has no welcome\n // email, no invitation email, etc. The canon at `templates/saas/i18n/email` is synced from\n // the dogfood (V2-P1 catch-up) and the app owns its copy from here (regenerated/extended by\n // `wildo generate email`).\n const emailCanonRoot = join(options.frameworkPath ?? '', 'templates', 'saas', 'i18n', 'email');\n if (options.frameworkPath && existsSync(emailCanonRoot)) {\n const emailTarget = join(appRoot, 'backend-api', 'src', 'engine', 'email');\n const copyTree = (relativeDir: string) => {\n for (const entry of readdirSync(join(emailCanonRoot, relativeDir), { withFileTypes: true })) {\n const entryRelative = relativeDir ? join(relativeDir, entry.name) : entry.name;\n if (entry.isDirectory()) {\n copyTree(entryRelative);\n } else if (entry.isFile()) {\n const targetPath = join(emailTarget, entryRelative);\n mkdirSync(dirname(targetPath), { recursive: true });\n copyFileSync(join(emailCanonRoot, entryRelative), targetPath);\n filesWritten += 1;\n }\n }\n };\n // The canon's own aggregator files are also shipped by the skeleton tree; the canon copy\n // wins nothing over them (byte-identical), so copying the whole tree is safe.\n copyTree('');\n } else {\n options.log.warn(' Email canon not found — backend system emails will be missing until delivered.');\n }\n const devScriptsDir = join(appRoot, '.wildo-saas', 'dev-framework-scripts');\n if (options.mode === SkeletonMode.FRAMEWORK_DEV) {\n mkdirSync(devScriptsDir, { recursive: true });\n const runDevStackPath = join(devScriptsDir, 'run-dev-stack.sh');\n writeFileSync(runDevStackPath, buildRunDevStack(slug), 'utf8');\n chmodSync(runDevStackPath, 0o755);\n filesWritten += 1;\n }\n filesWritten += 2;\n\n let companionDelivered = false;\n if (options.mode === SkeletonMode.FRAMEWORK_DEV && options.frameworkPath) {\n const deliverScript = join(options.frameworkPath, COMPANION_DELIVER_RELATIVE);\n const result = spawnSync(process.execPath, [\n deliverScript,\n '--framework-root', options.frameworkPath,\n '--app-root', appRoot,\n '--mode', SkeletonMode.FRAMEWORK_DEV,\n ], { stdio: 'inherit' });\n companionDelivered = result.status === 0;\n if (!companionDelivered) {\n options.log.warn(\n ' Companion delivery failed — build @wildo-ai/dev-companion in the framework, then re-run '\n + `node ${COMPANION_DELIVER_RELATIVE} --app-root ${appRoot}`,\n );\n }\n } else if (options.mode === SkeletonMode.APP_CREATOR) {\n /*\n * App-creator delivery is a SHIM, not a dist mirror.\n *\n * `dev-companion-deliver.mjs` hard-links the companion's `dist/` out of a local framework\n * checkout. An app-creator has no checkout — it has the published CLI and a registry — so that\n * path cannot serve this mode. What it CAN do is what every other package in the generated app\n * already does: declare a dependency and let `pnpm install` fetch it.\n *\n * The drop is a WORKSPACE MEMBER (see the `pnpm-workspace.yaml` this skeleton writes), so its\n * dependencies resolve exactly like `specifications/` or `backend-api/`.\n *\n * Why a re-export file rather than repointing `main` into `node_modules`: 31 files in this\n * repository address the drop through the fixed `dist/esm/index.js` layout. Keeping that layout\n * byte-for-byte means no consumer can tell the two delivery modes apart, which is the whole\n * point — a targeted shim beats a 31-file resolution refactor with no lasting architectural\n * gain.\n *\n * Location-sensitivity was ENUMERATED before trusting this, not assumed. The companion has six\n * `import.meta.url` sites; five resolve to files inside its own package and stay correct when\n * that package lives in `node_modules`. The sixth is `dotenv` looking for `../.env` from\n * `dist/esm`, i.e. `dist/.env` — which no delivered drop has ever contained (the drop's `.env`\n * sits at its root), so it is already a no-op and the shim does not regress it.\n */\n const companionVersion = options.frameworkPath !== null\n ? (JSON.parse(\n readFileSync(join(options.frameworkPath, 'wildo-framework.info.json'), 'utf8'),\n ) as { version: string }).version\n : null;\n\n if (companionVersion === null) {\n options.log.warn(\n ' Companion delivery skipped: no framework-assets root is reachable (neither a checkout nor an '\n + 'npm-installed `@wildo-ai/wildo-cli`), so the published `@wildo-ai/dev-companion` version to pin '\n + 'could not be determined.',\n );\n } else {\n const companionDropRoot = join(appRoot, '.wildo-saas', 'wildo-dev-companion');\n mkdirSync(join(companionDropRoot, 'dist', 'esm'), { recursive: true });\n writeFileSync(\n join(companionDropRoot, 'dist', 'esm', 'index.js'),\n [\n '// GENERATED by `wildo init` (app-creator mode). Do not edit.',\n '//',\n '// The companion itself is the published `@wildo-ai/dev-companion` package, installed as a',\n '// dependency of this workspace member. This file exists so the drop keeps the same entry',\n '// layout as a framework-dev delivery, where `dist/` is a hard-linked mirror instead.',\n '//',\n '// `export *` evaluates the module, which is what starts the companion when this file is',\n '// executed by the `start` script.',\n \"export * from '@wildo-ai/dev-companion';\",\n '',\n ].join('\\n'),\n 'utf8',\n );\n writeFileSync(\n join(companionDropRoot, 'package.json'),\n `${JSON.stringify({\n name: `@${slug}/wildo-dev-companion`,\n version: companionVersion,\n description:\n 'Wildo.ai Dev Companion — app-creator delivery. A shim over the published '\n + '@wildo-ai/dev-companion package; generated by `wildo init`, do not edit by hand.',\n private: true,\n type: 'module',\n main: 'dist/esm/index.js',\n scripts: {\n dev: 'bash scripts/dev-supervised.sh',\n start: 'node dist/esm/index.js',\n },\n dependencies: {\n '@wildo-ai/dev-companion': companionVersion,\n },\n }, null, 2)}\\n`,\n 'utf8',\n );\n filesWritten += 2;\n companionDelivered = true;\n }\n }\n\n let installed = false;\n let built = false;\n /*\n * App-creator mode INSTALLS. It used to refuse, because the `@wildo-ai/*` packages a generated\n * application depends on were not all on the registry — four of the thirteen declared for publish\n * had never landed, `saas-specifications` among them, which a generated `specifications/` package\n * depends on directly.\n *\n * All thirteen are published at 1.1.0 as of 2026-08-31 (#151), and the generated manifests pin\n * `*`, so they resolve to it. Measured BEFORE removing the refusal rather than after: a scaffolded\n * app-creator application installs in ~24s with every `@wildo-ai` dependency resolved from the\n * registry.\n *\n * A refusal that outlives its cause is worse than no refusal — it teaches an operator that a\n * working path is broken, and this one named packages that are now present.\n */\n if (options.skipInstall !== true) {\n installed = runStep({ log: options.log, label: 'pnpm install', command: 'pnpm', args: ['install'], cwd: appRoot });\n if (installed) {\n built = runStep({\n log: options.log,\n label: 'build specifications + backend-api',\n command: 'pnpm',\n args: ['--filter', `@${slug}/specifications`, '--filter', `@${slug}/shared-lib`, '--filter', `@${slug}/backend-api`, 'build'],\n cwd: appRoot,\n });\n }\n }\n\n return { slug, ports, filesWritten, companionDelivered, installed, built };\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"brand-asset-delivery.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/brand/__tests__/brand-asset-delivery.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
1
+ {"version":3,"file":"brand-asset-delivery.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/brand/__tests__/brand-asset-delivery.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"brand-asset-projection.d.ts","sourceRoot":"","sources":["../../../../../../src/services/brand/brand-asset-projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AA6B/B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,EAAE,EACxB,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,GAC1C,iBAAiB,EAAE,CAUrB"}
1
+ {"version":3,"file":"brand-asset-projection.d.ts","sourceRoot":"","sources":["../../../../src/services/brand/brand-asset-projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AA6B/B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,EAAE,EACxB,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,GAC1C,iBAAiB,EAAE,CAUrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"brand-destination-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/services/brand/brand-destination-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,mDAAmD,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAKzE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB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-destination-utils.d.ts","sourceRoot":"","sources":["../../../../src/services/brand/brand-destination-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,mDAAmD,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAKzE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAKzE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMtD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMrD;AAYD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,gBAAgB,EAAE,EAC1B,OAAO,EAAE,iBAAiB,EAC1B,qBAAqB,EAAE,SAAS,qBAAqB,EAAE,GACtD,gBAAgB,GAAG,SAAS,CA8B9B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAE9D;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAIf;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC,CAmBlB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAExE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,uBAAuB,EAC5B,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAYf"}
@@ -1 +1 @@
1
- {"version":3,"file":"brand-propagation.types.d.ts","sourceRoot":"","sources":["../../../../../../src/services/brand/brand-propagation.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,MAAM,EAAE,gBAAgB,CAAC;IACzB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,kDAAkD;IAClD,QAAQ,IAAI,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACxE"}
1
+ {"version":3,"file":"brand-propagation.types.d.ts","sourceRoot":"","sources":["../../../../src/services/brand/brand-propagation.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,MAAM,EAAE,gBAAgB,CAAC;IACzB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,kDAAkD;IAClD,QAAQ,IAAI,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"brand-ssot-reader.d.ts","sourceRoot":"","sources":["../../../../../../src/services/brand/brand-ssot-reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAQH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAE1F;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAyC,CAAC;AAE9E,mEAAmE;AACnE,eAAO,MAAM,8BAA8B,iCAAiC,CAAC;AAU7E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtE;AA+BD;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAiCtF"}
1
+ {"version":3,"file":"brand-ssot-reader.d.ts","sourceRoot":"","sources":["../../../../src/services/brand/brand-ssot-reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAQH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAE1F;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAyC,CAAC;AAE9E,mEAAmE;AACnE,eAAO,MAAM,8BAA8B,iCAAiC,CAAC;AAU7E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtE;AA+BD;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAiCtF"}
@@ -1 +1 @@
1
- {"version":3,"file":"app-public.destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/brand/destinations/app-public.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAOH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAoB3D,cAAM,oBAAqB,YAAW,2BAA2B;IAC/D,QAAQ,CAAC,GAAG,gBAAgB;IAE5B,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAsD7E;;AAED,wBAA0C"}
1
+ {"version":3,"file":"app-public.destination.d.ts","sourceRoot":"","sources":["../../../../../src/services/brand/destinations/app-public.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAOH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAoB3D,cAAM,oBAAqB,YAAW,2BAA2B;IAC/D,QAAQ,CAAC,GAAG,gBAAgB;IAE5B,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAsD7E;;AAED,wBAA0C"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-app-config.destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/brand/destinations/runtime-app-config.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAQH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAM3D,cAAM,2BAA4B,YAAW,2BAA2B;IACtE,QAAQ,CAAC,GAAG,wBAAwB;IAEpC,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA6B5E;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IA8C7B;;;;OAIG;IACH,OAAO,CAAC,WAAW;CAkBpB;;AAOD,wBAAiD"}
1
+ {"version":3,"file":"runtime-app-config.destination.d.ts","sourceRoot":"","sources":["../../../../../src/services/brand/destinations/runtime-app-config.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAQH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAM3D,cAAM,2BAA4B,YAAW,2BAA2B;IACtE,QAAQ,CAAC,GAAG,wBAAwB;IAEpC,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA6B5E;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IA8C7B;;;;OAIG;IACH,OAAO,CAAC,WAAW;CAkBpB;;AAOD,wBAAiD"}
@@ -1 +1 @@
1
- {"version":3,"file":"technical-doc-static.destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/brand/destinations/technical-doc-static.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAmB3D,cAAM,6BAA8B,YAAW,2BAA2B;IACxE,QAAQ,CAAC,GAAG,0BAA0B;IAEtC,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;YAmB9D,gBAAgB;YAmChB,aAAa;CAkC5B;;AAED,wBAAmD"}
1
+ {"version":3,"file":"technical-doc-static.destination.d.ts","sourceRoot":"","sources":["../../../../../src/services/brand/destinations/technical-doc-static.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAmB3D,cAAM,6BAA8B,YAAW,2BAA2B;IACxE,QAAQ,CAAC,GAAG,0BAA0B;IAEtC,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;YAmB9D,gBAAgB;YAmChB,aAAa;CAkC5B;;AAED,wBAAmD"}
@@ -1 +1 @@
1
- {"version":3,"file":"website-og.destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/brand/destinations/website-og.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAiB3D,cAAM,oBAAqB,YAAW,2BAA2B;IAC/D,QAAQ,CAAC,GAAG,gBAAgB;IAE5B,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA8B5E;;;;;;OAMG;YACW,cAAc;CAsB7B;;AAED,wBAA0C"}
1
+ {"version":3,"file":"website-og.destination.d.ts","sourceRoot":"","sources":["../../../../../src/services/brand/destinations/website-og.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAiB3D,cAAM,oBAAqB,YAAW,2BAA2B;IAC/D,QAAQ,CAAC,GAAG,gBAAgB;IAE5B,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA8B5E;;;;;;OAMG;YACW,cAAc;CAsB7B;;AAED,wBAA0C"}
@@ -1 +1 @@
1
- {"version":3,"file":"website-public.destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/brand/destinations/website-public.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAQH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AA0B3D,cAAM,wBAAyB,YAAW,2BAA2B;IACnE,QAAQ,CAAC,GAAG,oBAAoB;IAEhC,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA4D5E;;;;;OAKG;YACW,mBAAmB;CAuClC;;AAED,wBAA8C"}
1
+ {"version":3,"file":"website-public.destination.d.ts","sourceRoot":"","sources":["../../../../../src/services/brand/destinations/website-public.destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAQH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AA0B3D,cAAM,wBAAyB,YAAW,2BAA2B;IACnE,QAAQ,CAAC,GAAG,oBAAoB;IAEhC,QAAQ,IAAI,MAAM;IAIZ,OAAO,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA4D5E;;;;;OAKG;YACW,mBAAmB;CAuClC;;AAED,wBAA8C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=durable-state-classification.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"durable-state-classification.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/catalog/__tests__/durable-state-classification.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,93 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { PlatformDataServices, InfraDeploymentType } from '../../../services/data-services/data-services.schemas.js';
3
+ import { DurableStateClass, INFRA_SERVICE_CATALOG, IRREPLACEABLE_INFRA_SERVICES, STATEFUL_INFRA_SERVICES, } from '../../../services/catalog/service-catalog.schemas.js';
4
+ /**
5
+ * The recovery classification exists to answer ONE question a backup mechanism has to ask before it
6
+ * can be written: which volumes hold something nothing else in the world has.
7
+ *
8
+ * Its whole value is being TOTAL. A backup set that is a hand-kept list is wrong the first time a
9
+ * store is added and silent about it — measured: `mongot` landed 2026-08-27 and the inventory in
10
+ * issue #8, taken 2026-08-14, does not know it exists. So these pins guard totality and the
11
+ * derivation, not the individual verdicts, which are judgements recorded at their entries.
12
+ */
13
+ describe('DurableStateClass — every service in the catalog is classified', () => {
14
+ /*
15
+ * The Record type already makes an unclassified service a compile error. This is the runtime
16
+ * half: a `durableState` present but malformed (an empty reason, a class outside the enum) type-
17
+ * checks under a widened cast and would sail through, and the reason is the part a human reads.
18
+ */
19
+ it('classifies every catalogued service with a class and a non-empty reason', () => {
20
+ const entries = Object.values(INFRA_SERVICE_CATALOG);
21
+ expect(entries.length).toBeGreaterThan(0);
22
+ for (const entry of entries) {
23
+ expect(Object.values(DurableStateClass)).toContain(entry.durableState.class);
24
+ expect(entry.durableState.whatIsLost.trim().length).toBeGreaterThan(0);
25
+ }
26
+ });
27
+ /*
28
+ * States what a person no longer has, not where the bytes were — a reason that names a path stops
29
+ * being useful the moment somebody has to decide whether restoring it matters.
30
+ *
31
+ * This checks for a filesystem PATH and nothing else. A first version also rejected the words
32
+ * "volume", "PVC" and "directory", and it immediately failed on a CORRECT reason: ClamAV's says
33
+ * the signature cache is re-downloaded and that avoiding that download "is the reason it holds a
34
+ * volume at all", which is exactly the context a reader needs. Banning a vocabulary rather than a
35
+ * shape fires on good prose, and a pin that fires on good prose gets edited away.
36
+ */
37
+ it('states the loss from the consumer side, never as a filesystem path', () => {
38
+ for (const entry of Object.values(INFRA_SERVICE_CATALOG)) {
39
+ expect(entry.durableState.whatIsLost).not.toMatch(/(^|\s)\/(data|var|mnt|srv)\//);
40
+ }
41
+ });
42
+ });
43
+ describe('IRREPLACEABLE_INFRA_SERVICES — the backup set is derived', () => {
44
+ /*
45
+ * The four stores whose loss is permanent. Named explicitly because getting this set WRONG is the
46
+ * whole failure mode: too small and something unrecoverable is skipped, too large and the effort
47
+ * is spent equally on a virus-signature cache.
48
+ */
49
+ it('is exactly the stores nothing else can reproduce', () => {
50
+ expect([...IRREPLACEABLE_INFRA_SERVICES].sort()).toEqual(['immudb', 'minio', 'mongodb', 'postgresql', 'rabbitmq'].sort());
51
+ });
52
+ /*
53
+ * RabbitMQ is the member most likely to be dropped by someone reading the list as "the databases".
54
+ * It holds the SIEM delivery dead-letter queue — audit events the application already ACCEPTED and
55
+ * has not yet delivered — which exist nowhere else once the queue is gone.
56
+ */
57
+ it('includes the broker, whose DLQ holds accepted-but-undelivered audit events', () => {
58
+ expect(IRREPLACEABLE_INFRA_SERVICES).toContain('rabbitmq');
59
+ });
60
+ /*
61
+ * The three exclusions, each on its own recorded reason rather than by omission. Asserting the
62
+ * CLASS rather than just absence from the set is what catches an entry silently reclassified to
63
+ * make a future backup job smaller.
64
+ */
65
+ it('excludes the rebuildable index and the operational caches, on their stated grounds', () => {
66
+ expect(INFRA_SERVICE_CATALOG[PlatformDataServices.MONGOT].durableState.class)
67
+ .toBe(DurableStateClass.REBUILDABLE);
68
+ expect(INFRA_SERVICE_CATALOG[PlatformDataServices.VALKEY].durableState.class)
69
+ .toBe(DurableStateClass.OPERATIONAL);
70
+ expect(INFRA_SERVICE_CATALOG[PlatformDataServices.CLAMAV].durableState.class)
71
+ .toBe(DurableStateClass.OPERATIONAL);
72
+ for (const name of ['mongot', 'valkey', 'clamav']) {
73
+ expect(IRREPLACEABLE_INFRA_SERVICES).not.toContain(name);
74
+ }
75
+ });
76
+ /*
77
+ * The two axes must not collapse into each other. Every service here is STATEFUL, so a reader can
78
+ * easily conclude the classification is redundant with `deploymentType` — it is not, and this pin
79
+ * is what says so: statefulness asks "does it need a volume" (all eight, yes), recovery asks "does
80
+ * anything else still have it" (five, no).
81
+ */
82
+ it('is a STRICT subset of the stateful set — the two axes are not the same question', () => {
83
+ expect(STATEFUL_INFRA_SERVICES.length).toBe(Object.values(INFRA_SERVICE_CATALOG).length);
84
+ expect(IRREPLACEABLE_INFRA_SERVICES.length).toBeLessThan(STATEFUL_INFRA_SERVICES.length);
85
+ for (const name of IRREPLACEABLE_INFRA_SERVICES) {
86
+ expect(STATEFUL_INFRA_SERVICES).toContain(name);
87
+ }
88
+ for (const entry of Object.values(INFRA_SERVICE_CATALOG)) {
89
+ expect(entry.deploymentType).toBe(InfraDeploymentType.STATEFUL);
90
+ }
91
+ });
92
+ });
93
+ //# sourceMappingURL=durable-state-classification.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"durable-state-classification.test.js","sourceRoot":"","sources":["../../../../../src/services/catalog/__tests__/durable-state-classification.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AACpH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,qDAAqD,CAAC;AAE7D;;;;;;;;GAQG;AAEH,QAAQ,CAAC,gEAAgE,EAAE,GAAG,EAAE;IAC9E;;;;OAIG;IACH,EAAE,CAAC,yEAAyE,EAAE,GAAG,EAAE;QACjF,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CA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E,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, expect, it } from 'vitest';\nimport { PlatformDataServices, InfraDeploymentType } from '~wildo-cli/services/data-services/data-services.schemas';\nimport {\n DurableStateClass,\n INFRA_SERVICE_CATALOG,\n IRREPLACEABLE_INFRA_SERVICES,\n STATEFUL_INFRA_SERVICES,\n} from '~wildo-cli/services/catalog/service-catalog.schemas';\n\n/**\n * The recovery classification exists to answer ONE question a backup mechanism has to ask before it\n * can be written: which volumes hold something nothing else in the world has.\n *\n * Its whole value is being TOTAL. A backup set that is a hand-kept list is wrong the first time a\n * store is added and silent about it — measured: `mongot` landed 2026-08-27 and the inventory in\n * issue #8, taken 2026-08-14, does not know it exists. So these pins guard totality and the\n * derivation, not the individual verdicts, which are judgements recorded at their entries.\n */\n\ndescribe('DurableStateClass — every service in the catalog is classified', () => {\n /*\n * The Record type already makes an unclassified service a compile error. This is the runtime\n * half: a `durableState` present but malformed (an empty reason, a class outside the enum) type-\n * checks under a widened cast and would sail through, and the reason is the part a human reads.\n */\n it('classifies every catalogued service with a class and a non-empty reason', () => {\n const entries = Object.values(INFRA_SERVICE_CATALOG);\n expect(entries.length).toBeGreaterThan(0);\n\n for (const entry of entries) {\n expect(Object.values(DurableStateClass)).toContain(entry.durableState.class);\n expect(entry.durableState.whatIsLost.trim().length).toBeGreaterThan(0);\n }\n });\n\n /*\n * States what a person no longer has, not where the bytes were — a reason that names a path stops\n * being useful the moment somebody has to decide whether restoring it matters.\n *\n * This checks for a filesystem PATH and nothing else. A first version also rejected the words\n * \"volume\", \"PVC\" and \"directory\", and it immediately failed on a CORRECT reason: ClamAV's says\n * the signature cache is re-downloaded and that avoiding that download \"is the reason it holds a\n * volume at all\", which is exactly the context a reader needs. Banning a vocabulary rather than a\n * shape fires on good prose, and a pin that fires on good prose gets edited away.\n */\n it('states the loss from the consumer side, never as a filesystem path', () => {\n for (const entry of Object.values(INFRA_SERVICE_CATALOG)) {\n expect(entry.durableState.whatIsLost).not.toMatch(/(^|\\s)\\/(data|var|mnt|srv)\\//);\n }\n });\n});\n\ndescribe('IRREPLACEABLE_INFRA_SERVICES — the backup set is derived', () => {\n /*\n * The four stores whose loss is permanent. Named explicitly because getting this set WRONG is the\n * whole failure mode: too small and something unrecoverable is skipped, too large and the effort\n * is spent equally on a virus-signature cache.\n */\n it('is exactly the stores nothing else can reproduce', () => {\n expect([...IRREPLACEABLE_INFRA_SERVICES].sort()).toEqual(\n ['immudb', 'minio', 'mongodb', 'postgresql', 'rabbitmq'].sort(),\n );\n });\n\n /*\n * RabbitMQ is the member most likely to be dropped by someone reading the list as \"the databases\".\n * It holds the SIEM delivery dead-letter queue — audit events the application already ACCEPTED and\n * has not yet delivered — which exist nowhere else once the queue is gone.\n */\n it('includes the broker, whose DLQ holds accepted-but-undelivered audit events', () => {\n expect(IRREPLACEABLE_INFRA_SERVICES).toContain('rabbitmq');\n });\n\n /*\n * The three exclusions, each on its own recorded reason rather than by omission. Asserting the\n * CLASS rather than just absence from the set is what catches an entry silently reclassified to\n * make a future backup job smaller.\n */\n it('excludes the rebuildable index and the operational caches, on their stated grounds', () => {\n expect(INFRA_SERVICE_CATALOG[PlatformDataServices.MONGOT].durableState.class)\n .toBe(DurableStateClass.REBUILDABLE);\n expect(INFRA_SERVICE_CATALOG[PlatformDataServices.VALKEY].durableState.class)\n .toBe(DurableStateClass.OPERATIONAL);\n expect(INFRA_SERVICE_CATALOG[PlatformDataServices.CLAMAV].durableState.class)\n .toBe(DurableStateClass.OPERATIONAL);\n\n for (const name of ['mongot', 'valkey', 'clamav']) {\n expect(IRREPLACEABLE_INFRA_SERVICES).not.toContain(name);\n }\n });\n\n /*\n * The two axes must not collapse into each other. Every service here is STATEFUL, so a reader can\n * easily conclude the classification is redundant with `deploymentType` — it is not, and this pin\n * is what says so: statefulness asks \"does it need a volume\" (all eight, yes), recovery asks \"does\n * anything else still have it\" (five, no).\n */\n it('is a STRICT subset of the stateful set — the two axes are not the same question', () => {\n expect(STATEFUL_INFRA_SERVICES.length).toBe(Object.values(INFRA_SERVICE_CATALOG).length);\n expect(IRREPLACEABLE_INFRA_SERVICES.length).toBeLessThan(STATEFUL_INFRA_SERVICES.length);\n\n for (const name of IRREPLACEABLE_INFRA_SERVICES) {\n expect(STATEFUL_INFRA_SERVICES).toContain(name);\n }\n for (const entry of Object.values(INFRA_SERVICE_CATALOG)) {\n expect(entry.deploymentType).toBe(InfraDeploymentType.STATEFUL);\n }\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"service-address-resolver.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/catalog/__tests__/service-address-resolver.service.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"service-address-resolver.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/catalog/__tests__/service-address-resolver.service.test.ts"],"names":[],"mappings":""}
@@ -60,7 +60,7 @@ describe('ServiceAddressResolver — backingServices overrides', () => {
60
60
  url: 'http://127.0.0.1:27117',
61
61
  });
62
62
  });
63
- it('keeps catalog container name at CONTAINER_INTERNAL but honors authored port', () => {
63
+ it('dials the data-network ALIAS at CONTAINER_INTERNAL but honors authored port', () => {
64
64
  const backingServices = {
65
65
  [BackingServiceKind.MONGODB]: {
66
66
  source: BackingServiceSource.SELF,
@@ -71,12 +71,32 @@ describe('ServiceAddressResolver — backingServices overrides', () => {
71
71
  };
72
72
  const ctx = ServiceAddressResolver.fromEnvironment(makeLocalEnv({ backingServices }), AddressPerspective.CONTAINER_INTERNAL);
73
73
  const addresses = ServiceAddressResolver.resolve(ctx);
74
- // Container DNS must remain the catalog container name (`mongodb`)
75
- // because that is the only name the compose network can resolve.
74
+ /*
75
+ * The host is the ALIAS, not the catalog container name.
76
+ *
77
+ * This assertion previously read `mongodb`, on the stated grounds that the
78
+ * container name is "the only name the compose network can resolve". That
79
+ * premise was false once `wildo-host-access` became an ICC-disabled publish
80
+ * bridge: every service that declares `ports:` is attached to it, so a
81
+ * platform service and the backing service it calls share TWO networks, and
82
+ * Docker's embedded DNS answers the container name with the host-access
83
+ * address — which that bridge then refuses to carry. Measured on a live
84
+ * stack: apps-manager resolved `mongodb` to 172.27.0.6 (host-access) while
85
+ * the reachable address was 172.19.0.2 (wildo-data-mongo), and every
86
+ * containerised platform service restart-looped on server selection.
87
+ *
88
+ * `mongodb-internal` is registered on the data segment ONLY, so it cannot
89
+ * resolve to the blocked bridge. The compose template declares it beside the
90
+ * service's `networks:` entry; this assertion is the other half of that pair
91
+ * and both must move together.
92
+ *
93
+ * The PORT half of the original test is unchanged and still the point: an
94
+ * authored port is honored while the host is framework-owned.
95
+ */
76
96
  expect(addresses.infra.mongodb).toEqual({
77
- host: 'mongodb',
97
+ host: 'mongodb-internal',
78
98
  port: 27117,
79
- url: 'http://mongodb:27117',
99
+ url: 'http://mongodb-internal:27117',
80
100
  });
81
101
  });
82
102
  it('parses authored S3 endpoint into host+port for MinIO', () => {