@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":"flag-utils.test.d.ts","sourceRoot":"","sources":["../../../../../../src/kernel/__tests__/flag-utils.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"flag-utils.test.d.ts","sourceRoot":"","sources":["../../../../src/kernel/__tests__/flag-utils.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.test.d.ts","sourceRoot":"","sources":["../../../../../../src/kernel/__tests__/hooks.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"hooks.test.d.ts","sourceRoot":"","sources":["../../../../src/kernel/__tests__/hooks.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/base-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG5F,8BAAsB,WAAW;IAC/B,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAEpC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAEzD;;;;;;;OAOG;cACa,MAAM,CAAC,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC;YA4B5E,oBAAoB;IA+BlC;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAUlE"}
1
+ {"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../../src/kernel/base-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG5F,8BAAsB,WAAW;IAC/B,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAEpC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAEzD;;;;;;;OAOG;cACa,MAAM,CAAC,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC;YA4B5E,oBAAoB;IA+BlC;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAUlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiBH,wBAAgB,WAAW,IAAI,MAAM,CAsBpC;AAED,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAsF/C"}
1
+ {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/kernel/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiBH,wBAAgB,WAAW,IAAI,MAAM,CAsBpC;AAED,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,C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AC,IAAI,EAAE,mBAAmB,GAAG,WAAW,EAAE;IAM9D,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,GAAG,CAAC,eAAe,EAAE,WAAW,EAAE,CAAC;IAU7E,cAAc,IAAI,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC;CAG3C"}
@@ -131,6 +131,10 @@ export class CommandRegistry {
131
131
  // so outside an app workspace there is nothing to dial.
132
132
  case CommandCategory.Context:
133
133
  return gate.scope >= WorkspaceScope.SAAS_APP;
134
+ // Docs — the application's OWN customer documentation portal, published
135
+ // by its OWN dev companion into its OWN generated tree.
136
+ case CommandCategory.Docs:
137
+ return gate.scope >= WorkspaceScope.SAAS_APP;
134
138
  case CommandCategory.Fwk:
135
139
  return gate.hasFrameworkWorkspace;
136
140
  /*
@@ -177,6 +181,8 @@ export class CommandRegistry {
177
181
  return 'This Registry command requires a SaaS application (it reads/writes the app source or lockfile). Navigate to a directory containing wildo.saas.config.ts and ensure `moduleRegistries` is authored in it. (Auth/read verbs — `login`/`logout`/`whoami`/`info`/`search`/`ping` — run from anywhere.)';
178
182
  case CommandCategory.Context:
179
183
  return 'Context commands read the application\'s dev companion, so they need a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';
184
+ case CommandCategory.Docs:
185
+ return 'Docs commands publish and inspect the application\'s own customer documentation, so they need a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';
180
186
  case CommandCategory.Fwk:
181
187
  return 'Framework commands are only available inside the Wildo framework repository.';
182
188
  // See the exhaustiveness note on `isCategoryAvailable` — same trap, same guard.
@@ -1 +1 @@
1
- {"version":3,"file":"command-registry.js","sourceRoot":"","sources":["../../../../../src/kernel/command-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAA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,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC,CAChE,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAyB;QACrC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkC,CAAC;QAC1D,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;YAClD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACF","sourcesContent":["/**\n * CommandRegistry — discover and resolve commands.\n *\n * Scope gating ensures commands are only available when the workspace scope\n * meets the minimum requirement for each command category.\n */\n\nimport { glob } from 'glob';\nimport { pathToFileURL } from 'node:url';\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport { BaseCommand } from './base-command';\nimport { CommandCategory } from './types';\nimport type { CommandMeta } from './types';\n\nexport interface CategoryGateContext {\n scope: WorkspaceScope;\n /**\n * True when the caller's cwd is inside a framework workspace discovered by\n * `wildo-framework.info.json` (mirror of\n * `cliContext.hasFrameworkWorkspace` / `resolvedHomes.framework.isInFrameworkWorkspace`).\n *\n * Used exclusively to gate `CommandCategory.Fwk`, which is only meaningful\n * when the user is actually developing the framework itself.\n */\n hasFrameworkWorkspace: boolean;\n preferences: unknown | null;\n}\n\nexport interface ResolveResult {\n command: BaseCommand;\n remainingArgs: string[];\n}\n\nexport interface ResolveError {\n error: string;\n}\n\nexport class CommandRegistry {\n private commands = new Map<string, BaseCommand>();\n private aliases = new Map<string, string>();\n\n register(command: BaseCommand): void {\n const name = command.meta.name;\n\n // Fail-fast on name clash. Two commands registering the same name\n // is a build-time bug — the silent `Map.set` would have masked it\n // and the second loaded module would have shadowed the first\n // depending on `glob` traversal order (i.e. non-deterministic).\n const existingByName = this.commands.get(name);\n if (existingByName && existingByName !== command) {\n throw new Error(\n `[kernel] command name clash: \"${name}\" is registered by both ` +\n `${existingByName.constructor.name} and ${command.constructor.name}. ` +\n 'Rename one of the commands.',\n );\n }\n this.commands.set(name, command);\n\n for (const alias of command.meta.aliases ?? []) {\n // Aliases must not collide with another command name nor with\n // an alias already pointing somewhere else. A clash is a build-\n // time bug — left silent it would mean `wildo <alias>` resolves\n // to whichever command was loaded last (non-deterministic across\n // OSes due to filesystem traversal order).\n const conflictingCommand = this.commands.get(alias);\n if (conflictingCommand && conflictingCommand.meta.name !== name) {\n throw new Error(\n `[kernel] alias clash: \"${alias}\" (from ${command.constructor.name}) ` +\n `collides with command \"${conflictingCommand.meta.name}\". ` +\n 'Choose a different alias.',\n );\n }\n const existingAliasTarget = this.aliases.get(alias);\n if (existingAliasTarget !== undefined && existingAliasTarget !== name) {\n throw new Error(\n `[kernel] alias clash: \"${alias}\" is already registered for ` +\n `command \"${existingAliasTarget}\" but ${command.constructor.name} ` +\n `(name: \"${name}\") tried to register it too. Choose a different alias.`,\n );\n }\n this.aliases.set(alias, name);\n }\n }\n\n async discover(commandsDir: string): Promise<void> {\n const patterns = ['**/*.command.js', '**/*.command.ts'];\n const discovered = await Promise.all(\n patterns.map(pattern => glob(pattern, { cwd: commandsDir, absolute: true })),\n );\n const files = Array.from(new Set(discovered.flat()));\n\n for (const file of files) {\n const fileUrl = pathToFileURL(file).href;\n const mod = await import(fileUrl);\n const CommandClass = mod.default;\n\n if (!CommandClass) {\n console.warn(`[kernel] ${file}: no default export — skipping`);\n continue;\n }\n\n const instance: unknown = typeof CommandClass === 'function'\n ? new CommandClass()\n : CommandClass;\n\n if (instance instanceof BaseCommand) {\n this.register(instance);\n } else {\n console.warn(`[kernel] ${file}: default export is not a BaseCommand — skipping`);\n }\n }\n }\n\n resolve(rawArgs: string[]): ResolveResult | ResolveError {\n if (rawArgs.length === 0) {\n return { error: 'No command specified. Run \"wildo help\" for available commands.' };\n }\n\n for (let length = rawArgs.length; length > 0; length--) {\n const candidate = rawArgs.slice(0, length).join(' ');\n\n const direct = this.commands.get(candidate);\n if (direct) {\n return { command: direct, remainingArgs: rawArgs.slice(length) };\n }\n\n const aliasTarget = this.aliases.get(candidate);\n if (aliasTarget) {\n const aliased = this.commands.get(aliasTarget);\n if (aliased) {\n return { command: aliased, remainingArgs: rawArgs.slice(length) };\n }\n }\n }\n\n return {\n error: `Unknown command: \"${rawArgs[0]}\". Run \"wildo help\" for available commands.`,\n };\n }\n\n isCategoryAvailable(category: CommandCategory, gate: CategoryGateContext): boolean {\n switch (category) {\n case CommandCategory.Core:\n return true;\n // Slice 6 / F-21 — `Config` raised from \"always available\" to\n // SAAS_APP. Every config command (`config sync`, `config validate`,\n // `config reapply-declaration`) reads from `wildo.saas.config.ts`\n // and writes into `<saasRoot>/.wildo-saas/`. Surfacing them in\n // `wildo help` outside an app root produced a UX cliff: the\n // command appeared available, then failed at execution with \"no\n // saasRoot found\". Gating at the registry now keeps `wildo help`\n // honest. The redundant per-command `if (!saasRoot)` defensive\n // checks are intentionally LEFT IN PLACE as belt-and-suspenders\n // — a future registry regression cannot silently flip the\n // contract behind the command's back.\n case CommandCategory.Config:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n case CommandCategory.Local:\n case CommandCategory.Remote:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n case CommandCategory.Dev:\n case CommandCategory.Website:\n case CommandCategory.Generate:\n case CommandCategory.Market:\n case CommandCategory.Brand:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n // Registry — most verbs are app-scoped (`add` / `update` /\n // `remove` / `publish` / `repair-lockfile` / `lockfile-smoke`\n // act on the SaaS app source + lockfile, default SAAS_APP). The\n // workspace-independent verbs (`login` / `logout` / `whoami` /\n // `info` / `search` / `ping`) override via\n // `meta.minimumScope: WorkspaceScope.UNINITIALIZED` so they run\n // even on a fresh install before any machine-prefs file exists\n // (5th-pass H1 — `login` is the bootstrap step).\n case CommandCategory.Registry:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n // Context — every command talks to the application's OWN dev companion,\n // so outside an app workspace there is nothing to dial.\n case CommandCategory.Context:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n case CommandCategory.Fwk:\n return gate.hasFrameworkWorkspace;\n /*\n * Exhaustiveness assert, added after it was needed: `CommandCategory.Context` landed in the\n * enum and this switch silently fell through to `undefined` — the command registered, resolved,\n * and then reported `undefined` as its unavailability reason, because `noImplicitReturns` is off\n * repo-wide and a `: boolean` function may fall out of a switch unnoticed. The twin switch in\n * `getUnavailabilityMessage` failed the same way in the same commit-in-progress. With this, the\n * NEXT category is a compile error at both sites instead of a runtime \"✖ undefined\".\n */\n default: {\n const unhandled: never = category;\n return unhandled;\n }\n }\n }\n\n getUnavailabilityMessage(category: CommandCategory): string {\n switch (category) {\n case CommandCategory.Core:\n return '';\n case CommandCategory.Config:\n return 'Config commands require a targeted app root. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Local:\n case CommandCategory.Remote:\n return 'This command requires a targeted app root. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Dev:\n case CommandCategory.Website:\n case CommandCategory.Generate:\n return 'This command requires a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Market:\n return 'Market commands require a SaaS application with an authored `marketSpecification`. Navigate to a directory containing wildo.saas.config.ts and ensure `specifications/src/market/` is wired through `companion-exports.ts`.';\n case CommandCategory.Brand:\n return 'Brand commands require a SaaS application. Navigate to a directory containing wildo.saas.config.ts (the brand SSOT lives at `specifications/src/brand/`).';\n case CommandCategory.Registry:\n // 6th-pass M6: this message only surfaces for the\n // SAAS_APP-default Registry verbs (`add` / `update` / `remove`\n // / `publish` / `repair-lockfile` / `lockfile-smoke`). The\n // workspace-independent auth/read verbs (`login` / `logout` /\n // `whoami` / `info` / `search` / `ping`) declare\n // `minimumScope: WorkspaceScope.UNINITIALIZED` and short-circuit\n // past `isCategoryAvailable` in `isCommandAvailable` below, so\n // they never see this text. Wording reflects the SaaS-app\n // subset only.\n return 'This Registry command requires a SaaS application (it reads/writes the app source or lockfile). Navigate to a directory containing wildo.saas.config.ts and ensure `moduleRegistries` is authored in it. (Auth/read verbs — `login`/`logout`/`whoami`/`info`/`search`/`ping` — run from anywhere.)';\n case CommandCategory.Context:\n return 'Context commands read the application\\'s dev companion, so they need a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Fwk:\n return 'Framework commands are only available inside the Wildo framework repository.';\n // See the exhaustiveness note on `isCategoryAvailable` — same trap, same guard.\n default: {\n const unhandled: never = category;\n return unhandled;\n }\n }\n }\n\n isCommandAvailable(command: BaseCommand, gate: CategoryGateContext): boolean {\n // 4th-pass review H2 / 5th-pass H1: `meta.minimumScope`, when\n // present, is the AUTHORITATIVE scope gate — it can both LOOSEN\n // and TIGHTEN the category default. Previously the category gate\n // ran first AND always tightened to `SAAS_APP` for `Registry`, so\n // the auth verbs (`login` / `logout` / `whoami` / `info` / `search`\n // / `ping`) — registry-domain but workspace-independent — couldn't\n // run outside an app workspace despite the JSDoc claim. They now\n // declare `minimumScope: WorkspaceScope.UNINITIALIZED` (the floor\n // of the enum) to opt out of the category's SAAS_APP default.\n //\n // 6th-pass H1 tautology note: `WorkspaceScope.UNINITIALIZED = 0`\n // and `gate.scope` is a non-negative enum value, so the\n // `gate.scope >= command.meta.minimumScope` check below is\n // structurally true whenever `minimumScope === UNINITIALIZED`.\n // The declaration LOOKS like a gate but functions as an explicit\n // \"no scope gate\" override (it short-circuits past the category\n // default). Future readers: don't refactor the `>=` into a\n // strict-equality assuming there's a real check here for those\n // commands. The check IS real for higher floors (e.g. an existing\n // app-scoped command setting `minimumScope: SAAS_APP` would still\n // get a meaningful comparison).\n //\n // `Fwk` category remains an exception: it gates on the boolean\n // `hasFrameworkWorkspace` rather than a scope value, so commands\n // in that category cannot meaningfully use `minimumScope` to\n // loosen — the framework-workspace check still applies.\n if (command.meta.category === CommandCategory.Fwk) {\n if (!gate.hasFrameworkWorkspace) return false;\n if (command.meta.minimumScope !== undefined && gate.scope < command.meta.minimumScope) {\n return false;\n }\n return true;\n }\n if (command.meta.minimumScope !== undefined) {\n return gate.scope >= command.meta.minimumScope;\n }\n return this.isCategoryAvailable(command.meta.category, gate);\n }\n\n getCommandUnavailabilityMessage(command: BaseCommand): string {\n return command.meta.unavailabilityMessage ?? this.getUnavailabilityMessage(command.meta.category);\n }\n\n getAvailableCommands(gate: CategoryGateContext): BaseCommand[] {\n return Array.from(this.commands.values()).filter(\n (cmd) => !cmd.meta.hidden && this.isCommandAvailable(cmd, gate),\n );\n }\n\n getByCategory(gate: CategoryGateContext): Map<CommandCategory, BaseCommand[]> {\n const grouped = new Map<CommandCategory, BaseCommand[]>();\n for (const cmd of this.getAvailableCommands(gate)) {\n const list = grouped.get(cmd.meta.category) ?? [];\n list.push(cmd);\n grouped.set(cmd.meta.category, list);\n }\n return grouped;\n }\n\n getAllCommands(): Map<string, BaseCommand> {\n return new Map(this.commands);\n }\n}\n"]}
1
+ {"version":3,"file":"command-registry.js","sourceRoot":"","sources":["../../../src/kernel/command-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA0B1C,MAAM,OAAO,eA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CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAC9C,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC,CAChE,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAyB;QACrC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkC,CAAC;QAC1D,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;YAClD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACF","sourcesContent":["/**\n * CommandRegistry — discover and resolve commands.\n *\n * Scope gating ensures commands are only available when the workspace scope\n * meets the minimum requirement for each command category.\n */\n\nimport { glob } from 'glob';\nimport { pathToFileURL } from 'node:url';\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport { BaseCommand } from './base-command';\nimport { CommandCategory } from './types';\nimport type { CommandMeta } from './types';\n\nexport interface CategoryGateContext {\n scope: WorkspaceScope;\n /**\n * True when the caller's cwd is inside a framework workspace discovered by\n * `wildo-framework.info.json` (mirror of\n * `cliContext.hasFrameworkWorkspace` / `resolvedHomes.framework.isInFrameworkWorkspace`).\n *\n * Used exclusively to gate `CommandCategory.Fwk`, which is only meaningful\n * when the user is actually developing the framework itself.\n */\n hasFrameworkWorkspace: boolean;\n preferences: unknown | null;\n}\n\nexport interface ResolveResult {\n command: BaseCommand;\n remainingArgs: string[];\n}\n\nexport interface ResolveError {\n error: string;\n}\n\nexport class CommandRegistry {\n private commands = new Map<string, BaseCommand>();\n private aliases = new Map<string, string>();\n\n register(command: BaseCommand): void {\n const name = command.meta.name;\n\n // Fail-fast on name clash. Two commands registering the same name\n // is a build-time bug — the silent `Map.set` would have masked it\n // and the second loaded module would have shadowed the first\n // depending on `glob` traversal order (i.e. non-deterministic).\n const existingByName = this.commands.get(name);\n if (existingByName && existingByName !== command) {\n throw new Error(\n `[kernel] command name clash: \"${name}\" is registered by both ` +\n `${existingByName.constructor.name} and ${command.constructor.name}. ` +\n 'Rename one of the commands.',\n );\n }\n this.commands.set(name, command);\n\n for (const alias of command.meta.aliases ?? []) {\n // Aliases must not collide with another command name nor with\n // an alias already pointing somewhere else. A clash is a build-\n // time bug — left silent it would mean `wildo <alias>` resolves\n // to whichever command was loaded last (non-deterministic across\n // OSes due to filesystem traversal order).\n const conflictingCommand = this.commands.get(alias);\n if (conflictingCommand && conflictingCommand.meta.name !== name) {\n throw new Error(\n `[kernel] alias clash: \"${alias}\" (from ${command.constructor.name}) ` +\n `collides with command \"${conflictingCommand.meta.name}\". ` +\n 'Choose a different alias.',\n );\n }\n const existingAliasTarget = this.aliases.get(alias);\n if (existingAliasTarget !== undefined && existingAliasTarget !== name) {\n throw new Error(\n `[kernel] alias clash: \"${alias}\" is already registered for ` +\n `command \"${existingAliasTarget}\" but ${command.constructor.name} ` +\n `(name: \"${name}\") tried to register it too. Choose a different alias.`,\n );\n }\n this.aliases.set(alias, name);\n }\n }\n\n async discover(commandsDir: string): Promise<void> {\n const patterns = ['**/*.command.js', '**/*.command.ts'];\n const discovered = await Promise.all(\n patterns.map(pattern => glob(pattern, { cwd: commandsDir, absolute: true })),\n );\n const files = Array.from(new Set(discovered.flat()));\n\n for (const file of files) {\n const fileUrl = pathToFileURL(file).href;\n const mod = await import(fileUrl);\n const CommandClass = mod.default;\n\n if (!CommandClass) {\n console.warn(`[kernel] ${file}: no default export — skipping`);\n continue;\n }\n\n const instance: unknown = typeof CommandClass === 'function'\n ? new CommandClass()\n : CommandClass;\n\n if (instance instanceof BaseCommand) {\n this.register(instance);\n } else {\n console.warn(`[kernel] ${file}: default export is not a BaseCommand — skipping`);\n }\n }\n }\n\n resolve(rawArgs: string[]): ResolveResult | ResolveError {\n if (rawArgs.length === 0) {\n return { error: 'No command specified. Run \"wildo help\" for available commands.' };\n }\n\n for (let length = rawArgs.length; length > 0; length--) {\n const candidate = rawArgs.slice(0, length).join(' ');\n\n const direct = this.commands.get(candidate);\n if (direct) {\n return { command: direct, remainingArgs: rawArgs.slice(length) };\n }\n\n const aliasTarget = this.aliases.get(candidate);\n if (aliasTarget) {\n const aliased = this.commands.get(aliasTarget);\n if (aliased) {\n return { command: aliased, remainingArgs: rawArgs.slice(length) };\n }\n }\n }\n\n return {\n error: `Unknown command: \"${rawArgs[0]}\". Run \"wildo help\" for available commands.`,\n };\n }\n\n isCategoryAvailable(category: CommandCategory, gate: CategoryGateContext): boolean {\n switch (category) {\n case CommandCategory.Core:\n return true;\n // Slice 6 / F-21 — `Config` raised from \"always available\" to\n // SAAS_APP. Every config command (`config sync`, `config validate`,\n // `config reapply-declaration`) reads from `wildo.saas.config.ts`\n // and writes into `<saasRoot>/.wildo-saas/`. Surfacing them in\n // `wildo help` outside an app root produced a UX cliff: the\n // command appeared available, then failed at execution with \"no\n // saasRoot found\". Gating at the registry now keeps `wildo help`\n // honest. The redundant per-command `if (!saasRoot)` defensive\n // checks are intentionally LEFT IN PLACE as belt-and-suspenders\n // — a future registry regression cannot silently flip the\n // contract behind the command's back.\n case CommandCategory.Config:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n case CommandCategory.Local:\n case CommandCategory.Remote:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n case CommandCategory.Dev:\n case CommandCategory.Website:\n case CommandCategory.Generate:\n case CommandCategory.Market:\n case CommandCategory.Brand:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n // Registry — most verbs are app-scoped (`add` / `update` /\n // `remove` / `publish` / `repair-lockfile` / `lockfile-smoke`\n // act on the SaaS app source + lockfile, default SAAS_APP). The\n // workspace-independent verbs (`login` / `logout` / `whoami` /\n // `info` / `search` / `ping`) override via\n // `meta.minimumScope: WorkspaceScope.UNINITIALIZED` so they run\n // even on a fresh install before any machine-prefs file exists\n // (5th-pass H1 — `login` is the bootstrap step).\n case CommandCategory.Registry:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n // Context — every command talks to the application's OWN dev companion,\n // so outside an app workspace there is nothing to dial.\n case CommandCategory.Context:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n // Docs — the application's OWN customer documentation portal, published\n // by its OWN dev companion into its OWN generated tree.\n case CommandCategory.Docs:\n return gate.scope >= WorkspaceScope.SAAS_APP;\n case CommandCategory.Fwk:\n return gate.hasFrameworkWorkspace;\n /*\n * Exhaustiveness assert, added after it was needed: `CommandCategory.Context` landed in the\n * enum and this switch silently fell through to `undefined` — the command registered, resolved,\n * and then reported `undefined` as its unavailability reason, because `noImplicitReturns` is off\n * repo-wide and a `: boolean` function may fall out of a switch unnoticed. The twin switch in\n * `getUnavailabilityMessage` failed the same way in the same commit-in-progress. With this, the\n * NEXT category is a compile error at both sites instead of a runtime \"✖ undefined\".\n */\n default: {\n const unhandled: never = category;\n return unhandled;\n }\n }\n }\n\n getUnavailabilityMessage(category: CommandCategory): string {\n switch (category) {\n case CommandCategory.Core:\n return '';\n case CommandCategory.Config:\n return 'Config commands require a targeted app root. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Local:\n case CommandCategory.Remote:\n return 'This command requires a targeted app root. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Dev:\n case CommandCategory.Website:\n case CommandCategory.Generate:\n return 'This command requires a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Market:\n return 'Market commands require a SaaS application with an authored `marketSpecification`. Navigate to a directory containing wildo.saas.config.ts and ensure `specifications/src/market/` is wired through `companion-exports.ts`.';\n case CommandCategory.Brand:\n return 'Brand commands require a SaaS application. Navigate to a directory containing wildo.saas.config.ts (the brand SSOT lives at `specifications/src/brand/`).';\n case CommandCategory.Registry:\n // 6th-pass M6: this message only surfaces for the\n // SAAS_APP-default Registry verbs (`add` / `update` / `remove`\n // / `publish` / `repair-lockfile` / `lockfile-smoke`). The\n // workspace-independent auth/read verbs (`login` / `logout` /\n // `whoami` / `info` / `search` / `ping`) declare\n // `minimumScope: WorkspaceScope.UNINITIALIZED` and short-circuit\n // past `isCategoryAvailable` in `isCommandAvailable` below, so\n // they never see this text. Wording reflects the SaaS-app\n // subset only.\n return 'This Registry command requires a SaaS application (it reads/writes the app source or lockfile). Navigate to a directory containing wildo.saas.config.ts and ensure `moduleRegistries` is authored in it. (Auth/read verbs — `login`/`logout`/`whoami`/`info`/`search`/`ping` — run from anywhere.)';\n case CommandCategory.Context:\n return 'Context commands read the application\\'s dev companion, so they need a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Docs:\n return 'Docs commands publish and inspect the application\\'s own customer documentation, so they need a SaaS application. Navigate to a directory containing wildo.saas.config.ts.';\n case CommandCategory.Fwk:\n return 'Framework commands are only available inside the Wildo framework repository.';\n // See the exhaustiveness note on `isCategoryAvailable` — same trap, same guard.\n default: {\n const unhandled: never = category;\n return unhandled;\n }\n }\n }\n\n isCommandAvailable(command: BaseCommand, gate: CategoryGateContext): boolean {\n // 4th-pass review H2 / 5th-pass H1: `meta.minimumScope`, when\n // present, is the AUTHORITATIVE scope gate — it can both LOOSEN\n // and TIGHTEN the category default. Previously the category gate\n // ran first AND always tightened to `SAAS_APP` for `Registry`, so\n // the auth verbs (`login` / `logout` / `whoami` / `info` / `search`\n // / `ping`) — registry-domain but workspace-independent — couldn't\n // run outside an app workspace despite the JSDoc claim. They now\n // declare `minimumScope: WorkspaceScope.UNINITIALIZED` (the floor\n // of the enum) to opt out of the category's SAAS_APP default.\n //\n // 6th-pass H1 tautology note: `WorkspaceScope.UNINITIALIZED = 0`\n // and `gate.scope` is a non-negative enum value, so the\n // `gate.scope >= command.meta.minimumScope` check below is\n // structurally true whenever `minimumScope === UNINITIALIZED`.\n // The declaration LOOKS like a gate but functions as an explicit\n // \"no scope gate\" override (it short-circuits past the category\n // default). Future readers: don't refactor the `>=` into a\n // strict-equality assuming there's a real check here for those\n // commands. The check IS real for higher floors (e.g. an existing\n // app-scoped command setting `minimumScope: SAAS_APP` would still\n // get a meaningful comparison).\n //\n // `Fwk` category remains an exception: it gates on the boolean\n // `hasFrameworkWorkspace` rather than a scope value, so commands\n // in that category cannot meaningfully use `minimumScope` to\n // loosen — the framework-workspace check still applies.\n if (command.meta.category === CommandCategory.Fwk) {\n if (!gate.hasFrameworkWorkspace) return false;\n if (command.meta.minimumScope !== undefined && gate.scope < command.meta.minimumScope) {\n return false;\n }\n return true;\n }\n if (command.meta.minimumScope !== undefined) {\n return gate.scope >= command.meta.minimumScope;\n }\n return this.isCategoryAvailable(command.meta.category, gate);\n }\n\n getCommandUnavailabilityMessage(command: BaseCommand): string {\n return command.meta.unavailabilityMessage ?? this.getUnavailabilityMessage(command.meta.category);\n }\n\n getAvailableCommands(gate: CategoryGateContext): BaseCommand[] {\n return Array.from(this.commands.values()).filter(\n (cmd) => !cmd.meta.hidden && this.isCommandAvailable(cmd, gate),\n );\n }\n\n getByCategory(gate: CategoryGateContext): Map<CommandCategory, BaseCommand[]> {\n const grouped = new Map<CommandCategory, BaseCommand[]>();\n for (const cmd of this.getAvailableCommands(gate)) {\n const list = grouped.get(cmd.meta.category) ?? [];\n list.push(cmd);\n grouped.set(cmd.meta.category, list);\n }\n return grouped;\n }\n\n getAllCommands(): Map<string, BaseCommand> {\n return new Map(this.commands);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"command-runner.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/command-runner.ts"],"names":[],"mappings":"AAAA;;G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H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAW9C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,cAAc,EACnB,YAAY,GAAE,MAAgD,GAC7D,OAAO,CAOT"}
1
+ {"version":3,"file":"command-scope-utils.d.ts","sourceRoot":"","sources":["../../../src/kernel/command-scope-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAW9C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,cAAc,EACnB,YAAY,GAAE,MAAgD,GAC7D,OAAO,CAOT"}
@@ -1 +1 @@
1
- {"version":3,"file":"flag-utils.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/flag-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAWjE"}
1
+ {"version":3,"file":"flag-utils.d.ts","sourceRoot":"","sources":["../../../src/kernel/flag-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAWjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG1E,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AACnF,MAAM,MAAM,WAAW,GAAG,CAAC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AAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAC3G,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAElG,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAoB;IACvC,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,UAAU,CAAmB;IAErC,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAItC,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAIxC,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAIhC,SAAS,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhE,UAAU,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAMxF,UAAU,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAKxF;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CAsBjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,YAAY,IAAI,MAAM,CAOrC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/kernel/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,YAAY,IAAI,MAAM,CAOrC"}
@@ -59,7 +59,23 @@ export declare enum CommandCategory {
59
59
  * another category by definition.
60
60
  */
61
61
  Context = "context",
62
- Fwk = "fwk"
62
+ Fwk = "fwk",
63
+ /**
64
+ * Docs — publish and inspect the application's own CUSTOMER technical
65
+ * documentation portal (`technical-doc/src/generated/consumer-documentation`
66
+ * and the API reference beside it).
67
+ *
68
+ * The tree is generated, committed, and was reachable by exactly one door: a
69
+ * hand-called `POST /api/companion/technical-doc/publish-managed`. Nothing in
70
+ * `wildo local dev` published, no command existed, and no CI step ran — so
71
+ * the committed tree went stale silently whenever the engine's content module
72
+ * or the application's specifications changed, and the only way to notice was
73
+ * to diff it (issue #275). This category is that missing door.
74
+ *
75
+ * Distinct from `Fwk`, which serves the FRAMEWORK developer's own knowledge
76
+ * artifacts, and from `Website`, which is the marketing site.
77
+ */
78
+ Docs = "docs"
63
79
  }
64
80
  export interface FlagDefinition {
65
81
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/kernel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,IAAI,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AACjJ,OAAO,KAAK,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACzG,OAAO,KAAK,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,MAAM,gCAAgC,GAAG,iCAAiC,CAAC;AACjF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AAMrC,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB;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AE,MAAM,KAAK,IAAI,CAAC;IAC5B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAMD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,WAAW,EAAE,WAAW,CAAC;IACzB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,SAAS,EAAE,gCAAgC,GAAG,IAAI,CAAC;IACnD,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,UAAU,CAAC;IAEvB,GAAG,EAAE,MAAM,CAAC;IAEZ,kFAAkF;IAClF,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAMD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -56,6 +56,22 @@ export var CommandCategory;
56
56
  */
57
57
  CommandCategory["Context"] = "context";
58
58
  CommandCategory["Fwk"] = "fwk";
59
+ /**
60
+ * Docs — publish and inspect the application's own CUSTOMER technical
61
+ * documentation portal (`technical-doc/src/generated/consumer-documentation`
62
+ * and the API reference beside it).
63
+ *
64
+ * The tree is generated, committed, and was reachable by exactly one door: a
65
+ * hand-called `POST /api/companion/technical-doc/publish-managed`. Nothing in
66
+ * `wildo local dev` published, no command existed, and no CI step ran — so
67
+ * the committed tree went stale silently whenever the engine's content module
68
+ * or the application's specifications changed, and the only way to notice was
69
+ * to diff it (issue #275). This category is that missing door.
70
+ *
71
+ * Distinct from `Fwk`, which serves the FRAMEWORK developer's own knowledge
72
+ * artifacts, and from `Website`, which is the marketing site.
73
+ */
74
+ CommandCategory["Docs"] = "docs";
59
75
  })(CommandCategory || (CommandCategory = {}));
60
76
  export const DEFAULT_GLOBAL_FLAGS = {
61
77
  nonInteractive: false,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/kernel/types.ts"],"names":[],"mappings":"AAUA,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAE9E,MAAM,CAAN,IAAY,eAsDX;AAtDD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB;;;;;;OAMG;IACH,oCAAiB,CAAA;IACjB;;;;;;;;;;;;;;;;;;OAkBG;IACH,wCAAqB,CAAA;IACrB;;;;;;;OAOG;IACH,kCAAe,CAAA;IACf;;;;;;OAMG;IACH,sCAAmB,CAAA;IACnB,8BAAW,CAAA;AACb,CAAC,EAtDW,eAAe,KAAf,eAAe,QAsD1B;AA6DD,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,KAAK;CACb,CAAC","sourcesContent":["import type { PlatformEnvironmentConfiguration as _PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { WildoPreferences as _WildoPreferences } from '~wildo-cli/services/context/context.schemas';\nimport type { CliContext as _CliContext } from '~wildo-cli/services/context/context.schemas';\nimport type { CommandRegistry as _CommandRegistry } from '~wildo-cli/kernel/command-registry';\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nexport type PlatformEnvironmentConfiguration = _PlatformEnvironmentConfiguration;\nexport type WildoPreferences = _WildoPreferences;\nexport type CliContext = _CliContext;\n\n// ---------------------------------------------------------------------------\n// Command category — groups commands by domain and determines scope gating\n// ---------------------------------------------------------------------------\n\nexport enum CommandCategory {\n Core = 'core',\n Local = 'local',\n Remote = 'remote',\n Dev = 'dev',\n Website = 'website',\n Config = 'config',\n Generate = 'generate',\n /**\n * Market — drive the market-generation CLI surface against the application's\n * authored `MarketSnapshot` (Phase 4.2). Commands in this category POST to\n * the dev-companion's market routes and require `WorkspaceScope.SAAS_APP`\n * because they are inherently app-scoped (the snapshot lives in the\n * application's `specifications/` package).\n */\n Market = 'market',\n /**\n * Registry — module-registry workstream. The category covers CLI\n * surfaces that read/write `wildo.saas.config.ts > moduleRegistries`,\n * mutate `wildo-saas.lock.json > sections.modules`, add/update/remove\n * module source from the configured registry server, and publish\n * local modules.\n *\n * Scope split:\n * - SAAS-app verbs (category default `WorkspaceScope.SAAS_APP`):\n * `add`, `update`, `remove`, `publish`, `repair-lockfile`,\n * `lockfile-smoke`. They mutate the SaaS app source / lockfile\n * and require an app workspace.\n * - Workspace-independent verbs (declare\n * `minimumScope: WorkspaceScope.UNINITIALIZED` to override the\n * category default): `login`, `logout`, `whoami`, `info`,\n * `search`, `ping`. They operate against the registry server +\n * per-machine credential store and must run from a fresh install\n * where `~/.wildo/preferences.json` doesn't exist yet.\n */\n Registry = 'registry',\n /**\n * Brand — propagate the accepted brand-asset SSOT (the app's\n * `specifications/src/brand/resolved-assets.generated.ts`) to every frontend\n * destination (app / website / docs public dirs, head refs, config). Runs\n * independently of any generation step (a human may supply the logo), so it\n * requires `WorkspaceScope.SAAS_APP` — the SSOT lives in the application's\n * `specifications/` package.\n */\n Brand = 'brand',\n /**\n * Context — the live-context door (issue #252): read-only queries against the\n * running dev companion's introspection behaviors and journey state, for\n * humans AND for tool-bearing coding/research agents working inside the\n * application. Never a mutation verb — anything that writes belongs in\n * another category by definition.\n */\n Context = 'context',\n Fwk = 'fwk',\n}\n\n// ---------------------------------------------------------------------------\n// Flag & Arg definitions — declarative metadata consumed by Commander.js\n// ---------------------------------------------------------------------------\n\nexport interface FlagDefinition {\n /**\n * Flag value kind. `'string[]'` is VARIADIC: Commander collects every\n * following space-separated token into an array (`--units a b c`), and a\n * comma-joined value still works too (`--units a,b,c`) — normalize with\n * `parseCsvFlag` from `~wildo-cli/kernel/flag-utils`. Use it for any flag\n * that legitimately takes multiple values, so extra tokens are captured\n * rather than silently dropped as stray args.\n */\n type: 'boolean' | 'string' | 'number' | 'string[]';\n description: string;\n default?: unknown;\n required?: boolean;\n}\n\nexport interface ArgDefinition {\n name: string;\n description: string;\n required?: boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Prompt definitions — declarative prompts with automatic CLI flag mapping\n// ---------------------------------------------------------------------------\n\nexport interface PromptChoiceDefinition {\n value: string;\n label: string;\n}\n\nexport interface PromptDefinition {\n /** Unique id — used as key in answer files and as the CLI flag name. */\n id: string;\n type: 'input' | 'select' | 'confirm' | 'password';\n message: string;\n choices?: PromptChoiceDefinition[];\n default?: unknown;\n /**\n * Conditional — prompt is skipped when this returns false.\n * Receives the current CommandContext so decisions can depend on prior answers.\n */\n when?: (ctx: CommandContext) => boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Global flags — available on every command\n// ---------------------------------------------------------------------------\n\nexport interface GlobalFlags {\n nonInteractive: boolean;\n answersFile: string | null;\n verbose: boolean;\n quiet: boolean;\n}\n\nexport const DEFAULT_GLOBAL_FLAGS: GlobalFlags = {\n nonInteractive: false,\n answersFile: null,\n verbose: false,\n quiet: false,\n};\n\n// ---------------------------------------------------------------------------\n// CommandMeta — declarative command descriptor (static per command class)\n// ---------------------------------------------------------------------------\n\nexport interface CommandMeta {\n name: string;\n description: string;\n category: CommandCategory;\n /** Optional stricter scope than the category-wide default. */\n minimumScope?: WorkspaceScope;\n /** Optional command-specific unavailability copy. */\n unavailabilityMessage?: string;\n aliases?: string[];\n hidden?: boolean;\n flags?: Record<string, FlagDefinition>;\n args?: ArgDefinition[];\n prompts?: PromptDefinition[];\n}\n\n// ---------------------------------------------------------------------------\n// Logger — structured console output\n// ---------------------------------------------------------------------------\n\nexport interface Logger {\n info: (msg: string) => void;\n success: (msg: string) => void;\n warn: (msg: string) => void;\n error: (msg: string) => void;\n}\n\n// ---------------------------------------------------------------------------\n// CommandContext — enriched context injected into every command's run()\n// ---------------------------------------------------------------------------\n\nexport interface CommandContext {\n args: Record<string, string | undefined>;\n flags: Record<string, unknown>;\n rawArgs: string[];\n\n globalFlags: GlobalFlags;\n /** Parsed answers from --answers file. Keys = prompt ids. */\n answers: Record<string, unknown>;\n\n activeEnv: PlatformEnvironmentConfiguration | null;\n preferences: WildoPreferences | null;\n cliContext: CliContext;\n\n log: Logger;\n\n /** Available to kernel-level commands (e.g. help) for dynamic command listing. */\n registry?: _CommandRegistry;\n}\n\n// ---------------------------------------------------------------------------\n// CommandResult — returned by command's run()\n// ---------------------------------------------------------------------------\n\nexport interface CommandResult {\n success: boolean;\n message?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/kernel/types.ts"],"names":[],"mappings":"AAUA,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAE9E,MAAM,CAAN,IAAY,eAuEX;AAvED,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB;;;;;;OAMG;IACH,oCAAiB,CAAA;IACjB;;;;;;;;;;;;;;;;;;OAkBG;IACH,wCAAqB,CAAA;IACrB;;;;;;;OAOG;IACH,kCAAe,CAAA;IACf;;;;;;OAMG;IACH,sCAAmB,CAAA;IACnB,8BAAW,CAAA;IACX;;;;;;;;;;;;;;OAcG;IACH,gCAAa,CAAA;AAEf,CAAC,EAvEW,eAAe,KAAf,eAAe,QAuE1B;AA6DD,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,KAAK;CACb,CAAC","sourcesContent":["import type { PlatformEnvironmentConfiguration as _PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { WildoPreferences as _WildoPreferences } from '~wildo-cli/services/context/context.schemas';\nimport type { CliContext as _CliContext } from '~wildo-cli/services/context/context.schemas';\nimport type { CommandRegistry as _CommandRegistry } from '~wildo-cli/kernel/command-registry';\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nexport type PlatformEnvironmentConfiguration = _PlatformEnvironmentConfiguration;\nexport type WildoPreferences = _WildoPreferences;\nexport type CliContext = _CliContext;\n\n// ---------------------------------------------------------------------------\n// Command category — groups commands by domain and determines scope gating\n// ---------------------------------------------------------------------------\n\nexport enum CommandCategory {\n Core = 'core',\n Local = 'local',\n Remote = 'remote',\n Dev = 'dev',\n Website = 'website',\n Config = 'config',\n Generate = 'generate',\n /**\n * Market — drive the market-generation CLI surface against the application's\n * authored `MarketSnapshot` (Phase 4.2). Commands in this category POST to\n * the dev-companion's market routes and require `WorkspaceScope.SAAS_APP`\n * because they are inherently app-scoped (the snapshot lives in the\n * application's `specifications/` package).\n */\n Market = 'market',\n /**\n * Registry — module-registry workstream. The category covers CLI\n * surfaces that read/write `wildo.saas.config.ts > moduleRegistries`,\n * mutate `wildo-saas.lock.json > sections.modules`, add/update/remove\n * module source from the configured registry server, and publish\n * local modules.\n *\n * Scope split:\n * - SAAS-app verbs (category default `WorkspaceScope.SAAS_APP`):\n * `add`, `update`, `remove`, `publish`, `repair-lockfile`,\n * `lockfile-smoke`. They mutate the SaaS app source / lockfile\n * and require an app workspace.\n * - Workspace-independent verbs (declare\n * `minimumScope: WorkspaceScope.UNINITIALIZED` to override the\n * category default): `login`, `logout`, `whoami`, `info`,\n * `search`, `ping`. They operate against the registry server +\n * per-machine credential store and must run from a fresh install\n * where `~/.wildo/preferences.json` doesn't exist yet.\n */\n Registry = 'registry',\n /**\n * Brand — propagate the accepted brand-asset SSOT (the app's\n * `specifications/src/brand/resolved-assets.generated.ts`) to every frontend\n * destination (app / website / docs public dirs, head refs, config). Runs\n * independently of any generation step (a human may supply the logo), so it\n * requires `WorkspaceScope.SAAS_APP` — the SSOT lives in the application's\n * `specifications/` package.\n */\n Brand = 'brand',\n /**\n * Context — the live-context door (issue #252): read-only queries against the\n * running dev companion's introspection behaviors and journey state, for\n * humans AND for tool-bearing coding/research agents working inside the\n * application. Never a mutation verb — anything that writes belongs in\n * another category by definition.\n */\n Context = 'context',\n Fwk = 'fwk',\n /**\n * Docs — publish and inspect the application's own CUSTOMER technical\n * documentation portal (`technical-doc/src/generated/consumer-documentation`\n * and the API reference beside it).\n *\n * The tree is generated, committed, and was reachable by exactly one door: a\n * hand-called `POST /api/companion/technical-doc/publish-managed`. Nothing in\n * `wildo local dev` published, no command existed, and no CI step ran — so\n * the committed tree went stale silently whenever the engine's content module\n * or the application's specifications changed, and the only way to notice was\n * to diff it (issue #275). This category is that missing door.\n *\n * Distinct from `Fwk`, which serves the FRAMEWORK developer's own knowledge\n * artifacts, and from `Website`, which is the marketing site.\n */\n Docs = 'docs',\n\n}\n\n// ---------------------------------------------------------------------------\n// Flag & Arg definitions — declarative metadata consumed by Commander.js\n// ---------------------------------------------------------------------------\n\nexport interface FlagDefinition {\n /**\n * Flag value kind. `'string[]'` is VARIADIC: Commander collects every\n * following space-separated token into an array (`--units a b c`), and a\n * comma-joined value still works too (`--units a,b,c`) — normalize with\n * `parseCsvFlag` from `~wildo-cli/kernel/flag-utils`. Use it for any flag\n * that legitimately takes multiple values, so extra tokens are captured\n * rather than silently dropped as stray args.\n */\n type: 'boolean' | 'string' | 'number' | 'string[]';\n description: string;\n default?: unknown;\n required?: boolean;\n}\n\nexport interface ArgDefinition {\n name: string;\n description: string;\n required?: boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Prompt definitions — declarative prompts with automatic CLI flag mapping\n// ---------------------------------------------------------------------------\n\nexport interface PromptChoiceDefinition {\n value: string;\n label: string;\n}\n\nexport interface PromptDefinition {\n /** Unique id — used as key in answer files and as the CLI flag name. */\n id: string;\n type: 'input' | 'select' | 'confirm' | 'password';\n message: string;\n choices?: PromptChoiceDefinition[];\n default?: unknown;\n /**\n * Conditional — prompt is skipped when this returns false.\n * Receives the current CommandContext so decisions can depend on prior answers.\n */\n when?: (ctx: CommandContext) => boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Global flags — available on every command\n// ---------------------------------------------------------------------------\n\nexport interface GlobalFlags {\n nonInteractive: boolean;\n answersFile: string | null;\n verbose: boolean;\n quiet: boolean;\n}\n\nexport const DEFAULT_GLOBAL_FLAGS: GlobalFlags = {\n nonInteractive: false,\n answersFile: null,\n verbose: false,\n quiet: false,\n};\n\n// ---------------------------------------------------------------------------\n// CommandMeta — declarative command descriptor (static per command class)\n// ---------------------------------------------------------------------------\n\nexport interface CommandMeta {\n name: string;\n description: string;\n category: CommandCategory;\n /** Optional stricter scope than the category-wide default. */\n minimumScope?: WorkspaceScope;\n /** Optional command-specific unavailability copy. */\n unavailabilityMessage?: string;\n aliases?: string[];\n hidden?: boolean;\n flags?: Record<string, FlagDefinition>;\n args?: ArgDefinition[];\n prompts?: PromptDefinition[];\n}\n\n// ---------------------------------------------------------------------------\n// Logger — structured console output\n// ---------------------------------------------------------------------------\n\nexport interface Logger {\n info: (msg: string) => void;\n success: (msg: string) => void;\n warn: (msg: string) => void;\n error: (msg: string) => void;\n}\n\n// ---------------------------------------------------------------------------\n// CommandContext — enriched context injected into every command's run()\n// ---------------------------------------------------------------------------\n\nexport interface CommandContext {\n args: Record<string, string | undefined>;\n flags: Record<string, unknown>;\n rawArgs: string[];\n\n globalFlags: GlobalFlags;\n /** Parsed answers from --answers file. Keys = prompt ids. */\n answers: Record<string, unknown>;\n\n activeEnv: PlatformEnvironmentConfiguration | null;\n preferences: WildoPreferences | null;\n cliContext: CliContext;\n\n log: Logger;\n\n /** Available to kernel-level commands (e.g. help) for dynamic command listing. */\n registry?: _CommandRegistry;\n}\n\n// ---------------------------------------------------------------------------\n// CommandResult — returned by command's run()\n// ---------------------------------------------------------------------------\n\nexport interface CommandResult {\n success: boolean;\n message?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/main.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1 +1 @@
1
- {"version":3,"file":"admin-user.module.test.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/domain/credentials/__tests__/admin-user.module.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"admin-user.module.test.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/admin-user.module.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"providers-config.module.test.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/domain/credentials/__tests__/providers-config.module.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"providers-config.module.test.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/providers-config.module.test.ts"],"names":[],"mappings":""}
@@ -5,8 +5,8 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
5
5
  * The load-bearing properties: only the SELECTED providers' secrets are
6
6
  * prompted (an unselected provider contributes nothing), and skipping the whole
7
7
  * selection still completes. Only `@inquirer/prompts` is mocked — the real
8
- * registry-derived `getProviderSelectionCatalog()` drives which secrets each
9
- * provider owns, so this also pins that the catalog resolves real providers.
8
+ * `getProviderSelectionCatalog()`, backed by the COMPOSED provider catalogue, drives which secrets
9
+ * each provider owns, so this also pins that the catalog resolves real providers.
10
10
  */
11
11
  const { checkboxMock, confirmMock, inputMock, passwordMock } = vi.hoisted(() => ({
12
12
  checkboxMock: vi.fn(),
@@ -1 +1 @@
1
- {"version":3,"file":"providers-config.module.test.js","sourceRoot":"","sources":["../../../../../../../../src/modules/domain/credentials/__tests__/providers-config.module.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAG7D;;;;;;;;GAQG;AAEH,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/E,YAAY,EAAE,EAAE,CAAC,EAAE,EAAyB;IAC5C,WAAW,EAAE,EAAE,CAAC,EAAE,EAAwB;IAC1C,SAAS,EAAE,EAAE,CAAC,EAAE,EAA0C;IAC1D,YAAY,EAAE,EAAE,CAAC,EAAE,EAA0C;CAC9D,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE,CAAC,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,yEAAyE;IACzE,SAAS,EAAE;QACT,SAAS,CAAS;QAClB,IAAI,GAAG,WAAoB,CAAC;QAC5B,YAAY,IAAa,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC;KAC9D;CACF,CAAC,CAAC,CAAC;AAEJ,OAAO,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAEhF,SAAS,YAAY;IACnB,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;AAC5E,CAAC;AAED,qFAAqF;AACrF,SAAS,gBA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G,YAAY,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;QACnC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACpC,SAAS;aACN,qBAAqB,CAAC,yBAAyB,CAAC;aAChD,qBAAqB,CAAC,YAAY,CAAC,CAAC;QACvC,YAAY,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,MAAM,kCAAkC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;QAExF,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { afterEach, describe, expect, it, vi } from 'vitest';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * `wildo setup` Step 6/6 — the SELECT-THEN-PROMPT provider credentials flow.\n *\n * The load-bearing properties: only the SELECTED providers' secrets are\n * prompted (an unselected provider contributes nothing), and skipping the whole\n * selection still completes. Only `@inquirer/prompts` is mocked — the real\n * registry-derived `getProviderSelectionCatalog()` drives which secrets each\n * provider owns, so this also pins that the catalog resolves real providers.\n */\n\nconst { checkboxMock, confirmMock, inputMock, passwordMock } = vi.hoisted(() => ({\n checkboxMock: vi.fn<[], Promise<string[]>>(),\n confirmMock: vi.fn<[], Promise<boolean>>(),\n inputMock: vi.fn<[{ message: string }], Promise<string>>(),\n passwordMock: vi.fn<[{ message: string }], Promise<string>>(),\n}));\n\nvi.mock('@inquirer/prompts', () => ({\n checkbox: checkboxMock,\n confirm: confirmMock,\n input: inputMock,\n password: passwordMock,\n // `Separator` is used with `new Separator(...)` to render group headers.\n Separator: class {\n separator: string;\n type = 'separator' as const;\n constructor(text?: string) { this.separator = text ?? '──'; }\n },\n}));\n\nimport { platformProvidersCredentialsModule } from '../providers-config.module';\n\nfunction createLogger(): Logger {\n return { info: vi.fn(), success: vi.fn(), warn: vi.fn(), error: vi.fn() };\n}\n\n/** Resolve each masked secret prompt by the env-var name embedded in its message. */\nfunction passwordByEnvVar(values: Record<string, string>): void {\n passwordMock.mockImplementation(async ({ message }) => {\n const match = Object.keys(values).find((envVar) => message.includes(envVar));\n return match ? values[match] : '';\n });\n}\n\nafterEach(() => {\n vi.clearAllMocks();\n});\n\ndescribe('platformProvidersCredentialsModule — select-then-prompt', () => {\n it('prompts ONLY the selected providers, and nothing for the rest', async () => {\n checkboxMock.mockResolvedValue(['openai', 'stripe']);\n confirmMock.mockResolvedValue(false); // no GitHub org integration\n passwordByEnvVar({\n OPENAI_API_KEY: 'sk-openai-live',\n STRIPE_SECRET_KEY: 'sk_test_secret',\n STRIPE_WEBHOOK_SECRET: 'whsec_test',\n });\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n // Exactly the selected providers' secrets — no ANTHROPIC_API_KEY, no others.\n expect(result.providerEnv).toEqual({\n OPENAI_API_KEY: 'sk-openai-live',\n STRIPE_SECRET_KEY: 'sk_test_secret',\n STRIPE_WEBHOOK_SECRET: 'whsec_test',\n });\n // Three secrets across the two selected providers → three masked prompts.\n expect(passwordMock).toHaveBeenCalledTimes(3);\n for (const call of passwordMock.mock.calls) {\n expect((call[0] as { mask?: boolean }).mask).toBe(true);\n }\n expect(result.githubOrgUrl).toBeUndefined();\n });\n\n it('completes with no provider env when the operator selects nothing', async () => {\n checkboxMock.mockResolvedValue([]);\n confirmMock.mockResolvedValue(false);\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result).toEqual({ providerEnv: undefined });\n expect(passwordMock).not.toHaveBeenCalled();\n });\n\n it('omits an optional secret left blank but keeps the required ones', async () => {\n // Google declares GOOGLE_API_KEY + GOOGLE_OAUTH2_CLIENT_SECRET (both required\n // by its contract); supply one and blank the other to prove blank-skipping.\n checkboxMock.mockResolvedValue(['google']);\n confirmMock.mockResolvedValue(false);\n passwordByEnvVar({ GOOGLE_API_KEY: 'goog-key' }); // OAUTH2 secret resolves to '' → skipped\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result.providerEnv).toEqual({ GOOGLE_API_KEY: 'goog-key' });\n });\n\n it('collects the GitHub organization integration into the github block, not providerEnv', async () => {\n checkboxMock.mockResolvedValue([]);\n confirmMock.mockResolvedValue(true);\n inputMock\n .mockResolvedValueOnce('https://github.com/acme')\n .mockResolvedValueOnce('acme-admin');\n passwordMock.mockResolvedValue('ghp_token');\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result.providerEnv).toBeUndefined();\n expect(result.githubOrgUrl).toBe('https://github.com/acme');\n expect(result.githubAdminUser).toBe('acme-admin');\n expect(result.githubAdminToken).toBe('ghp_token');\n });\n});\n"]}
1
+ {"version":3,"file":"providers-config.module.test.js","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/providers-config.module.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAG7D;;;;;;;;GAQG;AAEH,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/E,YAAY,EAAE,EAAE,CAAC,EAAE,EAAyB;IAC5C,WAAW,EAAE,EAAE,CAAC,EAAE,EAAwB;IAC1C,SAAS,EAAE,EAAE,CAAC,EAAE,EAA0C;IAC1D,YAAY,EAAE,EAAE,CAAC,EAAE,EAA0C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C,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { afterEach, describe, expect, it, vi } from 'vitest';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * `wildo setup` Step 6/6 — the SELECT-THEN-PROMPT provider credentials flow.\n *\n * The load-bearing properties: only the SELECTED providers' secrets are\n * prompted (an unselected provider contributes nothing), and skipping the whole\n * selection still completes. Only `@inquirer/prompts` is mocked — the real\n * `getProviderSelectionCatalog()`, backed by the COMPOSED provider catalogue, drives which secrets\n * each provider owns, so this also pins that the catalog resolves real providers.\n */\n\nconst { checkboxMock, confirmMock, inputMock, passwordMock } = vi.hoisted(() => ({\n checkboxMock: vi.fn<[], Promise<string[]>>(),\n confirmMock: vi.fn<[], Promise<boolean>>(),\n inputMock: vi.fn<[{ message: string }], Promise<string>>(),\n passwordMock: vi.fn<[{ message: string }], Promise<string>>(),\n}));\n\nvi.mock('@inquirer/prompts', () => ({\n checkbox: checkboxMock,\n confirm: confirmMock,\n input: inputMock,\n password: passwordMock,\n // `Separator` is used with `new Separator(...)` to render group headers.\n Separator: class {\n separator: string;\n type = 'separator' as const;\n constructor(text?: string) { this.separator = text ?? '──'; }\n },\n}));\n\nimport { platformProvidersCredentialsModule } from '../providers-config.module';\n\nfunction createLogger(): Logger {\n return { info: vi.fn(), success: vi.fn(), warn: vi.fn(), error: vi.fn() };\n}\n\n/** Resolve each masked secret prompt by the env-var name embedded in its message. */\nfunction passwordByEnvVar(values: Record<string, string>): void {\n passwordMock.mockImplementation(async ({ message }) => {\n const match = Object.keys(values).find((envVar) => message.includes(envVar));\n return match ? values[match] : '';\n });\n}\n\nafterEach(() => {\n vi.clearAllMocks();\n});\n\ndescribe('platformProvidersCredentialsModule — select-then-prompt', () => {\n it('prompts ONLY the selected providers, and nothing for the rest', async () => {\n checkboxMock.mockResolvedValue(['openai', 'stripe']);\n confirmMock.mockResolvedValue(false); // no GitHub org integration\n passwordByEnvVar({\n OPENAI_API_KEY: 'sk-openai-live',\n STRIPE_SECRET_KEY: 'sk_test_secret',\n STRIPE_WEBHOOK_SECRET: 'whsec_test',\n });\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n // Exactly the selected providers' secrets — no ANTHROPIC_API_KEY, no others.\n expect(result.providerEnv).toEqual({\n OPENAI_API_KEY: 'sk-openai-live',\n STRIPE_SECRET_KEY: 'sk_test_secret',\n STRIPE_WEBHOOK_SECRET: 'whsec_test',\n });\n // Three secrets across the two selected providers → three masked prompts.\n expect(passwordMock).toHaveBeenCalledTimes(3);\n for (const call of passwordMock.mock.calls) {\n expect((call[0] as { mask?: boolean }).mask).toBe(true);\n }\n expect(result.githubOrgUrl).toBeUndefined();\n });\n\n it('completes with no provider env when the operator selects nothing', async () => {\n checkboxMock.mockResolvedValue([]);\n confirmMock.mockResolvedValue(false);\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result).toEqual({ providerEnv: undefined });\n expect(passwordMock).not.toHaveBeenCalled();\n });\n\n it('omits an optional secret left blank but keeps the required ones', async () => {\n // Google declares GOOGLE_API_KEY + GOOGLE_OAUTH2_CLIENT_SECRET (both required\n // by its contract); supply one and blank the other to prove blank-skipping.\n checkboxMock.mockResolvedValue(['google']);\n confirmMock.mockResolvedValue(false);\n passwordByEnvVar({ GOOGLE_API_KEY: 'goog-key' }); // OAUTH2 secret resolves to '' → skipped\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result.providerEnv).toEqual({ GOOGLE_API_KEY: 'goog-key' });\n });\n\n it('collects the GitHub organization integration into the github block, not providerEnv', async () => {\n checkboxMock.mockResolvedValue([]);\n confirmMock.mockResolvedValue(true);\n inputMock\n .mockResolvedValueOnce('https://github.com/acme')\n .mockResolvedValueOnce('acme-admin');\n passwordMock.mockResolvedValue('ghp_token');\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result.providerEnv).toBeUndefined();\n expect(result.githubOrgUrl).toBe('https://github.com/acme');\n expect(result.githubAdminUser).toBe('acme-admin');\n expect(result.githubAdminToken).toBe('ghp_token');\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"admin-user.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/admin-user.module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,kBAAkB,EAAE,cAAc,CAiDrF,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CA0BxE"}
1
+ {"version":3,"file":"admin-user.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/admin-user.module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,kBAAkB,EAAE,cAAc,CAiDrF,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CA0BxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/module.types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC"}
1
+ {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/module.types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC"}
@@ -12,20 +12,28 @@ export interface ProvidersModuleCtx {
12
12
  * Rather than marching the operator through every known provider secret (30+
13
13
  * prompts, almost all skipped with Enter), this first presents a grouped
14
14
  * multi-select of the providers the framework knows about — derived entirely
15
- * from the backend provider registry via {@link getProviderSelectionCatalog}
15
+ * from the COMPOSED provider catalogue via {@link getProviderSelectionCatalog}
16
16
  * — and then prompts ONLY the secrets of the providers that were selected.
17
17
  * An unselected provider contributes nothing: no prompt, no env var.
18
18
  *
19
- * Selecting a provider prompts every secret its registry `secretsContract`
20
- * declares: `required` secrets are validated non-empty, optional ones may be
21
- * skipped with Enter. A provider that bundles more than one protocol (e.g.
22
- * Google's LLM key AND its OAuth2 client secret are both `required`) therefore
23
- * prompts both — that is exactly what its contract states is needed to boot.
19
+ * "Composed" rather than "the backend provider registry" is the whole of #329:
20
+ * that registry can by construction only hold the ENGINE's own modules, so a
21
+ * provider shipped as its own package could not be offered here at all — the
22
+ * operator was never prompted for its secret, and the key that never arrived
23
+ * had no visible cause. The catalogue is the engine tier PLUS whatever
24
+ * discovery registered, so a package-shipped provider prompts like any other.
25
+ *
26
+ * Selecting a provider prompts every secret its `secretsContract` declares
27
+ * (a contribution ships the same shape, values-free): `required` secrets are
28
+ * validated non-empty, optional ones may be skipped with Enter. A provider that
29
+ * bundles more than one protocol (e.g. Google's LLM key AND its OAuth2 client
30
+ * secret are both `required`) therefore prompts both — that is exactly what its
31
+ * contract states is needed to boot.
24
32
  *
25
33
  * The GitHub ORGANIZATION integration (org URL + admin user + admin token) is a
26
- * separate concern from any registry provider secret — it lands in the `github`
27
- * block of `secrets.json`, not in `providerEnv` — so it is offered as its own
28
- * gated step after provider selection.
34
+ * separate concern from any provider's own secrets contract — it lands in the
35
+ * `github` block of `secrets.json`, not in `providerEnv` — so it is offered as
36
+ * its own gated step after provider selection.
29
37
  */
30
38
  export declare const platformProvidersCredentialsModule: CommandModule<ProvidersModuleCtx, ProviderKeysInput>;
31
39
  //# sourceMappingURL=providers-config.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers-config.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/providers-config.module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAStD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,kCAAkC,EAAE,aAAa,CAAC,kBAAkB,EAAE,iBAAiB,CA2CnG,CAAC"}
1
+ {"version":3,"file":"providers-config.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/providers-config.module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAStD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,kCAAkC,EAAE,aAAa,CAAC,kBAAkB,EAAE,iBAAiB,CA2CnG,CAAC"}
@@ -23,20 +23,28 @@ const SECRET_PREFIX_HINTS = {
23
23
  * Rather than marching the operator through every known provider secret (30+
24
24
  * prompts, almost all skipped with Enter), this first presents a grouped
25
25
  * multi-select of the providers the framework knows about — derived entirely
26
- * from the backend provider registry via {@link getProviderSelectionCatalog}
26
+ * from the COMPOSED provider catalogue via {@link getProviderSelectionCatalog}
27
27
  * — and then prompts ONLY the secrets of the providers that were selected.
28
28
  * An unselected provider contributes nothing: no prompt, no env var.
29
29
  *
30
- * Selecting a provider prompts every secret its registry `secretsContract`
31
- * declares: `required` secrets are validated non-empty, optional ones may be
32
- * skipped with Enter. A provider that bundles more than one protocol (e.g.
33
- * Google's LLM key AND its OAuth2 client secret are both `required`) therefore
34
- * prompts both — that is exactly what its contract states is needed to boot.
30
+ * "Composed" rather than "the backend provider registry" is the whole of #329:
31
+ * that registry can by construction only hold the ENGINE's own modules, so a
32
+ * provider shipped as its own package could not be offered here at all — the
33
+ * operator was never prompted for its secret, and the key that never arrived
34
+ * had no visible cause. The catalogue is the engine tier PLUS whatever
35
+ * discovery registered, so a package-shipped provider prompts like any other.
36
+ *
37
+ * Selecting a provider prompts every secret its `secretsContract` declares
38
+ * (a contribution ships the same shape, values-free): `required` secrets are
39
+ * validated non-empty, optional ones may be skipped with Enter. A provider that
40
+ * bundles more than one protocol (e.g. Google's LLM key AND its OAuth2 client
41
+ * secret are both `required`) therefore prompts both — that is exactly what its
42
+ * contract states is needed to boot.
35
43
  *
36
44
  * The GitHub ORGANIZATION integration (org URL + admin user + admin token) is a
37
- * separate concern from any registry provider secret — it lands in the `github`
38
- * block of `secrets.json`, not in `providerEnv` — so it is offered as its own
39
- * gated step after provider selection.
45
+ * separate concern from any provider's own secrets contract — it lands in the
46
+ * `github` block of `secrets.json`, not in `providerEnv` — so it is offered as
47
+ * its own gated step after provider selection.
40
48
  */
41
49
  export const platformProvidersCredentialsModule = {
42
50
  id: 'providers',
@@ -121,7 +129,7 @@ async function promptProviderSecret(secret) {
121
129
  }
122
130
  /**
123
131
  * The GitHub organization integration — org URL + admin user + admin token.
124
- * Distinct from the GitHub OAuth2 provider secret in the registry: this feeds
132
+ * Distinct from the GitHub OAuth2 provider's own secret: this feeds
125
133
  * the `github` block of `secrets.json`, not `providerEnv`. Gated behind a
126
134
  * confirm so the three prompts only appear when wanted.
127
135
  */
@@ -1 +1 @@
1
- {"version":3,"file":"providers-config.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/providers-config.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAIlF,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,GAGlC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAM/G;;;;;;;;GAQG;AACH,MAAM,mBAAmB,GAAqC;IAC5D,cAAc,EAAE,KAAK;IACrB,iBAAiB,EAAE,SAAS;IAC5B,cAAc,EAAE,KAAK;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAyD;IACtG,EAAE,EAAE,WAAW;IAEf,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;QAE9C,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;QACvE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAC;QAElH,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC;YACrC,CAAC,CAAC,IAAI,GAAG,CACL,MAAM,QAAQ,CAAS;gBACrB,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,E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G,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;IAC7F,kCAAkC;IAClC,MAAM,gBAAgB,GAAG,CAAC,MAAM,QAAQ,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;IAE9G,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;AAC7D,CAAC","sourcesContent":["import { checkbox, confirm, input, password, Separator } from '@inquirer/prompts';\nimport type { ProviderKeysInput } from '~wildo-cli/modules/domain/credentials/module.types';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport {\n getProviderSelectionCatalog,\n PROVIDER_SELECTION_CATEGORY_TITLE,\n type ProviderSelectionCatalogEntry,\n type ProviderSelectionSecret,\n} from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport { normalizePotentialMultilineSecret } from '~wildo-cli/services/credentials/ci-secrets-adapter.service';\n\nexport interface ProvidersModuleCtx {\n log: Logger;\n}\n\n/**\n * Optional prefix hints for a handful of provider keys, keyed by env-var name.\n *\n * Purely a paste-error catcher (an OpenAI key that does not start with `sk-`\n * is almost certainly wrong) — NOT a semantic decision and NOT a closed\n * vocabulary: env-var names are open provider identifiers, and the value is a\n * format hint, not behavior selection. A key absent from this map is validated\n * for non-emptiness only (when required).\n */\nconst SECRET_PREFIX_HINTS: Readonly<Record<string, string>> = {\n OPENAI_API_KEY: 'sk-',\n ANTHROPIC_API_KEY: 'sk-ant-',\n RESEND_API_KEY: 're_',\n};\n\n/**\n * Step 6/6 of `wildo setup` — provider API keys, email, and integrations.\n *\n * ## Select-then-prompt\n *\n * Rather than marching the operator through every known provider secret (30+\n * prompts, almost all skipped with Enter), this first presents a grouped\n * multi-select of the providers the framework knows about — derived entirely\n * from the backend provider registry via {@link getProviderSelectionCatalog}\n * — and then prompts ONLY the secrets of the providers that were selected.\n * An unselected provider contributes nothing: no prompt, no env var.\n *\n * Selecting a provider prompts every secret its registry `secretsContract`\n * declares: `required` secrets are validated non-empty, optional ones may be\n * skipped with Enter. A provider that bundles more than one protocol (e.g.\n * Google's LLM key AND its OAuth2 client secret are both `required`) therefore\n * prompts both — that is exactly what its contract states is needed to boot.\n *\n * The GitHub ORGANIZATION integration (org URL + admin user + admin token) is a\n * separate concern from any registry provider secret — it lands in the `github`\n * block of `secrets.json`, not in `providerEnv` — so it is offered as its own\n * gated step after provider selection.\n */\nexport const platformProvidersCredentialsModule: CommandModule<ProvidersModuleCtx, ProviderKeysInput> = {\n id: 'providers',\n\n async prompt(ctx): Promise<ProviderKeysInput> {\n const catalog = getProviderSelectionCatalog();\n\n ctx.log.info('\\n OPTIONAL — Provider API keys, email & integrations');\n ctx.log.info(' Select the providers you use (Space to toggle, Enter to confirm). Skip all to configure none.\\n');\n\n const selectedRefs = catalog.length > 0\n ? new Set(\n await checkbox<string>({\n message: 'Providers to configure:',\n pageSize: Math.min(catalog.length + Object.keys(PROVIDER_SELECTION_CATEGORY_TITLE).length, 20),\n choices: buildCheckboxChoices(catalog),\n }),\n )\n : new Set<string>();\n\n const providerEnv: Record<string, string> = {};\n const collectedEnvVars = new Set<string>();\n for (const entry of catalog) {\n if (!selectedRefs.has(entry.providerRef)) continue;\n ctx.log.info(`\\n ${entry.label}`);\n for (const secret of entry.secrets) {\n // A secret already supplied by an earlier selected provider (shared env\n // var) is not re-prompted — the first value wins.\n if (collectedEnvVars.has(secret.envVarName)) continue;\n collectedEnvVars.add(secret.envVarName);\n const value = await promptProviderSecret(secret);\n if (value) {\n providerEnv[secret.envVarName] = normalizePotentialMultilineSecret(secret.envVarName, value);\n }\n }\n }\n\n const github = await promptGithubOrgIntegration();\n\n return {\n providerEnv: Object.keys(providerEnv).length > 0 ? providerEnv : undefined,\n ...github,\n };\n },\n};\n\n/**\n * Build the multi-select choices, inserting a non-selectable {@link Separator}\n * header before each category group. The catalog is already ordered by\n * category priority then label, so a single pass emits the headers in order.\n */\nfunction buildCheckboxChoices(\n catalog: ProviderSelectionCatalogEntry[],\n): Array<Separator | { name: string; value: string }> {\n const choices: Array<Separator | { name: string; value: string }> = [];\n let currentCategory: ProviderSelectionCatalogEntry['category'] | undefined;\n for (const entry of catalog) {\n if (entry.category !== currentCategory) {\n currentCategory = entry.category;\n choices.push(new Separator(`── ${PROVIDER_SELECTION_CATEGORY_TITLE[entry.category]} ──`));\n }\n const requiredCount = entry.secrets.filter((secret) => secret.required).length;\n const secretHint = entry.secrets.length === 1\n ? entry.secrets[0].envVarName\n : `${entry.secrets.length} secrets${requiredCount > 0 ? `, ${requiredCount} required` : ''}`;\n choices.push({ name: `${entry.label} (${secretHint})`, value: entry.providerRef });\n }\n return choices;\n}\n\n/**\n * Prompt a single provider secret. Secrets are entered through a MASKED prompt\n * so keys and tokens never reach the terminal scrollback. `required` secrets\n * must be non-empty; an optional secret may be skipped with Enter.\n */\nasync function promptProviderSecret(secret: ProviderSelectionSecret): Promise<string | undefined> {\n const suffix = secret.description ? ` — ${secret.description}` : '';\n const message = `${secret.envVarName}${secret.required ? '' : ' (optional)'}${suffix}:`;\n const prefix = SECRET_PREFIX_HINTS[secret.envVarName];\n const validate = (raw: string): boolean | string => {\n const trimmed = raw.trim();\n if (!trimmed) {\n return secret.required ? 'This provider secret is required by its contract.' : true;\n }\n if (prefix && !trimmed.startsWith(prefix)) {\n return `${secret.envVarName} keys start with ${prefix}`;\n }\n return true;\n };\n const value = await password({ message, mask: true, validate });\n return value.trim() || undefined;\n}\n\n/**\n * The GitHub organization integration — org URL + admin user + admin token.\n * Distinct from the GitHub OAuth2 provider secret in the registry: this feeds\n * the `github` block of `secrets.json`, not `providerEnv`. Gated behind a\n * confirm so the three prompts only appear when wanted.\n */\nasync function promptGithubOrgIntegration(): Promise<Pick<ProviderKeysInput, 'githubOrgUrl' | 'githubAdminUser' | 'githubAdminToken'>> {\n const wantsGithub = await confirm({\n message: 'Configure a GitHub organization integration?',\n default: false,\n });\n if (!wantsGithub) {\n return {};\n }\n\n // A URL and a username are not secrets — masking them only hurts usability.\n const githubOrgUrl = (await input({ message: 'GitHub Organization URL:' })).trim() || undefined;\n if (!githubOrgUrl) {\n return {};\n }\n const githubAdminUser = (await input({ message: 'GitHub Admin User:' })).trim() || undefined;\n // The token IS a secret → masked.\n const githubAdminToken = (await password({ message: 'GitHub Admin Token:', mask: true })).trim() || undefined;\n\n return { githubOrgUrl, githubAdminUser, githubAdminToken };\n}\n"]}
1
+ {"version":3,"file":"providers-config.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/providers-config.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAIlF,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,GAGlC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAM/G;;;;;;;;GAQG;AACH,MAAM,mBAAmB,GAAqC;IAC5D,cAAc,EAAE,KAAK;IACrB,iBAAiB,EAAE,SAAS;IAC5B,cAAc,EAAE,KAAK;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAyD;IACtG,EAAE,EAAE,WAAW;IAEf,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;QAE9C,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;QACvE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAC;QAElH,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC;YACrC,CAAC,CAAC,IAAI,GAAG,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AAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,eAAe,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;IAC7F,kCAAkC;IAClC,MAAM,gBAAgB,GAAG,CAAC,MAAM,QAAQ,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;IAE9G,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;AAC7D,CAAC","sourcesContent":["import { checkbox, confirm, input, password, Separator } from '@inquirer/prompts';\nimport type { ProviderKeysInput } from '~wildo-cli/modules/domain/credentials/module.types';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport {\n getProviderSelectionCatalog,\n PROVIDER_SELECTION_CATEGORY_TITLE,\n type ProviderSelectionCatalogEntry,\n type ProviderSelectionSecret,\n} from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport { normalizePotentialMultilineSecret } from '~wildo-cli/services/credentials/ci-secrets-adapter.service';\n\nexport interface ProvidersModuleCtx {\n log: Logger;\n}\n\n/**\n * Optional prefix hints for a handful of provider keys, keyed by env-var name.\n *\n * Purely a paste-error catcher (an OpenAI key that does not start with `sk-`\n * is almost certainly wrong) — NOT a semantic decision and NOT a closed\n * vocabulary: env-var names are open provider identifiers, and the value is a\n * format hint, not behavior selection. A key absent from this map is validated\n * for non-emptiness only (when required).\n */\nconst SECRET_PREFIX_HINTS: Readonly<Record<string, string>> = {\n OPENAI_API_KEY: 'sk-',\n ANTHROPIC_API_KEY: 'sk-ant-',\n RESEND_API_KEY: 're_',\n};\n\n/**\n * Step 6/6 of `wildo setup` — provider API keys, email, and integrations.\n *\n * ## Select-then-prompt\n *\n * Rather than marching the operator through every known provider secret (30+\n * prompts, almost all skipped with Enter), this first presents a grouped\n * multi-select of the providers the framework knows about — derived entirely\n * from the COMPOSED provider catalogue via {@link getProviderSelectionCatalog}\n * — and then prompts ONLY the secrets of the providers that were selected.\n * An unselected provider contributes nothing: no prompt, no env var.\n *\n * \"Composed\" rather than \"the backend provider registry\" is the whole of #329:\n * that registry can by construction only hold the ENGINE's own modules, so a\n * provider shipped as its own package could not be offered here at all — the\n * operator was never prompted for its secret, and the key that never arrived\n * had no visible cause. The catalogue is the engine tier PLUS whatever\n * discovery registered, so a package-shipped provider prompts like any other.\n *\n * Selecting a provider prompts every secret its `secretsContract` declares\n * (a contribution ships the same shape, values-free): `required` secrets are\n * validated non-empty, optional ones may be skipped with Enter. A provider that\n * bundles more than one protocol (e.g. Google's LLM key AND its OAuth2 client\n * secret are both `required`) therefore prompts both — that is exactly what its\n * contract states is needed to boot.\n *\n * The GitHub ORGANIZATION integration (org URL + admin user + admin token) is a\n * separate concern from any provider's own secrets contract — it lands in the\n * `github` block of `secrets.json`, not in `providerEnv` — so it is offered as\n * its own gated step after provider selection.\n */\nexport const platformProvidersCredentialsModule: CommandModule<ProvidersModuleCtx, ProviderKeysInput> = {\n id: 'providers',\n\n async prompt(ctx): Promise<ProviderKeysInput> {\n const catalog = getProviderSelectionCatalog();\n\n ctx.log.info('\\n OPTIONAL — Provider API keys, email & integrations');\n ctx.log.info(' Select the providers you use (Space to toggle, Enter to confirm). Skip all to configure none.\\n');\n\n const selectedRefs = catalog.length > 0\n ? new Set(\n await checkbox<string>({\n message: 'Providers to configure:',\n pageSize: Math.min(catalog.length + Object.keys(PROVIDER_SELECTION_CATEGORY_TITLE).length, 20),\n choices: buildCheckboxChoices(catalog),\n }),\n )\n : new Set<string>();\n\n const providerEnv: Record<string, string> = {};\n const collectedEnvVars = new Set<string>();\n for (const entry of catalog) {\n if (!selectedRefs.has(entry.providerRef)) continue;\n ctx.log.info(`\\n ${entry.label}`);\n for (const secret of entry.secrets) {\n // A secret already supplied by an earlier selected provider (shared env\n // var) is not re-prompted — the first value wins.\n if (collectedEnvVars.has(secret.envVarName)) continue;\n collectedEnvVars.add(secret.envVarName);\n const value = await promptProviderSecret(secret);\n if (value) {\n providerEnv[secret.envVarName] = normalizePotentialMultilineSecret(secret.envVarName, value);\n }\n }\n }\n\n const github = await promptGithubOrgIntegration();\n\n return {\n providerEnv: Object.keys(providerEnv).length > 0 ? providerEnv : undefined,\n ...github,\n };\n },\n};\n\n/**\n * Build the multi-select choices, inserting a non-selectable {@link Separator}\n * header before each category group. The catalog is already ordered by\n * category priority then label, so a single pass emits the headers in order.\n */\nfunction buildCheckboxChoices(\n catalog: ProviderSelectionCatalogEntry[],\n): Array<Separator | { name: string; value: string }> {\n const choices: Array<Separator | { name: string; value: string }> = [];\n let currentCategory: ProviderSelectionCatalogEntry['category'] | undefined;\n for (const entry of catalog) {\n if (entry.category !== currentCategory) {\n currentCategory = entry.category;\n choices.push(new Separator(`── ${PROVIDER_SELECTION_CATEGORY_TITLE[entry.category]} ──`));\n }\n const requiredCount = entry.secrets.filter((secret) => secret.required).length;\n const secretHint = entry.secrets.length === 1\n ? entry.secrets[0].envVarName\n : `${entry.secrets.length} secrets${requiredCount > 0 ? `, ${requiredCount} required` : ''}`;\n choices.push({ name: `${entry.label} (${secretHint})`, value: entry.providerRef });\n }\n return choices;\n}\n\n/**\n * Prompt a single provider secret. Secrets are entered through a MASKED prompt\n * so keys and tokens never reach the terminal scrollback. `required` secrets\n * must be non-empty; an optional secret may be skipped with Enter.\n */\nasync function promptProviderSecret(secret: ProviderSelectionSecret): Promise<string | undefined> {\n const suffix = secret.description ? ` — ${secret.description}` : '';\n const message = `${secret.envVarName}${secret.required ? '' : ' (optional)'}${suffix}:`;\n const prefix = SECRET_PREFIX_HINTS[secret.envVarName];\n const validate = (raw: string): boolean | string => {\n const trimmed = raw.trim();\n if (!trimmed) {\n return secret.required ? 'This provider secret is required by its contract.' : true;\n }\n if (prefix && !trimmed.startsWith(prefix)) {\n return `${secret.envVarName} keys start with ${prefix}`;\n }\n return true;\n };\n const value = await password({ message, mask: true, validate });\n return value.trim() || undefined;\n}\n\n/**\n * The GitHub organization integration — org URL + admin user + admin token.\n * Distinct from the GitHub OAuth2 provider's own secret: this feeds\n * the `github` block of `secrets.json`, not `providerEnv`. Gated behind a\n * confirm so the three prompts only appear when wanted.\n */\nasync function promptGithubOrgIntegration(): Promise<Pick<ProviderKeysInput, 'githubOrgUrl' | 'githubAdminUser' | 'githubAdminToken'>> {\n const wantsGithub = await confirm({\n message: 'Configure a GitHub organization integration?',\n default: false,\n });\n if (!wantsGithub) {\n return {};\n }\n\n // A URL and a username are not secrets — masking them only hurts usability.\n const githubOrgUrl = (await input({ message: 'GitHub Organization URL:' })).trim() || undefined;\n if (!githubOrgUrl) {\n return {};\n }\n const githubAdminUser = (await input({ message: 'GitHub Admin User:' })).trim() || undefined;\n // The token IS a secret → masked.\n const githubAdminToken = (await password({ message: 'GitHub Admin Token:', mask: true })).trim() || undefined;\n\n return { githubOrgUrl, githubAdminUser, githubAdminToken };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"database-config.module.test.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/domain/environment/__tests__/database-config.module.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"database-config.module.test.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/environment/__tests__/database-config.module.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"database-config.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/database-config.module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAE3G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,oCAAoC,EAAE,aAAa,CAAC,iBAAiB,EAAE,2BAA2B,CA0I9G,CAAC"}
1
+ {"version":3,"file":"database-config.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/database-config.module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAE3G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,oCAAoC,EAAE,aAAa,CAAC,iBAAiB,EAAE,2BAA2B,CA0I9G,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/module.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC"}
1
+ {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/module.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"paths-config.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/paths-config.module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAGtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,cAAc,EAAE,WAAW,CAqF1E,CAAC"}
1
+ {"version":3,"file":"paths-config.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/paths-config.module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAGtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,cAAc,EAAE,WAAW,CAqF1E,CAAC"}