@wildo-ai/dev-companion 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/bin/companion-supervisor.d.mts +33 -0
  2. package/bin/companion-supervisor.mjs +174 -0
  3. package/bin/wildo-dev-companion-supervised.mjs +16 -0
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  5. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
  11. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  12. package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
  13. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  14. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
  15. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  16. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
  17. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +41 -2
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  20. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +43 -1
  21. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  22. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +57 -1
  23. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  24. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +75 -1
  25. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  26. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +90 -5
  27. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +242 -22
  29. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  30. package/dist/esm/companion-api/companion-api.schemas.d.ts +23 -2
  31. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  32. package/dist/esm/companion-api/companion-api.schemas.js +13 -2
  33. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  34. package/dist/esm/companion-api/controllers/companion.controller.d.ts +63 -7
  35. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  36. package/dist/esm/companion-api/controllers/companion.controller.js +315 -39
  37. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  38. package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
  39. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  40. package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
  41. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  42. package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
  43. package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
  44. package/dist/esm/core/context/application-module-generations.companion.js +313 -0
  45. package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
  46. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
  47. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  48. package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
  49. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  50. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  51. package/dist/esm/core/inject/models/container.js +4 -0
  52. package/dist/esm/core/inject/models/container.js.map +1 -1
  53. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  54. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  55. package/dist/esm/core/inject/models/service-types.js +4 -0
  56. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  57. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
  58. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  59. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
  60. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  61. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
  62. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  63. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +64 -25
  64. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  65. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  66. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +2 -0
  67. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  68. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
  69. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  70. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +192 -19
  71. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  72. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  73. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +27 -5
  74. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  75. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +47 -0
  76. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
  77. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +98 -0
  78. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
  79. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +6 -1
  80. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  81. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +20 -1
  82. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  83. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +34 -8
  84. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  85. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +61 -12
  86. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  87. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
  88. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
  89. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
  90. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
  91. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +41 -22
  92. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  93. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +64 -47
  94. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  95. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
  96. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  97. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
  98. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  99. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  100. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
  101. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  102. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  103. package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
  104. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  105. package/dist/esm/core/runtime/companion-env-file.js +75 -16
  106. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  107. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +7 -3
  108. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  109. package/dist/esm/core/runtime/services/start-companion-application.service.js +29 -11
  110. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  111. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
  112. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
  113. package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
  114. package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
  115. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
  116. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  117. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
  118. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  119. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  120. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
  121. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  122. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  123. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +66 -6
  124. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  125. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
  126. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  127. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +10 -4
  128. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  129. package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
  130. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  131. package/dist/esm/email/services/email-template.companion.service.js +4 -1
  132. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  133. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  134. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
  135. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  136. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  137. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
  138. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  139. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  140. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +7 -7
  141. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  142. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  143. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +41 -1
  144. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  145. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  146. package/dist/esm/i18n/resources/workbenchAspects.en.js +7 -0
  147. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  148. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
  149. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  150. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
  151. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  152. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
  153. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  154. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
  155. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  156. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +46 -0
  157. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  158. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +12 -0
  159. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  160. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +266 -0
  161. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  162. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +91 -5
  163. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  164. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +41 -0
  165. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  166. package/dist/esm/i18n/system_enums/application-creation.en.js +45 -1
  167. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  168. package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
  169. package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
  170. package/dist/esm/i18n/system_enums/localization.en.js +82 -0
  171. package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
  172. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
  173. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  174. package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
  175. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  176. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
  177. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  178. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
  179. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  180. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
  181. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
  182. package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
  183. package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
  184. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
  185. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  186. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
  187. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  188. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
  189. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  190. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
  191. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  192. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
  193. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
  194. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
  195. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
  196. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
  197. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  198. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
  199. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  200. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
  201. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
  202. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
  203. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
  204. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +67 -1
  205. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  206. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +64 -0
  207. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  208. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
  209. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
  210. package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
  211. package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
  212. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
  213. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
  214. package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
  215. package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
  216. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
  217. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  218. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
  219. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  220. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
  221. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  222. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
  223. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  224. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
  225. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  226. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
  227. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  228. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
  229. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
  230. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
  231. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
  232. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
  233. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
  234. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
  235. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
  236. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +376 -17
  237. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  238. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +805 -39
  239. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  240. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +93 -7
  241. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  242. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +142 -25
  243. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  244. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +120 -3
  245. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  246. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +325 -16
  247. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  248. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  249. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +15 -6
  250. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  251. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  252. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
  253. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  254. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  255. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
  256. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  257. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
  258. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
  259. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
  260. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
  261. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +60 -0
  262. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
  263. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +66 -0
  264. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
  265. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
  266. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
  267. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
  268. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
  269. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
  270. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
  271. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
  272. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
  273. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -14
  274. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  275. package/dist/esm/meta-workflows/services/dossier.companion.service.js +180 -28
  276. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  277. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +2 -3
  278. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  279. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +2 -8
  280. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  281. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
  282. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
  283. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
  284. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
  285. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  286. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +11 -3
  287. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  288. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +92 -4
  289. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  290. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +328 -7
  291. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  292. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +105 -6
  293. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  294. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +309 -39
  295. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  296. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
  297. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  298. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
  299. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  300. package/package.json +22 -18
  301. package/dist/esm/.tsbuildinfo +0 -1
  302. package/dist/esm/__tests__/asset-noop.d.ts +0 -3
  303. package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
  304. package/dist/esm/__tests__/asset-noop.js +0 -2
  305. package/dist/esm/__tests__/asset-noop.js.map +0 -1
  306. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
  307. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
  308. package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
  309. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
  310. package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
  311. package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
  312. package/dist/esm/__tests__/internal-test-view.js +0 -2
  313. package/dist/esm/__tests__/internal-test-view.js.map +0 -1
  314. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
  315. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
  316. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
  317. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
  318. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
  319. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
  320. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
  321. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
  322. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
  323. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
  324. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
  325. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
