@wildo-ai/dev-companion 1.1.5 → 1.1.6

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 (596) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  3. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  5. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  8. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  9. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
  11. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  12. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  13. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  14. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  15. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  16. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  17. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  20. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  21. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  22. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  23. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  24. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  25. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  26. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  27. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  29. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  30. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  31. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  33. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  34. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  35. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
  37. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  38. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  39. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  41. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  42. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  43. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  44. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  45. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  46. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  47. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  49. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  50. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  51. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  53. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  54. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  55. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  56. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  57. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  58. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  59. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  60. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  61. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  62. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  63. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  65. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  66. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  67. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  69. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  71. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  72. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  73. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  74. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  75. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  76. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  77. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  78. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  80. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  81. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  82. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  83. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  84. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  85. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  86. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  87. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  88. package/dist/esm/core/inject/models/container.js +4 -0
  89. package/dist/esm/core/inject/models/container.js.map +1 -1
  90. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  91. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  92. package/dist/esm/core/inject/models/service-types.js +4 -0
  93. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  94. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  95. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  96. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  97. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  98. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  99. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  100. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  101. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  102. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  103. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  104. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  105. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  106. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  107. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  108. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  109. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  110. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  111. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  112. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  113. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  114. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  115. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  116. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  117. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  118. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  119. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  120. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  121. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  122. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  123. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  124. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  125. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  126. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  127. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  128. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  129. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  130. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  131. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  132. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  133. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  135. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  137. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  138. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  139. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  141. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  142. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  143. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  145. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  146. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  147. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  149. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  150. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  151. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  152. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  153. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  154. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  155. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  156. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  157. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  158. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  159. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  160. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  161. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  162. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  163. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  164. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  165. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  166. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  167. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  168. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  169. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  170. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  171. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  172. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  173. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  174. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  175. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  176. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  177. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  178. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  179. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  180. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  181. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  182. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  183. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  184. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  185. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  186. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  187. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  188. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  189. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  190. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  191. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  192. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  193. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  194. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  195. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  196. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  197. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  198. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  199. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  200. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  201. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  202. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  203. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  204. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  205. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  206. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  207. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  208. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  209. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  210. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  211. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  212. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  213. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  214. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  215. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  216. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  217. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  218. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  219. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  220. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  221. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  222. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  223. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  224. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  225. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  226. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  227. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  228. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  229. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  230. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  231. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  232. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  233. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  234. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  235. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  236. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  237. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  238. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  239. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  240. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  241. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  242. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  243. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  244. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  245. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  246. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  247. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  248. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  249. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  250. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  251. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  252. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  253. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  254. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  255. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  256. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  257. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  258. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  259. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  260. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  261. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  262. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  263. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  264. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  265. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  266. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  267. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  268. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  269. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  270. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  271. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  272. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  273. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  274. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  275. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  276. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  277. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  278. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  279. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  280. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  281. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  282. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  283. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  284. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  285. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  286. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  287. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  288. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  289. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  290. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  291. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  292. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  293. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  294. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  295. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  296. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  297. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  298. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  299. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  300. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  301. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  302. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  303. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  304. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  305. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  306. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  307. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  308. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  309. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  310. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  311. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  312. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  313. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  314. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  315. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  316. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  317. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  318. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  319. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  320. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  321. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  322. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  323. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  324. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  325. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  326. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  327. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  328. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  329. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  330. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  331. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  332. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  333. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  334. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  335. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  336. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  337. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  338. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  339. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  340. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  341. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  342. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  343. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  344. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  345. package/dist/esm/i18n/index.d.ts +10 -8
  346. package/dist/esm/i18n/index.d.ts.map +1 -1
  347. package/dist/esm/i18n/index.js +10 -8
  348. package/dist/esm/i18n/index.js.map +1 -1
  349. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  350. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  352. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  353. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  354. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  355. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  356. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  357. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  359. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  360. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  361. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  362. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  363. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  364. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  365. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  366. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  367. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  368. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  369. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  370. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  371. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  372. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  373. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  374. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  375. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  376. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  377. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  378. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  379. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  380. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  381. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  382. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  383. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  384. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  385. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  386. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  387. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  388. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  389. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  390. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  391. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  392. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  393. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  394. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  395. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  396. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  397. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  398. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  399. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  400. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  401. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  402. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  403. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  404. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  405. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  407. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  408. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  409. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  411. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  412. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  413. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  414. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  415. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  416. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  417. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  419. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  420. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  421. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  422. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  423. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  424. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  425. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  426. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  427. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  428. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  429. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  430. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  431. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  432. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  433. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  434. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  435. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  436. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  437. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  438. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  439. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  440. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  441. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  442. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  443. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  444. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  445. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  446. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  447. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  448. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  449. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  450. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  451. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  452. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  453. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  454. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  455. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  456. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  457. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  458. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  459. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  460. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  461. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  462. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  463. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  464. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  465. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  466. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  467. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  468. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  469. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  470. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  471. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  472. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  473. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  474. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  475. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  476. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  477. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  478. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  479. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  480. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  481. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  482. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  483. package/dist/esm/index.d.ts.map +1 -1
  484. package/dist/esm/index.js +9 -3
  485. package/dist/esm/index.js.map +1 -1
  486. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  487. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  488. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  489. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  490. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  491. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  492. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  493. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  494. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  495. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  496. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  497. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  498. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  499. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  500. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  501. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  502. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  503. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  504. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  505. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  506. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  507. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  508. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  509. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  510. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  511. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  512. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  513. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  514. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  515. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  516. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  517. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  518. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  519. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  520. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  521. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  522. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  523. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  524. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  525. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  526. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  527. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  528. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  529. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  530. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  531. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  532. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  533. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  534. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  535. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  536. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  537. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  538. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  539. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  540. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  541. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  542. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  543. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  544. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  545. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  546. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  547. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  548. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  549. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  550. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  551. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  552. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  553. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  554. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  555. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  556. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  557. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  558. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  559. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  560. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  561. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  562. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  563. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  564. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  565. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  566. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  567. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  568. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  569. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  570. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  571. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  572. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  573. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  574. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  575. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  576. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  577. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  578. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  579. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  580. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  581. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  582. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  583. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  584. package/package.json +17 -17
  585. package/dist/esm/__time-gov.probe.d.mts +0 -0
  586. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  587. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  588. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  589. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  590. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  591. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  592. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  593. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  594. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  595. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  596. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -19,12 +19,20 @@ import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.
19
19
  import { LabellingPlannerCompanionService } from '../../i18n-labelling/services/labelling-planner.companion.service.js';
20
20
  import { LabellizeOrchestratorCompanionService } from '../../i18n-labelling/services/labellize-orchestrator.companion.service.js';
21
21
  import { TranslateOrchestratorCompanionService } from '../../i18n-labelling/services/translate-orchestrator.companion.service.js';
22
+ import { EmailTemplateLabellingUnitsCompanionService } from '../../i18n-labelling/services/email-template-labelling-units.companion.service.js';
23
+ import { EMAIL_TEMPLATE_LABELLING_BUCKET } from '../../i18n-labelling/models/email-template-labelling-unit.models.js';
22
24
  import { EmailTemplateCompanionService } from '../../email/services/email-template.companion.service.js';
23
- import { PlaybookRunAlreadyInFlightError, PlaybookNotReadyError, PlaybookRunCompanionService, UnknownPlaybookError } from '../../meta-workflows/services/playbook-run.companion.service.js';
24
- import { CreationPlaneProjectionCompanionService } from '../../core/introspection/resources/creation-plane-projection.companion.service.js';
25
+ import { PlaybookRunAlreadyInFlightError, PlaybookNotReadyError, PlaybookRunCompanionService, PlaybookRunLandingConflictError, UnknownPlaybookError } from '../../meta-workflows/services/playbook-run.companion.service.js';
26
+ import { PlaybookInstanceCompanionService, PlaybookInstanceRefusedError, PlaybookInstanceTreeBusyError } from '../../meta-workflows/services/playbook-instance.companion.service.js';
27
+ import { CREATION_PLANE_IDENTITY_FIELDS, CreationPlaneProjectionCompanionService } from '../../core/introspection/resources/creation-plane-projection.companion.service.js';
28
+ import { buildCreationConsoleFeed, creationPlaneBehaviorForResourceType } from '../../core/introspection/resources/creation-console-projection.companion.js';
29
+ import { CreationConsoleRefusal, CreationConsoleRefusalKind, answerCreationConsoleQuestion, readCreationConsoleQuestions, } from '../../core/introspection/resources/creation-console-answer.companion.js';
30
+ import { translateCreationPlaneDispatchError } from '../../core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js';
31
+ import { CreationConsole_AnswerRequest_Schema, WorkbenchCreationPlaneBehavior, Workbench_PlaybookRunOutcomeStatus, summarizeCreationConsoleFeed, } from '@wildo-ai/platform-core-shared';
25
32
  import { FoundationExecutionError } from '../../meta-workflows/services/foundation-executor.companion.service.js';
26
- import { SuspendedPlaybookRunNotFoundError } from '../../meta-workflows/models/playbook-run-checkpoint.models.js';
27
- import { PlaybookClarificationAction } from '@wildo-ai/application-creation-runtime';
33
+ import { SupersededPlaybookRunQuestionError, SuspendedPlaybookRunNotFoundError } from '../../meta-workflows/models/playbook-run-checkpoint.models.js';
34
+ import { CompanionErrorGuidanceKey } from '../companion-error-guidance.models.js';
35
+ import { CompanionFileRouteRefusal, confineCompanionFilePath } from './companion-file-route-confinement.js';
28
36
  import { ExecutionTraceNotFoundError, ExecutionTraceReadCompanionService, } from '../../meta-workflows/services/execution-trace-read.companion.service.js';
