@wildo-ai/wildo-cli 1.1.9 → 1.1.10

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 (833) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/bin/wildo.js +0 -0
  3. package/dist/bin/wildo.js.map +1 -1
  4. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  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/align-deps.command.js.map +1 -1
  8. package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
  9. package/dist/src/commands/assets/sync.command.js.map +1 -1
  10. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  11. package/dist/src/commands/brand/propagate.command.js.map +1 -1
  12. package/dist/src/commands/build/accept.command.d.ts.map +1 -1
  13. package/dist/src/commands/build/accept.command.js.map +1 -1
  14. package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
  15. package/dist/src/commands/build/dispatches.command.js.map +1 -1
  16. package/dist/src/commands/build/next.command.d.ts.map +1 -1
  17. package/dist/src/commands/build/next.command.js.map +1 -1
  18. package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
  19. package/dist/src/commands/build/rearm.command.js.map +1 -1
  20. package/dist/src/commands/build/run.command.d.ts.map +1 -1
  21. package/dist/src/commands/build/run.command.js.map +1 -1
  22. package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
  23. package/dist/src/commands/build/tasks.command.js.map +1 -1
  24. package/dist/src/commands/compose.command.d.ts.map +1 -1
  25. package/dist/src/commands/compose.command.js.map +1 -1
  26. package/dist/src/commands/config/check-resources.command.d.ts +50 -0
  27. package/dist/src/commands/config/check-resources.command.d.ts.map +1 -0
  28. package/dist/src/commands/config/check-resources.command.js +121 -0
  29. package/dist/src/commands/config/check-resources.command.js.map +1 -0
  30. package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
  31. package/dist/src/commands/config/data-retention.command.js.map +1 -1
  32. package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
  33. package/dist/src/commands/config/document-releases.command.js.map +1 -1
  34. package/dist/src/commands/config/legal-notice.command.d.ts +17 -0
  35. package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -0
  36. package/dist/src/commands/config/legal-notice.command.js +59 -0
  37. package/dist/src/commands/config/legal-notice.command.js.map +1 -0
  38. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  39. package/dist/src/commands/config/mutate.command.js.map +1 -1
  40. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  41. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  42. package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
  43. package/dist/src/commands/config/service-consent.command.js.map +1 -1
  44. package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
  45. package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
  46. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  47. package/dist/src/commands/config/sync.command.js.map +1 -1
  48. package/dist/src/commands/config/validate.command.d.ts +8 -0
  49. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  50. package/dist/src/commands/config/validate.command.js +65 -4
  51. package/dist/src/commands/config/validate.command.js.map +1 -1
  52. package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
  53. package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
  54. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  55. package/dist/src/commands/context/coherence.command.js.map +1 -1
  56. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  57. package/dist/src/commands/context/context-command.utils.js.map +1 -1
  58. package/dist/src/commands/context/elements.command.d.ts.map +1 -1
  59. package/dist/src/commands/context/elements.command.js.map +1 -1
  60. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  61. package/dist/src/commands/context/health.command.js.map +1 -1
  62. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  63. package/dist/src/commands/context/info.command.js.map +1 -1
  64. package/dist/src/commands/context/journey.command.d.ts +8 -2
  65. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  66. package/dist/src/commands/context/journey.command.js +102 -12
  67. package/dist/src/commands/context/journey.command.js.map +1 -1
  68. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
  69. package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
  70. package/dist/src/commands/context/launch-blockers.command.d.ts +2 -1
  71. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
  72. package/dist/src/commands/context/launch-blockers.command.js +3 -2
  73. package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
  74. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  75. package/dist/src/commands/context/list.command.js.map +1 -1
  76. package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
  77. package/dist/src/commands/context/pipelines.command.js.map +1 -1
  78. package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
  79. package/dist/src/commands/context/workspace.command.js.map +1 -1
  80. package/dist/src/commands/creation/accept.command.d.ts +4 -0
  81. package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
  82. package/dist/src/commands/creation/accept.command.js +29 -4
  83. package/dist/src/commands/creation/accept.command.js.map +1 -1
  84. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  85. package/dist/src/commands/creation/answer.command.js.map +1 -1
  86. package/dist/src/commands/creation/brand-logo.command.d.ts +18 -0
  87. package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -0
  88. package/dist/src/commands/creation/brand-logo.command.js +43 -0
  89. package/dist/src/commands/creation/brand-logo.command.js.map +1 -0
  90. package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
  91. package/dist/src/commands/creation/brief.command.js.map +1 -1
  92. package/dist/src/commands/creation/deliberate.command.d.ts +2 -2
  93. package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
  94. package/dist/src/commands/creation/deliberate.command.js +2 -2
  95. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  96. package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
  97. package/dist/src/commands/creation/depth.command.js +1 -1
  98. package/dist/src/commands/creation/depth.command.js.map +1 -1
  99. package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
  100. package/dist/src/commands/creation/diff.command.js.map +1 -1
  101. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  102. package/dist/src/commands/creation/feed.command.js.map +1 -1
  103. package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
  104. package/dist/src/commands/creation/loop.command.js.map +1 -1
  105. package/dist/src/commands/creation/persona.command.d.ts +3 -2
  106. package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
  107. package/dist/src/commands/creation/persona.command.js +10 -3
  108. package/dist/src/commands/creation/persona.command.js.map +1 -1
  109. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
  110. package/dist/src/commands/creation/preflight.command.js.map +1 -1
  111. package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
  112. package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
  113. package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
  114. package/dist/src/commands/creation/propose.command.js.map +1 -1
  115. package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
  116. package/dist/src/commands/creation/pulse.command.js.map +1 -1
  117. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  118. package/dist/src/commands/creation/questions.command.js.map +1 -1
  119. package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
  120. package/dist/src/commands/creation/reason.command.js.map +1 -1
  121. package/dist/src/commands/creation/report.command.d.ts.map +1 -1
  122. package/dist/src/commands/creation/report.command.js.map +1 -1
  123. package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
  124. package/dist/src/commands/creation/revert.command.js.map +1 -1
  125. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  126. package/dist/src/commands/creation/run.command.js.map +1 -1
  127. package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
  128. package/dist/src/commands/creation/statusline.command.js.map +1 -1
  129. package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
  130. package/dist/src/commands/creation/watch.command.js.map +1 -1
  131. package/dist/src/commands/creation/why.command.d.ts +3 -1
  132. package/dist/src/commands/creation/why.command.d.ts.map +1 -1
  133. package/dist/src/commands/creation/why.command.js +28 -9
  134. package/dist/src/commands/creation/why.command.js.map +1 -1
  135. package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
  136. package/dist/src/commands/creation/writes.command.js.map +1 -1
  137. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
  138. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
  139. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  140. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  141. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  142. package/dist/src/commands/db/diff.command.js.map +1 -1
  143. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  144. package/dist/src/commands/db/generate.command.js.map +1 -1
  145. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  146. package/dist/src/commands/db/migrate.command.js.map +1 -1
  147. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  148. package/dist/src/commands/db/resolve.command.js.map +1 -1
  149. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  150. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  151. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  152. package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -1
  153. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  154. package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
  155. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  156. package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
  157. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  158. package/dist/src/commands/dev/force-stop.command.js.map +1 -1
  159. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  160. package/dist/src/commands/dev/resources.command.js.map +1 -1
  161. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  162. package/dist/src/commands/dev/start.command.js.map +1 -1
  163. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  164. package/dist/src/commands/dev/stop-all.command.js.map +1 -1
  165. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  166. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  167. package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
  168. package/dist/src/commands/docs/publish.command.js.map +1 -1
  169. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  170. package/dist/src/commands/frontend/publish.command.js.map +1 -1
  171. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  172. package/dist/src/commands/fwk/audit.command.js.map +1 -1
  173. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  174. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  175. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  176. package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
  177. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
  178. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
  179. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  180. package/dist/src/commands/fwk/graph.command.js.map +1 -1
  181. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  182. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  183. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  184. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  185. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  186. package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
  187. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  188. package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
  189. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  190. package/dist/src/commands/fwk/version-set.command.js.map +1 -1
  191. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  192. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  193. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  194. package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
  195. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  196. package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
  197. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  198. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  199. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  200. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  201. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  202. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  203. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  204. package/dist/src/commands/generate/email-preview.command.js.map +1 -1
  205. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  206. package/dist/src/commands/generate/email-status.command.js.map +1 -1
  207. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  208. package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
  209. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  210. package/dist/src/commands/generate/email-translate.command.js.map +1 -1
  211. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  212. package/dist/src/commands/generate/email.command.js.map +1 -1
  213. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  214. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  215. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  216. package/dist/src/commands/generate/labels-plan.command.js.map +1 -1
  217. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  218. package/dist/src/commands/generate/labels.command.js.map +1 -1
  219. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  220. package/dist/src/commands/generate/translate.command.js.map +1 -1
  221. package/dist/src/commands/help.command.d.ts.map +1 -1
  222. package/dist/src/commands/help.command.js.map +1 -1
  223. package/dist/src/commands/init.command.d.ts.map +1 -1
  224. package/dist/src/commands/init.command.js.map +1 -1
  225. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  226. package/dist/src/commands/local/deregister.command.js.map +1 -1
  227. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  228. package/dist/src/commands/local/dev-status.command.js.map +1 -1
  229. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  230. package/dist/src/commands/local/dev.command.js.map +1 -1
  231. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  232. package/dist/src/commands/local/doctor.command.js.map +1 -1
  233. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  234. package/dist/src/commands/local/down.command.js.map +1 -1
  235. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  236. package/dist/src/commands/local/init.command.js.map +1 -1
  237. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  238. package/dist/src/commands/local/logs.command.js.map +1 -1
  239. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  240. package/dist/src/commands/local/reinit.command.js.map +1 -1
  241. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  242. package/dist/src/commands/local/reset.command.js.map +1 -1
  243. package/dist/src/commands/local/restore.command.d.ts.map +1 -1
  244. package/dist/src/commands/local/restore.command.js.map +1 -1
  245. package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
  246. package/dist/src/commands/local/smoke.command.js.map +1 -1
  247. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  248. package/dist/src/commands/local/status.command.js.map +1 -1
  249. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  250. package/dist/src/commands/local/up.command.js.map +1 -1
  251. package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
  252. package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
  253. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  254. package/dist/src/commands/lock/check.command.js.map +1 -1
  255. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  256. package/dist/src/commands/market/generate.command.js.map +1 -1
  257. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  258. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  259. package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
  260. package/dist/src/commands/prefs/set.command.js.map +1 -1
  261. package/dist/src/commands/providers/show.command.d.ts.map +1 -1
  262. package/dist/src/commands/providers/show.command.js.map +1 -1
  263. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  264. package/dist/src/commands/registry/add.command.js.map +1 -1
  265. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  266. package/dist/src/commands/registry/info.command.js.map +1 -1
  267. package/dist/src/commands/registry/key.command.d.ts.map +1 -1
  268. package/dist/src/commands/registry/key.command.js.map +1 -1
  269. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  270. package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
  271. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  272. package/dist/src/commands/registry/login.command.js.map +1 -1
  273. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  274. package/dist/src/commands/registry/logout.command.js.map +1 -1
  275. package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
  276. package/dist/src/commands/registry/outdated.command.js.map +1 -1
  277. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  278. package/dist/src/commands/registry/ping.command.js.map +1 -1
  279. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  280. package/dist/src/commands/registry/publish.command.js.map +1 -1
  281. package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
  282. package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
  283. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  284. package/dist/src/commands/registry/remove.command.js.map +1 -1
  285. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  286. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  287. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  288. package/dist/src/commands/registry/search.command.js.map +1 -1
  289. package/dist/src/commands/registry/status.command.d.ts.map +1 -1
  290. package/dist/src/commands/registry/status.command.js.map +1 -1
  291. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  292. package/dist/src/commands/registry/update.command.js.map +1 -1
  293. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  294. package/dist/src/commands/registry/whoami.command.js.map +1 -1
  295. package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
  296. package/dist/src/commands/registry/yank.command.js.map +1 -1
  297. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  298. package/dist/src/commands/remote/create.command.js.map +1 -1
  299. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  300. package/dist/src/commands/remote/list.command.js.map +1 -1
  301. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  302. package/dist/src/commands/remote/status.command.js.map +1 -1
  303. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  304. package/dist/src/commands/remote/sync.command.js.map +1 -1
  305. package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
  306. package/dist/src/commands/secrets/github.command.js.map +1 -1
  307. package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
  308. package/dist/src/commands/secrets/list.command.js.map +1 -1
  309. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  310. package/dist/src/commands/secrets/set.command.js.map +1 -1
  311. package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
  312. package/dist/src/commands/secrets/unset.command.js.map +1 -1
  313. package/dist/src/commands/setup.command.d.ts.map +1 -1
  314. package/dist/src/commands/setup.command.js.map +1 -1
  315. package/dist/src/commands/update.command.d.ts.map +1 -1
  316. package/dist/src/commands/update.command.js.map +1 -1
  317. package/dist/src/commands/version.command.d.ts.map +1 -1
  318. package/dist/src/commands/version.command.js.map +1 -1
  319. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  320. package/dist/src/commands/website/audit.command.js.map +1 -1
  321. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  322. package/dist/src/commands/workbench/open.command.js.map +1 -1
  323. package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
  324. package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
  325. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  326. package/dist/src/commands/workbench/status.command.js.map +1 -1
  327. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  328. package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
  329. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  330. package/dist/src/infrastructure/io/file.utils.js.map +1 -1
  331. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  332. package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
  333. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  334. package/dist/src/infrastructure/io/template-processor.js.map +1 -1
  335. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  336. package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
  337. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  338. package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
  339. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  340. package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
  341. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  342. package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
  343. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  344. package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
  345. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  346. package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
  347. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  348. package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
  349. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  350. package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
  351. package/dist/src/kernel/base-command.d.ts.map +1 -1
  352. package/dist/src/kernel/base-command.js.map +1 -1
  353. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  354. package/dist/src/kernel/bootstrap.js.map +1 -1
  355. package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
  356. package/dist/src/kernel/command-index-cache.js.map +1 -1
  357. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  358. package/dist/src/kernel/command-registry.js.map +1 -1
  359. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  360. package/dist/src/kernel/command-runner.js.map +1 -1
  361. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  362. package/dist/src/kernel/command-scope-utils.js.map +1 -1
  363. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  364. package/dist/src/kernel/flag-utils.js.map +1 -1
  365. package/dist/src/kernel/hooks.d.ts.map +1 -1
  366. package/dist/src/kernel/hooks.js.map +1 -1
  367. package/dist/src/kernel/logger.d.ts.map +1 -1
  368. package/dist/src/kernel/logger.js.map +1 -1
  369. package/dist/src/kernel/types.d.ts.map +1 -1
  370. package/dist/src/kernel/types.js.map +1 -1
  371. package/dist/src/main.d.ts.map +1 -1
  372. package/dist/src/main.js.map +1 -1
  373. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  374. package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
  375. package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
  376. package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
  377. package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
  378. package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
  379. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  380. package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
  381. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  382. package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
  383. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  384. package/dist/src/modules/domain/environment/module.types.js.map +1 -1
  385. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  386. package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
  387. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  388. package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
  389. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  390. package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
  391. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  392. package/dist/src/modules/domain/module.types.js.map +1 -1
  393. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  394. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  395. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  396. package/dist/src/services/application/app-env.service.js.map +1 -1
  397. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  398. package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
  399. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  400. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  401. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  402. package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
  403. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  404. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  405. package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
  406. package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
  407. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  408. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  409. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  410. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  411. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  412. package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
  413. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  414. package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
  415. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  416. package/dist/src/services/application/application-root.utils.js.map +1 -1
  417. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  418. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  419. package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
  420. package/dist/src/services/application/backend-config.paths.js.map +1 -1
  421. package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
  422. package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
  423. package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
  424. package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
  425. package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
  426. package/dist/src/services/application/creation-preflight.service.js.map +1 -1
  427. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
  428. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
  429. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  430. package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
  431. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  432. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  433. package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
  434. package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
  435. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  436. package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
  437. package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
  438. package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
  439. package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
  440. package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
  441. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  442. package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
  443. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  444. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  445. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
  446. package/dist/src/services/application/provider-package-links.service.js.map +1 -1
  447. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  448. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  449. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  450. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  451. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  452. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  453. package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
  454. package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
  455. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  456. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  457. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  458. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  459. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  460. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  461. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  462. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  463. package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
  464. package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
  465. package/dist/src/services/companion/build-console.service.d.ts +62 -2
  466. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  467. package/dist/src/services/companion/build-console.service.js +70 -5
  468. package/dist/src/services/companion/build-console.service.js.map +1 -1
  469. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  470. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  471. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  472. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  473. package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
  474. package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
  475. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  476. package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
  477. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
  478. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
  479. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  480. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  481. package/dist/src/services/companion/console-fast-path.d.ts +21 -3
  482. package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
  483. package/dist/src/services/companion/console-fast-path.js +57 -12
  484. package/dist/src/services/companion/console-fast-path.js.map +1 -1
  485. package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
  486. package/dist/src/services/companion/console-verb.utils.js.map +1 -1
  487. package/dist/src/services/companion/creation-console.service.d.ts +76 -0
  488. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  489. package/dist/src/services/companion/creation-console.service.js +124 -11
  490. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  491. package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
  492. package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
  493. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  494. package/dist/src/services/companion/git-helper.service.js.map +1 -1
  495. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  496. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  497. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  498. package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
  499. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  500. package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
  501. package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
  502. package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
  503. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts +5 -3
  504. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  505. package/dist/src/services/compliance/generated-compliance-module-wiring.js +4 -2
  506. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  507. package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
  508. package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
  509. package/dist/src/services/compliance/legal-notice.generator.d.ts +45 -0
  510. package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -0
  511. package/dist/src/services/compliance/legal-notice.generator.js +97 -0
  512. package/dist/src/services/compliance/legal-notice.generator.js.map +1 -0
  513. package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
  514. package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
  515. package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
  516. package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
  517. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  518. package/dist/src/services/context/context-manager.service.js.map +1 -1
  519. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  520. package/dist/src/services/context/context.schemas.js.map +1 -1
  521. package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
  522. package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
  523. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  524. package/dist/src/services/context/state-manager.service.js.map +1 -1
  525. package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
  526. package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
  527. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  528. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  529. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  530. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  531. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  532. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  533. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  534. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  535. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  536. package/dist/src/services/credentials/credentials.service.js.map +1 -1
  537. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  538. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  539. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  540. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  541. package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
  542. package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
  543. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  544. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  545. package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
  546. package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
  547. package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
  548. package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
  549. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  550. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  551. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  552. package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
  553. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  554. package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
  555. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  556. package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
  557. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  558. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  559. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  560. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  561. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  562. package/dist/src/services/data-services/data-services.service.js.map +1 -1
  563. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  564. package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
  565. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  566. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  567. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  568. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  569. package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
  570. package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
  571. package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
  572. package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
  573. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  574. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  575. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  576. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  577. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  578. package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
  579. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  580. package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
  581. package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
  582. package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
  583. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  584. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  585. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  586. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  587. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
  588. package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
  589. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  590. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  591. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  592. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
  593. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  594. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  595. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  596. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  597. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  598. package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
  599. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  600. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  601. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  602. package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
  603. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  604. package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
  605. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  606. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
  607. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  608. package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
  609. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  610. package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -1
  611. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  612. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  613. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  614. package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
  615. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  616. package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
  617. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  618. package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -1
  619. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  620. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  621. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  622. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
  623. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  624. package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
  625. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  626. package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
  627. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  628. package/dist/src/services/deployment/version-compare.utils.js.map +1 -1
  629. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  630. package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
  631. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  632. package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
  633. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  634. package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
  635. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  636. package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -1
  637. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  638. package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
  639. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  640. package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
  641. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  642. package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
  643. package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
  644. package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
  645. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  646. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  647. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  648. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  649. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  650. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  651. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  652. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  653. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  654. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  655. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  656. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  657. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  658. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  659. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  660. package/dist/src/services/environment/environment-registry.service.js.map +1 -1
  661. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  662. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  663. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  664. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  665. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  666. package/dist/src/services/environment/environment.service.js.map +1 -1
  667. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
  668. package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
  669. package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
  670. package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
  671. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  672. package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
  673. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  674. package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
  675. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  676. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  677. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  678. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  679. package/dist/src/services/framework/application-claude-settings.d.ts +39 -5
  680. package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
  681. package/dist/src/services/framework/application-claude-settings.js +100 -25
  682. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  683. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
  684. package/dist/src/services/framework/application-rule-imports.js.map +1 -1
  685. package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
  686. package/dist/src/services/framework/claude-plugin-compiler.js +3 -2
  687. package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
  688. package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
  689. package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
  690. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  691. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  692. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  693. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  694. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  695. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -1
  696. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  697. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  698. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  699. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  700. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  701. package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
  702. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  703. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  704. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  705. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  706. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  707. package/dist/src/services/framework/framework-release.service.js.map +1 -1
  708. package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
  709. package/dist/src/services/framework/framework-update.service.js.map +1 -1
  710. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  711. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  712. package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
  713. package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
  714. package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
  715. package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
  716. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  717. package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
  718. package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
  719. package/dist/src/services/framework/npm-registry-output.js.map +1 -1
  720. package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
  721. package/dist/src/services/framework/package-install.service.js.map +1 -1
  722. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
  723. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
  724. package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
  725. package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
  726. package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
  727. package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
  728. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
  729. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
  730. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
  731. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
  732. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
  733. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
  734. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
  735. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
  736. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
  737. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
  738. package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
  739. package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
  740. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
  741. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
  742. package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
  743. package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
  744. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
  745. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
  746. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
  747. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
  748. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  749. package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
  750. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  751. package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
  752. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  753. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  754. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  755. package/dist/src/services/generation/domain-generator.service.js.map +1 -1
  756. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  757. package/dist/src/services/generation/generator.schemas.js.map +1 -1
  758. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  759. package/dist/src/services/generation/operation-generator.service.js.map +1 -1
  760. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  761. package/dist/src/services/generation/resource-generator.service.js.map +1 -1
  762. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  763. package/dist/src/services/generation/template-registry.service.js.map +1 -1
  764. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  765. package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
  766. package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
  767. package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
  768. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  769. package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
  770. package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
  771. package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
  772. package/dist/src/services/registry/index.d.ts.map +1 -1
  773. package/dist/src/services/registry/index.js.map +1 -1
  774. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  775. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  776. package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
  777. package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
  778. package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
  779. package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
  780. package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
  781. package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
  782. package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
  783. package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
  784. package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
  785. package/dist/src/services/registry/module-registration.service.js.map +1 -1
  786. package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
  787. package/dist/src/services/registry/module-requirements.service.js.map +1 -1
  788. package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
  789. package/dist/src/services/registry/provider-install-step.js.map +1 -1
  790. package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
  791. package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
  792. package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
  793. package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
  794. package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
  795. package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
  796. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  797. package/dist/src/services/registry/registry-command.utils.js.map +1 -1
  798. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
  799. package/dist/src/services/registry/registry-config-resolver.service.js.map +1 -1
  800. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  801. package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
  802. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  803. package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
  804. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  805. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  806. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  807. package/dist/src/services/tools/utility-tools.service.js.map +1 -1
  808. package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
  809. package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
  810. package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
  811. package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
  812. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  813. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  814. package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
  815. package/dist/src/services/website/website-workspace.service.js.map +1 -1
  816. package/dist/tsconfig.build.tsbuildinfo +1 -0
  817. package/dist/tsconfig.tsbuildinfo +1 -0
  818. package/package.json +17 -17
  819. package/templates/saas/i18n/email/email-template-definitions.ts +5 -1
  820. package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +21 -1
  821. package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +1 -0
  822. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +1 -0
  823. package/templates/saas/scenarios/add-module/scenario.json +5 -0
  824. package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +14 -6
  825. package/templates/saas/scenarios/add-website/files/website/src/content/llms.txt.hbs +3 -3
  826. package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +4 -0
  827. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
  828. package/templates/saas/scenarios/add-website/files/website/src/pages/llms.txt.ts +3 -1
  829. package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +14 -0
  830. package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +5 -1
  831. package/templates/saas/skeleton/shared-lib/src/engine/roles.ts +10 -2
  832. package/templates/saas/skeleton/specifications/src/companion-exports.ts +28 -3
  833. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/kernel/types.ts"],"names":[],"mappings":"AAYA,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;AA4ED,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 { WildoMachineDefaults, 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;\n/** Re-exported beside {@link WildoPreferences}: `PromptDefinition.preference` is keyed on it. */\nexport type { WildoMachineDefaults };\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 * The `~/.wildo/preferences.json` member that ANSWERS this prompt, when the machine states one.\n *\n * Resolution is `flag → answer file → preference → interactive prompt → declared default`, and the\n * position is the whole design. A preference sits BELOW a flag and an answer file, because both of\n * those are explicit inputs to THIS run and must be able to differ; it sits ABOVE the prompt,\n * because its entire purpose is that the question stops being asked. So it means \"stop asking me\",\n * never \"decide for me\" — one application can still differ without the file being edited.\n *\n * Declare it only where the answer is genuinely a property of the MACHINE rather than of the\n * application: the operator's own identity, a posture, a house default. A per-application decision\n * with real consequences (a port block, a name) does not belong here, because a stored answer\n * would silently apply it to an application whose author never considered it.\n */\n preference?: keyof WildoMachineDefaults;\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 * The process exit code, when a failure has more than one meaning a caller must branch on — the\n * creation console's convention is 1 = refused or failed, 2 = the companion could not be reached\n * (#1652), so an agent tells \"your request was wrong\" from \"nothing is listening\" without parsing\n * prose. Omitted, a failure exits 1 and a success 0, as before.\n */\n exitCode?: number;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/kernel/types.ts"],"names":[],"mappings":"AAYA,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;AA4ED,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 { WildoMachineDefaults, 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;\n/** Re-exported beside {@link WildoPreferences}: `PromptDefinition.preference` is keyed on it. */\nexport type { WildoMachineDefaults };\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 * The `~/.wildo/preferences.json` member that ANSWERS this prompt, when the machine states one.\n *\n * Resolution is `flag → answer file → preference → interactive prompt → declared default`, and the\n * position is the whole design. A preference sits BELOW a flag and an answer file, because both of\n * those are explicit inputs to THIS run and must be able to differ; it sits ABOVE the prompt,\n * because its entire purpose is that the question stops being asked. So it means \"stop asking me\",\n * never \"decide for me\" — one application can still differ without the file being edited.\n *\n * Declare it only where the answer is genuinely a property of the MACHINE rather than of the\n * application: the operator's own identity, a posture, a house default. A per-application decision\n * with real consequences (a port block, a name) does not belong here, because a stored answer\n * would silently apply it to an application whose author never considered it.\n */\n preference?: keyof WildoMachineDefaults;\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 * The process exit code, when a failure has more than one meaning a caller must branch on — the\n * creation console's convention is 1 = refused or failed, 2 = the companion could not be reached\n * (#1652), so an agent tells \"your request was wrong\" from \"nothing is listening\" without parsing\n * prose. Omitted, a failure exits 1 and a success 0, as before.\n */\n exitCode?: number;\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":"main.js","sourceRoot":"","sources":["../../../../src/main.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,gCAAgC;IACvC,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,6FAA6F;cAChG,4EAA4E;cAC5E,kGAAkG;cAClG,eAAe,CAAC;IACtB,CAAC;AACH,CAAC;AAED,MAAM,wBAAwB,GAAG,gCAAgC,EAAE,CAAC;AACpE,IAAI,wBAAwB,KAAK,IAAI,EAAE,CAAC;IACtC,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAC1B,kGAAkG;IAClG,iGAAiG;IACjG,MAAM,aAAa,GAAG,gCAAgC,EAAE,CAAC;IACzD,OAAO,CAAC,KAAK,CAAC,aAAa,IAAI,UAAU,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Wildo CLI entry point.\n *\n * IMPLEMENTATION: DONE — delegates to bootstrap.\n */\n\nimport { bootstrap } from '~wildo-cli/kernel/bootstrap';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\n/**\n * Is this shell standing in a directory that no longer exists?\n *\n * A shell keeps its working directory as an INODE, not a path, so a directory deleted and recreated\n * under a live shell leaves that shell attached to the old, unlinked one. Every later `process.cwd()`\n * then fails, and what the operator sees is Node's own words — `ENOENT: process.cwd failed … uv_cwd`\n * — under a `Fatal:` prefix, which reads like the CLI is broken and sends them looking at the command\n * they just ran. It has nothing to do with the command: any process started from that shell fails the\n * same way, and the remedy is to re-enter the directory by its path so the shell resolves the new one.\n *\n * Probed rather than pattern-matched on an error string, because the condition is directly testable\n * and a message is not a contract. Returns the explanation, or `null` when the directory is fine.\n *\n * The remedy is `cd \"$PWD\"`, measured rather than guessed: the shell keeps `PWD` as a STRING, so\n * re-entering it resolves the path afresh and lands on the new inode. An earlier draft suggested\n * `pwd -P`, which is wrong for the obvious reason — it asks the kernel the very question that is\n * failing — and would have sent the reader in a circle.\n */\nfunction describeUnusableWorkingDirectory(): string | null {\n try {\n process.cwd();\n return null;\n } catch {\n return 'This shell\\'s working directory no longer exists — it was deleted (and possibly recreated) '\n + 'while the shell was inside it, so the shell still points at the old one.\\n'\n + ' Nothing is wrong with the command or the project. Re-enter the directory, then run it again:\\n'\n + ' cd \"$PWD\"';\n }\n}\n\nconst unusableWorkingDirectory = describeUnusableWorkingDirectory();\nif (unusableWorkingDirectory !== null) {\n console.error(unusableWorkingDirectory);\n process.exit(1);\n}\n\nbootstrap().catch((error) => {\n // Re-probed rather than remembered: a command can also delete its own cwd mid-run, and that lands\n // here instead of at the guard above, with the same remedy and the same unreadable Node message.\n const lostDuringRun = describeUnusableWorkingDirectory();\n console.error(lostDuringRun ?? `Fatal: ${ErrorUtils.extractErrorMessage(error)}`);\n process.exit(1);\n});\n"]}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,gCAAgC;IACvC,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,6FAA6F;cAChG,4EAA4E;cAC5E,kGAAkG;cAClG,eAAe,CAAC;IACtB,CAAC;AACH,CAAC;AAED,MAAM,wBAAwB,GAAG,gCAAgC,EAAE,CAAC;AACpE,IAAI,wBAAwB,KAAK,IAAI,EAAE,CAAC;IACtC,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAC1B,kGAAkG;IAClG,iGAAiG;IACjG,MAAM,aAAa,GAAG,gCAAgC,EAAE,CAAC;IACzD,OAAO,CAAC,KAAK,CAAC,aAAa,IAAI,UAAU,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Wildo CLI entry point.\n *\n * IMPLEMENTATION: DONE — delegates to bootstrap.\n */\n\nimport { bootstrap } from '~wildo-cli/kernel/bootstrap';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\n/**\n * Is this shell standing in a directory that no longer exists?\n *\n * A shell keeps its working directory as an INODE, not a path, so a directory deleted and recreated\n * under a live shell leaves that shell attached to the old, unlinked one. Every later `process.cwd()`\n * then fails, and what the operator sees is Node's own words — `ENOENT: process.cwd failed … uv_cwd`\n * — under a `Fatal:` prefix, which reads like the CLI is broken and sends them looking at the command\n * they just ran. It has nothing to do with the command: any process started from that shell fails the\n * same way, and the remedy is to re-enter the directory by its path so the shell resolves the new one.\n *\n * Probed rather than pattern-matched on an error string, because the condition is directly testable\n * and a message is not a contract. Returns the explanation, or `null` when the directory is fine.\n *\n * The remedy is `cd \"$PWD\"`, measured rather than guessed: the shell keeps `PWD` as a STRING, so\n * re-entering it resolves the path afresh and lands on the new inode. An earlier draft suggested\n * `pwd -P`, which is wrong for the obvious reason — it asks the kernel the very question that is\n * failing — and would have sent the reader in a circle.\n */\nfunction describeUnusableWorkingDirectory(): string | null {\n try {\n process.cwd();\n return null;\n } catch {\n return 'This shell\\'s working directory no longer exists — it was deleted (and possibly recreated) '\n + 'while the shell was inside it, so the shell still points at the old one.\\n'\n + ' Nothing is wrong with the command or the project. Re-enter the directory, then run it again:\\n'\n + ' cd \"$PWD\"';\n }\n}\n\nconst unusableWorkingDirectory = describeUnusableWorkingDirectory();\nif (unusableWorkingDirectory !== null) {\n console.error(unusableWorkingDirectory);\n process.exit(1);\n}\n\nbootstrap().catch((error) => {\n // Re-probed rather than remembered: a command can also delete its own cwd mid-run, and that lands\n // here instead of at the guard above, with the same remedy and the same unreadable Node message.\n const lostDuringRun = describeUnusableWorkingDirectory();\n console.error(lostDuringRun ?? `Fatal: ${ErrorUtils.extractErrorMessage(error)}`);\n process.exit(1);\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":"admin-user.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/admin-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAM/F;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,MAAgC;IACnD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC3B,OAAO,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AAC9C,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsD;IACxF,EAAE,EAAE,OAAO;IAEX,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;QAE9C,MAAM,SAAS,GAAG,WAAW,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;QAC/E,MAAM,aAAa,GAAG,WAAW,CAAC,wBAAwB,CAAC,0BAA0B,CAAC,CAAC;QACvF,MAAM,YAAY,GAAG,WAAW,CAAC,wBAAwB,CAAC,yBAAyB,CAAC,CAAC;QACrF,MAAM,YAAY,GAAG,WAAW,CAAC,wBAAwB,CAAC,yBAAyB,CAAC,CAAC;QAErF,MAAM,UAAU,GAAG;YACjB,SAAS,IAAI,wBAAwB,CAAC,sBAAsB;Y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ED,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,4CAA4C,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;IACxH,8FAA8F;IAC9F,OAAO,EAAE,KAAK,EAAE,KAAM,EAAE,SAAS,EAAE,SAAU,EAAE,QAAQ,EAAE,QAAS,EAAE,QAAQ,EAAE,CAAC;AACjF,CAAC","sourcesContent":["import chalk from 'chalk';\nimport { input } from '@inquirer/prompts';\nimport type { AdminUserInput } 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 { WildoCliInitAdminEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\n\nexport interface AdminUserModuleCtx {\n log: Logger;\n}\n\n/**\n * Read a `WILDO_INIT_ADMIN_*` env-var seed.\n *\n * Empty strings are treated as missing so that a stray `KEY=` line in a\n * shell profile or CI runner doesn't silently install an empty-string\n * admin identity. Trimmed values are returned verbatim; validation of\n * shape (e.g. email) happens at the prompt boundary below.\n */\nfunction readEnvSeed(envKey: WildoCliInitAdminEnvKeys): string | undefined {\n const raw = process.env[envKey];\n if (raw === undefined) return undefined;\n const trimmed = raw.trim();\n return trimmed === '' ? undefined : trimmed;\n}\n\n/**\n * Interactive collector for the platform-administrator identity used by\n * `wildo setup` (and any future bootstrap entry point).\n *\n * Slice 2 / 2.3 (TARGETED): supports `WILDO_INIT_ADMIN_*` env-var seeding\n * so CI-driven local-setup flows can pre-fill prompts without wiring\n * `wildo setup` itself into a non-interactive harness. Concretely:\n *\n * - `WILDO_INIT_ADMIN_EMAIL` / `WILDO_INIT_ADMIN_FIRSTNAME` /\n * `WILDO_INIT_ADMIN_LASTNAME` populate the inquirer prompt defaults.\n * The operator can still override at the prompt; the seed is a\n * convenience, not a lock.\n * - `WILDO_INIT_ADMIN_PASSWORD` is consumed without prompting and\n * threaded into `AdminUserInput.password`. When unset, the password\n * field stays `undefined` and the downstream secrets writer\n * auto-generates a 16-char password (preserves historical UX).\n *\n * Why we never substitute literal placeholders ('Admin' / 'User' /\n * `noreply@example.com`): historically this prompt defaulted firstName\n * to 'Admin' and lastName to 'User', which silently seeded the\n * platform-admin user record with non-meaningful identity. That regressed\n * audit trails, password-reset emails, and the bootstrap email-confirm\n * flow. Slice 2 (F-44 + this 2.3) closes that gap end-to-end: the\n * apps-manager runtime now requires `ADMIN_FIRST_NAME` / `ADMIN_LAST_NAME`\n * (fail-closed) and the CLI prompts no longer offer placeholder defaults.\n */\nexport const platformAdminUserModule: CommandModule<AdminUserModuleCtx, AdminUserInput> = {\n id: 'admin',\n\n async prompt(ctx): Promise<AdminUserInput> {\n ctx.log.info('\\n Platform administrator:\\n');\n\n const emailSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL);\n const firstNameSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME);\n const lastNameSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME);\n const passwordSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD);\n\n const seededKeys = [\n emailSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL,\n firstNameSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME,\n lastNameSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME,\n passwordSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD,\n ].filter((key): key is WildoCliInitAdminEnvKeys => Boolean(key));\n if (seededKeys.length > 0) {\n ctx.log.info(chalk.dim(` Using env-var seeds: ${seededKeys.join(', ')}`));\n }\n\n const email = await input({\n message: 'Email (for platform login):',\n default: emailSeed,\n validate: (val) => {\n if (val.includes('@') && val.includes('.')) return true;\n return 'Please enter a valid email address';\n },\n });\n\n const firstName = await input({\n message: 'First name:',\n default: firstNameSeed,\n validate: (val) => (val.trim().length > 0 ? true : 'First name is required'),\n });\n\n const lastName = await input({\n message: 'Last name:',\n default: lastNameSeed,\n validate: (val) => (val.trim().length > 0 ? true : 'Last name is required'),\n });\n\n return {\n email,\n firstName,\n lastName,\n password: passwordSeed,\n };\n },\n};\n\n/**\n * NON-INTERACTIVE resolver for the platform-administrator identity — the same\n * `WILDO_INIT_ADMIN_*` vocabulary as {@link platformAdminUserModule.prompt}, but with no\n * prompt: every identity field MUST come from the environment.\n *\n * Used by `wildo setup --non-interactive` (headless bootstrap: CI, an automated fresh-VM\n * lane, a scripted re-provision). The interactive module treats the seeds as prompt\n * DEFAULTS the operator may override; here they are the whole input.\n *\n * FAIL-CLOSED on a missing email / firstName / lastName. This deliberately does NOT fall\n * back to placeholders — the same doctrine the interactive prompt documents above: a\n * placeholder identity ('Admin' / 'User' / `noreply@example.com`) silently seeds the\n * platform-admin user record with non-meaningful identity, regressing audit trails,\n * password-reset email, and the bootstrap email-confirm flow, and the apps-manager runtime\n * requires `ADMIN_FIRST_NAME` / `ADMIN_LAST_NAME` fail-closed anyway. A headless caller must\n * therefore state who the administrator is; only the PASSWORD may be omitted (the secrets\n * writer then auto-generates a 16-char one, exactly as in the interactive flow).\n */\nexport function resolveAdminUserFromEnvSeeds(log: Logger): AdminUserInput {\n const email = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL);\n const firstName = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME);\n const lastName = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME);\n const password = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD);\n\n const missing = [\n !email && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL,\n !firstName && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME,\n !lastName && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME,\n ].filter((key): key is WildoCliInitAdminEnvKeys => Boolean(key));\n if (missing.length > 0) {\n throw new Error(\n `Non-interactive setup requires the platform-administrator identity in the environment. Missing: ${missing.join(', ')}. `\n + `Set them and re-run — placeholders are deliberately not substituted (a non-meaningful admin identity breaks audit trails, `\n + `password-reset email, and the bootstrap email-confirm flow). `\n + `${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD} is optional (auto-generated when unset).`,\n );\n }\n if (email && !(email.includes('@') && email.includes('.'))) {\n throw new Error(`${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL} is not a valid email address: \"${email}\".`);\n }\n\n log.info(chalk.dim(` Platform administrator from env seeds: ${email}${password ? '' : ' (password auto-generated)'}`));\n // Non-null assertions are sound: the fail-closed guard above returns for every missing field.\n return { email: email!, firstName: firstName!, lastName: lastName!, password };\n}\n"]}
1
+ {"version":3,"file":"admin-user.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/admin-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAM/F;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,MAAgC;IACnD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC3B,OAAO,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AAC9C,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,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AAG,CAAC,CAAC,CAAC;IACjE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,mGAAmG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;cACvH,4HAA4H;cAC5H,+DAA+D;cAC/D,GAAG,wBAAwB,CAAC,yBAAyB,2CAA2C,CACnG,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,GAAG,wBAAwB,CAAC,sBAAsB,mCAAmC,KAAK,IAAI,CAAC,CAAC;IAClH,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,4CAA4C,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;IACxH,8FAA8F;IAC9F,OAAO,EAAE,KAAK,EAAE,KAAM,EAAE,SAAS,EAAE,SAAU,EAAE,QAAQ,EAAE,QAAS,EAAE,QAAQ,EAAE,CAAC;AACjF,CAAC","sourcesContent":["import chalk from 'chalk';\nimport { input } from '@inquirer/prompts';\nimport type { AdminUserInput } 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 { WildoCliInitAdminEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\n\nexport interface AdminUserModuleCtx {\n log: Logger;\n}\n\n/**\n * Read a `WILDO_INIT_ADMIN_*` env-var seed.\n *\n * Empty strings are treated as missing so that a stray `KEY=` line in a\n * shell profile or CI runner doesn't silently install an empty-string\n * admin identity. Trimmed values are returned verbatim; validation of\n * shape (e.g. email) happens at the prompt boundary below.\n */\nfunction readEnvSeed(envKey: WildoCliInitAdminEnvKeys): string | undefined {\n const raw = process.env[envKey];\n if (raw === undefined) return undefined;\n const trimmed = raw.trim();\n return trimmed === '' ? undefined : trimmed;\n}\n\n/**\n * Interactive collector for the platform-administrator identity used by\n * `wildo setup` (and any future bootstrap entry point).\n *\n * Slice 2 / 2.3 (TARGETED): supports `WILDO_INIT_ADMIN_*` env-var seeding\n * so CI-driven local-setup flows can pre-fill prompts without wiring\n * `wildo setup` itself into a non-interactive harness. Concretely:\n *\n * - `WILDO_INIT_ADMIN_EMAIL` / `WILDO_INIT_ADMIN_FIRSTNAME` /\n * `WILDO_INIT_ADMIN_LASTNAME` populate the inquirer prompt defaults.\n * The operator can still override at the prompt; the seed is a\n * convenience, not a lock.\n * - `WILDO_INIT_ADMIN_PASSWORD` is consumed without prompting and\n * threaded into `AdminUserInput.password`. When unset, the password\n * field stays `undefined` and the downstream secrets writer\n * auto-generates a 16-char password (preserves historical UX).\n *\n * Why we never substitute literal placeholders ('Admin' / 'User' /\n * `noreply@example.com`): historically this prompt defaulted firstName\n * to 'Admin' and lastName to 'User', which silently seeded the\n * platform-admin user record with non-meaningful identity. That regressed\n * audit trails, password-reset emails, and the bootstrap email-confirm\n * flow. Slice 2 (F-44 + this 2.3) closes that gap end-to-end: the\n * apps-manager runtime now requires `ADMIN_FIRST_NAME` / `ADMIN_LAST_NAME`\n * (fail-closed) and the CLI prompts no longer offer placeholder defaults.\n */\nexport const platformAdminUserModule: CommandModule<AdminUserModuleCtx, AdminUserInput> = {\n id: 'admin',\n\n async prompt(ctx): Promise<AdminUserInput> {\n ctx.log.info('\\n Platform administrator:\\n');\n\n const emailSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL);\n const firstNameSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME);\n const lastNameSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME);\n const passwordSeed = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD);\n\n const seededKeys = [\n emailSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL,\n firstNameSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME,\n lastNameSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME,\n passwordSeed && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD,\n ].filter((key): key is WildoCliInitAdminEnvKeys => Boolean(key));\n if (seededKeys.length > 0) {\n ctx.log.info(chalk.dim(` Using env-var seeds: ${seededKeys.join(', ')}`));\n }\n\n const email = await input({\n message: 'Email (for platform login):',\n default: emailSeed,\n validate: (val) => {\n if (val.includes('@') && val.includes('.')) return true;\n return 'Please enter a valid email address';\n },\n });\n\n const firstName = await input({\n message: 'First name:',\n default: firstNameSeed,\n validate: (val) => (val.trim().length > 0 ? true : 'First name is required'),\n });\n\n const lastName = await input({\n message: 'Last name:',\n default: lastNameSeed,\n validate: (val) => (val.trim().length > 0 ? true : 'Last name is required'),\n });\n\n return {\n email,\n firstName,\n lastName,\n password: passwordSeed,\n };\n },\n};\n\n/**\n * NON-INTERACTIVE resolver for the platform-administrator identity — the same\n * `WILDO_INIT_ADMIN_*` vocabulary as {@link platformAdminUserModule.prompt}, but with no\n * prompt: every identity field MUST come from the environment.\n *\n * Used by `wildo setup --non-interactive` (headless bootstrap: CI, an automated fresh-VM\n * lane, a scripted re-provision). The interactive module treats the seeds as prompt\n * DEFAULTS the operator may override; here they are the whole input.\n *\n * FAIL-CLOSED on a missing email / firstName / lastName. This deliberately does NOT fall\n * back to placeholders — the same doctrine the interactive prompt documents above: a\n * placeholder identity ('Admin' / 'User' / `noreply@example.com`) silently seeds the\n * platform-admin user record with non-meaningful identity, regressing audit trails,\n * password-reset email, and the bootstrap email-confirm flow, and the apps-manager runtime\n * requires `ADMIN_FIRST_NAME` / `ADMIN_LAST_NAME` fail-closed anyway. A headless caller must\n * therefore state who the administrator is; only the PASSWORD may be omitted (the secrets\n * writer then auto-generates a 16-char one, exactly as in the interactive flow).\n */\nexport function resolveAdminUserFromEnvSeeds(log: Logger): AdminUserInput {\n const email = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL);\n const firstName = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME);\n const lastName = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME);\n const password = readEnvSeed(WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD);\n\n const missing = [\n !email && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL,\n !firstName && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME,\n !lastName && WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME,\n ].filter((key): key is WildoCliInitAdminEnvKeys => Boolean(key));\n if (missing.length > 0) {\n throw new Error(\n `Non-interactive setup requires the platform-administrator identity in the environment. Missing: ${missing.join(', ')}. `\n + `Set them and re-run — placeholders are deliberately not substituted (a non-meaningful admin identity breaks audit trails, `\n + `password-reset email, and the bootstrap email-confirm flow). `\n + `${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD} is optional (auto-generated when unset).`,\n );\n }\n if (email && !(email.includes('@') && email.includes('.'))) {\n throw new Error(`${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL} is not a valid email address: \"${email}\".`);\n }\n\n log.info(chalk.dim(` Platform administrator from env seeds: ${email}${password ? '' : ' (password auto-generated)'}`));\n // Non-null assertions are sound: the fail-closed guard above returns for every missing field.\n return { email: email!, firstName: firstName!, lastName: lastName!, password };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"approver-user.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/approver-user.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,oGAAoG;IACpG,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED,oBAAY,0BAA0B;IACpC,wIAAwI;IACxI,MAAM,WAAW;IACjB,iFAAiF;IACjF,0BAA0B,+BAA+B;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAejF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC9C,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,GAAG,0BAA0B,CAsD7B"}
1
+ {"version":3,"file":"approver-user.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/approver-user.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,oGAAoG;IACpG,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED,oBAAY,0BAA0B;IACpC,wIAAwI;IACxI,MAAM,WAAW;IACjB,iFAAiF;IACjF,0BAA0B,+BAA+B;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAejF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC9C,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,GAAG,0BAA0B,CAsD7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"approver-user.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/approver-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAmDlG,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,wIAAwI;IACxI,+CAAiB,CAAA;IACjB,iFAAiF;IACjF,uFAAyD,CAAA;AAC3D,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAqB;IAC/D,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;IACrD,2FAA2F;IAC3F,8FAA8F;IAC9F,6CAA6C;IAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEvG,OAAO;QACL,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E,0BAA0B,CAAC,0BAA0B,EAAE,CAAC;AACzF,CAAC;AAED,SAAS,OAAO,CAAC,GAAgC;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IACvC,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC","sourcesContent":["import chalk from 'chalk';\n\nimport { WildoCliInitApproverEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { AdminUserInput } from '~wildo-cli/modules/domain/credentials/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * The SECOND platform administrator — the one who approves an application-wide access grant (#575).\n *\n * ## Why a second identity is not optional\n *\n * `applicationAccessGrantApproverIsDistinct` refuses `operator === approver`, and refuses an ABSENT\n * approver too, so no system context can stand in. The application-scoped grant has deliberately no\n * auto-approval branch — the schema explains that the per-tenant grant may auto-approve because a\n * named tenant can opt in above it, while an application-wide grant names no tenant, so *\"a grant\n * that could approve itself would make the two-person rule ceremonial\"*.\n *\n * A platform with one administrator therefore cannot use the widest read it offers. Not \"is\n * discouraged from\" — cannot. The refusal was built and the party who discharges it never was, which\n * is the shape `.claude/rules/administrative-continuity-floors.md` exists to catch: a block shipped\n * without the paired path.\n *\n * ## Stated, or derived — never invented\n *\n * `admin-user.module.ts` documents at length why the administrator's identity is never a\n * placeholder: a literal `Admin` / `User` / `noreply@example.com` silently seeds the platform-admin\n * USER RECORD with non-meaningful identity, regressing audit trails, password-reset email and the\n * bootstrap email-confirm flow. That doctrine binds here too, and it is why there are exactly two\n * doors and no third:\n *\n * 1. **STATED** — `WILDO_INIT_APPROVER_*`, all four together. Available in every environment; the operator must ensure the account belongs to a separate person when that is required.\n * 2. **DERIVED** — sub-addressed from the administrator the operator already supplied, for a LOCAL\n * environment only.\n *\n * The derived form is not a placeholder: every field of it comes from a real identity the operator\n * authored moments earlier. `ada@example.com` becomes `ada+approver@example.com`, which a mail provider supporting plus-addressing can deliver to the same mailbox — so one developer can complete both legs of the\n * ceremony without a second inbox, which is the whole point of deriving rather than prompting again.\n *\n * ## The local property that must never travel\n *\n * The derived approver shares the administrator's password, so locally ONE PERSON HOLDS BOTH\n * SIGNATURES and the two-person rule is ceremonial there. That is the accepted trade — the\n * alternative is a developer who cannot exercise an application-wide read at all — and it is exactly\n * why {@link resolveApproverIdentity} takes `isLocalEnvironment` as an argument it cannot infer.\n * A caller must SAY that it is local; nothing here guesses, and no environment acquires the\n * derivation by default.\n */\nexport interface ApproverIdentityResolution {\n readonly approver: AdminUserInput;\n /** How the identity was obtained — reported to the operator, because the two differ in strength. */\n readonly provenance: ApproverIdentityProvenance;\n}\n\nexport enum ApproverIdentityProvenance {\n /** Every field came from `WILDO_INIT_APPROVER_*`. An explicitly supplied identity; human independence is an operator responsibility. */\n STATED = 'stated',\n /** Sub-addressed from the administrator, local only. One human, two accounts. */\n DERIVED_FROM_ADMINISTRATOR = 'derived-from-administrator',\n}\n\n/**\n * Sub-address a local approver from the administrator's own identity.\n *\n * Exported for its own pin. The rule is the whole contract and is easy to get subtly wrong: the tag\n * goes before the `@`, an address that ALREADY carries a `+tag` must not grow a second one (that\n * produces `ada+ci+approver@…`, a third mailbox nobody asked for), and the name fields carry through\n * unchanged because they describe the same human.\n */\nexport function deriveLocalApproverIdentity(admin: AdminUserInput): AdminUserInput {\n const separatorIndex = admin.email.lastIndexOf('@');\n const localPart = admin.email.slice(0, separatorIndex);\n const domain = admin.email.slice(separatorIndex + 1);\n // An existing `+tag` is REPLACED, not appended to: `ada+ci@x` and `ada@x` must both derive\n // `ada+approver@x`, or a CI environment and a laptop would disagree about who the approver is\n // while both believing they had derived one.\n const baseLocalPart = localPart.includes('+') ? localPart.slice(0, localPart.indexOf('+')) : localPart;\n\n return {\n email: `${baseLocalPart}+approver@${domain}`,\n firstName: admin.firstName,\n lastName: admin.lastName,\n password: admin.password,\n };\n}\n\n/**\n * Resolve the approver identity for an environment, or refuse.\n *\n * `isLocalEnvironment` is a required argument rather than something read from the ambient\n * environment, so that no caller acquires the derivation by omission. A remote deployment states its\n * approver or gets nothing — and \"nothing\" here is a thrown error, because an approver silently\n * absent is a platform whose widest read stops working weeks later, at a moment nobody connects to\n * setup.\n *\n * `admin.password` may be `undefined` at this point (the secrets writer mints one when the operator\n * typed none), and the derived approver inherits that. The caller resolves both passwords from the\n * same place afterwards, which is what keeps \"same password as the administrator\" true rather than\n * approximately true.\n */\nexport function resolveApproverIdentity(params: {\n readonly admin: AdminUserInput;\n readonly isLocalEnvironment: boolean;\n readonly log: Logger;\n}): ApproverIdentityResolution {\n const stated = {\n email: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL),\n firstName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_FIRSTNAME),\n lastName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME),\n password: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_PASSWORD),\n };\n\n const statedKeys = Object.entries(stated).filter(([, value]) => Boolean(value));\n\n // A PARTIAL set is an operator mistake, never a request to fall back — the same reading\n // `init.command.ts` applies to a partial `--admin-*` flag set. Falling through to the derivation\n // here would silently discard the fields that WERE supplied and hand back a different person.\n if (statedKeys.length > 0 && statedKeys.length < 4) {\n const missing = Object.values(WildoCliInitApproverEnvKeys).filter((key) => !process.env[key]?.trim());\n throw new Error(\n `The approving administrator is partially stated. Missing: ${missing.join(', ')}. `\n + `Set all four, or set none — a partial set would silently produce a different identity than the one intended.`,\n );\n }\n\n if (statedKeys.length === 4) {\n if (stated.email?.toLowerCase() === params.admin.email.toLowerCase()) {\n // The two-person rule compares USER IDs at the moment of approval, so two identical identities\n // would provision one account and refuse every approval — a failure that surfaces far from\n // here and reads as a permissions bug. Refuse where the cause is visible.\n throw new Error(\n `${WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL} is the same address as the administrator's. `\n + `The approving administrator must be a DIFFERENT account: an application-wide access grant refuses an approver who is its own requester.`,\n );\n }\n params.log.info(chalk.dim(` Approving administrator from env seeds: ${stated.email}`));\n return {\n approver: { email: stated.email!, firstName: stated.firstName!, lastName: stated.lastName!, password: stated.password },\n provenance: ApproverIdentityProvenance.STATED,\n };\n }\n\n if (!params.isLocalEnvironment) {\n throw new Error(\n `This environment states no approving administrator. Set ${Object.values(WildoCliInitApproverEnvKeys).join(', ')}. `\n + `An application-wide access grant is approved by a SECOND platform administrator and refuses an approver who is its own requester, `\n + `so a platform with one administrator cannot authorize classified grant-controlled application-wide reads. `\n + `Only a local environment may derive the second identity from the first, and it does so only because one developer holds both — `\n + `which is precisely what a real deployment must not do.`,\n );\n }\n\n const approver = deriveLocalApproverIdentity(params.admin);\n if (approver.email.toLowerCase() === params.admin.email.toLowerCase()) {\n throw new Error('The local approving administrator would be the same account as the administrator. Set all four WILDO_INIT_APPROVER_* inputs for a distinct identity.');\n }\n params.log.info(chalk.dim(` Approving administrator derived for local use: ${approver.email} (same mailbox, same password)`));\n return { approver, provenance: ApproverIdentityProvenance.DERIVED_FROM_ADMINISTRATOR };\n}\n\nfunction readEnv(key: WildoCliInitApproverEnvKeys): string | undefined {\n const value = process.env[key]?.trim();\n return value && value.length > 0 ? value : undefined;\n}\n"]}
1
+ {"version":3,"file":"approver-user.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/approver-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAmDlG,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,wIAAwI;IACxI,+CAAiB,CAAA;IACjB,iFAAiF;IACjF,uFAAyD,CAAA;AAC3D,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED;;;;;;;GAOG;AACH,MAAM,U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,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;cAClH,oIAAoI;cACpI,4GAA4G;cAC5G,iIAAiI;cACjI,wDAAwD,CAC3D,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3D,IAAI,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;QACtE,MAAM,IAAI,KAAK,CAAC,sJAAsJ,CAAC,CAAC;IAC1K,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,oDAAoD,QAAQ,CAAC,KAAK,gCAAgC,CAAC,CAAC,CAAC;IAC/H,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,0BAA0B,CAAC,0BAA0B,EAAE,CAAC;AACzF,CAAC;AAED,SAAS,OAAO,CAAC,GAAgC;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IACvC,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC","sourcesContent":["import chalk from 'chalk';\n\nimport { WildoCliInitApproverEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { AdminUserInput } from '~wildo-cli/modules/domain/credentials/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * The SECOND platform administrator — the one who approves an application-wide access grant (#575).\n *\n * ## Why a second identity is not optional\n *\n * `applicationAccessGrantApproverIsDistinct` refuses `operator === approver`, and refuses an ABSENT\n * approver too, so no system context can stand in. The application-scoped grant has deliberately no\n * auto-approval branch — the schema explains that the per-tenant grant may auto-approve because a\n * named tenant can opt in above it, while an application-wide grant names no tenant, so *\"a grant\n * that could approve itself would make the two-person rule ceremonial\"*.\n *\n * A platform with one administrator therefore cannot use the widest read it offers. Not \"is\n * discouraged from\" — cannot. The refusal was built and the party who discharges it never was, which\n * is the shape `.claude/rules/administrative-continuity-floors.md` exists to catch: a block shipped\n * without the paired path.\n *\n * ## Stated, or derived — never invented\n *\n * `admin-user.module.ts` documents at length why the administrator's identity is never a\n * placeholder: a literal `Admin` / `User` / `noreply@example.com` silently seeds the platform-admin\n * USER RECORD with non-meaningful identity, regressing audit trails, password-reset email and the\n * bootstrap email-confirm flow. That doctrine binds here too, and it is why there are exactly two\n * doors and no third:\n *\n * 1. **STATED** — `WILDO_INIT_APPROVER_*`, all four together. Available in every environment; the operator must ensure the account belongs to a separate person when that is required.\n * 2. **DERIVED** — sub-addressed from the administrator the operator already supplied, for a LOCAL\n * environment only.\n *\n * The derived form is not a placeholder: every field of it comes from a real identity the operator\n * authored moments earlier. `ada@example.com` becomes `ada+approver@example.com`, which a mail provider supporting plus-addressing can deliver to the same mailbox — so one developer can complete both legs of the\n * ceremony without a second inbox, which is the whole point of deriving rather than prompting again.\n *\n * ## The local property that must never travel\n *\n * The derived approver shares the administrator's password, so locally ONE PERSON HOLDS BOTH\n * SIGNATURES and the two-person rule is ceremonial there. That is the accepted trade — the\n * alternative is a developer who cannot exercise an application-wide read at all — and it is exactly\n * why {@link resolveApproverIdentity} takes `isLocalEnvironment` as an argument it cannot infer.\n * A caller must SAY that it is local; nothing here guesses, and no environment acquires the\n * derivation by default.\n */\nexport interface ApproverIdentityResolution {\n readonly approver: AdminUserInput;\n /** How the identity was obtained — reported to the operator, because the two differ in strength. */\n readonly provenance: ApproverIdentityProvenance;\n}\n\nexport enum ApproverIdentityProvenance {\n /** Every field came from `WILDO_INIT_APPROVER_*`. An explicitly supplied identity; human independence is an operator responsibility. */\n STATED = 'stated',\n /** Sub-addressed from the administrator, local only. One human, two accounts. */\n DERIVED_FROM_ADMINISTRATOR = 'derived-from-administrator',\n}\n\n/**\n * Sub-address a local approver from the administrator's own identity.\n *\n * Exported for its own pin. The rule is the whole contract and is easy to get subtly wrong: the tag\n * goes before the `@`, an address that ALREADY carries a `+tag` must not grow a second one (that\n * produces `ada+ci+approver@…`, a third mailbox nobody asked for), and the name fields carry through\n * unchanged because they describe the same human.\n */\nexport function deriveLocalApproverIdentity(admin: AdminUserInput): AdminUserInput {\n const separatorIndex = admin.email.lastIndexOf('@');\n const localPart = admin.email.slice(0, separatorIndex);\n const domain = admin.email.slice(separatorIndex + 1);\n // An existing `+tag` is REPLACED, not appended to: `ada+ci@x` and `ada@x` must both derive\n // `ada+approver@x`, or a CI environment and a laptop would disagree about who the approver is\n // while both believing they had derived one.\n const baseLocalPart = localPart.includes('+') ? localPart.slice(0, localPart.indexOf('+')) : localPart;\n\n return {\n email: `${baseLocalPart}+approver@${domain}`,\n firstName: admin.firstName,\n lastName: admin.lastName,\n password: admin.password,\n };\n}\n\n/**\n * Resolve the approver identity for an environment, or refuse.\n *\n * `isLocalEnvironment` is a required argument rather than something read from the ambient\n * environment, so that no caller acquires the derivation by omission. A remote deployment states its\n * approver or gets nothing — and \"nothing\" here is a thrown error, because an approver silently\n * absent is a platform whose widest read stops working weeks later, at a moment nobody connects to\n * setup.\n *\n * `admin.password` may be `undefined` at this point (the secrets writer mints one when the operator\n * typed none), and the derived approver inherits that. The caller resolves both passwords from the\n * same place afterwards, which is what keeps \"same password as the administrator\" true rather than\n * approximately true.\n */\nexport function resolveApproverIdentity(params: {\n readonly admin: AdminUserInput;\n readonly isLocalEnvironment: boolean;\n readonly log: Logger;\n}): ApproverIdentityResolution {\n const stated = {\n email: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL),\n firstName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_FIRSTNAME),\n lastName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME),\n password: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_PASSWORD),\n };\n\n const statedKeys = Object.entries(stated).filter(([, value]) => Boolean(value));\n\n // A PARTIAL set is an operator mistake, never a request to fall back — the same reading\n // `init.command.ts` applies to a partial `--admin-*` flag set. Falling through to the derivation\n // here would silently discard the fields that WERE supplied and hand back a different person.\n if (statedKeys.length > 0 && statedKeys.length < 4) {\n const missing = Object.values(WildoCliInitApproverEnvKeys).filter((key) => !process.env[key]?.trim());\n throw new Error(\n `The approving administrator is partially stated. Missing: ${missing.join(', ')}. `\n + `Set all four, or set none — a partial set would silently produce a different identity than the one intended.`,\n );\n }\n\n if (statedKeys.length === 4) {\n if (stated.email?.toLowerCase() === params.admin.email.toLowerCase()) {\n // The two-person rule compares USER IDs at the moment of approval, so two identical identities\n // would provision one account and refuse every approval — a failure that surfaces far from\n // here and reads as a permissions bug. Refuse where the cause is visible.\n throw new Error(\n `${WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL} is the same address as the administrator's. `\n + `The approving administrator must be a DIFFERENT account: an application-wide access grant refuses an approver who is its own requester.`,\n );\n }\n params.log.info(chalk.dim(` Approving administrator from env seeds: ${stated.email}`));\n return {\n approver: { email: stated.email!, firstName: stated.firstName!, lastName: stated.lastName!, password: stated.password },\n provenance: ApproverIdentityProvenance.STATED,\n };\n }\n\n if (!params.isLocalEnvironment) {\n throw new Error(\n `This environment states no approving administrator. Set ${Object.values(WildoCliInitApproverEnvKeys).join(', ')}. `\n + `An application-wide access grant is approved by a SECOND platform administrator and refuses an approver who is its own requester, `\n + `so a platform with one administrator cannot authorize classified grant-controlled application-wide reads. `\n + `Only a local environment may derive the second identity from the first, and it does so only because one developer holds both — `\n + `which is precisely what a real deployment must not do.`,\n );\n }\n\n const approver = deriveLocalApproverIdentity(params.admin);\n if (approver.email.toLowerCase() === params.admin.email.toLowerCase()) {\n throw new Error('The local approving administrator would be the same account as the administrator. Set all four WILDO_INIT_APPROVER_* inputs for a distinct identity.');\n }\n params.log.info(chalk.dim(` Approving administrator derived for local use: ${approver.email} (same mailbox, same password)`));\n return { approver, provenance: ApproverIdentityProvenance.DERIVED_FROM_ADMINISTRATOR };\n}\n\nfunction readEnv(key: WildoCliInitApproverEnvKeys): string | undefined {\n const value = process.env[key]?.trim();\n return value && value.length > 0 ? value : undefined;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"creation-essentials.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/creation-essentials.module.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAatD,MAAM,WAAW,wBAAwB;IACvC,gGAAgG;IAChG,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,gFAAgF;IAChF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAiHD,2FAA2F;AAC3F,wBAAsB,2BAA2B,CAAC,KAAK,EAAE;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAIpC"}
1
+ {"version":3,"file":"creation-essentials.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/creation-essentials.module.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAatD,MAAM,WAAW,wBAAwB;IACvC,gGAAgG;IAChG,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,gFAAgF;IAChF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAiHD,2FAA2F;AAC3F,wBAAsB,2BAA2B,CAAC,KAAK,EAAE;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAIpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"creation-essentials.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/creation-essentials.module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,mBAAmB,GAEpB,MAAM,8DAA8D,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAY3J,0EAA0E;AAC1E,SAAS,mBAAmB,CAAC,KAAwB;IACnD,MAAM,KAAK,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC,KAAK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,2FAA2F;AAC3F,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,KAMjD;IACC,MAAM,KAAK,GAAG,MAAM,oBAAoB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACtI,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;AAC1I,CAAC","sourcesContent":["/**\n * What `wildo init` and `wildo setup` ask for before development can start — and nothing else.\n *\n * Decided by Paul, 2026-09-25 (#1637): the coding agent's LOGIN — any supported agent, not only\n * Claude Code — and the API key of the LLM the companion runs on. Every other secret is asked the\n * first time something needs it (`wildo secrets set`, or the workbench's secrets section).\n *\n * This replaced `wildo setup`'s step 6, which offered every provider in the catalogue whatever the\n * application enabled, while the one key a new application cannot work without was asked nowhere.\n *\n * Nothing here refuses: a missing login or key is reported with the exact command that fixes it, and\n * `wildo local doctor`, the `local dev` preflight and the workbench keep saying so. Scaffolding an\n * application must not stop on something a person can fix in the next minute.\n */\nimport { confirm, password, select } from '@inquirer/prompts';\nimport chalk from 'chalk';\n\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\n\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport {\n checkCodingAgentLogin,\n CODING_AGENT_LOGIN_STATE_WORDS,\n listCodingAgents,\n resolveSelectedCodingAgent,\n runCodingAgentLogin,\n type CodingAgentOption,\n} from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { writeMachineDefaults } from '~wildo-cli/services/context/machine-preferences.writer';\nimport { describeSecretValueProblem } from '~wildo-cli/services/credentials/provider-secret-format';\nimport { creationEssentialsGap, loadSecretRequirements, NO_STORED_APPLICATION_SECRETS } from '~wildo-cli/services/credentials/secret-requirements.service';\n\nexport interface CreationEssentialsResult {\n /** The agent selected (and recorded as this machine's preference when chosen interactively). */\n readonly codingAgent: string;\n readonly codingAgentSignedIn: boolean;\n /** Keys typed during this run, to merge into `secrets.json` → `providerEnv`. */\n readonly providerEnv: Record<string, string>;\n /** Whether the companion's LLM has every required key after this run. */\n readonly llmReady: boolean;\n}\n\n/** One line per agent, with its login state, for the selection prompt. */\nfunction describeAgentChoice(agent: CodingAgentOption): string {\n const state = checkCodingAgentLogin(agent).state;\n const words = CODING_AGENT_LOGIN_STATE_WORDS[state];\n const tint = state === CodingAgentHostLoginState.SIGNED_IN ? chalk.green : state === CodingAgentHostLoginState.NOT_INSTALLED ? chalk.dim : chalk.yellow;\n return `${agent.providerRef} (${tint(words)})`;\n}\n\nasync function establishCodingAgent(input: {\n log: Logger;\n interactive: boolean;\n preference?: string;\n}): Promise<{ agent: CodingAgentOption; signedIn: boolean }> {\n const { log } = input;\n let agent: CodingAgentOption;\n try {\n agent = resolveSelectedCodingAgent({ preference: input.preference });\n } catch (error) {\n // A stale preference or a typo in WILDO_CODING_AGENT: say so, and start from the default.\n log.warn(chalk.yellow(` ⚠ ${(error as Error).message}`));\n agent = resolveSelectedCodingAgent({ environment: {} });\n }\n if (input.interactive) {\n const agents = listCodingAgents();\n const chosen = await select({\n message: 'Which coding agent builds this application?',\n default: agent.providerRef,\n choices: agents.map((option) => ({ name: describeAgentChoice(option), value: option.providerRef })),\n });\n agent = agents.find((option) => option.providerRef === chosen) ?? agent;\n if (chosen !== input.preference) {\n writeMachineDefaults({ set: { codingAgent: chosen } });\n log.info(chalk.dim(` Recorded as this machine's coding agent (wildo prefs set --coding-agent ${chosen}).`));\n }\n }\n\n let report = checkCodingAgentLogin(agent);\n if (report.state !== CodingAgentHostLoginState.SIGNED_IN && input.interactive && report.state === CodingAgentHostLoginState.SIGNED_OUT) {\n const now = await confirm({ message: `${agent.providerRef} is not signed in. Sign in now (\\`${agent.hostLogin.loginCommandLine}\\`)?`, default: true });\n if (now) report = runCodingAgentLogin(agent);\n }\n if (report.state === CodingAgentHostLoginState.SIGNED_IN) {\n log.info(chalk.green(` ✓ Coding agent ${agent.providerRef}: ${report.detail}`));\n return { agent, signedIn: true };\n }\n log.warn(chalk.yellow(` ⚠ Coding agent ${agent.providerRef}: ${report.detail}`));\n if (report.remedy) log.warn(chalk.yellow(` ${report.remedy}`));\n log.warn(chalk.yellow(' The build phase cannot run until this is fixed; `wildo local doctor` checks it again.'));\n return { agent, signedIn: false };\n}\n\nasync function establishLlmKey(input: {\n log: Logger;\n interactive: boolean;\n saasRoot: string;\n knownProviderEnv: Readonly<Record<string, string>>;\n}): Promise<{ providerEnv: Record<string, string>; ready: boolean }> {\n const { log } = input;\n // Only the provider section: the creation essentials are one LLM key, and nothing here reads the other kinds.\n const stored = {\n ...NO_STORED_APPLICATION_SECRETS,\n [ApplicationSecretKind.PROVIDER]: new Set(Object.entries(input.knownProviderEnv).filter(([, value]) => value.trim().length > 0).map(([name]) => name)),\n };\n let requirements;\n try {\n requirements = await loadSecretRequirements({ saasRoot: input.saasRoot, stored });\n } catch (error) {\n log.warn(chalk.yellow(` ⚠ Could not read which LLM this application uses: ${(error as Error).message}`));\n return { providerEnv: {}, ready: false };\n }\n const gap = creationEssentialsGap(requirements);\n if (gap.candidates.length === 0) {\n log.warn(chalk.yellow(' ⚠ No LLM provider is scoped to the companion (AI_LLM), so the creation chat and playbooks cannot run.'));\n log.warn(chalk.yellow(' Scope one under providers.scopes.companion in wildo.saas.config.ts.'));\n return { providerEnv: {}, ready: false };\n }\n if (gap.satisfied) {\n const ready = gap.candidates.find((candidate) => candidate.missing.length === 0)!;\n log.info(chalk.green(` ✓ LLM ${ready.providerRef}: its API key is set.`));\n return { providerEnv: {}, ready: true };\n }\n if (!input.interactive) {\n const first = gap.candidates[0]!;\n log.warn(chalk.yellow(` ⚠ No LLM API key: the creation chat and playbooks cannot run.`));\n log.warn(chalk.yellow(` Set one with \\`wildo secrets set ${first.missing[0]!.envVarName}\\` (${first.providerRef}).`));\n return { providerEnv: {}, ready: false };\n }\n\n const providerRef = gap.candidates.length === 1\n ? gap.candidates[0]!.providerRef\n : await select({\n message: 'Which LLM should the companion use? (its key is the one secret development needs)',\n choices: gap.candidates.map((candidate) => ({\n name: `${candidate.providerRef} (${candidate.missing.map((row) => row.envVarName).join(', ')})`,\n value: candidate.providerRef,\n })),\n });\n const candidate = gap.candidates.find((entry) => entry.providerRef === providerRef)!;\n const providerEnv: Record<string, string> = {};\n for (const row of candidate.missing) {\n const value = await password({\n message: `${row.envVarName}${row.description ? ` — ${row.description}` : ''}:`,\n mask: true,\n validate: (raw) => describeSecretValueProblem(row.envVarName, raw, true) ?? true,\n });\n providerEnv[row.envVarName] = value.trim();\n }\n log.info(chalk.green(` ✓ LLM ${providerRef}: key recorded.`));\n return { providerEnv, ready: true };\n}\n\n/** Run the creation essentials: the coding agent's login, then the companion's LLM key. */\nexport async function establishCreationEssentials(input: {\n log: Logger;\n interactive: boolean;\n saasRoot: string;\n knownProviderEnv: Readonly<Record<string, string>>;\n codingAgentPreference?: string;\n}): Promise<CreationEssentialsResult> {\n const agent = await establishCodingAgent({ log: input.log, interactive: input.interactive, preference: input.codingAgentPreference });\n const llm = await establishLlmKey(input);\n return { codingAgent: agent.agent.providerRef, codingAgentSignedIn: agent.signedIn, providerEnv: llm.providerEnv, llmReady: llm.ready };\n}\n"]}
1
+ {"version":3,"file":"creation-essentials.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/creation-essentials.module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC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G,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG;YAC9E,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,0BAA0B,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,IAAI;SACjF,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7C,CAAC;IACD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,WAAW,iBAAiB,CAAC,CAAC,CAAC;IAC/D,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACtC,CAAC;AAED,2FAA2F;AAC3F,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,KAMjD;IACC,MAAM,KAAK,GAAG,MAAM,oBAAoB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACtI,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;AAC1I,CAAC","sourcesContent":["/**\n * What `wildo init` and `wildo setup` ask for before development can start — and nothing else.\n *\n * Decided by Paul, 2026-09-25 (#1637): the coding agent's LOGIN — any supported agent, not only\n * Claude Code — and the API key of the LLM the companion runs on. Every other secret is asked the\n * first time something needs it (`wildo secrets set`, or the workbench's secrets section).\n *\n * This replaced `wildo setup`'s step 6, which offered every provider in the catalogue whatever the\n * application enabled, while the one key a new application cannot work without was asked nowhere.\n *\n * Nothing here refuses: a missing login or key is reported with the exact command that fixes it, and\n * `wildo local doctor`, the `local dev` preflight and the workbench keep saying so. Scaffolding an\n * application must not stop on something a person can fix in the next minute.\n */\nimport { confirm, password, select } from '@inquirer/prompts';\nimport chalk from 'chalk';\n\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\n\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport {\n checkCodingAgentLogin,\n CODING_AGENT_LOGIN_STATE_WORDS,\n listCodingAgents,\n resolveSelectedCodingAgent,\n runCodingAgentLogin,\n type CodingAgentOption,\n} from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { writeMachineDefaults } from '~wildo-cli/services/context/machine-preferences.writer';\nimport { describeSecretValueProblem } from '~wildo-cli/services/credentials/provider-secret-format';\nimport { creationEssentialsGap, loadSecretRequirements, NO_STORED_APPLICATION_SECRETS } from '~wildo-cli/services/credentials/secret-requirements.service';\n\nexport interface CreationEssentialsResult {\n /** The agent selected (and recorded as this machine's preference when chosen interactively). */\n readonly codingAgent: string;\n readonly codingAgentSignedIn: boolean;\n /** Keys typed during this run, to merge into `secrets.json` → `providerEnv`. */\n readonly providerEnv: Record<string, string>;\n /** Whether the companion's LLM has every required key after this run. */\n readonly llmReady: boolean;\n}\n\n/** One line per agent, with its login state, for the selection prompt. */\nfunction describeAgentChoice(agent: CodingAgentOption): string {\n const state = checkCodingAgentLogin(agent).state;\n const words = CODING_AGENT_LOGIN_STATE_WORDS[state];\n const tint = state === CodingAgentHostLoginState.SIGNED_IN ? chalk.green : state === CodingAgentHostLoginState.NOT_INSTALLED ? chalk.dim : chalk.yellow;\n return `${agent.providerRef} (${tint(words)})`;\n}\n\nasync function establishCodingAgent(input: {\n log: Logger;\n interactive: boolean;\n preference?: string;\n}): Promise<{ agent: CodingAgentOption; signedIn: boolean }> {\n const { log } = input;\n let agent: CodingAgentOption;\n try {\n agent = resolveSelectedCodingAgent({ preference: input.preference });\n } catch (error) {\n // A stale preference or a typo in WILDO_CODING_AGENT: say so, and start from the default.\n log.warn(chalk.yellow(` ⚠ ${(error as Error).message}`));\n agent = resolveSelectedCodingAgent({ environment: {} });\n }\n if (input.interactive) {\n const agents = listCodingAgents();\n const chosen = await select({\n message: 'Which coding agent builds this application?',\n default: agent.providerRef,\n choices: agents.map((option) => ({ name: describeAgentChoice(option), value: option.providerRef })),\n });\n agent = agents.find((option) => option.providerRef === chosen) ?? agent;\n if (chosen !== input.preference) {\n writeMachineDefaults({ set: { codingAgent: chosen } });\n log.info(chalk.dim(` Recorded as this machine's coding agent (wildo prefs set --coding-agent ${chosen}).`));\n }\n }\n\n let report = checkCodingAgentLogin(agent);\n if (report.state !== CodingAgentHostLoginState.SIGNED_IN && input.interactive && report.state === CodingAgentHostLoginState.SIGNED_OUT) {\n const now = await confirm({ message: `${agent.providerRef} is not signed in. Sign in now (\\`${agent.hostLogin.loginCommandLine}\\`)?`, default: true });\n if (now) report = runCodingAgentLogin(agent);\n }\n if (report.state === CodingAgentHostLoginState.SIGNED_IN) {\n log.info(chalk.green(` ✓ Coding agent ${agent.providerRef}: ${report.detail}`));\n return { agent, signedIn: true };\n }\n log.warn(chalk.yellow(` ⚠ Coding agent ${agent.providerRef}: ${report.detail}`));\n if (report.remedy) log.warn(chalk.yellow(` ${report.remedy}`));\n log.warn(chalk.yellow(' The build phase cannot run until this is fixed; `wildo local doctor` checks it again.'));\n return { agent, signedIn: false };\n}\n\nasync function establishLlmKey(input: {\n log: Logger;\n interactive: boolean;\n saasRoot: string;\n knownProviderEnv: Readonly<Record<string, string>>;\n}): Promise<{ providerEnv: Record<string, string>; ready: boolean }> {\n const { log } = input;\n // Only the provider section: the creation essentials are one LLM key, and nothing here reads the other kinds.\n const stored = {\n ...NO_STORED_APPLICATION_SECRETS,\n [ApplicationSecretKind.PROVIDER]: new Set(Object.entries(input.knownProviderEnv).filter(([, value]) => value.trim().length > 0).map(([name]) => name)),\n };\n let requirements;\n try {\n requirements = await loadSecretRequirements({ saasRoot: input.saasRoot, stored });\n } catch (error) {\n log.warn(chalk.yellow(` ⚠ Could not read which LLM this application uses: ${(error as Error).message}`));\n return { providerEnv: {}, ready: false };\n }\n const gap = creationEssentialsGap(requirements);\n if (gap.candidates.length === 0) {\n log.warn(chalk.yellow(' ⚠ No LLM provider is scoped to the companion (AI_LLM), so the creation chat and playbooks cannot run.'));\n log.warn(chalk.yellow(' Scope one under providers.scopes.companion in wildo.saas.config.ts.'));\n return { providerEnv: {}, ready: false };\n }\n if (gap.satisfied) {\n const ready = gap.candidates.find((candidate) => candidate.missing.length === 0)!;\n log.info(chalk.green(` ✓ LLM ${ready.providerRef}: its API key is set.`));\n return { providerEnv: {}, ready: true };\n }\n if (!input.interactive) {\n const first = gap.candidates[0]!;\n log.warn(chalk.yellow(` ⚠ No LLM API key: the creation chat and playbooks cannot run.`));\n log.warn(chalk.yellow(` Set one with \\`wildo secrets set ${first.missing[0]!.envVarName}\\` (${first.providerRef}).`));\n return { providerEnv: {}, ready: false };\n }\n\n const providerRef = gap.candidates.length === 1\n ? gap.candidates[0]!.providerRef\n : await select({\n message: 'Which LLM should the companion use? (its key is the one secret development needs)',\n choices: gap.candidates.map((candidate) => ({\n name: `${candidate.providerRef} (${candidate.missing.map((row) => row.envVarName).join(', ')})`,\n value: candidate.providerRef,\n })),\n });\n const candidate = gap.candidates.find((entry) => entry.providerRef === providerRef)!;\n const providerEnv: Record<string, string> = {};\n for (const row of candidate.missing) {\n const value = await password({\n message: `${row.envVarName}${row.description ? ` — ${row.description}` : ''}:`,\n mask: true,\n validate: (raw) => describeSecretValueProblem(row.envVarName, raw, true) ?? true,\n });\n providerEnv[row.envVarName] = value.trim();\n }\n log.info(chalk.green(` ✓ LLM ${providerRef}: key recorded.`));\n return { providerEnv, ready: true };\n}\n\n/** Run the creation essentials: the coding agent's login, then the companion's LLM key. */\nexport async function establishCreationEssentials(input: {\n log: Logger;\n interactive: boolean;\n saasRoot: string;\n knownProviderEnv: Readonly<Record<string, string>>;\n codingAgentPreference?: string;\n}): Promise<CreationEssentialsResult> {\n const agent = await establishCodingAgent({ log: input.log, interactive: input.interactive, preference: input.codingAgentPreference });\n const llm = await establishLlmKey(input);\n return { codingAgent: agent.agent.providerRef, codingAgentSignedIn: agent.signedIn, providerEnv: llm.providerEnv, llmReady: llm.ready };\n}\n"]}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.types.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/credentials/module.types.ts"],"names":[],"mappings":"","sourcesContent":["export type { AdminUserInput, ProviderKeysInput } from '~wildo-cli/services/credentials/credentials.schemas';\n"]}
1
+ {"version":3,"file":"module.types.js","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/module.types.ts"],"names":[],"mappings":"","sourcesContent":["export type { AdminUserInput, ProviderKeysInput } from '~wildo-cli/services/credentials/credentials.schemas';\n"]}
@@ -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":"database-config.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/database-config.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,8CAA8C,EAA0B,MAAM,yDAAyD,CAAC;AAEvL,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAUvF,MAAM,CAAC,MAAM,oCAAoC,GAAkE;IACjH,EAAE,EAAE,UAAU;IAEd;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;QAEpB,M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B,OAAO,EAAE,oCAAoC,CAAC,oBAAoB;iBACnE,CAAC,CAAC;YACL,CAAC;YAED,OAAO;gBACL,QAAQ;gBACR,kBAAkB;gBAClB,cAAc,EAAE,cAAc,IAAI,SAAS;gBAC3C,iBAAiB,EAAE,iBAAiB,IAAI,SAAS;gBACjD,kBAAkB,EAAE,kBAAkB,IAAI,SAAS;gBACnD,gBAAgB,EAAE,gBAAgB,IAAI,SAAS;gBAC/C,eAAe,EAAE,eAAe,IAAI,SAAS;aAC9C,CAAC;QACJ,CAAC;QAED,OAAO,EAAE,QAAQ,EAAE,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG;QACtB,gBAAgB,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;CACF,CAAC","sourcesContent":["import { confirm, select, input } from '@inquirer/prompts';\n\nimport { BackingServiceSource, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { DEFAULT_PLATFORM_ATLAS_CONFIGURATION, DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE, PlatformDatabaseChoice } from '~wildo-cli/services/data-services/data-services.schemas';\nimport type { DatabaseInitializationInput } from '~wildo-cli/services/data-services/data-services.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nexport interface DatabaseModuleCtx {\n envName: string;\n log: Logger;\n isFrameworkDeveloper: boolean;\n}\n\nexport const platformDatabaseInitializationModule: CommandModule<DatabaseModuleCtx, DatabaseInitializationInput> = {\n id: 'database',\n\n /**\n * Prompt for the platform's database engine.\n *\n * **`isFrameworkDeveloper` deliberately does NOT participate in this choice.** It used to: a\n * framework-developer environment was forced to MongoDB and never shown the PostgreSQL option,\n * on the reasoning that PostgreSQL provisioning is experimental. That made the engine\n * *unreachable* rather than merely non-default in the one repository where the PostgreSQL work\n * is actually done — and, because this module is the only writer of the registry's `database`\n * field, it made a PostgreSQL platform impossible to stand up there at all.\n *\n * Experimental-ness is a reason for a DEFAULT and a WARNING, both of which are kept below. A\n * context flag that silently removes an option is a second, invisible authority over a decision\n * that now has an explicit one: the authored `database` block in `wildo.infra.<env>.config.ts`.\n * One decision, one place.\n *\n * This module is not consulted at all when the environment authors `database` — see\n * `environment-setup.service.ts`. It remains the interactive path for environments that do not.\n *\n * `isFrameworkDeveloper` is untouched everywhere ELSE (native vs containerized platform services,\n * registry resolution); this change is scoped to the engine choice.\n */\n async prompt(ctx): Promise<DatabaseInitializationInput> {\n const { log } = ctx;\n\n const engine = await select({\n message: 'Primary database engine:',\n choices: [\n {\n value: DatabaseEngine.MONGODB,\n name: `MongoDB (stable, recommended)\n • Document-oriented, native Wildo support\n • Local Docker or MongoDB Atlas`,\n },\n {\n value: DatabaseEngine.POSTGRESQL,\n name: `PostgreSQL (experimental)\n • Relational database\n • Experimental bootstrap path, limited validation`,\n },\n ],\n default: DatabaseEngine.MONGODB,\n });\n\n if (engine === DatabaseEngine.POSTGRESQL) {\n const proceedWithExperimentalPostgreSQL = await confirm({\n message: 'PostgreSQL support is experimental. Continue with a self-managed local PostgreSQL setup?',\n default: false,\n });\n\n if (!proceedWithExperimentalPostgreSQL) {\n return this.prompt(ctx);\n }\n\n return {\n database: {\n engine: DatabaseEngine.POSTGRESQL,\n source: BackingServiceSource.SELF,\n },\n };\n }\n\n // Slice 4.B.0 (2026-05-07): the prompt offers a binary\n // self-vs-managed choice (`source`); when the operator picks\n // managed, we record `provider: 'atlas'` because that is the\n // ONLY managed Mongo brand we currently support end-to-end.\n // Future: when other managed Mongo brands surface (DocumentDB,\n // …), expand the choice list to a three-step menu (source →\n // brand → connection details).\n const source = await select({\n message: 'MongoDB source:',\n choices: [\n {\n value: BackingServiceSource.SELF,\n name: `Local (Docker container)\n • Runs MongoDB 7 in Docker, no external dependency`,\n },\n {\n value: BackingServiceSource.MANAGED,\n name: `External (MongoDB Atlas)\n • Use an existing MongoDB Atlas instance`,\n },\n ],\n default: BackingServiceSource.SELF,\n });\n\n const database: PlatformDatabaseChoice = {\n engine: DatabaseEngine.MONGODB,\n source,\n ...(source === BackingServiceSource.MANAGED ? { provider: 'atlas' } : {}),\n };\n\n if (source === BackingServiceSource.MANAGED) {\n const atlasConnectionUrl = await input({\n message: 'MongoDB connection URL:',\n validate: (val) => {\n if (val.startsWith(DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SCHEME) || val.startsWith(DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SRV_SCHEME)) return true;\n return `Must start with ${DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SCHEME} or ${DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SRV_SCHEME}`;\n },\n });\n\n log.info('\\n OPTIONAL — Atlas API configuration (press Enter to skip)\\n');\n\n const atlasProjectId = await input({ message: 'Atlas Project ID (optional):' });\n let atlasApiPublicKey = '';\n let atlasApiPrivateKey = '';\n let atlasClusterName = '';\n let atlasApiBaseUrl = '';\n\n if (atlasProjectId) {\n atlasApiPublicKey = await input({ message: 'Atlas API Public Key:' });\n atlasApiPrivateKey = await input({ message: 'Atlas API Private Key:' });\n atlasClusterName = await input({ message: 'Atlas Cluster Name:', default: DEFAULT_PLATFORM_ATLAS_CONFIGURATION.DEFAULT_CLUSTER_NAME });\n atlasApiBaseUrl = await input({\n message: 'Atlas API Base URL:',\n default: DEFAULT_PLATFORM_ATLAS_CONFIGURATION.DEFAULT_API_BASE_URL,\n });\n }\n\n return {\n database,\n atlasConnectionUrl,\n atlasProjectId: atlasProjectId || undefined,\n atlasApiPublicKey: atlasApiPublicKey || undefined,\n atlasApiPrivateKey: atlasApiPrivateKey || undefined,\n atlasClusterName: atlasClusterName || undefined,\n atlasApiBaseUrl: atlasApiBaseUrl || undefined,\n };\n }\n\n return { database };\n },\n\n async apply(answers, ctx): Promise<void> {\n EnvironmentUtils.setDatabaseChoice(answers.database, ctx.envName);\n },\n};\n"]}
1
+ {"version":3,"file":"database-config.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/database-config.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,8CAA8C,EAA0B,MAAM,yDAAyD,CAAC;AAEvL,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAUvF,MAAM,CAAC,MAAM,oCAAoC,GAAkE;IACjH,EAAE,EAAE,UAAU;IAEd;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;QAEpB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC;YAC1B,OAAO,EAAE,0BAA0B;YACnC,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,cAAc,CAAC,OAAO;oBAC7B,IAAI,EAAE;;sCAEsB;iBAC7B;gBACD;oBACE,KAAK,EAAE,cAAc,CAAC,UAAU;oBAChC,IAAI,EAAE;;wDAEwC;iBAC/C;aACF;YACD,OAAO,EAAE,cAAc,CAAC,OAAO;SAChC,CAAC,CAAC;QAEH,IAAI,MAAM,KAAK,cAAc,CAAC,UAAU,EAAE,CAAC;YACzC,MAAM,iCAAiC,GAAG,MAAM,OAAO,CAAC;gBACtD,OAAO,EAAE,0FAA0F;gBACnG,OAAO,EAAE,KAAK;aACf,CAAC,CAAC;YAEH,IAAI,CAAC,iCAAiC,EAAE,CAAC;gBACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1B,CAAC;YAED,OAAO;gBACL,QAAQ,EAAE;oBACR,MAAM,EAA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/platform-config-lib';\nimport { DEFAULT_PLATFORM_ATLAS_CONFIGURATION, DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE, PlatformDatabaseChoice } from '~wildo-cli/services/data-services/data-services.schemas';\nimport type { DatabaseInitializationInput } from '~wildo-cli/services/data-services/data-services.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nexport interface DatabaseModuleCtx {\n envName: string;\n log: Logger;\n isFrameworkDeveloper: boolean;\n}\n\nexport const platformDatabaseInitializationModule: CommandModule<DatabaseModuleCtx, DatabaseInitializationInput> = {\n id: 'database',\n\n /**\n * Prompt for the platform's database engine.\n *\n * **`isFrameworkDeveloper` deliberately does NOT participate in this choice.** It used to: a\n * framework-developer environment was forced to MongoDB and never shown the PostgreSQL option,\n * on the reasoning that PostgreSQL provisioning is experimental. That made the engine\n * *unreachable* rather than merely non-default in the one repository where the PostgreSQL work\n * is actually done — and, because this module is the only writer of the registry's `database`\n * field, it made a PostgreSQL platform impossible to stand up there at all.\n *\n * Experimental-ness is a reason for a DEFAULT and a WARNING, both of which are kept below. A\n * context flag that silently removes an option is a second, invisible authority over a decision\n * that now has an explicit one: the authored `database` block in `wildo.infra.<env>.config.ts`.\n * One decision, one place.\n *\n * This module is not consulted at all when the environment authors `database` — see\n * `environment-setup.service.ts`. It remains the interactive path for environments that do not.\n *\n * `isFrameworkDeveloper` is untouched everywhere ELSE (native vs containerized platform services,\n * registry resolution); this change is scoped to the engine choice.\n */\n async prompt(ctx): Promise<DatabaseInitializationInput> {\n const { log } = ctx;\n\n const engine = await select({\n message: 'Primary database engine:',\n choices: [\n {\n value: DatabaseEngine.MONGODB,\n name: `MongoDB (stable, recommended)\n • Document-oriented, native Wildo support\n • Local Docker or MongoDB Atlas`,\n },\n {\n value: DatabaseEngine.POSTGRESQL,\n name: `PostgreSQL (experimental)\n • Relational database\n • Experimental bootstrap path, limited validation`,\n },\n ],\n default: DatabaseEngine.MONGODB,\n });\n\n if (engine === DatabaseEngine.POSTGRESQL) {\n const proceedWithExperimentalPostgreSQL = await confirm({\n message: 'PostgreSQL support is experimental. Continue with a self-managed local PostgreSQL setup?',\n default: false,\n });\n\n if (!proceedWithExperimentalPostgreSQL) {\n return this.prompt(ctx);\n }\n\n return {\n database: {\n engine: DatabaseEngine.POSTGRESQL,\n source: BackingServiceSource.SELF,\n },\n };\n }\n\n // Slice 4.B.0 (2026-05-07): the prompt offers a binary\n // self-vs-managed choice (`source`); when the operator picks\n // managed, we record `provider: 'atlas'` because that is the\n // ONLY managed Mongo brand we currently support end-to-end.\n // Future: when other managed Mongo brands surface (DocumentDB,\n // …), expand the choice list to a three-step menu (source →\n // brand → connection details).\n const source = await select({\n message: 'MongoDB source:',\n choices: [\n {\n value: BackingServiceSource.SELF,\n name: `Local (Docker container)\n • Runs MongoDB 7 in Docker, no external dependency`,\n },\n {\n value: BackingServiceSource.MANAGED,\n name: `External (MongoDB Atlas)\n • Use an existing MongoDB Atlas instance`,\n },\n ],\n default: BackingServiceSource.SELF,\n });\n\n const database: PlatformDatabaseChoice = {\n engine: DatabaseEngine.MONGODB,\n source,\n ...(source === BackingServiceSource.MANAGED ? { provider: 'atlas' } : {}),\n };\n\n if (source === BackingServiceSource.MANAGED) {\n const atlasConnectionUrl = await input({\n message: 'MongoDB connection URL:',\n validate: (val) => {\n if (val.startsWith(DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SCHEME) || val.startsWith(DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SRV_SCHEME)) return true;\n return `Must start with ${DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SCHEME} or ${DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE.SRV_SCHEME}`;\n },\n });\n\n log.info('\\n OPTIONAL — Atlas API configuration (press Enter to skip)\\n');\n\n const atlasProjectId = await input({ message: 'Atlas Project ID (optional):' });\n let atlasApiPublicKey = '';\n let atlasApiPrivateKey = '';\n let atlasClusterName = '';\n let atlasApiBaseUrl = '';\n\n if (atlasProjectId) {\n atlasApiPublicKey = await input({ message: 'Atlas API Public Key:' });\n atlasApiPrivateKey = await input({ message: 'Atlas API Private Key:' });\n atlasClusterName = await input({ message: 'Atlas Cluster Name:', default: DEFAULT_PLATFORM_ATLAS_CONFIGURATION.DEFAULT_CLUSTER_NAME });\n atlasApiBaseUrl = await input({\n message: 'Atlas API Base URL:',\n default: DEFAULT_PLATFORM_ATLAS_CONFIGURATION.DEFAULT_API_BASE_URL,\n });\n }\n\n return {\n database,\n atlasConnectionUrl,\n atlasProjectId: atlasProjectId || undefined,\n atlasApiPublicKey: atlasApiPublicKey || undefined,\n atlasApiPrivateKey: atlasApiPrivateKey || undefined,\n atlasClusterName: atlasClusterName || undefined,\n atlasApiBaseUrl: atlasApiBaseUrl || undefined,\n };\n }\n\n return { database };\n },\n\n async apply(answers, ctx): Promise<void> {\n EnvironmentUtils.setDatabaseChoice(answers.database, ctx.envName);\n },\n};\n"]}
@@ -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":"module.types.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/module.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { WildoDeploymentRuntime } from '@wildo-ai/platform-config-lib';\nimport type { RuntimeEnvironment } from '@wildo-ai/saas-models';\n\nexport interface PathsConfig {\n secretsPath: string;\n configPath: string;\n infraPath: string;\n}\n\nexport interface RuntimeChoice {\n runtime: WildoDeploymentRuntime;\n}\n\nexport interface RuntimeSemanticsChoice {\n runtimeEnvironment?: RuntimeEnvironment;\n}\n"]}
1
+ {"version":3,"file":"module.types.js","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/module.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { WildoDeploymentRuntime } from '@wildo-ai/platform-config-lib';\nimport type { RuntimeEnvironment } from '@wildo-ai/saas-models';\n\nexport interface PathsConfig {\n secretsPath: string;\n configPath: string;\n infraPath: string;\n}\n\nexport interface RuntimeChoice {\n runtime: WildoDeploymentRuntime;\n}\n\nexport interface RuntimeSemanticsChoice {\n runtimeEnvironment?: RuntimeEnvironment;\n}\n"]}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"paths-config.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/paths-config.module.ts"],"names":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input } from '@inquirer/prompts';\nimport { homedir } from 'os';\nimport { join, resolve } from 'path';\n\nimport type { PathsConfig } from '~wildo-cli/modules/domain/environment/module.types';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nexport interface PathsModuleCtx {\n envName: string;\n saasRoot: string;\n isFirstTime: boolean;\n isFrameworkDeveloper: boolean;\n frameworkPath: string;\n currentSecrets?: string;\n currentConfig?: string;\n log: Logger;\n}\n\nexport const platformPathsModule: CommandModule<PathsModuleCtx, PathsConfig> = {\n id: 'paths',\n\n async prompt(ctx): Promise<PathsConfig> {\n const { log } = ctx;\n const defaultSecretsPath = EnvironmentPaths.resolveScopedSecretsBase(ctx.saasRoot);\n const defaultConfigPath = EnvironmentPaths.resolveScopedConfigBase(ctx.saasRoot);\n const defaultInfraPath = EnvironmentPaths.resolveScopedInfraBase(ctx.saasRoot);\n let secretsPath: string;\n let configPath: string;\n let infraPath: string;\n\n const siblingRepo = ctx.isFrameworkDeveloper\n ? EnvironmentUtils.detectSiblingSecretsRepo(ctx.frameworkPath)\n : null;\n\n if (siblingRepo) {\n log.info(`\\n Detected wildo-secrets repo at: ${siblingRepo}\\n`);\n const choice = await select({\n message: 'Where should secrets and configuration be stored?',\n choices: [\n { value: 'sibling', name: `Use detected repo (recommended for framework development)` },\n { value: 'default', name: `${defaultSecretsPath} + ${defaultConfigPath} (default, scoped to this app root)` },\n { value: 'custom', name: 'Custom paths' },\n ],\n default: 'sibling',\n });\n\n if (choice === 'sibling') {\n secretsPath = siblingRepo;\n configPath = siblingRepo;\n } else if (choice === 'custom') {\n secretsPath = await promptPath('Secrets path:', defaultSecretsPath);\n configPath = await promptPath('Config path:', defaultConfigPath);\n } else {\n secretsPath = defaultSecretsPath;\n configPath = defaultConfigPath;\n }\n } else {\n if (!ctx.isFirstTime) {\n log.info(`\\n Current secrets path: ${ctx.currentSecrets}`);\n log.info(` Current config path: ${ctx.currentConfig}\\n`);\n }\n\n const choice = await select({\n message: 'Where should secrets and configuration be stored?',\n choices: [\n { value: 'default', name: `${defaultSecretsPath} (default, scoped to this app root)` },\n { value: 'custom', name: 'Custom path' },\n ],\n default: 'default',\n });\n\n if (choice === 'custom') {\n secretsPath = await promptPath('Secrets path:', defaultSecretsPath);\n configPath = await promptPath('Config path:', defaultConfigPath);\n } else {\n secretsPath = defaultSecretsPath;\n configPath = defaultConfigPath;\n }\n }\n\n const infraChoice = await select({\n message: 'Where should generated infrastructure files be stored?',\n choices: [\n { value: 'default', name: `${defaultInfraPath} (default, scoped to this app root)` },\n { value: 'custom', name: 'Custom path' },\n ],\n default: 'default',\n });\n\n infraPath = infraChoice === 'custom'\n ? await promptPath('Infrastructure path:', defaultInfraPath)\n : defaultInfraPath;\n\n return { secretsPath, configPath, infraPath };\n },\n\n async apply(answers, ctx): Promise<void> {\n EnvironmentUtils.setPaths({\n secretsPath: answers.secretsPath,\n configPath: answers.configPath,\n infraPath: answers.infraPath,\n }, ctx.envName);\n },\n};\n\nasync function promptPath(message: string, defaultValue: string): Promise<string> {\n const raw = await input({ message, default: defaultValue });\n return raw.startsWith('~') ? join(homedir(), raw.slice(1)) : resolve(raw);\n}\n"]}
1
+ {"version":3,"file":"paths-config.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/paths-config.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAevF,MAAM,CAAC,MAAM,mBAAmB,G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AQ,EAAE,IAAI,EAAE,aAAa,EAAE;aACzC;YACD,OAAO,EAAE,SAAS;SACnB,CAAC,CAAC;QAEH,SAAS,GAAG,WAAW,KAAK,QAAQ;YAClC,CAAC,CAAC,MAAM,UAAU,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;YAC5D,CAAC,CAAC,gBAAgB,CAAC;QAErB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG;QACtB,gBAAgB,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAClB,CAAC;CACF,CAAC;AAEF,KAAK,UAAU,UAAU,CAAC,OAAe,EAAE,YAAoB;IAC7D,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IAC5D,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5E,CAAC","sourcesContent":["import { select, input } from '@inquirer/prompts';\nimport { homedir } from 'os';\nimport { join, resolve } from 'path';\n\nimport type { PathsConfig } from '~wildo-cli/modules/domain/environment/module.types';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nexport interface PathsModuleCtx {\n envName: string;\n saasRoot: string;\n isFirstTime: boolean;\n isFrameworkDeveloper: boolean;\n frameworkPath: string;\n currentSecrets?: string;\n currentConfig?: string;\n log: Logger;\n}\n\nexport const platformPathsModule: CommandModule<PathsModuleCtx, PathsConfig> = {\n id: 'paths',\n\n async prompt(ctx): Promise<PathsConfig> {\n const { log } = ctx;\n const defaultSecretsPath = EnvironmentPaths.resolveScopedSecretsBase(ctx.saasRoot);\n const defaultConfigPath = EnvironmentPaths.resolveScopedConfigBase(ctx.saasRoot);\n const defaultInfraPath = EnvironmentPaths.resolveScopedInfraBase(ctx.saasRoot);\n let secretsPath: string;\n let configPath: string;\n let infraPath: string;\n\n const siblingRepo = ctx.isFrameworkDeveloper\n ? EnvironmentUtils.detectSiblingSecretsRepo(ctx.frameworkPath)\n : null;\n\n if (siblingRepo) {\n log.info(`\\n Detected wildo-secrets repo at: ${siblingRepo}\\n`);\n const choice = await select({\n message: 'Where should secrets and configuration be stored?',\n choices: [\n { value: 'sibling', name: `Use detected repo (recommended for framework development)` },\n { value: 'default', name: `${defaultSecretsPath} + ${defaultConfigPath} (default, scoped to this app root)` },\n { value: 'custom', name: 'Custom paths' },\n ],\n default: 'sibling',\n });\n\n if (choice === 'sibling') {\n secretsPath = siblingRepo;\n configPath = siblingRepo;\n } else if (choice === 'custom') {\n secretsPath = await promptPath('Secrets path:', defaultSecretsPath);\n configPath = await promptPath('Config path:', defaultConfigPath);\n } else {\n secretsPath = defaultSecretsPath;\n configPath = defaultConfigPath;\n }\n } else {\n if (!ctx.isFirstTime) {\n log.info(`\\n Current secrets path: ${ctx.currentSecrets}`);\n log.info(` Current config path: ${ctx.currentConfig}\\n`);\n }\n\n const choice = await select({\n message: 'Where should secrets and configuration be stored?',\n choices: [\n { value: 'default', name: `${defaultSecretsPath} (default, scoped to this app root)` },\n { value: 'custom', name: 'Custom path' },\n ],\n default: 'default',\n });\n\n if (choice === 'custom') {\n secretsPath = await promptPath('Secrets path:', defaultSecretsPath);\n configPath = await promptPath('Config path:', defaultConfigPath);\n } else {\n secretsPath = defaultSecretsPath;\n configPath = defaultConfigPath;\n }\n }\n\n const infraChoice = await select({\n message: 'Where should generated infrastructure files be stored?',\n choices: [\n { value: 'default', name: `${defaultInfraPath} (default, scoped to this app root)` },\n { value: 'custom', name: 'Custom path' },\n ],\n default: 'default',\n });\n\n infraPath = infraChoice === 'custom'\n ? await promptPath('Infrastructure path:', defaultInfraPath)\n : defaultInfraPath;\n\n return { secretsPath, configPath, infraPath };\n },\n\n async apply(answers, ctx): Promise<void> {\n EnvironmentUtils.setPaths({\n secretsPath: answers.secretsPath,\n configPath: answers.configPath,\n infraPath: answers.infraPath,\n }, ctx.envName);\n },\n};\n\nasync function promptPath(message: string, defaultValue: string): Promise<string> {\n const raw = await input({ message, default: defaultValue });\n return raw.startsWith('~') ? join(homedir(), raw.slice(1)) : resolve(raw);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-selector.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/runtime-selector.module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,gBAAgB,EAAE,aAAa,CA6BxE,CAAC"}
1
+ {"version":3,"file":"runtime-selector.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/runtime-selector.module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,gBAAgB,EAAE,aAAa,CA6BxE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-selector.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/runtime-selector.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAQvE,MAAM,CAAC,MAAM,aAAa,GAAmD;IAC3E,EAAE,EAAE,SAAS;IAEb,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC;YAC9B,OAAO,EAAE,OAAO,EAAE,sBAAsB,CAAC,cAAc,EAAE,CAAC;QAC5D,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC;YAC1B,OAAO,EAAE,yBAAyB;YAClC,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,sBAAsB,CAAC,cAAc;oBAC5C,IAAI,EAAE;;sDAEsC;iBAC7C;gBACD;oBACE,KAAK,EAAE,sBAAsB,CAAC,UAAU;oBACxC,IAAI,EAAE;;2CAE2B;iBAClC;aACF;YACD,OAAO,EAAE,sBAAsB,CAAC,cAAc;SAC/C,CAAC,CAAC;QAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAC7B,CAAC;CACF,CAAC","sourcesContent":["import { select } from '@inquirer/prompts';\nimport { WildoDeploymentRuntime } from '@wildo-ai/platform-config-lib';\nimport type { RuntimeChoice } from '~wildo-cli/modules/domain/environment/module.types';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\n\nexport interface RuntimeModuleCtx {\n isFrameworkDeveloper: boolean;\n}\n\nexport const runtimeModule: CommandModule<RuntimeModuleCtx, RuntimeChoice> = {\n id: 'runtime',\n\n async prompt(ctx): Promise<RuntimeChoice> {\n if (!ctx.isFrameworkDeveloper) {\n return { runtime: WildoDeploymentRuntime.DOCKER_COMPOSE };\n }\n\n const choice = await select({\n message: 'Infrastructure runtime:',\n choices: [\n {\n value: WildoDeploymentRuntime.DOCKER_COMPOSE,\n name: `Docker Compose (recommended)\n • Simple, runs all services as containers\n • Platform services run natively for hot-reload`,\n },\n {\n value: WildoDeploymentRuntime.KUBERNETES,\n name: `Kubernetes (Kind cluster)\n • Full K8s environment for production-like testing\n • Requires more resources (~8GB RAM)`,\n },\n ],\n default: WildoDeploymentRuntime.DOCKER_COMPOSE,\n });\n\n return { runtime: choice };\n },\n};\n"]}
1
+ {"version":3,"file":"runtime-selector.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/runtime-selector.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAQvE,MAAM,CAAC,MAAM,aAAa,GAAmD;IAC3E,EAAE,EAAE,SAAS;IAEb,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC;YAC9B,OAAO,EAAE,OAAO,EAAE,sBAAsB,CAAC,cAAc,EAAE,CAAC;QAC5D,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC;YAC1B,OAAO,EAAE,yBAAyB;YAClC,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,sBAAsB,CAAC,cAAc;oBAC5C,IAAI,EAAE;;sDAEsC;iBAC7C;gBACD;oBACE,KAAK,EAAE,sBAAsB,CAAC,UAAU;oBACxC,IAAI,EAAE;;2CAE2B;iBAClC;aACF;YACD,OAAO,EAAE,sBAAsB,CAAC,cAAc;SAC/C,CAAC,CAAC;QAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAC7B,CAAC;CACF,CAAC","sourcesContent":["import { select } from '@inquirer/prompts';\nimport { WildoDeploymentRuntime } from '@wildo-ai/platform-config-lib';\nimport type { RuntimeChoice } from '~wildo-cli/modules/domain/environment/module.types';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\n\nexport interface RuntimeModuleCtx {\n isFrameworkDeveloper: boolean;\n}\n\nexport const runtimeModule: CommandModule<RuntimeModuleCtx, RuntimeChoice> = {\n id: 'runtime',\n\n async prompt(ctx): Promise<RuntimeChoice> {\n if (!ctx.isFrameworkDeveloper) {\n return { runtime: WildoDeploymentRuntime.DOCKER_COMPOSE };\n }\n\n const choice = await select({\n message: 'Infrastructure runtime:',\n choices: [\n {\n value: WildoDeploymentRuntime.DOCKER_COMPOSE,\n name: `Docker Compose (recommended)\n • Simple, runs all services as containers\n • Platform services run natively for hot-reload`,\n },\n {\n value: WildoDeploymentRuntime.KUBERNETES,\n name: `Kubernetes (Kind cluster)\n • Full K8s environment for production-like testing\n • Requires more resources (~8GB RAM)`,\n },\n ],\n default: WildoDeploymentRuntime.DOCKER_COMPOSE,\n });\n\n return { runtime: choice };\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-semantics.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/runtime-semantics.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,yBAAyB,EAAE,sBAAsB,CAiCnG,CAAC"}
1
+ {"version":3,"file":"runtime-semantics.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/runtime-semantics.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,yBAAyB,EAAE,sBAAsB,CAiCnG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-semantics.module.js","sourceRoot":"","sources":["../../../../../../../src/modules/domain/environment/runtime-semantics.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQ3D,MAAM,CAAC,MAAM,sBAAsB,GAAqE;IACtG,EAAE,EAAE,mBAAmB;IAEvB,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,IAAI,GAAG,CAAC,YAAY,KAAK,iBAAiB,CAAC,KAAK,EAAE,CAAC;YACjD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,WAAW,EAAE,CAAC;QAChE,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC;YAC1B,OAAO,EAAE,gEAAgE;YACzE,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,kBAAkB,CAAC,WAAW;oBACrC,IAAI,EAAE,aAAa;iBACpB;gBACD;oBACE,KAAK,EAAE,kBAAkB,CAAC,OAAO;oBACjC,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,KAAK,EAAE,kBAAkB,CAAC,UAAU;oBACpC,IAAI,EAAE,YAAY;iBACnB;gBACD;oBACE,KAAK,EAAE,kBAAkB,CAAC,IAAI;oBAC9B,IAAI,EAAE,MAAM;iBACb;aACF;YACD,OAAO,EAAE,kBAAkB,CAAC,OAAO;SACpC,CAAC,CAAC;QAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { select } from '@inquirer/prompts';\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { RuntimeEnvironment } from '@wildo-ai/saas-models';\nimport type { RuntimeSemanticsChoice } from '~wildo-cli/modules/domain/environment/module.types';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\n\nexport interface RuntimeSemanticsModuleCtx {\n locationType: WildoLocationType;\n}\n\nexport const runtimeSemanticsModule: CommandModule<RuntimeSemanticsModuleCtx, RuntimeSemanticsChoice> = {\n id: 'runtime-semantics',\n\n async prompt(ctx): Promise<RuntimeSemanticsChoice> {\n if (ctx.locationType === WildoLocationType.LOCAL) {\n return { runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT };\n }\n\n const choice = await select({\n message: 'Application runtime semantics for this deployment environment:',\n choices: [\n {\n value: RuntimeEnvironment.DEVELOPMENT,\n name: 'Development',\n },\n {\n value: RuntimeEnvironment.STAGING,\n name: 'Staging',\n },\n {\n value: RuntimeEnvironment.PRODUCTION,\n name: 'Production',\n },\n {\n value: RuntimeEnvironment.TEST,\n name: 'Test',\n },\n ],\n default: RuntimeEnvironment.STAGING,\n });\n\n return { runtimeEnvironment: choice };\n },\n};\n"]}
1
+ {"version":3,"file":"runtime-semantics.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/environment/runtime-semantics.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQ3D,MAAM,CAAC,MAAM,sBAAsB,GAAqE;IACtG,EAAE,EAAE,mBAAmB;IAEvB,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,IAAI,GAAG,CAAC,YAAY,KAAK,iBAAiB,CAAC,KAAK,EAAE,CAAC;YACjD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,WAAW,EAAE,CAAC;QAChE,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC;YAC1B,OAAO,EAAE,gEAAgE;YACzE,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,kBAAkB,CAAC,WAAW;oBACrC,IAAI,EAAE,aAAa;iBACpB;gBACD;oBACE,KAAK,EAAE,kBAAkB,CAAC,OAAO;oBACjC,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,KAAK,EAAE,kBAAkB,CAAC,UAAU;oBACpC,IAAI,EAAE,YAAY;iBACnB;gBACD;oBACE,KAAK,EAAE,kBAAkB,CAAC,IAAI;oBAC9B,IAAI,EAAE,MAAM;iBACb;aACF;YACD,OAAO,EAAE,kBAAkB,CAAC,OAAO;SACpC,CAAC,CAAC;QAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { select } from '@inquirer/prompts';\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { RuntimeEnvironment } from '@wildo-ai/saas-models';\nimport type { RuntimeSemanticsChoice } from '~wildo-cli/modules/domain/environment/module.types';\nimport type { CommandModule } from '~wildo-cli/modules/domain/module.types';\n\nexport interface RuntimeSemanticsModuleCtx {\n locationType: WildoLocationType;\n}\n\nexport const runtimeSemanticsModule: CommandModule<RuntimeSemanticsModuleCtx, RuntimeSemanticsChoice> = {\n id: 'runtime-semantics',\n\n async prompt(ctx): Promise<RuntimeSemanticsChoice> {\n if (ctx.locationType === WildoLocationType.LOCAL) {\n return { runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT };\n }\n\n const choice = await select({\n message: 'Application runtime semantics for this deployment environment:',\n choices: [\n {\n value: RuntimeEnvironment.DEVELOPMENT,\n name: 'Development',\n },\n {\n value: RuntimeEnvironment.STAGING,\n name: 'Staging',\n },\n {\n value: RuntimeEnvironment.PRODUCTION,\n name: 'Production',\n },\n {\n value: RuntimeEnvironment.TEST,\n name: 'Test',\n },\n ],\n default: RuntimeEnvironment.STAGING,\n });\n\n return { runtimeEnvironment: choice };\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/module.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,QAAQ,EAAE,QAAQ;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,KAAK,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/domain/module.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,QAAQ,EAAE,QAAQ;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,KAAK,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.types.js","sourceRoot":"","sources":["../../../../../../src/modules/domain/module.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * CommandModule — interactive module contract (prompt + optional apply).\n * Used by domain modules to define interactive input collection steps.\n */\nexport interface CommandModule<TContext, TAnswers> {\n id: string;\n prompt(ctx: TContext): Promise<TAnswers>;\n apply?(answers: TAnswers, ctx: TContext): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"module.types.js","sourceRoot":"","sources":["../../../../src/modules/domain/module.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * CommandModule — interactive module contract (prompt + optional apply).\n * Used by domain modules to define interactive input collection steps.\n */\nexport interface CommandModule<TContext, TAnswers> {\n id: string;\n prompt(ctx: TContext): Promise<TAnswers>;\n apply?(answers: TAnswers, ctx: TContext): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"app-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/application/app-bootstrap.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAOL,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAE/B,KAAK,mCAAmC,EAUxC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EA8BvC,KAAK,2BAA2B,EAChC,cAAc,EAEd,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAE5G,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,mCAAmC,EACnC,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAE3B,MAAM,qEAAqE,CAAC;AAM7E,OAAO,EAA4B,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAgGxG;;;;;;;;;;;;GAYG;AACH,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;AAED;;;;;;;GAOG;AACH,oBAAY,4BAA4B;IACtC,kGAAkG;IAClG,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,iBAAiB,sBAAsB;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,4BAA4B,GAAG,IAAI,CAmBlG;AAgED,MAAM,WAAW,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BAA6B,CACxC,KAAK,EAAE,6BAA6B,GACnC,OAAO,CAAC,0BAA0B,EAAE,CAAC;WAqJ3B,+BAA+B,CAAC,KAAK,EAAE;QAClD,QAAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,QAAQ,CAAC,EAAE,6BAA6B,CAAC;KAC1C,GAAG,OAAO,CAAC,mCAAmC,EAAE,CAAC;IAyGlD;;;;;;;OAOG;IACH,MAAM,CAAC,kCAAkC,CAAC,KAAK,EAAE;QAC/C,GAAG,EAAE,gCAAgC,CAAC;QACtC,MAAM,EAAE,qBAAqB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,4BAA4B,EAAE;CAoBnC"}
1
+ {"version":3,"file":"app-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-bootstrap.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAOL,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAE/B,KAAK,mCAAmC,EAUxC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EA8BvC,KAAK,2BAA2B,EAChC,cAAc,EAEd,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAE5G,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,mCAAmC,EACnC,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAE3B,MAAM,qEAAqE,CAA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