@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":"wildo.d.ts","sourceRoot":"","sources":["../../../../bin/wildo.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"wildo.d.ts","sourceRoot":"","sources":["../../bin/wildo.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,CAAC"}
package/dist/bin/wildo.js CHANGED
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"wildo.js","sourceRoot":"","sources":["../../../../bin/wildo.ts"],"names":[],"mappings":";AAIA,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;AAC/C,IAAI,SAAS,IAAI,SAAS,KAAK,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAC3B,CAAC;AAED;;;;GAIG;AACH,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,gDAAgD,CAAC,CAAC;AACrH,MAAM,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,IAAI,QAAQ,EAAE,CAAC;IACb,OAAO,CAAC,QAAQ,GAAG,MAAM,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACjC,CAAC","sourcesContent":["#!/usr/bin/env node\n\nexport {};\n\nconst invokeCwd = process.env.WILDO_INVOKE_CWD;\nif (invokeCwd && invokeCwd !== process.cwd()) {\n process.chdir(invokeCwd);\n}\n\n/*\n * The console's fast path (#1657): the verbs Claude Code runs on a clock — the per-prompt hook, the\n * status line, the pulse — answered by a module of Node built-ins BEFORE the kernel is imported, because\n * the kernel alone takes 1.5–2 s to load. Everything else goes to the kernel as before.\n */\nconst { selectConsoleFastVerb, runConsoleFastVerb } = await import('../src/services/companion/console-fast-path.js');\nconst fastVerb = selectConsoleFastVerb(process.argv.slice(2));\nif (fastVerb) {\n process.exitCode = await runConsoleFastVerb(fastVerb, process.argv.slice(2));\n} else {\n await import('../src/main.js');\n}\n"]}
1
+ {"version":3,"file":"wildo.js","sourceRoot":"","sources":["../../bin/wildo.ts"],"names":[],"mappings":";AAIA,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;AAC/C,IAAI,SAAS,IAAI,SAAS,KAAK,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;IAC7C,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAC3B,CAAC;AAED;;;;GAIG;AACH,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,gDAAgD,CAAC,CAAC;AACrH,MAAM,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,IAAI,QAAQ,EAAE,CAAC;IACb,OAAO,CAAC,QAAQ,GAAG,MAAM,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACjC,CAAC","sourcesContent":["#!/usr/bin/env node\n\nexport {};\n\nconst invokeCwd = process.env.WILDO_INVOKE_CWD;\nif (invokeCwd && invokeCwd !== process.cwd()) {\n process.chdir(invokeCwd);\n}\n\n/*\n * The console's fast path (#1657): the verbs Claude Code runs on a clock — the per-prompt hook, the\n * status line, the pulse — answered by a module of Node built-ins BEFORE the kernel is imported, because\n * the kernel alone takes 1.5–2 s to load. Everything else goes to the kernel as before.\n */\nconst { selectConsoleFastVerb, runConsoleFastVerb } = await import('../src/services/companion/console-fast-path.js');\nconst fastVerb = selectConsoleFastVerb(process.argv.slice(2));\nif (fastVerb) {\n process.exitCode = await runConsoleFastVerb(fastVerb, process.argv.slice(2));\n} else {\n await import('../src/main.js');\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"probe.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/acp/probe.command.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CA2BxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA4FtD,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,KAAK;CAcd"}
1
+ {"version":3,"file":"probe.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/acp/probe.command.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CA2BxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA4FtD,OA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AAC,OAAO;gBACzB,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAClC,KAAK,cAAc,CAAC,QAAQ;gBAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF","sourcesContent":["import chalk from 'chalk';\n\nimport { CODING_AGENT_ADAPTER_SPECIFIER } from '@wildo-ai/external-connectors-private/backend';\n\nimport { AcpProbeStatus, probeAcpAgent } from '~wildo-cli/services/coding-agents/acp-conformance-probe.service';\nimport { listCodingAgents } from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { AcpProbeReport, AcpProbeRequirementResult } from '~wildo-cli/services/coding-agents/acp-conformance-probe.service';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\n\n/**\n * Admission gate for a candidate ACP coding agent.\n *\n * An agent is admitted on MEASUREMENT, never on a registry row. The public ACP\n * registry probes the handshake; what it cannot probe is the behaviour the\n * permission ceiling, the mutation scope and the budget all stand on, because\n * those appear only inside a real prompt turn against an authenticated agent.\n *\n * This runs that turn — one trivial mutating task, in a throwaway directory,\n * with every permission refused — and judges the outcome against the\n * FILESYSTEM rather than against the agent's own account of what it did.\n *\n * Read the failure modes as follows:\n * - REQ-6 FAIL with agent-owned writes and no request: restrictive ceilings cannot\n * be claimed for this measured configuration. Record the provider's escalation\n * behavior; dispatch may admit it under UNRESTRICTED. For a conditionally\n * escalating provider, re-probe with its declared host configuration supplied.\n * - REQ-7 FAIL: unknown tool kinds are refused by restrictive policies, while\n * UNRESTRICTED admits them. PROMPT_ALWAYS is deny-all, not a usability workaround.\n * - REQ-8 FAIL: usable, but budgets fall back to wall-clock proxies — the\n * absent-usage policy has to be a declared decision, not a discovery.\n */\nexport default class AcpProbeCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'acp probe',\n description:\n 'Measure a candidate ACP coding agent against the behaviours Wildo\\'s lane requires — '\n + 'permission escalation, tool kinds, usage reporting and which path enforces mutation scope.',\n category: CommandCategory.Dev,\n // Declared, because the kernel parses ONLY declared flags and refuses the rest. Until\n // 2026-09-24 this block was absent while `run` read all five, so every invocation died\n // `unknown option '--command'` and the admission gate for a new agent or adapter build\n // could not be run at all.\n flags: {\n command: { type: 'string', description: 'The agent executable to spawn (e.g. npx, or an absolute binary path)' },\n arg: {\n type: 'string[]',\n description: 'One argument for the agent executable; repeat the flag, once per argument, in order',\n },\n env: {\n type: 'string[]',\n description: 'KEY=VALUE added to the agent\\'s environment; repeat the flag, once per variable',\n },\n provider: {\n type: 'string',\n description: 'The engine provider whose coding agent this is (e.g. anthropic): the probe then inherits the host variables that provider\\'s dispatch inherits, such as CLAUDE_CONFIG_DIR',\n },\n 'turn-timeout-ms': { type: 'number', description: 'Upper bound on the probe turn, in milliseconds' },\n json: { type: 'boolean', description: 'Also print the full report as JSON' },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const command = ctx.flags.command as string | undefined;\n if (!command) {\n ctx.log.error('Pass the agent executable with --command, and each argument with a repeated --arg.');\n ctx.log.info(` wildo acp probe --provider anthropic --command npx --arg --yes --arg ${CODING_AGENT_ADAPTER_SPECIFIER}`);\n ctx.log.info(' wildo acp probe --command ~/.opencode/bin/opencode --arg acp \\\\');\n ctx.log.info(' --env OPENCODE_CONFIG=/path/to/restrictive-opencode.json');\n return { success: false };\n }\n\n const rawArgs = ctx.flags.arg;\n const args = Array.isArray(rawArgs) ? rawArgs.map(String) : rawArgs !== undefined ? [String(rawArgs)] : [];\n\n // `--env KEY=VALUE`, repeatable. Not a convenience: for at least one agent\n // the permission posture is carried by a CONFIG FILE the child is pointed\n // at (OpenCode reads `OPENCODE_CONFIG`), and with the default configuration\n // that agent mutates the workspace WITHOUT raising a permission request at\n // all — measured 2026-09-04. So the variable under test is often an\n // environment pointer, and a probe that could not set one could not\n // reproduce the finding that admits or refuses the agent.\n const rawEnv = ctx.flags.env;\n const envPairs = Array.isArray(rawEnv) ? rawEnv.map(String) : rawEnv !== undefined ? [String(rawEnv)] : [];\n const env: NodeJS.ProcessEnv = {};\n for (const pair of envPairs) {\n const separatorIndex = pair.indexOf('=');\n if (separatorIndex <= 0) {\n ctx.log.error(`--env expects KEY=VALUE, received \"${pair}\".`);\n return { success: false };\n }\n env[pair.slice(0, separatorIndex)] = pair.slice(separatorIndex + 1);\n }\n\n // `--provider`: the variables that provider's dispatch inherits beyond the base set, so a login\n // kept under e.g. CLAUDE_CONFIG_DIR is found here exactly when a run would find it (#1637).\n const providerRef = (ctx.flags.provider as string | undefined)?.trim();\n let inheritedEnvironmentVariables: readonly string[] = [];\n if (providerRef) {\n const agent = listCodingAgents().find((option) => option.providerRef === providerRef);\n if (!agent) {\n ctx.log.error(`--provider \"${providerRef}\" names no coding agent. Available: ${listCodingAgents().map((option) => option.providerRef).join(', ')}.`);\n return { success: false };\n }\n inheritedEnvironmentVariables = agent.inheritedEnvironmentVariables;\n }\n\n ctx.log.info(`Probing ${chalk.bold(command)}${args.length > 0 ? ` ${args.join(' ')}` : ''} …`);\n ctx.log.info(chalk.dim('One mutating task, every permission refused, in a throwaway directory.'));\n\n let report: AcpProbeReport;\n try {\n report = await probeAcpAgent({\n command,\n args,\n ...(Object.keys(env).length > 0 ? { env } : {}),\n ...(inheritedEnvironmentVariables.length > 0 ? { inheritedEnvironmentVariables } : {}),\n ...(ctx.flags.turnTimeoutMs ? { turnTimeoutMs: Number(ctx.flags.turnTimeoutMs) } : {}),\n });\n } catch (error) {\n ctx.log.error(`Probe could not run: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n this.printReport(ctx, report);\n\n if (ctx.flags.json) {\n ctx.log.info(JSON.stringify(report, null, 2));\n }\n\n // A probe that could not reach its checks has NOT passed — but it has not\n // failed either, and reporting the two identically is what makes an\n // unverified agent look verified. Incomplete exits non-zero so a gate can\n // never mistake it for an admission, and the reason is on the line above.\n // Warnings are surfaced BEFORE the verdict and repeated as a block, because\n // an admissible-with-consequences agent is the case an operator is most\n // likely to skim past — the line above says PASS, and the consequence is a\n // property of every run that agent will ever perform.\n if (report.warnings.length > 0) {\n ctx.log.warn(`Admissible, with ${report.warnings.length} consequence(s) that apply to EVERY run on this agent:`);\n for (const warning of report.warnings) {\n ctx.log.warn(` ${warning.id} — ${warning.detail}`);\n }\n ctx.log.warn('The agent may be used. Wildo\\'s in-flight guards will not apply to it; the workspace diff is the record.');\n }\n\n if (!report.passed) return { success: false };\n if (report.incomplete) {\n ctx.log.warn('Incomplete: at least one requirement could not be reached. This is NOT an admission.');\n return { success: false };\n }\n return { success: true };\n }\n\n private printReport(ctx: CommandContext, report: AcpProbeReport): void {\n const identity = [report.agentName, report.agentVersion].filter(Boolean).join(' ');\n ctx.log.info('');\n ctx.log.info(`${chalk.bold('Agent')} ${identity || '(did not identify itself)'}`);\n ctx.log.info(`${chalk.bold('Protocol')} ${report.negotiatedProtocolVersion ?? '(none negotiated)'}`);\n if (report.authMethods.length > 0) {\n ctx.log.info(`${chalk.bold('Auth')} ${report.authMethods.join(', ')}`);\n }\n ctx.log.info('');\n for (const result of report.results) {\n ctx.log.info(`${this.badge(result)} ${chalk.bold(result.id.padEnd(6))} ${result.title}`);\n ctx.log.info(` ${chalk.dim(result.detail)}`);\n }\n ctx.log.info('');\n }\n\n private badge(result: AcpProbeRequirementResult): string {\n switch (result.status) {\n case AcpProbeStatus.PASS:\n return chalk.green(' PASS ');\n case AcpProbeStatus.FAIL:\n return chalk.red(' FAIL ');\n case AcpProbeStatus.WARN:\n return chalk.yellow(' WARN ');\n case AcpProbeStatus.NOT_RUN:\n return chalk.yellow(' NOTRUN ');\n case AcpProbeStatus.OBSERVED:\n return chalk.cyan(' OBS ');\n }\n }\n}\n"]}
1
+ {"version":3,"file":"probe.command.js","sourceRoot":"","sources":["../../../../src/commands/acp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AC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF","sourcesContent":["import chalk from 'chalk';\n\nimport { CODING_AGENT_ADAPTER_SPECIFIER } from '@wildo-ai/external-connectors-private/backend';\n\nimport { AcpProbeStatus, probeAcpAgent } from '~wildo-cli/services/coding-agents/acp-conformance-probe.service';\nimport { listCodingAgents } from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { AcpProbeReport, AcpProbeRequirementResult } from '~wildo-cli/services/coding-agents/acp-conformance-probe.service';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\n\n/**\n * Admission gate for a candidate ACP coding agent.\n *\n * An agent is admitted on MEASUREMENT, never on a registry row. The public ACP\n * registry probes the handshake; what it cannot probe is the behaviour the\n * permission ceiling, the mutation scope and the budget all stand on, because\n * those appear only inside a real prompt turn against an authenticated agent.\n *\n * This runs that turn — one trivial mutating task, in a throwaway directory,\n * with every permission refused — and judges the outcome against the\n * FILESYSTEM rather than against the agent's own account of what it did.\n *\n * Read the failure modes as follows:\n * - REQ-6 FAIL with agent-owned writes and no request: restrictive ceilings cannot\n * be claimed for this measured configuration. Record the provider's escalation\n * behavior; dispatch may admit it under UNRESTRICTED. For a conditionally\n * escalating provider, re-probe with its declared host configuration supplied.\n * - REQ-7 FAIL: unknown tool kinds are refused by restrictive policies, while\n * UNRESTRICTED admits them. PROMPT_ALWAYS is deny-all, not a usability workaround.\n * - REQ-8 FAIL: usable, but budgets fall back to wall-clock proxies — the\n * absent-usage policy has to be a declared decision, not a discovery.\n */\nexport default class AcpProbeCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'acp probe',\n description:\n 'Measure a candidate ACP coding agent against the behaviours Wildo\\'s lane requires — '\n + 'permission escalation, tool kinds, usage reporting and which path enforces mutation scope.',\n category: CommandCategory.Dev,\n // Declared, because the kernel parses ONLY declared flags and refuses the rest. Until\n // 2026-09-24 this block was absent while `run` read all five, so every invocation died\n // `unknown option '--command'` and the admission gate for a new agent or adapter build\n // could not be run at all.\n flags: {\n command: { type: 'string', description: 'The agent executable to spawn (e.g. npx, or an absolute binary path)' },\n arg: {\n type: 'string[]',\n description: 'One argument for the agent executable; repeat the flag, once per argument, in order',\n },\n env: {\n type: 'string[]',\n description: 'KEY=VALUE added to the agent\\'s environment; repeat the flag, once per variable',\n },\n provider: {\n type: 'string',\n description: 'The engine provider whose coding agent this is (e.g. anthropic): the probe then inherits the host variables that provider\\'s dispatch inherits, such as CLAUDE_CONFIG_DIR',\n },\n 'turn-timeout-ms': { type: 'number', description: 'Upper bound on the probe turn, in milliseconds' },\n json: { type: 'boolean', description: 'Also print the full report as JSON' },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const command = ctx.flags.command as string | undefined;\n if (!command) {\n ctx.log.error('Pass the agent executable with --command, and each argument with a repeated --arg.');\n ctx.log.info(` wildo acp probe --provider anthropic --command npx --arg --yes --arg ${CODING_AGENT_ADAPTER_SPECIFIER}`);\n ctx.log.info(' wildo acp probe --command ~/.opencode/bin/opencode --arg acp \\\\');\n ctx.log.info(' --env OPENCODE_CONFIG=/path/to/restrictive-opencode.json');\n return { success: false };\n }\n\n const rawArgs = ctx.flags.arg;\n const args = Array.isArray(rawArgs) ? rawArgs.map(String) : rawArgs !== undefined ? [String(rawArgs)] : [];\n\n // `--env KEY=VALUE`, repeatable. Not a convenience: for at least one agent\n // the permission posture is carried by a CONFIG FILE the child is pointed\n // at (OpenCode reads `OPENCODE_CONFIG`), and with the default configuration\n // that agent mutates the workspace WITHOUT raising a permission request at\n // all — measured 2026-09-04. So the variable under test is often an\n // environment pointer, and a probe that could not set one could not\n // reproduce the finding that admits or refuses the agent.\n const rawEnv = ctx.flags.env;\n const envPairs = Array.isArray(rawEnv) ? rawEnv.map(String) : rawEnv !== undefined ? [String(rawEnv)] : [];\n const env: NodeJS.ProcessEnv = {};\n for (const pair of envPairs) {\n const separatorIndex = pair.indexOf('=');\n if (separatorIndex <= 0) {\n ctx.log.error(`--env expects KEY=VALUE, received \"${pair}\".`);\n return { success: false };\n }\n env[pair.slice(0, separatorIndex)] = pair.slice(separatorIndex + 1);\n }\n\n // `--provider`: the variables that provider's dispatch inherits beyond the base set, so a login\n // kept under e.g. CLAUDE_CONFIG_DIR is found here exactly when a run would find it (#1637).\n const providerRef = (ctx.flags.provider as string | undefined)?.trim();\n let inheritedEnvironmentVariables: readonly string[] = [];\n if (providerRef) {\n const agent = listCodingAgents().find((option) => option.providerRef === providerRef);\n if (!agent) {\n ctx.log.error(`--provider \"${providerRef}\" names no coding agent. Available: ${listCodingAgents().map((option) => option.providerRef).join(', ')}.`);\n return { success: false };\n }\n inheritedEnvironmentVariables = agent.inheritedEnvironmentVariables;\n }\n\n ctx.log.info(`Probing ${chalk.bold(command)}${args.length > 0 ? ` ${args.join(' ')}` : ''} …`);\n ctx.log.info(chalk.dim('One mutating task, every permission refused, in a throwaway directory.'));\n\n let report: AcpProbeReport;\n try {\n report = await probeAcpAgent({\n command,\n args,\n ...(Object.keys(env).length > 0 ? { env } : {}),\n ...(inheritedEnvironmentVariables.length > 0 ? { inheritedEnvironmentVariables } : {}),\n ...(ctx.flags.turnTimeoutMs ? { turnTimeoutMs: Number(ctx.flags.turnTimeoutMs) } : {}),\n });\n } catch (error) {\n ctx.log.error(`Probe could not run: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n this.printReport(ctx, report);\n\n if (ctx.flags.json) {\n ctx.log.info(JSON.stringify(report, null, 2));\n }\n\n // A probe that could not reach its checks has NOT passed — but it has not\n // failed either, and reporting the two identically is what makes an\n // unverified agent look verified. Incomplete exits non-zero so a gate can\n // never mistake it for an admission, and the reason is on the line above.\n // Warnings are surfaced BEFORE the verdict and repeated as a block, because\n // an admissible-with-consequences agent is the case an operator is most\n // likely to skim past — the line above says PASS, and the consequence is a\n // property of every run that agent will ever perform.\n if (report.warnings.length > 0) {\n ctx.log.warn(`Admissible, with ${report.warnings.length} consequence(s) that apply to EVERY run on this agent:`);\n for (const warning of report.warnings) {\n ctx.log.warn(` ${warning.id} — ${warning.detail}`);\n }\n ctx.log.warn('The agent may be used. Wildo\\'s in-flight guards will not apply to it; the workspace diff is the record.');\n }\n\n if (!report.passed) return { success: false };\n if (report.incomplete) {\n ctx.log.warn('Incomplete: at least one requirement could not be reached. This is NOT an admission.');\n return { success: false };\n }\n return { success: true };\n }\n\n private printReport(ctx: CommandContext, report: AcpProbeReport): void {\n const identity = [report.agentName, report.agentVersion].filter(Boolean).join(' ');\n ctx.log.info('');\n ctx.log.info(`${chalk.bold('Agent')} ${identity || '(did not identify itself)'}`);\n ctx.log.info(`${chalk.bold('Protocol')} ${report.negotiatedProtocolVersion ?? '(none negotiated)'}`);\n if (report.authMethods.length > 0) {\n ctx.log.info(`${chalk.bold('Auth')} ${report.authMethods.join(', ')}`);\n }\n ctx.log.info('');\n for (const result of report.results) {\n ctx.log.info(`${this.badge(result)} ${chalk.bold(result.id.padEnd(6))} ${result.title}`);\n ctx.log.info(` ${chalk.dim(result.detail)}`);\n }\n ctx.log.info('');\n }\n\n private badge(result: AcpProbeRequirementResult): string {\n switch (result.status) {\n case AcpProbeStatus.PASS:\n return chalk.green(' PASS ');\n case AcpProbeStatus.FAIL:\n return chalk.red(' FAIL ');\n case AcpProbeStatus.WARN:\n return chalk.yellow(' WARN ');\n case AcpProbeStatus.NOT_RUN:\n return chalk.yellow(' NOTRUN ');\n case AcpProbeStatus.OBSERVED:\n return chalk.cyan(' OBS ');\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"align-deps.command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/align-deps.command.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAUxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAmDvD"}
1
+ {"version":3,"file":"align-deps.command.d.ts","sourceRoot":"","sources":["../../../src/commands/align-deps.command.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAUxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAmDvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"align-deps.command.js","sourceRoot":"","sources":["../../../../../src/commands/align-deps.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EACL,qCAAqC,EAErC,+BAA+B,GAChC,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAEjH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IAC9C,IAAI,GAAgB;QAC3B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,+GAA+G;QAC5H,QAAQ,EAAE,eAAe,CAAC,IAAI;QAC9B,KAAK,EAAE;YACL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M,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC;QAC/D,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACD,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AAChC,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe,CAAC,OAAoC;IAC3D,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,+BAA+B,CAAC,gBAAgB;YACnD,OAAO,KAAK,OAAO,CAAC,IAAI,MAAM,OAAO,CAAC,OAAO,uDAAuD,CAAC;QACvG,KAAK,+BAA+B,CAAC,cAAc;YACjD,OAAO,KAAK,OAAO,CAAC,IAAI,MAAM,OAAO,CAAC,OAAO,MAAM,OAAO,CAAC,OAAO,oCAAoC,CAAC;QACzG,KAAK,+BAA+B,CAAC,YAAY;YAC/C,OAAO,UAAU,OAAO,CAAC,IAAI,yDAAyD,CAAC;QACzF,KAAK,+BAA+B,CAAC,oBAAoB;YACvD,OAAO,UAAU,OAAO,CAAC,IAAI,MAAM,OAAO,CAAC,OAAO,4DAA4D,CAAC;IACnH,CAAC;AACH,CAAC","sourcesContent":["/**\n * align-deps — align this application's dependency pins and engine peer declarations against the\n * `@wildo-ai/*` packages it has INSTALLED (issue #222).\n *\n * `wildo init` computes an application's third-party pins and engine peer declarations from the\n * framework CHECKOUT, at scaffold time. A standalone application has no checkout afterwards, so\n * nothing re-derives them when it moves to a newer framework release — it keeps the old versions,\n * and the peer half cannot even be corrected by reinstalling (issue #167: an undeclared peer's\n * resolution is sticky).\n *\n * This command closes that. It reads the framework packages the application actually resolves and\n * derives everything from them, which needs no framework checkout and no published pin manifest:\n * the publish lane already substitutes the framework's root override into every published manifest.\n *\n * It never touches a `@wildo-ai/*` version — choosing a release is the operator's decision:\n *\n * 1. bump the `@wildo-ai/*` entries in `pnpm.overrides`\n * 2. `pnpm install` (the new pin set is only readable once it is on disk)\n * 3. `wildo align-deps --write`\n * 4. `pnpm install`\n *\n * `wildo update` performs all four (and moves the CLI first) — reach for it to change release. This\n * command on its own is for the first alignment after `wildo init`, and for inspecting drift.\n */\nimport {\n ApplicationDependencyAlignmentService,\n type ApplicationAlignmentFinding,\n ApplicationAlignmentFindingKind,\n} from '~wildo-cli/services/application/application-dependency-alignment.service';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { SAAS_CONFIG_MARKER, findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\n\nexport default class AlignDepsCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'align-deps',\n description: \"Align this application's dependency pins and engine peer declarations with the installed @wildo-ai/* packages\",\n category: CommandCategory.Core,\n flags: {\n write: {\n type: 'boolean',\n description: 'Apply the alignment (default is a read-only report that exits non-zero on drift)',\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const applicationRoot = findApplicationRoot(process.cwd());\n if (!applicationRoot) {\n ctx.log.error(`No ${SAAS_CONFIG_MARKER} found from ${process.cwd()} upward — run 'wildo align-deps' inside an application.`);\n return { success: false };\n }\n\n const write = ctx.flags.write === true;\n let result;\n try {\n result = ApplicationDependencyAlignmentService.align({ applicationRoot, write });\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n\n const frameworkVersions = [...new Set(result.installedFrameworkPackages.map((entry) => entry.version))];\n ctx.log.info(\n `Derived from ${result.installedFrameworkPackages.length} installed @wildo-ai/* package(s) `\n + `at ${frameworkVersions.join(', ')} — ${Object.keys(result.derivedOverrides).length} pin(s), `\n + `${result.excludedNames.length} name(s) excluded as application-owned.`,\n );\n for (const pattern of result.unsupportedWorkspacePatterns) {\n ctx.log.warn(`pnpm-workspace.yaml member '${pattern}' is not a shape alignment can expand (a literal or one trailing '/*'); the packages it covers were not checked.`);\n }\n\n if (result.findings.length === 0) {\n ctx.log.success('Aligned with the installed framework.');\n return { success: true };\n }\n\n for (const [manifestRelativePath, findings] of groupByManifest(result.findings)) {\n ctx.log.info(`${manifestRelativePath} (${findings.length} change(s))`);\n for (const finding of findings) {\n ctx.log.info(` ${describeFinding(finding)}`);\n }\n }\n\n if (write) {\n ctx.log.success(\n `Applied ${result.findings.length} change(s). Run 'pnpm install' to regenerate the lockfile — `\n + 'an already-resolved peer does not move until its specifier does.',\n );\n return { success: true };\n }\n\n ctx.log.error(\n `${result.findings.length} dependency alignment(s) pending. Run 'wildo align-deps --write', then 'pnpm install'.`,\n );\n return { success: false };\n }\n}\n\nfunction groupByManifest(findings: ApplicationAlignmentFinding[]): Array<[string, ApplicationAlignmentFinding[]]> {\n const grouped = new Map<string, ApplicationAlignmentFinding[]>();\n for (const finding of findings) {\n const bucket = grouped.get(finding.manifestRelativePath) ?? [];\n bucket.push(finding);\n grouped.set(finding.manifestRelativePath, bucket);\n }\n return [...grouped.entries()];\n}\n\n/**\n * One line per finding, saying WHY rather than only what — an operator reading this has no framework\n * checkout to consult, so the message is the whole explanation available to them.\n */\nfunction describeFinding(finding: ApplicationAlignmentFinding): string {\n switch (finding.kind) {\n case ApplicationAlignmentFindingKind.OVERRIDE_MISSING:\n return `+ ${finding.name} → ${finding.desired} (the installed engine pins it; unpinned it floats)`;\n case ApplicationAlignmentFindingKind.OVERRIDE_DRIFT:\n return `~ ${finding.name} ${finding.current} → ${finding.desired} (align to the installed engine)`;\n case ApplicationAlignmentFindingKind.PEER_MISSING:\n return `+ peer ${finding.name} → \"*\" (an engine package this one links requires it)`;\n case ApplicationAlignmentFindingKind.PEER_PINNED_IN_PLACE:\n return `~ peer ${finding.name} ${finding.current} → \"*\" (the version belongs to pnpm.overrides, not here)`;\n }\n}\n"]}
1
+ {"version":3,"file":"align-deps.command.js","sourceRoot":"","sources":["../../../src/commands/align-deps.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EACL,qCAAqC,EAErC,+BAA+B,GAChC,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAEjH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IAC9C,IAAI,GAAgB;QAC3B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,+GAA+G;QAC5H,QAAQ,EAAE,eAAe,CAAC,IAAI;QAC9B,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,kFAAkF;aAChG;SACF;KACF,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,MAAM,eAAe,GAAG,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,kBAAkB,eAAe,OAAO,CAAC,GAAG,EAAE,yDAAyD,CAAC,CAAC;YAC7H,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;QACvC,IAAI,MAAM,CAAC;QACX,IAAI,CAAC;YACH,MAAM,GAAG,qCAAqC,CAAC,KAAK,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAAC;QACnF,CAAC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AAC;QACzG,KAAK,+BAA+B,CAAC,YAAY;YAC/C,OAAO,UAAU,OAAO,CAAC,IAAI,yDAAyD,CAAC;QACzF,KAAK,+BAA+B,CAAC,oBAAoB;YACvD,OAAO,UAAU,OAAO,CAAC,IAAI,MAAM,OAAO,CAAC,OAAO,4DAA4D,CAAC;IACnH,CAAC;AACH,CAAC","sourcesContent":["/**\n * align-deps — align this application's dependency pins and engine peer declarations against the\n * `@wildo-ai/*` packages it has INSTALLED (issue #222).\n *\n * `wildo init` computes an application's third-party pins and engine peer declarations from the\n * framework CHECKOUT, at scaffold time. A standalone application has no checkout afterwards, so\n * nothing re-derives them when it moves to a newer framework release — it keeps the old versions,\n * and the peer half cannot even be corrected by reinstalling (issue #167: an undeclared peer's\n * resolution is sticky).\n *\n * This command closes that. It reads the framework packages the application actually resolves and\n * derives everything from them, which needs no framework checkout and no published pin manifest:\n * the publish lane already substitutes the framework's root override into every published manifest.\n *\n * It never touches a `@wildo-ai/*` version — choosing a release is the operator's decision:\n *\n * 1. bump the `@wildo-ai/*` entries in `pnpm.overrides`\n * 2. `pnpm install` (the new pin set is only readable once it is on disk)\n * 3. `wildo align-deps --write`\n * 4. `pnpm install`\n *\n * `wildo update` performs all four (and moves the CLI first) — reach for it to change release. This\n * command on its own is for the first alignment after `wildo init`, and for inspecting drift.\n */\nimport {\n ApplicationDependencyAlignmentService,\n type ApplicationAlignmentFinding,\n ApplicationAlignmentFindingKind,\n} from '~wildo-cli/services/application/application-dependency-alignment.service';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { SAAS_CONFIG_MARKER, findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\n\nexport default class AlignDepsCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'align-deps',\n description: \"Align this application's dependency pins and engine peer declarations with the installed @wildo-ai/* packages\",\n category: CommandCategory.Core,\n flags: {\n write: {\n type: 'boolean',\n description: 'Apply the alignment (default is a read-only report that exits non-zero on drift)',\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const applicationRoot = findApplicationRoot(process.cwd());\n if (!applicationRoot) {\n ctx.log.error(`No ${SAAS_CONFIG_MARKER} found from ${process.cwd()} upward — run 'wildo align-deps' inside an application.`);\n return { success: false };\n }\n\n const write = ctx.flags.write === true;\n let result;\n try {\n result = ApplicationDependencyAlignmentService.align({ applicationRoot, write });\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n\n const frameworkVersions = [...new Set(result.installedFrameworkPackages.map((entry) => entry.version))];\n ctx.log.info(\n `Derived from ${result.installedFrameworkPackages.length} installed @wildo-ai/* package(s) `\n + `at ${frameworkVersions.join(', ')} — ${Object.keys(result.derivedOverrides).length} pin(s), `\n + `${result.excludedNames.length} name(s) excluded as application-owned.`,\n );\n for (const pattern of result.unsupportedWorkspacePatterns) {\n ctx.log.warn(`pnpm-workspace.yaml member '${pattern}' is not a shape alignment can expand (a literal or one trailing '/*'); the packages it covers were not checked.`);\n }\n\n if (result.findings.length === 0) {\n ctx.log.success('Aligned with the installed framework.');\n return { success: true };\n }\n\n for (const [manifestRelativePath, findings] of groupByManifest(result.findings)) {\n ctx.log.info(`${manifestRelativePath} (${findings.length} change(s))`);\n for (const finding of findings) {\n ctx.log.info(` ${describeFinding(finding)}`);\n }\n }\n\n if (write) {\n ctx.log.success(\n `Applied ${result.findings.length} change(s). Run 'pnpm install' to regenerate the lockfile — `\n + 'an already-resolved peer does not move until its specifier does.',\n );\n return { success: true };\n }\n\n ctx.log.error(\n `${result.findings.length} dependency alignment(s) pending. Run 'wildo align-deps --write', then 'pnpm install'.`,\n );\n return { success: false };\n }\n}\n\nfunction groupByManifest(findings: ApplicationAlignmentFinding[]): Array<[string, ApplicationAlignmentFinding[]]> {\n const grouped = new Map<string, ApplicationAlignmentFinding[]>();\n for (const finding of findings) {\n const bucket = grouped.get(finding.manifestRelativePath) ?? [];\n bucket.push(finding);\n grouped.set(finding.manifestRelativePath, bucket);\n }\n return [...grouped.entries()];\n}\n\n/**\n * One line per finding, saying WHY rather than only what — an operator reading this has no framework\n * checkout to consult, so the message is the whole explanation available to them.\n */\nfunction describeFinding(finding: ApplicationAlignmentFinding): string {\n switch (finding.kind) {\n case ApplicationAlignmentFindingKind.OVERRIDE_MISSING:\n return `+ ${finding.name} → ${finding.desired} (the installed engine pins it; unpinned it floats)`;\n case ApplicationAlignmentFindingKind.OVERRIDE_DRIFT:\n return `~ ${finding.name} ${finding.current} → ${finding.desired} (align to the installed engine)`;\n case ApplicationAlignmentFindingKind.PEER_MISSING:\n return `+ peer ${finding.name} → \"*\" (an engine package this one links requires it)`;\n case ApplicationAlignmentFindingKind.PEER_PINNED_IN_PLACE:\n return `~ peer ${finding.name} ${finding.current} → \"*\" (the version belongs to pnpm.overrides, not here)`;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sync.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/assets/sync.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAU1F,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAIxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAiCvD"}
1
+ {"version":3,"file":"sync.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/assets/sync.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM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AM,CAAC,MAAM,CAAC,CAAC;YACxC,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,2BAA2B,CAAC,SAAS,CAAC,CAAC;YAClG,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC;YACvE,OAAO,EAAE,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,CAAC;QACnD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACjF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo assets sync` — (re)deliver the framework-owned asset homes into this application from the\n * packages it has installed: `templates/saas` from the CLI's framework-assets root into\n * `.wildo-saas/templates`, and the compiled knowledge (`@wildo-ai/framework-knowledge`) into\n * `.wildo-saas/docs` and `.claude/{skills,rules}`.\n *\n * Runs at `wildo init` (app-creator mode) and as a step of `wildo update`, which moves the CLI\n * (templates and the platform image tag travel with it), then the application's `@wildo-ai/*` pins,\n * then calls this delivery — so the skills, rules, docs and templates follow the new release.\n * Run it on its own to re-deliver after a hand edit, or into a fresh clone.\n *\n * The command warns when the CLI and the application disagree: a CLI older or newer than the\n * application's `@wildo-ai/framework-knowledge` means the templates it just delivered are not the\n * framework the application runs.\n *\n * In a framework-developer application the dev orchestrator delivers the same homes from the\n * checkout on every tick (hard-linked mirrors, `wildo fwk dev-skills`); this command still works\n * there but is not needed.\n */\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport { SAAS_CONFIG_MARKER, findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\nimport {\n ApplicationAssetsDeliveryService,\n ApplicationAssetsLaneStatus,\n type ApplicationAssetsLaneOutcome,\n} from '~wildo-cli/services/application/application-assets-delivery.service';\n\nexport default class AssetsSyncCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'assets sync',\n description: \"Deliver the framework's templates, docs, skills and rules into this application from the packages it installed\",\n category: CommandCategory.Core,\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const applicationRoot = findApplicationRoot(process.cwd());\n if (!applicationRoot) {\n ctx.log.error(`No ${SAAS_CONFIG_MARKER} found from ${process.cwd()} upward — run 'wildo assets sync' inside an application.`);\n return { success: false };\n }\n try {\n const result = ApplicationAssetsDeliveryService.deliver({\n applicationRoot,\n frameworkAssetsRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n });\n const version = ApplicationAssetsDeliveryService.readInstalledPackageVersion(result.knowledgePackageRoot);\n const report = (label: string, outcome: ApplicationAssetsLaneOutcome): void => {\n if (outcome.status === ApplicationAssetsLaneStatus.DELIVERED) ctx.log.success(` ${label}: ${outcome.detail}`);\n else ctx.log.warn(` ${label}: skipped — ${outcome.detail}`);\n // A delivered lane whose guidance is not CONNECTED is not a success, however many files landed (#886).\n if (outcome.warning !== undefined) ctx.log.warn(` ${label}: ${outcome.warning}`);\n };\n ctx.log.info(` Framework knowledge: ${version ? `@wildo-ai/framework-knowledge ${version}` : 'not installed'}`);\n const skew = ApplicationAssetsDeliveryService.describeFrameworkVersionSkew(readVersion(), version);\n if (skew) ctx.log.warn(` ${skew}`);\n report('templates', result.templates);\n report('docs', result.docs);\n report('skills + rules', result.skills);\n const lanes = [result.templates, result.docs, result.skills];\n const allDelivered = lanes.every((lane) => lane.status === ApplicationAssetsLaneStatus.DELIVERED);\n const allConnected = lanes.every((lane) => lane.warning === undefined);\n return { success: allDelivered && allConnected };\n } catch (error) {\n ctx.log.error(`Asset delivery failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n}\n"]}
1
+ {"version":3,"file":"sync.command.js","sourceRoot":"","sources":["../../../../src/commands/assets/sync.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AACjH,OAAO,EACL,gCAAgC,EAChC,2BAA2B,GAE5B,MAAM,qEAAqE,CAAC;AAE7E,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IAC/C,IAAI,GAAgB;QAC3B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,gHAAgH;QAC7H,QAAQ,EAAE,eAAe,CAAC,IAAI;KAC/B,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,MAAM,eAAe,GAAG,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,kBAAkB,eAAe,OAAO,CAAC,GAAG,EAAE,0DAA0D,CAAC,CAAC;YAC9H,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,IAAI,CAAC;YACH,MAAM,MAAM,GA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AK,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,2BAA2B,CAAC,SAAS,CAAC,CAAC;YAClG,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC;YACvE,OAAO,EAAE,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,CAAC;QACnD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACjF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo assets sync` — (re)deliver the framework-owned asset homes into this application from the\n * packages it has installed: `templates/saas` from the CLI's framework-assets root into\n * `.wildo-saas/templates`, and the compiled knowledge (`@wildo-ai/framework-knowledge`) into\n * `.wildo-saas/docs` and `.claude/{skills,rules}`.\n *\n * Runs at `wildo init` (app-creator mode) and as a step of `wildo update`, which moves the CLI\n * (templates and the platform image tag travel with it), then the application's `@wildo-ai/*` pins,\n * then calls this delivery — so the skills, rules, docs and templates follow the new release.\n * Run it on its own to re-deliver after a hand edit, or into a fresh clone.\n *\n * The command warns when the CLI and the application disagree: a CLI older or newer than the\n * application's `@wildo-ai/framework-knowledge` means the templates it just delivered are not the\n * framework the application runs.\n *\n * In a framework-developer application the dev orchestrator delivers the same homes from the\n * checkout on every tick (hard-linked mirrors, `wildo fwk dev-skills`); this command still works\n * there but is not needed.\n */\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport { SAAS_CONFIG_MARKER, findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\nimport {\n ApplicationAssetsDeliveryService,\n ApplicationAssetsLaneStatus,\n type ApplicationAssetsLaneOutcome,\n} from '~wildo-cli/services/application/application-assets-delivery.service';\n\nexport default class AssetsSyncCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'assets sync',\n description: \"Deliver the framework's templates, docs, skills and rules into this application from the packages it installed\",\n category: CommandCategory.Core,\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const applicationRoot = findApplicationRoot(process.cwd());\n if (!applicationRoot) {\n ctx.log.error(`No ${SAAS_CONFIG_MARKER} found from ${process.cwd()} upward — run 'wildo assets sync' inside an application.`);\n return { success: false };\n }\n try {\n const result = ApplicationAssetsDeliveryService.deliver({\n applicationRoot,\n frameworkAssetsRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n });\n const version = ApplicationAssetsDeliveryService.readInstalledPackageVersion(result.knowledgePackageRoot);\n const report = (label: string, outcome: ApplicationAssetsLaneOutcome): void => {\n if (outcome.status === ApplicationAssetsLaneStatus.DELIVERED) ctx.log.success(` ${label}: ${outcome.detail}`);\n else ctx.log.warn(` ${label}: skipped — ${outcome.detail}`);\n // A delivered lane whose guidance is not CONNECTED is not a success, however many files landed (#886).\n if (outcome.warning !== undefined) ctx.log.warn(` ${label}: ${outcome.warning}`);\n };\n ctx.log.info(` Framework knowledge: ${version ? `@wildo-ai/framework-knowledge ${version}` : 'not installed'}`);\n const skew = ApplicationAssetsDeliveryService.describeFrameworkVersionSkew(readVersion(), version);\n if (skew) ctx.log.warn(` ${skew}`);\n report('templates', result.templates);\n report('docs', result.docs);\n report('skills + rules', result.skills);\n const lanes = [result.templates, result.docs, result.skills];\n const allDelivered = lanes.every((lane) => lane.status === ApplicationAssetsLaneStatus.DELIVERED);\n const allConnected = lanes.every((lane) => lane.warning === undefined);\n return { success: allDelivered && allConnected };\n } catch (error) {\n ctx.log.error(`Asset delivery failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"propagate.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/brand/propagate.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AASH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAM1F,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,WAAW;IAC5D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAexB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAkDtD,OAAO,CAAC,MAAM,CAAC,sBAAsB;CActC"}
1
+ {"version":3,"file":"propagate.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/brand/propagate.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AASH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAM1F,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,WAAW;IAC5D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAexB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAkDtD,OAAO,CAAC,MAAM,CAAC,sBAAsB;CActC"}
@@ -1 +1 @@
1
- {"version":3,"file":"propagate.command.js","sourceRoot":"","sources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AAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1E,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACrC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,OAAO,YAAY,CAAC,CAAC,CAAC;QACxD,CAAC;QACD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAChC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo brand propagate` — push the accepted brand-asset SSOT to every frontend\n * destination.\n *\n * The command reads the committed source-of-truth\n * (`<appRoot>/specifications/src/brand/resolved-assets.generated.ts` →\n * `generatedResolvedBrandAssets`) and hands it to `propagateBrandAssets` from\n * `@wildo-ai/application-creation-runtime`, which runs every destination in\n * `BRAND_PROPAGATION_DESTINATIONS`. Each destination copies the asset files into\n * one frontend surface's served directory and reconciles that surface's\n * head/config references.\n *\n * The companion's logo generation step calls the same function after every run,\n * so a journey propagates on its own; this command is for a human who\n * hand-supplied or replaced the logo. It only ever reads the committed SSOT\n * (never a staging dir), so it runs identically for AI-generated and\n * human-provided assets. When the SSOT is\n * empty (no accepted brand yet) it prints a clean no-op and exits 0.\n *\n * Flags:\n * - `--dry-run` — compute and print the full propagation plan without writing\n * any file or reconciling any reference.\n * - `--only <key>` — run a single destination by its key (see the summary /\n * `describe()` output for the available keys).\n *\n * THE DESTINATION SET is `BRAND_PROPAGATION_DESTINATIONS`, a closed, named list in\n * `@wildo-ai/application-creation-runtime`. It used to be glob-discovered from\n * `<name>.destination.ts` files, so a destination that failed to load was a warning\n * and a silently skipped surface; a new surface is now one import plus one entry in\n * that list, and a broken destination is a compile error. No edit to this command is\n * needed either way — it prints whatever that list holds.\n *\n * Not yet in the list: an email destination and a schema.org destination.\n */\n\nimport chalk from 'chalk';\nimport {\n BRAND_PROPAGATION_DESTINATIONS,\n loadBrandSsotAssets,\n propagateBrandAssets,\n type BrandPropagationResult,\n} from '@wildo-ai/application-creation-runtime';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\n\nconst BRAND_SAAS_SCOPE_REQUIRED_MESSAGE =\n 'Brand commands require a SaaS application. Run from within a directory containing wildo.saas.config.ts.';\n\nexport default class BrandPropagateCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'brand propagate',\n description: 'Propagate the accepted brand-asset SSOT to every frontend destination',\n category: CommandCategory.Brand,\n flags: {\n 'dry-run': {\n type: 'boolean',\n description: 'Compute and print the plan without writing any file',\n default: false,\n },\n only: {\n type: 'string',\n description: `Run a single destination by key (${BRAND_PROPAGATION_DESTINATIONS.map((destination) => destination.key).join(', ')})`,\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (!ensureSaasAppScope(ctx, BRAND_SAAS_SCOPE_REQUIRED_MESSAGE)) {\n return { success: false };\n }\n const appRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n if (!appRoot) {\n ctx.log.error(BRAND_SAAS_SCOPE_REQUIRED_MESSAGE);\n return { success: false };\n }\n const dryRun = Boolean(ctx.flags.dryRun);\n const only = typeof ctx.flags.only === 'string' ? ctx.flags.only.trim() : undefined;\n\n try {\n const assets = await loadBrandSsotAssets(appRoot);\n if (assets.length === 0) {\n ctx.log.info(\n chalk.yellow(\n '\\n No accepted brand assets yet — nothing to propagate.\\n'\n + ' (The brand SSOT `specifications/src/brand/resolved-assets.generated.ts` is empty.\\n'\n + ' Accept a generated logo or have a designer add assets, then re-run.)\\n',\n ),\n );\n return { success: true };\n }\n\n ctx.log.info(chalk.cyan(`\\n Propagating ${assets.length} brand asset(s)${dryRun ? chalk.dim(' (dry-run — no files written)') : ''}...\\n`));\n const outcome = await propagateBrandAssets({ appRoot, assets, dryRun, onlyDestinationKey: only });\n let anyFailure = false;\n for (const destination of outcome.destinations) {\n if (destination.error !== undefined) {\n anyFailure = true;\n ctx.log.error(` [${destination.key}] failed: ${destination.error}`);\n } else if (destination.result !== undefined) {\n BrandPropagateCommand.printDestinationResult(ctx, destination.result);\n }\n }\n\n ctx.log.info('');\n if (anyFailure) {\n ctx.log.error(' Brand propagation completed with errors (see above).');\n return { success: false };\n }\n ctx.log.success(` Brand propagation ${dryRun ? 'plan ready' : 'complete'}.`);\n return { success: true };\n } catch (error) {\n ctx.log.error(`Brand propagation failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n private static printDestinationResult(ctx: CommandContext, result: BrandPropagationResult): void {\n const destination = BRAND_PROPAGATION_DESTINATIONS.find((entry) => entry.key === result.key);\n ctx.log.info(chalk.bold(` ${result.key}`));\n if (destination) ctx.log.info(chalk.dim(` ${destination.describe()}`));\n for (const wrote of result.wrote) {\n ctx.log.info(chalk.green(` + ${wrote}`));\n }\n for (const skipped of result.skipped) {\n ctx.log.info(chalk.dim(` - ${skipped} (skipped)`));\n }\n for (const note of result.notes) {\n ctx.log.info(chalk.dim(` ${note}`));\n }\n }\n}\n"]}
1
+ {"version":3,"file":"propagate.command.js","sourceRoot":"","sources":["../../../../src/commands/brand/propagate.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG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E,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACrC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,OAAO,YAAY,CAAC,CAAC,CAAC;QACxD,CAAC;QACD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAChC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo brand propagate` — push the accepted brand-asset SSOT to every frontend\n * destination.\n *\n * The command reads the committed source-of-truth\n * (`<appRoot>/specifications/src/brand/resolved-assets.generated.ts` →\n * `generatedResolvedBrandAssets`) and hands it to `propagateBrandAssets` from\n * `@wildo-ai/application-creation-runtime`, which runs every destination in\n * `BRAND_PROPAGATION_DESTINATIONS`. Each destination copies the asset files into\n * one frontend surface's served directory and reconciles that surface's\n * head/config references.\n *\n * The companion's logo generation step calls the same function after every run,\n * so a journey propagates on its own; this command is for a human who\n * hand-supplied or replaced the logo. It only ever reads the committed SSOT\n * (never a staging dir), so it runs identically for AI-generated and\n * human-provided assets. When the SSOT is\n * empty (no accepted brand yet) it prints a clean no-op and exits 0.\n *\n * Flags:\n * - `--dry-run` — compute and print the full propagation plan without writing\n * any file or reconciling any reference.\n * - `--only <key>` — run a single destination by its key (see the summary /\n * `describe()` output for the available keys).\n *\n * THE DESTINATION SET is `BRAND_PROPAGATION_DESTINATIONS`, a closed, named list in\n * `@wildo-ai/application-creation-runtime`. It used to be glob-discovered from\n * `<name>.destination.ts` files, so a destination that failed to load was a warning\n * and a silently skipped surface; a new surface is now one import plus one entry in\n * that list, and a broken destination is a compile error. No edit to this command is\n * needed either way — it prints whatever that list holds.\n *\n * Not yet in the list: an email destination and a schema.org destination.\n */\n\nimport chalk from 'chalk';\nimport {\n BRAND_PROPAGATION_DESTINATIONS,\n loadBrandSsotAssets,\n propagateBrandAssets,\n type BrandPropagationResult,\n} from '@wildo-ai/application-creation-runtime';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\n\nconst BRAND_SAAS_SCOPE_REQUIRED_MESSAGE =\n 'Brand commands require a SaaS application. Run from within a directory containing wildo.saas.config.ts.';\n\nexport default class BrandPropagateCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'brand propagate',\n description: 'Propagate the accepted brand-asset SSOT to every frontend destination',\n category: CommandCategory.Brand,\n flags: {\n 'dry-run': {\n type: 'boolean',\n description: 'Compute and print the plan without writing any file',\n default: false,\n },\n only: {\n type: 'string',\n description: `Run a single destination by key (${BRAND_PROPAGATION_DESTINATIONS.map((destination) => destination.key).join(', ')})`,\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (!ensureSaasAppScope(ctx, BRAND_SAAS_SCOPE_REQUIRED_MESSAGE)) {\n return { success: false };\n }\n const appRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n if (!appRoot) {\n ctx.log.error(BRAND_SAAS_SCOPE_REQUIRED_MESSAGE);\n return { success: false };\n }\n const dryRun = Boolean(ctx.flags.dryRun);\n const only = typeof ctx.flags.only === 'string' ? ctx.flags.only.trim() : undefined;\n\n try {\n const assets = await loadBrandSsotAssets(appRoot);\n if (assets.length === 0) {\n ctx.log.info(\n chalk.yellow(\n '\\n No accepted brand assets yet — nothing to propagate.\\n'\n + ' (The brand SSOT `specifications/src/brand/resolved-assets.generated.ts` is empty.\\n'\n + ' Accept a generated logo or have a designer add assets, then re-run.)\\n',\n ),\n );\n return { success: true };\n }\n\n ctx.log.info(chalk.cyan(`\\n Propagating ${assets.length} brand asset(s)${dryRun ? chalk.dim(' (dry-run — no files written)') : ''}...\\n`));\n const outcome = await propagateBrandAssets({ appRoot, assets, dryRun, onlyDestinationKey: only });\n let anyFailure = false;\n for (const destination of outcome.destinations) {\n if (destination.error !== undefined) {\n anyFailure = true;\n ctx.log.error(` [${destination.key}] failed: ${destination.error}`);\n } else if (destination.result !== undefined) {\n BrandPropagateCommand.printDestinationResult(ctx, destination.result);\n }\n }\n\n ctx.log.info('');\n if (anyFailure) {\n ctx.log.error(' Brand propagation completed with errors (see above).');\n return { success: false };\n }\n ctx.log.success(` Brand propagation ${dryRun ? 'plan ready' : 'complete'}.`);\n return { success: true };\n } catch (error) {\n ctx.log.error(`Brand propagation failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n private static printDestinationResult(ctx: CommandContext, result: BrandPropagationResult): void {\n const destination = BRAND_PROPAGATION_DESTINATIONS.find((entry) => entry.key === result.key);\n ctx.log.info(chalk.bold(` ${result.key}`));\n if (destination) ctx.log.info(chalk.dim(` ${destination.describe()}`));\n for (const wrote of result.wrote) {\n ctx.log.info(chalk.green(` + ${wrote}`));\n }\n for (const skipped of result.skipped) {\n ctx.log.info(chalk.dim(` - ${skipped} (skipped)`));\n }\n for (const note of result.notes) {\n ctx.log.info(chalk.dim(` ${note}`));\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"accept.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/build/accept.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IACzD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAUxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CASvD"}
1
+ {"version":3,"file":"accept.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/build/accept.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IACzD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAUxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CASvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"accept.command.js","sourceRoot":"","sources":["../../../../../../src/commands/build/accept.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE5G;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IAChD,IAAI,GAAgB;QAC3B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,0DAA0D;QACvE,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yCAAyC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACnG,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,KAAK,EAAE;YAC9F,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yCAAyC,EAAE,OAAO,EAAE,KAAK,EAAE;SAClG;KACF,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAC/C,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,oBAAoB,OAAO,EAAE;YAC3C,SAAS,EAAE,wBAAwB;YACnC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;YACxF,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient, describeAcceptOutcome } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_WRITE_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/**\n * `wildo build accept <taskRef>` — commit what the latest coding run of a task wrote (#1652).\n *\n * A build task lands only when its product is COMMITTED, and a run that left its work uncommitted parks\n * every task behind it. This is the commit, through the same service as the workbench's `accept`: it\n * commits exactly the run's recorded files, refuses (by name) one edited since the run unless\n * `--force`, and writes a message naming the task, its objective and the run. Commit BETWEEN dispatches,\n * never during one — the dispatch judge reads the uncommitted change set.\n */\nexport default class BuildAcceptCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build accept',\n description: 'Commit what the latest coding run of a build task wrote.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n args: [{ name: 'taskRef', description: 'The build-plan task whose run to accept', required: true }],\n flags: {\n force: { type: 'boolean', description: 'Include files edited since the run.', default: false },\n json: { type: 'boolean', description: 'Emit the companion\\'s outcome document.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const taskRef = String(ctx.args.taskRef ?? '');\n return runConsoleVerb(ctx, {\n failureLabel: `Could not accept ${taskRef}`,\n timeoutMs: CONSOLE_WRITE_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.accept(options, taskRef, ctx.flags.force === true),\n render: (outcome) => describeAcceptOutcome(taskRef, outcome),\n });\n }\n}\n"]}
1
+ {"version":3,"file":"accept.command.js","sourceRoot":"","sources":["../../../../src/commands/build/accept.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE5G;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IAChD,IAAI,GAAgB;QAC3B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,0DAA0D;QACvE,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yCAAyC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACnG,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,KAAK,EAAE;YAC9F,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yCAAyC,EAAE,OAAO,EAAE,KAAK,EAAE;SAClG;KACF,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAC/C,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,oBAAoB,OAAO,EAAE;YAC3C,SAAS,EAAE,wBAAwB;YACnC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;YACxF,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient, describeAcceptOutcome } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_WRITE_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/**\n * `wildo build accept <taskRef>` — commit what the latest coding run of a task wrote (#1652).\n *\n * A build task lands only when its product is COMMITTED, and a run that left its work uncommitted parks\n * every task behind it. This is the commit, through the same service as the workbench's `accept`: it\n * commits exactly the run's recorded files, refuses (by name) one edited since the run unless\n * `--force`, and writes a message naming the task, its objective and the run. Commit BETWEEN dispatches,\n * never during one — the dispatch judge reads the uncommitted change set.\n */\nexport default class BuildAcceptCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build accept',\n description: 'Commit what the latest coding run of a build task wrote.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n args: [{ name: 'taskRef', description: 'The build-plan task whose run to accept', required: true }],\n flags: {\n force: { type: 'boolean', description: 'Include files edited since the run.', default: false },\n json: { type: 'boolean', description: 'Emit the companion\\'s outcome document.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const taskRef = String(ctx.args.taskRef ?? '');\n return runConsoleVerb(ctx, {\n failureLabel: `Could not accept ${taskRef}`,\n timeoutMs: CONSOLE_WRITE_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.accept(options, taskRef, ctx.flags.force === true),\n render: (outcome) => describeAcceptOutcome(taskRef, outcome),\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dispatches.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/build/dispatches.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,uFAAuF;AACvF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,WAAW;IAC7D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAMxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAUvD"}
1
+ {"version":3,"file":"dispatches.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/build/dispatches.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,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AO,CAAC;YACzD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;gBAChD,CAAC,CAAC,CAAC,gCAAgC,CAAC;gBACpC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;SACzN,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/** `wildo build dispatches` — recent build dispatches and how far each got (#1652). */\nexport default class BuildDispatchesCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build dispatches',\n description: 'Recent build dispatches, newest first, and how far each got.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: { json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false } },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n return runConsoleVerb(ctx, {\n failureLabel: 'Could not read the build dispatches',\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.dispatches(options),\n render: (result) => result.dispatches.length === 0\n ? ['No build dispatch has run yet.']\n : result.dispatches.map((dispatch) => ` ${String(dispatch.phase ?? '?').padEnd(10)} ${String(dispatch.taskRef ?? '?')} ${String(dispatch.startedAt ?? '')}${dispatch.error ? ` — ${String(dispatch.error)}` : ''}`),\n });\n }\n}\n"]}
1
+ {"version":3,"file":"dispatches.command.js","sourceRoot":"","sources":["../../../../src/commands/build/dispatches.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE3G,uFAAuF;AACvF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,WAAW;IACpD,IAAI,GAAgB;QAC3B,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,8DAA8D;QAC3E,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,iCAAiC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;KACrG,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,qCAAqC;YACnD,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC;YACzD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;gBAChD,CAAC,CAAC,CAAC,gCAAgC,CAAC;gBACpC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;SACzN,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/** `wildo build dispatches` — recent build dispatches and how far each got (#1652). */\nexport default class BuildDispatchesCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build dispatches',\n description: 'Recent build dispatches, newest first, and how far each got.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: { json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false } },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n return runConsoleVerb(ctx, {\n failureLabel: 'Could not read the build dispatches',\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.dispatches(options),\n render: (result) => result.dispatches.length === 0\n ? ['No build dispatch has run yet.']\n : result.dispatches.map((dispatch) => ` ${String(dispatch.phase ?? '?').padEnd(10)} ${String(dispatch.taskRef ?? '?')} ${String(dispatch.startedAt ?? '')}${dispatch.error ? ` — ${String(dispatch.error)}` : ''}`),\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"next.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/build/next.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAMxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAavD"}
1
+ {"version":3,"file":"next.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/build/next.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAMxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAavD"}
@@ -1 +1 @@
1
- {"version":3,"file":"next.command.js","sourceRoot":"","sources":["../../../../../../src/commands/build/next.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE3G,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IAC9C,IAAI,GAAgB;QAC3B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,mEAAmE;QAChF,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,iCAAiC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;KACrG,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,oCAAoC;YAClD,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC;YACnD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;gBACjB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAmE,CAAC;gBACxF,IAAI,IAAI,EAAE,OAAO;oBAAE,OAAO,CAAC,SAAS,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,gCAAgC,CAAC,CAAC;gBACrI,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI;oBAAE,OAAO,CAAC,mCAAmC,CAAC,CAAC;gBAC5E,OAAO,CAAC,0DAA0D,CAAC,CAAC;YACtE,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/** `wildo build next` — what the next ready build task would be, without running it (#1652). */\nexport default class BuildNextCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build next',\n description: 'What the next ready build-plan task would be, without running it.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: { json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false } },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n return runConsoleVerb(ctx, {\n failureLabel: 'Could not read the next build task',\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.next(options),\n render: (result) => {\n const plan = result.plan as { taskRef?: string; objective?: string } | null | undefined;\n if (plan?.taskRef) return [`next: ${plan.taskRef}${plan.objective ? ` — ${plan.objective}` : ''}`, ' run it with: wildo build run'];\n if (result.exhausted === true) return ['Every build-plan task has landed.'];\n return ['Nothing is ready to run. See why with: wildo build tasks'];\n },\n });\n }\n}\n"]}
1
+ {"version":3,"file":"next.command.js","sourceRoot":"","sources":["../../../../src/commands/build/next.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE3G,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IAC9C,IAAI,GAAgB;QAC3B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,mEAAmE;QAChF,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,iCAAiC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;KACrG,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,oCAAoC;YAClD,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC;YACnD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;gBACjB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAmE,CAAC;gBACxF,IAAI,IAAI,EAAE,OAAO;oBAAE,OAAO,CAAC,SAAS,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,gCAAgC,CAAC,CAAC;gBACrI,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI;oBAAE,OAAO,CAAC,mCAAmC,CAAC,CAAC;gBAC5E,OAAO,CAAC,0DAA0D,CAAC,CAAC;YACtE,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/** `wildo build next` — what the next ready build task would be, without running it (#1652). */\nexport default class BuildNextCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build next',\n description: 'What the next ready build-plan task would be, without running it.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: { json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false } },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n return runConsoleVerb(ctx, {\n failureLabel: 'Could not read the next build task',\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.next(options),\n render: (result) => {\n const plan = result.plan as { taskRef?: string; objective?: string } | null | undefined;\n if (plan?.taskRef) return [`next: ${plan.taskRef}${plan.objective ? ` — ${plan.objective}` : ''}`, ' run it with: wildo build run'];\n if (result.exhausted === true) return ['Every build-plan task has landed.'];\n return ['Nothing is ready to run. See why with: wildo build tasks'];\n },\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rearm.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/build/rearm.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAWxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAmBvD"}
1
+ {"version":3,"file":"rearm.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/build/rearm.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,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MAAM,CAAC;QAChC,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;QAC5B,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9I,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,kIAAkI,CAAC,CAAC;YAClJ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,oBAAoB,OAAO,EAAE;YAC3C,iGAAiG;YACjG,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC;YAC3E,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;gBAClB,YAAY,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,MAAM,MAAM,MAAM,CAAC,iBAAiB,CAAC,MAAM,sCAAsC;gBACtH,4CAA4C;aAC7C;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/**\n * `wildo build rearm <taskRef>` — put a build task back in the queue (#1535; moved from\n * `wildo workbench rearm-task` by #1652, beside the other build verbs).\n *\n * The build loop never re-runs a task whose coding run completed without landing: re-offering it was a\n * measured money leak. Once the reason it did not land is fixed, this releases it. The re-arm is\n * recorded on the task's completed runs with the reason and note; the reason vocabulary is the\n * companion's, which names the valid values when it refuses one, so this command keeps no copy of it.\n */\nexport default class BuildRearmCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build rearm',\n description: 'Put a build task that completed without landing back in the queue, once the reason is fixed.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n args: [{ name: 'taskRef', description: 'The build-plan task to re-arm', required: true }],\n flags: {\n reason: { type: 'string', description: 'Why it runs again: probe-corrected, blocking-defect-fixed, or operator-judgement' },\n note: { type: 'string', description: 'What was fixed, in a sentence' },\n json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const taskRef = ctx.args.taskRef;\n const reason = ctx.flags.reason;\n const note = ctx.flags.note;\n if (typeof taskRef !== 'string' || taskRef.length === 0 || typeof reason !== 'string' || typeof note !== 'string' || note.trim().length === 0) {\n ctx.log.error('Usage: wildo build rearm <taskRef> --reason <probe-corrected|blocking-defect-fixed|operator-judgement> --note \"<what was fixed>\"');\n return { success: false };\n }\n return runConsoleVerb(ctx, {\n failureLabel: `Could not re-arm ${taskRef}`,\n /* A re-arm rewrites a few run rows and runs nothing, so it answers inside the short deadline. */\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.rearm(options, taskRef, reason, note),\n render: (result) => [\n `Re-armed ${taskRef} (${result.rearm.reason}): ${result.rearmedRunTaskIds.length} completed run(s) no longer hold it.`,\n ' The next build dispatch offers it again.',\n ],\n });\n }\n}\n"]}
1
+ {"version":3,"file":"rearm.command.js","sourceRoot":"","sources":["../../../../src/commands/build/rearm.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC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,GAAG,CAAC,KAAK,CAAC,kIAAkI,CAAC,CAAC;YAClJ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,oBAAoB,OAAO,EAAE;YAC3C,iGAAiG;YACjG,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC;YAC3E,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;gBAClB,YAAY,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,MAAM,MAAM,MAAM,CAAC,iBAAiB,CAAC,MAAM,sCAAsC;gBACtH,4CAA4C;aAC7C;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/**\n * `wildo build rearm <taskRef>` — put a build task back in the queue (#1535; moved from\n * `wildo workbench rearm-task` by #1652, beside the other build verbs).\n *\n * The build loop never re-runs a task whose coding run completed without landing: re-offering it was a\n * measured money leak. Once the reason it did not land is fixed, this releases it. The re-arm is\n * recorded on the task's completed runs with the reason and note; the reason vocabulary is the\n * companion's, which names the valid values when it refuses one, so this command keeps no copy of it.\n */\nexport default class BuildRearmCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build rearm',\n description: 'Put a build task that completed without landing back in the queue, once the reason is fixed.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n args: [{ name: 'taskRef', description: 'The build-plan task to re-arm', required: true }],\n flags: {\n reason: { type: 'string', description: 'Why it runs again: probe-corrected, blocking-defect-fixed, or operator-judgement' },\n note: { type: 'string', description: 'What was fixed, in a sentence' },\n json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const taskRef = ctx.args.taskRef;\n const reason = ctx.flags.reason;\n const note = ctx.flags.note;\n if (typeof taskRef !== 'string' || taskRef.length === 0 || typeof reason !== 'string' || typeof note !== 'string' || note.trim().length === 0) {\n ctx.log.error('Usage: wildo build rearm <taskRef> --reason <probe-corrected|blocking-defect-fixed|operator-judgement> --note \"<what was fixed>\"');\n return { success: false };\n }\n return runConsoleVerb(ctx, {\n failureLabel: `Could not re-arm ${taskRef}`,\n /* A re-arm rewrites a few run rows and runs nothing, so it answers inside the short deadline. */\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.rearm(options, taskRef, reason, note),\n render: (result) => [\n `Re-armed ${taskRef} (${result.rearm.reason}): ${result.rearmedRunTaskIds.length} completed run(s) no longer hold it.`,\n ' The next build dispatch offers it again.',\n ],\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"run.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/build/run.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK1F;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAsBxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAkDvD"}
1
+ {"version":3,"file":"run.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/build/run.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK1F;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAsBxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAkDvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"run.command.js","sourceRoot":"","sources":["../../../../../../src/commands/build/run.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAEjI;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IAC7C,IAAI,GAAgB;QAC3B,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,uGAAuG;QACpH,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,+CAA+C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC1G,KAAK,EAAE;YACL,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,4GAA4G;gBACzH,OAAO,EAAE,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CAAC,CAAC,EAAE,CAAC;wBACP,iEAAiE;wBACjE,6CAA6C;wBAC7C,gFAAgF;wBAChF,uGAAuG;qBACxG,CAAC;gBACJ,CAAC;gBACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAA4D,CAAC;gBACjF,MAAM,GAAG,GAAG,IAAI,EAAE,OAAO,IAAI,OAAO,IAAI,eAAe,CAAC;gBACxD,OAAO;oBACL,aAAa,GAAG,GAAG,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG;oBACnE,iEAAiE;oBACjE,8EAA8E;iBAC/E,CAAC;YACJ,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_WRITE_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\nimport { SKIP_PREFLIGHT_FLAG, admitCreationRunAfterPreflight } from '~wildo-cli/services/application/creation-preflight.service';\n\n/**\n * `wildo build run [<taskRef>]` — run the build, or one named task (#1652).\n *\n * Without a task ref it runs the build the way the lane runs it: with a build parallelism above one\n * (the default is five, `wildo workbench parallelism`), the companion starts a WAVE that keeps that\n * many coding runs going until nothing more is ready (#2208). `--single` runs the next ready task\n * alone, which is also what a parallelism of one gets. Either way it submits DETACHED and returns at\n * once: a generation step can outlive any HTTP wait, and the console follows it with\n * `wildo creation feed --follow --exit-on-change`. A named task runs alone, through the same service as\n * the workbench's `dispatch_task`, and the companion refuses one that is not ready, naming why.\n */\nexport default class BuildRunCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build run',\n description: 'Run the build — a parallel wave by default, or the next task alone with --single — or one named task.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n args: [{ name: 'taskRef', description: 'The task to run (default: the next ready one)', required: false }],\n flags: {\n 'despite-landed': {\n type: 'boolean',\n description: 'Run a named task its landing probe calls landed, because that landing is wrong. Needs --reason and --note.',\n default: false,\n },\n reason: { type: 'string', description: 'With --despite-landed: why the landing is wrong, as a re-arm reason (the companion names the valid ones)' },\n note: { type: 'string', description: 'With --despite-landed: why the landing is wrong, in a sentence' },\n single: {\n type: 'boolean',\n description: 'Run only the next ready task, even when the build parallelism would start a wave.',\n default: false,\n },\n json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false },\n [SKIP_PREFLIGHT_FLAG]: { type: 'boolean', description: 'Start even when `wildo creation preflight` reports a FAIL.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const taskRef = typeof ctx.args.taskRef === 'string' && ctx.args.taskRef.length > 0 ? ctx.args.taskRef : null;\n /*\n * #2217: the door past a false landing. A reason and a note are REQUIRED, and recorded on the run — an override\n * nobody explained is a bypass. The reason vocabulary is the companion's, which names the valid values when it\n * refuses one, so this command keeps no copy of it.\n */\n let despiteLanded: { readonly reason: string; readonly note: string } | undefined;\n if (ctx.flags['despite-landed'] === true) {\n const reason = ctx.flags.reason;\n const note = ctx.flags.note;\n if (taskRef === null || typeof reason !== 'string' || typeof note !== 'string' || note.trim().length === 0) {\n ctx.log.error('Usage: wildo build run <taskRef> --despite-landed --reason <reason> --note \"<why the landing is wrong>\" — the reasons are those `wildo build rearm` takes; the companion names them when it refuses one.');\n return { success: false };\n }\n despiteLanded = { reason, note };\n }\n // The build runs the coding agents and the logo step, so it is refused before it starts like a creation run (#2229).\n if (!await admitCreationRunAfterPreflight(ctx, 'wildo build run')) return { success: false };\n const skipPreflight = ctx.flags[SKIP_PREFLIGHT_FLAG] === true;\n return runConsoleVerb(ctx, {\n failureLabel: taskRef ? `Could not run ${taskRef}` : 'Could not run the build',\n timeoutMs: CONSOLE_WRITE_TIMEOUT_MS,\n call: (options) => (taskRef\n ? BuildConsoleClient.runNamed(options, taskRef, despiteLanded, skipPreflight)\n : BuildConsoleClient.runNext(options, ctx.flags.single === true, skipPreflight)),\n render: (result) => {\n const wave = result.wave as { degree?: number; runId?: string; nextReadyTask?: { taskRef?: string; objective?: string } } | undefined;\n if (wave !== undefined) {\n return [\n `Started a build wave: up to ${wave.degree ?? '?'} tasks at once (run ${wave.runId ?? '?'}).`,\n ...(wave.nextReadyTask?.taskRef\n ? [` Ready when it started: ${wave.nextReadyTask.taskRef}${wave.nextReadyTask.objective ? ` — ${wave.nextReadyTask.objective}` : ''}`]\n : []),\n ' Follow it with: wildo creation feed --follow --exit-on-change',\n ' Where each task stands: wildo build tasks',\n ' Commit a finished task the loop did not commit: wildo build accept <taskRef>',\n ' One task at a time instead: wildo build run --single · the width: wildo workbench parallelism <n>',\n ];\n }\n const plan = result.plan as { taskRef?: string; objective?: string } | undefined;\n const ran = plan?.taskRef ?? taskRef ?? 'the next task';\n return [\n `Submitted ${ran}${plan?.objective ? ` — ${plan.objective}` : ''}.`,\n ' Follow it with: wildo creation feed --follow --exit-on-change',\n ' Commit what it wrote, once it finished, with: wildo build accept <taskRef>',\n ];\n },\n });\n }\n}\n"]}
1
+ {"version":3,"file":"run.command.js","sourceRoot":"","sources":["../../../../src/commands/build/run.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAEjI;;;;;;;;;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MAAM,CAAC,IAAiH,CAAC;gBACtI,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;oBACvB,OAAO;wBACL,+BAA+B,IAAI,CAAC,MAAM,IAAI,GAAG,uBAAuB,IAAI,CAAC,KAAK,IAAI,GAAG,IAAI;wBAC7F,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO;4BAC7B,CAAC,CAAC,CAAC,4BAA4B,IAAI,CAAC,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;4BACvI,CAAC,CAAC,EAAE,CAAC;wBACP,iEAAiE;wBACjE,6CAA6C;wBAC7C,gFAAgF;wBAChF,uGAAuG;qBACxG,CAAC;gBACJ,CAAC;gBACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAA4D,CAAC;gBACjF,MAAM,GAAG,GAAG,IAAI,EAAE,OAAO,IAAI,OAAO,IAAI,eAAe,CAAC;gBACxD,OAAO;oBACL,aAAa,GAAG,GAAG,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG;oBACnE,iEAAiE;oBACjE,8EAA8E;iBAC/E,CAAC;YACJ,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_WRITE_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\nimport { SKIP_PREFLIGHT_FLAG, admitCreationRunAfterPreflight } from '~wildo-cli/services/application/creation-preflight.service';\n\n/**\n * `wildo build run [<taskRef>]` — run the build, or one named task (#1652).\n *\n * Without a task ref it runs the build the way the lane runs it: with a build parallelism above one\n * (the default is five, `wildo workbench parallelism`), the companion starts a WAVE that keeps that\n * many coding runs going until nothing more is ready (#2208). `--single` runs the next ready task\n * alone, which is also what a parallelism of one gets. Either way it submits DETACHED and returns at\n * once: a generation step can outlive any HTTP wait, and the console follows it with\n * `wildo creation feed --follow --exit-on-change`. A named task runs alone, through the same service as\n * the workbench's `dispatch_task`, and the companion refuses one that is not ready, naming why.\n */\nexport default class BuildRunCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build run',\n description: 'Run the build — a parallel wave by default, or the next task alone with --single — or one named task.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n args: [{ name: 'taskRef', description: 'The task to run (default: the next ready one)', required: false }],\n flags: {\n 'despite-landed': {\n type: 'boolean',\n description: 'Run a named task its landing probe calls landed, because that landing is wrong. Needs --reason and --note.',\n default: false,\n },\n reason: { type: 'string', description: 'With --despite-landed: why the landing is wrong, as a re-arm reason (the companion names the valid ones)' },\n note: { type: 'string', description: 'With --despite-landed: why the landing is wrong, in a sentence' },\n single: {\n type: 'boolean',\n description: 'Run only the next ready task, even when the build parallelism would start a wave.',\n default: false,\n },\n json: { type: 'boolean', description: 'Emit the companion\\'s document.', default: false },\n [SKIP_PREFLIGHT_FLAG]: { type: 'boolean', description: 'Start even when `wildo creation preflight` reports a FAIL.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const taskRef = typeof ctx.args.taskRef === 'string' && ctx.args.taskRef.length > 0 ? ctx.args.taskRef : null;\n /*\n * #2217: the door past a false landing. A reason and a note are REQUIRED, and recorded on the run — an override\n * nobody explained is a bypass. The reason vocabulary is the companion's, which names the valid values when it\n * refuses one, so this command keeps no copy of it.\n */\n let despiteLanded: { readonly reason: string; readonly note: string } | undefined;\n if (ctx.flags['despite-landed'] === true) {\n const reason = ctx.flags.reason;\n const note = ctx.flags.note;\n if (taskRef === null || typeof reason !== 'string' || typeof note !== 'string' || note.trim().length === 0) {\n ctx.log.error('Usage: wildo build run <taskRef> --despite-landed --reason <reason> --note \"<why the landing is wrong>\" — the reasons are those `wildo build rearm` takes; the companion names them when it refuses one.');\n return { success: false };\n }\n despiteLanded = { reason, note };\n }\n // The build runs the coding agents and the logo step, so it is refused before it starts like a creation run (#2229).\n if (!await admitCreationRunAfterPreflight(ctx, 'wildo build run')) return { success: false };\n const skipPreflight = ctx.flags[SKIP_PREFLIGHT_FLAG] === true;\n return runConsoleVerb(ctx, {\n failureLabel: taskRef ? `Could not run ${taskRef}` : 'Could not run the build',\n timeoutMs: CONSOLE_WRITE_TIMEOUT_MS,\n call: (options) => (taskRef\n ? BuildConsoleClient.runNamed(options, taskRef, despiteLanded, skipPreflight)\n : BuildConsoleClient.runNext(options, ctx.flags.single === true, skipPreflight)),\n render: (result) => {\n const wave = result.wave as { degree?: number; runId?: string; nextReadyTask?: { taskRef?: string; objective?: string } } | undefined;\n if (wave !== undefined) {\n return [\n `Started a build wave: up to ${wave.degree ?? '?'} tasks at once (run ${wave.runId ?? '?'}).`,\n ...(wave.nextReadyTask?.taskRef\n ? [` Ready when it started: ${wave.nextReadyTask.taskRef}${wave.nextReadyTask.objective ? ` — ${wave.nextReadyTask.objective}` : ''}`]\n : []),\n ' Follow it with: wildo creation feed --follow --exit-on-change',\n ' Where each task stands: wildo build tasks',\n ' Commit a finished task the loop did not commit: wildo build accept <taskRef>',\n ' One task at a time instead: wildo build run --single · the width: wildo workbench parallelism <n>',\n ];\n }\n const plan = result.plan as { taskRef?: string; objective?: string } | undefined;\n const ran = plan?.taskRef ?? taskRef ?? 'the next task';\n return [\n `Submitted ${ran}${plan?.objective ? ` — ${plan.objective}` : ''}.`,\n ' Follow it with: wildo creation feed --follow --exit-on-change',\n ' Commit what it wrote, once it finished, with: wildo build accept <taskRef>',\n ];\n },\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.command.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/build/tasks.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAMxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAQvD"}
1
+ {"version":3,"file":"tasks.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/build/tasks.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1F,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAMxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAQvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.command.js","sourceRoot":"","sources":["../../../../../../src/commands/build/tasks.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE3G,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IAC/C,IAAI,GAAgB;QAC3B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,4EAA4E;QACzF,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;KACzG,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,gCAAgC;YAC9C,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC;YACpD,MAAM,EAAE,kBAAkB;SAC3B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient, describeBuildTasks } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/** `wildo build tasks` — every build-plan task, its status, and whether it is stuck (#1652). */\nexport default class BuildTasksCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build tasks',\n description: 'Every build-plan task with its status, attempts and why it has not landed.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: { json: { type: 'boolean', description: 'Emit the companion\\'s task records.', default: false } },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n return runConsoleVerb(ctx, {\n failureLabel: 'Could not read the build tasks',\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.tasks(options),\n render: describeBuildTasks,\n });\n }\n}\n"]}
1
+ {"version":3,"file":"tasks.command.js","sourceRoot":"","sources":["../../../../src/commands/build/tasks.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAE3G,gGAAgG;AAChG,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IAC/C,IAAI,GAAgB;QAC3B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,4EAA4E;QACzF,QAAQ,EAAE,eAAe,CAAC,KAAK;QAC/B,YAAY,EAAE,cAAc,CAAC,QAAQ;QACrC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;KACzG,CAAC;IAEF,KAAK,CAAC,GAAG,CAAC,GAAmB;QAC3B,OAAO,cAAc,CAAC,GAAG,EAAE;YACzB,YAAY,EAAE,gCAAgC;YAC9C,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC;YACpD,MAAM,EAAE,kBAAkB;SAC3B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { BuildConsoleClient, describeBuildTasks } from '~wildo-cli/services/companion/build-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, runConsoleVerb } from '~wildo-cli/services/companion/console-verb.utils';\n\n/** `wildo build tasks` — every build-plan task, its status, and whether it is stuck (#1652). */\nexport default class BuildTasksCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'build tasks',\n description: 'Every build-plan task with its status, attempts and why it has not landed.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: { json: { type: 'boolean', description: 'Emit the companion\\'s task records.', default: false } },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n return runConsoleVerb(ctx, {\n failureLabel: 'Could not read the build tasks',\n timeoutMs: CONSOLE_READ_TIMEOUT_MS,\n call: (options) => BuildConsoleClient.tasks(options),\n render: describeBuildTasks,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"compose.command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/compose.command.ts"],"names":[],"mappings":"AA0CA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAU1F,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAexB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CA8EvD"}
1
+ {"version":3,"file":"compose.command.d.ts","sourceRoot":"","sources":["../../../src/commands/compose.command.ts"],"names":[],"mappings":"AA0CA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAU1F,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,QAAQ,CAAC,IAAI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YAC1E,IAAI,MAAM,EAAE,CAAC;gBACX,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,MAAM,CAAC,MAAM,8BAA8B,IAAI,CAAC,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;gBACvG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC3B,CAAC;YAED,4BAA4B,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;YACxD,GAAG,CAAC,GAAG,CAAC,IAAI,CACV,YAAY,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,qBAAqB,IAAI,CAAC,KAAK,CAAC,MAAM,WAAW;kBAC9F,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,oBAAoB,CACxE,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,SAAS;gBAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;YACrD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * compose — apply a composition scenario to the current application (template-system V2-P1, issue #51).\n *\n * `wildo init` is only the FIRST scenario; this command is the deterministic executor for every\n * later one: `wildo compose <scenario> --var name=value …` materializes the scenario's file tree\n * into the application, with `--dry-run` printing the plan (collect-then-write — the plan IS what\n * apply writes). Scenarios resolve from the application's delivered\n * `.wildo-saas/templates/scenarios/` first, falling back to the framework checkout's\n * `templates/saas/scenarios/` (framework-dev convenience and pre-first-sync bootstrap).\n *\n * The engine lives in `@wildo-ai/application-creation-runtime` (one placement authority for the\n * CLI and the companion); this command supplies the Handlebars-backed renderer and the operator\n * surface.\n *\n * ## It DOES edit existing files, and never overwrites them\n *\n * A scenario declares two kinds of work. `files[]` materializes new paths, and there the rule is\n * absolute: a diverged target refuses wholesale, with git as the reconciliation surface.\n *\n * `edits[]` mutates files the application already owns — the wiring a new service needs to be\n * reachable — and most shipped scenarios declare one; the exceptions add nothing an existing file\n * has to point at. Do not quote a count from this header: the scenario set under\n * `templates/saas/scenarios/` grows, and a number written beside the mechanism it describes is the\n * first thing to go stale. Count the `scenario.json` files carrying an `edits` key when you need\n * one. They are STRUCTURED mutations, not\n * patches: each names an exported object and a path within it, the walker refuses anything it\n * cannot resolve rather than guessing (`application-config-mutation.application-creation.service.ts`),\n * and a missing target names the failing segment. An earlier revision of this header said the\n * command \"never edits existing files in v1 — zero-edit scenarios only\", which was true when it was\n * written and has not been true since `edits[]` landed.\n */\nimport { existsSync } from 'fs';\nimport { dirname, join } from 'path';\nimport {\n applyCompositionScenarioPlan,\n createCompositionTemplateRenderer,\n listCompositionScenarioDirectories,\n loadCompositionScenario,\n planCompositionScenario,\n resolveCompositionScenarioVariables,\n type CompositionTemplateRenderer,\n} from '@wildo-ai/application-creation-runtime';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nimport { SAAS_CONFIG_MARKER, findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\nimport { planCompositionProviderLinks } from '~wildo-cli/services/application/composition-provider-plan.service';\n\n// THE shared scenario renderer — the companion's foundation executor builds the same one, so\n// identical scenario bytes render identically regardless of which host applies them.\nconst handlebarsRenderer: CompositionTemplateRenderer = createCompositionTemplateRenderer();\n\nexport default class ComposeCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'compose',\n description: 'Apply a composition scenario to the current application (list scenarios by running without arguments)',\n category: CommandCategory.Core,\n args: [{ name: 'scenario', description: 'Scenario ref (e.g. add-environment)', required: false }],\n flags: {\n var: {\n type: 'string[]',\n description: 'Scenario variable as name=value (repeatable: --var envName=staging publicDomain=…)',\n },\n 'dry-run': {\n type: 'boolean',\n description: 'Print the write plan without touching the filesystem',\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const applicationRoot = findApplicationRoot(process.cwd());\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null;\n if (!applicationRoot) {\n ctx.log.error(`No ${SAAS_CONFIG_MARKER} found from ${process.cwd()} upward — run 'wildo compose' inside an application.`);\n return { success: false };\n }\n\n const scenarioDirectoriesByRef = listCompositionScenarioDirectories({ applicationRoot, frameworkRoot: frameworkPath });\n\n const scenarioRef = ctx.args.scenario;\n if (!scenarioRef) {\n if (scenarioDirectoriesByRef.size === 0) {\n ctx.log.info('No composition scenarios available — run the framework sync to deliver .wildo-saas/templates.');\n return { success: true };\n }\n ctx.log.info('Available composition scenarios:');\n for (const [ref, directory] of scenarioDirectoriesByRef) {\n try {\n const { manifest } = loadCompositionScenario(directory);\n const requiredVariables = manifest.variables.filter((variable) => variable.required).map((variable) => variable.name);\n ctx.log.info(` ${ref} — ${manifest.title}${requiredVariables.length > 0 ? ` (requires: ${requiredVariables.join(', ')})` : ''}`);\n } catch (error) {\n ctx.log.warn(` ${ref} — INVALID: ${ErrorUtils.extractErrorMessage(error)}`);\n }\n }\n return { success: true };\n }\n\n const scenarioDirectory = scenarioDirectoriesByRef.get(scenarioRef);\n if (!scenarioDirectory) {\n ctx.log.error(`Unknown scenario '${scenarioRef}'. Run 'wildo compose' to list what is available.`);\n return { success: false };\n }\n\n try {\n const scenario = loadCompositionScenario(scenarioDirectory);\n const suppliedVariables: Record<string, string> = {};\n for (const entry of (ctx.flags.var as string[] | undefined) ?? []) {\n const separatorIndex = entry.indexOf('=');\n if (separatorIndex <= 0) {\n ctx.log.error(`--var expects name=value, got '${entry}'.`);\n return { success: false };\n }\n suppliedVariables[entry.slice(0, separatorIndex)] = entry.slice(separatorIndex + 1);\n }\n\n const variables = resolveCompositionScenarioVariables(scenario.manifest, suppliedVariables);\n const plan = planCompositionProviderLinks({\n plan: planCompositionScenario({ scenario, applicationRoot, variables, renderer: handlebarsRenderer }),\n applicationRoot, frameworkPath, log: ctx.log,\n });\n\n for (const write of plan.writes) ctx.log.info(` + ${write.targetRelativePath}${write.summary ? ` (${write.summary})` : ''}`);\n for (const edit of plan.edits) ctx.log.info(` ~ ${edit.targetRelativePath} (${edit.summary})`);\n for (const skip of plan.skipped) ctx.log.info(` = ${skip.targetRelativePath} (already identical)`);\n for (const skip of plan.skippedEdits) ctx.log.info(` = ${skip.targetRelativePath} (${skip.summary} — already present)`);\n for (const collision of plan.collisions) ctx.log.warn(` ! ${collision} exists with DIFFERENT content`);\n\n const dryRun = ctx.flags['dry-run'] === true || ctx.flags.dryRun === true;\n if (dryRun) {\n ctx.log.info(`Dry run — ${plan.writes.length} file(s) would be written, ${plan.edits.length} edited.`);\n return { success: true };\n }\n\n applyCompositionScenarioPlan({ plan, applicationRoot });\n ctx.log.info(\n `Applied '${scenarioRef}': ${plan.writes.length} file(s) written, ${plan.edits.length} edited, `\n + `${plan.skipped.length + plan.skippedEdits.length} already in place.`,\n );\n\n for (const note of plan.postNotes) ctx.log.info(` → ${note}`);\n return { success: true };\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n }\n}\n"]}
1
+ {"version":3,"file":"compose.command.js","sourceRoot":"","sources":["../../../src/commands/compose.command.ts"],"names":[],"mappings":"AAiCA,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,GAEpC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,E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I,CAAC,KAAK,CAAC,MAAM,WAAW;kBAC9F,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,oBAAoB,CACxE,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,SAAS;gBAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;YACrD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * compose — apply a composition scenario to the current application (template-system V2-P1, issue #51).\n *\n * `wildo init` is only the FIRST scenario; this command is the deterministic executor for every\n * later one: `wildo compose <scenario> --var name=value …` materializes the scenario's file tree\n * into the application, with `--dry-run` printing the plan (collect-then-write — the plan IS what\n * apply writes). Scenarios resolve from the application's delivered\n * `.wildo-saas/templates/scenarios/` first, falling back to the framework checkout's\n * `templates/saas/scenarios/` (framework-dev convenience and pre-first-sync bootstrap).\n *\n * The engine lives in `@wildo-ai/application-creation-runtime` (one placement authority for the\n * CLI and the companion); this command supplies the Handlebars-backed renderer and the operator\n * surface.\n *\n * ## It DOES edit existing files, and never overwrites them\n *\n * A scenario declares two kinds of work. `files[]` materializes new paths, and there the rule is\n * absolute: a diverged target refuses wholesale, with git as the reconciliation surface.\n *\n * `edits[]` mutates files the application already owns — the wiring a new service needs to be\n * reachable — and most shipped scenarios declare one; the exceptions add nothing an existing file\n * has to point at. Do not quote a count from this header: the scenario set under\n * `templates/saas/scenarios/` grows, and a number written beside the mechanism it describes is the\n * first thing to go stale. Count the `scenario.json` files carrying an `edits` key when you need\n * one. They are STRUCTURED mutations, not\n * patches: each names an exported object and a path within it, the walker refuses anything it\n * cannot resolve rather than guessing (`application-config-mutation.application-creation.service.ts`),\n * and a missing target names the failing segment. An earlier revision of this header said the\n * command \"never edits existing files in v1 — zero-edit scenarios only\", which was true when it was\n * written and has not been true since `edits[]` landed.\n */\nimport { existsSync } from 'fs';\nimport { dirname, join } from 'path';\nimport {\n applyCompositionScenarioPlan,\n createCompositionTemplateRenderer,\n listCompositionScenarioDirectories,\n loadCompositionScenario,\n planCompositionScenario,\n resolveCompositionScenarioVariables,\n type CompositionTemplateRenderer,\n} from '@wildo-ai/application-creation-runtime';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\nimport { SAAS_CONFIG_MARKER, findApplicationRoot } from '~wildo-cli/services/application/application-root.utils';\nimport { planCompositionProviderLinks } from '~wildo-cli/services/application/composition-provider-plan.service';\n\n// THE shared scenario renderer — the companion's foundation executor builds the same one, so\n// identical scenario bytes render identically regardless of which host applies them.\nconst handlebarsRenderer: CompositionTemplateRenderer = createCompositionTemplateRenderer();\n\nexport default class ComposeCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'compose',\n description: 'Apply a composition scenario to the current application (list scenarios by running without arguments)',\n category: CommandCategory.Core,\n args: [{ name: 'scenario', description: 'Scenario ref (e.g. add-environment)', required: false }],\n flags: {\n var: {\n type: 'string[]',\n description: 'Scenario variable as name=value (repeatable: --var envName=staging publicDomain=…)',\n },\n 'dry-run': {\n type: 'boolean',\n description: 'Print the write plan without touching the filesystem',\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const applicationRoot = findApplicationRoot(process.cwd());\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null;\n if (!applicationRoot) {\n ctx.log.error(`No ${SAAS_CONFIG_MARKER} found from ${process.cwd()} upward — run 'wildo compose' inside an application.`);\n return { success: false };\n }\n\n const scenarioDirectoriesByRef = listCompositionScenarioDirectories({ applicationRoot, frameworkRoot: frameworkPath });\n\n const scenarioRef = ctx.args.scenario;\n if (!scenarioRef) {\n if (scenarioDirectoriesByRef.size === 0) {\n ctx.log.info('No composition scenarios available — run the framework sync to deliver .wildo-saas/templates.');\n return { success: true };\n }\n ctx.log.info('Available composition scenarios:');\n for (const [ref, directory] of scenarioDirectoriesByRef) {\n try {\n const { manifest } = loadCompositionScenario(directory);\n const requiredVariables = manifest.variables.filter((variable) => variable.required).map((variable) => variable.name);\n ctx.log.info(` ${ref} — ${manifest.title}${requiredVariables.length > 0 ? ` (requires: ${requiredVariables.join(', ')})` : ''}`);\n } catch (error) {\n ctx.log.warn(` ${ref} — INVALID: ${ErrorUtils.extractErrorMessage(error)}`);\n }\n }\n return { success: true };\n }\n\n const scenarioDirectory = scenarioDirectoriesByRef.get(scenarioRef);\n if (!scenarioDirectory) {\n ctx.log.error(`Unknown scenario '${scenarioRef}'. Run 'wildo compose' to list what is available.`);\n return { success: false };\n }\n\n try {\n const scenario = loadCompositionScenario(scenarioDirectory);\n const suppliedVariables: Record<string, string> = {};\n for (const entry of (ctx.flags.var as string[] | undefined) ?? []) {\n const separatorIndex = entry.indexOf('=');\n if (separatorIndex <= 0) {\n ctx.log.error(`--var expects name=value, got '${entry}'.`);\n return { success: false };\n }\n suppliedVariables[entry.slice(0, separatorIndex)] = entry.slice(separatorIndex + 1);\n }\n\n const variables = resolveCompositionScenarioVariables(scenario.manifest, suppliedVariables);\n const plan = planCompositionProviderLinks({\n plan: planCompositionScenario({ scenario, applicationRoot, variables, renderer: handlebarsRenderer }),\n applicationRoot, frameworkPath, log: ctx.log,\n });\n\n for (const write of plan.writes) ctx.log.info(` + ${write.targetRelativePath}${write.summary ? ` (${write.summary})` : ''}`);\n for (const edit of plan.edits) ctx.log.info(` ~ ${edit.targetRelativePath} (${edit.summary})`);\n for (const skip of plan.skipped) ctx.log.info(` = ${skip.targetRelativePath} (already identical)`);\n for (const skip of plan.skippedEdits) ctx.log.info(` = ${skip.targetRelativePath} (${skip.summary} — already present)`);\n for (const collision of plan.collisions) ctx.log.warn(` ! ${collision} exists with DIFFERENT content`);\n\n const dryRun = ctx.flags['dry-run'] === true || ctx.flags.dryRun === true;\n if (dryRun) {\n ctx.log.info(`Dry run — ${plan.writes.length} file(s) would be written, ${plan.edits.length} edited.`);\n return { success: true };\n }\n\n applyCompositionScenarioPlan({ plan, applicationRoot });\n ctx.log.info(\n `Applied '${scenarioRef}': ${plan.writes.length} file(s) written, ${plan.edits.length} edited, `\n + `${plan.skipped.length + plan.skippedEdits.length} already in place.`,\n );\n\n for (const note of plan.postNotes) ctx.log.info(` → ${note}`);\n return { success: true };\n } catch (error) {\n ctx.log.error(ErrorUtils.extractErrorMessage(error));\n return { success: false };\n }\n }\n}\n"]}
@@ -0,0 +1,50 @@
1
+ import { BaseCommand } from '../../kernel/base-command';
2
+ import type { CommandContext, CommandMeta, CommandResult } from '../../kernel/types';
3
+ /**
4
+ * The line this command prints, and only prints, when it could not ASK — a stale or absent compiled model, or a runner
5
+ * that crashed before the registry was built. The companion's `check:resources-registry-init` reads it to report the
6
+ * check as unrun rather than failed, exactly as `check:schema-plan-in-sync` reads `wildo db diff`'s refusal.
7
+ */
8
+ export declare const RESOURCES_REGISTRY_COULD_NOT_ASK_MARKER = "Cannot check the resources registry";
9
+ /** The runner's answer: the registry built, or the factory's refusal verbatim and the resource it names. */
10
+ export type ResourcesRegistryCheckAnswer = {
11
+ readonly ok: true;
12
+ readonly resourceCount: number;
13
+ } | {
14
+ readonly ok: false;
15
+ readonly message: string;
16
+ readonly resourceIdentifier: string | null;
17
+ };
18
+ /**
19
+ * The resource a refusal names. Every resource-configuration refusal the factory raises opens with
20
+ * `[<resourceIdentifier>]`, so the bracket is the one place to read it from; a refusal without one (a registry-wide
21
+ * rule) names no resource.
22
+ */
23
+ export declare function readRefusedResourceIdentifier(message: string): string | null;
24
+ /**
25
+ * The runner: imports the application's COMPILED backend modules registry and builds the resources registry the way
26
+ * the backend does at startup — every resource configuration factory, then `ResourcesRegistryBackendService.initialize`
27
+ * — with no database and no network. `createStandaloneSchemaPlanning` is that construction (it is what `wildo db diff`
28
+ * plans from); this runner keeps the registry and drops the plan.
29
+ *
30
+ * A refusal is an ANSWER, written to the output file with exit 0; only a crash before the registry could be built
31
+ * leaves no file, which the command reports as could-not-ask.
32
+ */
33
+ export declare function buildResourcesRegistryCheckRunnerSource(): string;
34
+ /**
35
+ * `wildo config check-resources` (#2404) — does every resource configuration build, and does the resources registry
36
+ * initialize, as the backend's startup will require?
37
+ *
38
+ * The resource-configuration factory enforces many rules only when the backend STARTS — a `retentionPolicy` needs
39
+ * READ / LIST / UPDATE_MANY, a `dataSubjectPolicy` needs a `retentionPolicy`, a retention binding needs a resolvable
40
+ * delete — and no typecheck sees them. `app-creation-test-005` landed a configuration missing UPDATE_MANY after four
41
+ * green checks; its backend then failed every start for four hours while 45 further tasks landed on top. The schema-plan
42
+ * check that does build the registry never ran there: a MongoDB application has no plan to drift from.
43
+ *
44
+ * Exit 0: the registry built. Exit 1: the factory refused, with its message and the resource. Exit 2: could not ask.
45
+ */
46
+ export default class ConfigCheckResourcesCommand extends BaseCommand {
47
+ readonly meta: CommandMeta;
48
+ run(ctx: CommandContext): Promise<CommandResult>;
49
+ }
50
+ //# sourceMappingURL=check-resources.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-resources.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/check-resources.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAS1F;;;;GAIG;AACH,eAAO,MAAM,uCAAuC,wCAAwC,CAAC;AAE7F,4GAA4G;AAC5G,MAAM,MAAM,4BAA4B,GACpC;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAEjG;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE5E;AAED;;;;;;;;GAQG;AACH,wBAAgB,uCAAuC,IAAI,MAAM,CA2BhE;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,WAAW;IAClE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAOxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAwCvD"}