@@ -1,6 +1,7 @@
1
- import { BuildPlanResourceStage, BuildPlanTaskProductKind, BuildPlanWorkerRuntime, ApplicationGuidanceKind, FrontendConfigSurface, PlacementSurface, ProviderBindingScope, BuildPlanTaskTargetKind, isScaffoldedResourceOperationRef, isScaffoldedWebsiteStarterPage, isScaffoldedWebsiteStarterSection, PlacementSubjectKind, INTEGRATION_INBOUND_CHANNEL_SKILL_REF, BILLING_CATALOG_SKILL_REF, } from '@wildo-ai/saas-specifications/application-creation';
1
+ import { BuildPlanResourceStage, BuildPlanTaskProductKind, BuildPlanWorkerRuntime, ApplicationGuidanceKind, FrontendConfigSurface, PlacementSurface, ProviderBindingScope, BuildPlanTaskTargetKind, isScaffoldedResourceOperationRef, isScaffoldedWebsiteStarterPage, isScaffoldedWebsiteStarterSection, PlacementSubjectKind, INTEGRATION_INBOUND_CHANNEL_SKILL_REF, BILLING_CATALOG_SKILL_REF, BuildPlanDataSeedContent, DATA_SEED_SKILL_REF, } from '@wildo-ai/saas-specifications/application-creation';
2
2
  import { LauncherItemTargetKind } from '@wildo-ai/saas-frontend-lib/companion';
3
- import { packageTypecheckCheckRef } from '../../claude-cli/models/coding-agent-dispatch.models.js';
3
+ import { AvailableLanguage } from '@wildo-ai/presets-components-models';
4
+ import { PACKAGE_TYPECHECK_CHECK_REF_PREFIX, packageTypecheckCheckRef } from '../../claude-cli/models/coding-agent-dispatch.models.js';
4
5
  import { createInitialAssuranceDocumentAuthorityCatalog, selectAssuranceDocumentBlueprintForDocumentRef, } from '@wildo-ai/saas-specifications/assurance';
5
6
  /** A build task no coding agent may run: the companion owns it (labels, seeds, emails…). */