29
37
  import { ApplicationBuildDispatchCompanionService, ApplicationBuildPlanExhaustedError, ApplicationBuildTaskCompletedButUnlandedError, ApplicationBuildPlanUnavailableError, } from '../../meta-workflows/services/application-build-dispatch.companion.service.js';
30
38
  import { ApplicationBuildTaskNotACodingTaskError } from '../../meta-workflows/services/application-build-task-coding-policy.companion.service.js';
@@ -39,7 +47,7 @@ import { BrandAcceptCompanionService } from '../../brand/services/brand-accept.c
39
47
  import { ExpertPersonaCompanionService } from '../../expert-personas/services/expert-persona.companion.service.js';
40
48
  import { DeliberationCompanionService } from '../../deliberations/services/deliberation.companion.service.js';
41
49
  import { ExpertWorkDomain, FlowsActors_Status } from '@wildo-ai/saas-models';
42
- import { BuildPlanTaskTargetKind } from '@wildo-ai/saas-specifications/application-creation';
50
+ import { ApplicationPlaybookInstanceClosureKind, ApplicationSpecificationFamily, BuildPlanTaskTargetKind } from '@wildo-ai/saas-specifications/application-creation';
43
51
  import { TechnicalDocCompanionService } from '../../technical-doc/services/technical-doc.companion.service.js';
44
52
  import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
45
53
  import { WorkspaceElementOperation, getWorkspaceResource, mapWorkspaceElements, relatedWorkspaceResources, } from '../../core/introspection/workspace-element-index.companion.js';
@@ -47,16 +55,19 @@ import { describeWorkspaceFreshness, readWorkspaceElements } from '../../core/in
47
55
  import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service.js';
48
56
  import { ResearchAgentDispatchCompanionService, ResearchAgentUnavailableError, } from '../../claude-cli/services/research-agent-dispatch.companion.service.js';
49
57
  import { CodingAgentDispatchCompanionService } from '../../claude-cli/services/coding-agent-dispatch.companion.service.js';
58
+ import { AcceptedChangeCommitCompanionService, DecisionRecordActor } from '../../claude-cli/services/accepted-change-commit.companion.service.js';
50
59
  import { COMPANION_TOKEN_HEADER, CompanionAuthFloorCompanionService, } from '../../core/auth/companion-auth-floor.companion.service.js';
51
60
  import { CompanionTraceabilityLevel, isTraceExemptProbe } from '../../core/traceability/companion-traceability.models.js';
52
61
  import { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service.js';
53
62
  import { companionRequestIsAdmittedByTokenFloor } from './companion-token-floor.policy.js';
63
+ import { COMPANION_TRACE_EXEMPT_GET_PATHS } from './companion-trace-exemptions.js';
54
64
  import { SPECIFICATION_CONTEXT_VALIDATION_ERROR_NAME } from '../../core/specifications/specification-context-factory.models.js';
55
65
  import { INTROSPECTION_INPUT_VALIDATION_ERROR_NAME } from '../../core/introspection/models/companion-introspection.models.js';
56
66
  import { StructuredDataCatalogAuditService } from '../../core/catalogs/structured-data-catalog-audit.service.js';
57
67
  import { assertCompanionAvailableLanguage, assertEmailTemplateTestSendSucceeded, parseCompanionTargetLocales, } from './companion-i18n-api-contract.utils.js';
58
68
  import * as fs from 'fs/promises';
59
69
  import * as path from 'path';
70
+ import { MetaWorkflow_ClarificationAction } from '@wildo-ai/saas-models/meta-workflows';
60
71
  /**
61
72
  * Dev-companion HTTP surface mounted under {@link getCustomMountBasePath}
62
73
  * (`/api/companion`). Hosts labelling, email-template authoring, file
@@ -93,6 +104,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
93
104
  labellizeOrchestratorService;
94
105
  runWriteRegister;
95
106
  translateOrchestratorService;
107
+ emailTemplateLabellingUnitsService;
96
108
  emailTemplateService;
97
109
  marketGenerationService;
98
110
  playbookRunService;
@@ -112,13 +124,16 @@ let CompanionController = class CompanionController extends AbstractControllerBa
112
124
  codingAgentDispatchService;
113
125
  researchAgentDispatchService;
114
126
  authFloorService;
115
- constructor(logger, errorBuilder, errorHandler, companionContext, labellingPlannerService, labellizeOrchestratorService, runWriteRegister, translateOrchestratorService, emailTemplateService, marketGenerationService, playbookRunService, dossierService, creationPlaneProjection, buildDispatchService, executionTraceReadService, logoGenerationService, logoDeliberationService, brandAcceptService, expertPersonaService, deliberationService, technicalDocService, companionIntrospectionService, executionsService, traceabilityService, codingAgentDispatchService, researchAgentDispatchService, authFloorService) {
127
+ acceptedChangeCommitService;
128
+ playbookInstanceService;
129
+ constructor(logger, errorBuilder, errorHandler, companionContext, labellingPlannerService, labellizeOrchestratorService, runWriteRegister, translateOrchestratorService, emailTemplateLabellingUnitsService, emailTemplateService, marketGenerationService, playbookRunService, dossierService, creationPlaneProjection, buildDispatchService, executionTraceReadService, logoGenerationService, logoDeliberationService, brandAcceptService, expertPersonaService, deliberationService, technicalDocService, companionIntrospectionService, executionsService, traceabilityService, codingAgentDispatchService, researchAgentDispatchService, authFloorService, acceptedChangeCommitService, playbookInstanceService) {
116
130
  super(logger, errorBuilder, errorHandler, 'CompanionController');
117
131
  this.companionContext = companionContext;
118
132
  this.labellingPlannerService = labellingPlannerService;
119
133
  this.labellizeOrchestratorService = labellizeOrchestratorService;
120
134
  this.runWriteRegister = runWriteRegister;
121
135
  this.translateOrchestratorService = translateOrchestratorService;
136
+ this.emailTemplateLabellingUnitsService = emailTemplateLabellingUnitsService;
122
137
  this.emailTemplateService = emailTemplateService;
123
138
  this.marketGenerationService = marketGenerationService;
124
139
  this.playbookRunService = playbookRunService;
@@ -138,6 +153,8 @@ let CompanionController = class CompanionController extends AbstractControllerBa
138
153
  this.codingAgentDispatchService = codingAgentDispatchService;
139
154
  this.researchAgentDispatchService = researchAgentDispatchService;
140
155
  this.authFloorService = authFloorService;
156
+ this.acceptedChangeCommitService = acceptedChangeCommitService;
157
+ this.playbookInstanceService = playbookInstanceService;
141
158
  }
142
159
  setupRoutes() {
143
160
  /*
@@ -166,6 +183,11 @@ let CompanionController = class CompanionController extends AbstractControllerBa
166
183
  // separated is the contract.
167
184
  this.router.get('/labelling/plan', this.asyncHandler(this.labellingPlan.bind(this)));
168
185
  this.logRouteRegistration('get', '/labelling/plan', 'List planned labelling units');
186
+ // The translate pipeline's email lane (#1908): translate-only units, one per email template. A
187
+ // separate listing from `/labelling/plan` because that plan is what LABELLIZE iterates, and an
188
+ // email's primary words are authored, never labellized.
189
+ this.router.get('/labelling/email-template-units', this.asyncHandler(this.labellingEmailTemplateUnits.bind(this)));
190
+ this.logRouteRegistration('get', '/labelling/email-template-units', 'List translate-only email template units');
169
191
  this.router.post('/labelling/labellize', this.asyncHandler(this.labellingLabellize.bind(this)));
170
192
  this.logRouteRegistration('post', '/labelling/labellize', 'Run per-unit labellize for primary locale');
171
193
  this.router.post('/labelling/translate', this.asyncHandler(this.labellingTranslate.bind(this)));
@@ -260,6 +282,15 @@ let CompanionController = class CompanionController extends AbstractControllerBa
260
282
  this.logRouteRegistration('get', '/build/tasks', 'Every build-plan task in one read: its attempts, why it has not landed, and what its unmet probes searched for (#1521)');
261
283
  this.router.post('/build/tasks/:taskRef/rearm', this.asyncHandler(this.rearmBuildTask.bind(this)));
262
284
  this.logRouteRegistration('post', '/build/tasks/:taskRef/rearm', 'Put a build task back in the queue after the reason it did not land was fixed, recording why on its completed runs (#1535)');
285
+ /*
286
+ * The console's build verbs (#1652): dispatch a NAMED task, and accept (commit) what a finished
287
+ * coding or playbook run wrote. Both existed only as workbench operations, which need a signed-in
288
+ * person; these call the same services, so the two doors cannot diverge.
289
+ */
290
+ this.router.post('/build/tasks/:taskRef/dispatch', this.asyncHandler(this.dispatchNamedBuildTask.bind(this)));
291
+ this.logRouteRegistration('post', '/build/tasks/:taskRef/dispatch', 'Run one named build-plan task (coding agent or generation step), whether or not it is next');
292
+ this.router.post('/build/tasks/:taskRef/accept', this.asyncHandler(this.acceptBuildTaskRun.bind(this)));
293
+ this.logRouteRegistration('post', '/build/tasks/:taskRef/accept', 'Commit what the latest coding run of a task wrote (body force:true includes files edited since)');
263
294
  // ── Execution traces (what actually happened) ────────────────────
264
295
  this.router.get('/traces', this.asyncHandler(this.listExecutionTraces.bind(this)));
265
296
  this.logRouteRegistration('get', '/traces', 'Recent execution sessions');
@@ -294,10 +325,28 @@ let CompanionController = class CompanionController extends AbstractControllerBa
294
325
  this.logRouteRegistration('get', '/playbooks', 'Eligibility board: which playbooks can run now, and why not the rest');
295
326
  this.router.get('/playbooks/:playbookRef/decision', this.asyncHandler(this.readPlaybookElicitationDecision.bind(this)));
296
327
  this.logRouteRegistration('get', '/playbooks/:playbookRef/decision', "The interview this playbook declares, as a decision payload — null when it asks nothing");
328
+ this.router.post('/playbooks/:playbookRef/instances', this.asyncHandler(this.openPlaybookInstance.bind(this)));
329
+ this.logRouteRegistration('post', '/playbooks/:playbookRef/instances', 'Open a playbook instance for a purpose (body instanceKey, purpose): recorded in the dossier and committed at once (#1609)');
330
+ this.router.post('/playbooks/:playbookRef/instances/:instanceKey/close', this.asyncHandler(this.closePlaybookInstance.bind(this)));
331
+ this.logRouteRegistration('post', '/playbooks/:playbookRef/instances/:instanceKey/close', 'Close a playbook instance (body kind: completed|abandoned, reason): recorded and committed; abandoning cancels its waiting runs (#1608)');
297
332
  this.router.post('/playbooks/:playbookRef/run', this.asyncHandler(this.runPlaybook.bind(this)));
298
333
  this.logRouteRegistration('post', '/playbooks/:playbookRef/run', 'Run one playbook and land its outputs as specification files (body dryRun:true tests the pipe, writes nothing)');
299
334
  this.router.post('/playbooks/runs/:runId/resume', this.asyncHandler(this.resumePlaybookRun.bind(this)));
300
335
  this.logRouteRegistration('post', '/playbooks/runs/:runId/resume', 'Answer a suspended run\'s questions and continue it (action: accept | decline | cancel)');
336
+ /*
337
+ * The CREATION CONSOLE (2026-09-25): a coding-agent session drives creation and the workbench is
338
+ * its dashboard, so the console needs the two things the workbench gets over the resource plane —
339
+ * what the companion did, and every question it waits on — on the plane `wildo` speaks. Same rows,
340
+ * same services; see `workbench-creation-console.custom.shared.schemas.ts`.
341
+ */
342
+ this.router.get('/creation/pulse', this.asyncHandler(this.readCreationConsolePulse.bind(this)));
343
+ this.logRouteRegistration('get', '/creation/pulse', 'A cheap poll: a change cursor, the runs in flight, and what the last feed read counted — read the feed only when it moved');
344
+ this.router.get('/creation/feed', this.asyncHandler(this.readCreationConsoleFeed.bind(this)));
345
+ this.logRouteRegistration('get', '/creation/feed', 'What happened, what is asked of you, what could come next — Home\'s lines with the row each points at');
346
+ this.router.get('/creation/questions', this.asyncHandler(this.readCreationConsoleQuestionQueue.bind(this)));
347
+ this.logRouteRegistration('get', '/creation/questions', 'Every question waiting on the person, as one queue (clarifications, parked coding runs, interview, governance facts)');
348
+ this.router.post('/creation/questions/answer', this.asyncHandler(this.answerCreationConsoleQuestion.bind(this)));
349
+ this.logRouteRegistration('post', '/creation/questions/answer', 'Answer, decline or cancel one queued question — routed to the service the workbench operation calls');
301
350
  this.router.post('/playbooks/:playbookRef/judge', this.asyncHandler(this.judgePlaybookArtifacts.bind(this)));
302
351
  this.logRouteRegistration('post', '/playbooks/:playbookRef/judge', 'Judge SUPPLIED artifacts against a playbook\'s evaluation treatment (the judge value-eval bench; nothing lands)');
303
352
  /*
@@ -315,8 +364,10 @@ let CompanionController = class CompanionController extends AbstractControllerBa
315
364
  this.logRouteRegistration('post', '/compliance/governance-facts', 'Land one document\'s human-established facts as the document-facts-authored family');
316
365
  this.router.get('/runs/writes', this.asyncHandler(this.listRunWrites.bind(this)));
317
366
  this.logRouteRegistration('get', '/runs/writes', 'The write register: which files each playbook run wrote, revertible per run');
367
+ this.router.post('/runs/writes/:runId/accept', this.asyncHandler(this.acceptPlaybookRunWrites.bind(this)));
368
+ this.logRouteRegistration('post', '/runs/writes/:runId/accept', 'Commit what one playbook run wrote (body force:true includes files edited since)');
318
369
  this.router.post('/runs/writes/:runId/revert', this.asyncHandler(this.revertRunWrites.bind(this)));
319
- this.logRouteRegistration('post', '/runs/writes/:runId/revert', 'Restore the pre-images of one run (refuses files a human edited since; body force:true overrides)');
370
+ this.logRouteRegistration('post', '/runs/writes/:runId/revert', 'Restore the pre-images of one run (refuses files a human edited since, unless body force:true; always refuses files a later run landed on)');
320
371
  this.router.get('/runs/writes/:runId/diff', this.asyncHandler(this.readRunWritesDiff.bind(this)));
321
372
  this.logRouteRegistration('get', '/runs/writes/:runId/diff', 'What one run CHANGED, per file — a unified diff from the register, so it is the run\'s own change rather than everything uncommitted');
322
373
  // ── Market (Market generation, Phase 4.2) ───────────────────────
@@ -346,21 +397,6 @@ let CompanionController = class CompanionController extends AbstractControllerBa
346
397
  // ── Technical documentation generation (synchronizes src/generated/consumer-documentation/) ──
347
398
  this.router.post('/technical-doc/publish-managed', this.asyncHandler(this.technicalDocPublishManaged.bind(this)));
348
399
  this.logRouteRegistration('post', '/technical-doc/publish-managed', 'Derive, render, measure, validate and publish the complete managed documentation tree');
349
- // ── Module Registry (KD-6 — companion owns SaaS-app source mutations) ──
350
- // Phase 2 wires the route shape; the actual ts-morph + filesystem
351
- // mutation work lands in Phase 5 (install/update/remove) + Phase 6
352
- // (publish). Until those land, every handler returns a
353
- // `RegistryRouteResultSchema`-shaped not-implemented envelope so
354
- // CLI clients (`RegistryCompanionClient`) parse the response
355
- // uniformly.
356
- this.router.post('/registry/install', this.asyncHandler(this.registryInstallNotImplemented.bind(this)));
357
- this.logRouteRegistration('post', '/registry/install', 'Module-registry install (Phase 5)');
358
- this.router.post('/registry/update', this.asyncHandler(this.registryUpdateNotImplemented.bind(this)));
359
- this.logRouteRegistration('post', '/registry/update', 'Module-registry update (Phase 5)');
360
- this.router.post('/registry/remove', this.asyncHandler(this.registryRemoveNotImplemented.bind(this)));
361
- this.logRouteRegistration('post', '/registry/remove', 'Module-registry remove (Phase 5)');
362
- this.router.post('/registry/publish', this.asyncHandler(this.registryPublishNotImplemented.bind(this)));
363
- this.logRouteRegistration('post', '/registry/publish', 'Module-registry publish (Phase 6)');
364
400
  }
365
401
  getCustomMountBasePath() { return '/api/companion'; }
366
402
  /**
@@ -370,7 +406,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
370
406
  * since P-29 landed, and `isValidToken` / `buildUnauthorizedError` were written for a middleware that
371
407
  * was deleted along with the one endpoint it guarded. Nothing replaced it, so from that day the
372
408
  * loopback bind was the ENTIRE protection for every mutating route on this controller — coding
373
- * dispatch, playbook runs, run-write revert, registry install, every LLM call that spends money.
409
+ * dispatch, playbook runs, run-write revert, every LLM call that spends money.
374
410
  *
375
411
  * What the token adds over the loopback bind is narrow and worth stating, because the floor's own
376
412
  * JSDoc is careful about what it does NOT prove: it is not evidence of human presence, and it does
@@ -432,7 +468,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
432
468
  // Polled probes are infrastructure noise, not build-time work — see
433
469
  // `isTraceExemptProbe` for the full rationale (session-dir spam + live-
434
470
  // session eviction under the always-on traceability default).
435
- if (isTraceExemptProbe(req.method, req.path, ['/', '/health', '/coding-agent/status'])) {
471
+ if (isTraceExemptProbe(req.method, req.path, COMPANION_TRACE_EXEMPT_GET_PATHS)) {
436
472
  next();
437
473
  return;
438
474
  }
@@ -644,6 +680,30 @@ let CompanionController = class CompanionController extends AbstractControllerBa
644
680
  this.jsonError(res, e, next);
645
681
  }
646
682
  }
683
+ /**
684
+ * The email lane's units, in the same summary shape `/labelling/plan` answers, so the CLI can split a
685
+ * translate run into buckets without a second code path. `bucket` is the lane's named bucket;
686
+ * `keyCount` is absent because an email's keys come from its source file at translate time.
687
+ */
688
+ async labellingEmailTemplateUnits(_req, res, next) {
689
+ try {
690
+ const plan = await this.emailTemplateLabellingUnitsService.planEmailTemplateUnits();
691
+ this.jsonSuccess(res, {
692
+ totalUnits: plan.units.length,
693
+ units: plan.units.map((unit) => ({
694
+ id: unit.id,
695
+ category: unit.category,
696
+ displayLabel: unit.displayLabel,
697
+ bucket: EMAIL_TEMPLATE_LABELLING_BUCKET,
698
+ slug: unit.templateRef,
699
+ })),
700
+ warnings: plan.warnings,
701
+ });
702
+ }
703
+ catch (e) {
704
+ this.jsonError(res, e, next);
705
+ }
706
+ }
647
707
  async labellingLabellize(req, res, next) {
648
708
  try {
649
709
  const { forceRegenerate, unitIds } = req.body || {};
@@ -858,8 +918,26 @@ let CompanionController = class CompanionController extends AbstractControllerBa
858
918
  getWorkspaceRoot() {
859
919
  return this.companionContext.saasRoot;
860
920
  }
921
+ /**
922
+ * The one resolver behind the generic file routes (read, list, write), and therefore the one place
923
+ * they are confined: inside the application root, and never a secret-bearing path. See
924
+ * `companion-file-route-confinement.ts` for why reads needed it even though the token floor leaves
925
+ * them open. A refusal is AUTHORIZATION (403): the path is well-formed, the caller may not have it.
926
+ */
861
927
  resolveRequestedPath(filePath) {
862
- return path.resolve(this.getWorkspaceRoot(), filePath);
928
+ const decision = confineCompanionFilePath(this.getWorkspaceRoot(), filePath);
929
+ if (decision.admitted)
930
+ return decision.absolutePath;
931
+ throw this.errorBuilder.buildError(ErrorType.AUTHORIZATION, undefined, {
932
+ customMessageReference: ErrorCustomMessageReference.AUTHORIZATION,
933
+ context: {
934
+ refusal: decision.refusal,
935
+ path: decision.relativePath,
936
+ message: decision.refusal === CompanionFileRouteRefusal.SECRET_BEARING_PATH
937
+ ? 'Secrets are not served by the file routes; use `wildo secrets` or the workbench secrets section.'
938
+ : 'The file routes only reach files inside the application root.',
939
+ },
940
+ });
863
941
  }
864
942
  async updateFiles(req, res, next) {
865
943
  const traceStep = this.createTraceStep(res, 'file-operation', 'update-files');
@@ -1029,21 +1107,27 @@ let CompanionController = class CompanionController extends AbstractControllerBa
1029
1107
  */
1030
1108
  async codingAgentRespond(req, res, next) {
1031
1109
  try {
1032
- const { taskId, answer } = (req.body ?? {});
1033
- if (typeof taskId !== 'string' || typeof answer !== 'string') {
1110
+ const { taskId, answer, suspensionRef, answeredByRef } = (req.body ?? {});
1111
+ // An empty reference names no question: a malformed request (400), not a state conflict (#1581, R10-5).
1112
+ if (typeof taskId !== 'string' || typeof answer !== 'string' || typeof suspensionRef !== 'string' || suspensionRef.trim().length === 0) {
1034
1113
  // A malformed body is a VALIDATION 400, not a critical INTERNAL 500 — a
1035
1114
  // plain `new Error` here surfaced as the latter and logged at critical
1036
1115
  // severity (found by the live surface probe, 2026-09-04).
1037
1116
  throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
1038
1117
  customMessageReference: ErrorCustomMessageReference.VALIDATION,
1039
- context: { message: 'Both `taskId` and `answer` (strings) are required.' },
1118
+ context: { message: '`taskId`, `answer` and `suspensionRef` (strings) are required — `suspensionRef` names the question answered, as `pendingQuestions` carries it.' },
1040
1119
  });
1041
1120
  }
1042
1121
  // ONE door since #1359: the parked run is an actor-system execution waiting on a decision,
1043
1122
  // with its contract and baseline on the checkpoint, so answering it is the same call whether
1044
1123
  // this process parked it or a previous one did. The service refuses (409) when nothing
1045
1124
  // answerable waits under the id.
1046
- const admission = await this.codingAgentDispatchService.respondToApplicationCodingTaskQuestion(taskId, answer);
1125
+ // `suspensionRef` (from `pendingQuestions`) holds the answer to the question the caller read (#1581).
1126
+ // WHO answered, when the caller says (#1658) — recorded in CODING-ANSWERS.md; absent records nothing rather than a guess.
1127
+ const admission = await this.codingAgentDispatchService.respondToApplicationCodingTaskQuestion(taskId, answer, undefined, {
1128
+ suspensionRef,
1129
+ ...(typeof answeredByRef === 'string' && answeredByRef.trim().length > 0 ? { answeredByRef: answeredByRef.trim() } : {}),
1130
+ });
1047
1131
  this.jsonSuccess(res, admission);
1048
1132
  }
1049
1133
  catch (error) {
@@ -1473,6 +1557,9 @@ let CompanionController = class CompanionController extends AbstractControllerBa
1473
1557
  status: warningCount === 0 ? 'passed-with-zero-findings' : 'completed-with-warnings',
1474
1558
  warningCount,
1475
1559
  warnings: report.result.findings,
1560
+ // Optional-field recommendations: information beside the warnings, never counted as one.
1561
+ // `?? []`: a result from an injected saas-website that predates the channel carries no key.
1562
+ recommendations: report.result.recommendations ?? [],
1476
1563
  report,
1477
1564
  };
1478
1565
  await this.traceSessionArtifact(res, CompanionTraceabilityLevel.DEBUG_VERBOSE, 'website-structured-data-audit-result.json', responseBody, traceStep);
@@ -1753,11 +1840,11 @@ let CompanionController = class CompanionController extends AbstractControllerBa
1753
1840
  const resource = getWorkspaceResource(index, resourceType);
1754
1841
  if (resource === undefined) {
1755
1842
  // NOT an empty resource: "does not exist" and "exists and holds nothing" are different
1756
- // answers, and a creation task depends on which one it got.
1757
- throw this.errorBuilder.buildError(ErrorType.NOT_FOUND, undefined, {
1758
- customMessageReference: ErrorCustomMessageReference.NOT_FOUND,
1759
- context: { message: `No resource \`${resourceType}\` is registered in this application. Ask op=map for what is.` },
1760
- });
1843
+ // answers, and a creation task depends on which one it got. The hint travels as GUIDANCE: a 404's
1844
+ // context is stripped before it leaves the companion (#1588).
1845
+ // In the words of the CLI verb that reaches this route, since that is the reader (#1588 review F5).
1846
+ const hint = `No resource \`${resourceType}\` is registered in this application. \`wildo context workspace map\` (op=map) lists the resources it has.`;
1847
+ throw this.errorBuilder.buildErrorWithGuidanceKey(ErrorType.NOT_FOUND, undefined, CompanionErrorGuidanceKey.WORKSPACE_RESOURCE_NOT_REGISTERED, { explanation: hint }, { customMessageReference: ErrorCustomMessageReference.NOT_FOUND, context: { message: hint } });
1761
1848
  }
1762
1849
  res.json({ ...answeredWith, op: WorkspaceElementOperation.GET, resource });
1763
1850
  return;
@@ -2032,7 +2119,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2032
2119
  // outcome is the durable actor-task row the record names.
2033
2120
  if (body.async === true) {
2034
2121
  const plan = await this.buildDispatchService.submitBuildDispatchDetached(this.getTraceSession(res));
2035
- res.status(202).json({ plan, dispatched: true, async: true, note: 'Running detached. GET /build/dispatches shows how far it got: a companion generation step reaches FINISHED there; a coding task reaches ADMITTED with a codingTaskId, and its outcome is that actor-task row (GET /coding-agent/status while it runs).' });
2122
+ res.status(202).json({ plan, dispatched: true, async: true, note: 'Running detached. `wildo build dispatches` shows how far it got: a companion generation step reaches FINISHED there; a coding task reaches ADMITTED, and `wildo creation feed --follow` reports how it settles.' });
2036
2123
  return;
2037
2124
  }
2038
2125
  const result = await this.buildDispatchService.dispatchNextBuildTask(this.getTraceSession(res));
@@ -2050,7 +2137,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2050
2137
  this.forwardBuildDispatchError(error, next);
2051
2138
  }
2052
2139
  }
2053
- /** `GET /runs/writes` — the write register, newest first. Pre-images stay in the records; the listing is a summary. */
2140
+ /** `POST /playbooks/:playbookRef/judge` — judges SUPPLIED artifacts against a playbook's evaluation treatment; nothing lands. */
2054
2141
  async judgePlaybookArtifacts(req, res, next) {
2055
2142
  try {
2056
2143
  const { playbookRef } = req.params;
@@ -2090,6 +2177,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2090
2177
  next(error);
2091
2178
  }
2092
2179
  }
2180
+ /** `GET /runs/writes` — the write register, newest first. Pre-images stay in the records; the listing is a summary. */
2093
2181
  async listRunWrites(_req, res, next) {
2094
2182
  try {
2095
2183
  const records = await this.runWriteRegister.list();
@@ -2109,12 +2197,12 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2109
2197
  /**
2110
2198
  * `GET /runs/writes/:runId/diff` — what one run changed, per file (#1274).
2111
2199
  *
2112
- * A GET, so the board reaches it without the companion token: a browser bundle cannot read the
2113
- * 0600 `companion.token`, and this is a pure read — nothing is locked, written or reverted.
2200
+ * A pure read — nothing is locked, written or reverted. The workbench does not call it: it reads the
2201
+ * same diff through the `read_diff` operation on the run-write-records resource, on the engine's
2202
+ * authenticated `/api/v1` plane. This route serves the token-holding callers.
2114
2203
  *
2115
- * It sits beside the revert door on purpose. The board could already UNDO a run and could not SHOW
2116
- * it, which is the wrong way round: the doctrine printed at the top of every board screen is that
2117
- * acceptance is your own git commit, and a commit decision with nothing to inspect is not one.
2204
+ * It sits beside the revert door on purpose. A run that can be UNDONE must also be SHOWN: acceptance
2205
+ * is your own git commit, and a commit decision with nothing to inspect is not one.
2118
2206
  */
2119
2207
  async readRunWritesDiff(req, res, next) {
2120
2208
  try {
@@ -2127,11 +2215,19 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2127
2215
  }
2128
2216
  this.jsonSuccess(res, await this.runWriteRegister.describeRunDiff(runId));
2129
2217
  }
2130
- catch (e) {
2131
- this.jsonError(res, e, next);
2218
+ catch (error) {
2219
+ /*
2220
+ * An unknown run is the caller's mistake and must say so. Passed through raw, it answered a
2221
+ * sanitized 500 with an empty body — what `wildo creation diff <typo>` then printed (#1652).
2222
+ * The shared translator is what revert and accept already answer with.
2223
+ */
2224
+ next(translateCreationPlaneDispatchError(error, undefined, { errorBuilder: this.errorBuilder }) ?? error);
2132
2225
  }
2133
2226
  }
2134
- /** `POST /runs/writes/:runId/revert` — restore one run's pre-images. Refuses human-edited files unless `force`. */
2227
+ /**
2228
+ * `POST /runs/writes/:runId/revert` — restore one run's pre-images. Refuses human-edited files unless
2229
+ * `force`, and ALWAYS refuses a file a later run landed on (#1614): revert the newest run first.
2230
+ */
2135
2231
  async revertRunWrites(req, res, next) {
2136
2232
  try {
2137
2233
  const runId = req.params.runId;
@@ -2145,9 +2241,12 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2145
2241
  const outcome = await this.runWriteRegister.revert(runId, { force });
2146
2242
  res.json({
2147
2243
  ...outcome,
2148
- note: outcome.refusedDiverged.length > 0
2149
- ? 'Some files were edited after the run and were NOT reverted; pass force:true to revert them anyway.'
2150
- : 'All of this run\'s writes were reverted.',
2244
+ note: outcome.refusedLaterRun.length > 0
2245
+ // #1614: never forced, because it would destroy another run's work nobody asked to undo.
2246
+ ? `Some files hold a later run's landing and were NOT reverted, even with force: revert ${[...new Set(outcome.refusedLaterRun.map((entry) => entry.runId))].join(', ')} first.`
2247
+ : outcome.refusedDiverged.length > 0
2248
+ ? 'Some files were edited after the run and were NOT reverted; pass force:true to revert them anyway.'
2249
+ : 'All of this run\'s writes were reverted.',
2151
2250
  });
2152
2251
  }
2153
2252
  catch (error) {
@@ -2187,6 +2286,67 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2187
2286
  }
2188
2287
  next(error);
2189
2288
  }
2289
+ /**
2290
+ * `POST /build/tasks/:taskRef/dispatch` — run ONE named build-plan task, the console's
2291
+ * `wildo build run <taskRef>`. DETACHED, like `POST /build/dispatch-next`: a coding run takes minutes,
2292
+ * and a console that held a socket over it would report nothing while it ran and a failure if the
2293
+ * socket broke. It answers 202 with the selected plan; the feed and `wildo build dispatches` say how
2294
+ * it went. Readiness is the service's to refuse — a task that is not ready is refused BEFORE the 202 —
2295
+ * and its refusals are translated as the workbench's `dispatch_task` operation translates them.
2296
+ */
2297
+ async dispatchNamedBuildTask(req, res, next) {
2298
+ try {
2299
+ const plan = await this.buildDispatchService.submitBuildDispatchDetached(this.getTraceSession(res), { taskRef: String(req.params.taskRef) });
2300
+ res.status(202).json({ plan, dispatched: true, async: true });
2301
+ }
2302
+ catch (error) {
2303
+ next(translateCreationPlaneDispatchError(error, undefined, { errorBuilder: this.errorBuilder }) ?? error);
2304
+ }
2305
+ finally {
2306
+ this.creationPlaneProjection.invalidateDerivedBoards();
2307
+ }
2308
+ }
2309
+ /**
2310
+ * `POST /build/tasks/:taskRef/accept` — commit the latest coding run's writes for a task
2311
+ * (`wildo build accept`). The subject line is the task's own objective, read from the build plan,
2312
+ * exactly as the workbench's `accept` operation composes it.
2313
+ */
2314
+ async acceptBuildTaskRun(req, res, next) {
2315
+ try {
2316
+ const taskRef = String(req.params.taskRef);
2317
+ const task = (await this.creationPlaneProjection.deriveRows(WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS))
2318
+ .find((row) => row.taskRef === taskRef);
2319
+ const objective = typeof task?.objective === 'string' ? task.objective : undefined;
2320
+ res.json(await this.acceptedChangeCommitService.acceptCodingRun({
2321
+ taskRef,
2322
+ ...(objective ? { subject: objective } : {}),
2323
+ ...((req.body ?? {}).force === true ? { force: true } : {}),
2324
+ }));
2325
+ }
2326
+ catch (error) {
2327
+ // Translated exactly as the workbench's `accept` operations translate it, so a refusal reads the same through both doors.
2328
+ next(translateCreationPlaneDispatchError(error, undefined, { errorBuilder: this.errorBuilder }) ?? error);
2329
+ }
2330
+ finally {
2331
+ this.creationPlaneProjection.invalidateDerivedBoards();
2332
+ }
2333
+ }
2334
+ /** `POST /runs/writes/:runId/accept` — commit what one playbook run wrote (`wildo creation accept`). */
2335
+ async acceptPlaybookRunWrites(req, res, next) {
2336
+ try {
2337
+ res.json(await this.acceptedChangeCommitService.acceptPlaybookRun({
2338
+ runId: String(req.params.runId),
2339
+ ...((req.body ?? {}).force === true ? { force: true } : {}),
2340
+ }));
2341
+ }
2342
+ catch (error) {
2343
+ // Translated exactly as the workbench's `accept` operations translate it, so a refusal reads the same through both doors.
2344
+ next(translateCreationPlaneDispatchError(error, undefined, { errorBuilder: this.errorBuilder }) ?? error);
2345
+ }
2346
+ finally {
2347
+ this.creationPlaneProjection.invalidateDerivedBoards();
2348
+ }
2349
+ }
2190
2350
  /** `GET /traces` — recent execution sessions, newest first. */
2191
2351
  async listExecutionTraces(req, res, next) {
2192
2352
  try {
@@ -2324,6 +2484,12 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2324
2484
  */
2325
2485
  res.json({
2326
2486
  eligibleCount: board.playbooks.filter((entry) => entry.eligible).length,
2487
+ // The application's main line (#1603): what decides which of these rows it may run at all.
2488
+ applicationLine: board.applicationLine,
2489
+ // What that line no longer uses but the workspace still holds: reported, never removed (#1604).
2490
+ applicationLineOrphans: board.applicationLineOrphans,
2491
+ // The derived active set (#1607): the line's root, each playbook's place in it, and the tree.
2492
+ ...(board.activeSet ? { activeSet: board.activeSet } : {}),
2327
2493
  playbooks: board.playbooks,
2328
2494
  });
2329
2495
  }
@@ -2331,6 +2497,101 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2331
2497
  next(error);
2332
2498
  }
2333
2499
  }
2500
+ /**
2501
+ * `POST /playbooks/:playbookRef/instances` — open a playbook INSTANCE for a purpose (#1609).
2502
+ *
2503
+ * Recorded in the dossier's activation record and committed at once under the automatic posture, with the
2504
+ * purpose and the actor as commit trailers. This door is a person's (the workbench, the CLI), so its actor
2505
+ * is the creator; the conversation's tool records its own acts as the agent's.
2506
+ */
2507
+ async openPlaybookInstance(req, res, next) {
2508
+ try {
2509
+ const body = req.body || {};
2510
+ /* `neededFamilies` (#1608): what a secondary line needs back from the main line, each a family value. */
2511
+ /* ...and `refinedFamilies`: what a refinement line re-derives. Both are lists of family values. */
2512
+ const families = new Set(Object.values(ApplicationSpecificationFamily));
2513
+ const isFamilyList = (value) => Array.isArray(value) && value.every((family) => typeof family === 'string' && families.has(family));
2514
+ const malformed = ['neededFamilies', 'refinedFamilies'].find((field) => body[field] !== undefined && !isFamilyList(body[field]));
2515
+ if (malformed !== undefined) {
2516
+ next(this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2517
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
2518
+ context: { message: `"${malformed}" must be a list of specification family values.` },
2519
+ }));
2520
+ return;
2521
+ }
2522
+ const result = await this.playbookInstanceService.openInstance({
2523
+ playbookRef: String(req.params.playbookRef ?? ''),
2524
+ instanceKey: typeof body.instanceKey === 'string' ? body.instanceKey : '',
2525
+ purpose: typeof body.purpose === 'string' ? body.purpose : '',
2526
+ ...(body.neededFamilies !== undefined ? { neededFamilies: body.neededFamilies } : {}),
2527
+ ...(body.refinedFamilies !== undefined ? { refinedFamilies: body.refinedFamilies } : {}),
2528
+ actor: DecisionRecordActor.CREATOR,
2529
+ ...(body.dryRun === true ? { dryRun: true } : {}),
2530
+ });
2531
+ res.status(result.commitSha ? 201 : 200).json(result);
2532
+ }
2533
+ catch (error) {
2534
+ if (error instanceof PlaybookInstanceRefusedError) {
2535
+ next(this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2536
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
2537
+ context: { message: error.message },
2538
+ }));
2539
+ return;
2540
+ }
2541
+ if (error instanceof PlaybookInstanceTreeBusyError) {
2542
+ next(this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
2543
+ customMessageReference: ErrorCustomMessageReference.CONFLICT,
2544
+ context: { message: error.message },
2545
+ }));
2546
+ return;
2547
+ }
2548
+ next(error);
2549
+ }
2550
+ }
2551
+ /**
2552
+ * `POST /playbooks/:playbookRef/instances/:instanceKey/close` — close an instance (#1608): `completed` or
2553
+ * `abandoned`, with an optional reason. Recorded and committed; abandoning cancels its runs waiting on a person
2554
+ * and consumes its interrupted progress. 400 for an instance nobody opened or one already closed, 409 while a
2555
+ * coding run holds the tree.
2556
+ */
2557
+ async closePlaybookInstance(req, res, next) {
2558
+ try {
2559
+ const body = req.body || {};
2560
+ const kind = Object.values(ApplicationPlaybookInstanceClosureKind).find((candidate) => candidate === body.kind);
2561
+ if (kind === undefined) {
2562
+ next(this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2563
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
2564
+ context: { message: `"kind" must be one of ${Object.values(ApplicationPlaybookInstanceClosureKind).join(', ')}.` },
2565
+ }));
2566
+ return;
2567
+ }
2568
+ const result = await this.playbookInstanceService.closeInstance({
2569
+ playbookRef: String(req.params.playbookRef ?? ''),
2570
+ instanceKey: String(req.params.instanceKey ?? ''),
2571
+ kind,
2572
+ ...(typeof body.reason === 'string' ? { reason: body.reason } : {}),
2573
+ actor: DecisionRecordActor.CREATOR,
2574
+ });
2575
+ res.status(200).json(result);
2576
+ }
2577
+ catch (error) {
2578
+ if (error instanceof PlaybookInstanceRefusedError) {
2579
+ next(this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2580
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
2581
+ context: { message: error.message },
2582
+ }));
2583
+ return;
2584
+ }
2585
+ if (error instanceof PlaybookInstanceTreeBusyError) {
2586
+ next(this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
2587
+ customMessageReference: ErrorCustomMessageReference.CONFLICT,
2588
+ context: { message: error.message },
2589
+ }));
2590
+ return;
2591
+ }
2592
+ next(error);
2593
+ }
2594
+ }
2334
2595
  /**
2335
2596
  * `POST /playbooks/:playbookRef/run` — run one compiled playbook and land its outputs.
2336
2597
  *
@@ -2349,10 +2610,19 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2349
2610
  }
2350
2611
  const body = req.body || {};
2351
2612
  const creatorBrief = typeof body.creatorBrief === 'string' ? body.creatorBrief : undefined;
2613
+ /*
2614
+ * Per-run answers ONLY: this route files nothing in the dossier. The workbench's Run gate files the
2615
+ * answers the dossier still needed before it runs (`fileStillNeededAnswers`, #1454 review), and it
2616
+ * can because a signed-in person is there to record them against; this is the CLI/script door,
2617
+ * with no person to attribute an answer to, so its answers stay overrides of this run.
2618
+ */
2352
2619
  const elicitationAnswers = this.readElicitationAnswers(body.elicitationAnswers);