6
7
  export class ApplicationBuildTaskNotACodingTaskError extends Error {
@@ -328,6 +329,7 @@ export function buildPlanTaskLandedProbePaths(probe) {
328
329
  case BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES:
329
330
  return [probe.path];
330
331
  case BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES:
332
+ case BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_PACKS_DECLARE:
331
333
  return probe.paths;
332
334
  // The files a shell probe reads are the ones the RESOLVED shell says contribute — known only at
333
335
  // evaluation, from the introspection answer, and checked there. Nothing fixed to prime or batch.
@@ -355,6 +357,9 @@ export function buildPlanTaskLandedProbeWritablePaths(probe) {
355
357
  return [probe.path];
356
358
  case BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES:
357
359
  return probe.writablePaths;
360
+ // A section writes its keys into every locale's pack, which is exactly the set the probe reads.
361
+ case BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_PACKS_DECLARE:
362
+ return probe.paths;
358
363
  // No grant from the probe: the task's TARGET already names the surface's config file, and a
359
364
  // module's contribution file is inside the workspace-wide scope every task now carries.
360
365
  case BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN:
@@ -437,6 +442,84 @@ const CHECK_COVERAGE = {
437
442
  };
438
443
  /** The build-task checks whose coverage is stated, in the order a task runs them. */
439
444
  export const BUILD_TASK_COVERED_CHECK_REFS = Object.keys(CHECK_COVERAGE);
445
+ /**
446
+ * Whole-application questions a typecheck cannot answer, asked ONLY at the end of a build (#2228): does each optional
447
+ * site BUILD (`astro build`, `docusaurus build`), and does the configuration pass the checks the backend runs at
448
+ * startup. Never per task: a site build takes minutes, and a task already owes its package's typecheck, which is
449
+ * the fast half of the same question. An absent package answers "nothing to build" in the executor.
450
+ */
451
+ export const APPLICATION_ASSEMBLY_ONLY_CHECK_REFS = [
452
+ 'check:website-build',
453
+ 'check:technical-doc-build',
454
+ 'check:config-validate',
455
+ // The RUNNING backend: a build can typecheck, build and validate while the backend crash-loops at boot.
456
+ 'check:backend-ready',
457
+ // And the running frontend, in a browser — the CLI drives it, and answers could-not-ask without Playwright.
458
+ 'check:browser-smoke',
459
+ ];
460
+ /**
461
+ * Does the WHOLE application assemble? The checks that answer it (#2222): the typecheck of every workspace package
462
+ * the application can have, the package typecheck of every workers/minions package it has, and the schema-plan
463
+ * gate — derived from {@link CHECK_COVERAGE} and the workspace, never listed.
464
+ *
465
+ * It was a list of four (specifications, shared-lib, backend-api, frontend) in `bottom_up.assemble-verify`, and the
466
+ * list went stale the day #1490 added `website` and `technical-doc` packages: `app-creation-test-004` built a
467
+ * website that did not compile and no end-of-build question could see it. Derived from the coverage table, a
468
+ * package added there is asked about here with nobody remembering to. A package the application does not have
469
+ * answers "nothing to typecheck" in the executor, so naming every one is always safe.
470
+ *
471
+ * `packageDirectories` are the application's workers/minions package directories (`workers/reminders`, …), listed
472
+ * by `resolveApplicationAssemblyCheckRefs`; `nonTypeScriptPackages` the ones with no TypeScript (a Rust worker).
473
+ */
474
+ export function deriveApplicationAssemblyCheckRefs(packageDirectories, nonTypeScriptPackages = []) {
475
+ const packageTypechecks = Object.entries(CHECK_COVERAGE)
476
+ .filter(([checkRef, covered]) => checkRef.endsWith('-typecheck') && covered.length === 1 && /^[a-z-]+\/$/u.test(covered[0]))
477
+ .map(([checkRef]) => checkRef);
478
+ const parametric = [...new Set(packageDirectories.flatMap((entry) => PARAMETRIC_PACKAGE_DIRECTORY.exec(entry)?.[1] ?? []))]
479
+ .filter((directory) => !nonTypeScriptPackages.includes(directory))
480
+ .sort()
481
+ .map(packageTypecheckCheckRef);
482
+ // Builds and config after the compile questions (a build of a package that does not typecheck says nothing new);
483
+ // the drift gate LAST, as assemble-verify always ran it: a drift report reads best once the compile questions are settled.
484
+ return [...packageTypechecks, ...parametric, ...APPLICATION_ASSEMBLY_ONLY_CHECK_REFS, 'check:schema-plan-in-sync'];
485
+ }
486
+ /**
487
+ * What each end-of-build-only check READS (#2283), the counterpart of {@link CHECK_COVERAGE} for the checks no task
488
+ * runs. A repair of the check is scoped and verified from it. A site build reads its package; `wildo config validate`
489
+ * reads the application declaration, its infrastructure configuration and its CI workflow; the running backend
490
+ * boots from the backend and the shared library; the browser smoke renders the frontend.
491
+ */
492
+ const ASSEMBLY_ONLY_CHECK_COVERAGE = {
493
+ 'check:website-build': ['website/'],
494
+ 'check:technical-doc-build': ['technical-doc/'],
495
+ 'check:config-validate': ['wildo.saas.config.ts', 'infrastructure/', '.github/'],
496
+ 'check:backend-ready': ['backend-api/', 'shared-lib/'],
497
+ 'check:browser-smoke': ['frontend/'],
498
+ };
499
+ /**
500
+ * The boundary of a REPAIR of one failing end-of-build check (#2283): where it may write and what it must pass,
501
+ * derived from the check alone, never chosen by a model.
502
+ *
503
+ * - **Scope**: the check's coverage, widened to every workspace entry exactly as a build task's is (#1268), since a
504
+ * compile error in one package is often fixed in another. `.wildo-saas/` stays prohibited, and so does the generated
505
+ * documentation tree when the repair touches `technical-doc/`: the publication step owns it and would overwrite a
506
+ * hand edit, as it does for a documentation task.
507
+ * - **Checks**: what the coverage obliges ({@link deriveRequiredCheckRefs}), then the failing check itself, last, so
508
+ * the run's own verification asks the question again. A check with no known coverage still requires itself.
509
+ */
510
+ export function resolveAssemblyRepairCodingPolicy(checkRef, applicationWorkspaceEntries, nonTypeScriptPackages = []) {
511
+ const coverage = CHECK_COVERAGE[checkRef]
512
+ ?? ASSEMBLY_ONLY_CHECK_COVERAGE[checkRef]
513
+ ?? (checkRef.startsWith(PACKAGE_TYPECHECK_CHECK_REF_PREFIX) ? [`${checkRef.slice(PACKAGE_TYPECHECK_CHECK_REF_PREFIX.length)}/`] : []);
514
+ const required = deriveRequiredCheckRefs(coverage, nonTypeScriptPackages).filter((ref) => ref !== checkRef);
515
+ return {
516
+ allowedPathPrefixes: [...new Set([...coverage, ...resolveApplicationWorkspaceMutationScope(applicationWorkspaceEntries)])],
517
+ prohibitedPathPrefixes: coverage.some((prefix) => prefix.startsWith('technical-doc/'))
518
+ ? [...ALWAYS_PROHIBITED_PREFIXES, TECHNICAL_DOCUMENTATION_GENERATED_PREFIX]
519
+ : [...ALWAYS_PROHIBITED_PREFIXES],
520
+ requiredCheckRefs: [...required, checkRef],
521
+ };
522
+ }
440
523
  /** A workers/ or minions/ package directory, as the parametric package typecheck names it. */
441
524
  const PARAMETRIC_PACKAGE_DIRECTORY = /^((?:workers|minions)\/[a-z0-9]+(?:-[a-z0-9]+)*)(?:\/|$)/u;
442
525
  /** Two path prefixes overlap when either contains the other: a write there can reach what the check reads. */
@@ -615,6 +698,15 @@ export var BuildPlanTaskLandedProbeKind;
615
698
  BuildPlanTaskLandedProbeKind["COMMITTED_FILE_DECLARES"] = "COMMITTED_FILE_DECLARES";
616
699
  /** Any one of several candidate files declares each named symbol — a product whose home is not a single known path. */
617
700
  BuildPlanTaskLandedProbeKind["ANY_COMMITTED_FILE_DECLARES"] = "ANY_COMMITTED_FILE_DECLARES";
701
+ /**
702
+ * Every COMMITTED label pack among `paths` carries a key under `keyPrefix`, and at least one pack is committed
703
+ * (#2216) — a website section's words, which it must add to each locale's pack. `paths` is total over the
704
+ * language vocabulary (`website/src/i18n/<locale>.json`, the name the website's own pack loader reads), so no
705
+ * locale is guessed and a pack the application does not have is simply not committed. Every committed pack,
706
+ * because the website build refuses a locale missing a key its sections read: a section with words in one
707
+ * language only would land on a site that does not build.
708
+ */
709
+ BuildPlanTaskLandedProbeKind["COMMITTED_LABEL_PACKS_DECLARE"] = "COMMITTED_LABEL_PACKS_DECLARE";
618
710
  /**
619
711
  * The RESOLVED shell surface carries what the placement plan decided for it (#1538): every subject
620
712
  * the plan PLACED on that surface is present by identity, no subject the plan DECLINED is, and every
@@ -724,6 +816,14 @@ export function inboundChannelHandlerFileStem(handlerRef) {
724
816
  export function inboundChannelHandlerImportTail(handlerRef) {
725
817
  return `inbound/${inboundChannelHandlerFileStem(handlerRef)}`;
726
818
  }
819
+ /**
820
+ * The file a data seed lives in, without its extension — DERIVED from the seed's key, never chosen (#2234):
821
+ * `crm:demo-customers` → `seeds/crm.demo-customers.seed`. `:` becomes `.` because a file name cannot carry `:` on
822
+ * every platform. The `seeding-authoring` skill states the same rule, so the agent writes the file landing reads.
823
+ */
824
+ export function dataSeedFileStem(seedKey) {
825
+ return `${seedKey.replaceAll(':', '.')}.seed`;
826
+ }
727
827
  /**
728
828
  * The skills a task's PRODUCTS require, whatever the decomposer wrote (#1832, #1835). A task producing an inbound
729
829
  * channel handler is authored with `inbound-channels`: the skill carries the handler contract, the file-name rule
@@ -736,6 +836,8 @@ export function productDerivedSkillRefs(task) {
736
836
  ...(kinds.has(BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER) ? [INTEGRATION_INBOUND_CHANNEL_SKILL_REF] : []),
737
837
  // #1835: the catalogue the backend sells from and the website advertises is written with its contract in hand.
738
838
  ...(kinds.has(BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT) ? [BILLING_CATALOG_SKILL_REF] : []),
839
+ // #2234: a seed is authored with its levels, modes, business keys and environment restriction in hand.
840
+ ...(kinds.has(BuildPlanTaskProductKind.APPLICATION_DATA_SEED) ? [DATA_SEED_SKILL_REF] : []),
739
841
  ];
740
842
  }
741
843
  export function resolveBuildTaskLandedProbes(task) {
@@ -759,8 +861,10 @@ export function resolveBuildTaskLandedProbes(task) {
759
861
  */
760
862
  let resolvedModuleRef;
761
863
  const moduleRefOf = () => (resolvedModuleRef ??= productModuleRef(task));
762
- return task.produces.map((product) => withDeclarationSite(product, landedProbeDraft(task, product, moduleRefOf)))
763
- .filter((probe) => probe !== undefined);
864
+ return task.produces.flatMap((product) => {
865
+ const drafts = landedProbeDraft(task, product, moduleRefOf);
866
+ return (Array.isArray(drafts) ? drafts : [drafts]).map((draft) => withDeclarationSite(product, draft));
867
+ }).filter((probe) => probe !== undefined);
764
868
  }
765
869
  /**
766
870
  * Attach the product's declaration site to a probe that asks about declarations (#1539). Done HERE,
@@ -778,6 +882,10 @@ function withDeclarationSite(product, draft) {
778
882
  return draft;
779
883
  }
780
884
  }
885
+ /**
886
+ * A product's landing draft — or several, when the product is real only once it exists in more than one place (a
887
+ * website section: defined in its page's list AND worded in the label packs, #2216). Every one must hold.
888
+ */
781
889
  function landedProbeDraft(task, product, moduleRefOf) {
782
890
  switch (product.kind) {
783
891
  case BuildPlanTaskProductKind.APPLICATION_FRONTEND_CONFIG:
@@ -949,11 +1057,23 @@ function landedProbeDraft(task, product, moduleRefOf) {
949
1057
  case BuildPlanTaskProductKind.WEBSITE_SECTION:
950
1058
  if (isScaffoldedWebsiteStarterSection(product.sectionRef))
951
1059
  return undefined;
952
- return {
953
- kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
954
- path: `website/src/sections/${websitePageIdentity(product.pageRef)}.sections.tsx`,
955
- declarations: [product.sectionRef],
956
- };
1060
+ /*
1061
+ * TWO probes, both required (#2216): the section is an entry of its page's list (the site the declaration
1062
+ * table states), and its words exist under `website.<page>.<sectionRef>.` in every committed locale pack.
1063
+ * A section the page lists with no words renders keys, and the website build refuses it.
1064
+ */
1065
+ return [
1066
+ {
1067
+ kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1068
+ path: `website/src/sections/${websitePageIdentity(product.pageRef)}.sections.tsx`,
1069
+ declarations: [product.sectionRef],
1070
+ },
1071
+ {
1072
+ kind: BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_PACKS_DECLARE,
1073
+ paths: WEBSITE_LABEL_PACK_PATHS,
1074
+ keyPrefix: `website.${websitePageIdentity(product.pageRef)}.${product.sectionRef}.`,
1075
+ },
1076
+ ];
957
1077
  case BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER:
958
1078
  return {
959
1079
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
@@ -1080,6 +1200,43 @@ function landedProbeDraft(task, product, moduleRefOf) {
1080
1200
  writablePaths: ['specifications/src/compliance-document-candidates/index.ts'],
1081
1201
  declarations: [product.documentRef],
1082
1202
  };
1203
+ case BuildPlanTaskProductKind.APPLICATION_DATA_SEED: {
1204
+ /*
1205
+ * The seed AND its registration, both required (#2234), as for an inbound handler: a seed file nothing
1206
+ * registers never runs. The file is task-authored and named from the key, so its declaring the key is
1207
+ * sound; the registration is an import spelling the derived stem, in the module index (`./seeds/<stem>`) or in
1208
+ * the module's `seeds/index.ts` aggregator (`./<stem>`) — both shapes the `seeding-authoring` skill allows.
1209
+ *
1210
+ * Known looseness, accepted as for a milestone: the matcher's left boundary is alphanumeric, so a key that is a
1211
+ * hyphen-suffix of another (`customers` beside `crm:demo-customers`) would be satisfied by the longer one's
1212
+ * import. Keys carry their module namespace (`crm:`), which is what keeps that from arising in practice.
1213
+ *
1214
+ * A DEMONSTRATION seed must also declare `allowedApplicationEnvironments`, or its rows would be inserted
1215
+ * beside real ones in production. What this cannot see: WHICH environments it lists — a demo seed that
1216
+ * names `production` among them would land. The skill states the rule; the probe guarantees the field.
1217
+ */
1218
+ const seedsDirectory = `backend-api/src/modules/${moduleRefOf()}/seeds`;
1219
+ const seedFile = `${seedsDirectory}/${dataSeedFileStem(product.seedKey)}.ts`;
1220
+ const registrationPaths = [`backend-api/src/modules/${moduleRefOf()}/index.ts`, `${seedsDirectory}/index.ts`];
1221
+ return [
1222
+ { kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES, path: seedFile, declarations: [product.seedKey] },
1223
+ {
1224
+ kind: BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES,
1225
+ paths: registrationPaths,
1226
+ writablePaths: registrationPaths,
1227
+ declarations: [dataSeedFileStem(product.seedKey)],
1228
+ },
1229
+ /*
1230
+ * And the module reaches it: the module index imports `./seeds` in BOTH shapes — `./seeds/<stem>` when it
1231
+ * imports the seed itself, `./seeds` (or `./seeds/index`) when an aggregator lists it. Without this, a seed
1232
+ * listed only in an aggregator nothing imports would land and never run (review of #2234).
1233
+ */
1234
+ { kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES, path: registrationPaths[0], declarations: ['./seeds'] },
1235
+ ...(product.content === BuildPlanDataSeedContent.DEMONSTRATION
1236
+ ? [{ kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES, path: seedFile, declarations: ['allowedApplicationEnvironments'] }]
1237
+ : []),
1238
+ ];
1239
+ }
1083
1240
  case BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER:
1084
1241
  /*
1085
1242
  * The REGISTRATION, as for a minion: the module's backend index importing the handler's file (#1832).
@@ -1134,6 +1291,18 @@ export var ProductDeclarationRelation;
1134
1291
  * `CUSTOM_PRODUCT_CATALOG` identifier and its prose, so an EMPTY catalogue would read as landed (#1835).
1135
1292
  */
1136
1293
  ProductDeclarationRelation["PROPERTY_VALUE"] = "property-value";
1294
+ /**
1295
+ * Each declaration is the exact string value of a named property inside an entry of a named LIST — written
1296
+ * inline in the list's literal, or bound to a `const` the list names (#2216). A relation between the name, the
1297
+ * object that declares it and the list that makes it count.
1298
+ *
1299
+ * For a product that exists only once something INCLUDES it: a website section is rendered, registered and
1300
+ * label-audited from its page's `<PAGE>_SECTIONS` array, so one defined and never appended renders nothing.
1301
+ * The page task writes that file with the list EMPTY and, from the brief it is given, a comment naming every
1302
+ * section in reading order. Read as a set, all 18 sections of `app-creation-test-004` were landed by that
1303
+ * comment before any section existed.
1304
+ */
1305
+ ProductDeclarationRelation["PROPERTY_VALUE_IN_LIST"] = "property-value-in-list";
1137
1306
  })(ProductDeclarationRelation || (ProductDeclarationRelation = {}));
1138
1307
  const SET_SITE = { relation: ProductDeclarationRelation.SET };
1139
1308
  /**
@@ -1175,6 +1344,9 @@ export function productDeclarationSite(product) {
1175
1344
  // A catalogue entry is declared by its `key` property — never by the word appearing anywhere (#1835).
1176
1345
  case BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT:
1177
1346
  return { relation: ProductDeclarationRelation.PROPERTY_VALUE, propertyName: 'key' };
1347
+ // A section is `defineWebsiteSection({ sectionRef: 'home-hero', … })` appended to its page's list (#2216).
1348
+ case BuildPlanTaskProductKind.WEBSITE_SECTION:
1349
+ return { relation: ProductDeclarationRelation.PROPERTY_VALUE_IN_LIST, propertyName: 'sectionRef', listName: websitePageSectionsListName(product.pageRef) };
1178
1350
  case BuildPlanTaskProductKind.APPLICATION_FRONTEND_CONFIG:
1179
1351
  case BuildPlanTaskProductKind.RESOURCE_CUSTOM_VIEW:
1180
1352
  case BuildPlanTaskProductKind.RESOURCE_COMPOSITE_VIEW:
@@ -1186,7 +1358,6 @@ export function productDeclarationSite(product) {
1186
1358
  case BuildPlanTaskProductKind.APPLICATION_WORKER:
1187
1359
  case BuildPlanTaskProductKind.APPLICATION_MINION:
1188
1360
  case BuildPlanTaskProductKind.WEBSITE_PAGE:
1189
- case BuildPlanTaskProductKind.WEBSITE_SECTION:
1190
1361
  case BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER:
1191
1362
  case BuildPlanTaskProductKind.RESOURCE_SCHEMA_FIELDS:
1192
1363
  case BuildPlanTaskProductKind.RESOURCE_REGISTRATION:
@@ -1197,6 +1368,7 @@ export function productDeclarationSite(product) {
1197
1368
  case BuildPlanTaskProductKind.APPLICATION_MODULE:
1198
1369
  case BuildPlanTaskProductKind.APPLICATION_DOCUMENT:
1199
1370
  case BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER:
1371
+ case BuildPlanTaskProductKind.APPLICATION_DATA_SEED:
1200
1372
  return SET_SITE;
1201
1373
  default: {
1202
1374
  const unhandled = product;
@@ -1204,17 +1376,36 @@ export function productDeclarationSite(product) {
1204
1376
  }
1205
1377
  }
1206
1378
  }
1207
- /** Does the committed text declare these refs at the site the product names? The one question every declaration probe asks. */
1208
- export function declarationsAppearAt(text, declarations, site) {
1379
+ /**
1380
+ * The files whose comments can be blanked lexically: TypeScript and JavaScript, where `//`, `/* *\/` and the
1381
+ * three quote characters mean exactly what {@link blankComments} assumes. Nothing else is touched — a Rust
1382
+ * entry spells a lifetime `'a`, which would open a quote, and a Markdown file's `https://` is not a comment.
1383
+ */
1384
+ const COMMENT_BLANKABLE_SOURCE = /\.(?:[cm]?[jt]sx?)$/u;
1385
+ /**
1386
+ * Does the committed text declare these refs at the site the product names? The one question every declaration
1387
+ * probe asks.
1388
+ *
1389
+ * `sourcePath`, when the file is a script source, blanks its comments BEFORE any relation reads it (#2216). A
1390
+ * structural question must never be answered by prose, and for a SET that used to be exactly what happened: the
1391
+ * whole-word matcher counted a JSDoc that NAMED a product as the product. The file a probe reads is often written
1392
+ * by a sibling task with every ref of the plan in its brief — the website page task wrote all 18 section refs of
1393
+ * `app-creation-test-004` into its sections file's header and every section read landed. The relations that
1394
+ * already blanked their own input (`PROPERTY_VALUE`, `KEY_AT_OBJECT_PATH`) are unchanged by the second pass.
1395
+ */
1396
+ export function declarationsAppearAt(text, declarations, site, sourcePath) {
1397
+ const read = sourcePath !== undefined && COMMENT_BLANKABLE_SOURCE.test(sourcePath) ? blankComments(text) : text;
1209
1398
  switch (site.relation) {
1210
1399
  case ProductDeclarationRelation.SET:
1211
- return declarationsAppear(text, declarations);
1400
+ return declarationsAppear(read, declarations);
1212
1401
  case ProductDeclarationRelation.TUPLE_IN_ONE_CALL:
1213
- return declarationsAppearInOneCall(text, declarations, site.callee);
1402
+ return declarationsAppearInOneCall(read, declarations, site.callee);
1214
1403
  case ProductDeclarationRelation.KEY_AT_OBJECT_PATH:
1215
- return declarationsAppearAsKeysAt(text, declarations, site.objectPath);
1404
+ return declarationsAppearAsKeysAt(read, declarations, site.objectPath);
1216
1405
  case ProductDeclarationRelation.PROPERTY_VALUE:
1217
- return declarationsAppearAsPropertyValues(text, declarations, site.propertyName);
1406
+ return declarationsAppearAsPropertyValues(read, declarations, site.propertyName);
1407
+ case ProductDeclarationRelation.PROPERTY_VALUE_IN_LIST:
1408
+ return declarationsAppearAsListedPropertyValues(read, declarations, site.propertyName, site.listName);
1218
1409
  default: {
1219
1410
  const unhandled = site;
1220
1411
  throw new Error(`Unhandled declaration site ${JSON.stringify(unhandled)}.`);
@@ -1236,6 +1427,116 @@ export function declarationsAppearAsPropertyValues(text, declarations, propertyN
1236
1427
  return new RegExp(`(?<![A-Za-z0-9_$])${property}\\s*:\\s*(['"\`])${value}\\1`, 'u').test(code);
1237
1428
  });
1238
1429
  }
1430
+ /**
1431
+ * Is every declaration the exact string value of `propertyName` in an ENTRY of the array bound to `listName`?
1432
+ * An entry declares it inline (`[defineWebsiteSection({ sectionRef: 'home-hero' })]`) or through a `const` the
1433
+ * list names (`const HOME_HERO = defineWebsiteSection({ sectionRef: 'home-hero' })` … `[HOME_HERO]`) — the
1434
+ * second is how every section skill and the `add-website` scaffold write it (#2216).
1435
+ *
1436
+ * Membership is what makes the product real: a page renders, registers and label-audits exactly what its list
1437
+ * holds, so a section defined and never appended is not a section. A name in a comment, or in another list,
1438
+ * counts for nothing.
1439
+ *
1440
+ * Lexical, like every matcher here, and blind in the honest direction: a value it cannot see — one computed by a
1441
+ * helper, a list built by a function call, a binding imported from another file — reads as NOT landed, which costs
1442
+ * a run that finds the work done; it never reads an empty list as full.
1443
+ *
1444
+ * Known residual, shared with {@link blankComments}: an apostrophe in JSX TEXT (`<p>Don't</p>`) opens a "string" to
1445
+ * a lexer that knows no JSX, so quote parity can flip for the rest of the file. A section file keeps its words in
1446
+ * label packs rather than JSX text, which is why this has not been worth a parser; if it ever bites, the answer is
1447
+ * the introspection subprocess, not a smarter regex.
1448
+ */
1449
+ export function declarationsAppearAsListedPropertyValues(text, declarations, propertyName, listName) {
1450
+ const code = blankComments(text);
1451
+ const bindings = constBindingInitializers(code);
1452
+ const list = bindings.get(listName);
1453
+ if (list === undefined)
1454
+ return false;
1455
+ // Every binding the list reaches, through any chain of names (`[...OPENING]`, `OPENING = [HOME_HERO]`):
1456
+ // bounded by the file's own bindings, and a name already visited is not walked again.
1457
+ const names = (body) => [...bindings.keys()]
1458
+ .filter((name) => new RegExp(`(?<![A-Za-z0-9_$])${escapeRegExp(name)}(?![A-Za-z0-9_$])`, 'u').test(body));
1459
+ const reached = new Set([listName]);
1460
+ const pending = [list];
1461
+ while (pending.length > 0) {
1462
+ for (const name of names(pending.pop())) {
1463
+ if (reached.has(name))
1464
+ continue;
1465
+ reached.add(name);
1466
+ pending.push(bindings.get(name));
1467
+ }
1468
+ }
1469
+ const bodies = [...reached].map((name) => bindings.get(name));
1470
+ const property = escapeRegExp(propertyName);
1471
+ return declarations.every((declaration) => {
1472
+ const declares = new RegExp(`(?<![A-Za-z0-9_$])${property}\\s*:\\s*(['"\`])${escapeRegExp(declaration)}\\1`, 'u');
1473
+ return bodies.some((body) => declares.test(body));
1474
+ });
1475
+ }
1476
+ /**
1477
+ * Every label pack a website CAN have — one per member of the language vocabulary, named as the website's own pack
1478
+ * loader names them (`website/src/i18n/<locale>.json`). Total over the enum, so a locale added tomorrow is probed
1479
+ * with nobody remembering to.
1480
+ */
1481
+ export const WEBSITE_LABEL_PACK_PATHS = Object.values(AvailableLanguage).map((locale) => `website/src/i18n/${locale}.json`);
1482
+ /**
1483
+ * Does every committed pack carry a key under `keyPrefix`, and is at least one pack committed? `texts` is one entry
1484
+ * per candidate path, `undefined` where the path is not committed (#2216). A KEY, not a mention: the prefix must
1485
+ * open a quoted string that a colon follows, so a value that happens to contain it does not count.
1486
+ */
1487
+ export function labelPacksDeclareKeyPrefix(texts, keyPrefix) {
1488
+ const committed = texts.filter((text) => typeof text === 'string');
1489
+ if (committed.length === 0)
1490
+ return false;
1491
+ const key = new RegExp(`"${escapeRegExp(keyPrefix)}[^"\\\\]*"\\s*:`, 'u');
1492
+ return committed.every((text) => key.test(text));
1493
+ }
1494
+ function escapeRegExp(value) {
1495
+ return value.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
1496
+ }
1497
+ /**
1498
+ * Every `const`/`let`/`var` binding of the (comment-blanked) text, mapped to the text of its initializer. An
1499
+ * initializer ends at a `;` at depth 0, or at a line break at depth 0 that begins a new top-level statement — the
1500
+ * shape of a module written without semicolons. Skips string contents, so a bracket inside a string does not move
1501
+ * the depth. A destructuring binding is not a name and is skipped.
1502
+ */
1503
+ function constBindingInitializers(code) {
1504
+ const bindings = new Map();
1505
+ const binding = /(?<![A-Za-z0-9_$.])(?:const|let|var)\s+([A-Za-z_$][A-Za-z0-9_$]*)\s*(?::[^=;]*?)?=(?![=>])/gu;
1506
+ const nextStatement = /^\s*(?:export|const|let|var|function|class|import|type|interface|enum)\b/u;
1507
+ for (const match of code.matchAll(binding)) {
1508
+ const from = match.index + match[0].length;
1509
+ let depth = 0;
1510
+ let quote = null;
1511
+ let at = from;
1512
+ for (; at < code.length; at += 1) {
1513
+ const char = code[at];
1514
+ if (quote !== null) {
1515
+ if (char === '\\')
1516
+ at += 1;
1517
+ else if (char === quote)
1518
+ quote = null;
1519
+ continue;
1520
+ }
1521
+ if (char === "'" || char === '"' || char === '`')
1522
+ quote = char;
1523
+ else if (char === '(' || char === '[' || char === '{')
1524
+ depth += 1;
1525
+ else if (char === ')' || char === ']' || char === '}') {
1526
+ depth -= 1;
1527
+ if (depth < 0)
1528
+ break;
1529
+ }
1530
+ else if (depth === 0 && char === ';')
1531
+ break;
1532
+ else if (depth === 0 && char === '\n' && at > from && nextStatement.test(code.slice(at + 1)))
1533
+ break;
1534
+ }
1535
+ if (!bindings.has(match[1]))
1536
+ bindings.set(match[1], code.slice(from, at));
1537
+ }
1538
+ return bindings;
1539
+ }
1239
1540
  /**
1240
1541
  * The text with every comment blanked to spaces, offsets and line breaks preserved. A structural
1241
1542
  * question must never be answered by prose — a config comment naming a provider is not a binding.
@@ -1403,6 +1704,14 @@ export function declarationsAppearAsKeysAt(text, declarations, objectPath) {
1403
1704
  export function websitePageIdentity(pageRef) {
1404
1705
  return pageRef.replace(/^page-/u, '');
1405
1706
  }
1707
+ /**
1708
+ * The name of a page's ordered sections list — `HOME_SECTIONS` for `page-home` — which the page renders, registers
1709
+ * and label-audits. ONE derivation for the two sides that must agree on it: the page task's brief, which tells the
1710
+ * agent to export it, and the section probe, which lands a section only once it is an entry of it (#2216).
1711
+ */
1712
+ export function websitePageSectionsListName(pageRef) {
1713
+ return `${websitePageIdentity(pageRef).toUpperCase().replace(/[^A-Z0-9]+/gu, '_')}_SECTIONS`;
1714
+ }
1406
1715
  /**
1407
1716
  * A resource custom view's ref, as the TREE spells it.
1408
1717
  *