2353
2620
  const dryRun = body.dryRun === true;
2621
+ // The playbook INSTANCE to run (#1609); the run refuses one that was never opened.
2622
+ const instanceKey = typeof body.instanceKey === 'string' && body.instanceKey.trim().length > 0 ? body.instanceKey.trim() : undefined;
2354
2623
  const runInput = {
2355
2624
  playbookRef,
2625
+ ...(instanceKey ? { instanceKey } : {}),
2356
2626
  ...(res.locals.companionTraceSession ? { session: res.locals.companionTraceSession } : {}),
2357
2627
  ...(creatorBrief ? { creatorBrief } : {}),
2358
2628
  ...(elicitationAnswers ? { elicitationAnswers } : {}),
@@ -2369,16 +2639,17 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2369
2639
  return;
2370
2640
  }
2371
2641
  const result = await this.playbookRunService.runPlaybook(runInput);
2372
- if ('status' in result) {
2642
+ if ('status' in result && result.status === Workbench_PlaybookRunOutcomeStatus.AWAITING_CREATOR_INPUT) {
2373
2643
  // 200, not an error status: the run is HEALTHY and waiting. The creator answers through
2374
2644
  // POST /playbooks/runs/:runId/resume, which is the industry three-action model
2375
2645
  // (accept / decline / cancel) at the transport.
2376
2646
  res.json({
2377
2647
  ...result,
2378
2648
  accepted: false,
2379
- note: 'The derivation stopped at a decision only you can make. Answer with '
2649
+ note: 'The derivation stopped at a decision only you can make. Answer it with `wildo creation questions`, then '
2650
+ + '`wildo creation answer <questionId>` (or `/wildo:answer` in a Claude Code session). An HTTP client answers with '
2380
2651
  + `POST /api/companion/playbooks/runs/${result.runId}/resume — `
2381
- + '{ "action": "accept", "answers": [{ "ref": "...", "answer": "..." }] }, '
2652
+ + `{ "round": ${result.round}, "action": "accept", "answers": [{ "ref": "...", "answer": "..." }] }, `
2382
2653
  + 'or "decline" to have it choose and state its assumption, or "cancel" to abandon the run. '
2383
2654
  + `Carry the '${COMPANION_TOKEN_HEADER}' header from .wildo-saas/state/companion.token — `
2384
2655
  + 'resume is a mutating route and the token floor refuses it without one. '
@@ -2424,7 +2695,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2424
2695
  /*
2425
2696
  * A DISPATCH run wrote application CODE in the workspace, not a specification. The generic
2426
2697
  * note below would be false twice over: it names the wrong tree, and it offers a write-register
2427
- * revert (`POST /runs/writes/{runId}/revert`) that has no record for this run — a remedy an
2698
+ * revert (`wildo creation revert <runId>`) that has no record for this run — a remedy an
2428
2699
  * operator would try and find missing at the moment they need it.
2429
2700
  */
2430
2701
  : 'dispatched' in result
@@ -2437,7 +2708,13 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2437
2708
  ? this.describeStaffingOutcome(result)
2438
2709
  : dryRun
2439
2710
  ? 'Dry run: the full pipe ran (generation, validation, rendering, judge) and NOTHING was written.'
2440
- : 'Files were written to the specifications package. Review `git status` and commit to accept them — or revert this run via POST /runs/writes/{runId}/revert.',
2711
+ /*
2712
+ * Names the console VERBS, never the route (#1659 principle 2): this note is read by a
2713
+ * person or a Claude Code session, and the verbs are the surface both are given.
2714
+ */
2715
+ : 'runId' in result && typeof result.runId === 'string'
2716
+ ? `Files were written to the specifications package. Review them with \`wildo creation diff ${result.runId}\`, then accept with \`wildo creation accept ${result.runId}\` or undo with \`wildo creation revert ${result.runId}\`.`
2717
+ : 'Files were written to the specifications package. Review `git status` and commit to accept them.',
2441
2718
  });
2442
2719
  }
2443
2720
  catch (error) {
@@ -2485,6 +2762,18 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2485
2762
  }));
2486
2763
  return;
2487
2764
  }
2765
+ /*
2766
+ * The run's output file moved after the run read it, so it landed nothing rather than replace that
2767
+ * change (#1614). A CONFLICT, not a bad request: what was sent was valid, the working tree moved under
2768
+ * it, and the message names who moved it and that running the playbook again is the repair.
2769
+ */
2770
+ if (error instanceof PlaybookRunLandingConflictError) {
2771
+ next(this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
2772
+ customMessageReference: ErrorCustomMessageReference.CONFLICT,
2773
+ context: { message: error.message },
2774
+ }));
2775
+ return;
2776
+ }
2488
2777
  /*
2489
2778
  * A DISPATCH refusal reaches here now, and it did not before.
2490
2779
  *
@@ -2504,7 +2793,9 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2504
2793
  /**
2505
2794
  * `POST /playbooks/runs/:runId/resume` — the creator's half of a mid-run clarification.
2506
2795
  *
2507
- * Body: `{ action: 'accept' | 'decline' | 'cancel', answers?: [{ ref, answer }] }`. The vocabulary
2796
+ * Body: `{ round: number, action: 'accept' | 'decline' | 'cancel', answers?: [{ ref, answer }] }` —
2797
+ * `round` required: the round of questions this acts on, refused 409 once the run has moved past it
2798
+ * (#1584). The vocabulary
2508
2799
  * is MCP elicitation's, because a creator answering a derivation's question is the same interaction
2509
2800
  * an MCP client mediates, and inventing a fourth verb for it would only make the two harder to
2510
2801
  * bridge later.
@@ -2519,22 +2810,37 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2519
2810
  });
2520
2811
  }
2521
2812
  const body = req.body || {};
2522
- const rawAction = typeof body.action === 'string' ? body.action : PlaybookClarificationAction.ACCEPT;
2523
- const action = Object.values(PlaybookClarificationAction).find((candidate) => candidate === rawAction);
2813
+ // The round this answers — required, so an answer acts only on the round its caller read (#1584).
2814
+ if (typeof body.round !== 'number' || !Number.isInteger(body.round) || body.round < 1) {
2815
+ throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2816
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
2817
+ context: { message: '`round` (a positive integer) is required: the round of questions this answers, as the waiting run carries it.' },
2818
+ });
2819
+ }
2820
+ const round = body.round;
2821
+ /*
2822
+ * REQUIRED, as on the workbench's resume operation (#1785): a missing action used to mean ACCEPT, a
2823
+ * guess about which of three different answers the caller gave.
2824
+ */
2825
+ const rawAction = body.action;
2826
+ const action = Object.values(MetaWorkflow_ClarificationAction).find((candidate) => candidate === rawAction);
2524
2827
  if (!action) {
2525
2828
  throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2526
2829
  customMessageReference: ErrorCustomMessageReference.VALIDATION,
2527
2830
  context: {
2528
- message: `Unknown action \`${rawAction}\`. Expected one of: ${Object.values(PlaybookClarificationAction).join(', ')}.`,
2831
+ message: `${rawAction === undefined ? 'An `action` is required.' : `Unknown action \`${String(rawAction)}\`.`} Expected one of: ${Object.values(MetaWorkflow_ClarificationAction).join(', ')}.`,
2529
2832
  },
2530
2833
  });
2531
2834
  }
2532
2835
  if (body.answers !== undefined && (!Array.isArray(body.answers) || body.answers.some((entry) => typeof entry !== 'object' || entry === null || typeof entry.ref !== 'string'
2533
- || typeof entry.answer !== 'string'))) {
2534
- throw new PlaybookClarificationError('Every clarification answer must contain string ref and answer fields.');
2836
+ || typeof entry.answer !== 'string'
2837
+ || !['undefined', 'string'].includes(typeof entry.answeredByRef)))) {
2838
+ throw new PlaybookClarificationError('Every clarification answer must contain string ref and answer fields (and, optionally, a string answeredByRef).');
2535
2839
  }
2536
2840
  const answers = body.answers ?? [];
2537
- if (action === PlaybookClarificationAction.ACCEPT && answers.length === 0) {
2841
+ // WHO answered (#1658): per answer, or for the whole request; absent records nothing rather than a guess.
2842
+ const answeredByRef = typeof body.answeredByRef === 'string' && body.answeredByRef.trim().length > 0 ? body.answeredByRef.trim() : undefined;
2843
+ if (action === MetaWorkflow_ClarificationAction.ACCEPT && answers.length === 0) {
2538
2844
  // Refused rather than silently treated as a decline: "I answered" and "you decide" lead to
2539
2845
  // different artifacts, and a dropped answer would be invisible in both.
2540
2846
  throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
@@ -2544,21 +2850,25 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2544
2850
  }
2545
2851
  const result = await this.playbookRunService.resumePlaybookRun({
2546
2852
  runId,
2853
+ round,
2547
2854
  action,
2548
2855
  ...(answers.length > 0 ? { answers } : {}),
2856
+ ...(answeredByRef ? { answeredByRef } : {}),
2549
2857
  ...(res.locals.companionTraceSession ? { session: res.locals.companionTraceSession } : {}),
2550
2858
  ...(body.dryRun === true ? { dryRun: true } : {}),
2551
2859
  });
2552
- if ('status' in result && result.status === 'cancelled') {
2860
+ if ('status' in result && result.status === Workbench_PlaybookRunOutcomeStatus.CANCELLED) {
2553
2861
  res.json({ ...result, note: 'The run was abandoned. Nothing was generated and nothing was written.' });
2554
2862
  return;
2555
2863
  }
2556
- if ('status' in result) {
2864
+ if ('status' in result && result.status === Workbench_PlaybookRunOutcomeStatus.AWAITING_CREATOR_INPUT) {
2557
2865
  res.json({
2558
2866
  ...result,
2559
2867
  accepted: false,
2560
- note: 'Still waiting: the derivation has further questions. Answer them at '
2561
- + `POST /api/companion/playbooks/runs/${result.runId}/resume, `
2868
+ note: `Still waiting: the derivation has further questions (round ${result.round}). Answer them with `
2869
+ + '`wildo creation answer <questionId>` (`wildo creation questions` names it), or, from an HTTP client, at '
2870
+ + `POST /api/companion/playbooks/runs/${result.runId}/resume with "round": ${result.round} and an "action" `
2871
+ + '(accept, decline or cancel), '
2562
2872
  + `carrying the '${COMPANION_TOKEN_HEADER}' header from .wildo-saas/state/companion.token.`,
2563
2873
  });
2564
2874
  return;
@@ -2591,7 +2901,20 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2591
2901
  });
2592
2902
  }
2593
2903
  catch (error) {
2594
- if (error instanceof SuspendedPlaybookRunNotFoundError || error instanceof PlaybookClarificationError) {
2904
+ if (error instanceof SupersededPlaybookRunQuestionError) {
2905
+ next(this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
2906
+ customMessageReference: ErrorCustomMessageReference.CONFLICT,
2907
+ context: { message: error.message },
2908
+ }));
2909
+ return;
2910
+ }
2911
+ // No run is waiting under that id — a missing resource, 404, as the error class promises (#1584). Its
2912
+ // words travel as guidance: a 404's context is stripped before it reaches the client.
2913
+ if (error instanceof SuspendedPlaybookRunNotFoundError) {
2914
+ next(this.errorBuilder.buildErrorWithGuidanceKey(ErrorType.NOT_FOUND, undefined, CompanionErrorGuidanceKey.SUSPENDED_PLAYBOOK_RUN_NOT_WAITING, { explanation: error.message }, { customMessageReference: ErrorCustomMessageReference.NOT_FOUND, context: { message: error.message } }));
2915
+ return;
2916
+ }
2917
+ if (error instanceof PlaybookClarificationError) {
2595
2918
  next(this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
2596
2919
  customMessageReference: ErrorCustomMessageReference.VALIDATION,
2597
2920
  context: { message: error.message },
@@ -2601,6 +2924,109 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2601
2924
  next(error);
2602
2925
  }
2603
2926
  }
2927
+ /**
2928
+ * The creation console's PORTS, bound to the same services the workbench's creation-plane operations
2929
+ * call — one binding, so the console's answer and the workbench's cannot reach different code. The
2930
+ * request's trace session travels with every call, as it does on the bespoke routes.
2931
+ */
2932
+ creationConsolePorts(res) {
2933
+ const session = res.locals.companionTraceSession;
2934
+ return {
2935
+ deriveRows: (behavior) => this.creationPlaneProjection.deriveRows(behavior),
2936
+ resumePlaybookRun: (input) => this.playbookRunService.resumePlaybookRun({ ...input, ...(session ? { session } : {}) }),
2937
+ respondToParkedQuestion: (taskId, answer, suspensionRef, answeredByRef) => this.codingAgentDispatchService.respondToApplicationCodingTaskQuestion(taskId, answer, session, { suspensionRef, ...(answeredByRef ? { answeredByRef } : {}) }),
2938
+ cancelCodingRun: (taskId) => this.codingAgentDispatchService.cancelApplicationCodingTask(taskId, session),
2939
+ recordInterviewAnswer: (input) => this.dossierService.recordAnswer(input),
2940
+ invalidate: () => this.creationPlaneProjection.invalidateDerivedBoards(),
2941
+ };
2942
+ }
2943
+ /**
2944
+ * `GET /creation/feed` — Home's lines for a console: what happened (a run completed or was refused, a
2945
+ * dispatch settled), what is asked of the person, what could come next. Each line carries the row it
2946
+ * points at, so a run's verdict and error or a dispatch's outcome arrive in the same read, and the id
2947
+ * of the queued question it is about.
2948
+ *
2949
+ * Every board is read through the projection the workbench reads. That is NOT free on every poll: the
2950
+ * cached boards (eligibility, the build plan) answer from cache until an input moves, but Home also
2951
+ * re-derives the actor-plane boards it folds (runs, dispatches, waiting runs, parked questions) on each
2952
+ * read, and a read adopts the served rows as the publication baseline. Polled, it is therefore
2953
+ * trace-exempt (`COMPANION_TRACE_EXEMPT_GET_PATHS`), and the CLI's default interval is seconds, not less.
2954
+ */
2955
+ async readCreationConsoleFeed(_req, res) {
2956
+ const lines = await this.creationPlaneProjection.deriveRows(WorkbenchCreationPlaneBehavior.HOME_LINES);
2957
+ const behaviors = [...new Set(lines
2958
+ .map((line) => creationPlaneBehaviorForResourceType(line.targetResourceType))
2959
+ .filter((behavior) => behavior !== null))];
2960
+ const rowsByBehavior = new Map(await Promise.all(behaviors.map(async (behavior) => [behavior, await this.creationPlaneProjection.deriveRows(behavior)])));
2961
+ const feed = {
2962
+ computedAt: new Date().toISOString(),
2963
+ lines: buildCreationConsoleFeed(lines, (resourceType, resourceId) => {
2964
+ const behavior = creationPlaneBehaviorForResourceType(resourceType);
2965
+ if (!behavior)
2966
+ return null;
2967
+ const identityField = CREATION_PLANE_IDENTITY_FIELDS[behavior];
2968
+ return rowsByBehavior.get(behavior)?.find((row) => row[identityField] === resourceId) ?? null;
2969
+ }),
2970
+ };
2971
+ this.lastCreationFeedSummary = summarizeCreationConsoleFeed(feed);
2972
+ res.json(feed);
2973
+ }
2974
+ /** What the most recent feed read counted — the pulse's `summary`, `null` until someone reads the feed. */
2975
+ lastCreationFeedSummary = null;
2976
+ /**
2977
+ * `GET /creation/pulse` — the console's poll (#1657): a hook runs it on every prompt and a status line
2978
+ * every few seconds, so it derives NOTHING. The change cursor and the run count are in memory; the
2979
+ * summary is the last feed read's, carried with its instant. A poller compares two pulses and reads
2980
+ * the feed only when one moved — which also refreshes the summary. Trace-exempt, like the feed.
2981
+ */
2982
+ async readCreationConsolePulse(_req, res) {
2983
+ const cursor = this.creationPlaneProjection.readChangeCursor();
2984
+ const pulse = {
2985
+ sequence: cursor.sequence,
2986
+ changedAt: cursor.changedAt,
2987
+ runsInFlight: this.playbookRunService.countRunsInFlightInProcess(),
2988
+ summary: this.lastCreationFeedSummary,
2989
+ };
2990
+ res.json(pulse);
2991
+ }
2992
+ /** `GET /creation/questions` — every question waiting on the person, as one queue. */
2993
+ async readCreationConsoleQuestionQueue(_req, res) {
2994
+ const queue = {
2995
+ computedAt: new Date().toISOString(),
2996
+ questions: await readCreationConsoleQuestions(this.creationConsolePorts(res)),
2997
+ };
2998
+ res.json(queue);
2999
+ }
3000
+ /**
3001
+ * `POST /creation/questions/answer` — answer, decline or cancel ONE queued question.
3002
+ *
3003
+ * The console's own refusals (an id that names nothing, a question that moved on, an action the item
3004
+ * does not admit) answer 400 or 409 with their sentence; a service's refusal is translated exactly as
3005
+ * the workbench's operation translates it, so a refusal reads the same through both doors.
3006
+ */
3007
+ async answerCreationConsoleQuestion(req, res, next) {
3008
+ try {
3009
+ const parsed = CreationConsole_AnswerRequest_Schema.safeParse(req.body ?? {});
3010
+ if (!parsed.success) {
3011
+ throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
3012
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
3013
+ context: { message: parsed.error.issues.map((issue) => `${issue.path.join('.') || 'body'}: ${issue.message}`).join('; ') },
3014
+ });
3015
+ }
3016
+ res.json(await answerCreationConsoleQuestion(this.creationConsolePorts(res), parsed.data));
3017
+ }
3018
+ catch (error) {
3019
+ if (error instanceof CreationConsoleRefusal) {
3020
+ const malformed = error.refusal === CreationConsoleRefusalKind.MALFORMED;
3021
+ next(this.errorBuilder.buildError(malformed ? ErrorType.VALIDATION : ErrorType.CONFLICT, undefined, {
3022
+ customMessageReference: malformed ? ErrorCustomMessageReference.VALIDATION : ErrorCustomMessageReference.CONFLICT,
3023
+ context: { message: error.message },
3024
+ }));
3025
+ return;
3026
+ }
3027
+ next(translateCreationPlaneDispatchError(error, undefined, { errorBuilder: this.errorBuilder }) ?? error);
3028
+ }
3029
+ }
2604
3030
  async marketGenerate(req, res, next) {
2605
3031
  try {
2606
3032
  const body = req.body || {};
@@ -2990,44 +3416,6 @@ let CompanionController = class CompanionController extends AbstractControllerBa
2990
3416
  this.jsonError(res, e, next);
2991
3417
  }
2992
3418
  }
2993
- // ── Module Registry handlers ───────────────────────────────────────────
2994
- //
2995
- // Phase 2 wires the route shape only — every handler returns a
2996
- // `RegistryRouteResultSchema`-shaped envelope with `ok: false` and
2997
- // a `message` pointing at the deferred phase. The CLI client
2998
- // (`RegistryCompanionClient.{install,update,remove,publish}`)
2999
- // parses the response uniformly, so the 501-equivalent UX is
3000
- // surfaced as a regular error rather than an HTTP 501 the parser
3001
- // chokes on. Phase 5 fills out install/update/remove with real
3002
- // ts-morph + fs work; Phase 6 fills out publish.
3003
- async registryInstallNotImplemented(req, res) {
3004
- this.jsonSuccess(res, {
3005
- ok: false,
3006
- filesTouched: [],
3007
- message: 'Module-registry install is a Phase 5 deliverable. The route shape is wired; the AST + filesystem work lands when Phase 5 ships.',
3008
- });
3009
- }
3010
- async registryUpdateNotImplemented(req, res) {
3011
- this.jsonSuccess(res, {
3012
- ok: false,
3013
- filesTouched: [],
3014
- message: 'Module-registry update is a Phase 5 deliverable.',
3015
- });
3016
- }
3017
- async registryRemoveNotImplemented(req, res) {
3018
- this.jsonSuccess(res, {
3019
- ok: false,
3020
- filesTouched: [],
3021
- message: 'Module-registry remove is a Phase 5 deliverable.',
3022
- });
3023
- }
3024
- async registryPublishNotImplemented(req, res) {
3025
- this.jsonSuccess(res, {
3026
- ok: false,
3027
- filesTouched: [],
3028
- message: 'Module-registry publish is a Phase 6 deliverable.',
3029
- });
3030
- }
3031
3419
  };
3032
3420
  CompanionController = __decorate([
3033
3421
  injectable(),
@@ -3039,31 +3427,35 @@ CompanionController = __decorate([
3039
3427
  __param(5, inject(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService)),
3040
3428
  __param(6, inject(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService)),
3041
3429
  __param(7, inject(COMPANION_SERVICE_TYPES.TranslateOrchestratorService)),
3042
- __param(8, inject(COMPANION_SERVICE_TYPES.EmailTemplateService)),
3043
- __param(9, inject(COMPANION_SERVICE_TYPES.MarketGenerationService)),
3044
- __param(10, inject(COMPANION_SERVICE_TYPES.PlaybookRunService)),
3045
- __param(11, inject(COMPANION_SERVICE_TYPES.DossierService)),
3046
- __param(12, inject(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService)),
3047
- __param(13, inject(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService)),
3048
- __param(14, inject(COMPANION_SERVICE_TYPES.ExecutionTraceReadService)),
3049
- __param(15, inject(COMPANION_SERVICE_TYPES.LogoGenerationService)),
3050
- __param(16, inject(COMPANION_SERVICE_TYPES.LogoDeliberationService)),
3051
- __param(17, inject(COMPANION_SERVICE_TYPES.BrandAcceptService)),
3052
- __param(18, inject(COMPANION_SERVICE_TYPES.ExpertPersonaService)),
3053
- __param(19, inject(COMPANION_SERVICE_TYPES.DeliberationService)),
3054
- __param(20, inject(COMPANION_SERVICE_TYPES.TechnicalDocService)),
3055
- __param(21, inject(COMPANION_SERVICE_TYPES.IntrospectionService)),
3056
- __param(22, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
3057
- __param(23, inject(COMPANION_SERVICE_TYPES.TraceabilityService)),
3058
- __param(24, inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService)),
3059
- __param(25, inject(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService)),
3060
- __param(26, inject(COMPANION_SERVICE_TYPES.AuthFloorService)),
3430
+ __param(8, inject(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService)),
3431
+ __param(9, inject(COMPANION_SERVICE_TYPES.EmailTemplateService)),
3432
+ __param(10, inject(COMPANION_SERVICE_TYPES.MarketGenerationService)),
3433
+ __param(11, inject(COMPANION_SERVICE_TYPES.PlaybookRunService)),
3434
+ __param(12, inject(COMPANION_SERVICE_TYPES.DossierService)),
3435
+ __param(13, inject(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService)),
3436
+ __param(14, inject(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService)),
3437
+ __param(15, inject(COMPANION_SERVICE_TYPES.ExecutionTraceReadService)),
3438
+ __param(16, inject(COMPANION_SERVICE_TYPES.LogoGenerationService)),
3439
+ __param(17, inject(COMPANION_SERVICE_TYPES.LogoDeliberationService)),
3440
+ __param(18, inject(COMPANION_SERVICE_TYPES.BrandAcceptService)),
3441
+ __param(19, inject(COMPANION_SERVICE_TYPES.ExpertPersonaService)),
3442
+ __param(20, inject(COMPANION_SERVICE_TYPES.DeliberationService)),
3443
+ __param(21, inject(COMPANION_SERVICE_TYPES.TechnicalDocService)),
3444
+ __param(22, inject(COMPANION_SERVICE_TYPES.IntrospectionService)),
3445
+ __param(23, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
3446
+ __param(24, inject(COMPANION_SERVICE_TYPES.TraceabilityService)),
3447
+ __param(25, inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService)),
3448
+ __param(26, inject(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService)),
3449
+ __param(27, inject(COMPANION_SERVICE_TYPES.AuthFloorService)),
3450
+ __param(28, inject(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService)),
3451
+ __param(29, inject(COMPANION_SERVICE_TYPES.PlaybookInstanceService)),
3061
3452
  __metadata("design:paramtypes", [LoggerService,
3062
3453
  ErrorBuilderBackendService,
3063
3454
  ErrorHandlerService, Object, LabellingPlannerCompanionService,
3064
3455
  LabellizeOrchestratorCompanionService,
3065
3456
  PlaybookRunWriteRegisterCompanionService,
3066
3457
  TranslateOrchestratorCompanionService,
3458
+ EmailTemplateLabellingUnitsCompanionService,
3067
3459
  EmailTemplateCompanionService,
3068
3460
  MarketGenerationCompanionService,
3069
3461
  PlaybookRunCompanionService, Function, CreationPlaneProjectionCompanionService,
@@ -3080,7 +3472,9 @@ CompanionController = __decorate([
3080
3472
  CompanionTraceabilityService,
3081
3473
  CodingAgentDispatchCompanionService,
3082
3474
  ResearchAgentDispatchCompanionService,
3083
- CompanionAuthFloorCompanionService])
3475
+ CompanionAuthFloorCompanionService,
3476
+ AcceptedChangeCommitCompanionService,
3477
+ PlaybookInstanceCompanionService])
3084
3478
  ], CompanionController);
3085
3479
  export { CompanionController };
3086
3480
  export default CompanionController;