@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
@@ -6,7 +6,7 @@
6
6
  * the driver would pin what the lane TELLS it and nothing about what then happens to the rows, and
7
7
  * mocking the adapter would hide the one place a driver move becomes a companion write. So both are
8
8
  * the production classes; only `CompanionExecutionsCompanionService` is a double — the same four
9
- * task methods the lane's tests always stubbed, plus the four execution methods the adapter calls,
9
+ * task methods the lane's tests always stubbed, plus the five execution methods the adapter calls,
10
10
  * with the one behaviour of the real service the driver depends on: a task created under an
11
11
  * execution appears in that execution's `standaloneTasks`.
12
12
  *
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { vi } from 'vitest';
17
17
  import { ActorsSystemBackendService } from '@wildo-ai/saas-backend-lib';
18
- import { FlowsActors_Status } from '@wildo-ai/saas-models';
18
+ import { ErrorCustomMessageReference, FlowsActors_Status } from '@wildo-ai/saas-models';
19
19
  import { CompanionActorExecutionPersistenceAdapter } from '../../../../executions/services/companion-actor-execution-persistence.adapter.js';
20
20
  import { APPLICATION_CODING_SYSTEM_REF, buildApplicationCodingActorSystemDefinitions, } from '../../../../meta-workflows/models/application-coding-agent.actors-system.definitions.js';
21
21
  import { APPLICATION_BUILD_SYSTEM_REF, buildApplicationBuildActorSystemDefinitions } from '../../../../meta-workflows/models/application-build.actors-system.definitions.js';
@@ -39,6 +39,27 @@ function buildExecutionsServiceDouble() {
39
39
  throw new Error(`no execution ${executionId}`);
40
40
  // `null` clears, absent leaves alone — assigning every PRESENT key is exactly that.
41
41
  Object.assign(row, patch);
42
+ // As the real service: a non-terminal row keeps no finish instant (#1586 review N1).
43
+ if (![FlowsActors_Status.COMPLETED, FlowsActors_Status.FAILED, FlowsActors_Status.CANCELLED, FlowsActors_Status.ABORTED].includes(row['status']))
44
+ delete row['finishedAt'];
45
+ return row;
46
+ }),
47
+ /*
48
+ * The real service's compare-and-swap (#1586): moves the row only while it still waits on
49
+ * `expected`, and answers `null` — writing nothing — otherwise. No `await` between the check and
50
+ * the write, so no other call interleaves, as the one guarded statement guarantees in production.
51
+ */
52
+ updateSuspendedActorExecution: vi.fn(async (executionId, expected, patch) => {
53
+ const row = executions.get(executionId);
54
+ const waiting = row?.['suspension'];
55
+ if (!row || row['status'] !== FlowsActors_Status.AWAITING_APPROVAL || !waiting)
56
+ return null;
57
+ const matches = expected.suspensionId !== undefined ? waiting.suspensionId === expected.suspensionId : waiting.suspendedAt === expected.suspendedAt;
58
+ if (!matches)
59
+ return null;
60
+ Object.assign(row, patch);
61
+ if (![FlowsActors_Status.COMPLETED, FlowsActors_Status.FAILED, FlowsActors_Status.CANCELLED, FlowsActors_Status.ABORTED].includes(row['status']))
62
+ delete row['finishedAt'];
42
63
  return row;
43
64
  }),
44
65
  getActorExecution: vi.fn(async (executionId) => {
@@ -78,8 +99,9 @@ function buildExecutionsServiceDouble() {
78
99
  }),
79
100
  getActorTask: vi.fn(async (taskId) => {
80
101
  const row = tasks.get(taskId);
102
+ // As the companion's executions service reports it, so a reader can tell "no such task" from a failed read.
81
103
  if (!row)
82
- throw new Error('not found');
104
+ throw Object.assign(new Error('not found'), { customMessageReference: ErrorCustomMessageReference.NOT_FOUND });
83
105
  return row;
84
106
  }),
85
107
  listActorTasks: vi.fn(async (query) => [...tasks.values()].filter((row) => query.status === undefined || row.status === query.status)),
@@ -1 +1 @@
1
- {"version":3,"file":"in-memory-coding-actor-plane.js","sourceRoot":"","sources":["../../../../../../../src/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAoB,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAE,yCAAyC,EAAE,MAAM,+EAA+E,CAAC;AAC1I,OAAO,EACL,6BAA6B,EAC7B,4CAA4C,GAC7C,MAAM,sFAAsF,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,2CAA2C,EAAE,MAAM,+EAA+E,CAAC;AAC1K,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAenF,SAAS,4BAA4B;IACnC,MAAM,UAAU,GAAG,IAAI,GAAG,EAAe,CAAC;IAC1C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAe,CAAC;IACrC,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC,0BAA0B,CAAC;IAE7C,MAAM,OAAO,GAAG;QACd,oBAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAgC,EAAE,EAAE;YACrE,iBAAiB,IAAI,CAAC,CAAC;YACvB,MAAM,GAAG,GAAQ,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,QAAQ,iBAAiB,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,CAAC;YAC3H,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAC7B,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;QACF,oBAAoB,EA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, over an in-memory\n * executions store — for tests of the coding lane (#1359).\n *\n * A coding run is an actor-system execution the engine opens, suspends, resumes and settles. Mocking\n * the driver would pin what the lane TELLS it and nothing about what then happens to the rows, and\n * mocking the adapter would hide the one place a driver move becomes a companion write. So both are\n * the production classes; only `CompanionExecutionsCompanionService` is a double — the same four\n * task methods the lane's tests always stubbed, plus the four execution methods the adapter calls,\n * with the one behaviour of the real service the driver depends on: a task created under an\n * execution appears in that execution's `standaloneTasks`.\n *\n * Every method is a `vi.fn`, so a test still asserts `createActorTask` / `updateActorTask` payloads\n * exactly as before — they are now what the ADAPTER wrote, which is what production writes.\n */\nimport { vi } from 'vitest';\nimport { ActorsSystemBackendService } from '@wildo-ai/saas-backend-lib';\nimport { FlowsActors_Status, type ActorSystem } from '@wildo-ai/saas-models';\n\nimport { CompanionActorExecutionPersistenceAdapter } from '../../../../executions/services/companion-actor-execution-persistence.adapter';\nimport {\n APPLICATION_CODING_SYSTEM_REF,\n buildApplicationCodingActorSystemDefinitions,\n} from '../../../../meta-workflows/models/application-coding-agent.actors-system.definitions';\nimport { APPLICATION_BUILD_SYSTEM_REF, buildApplicationBuildActorSystemDefinitions } from '../../../../meta-workflows/models/application-build.actors-system.definitions';\nimport { CODING_RUN_OPTIONS } from '../../coding-agent-dispatch.companion.service';\n\ntype Row = Record<string, unknown> & { _id: string };\n\nexport interface InMemoryCodingActorPlane {\n readonly executionsService: ReturnType<typeof buildExecutionsServiceDouble>['service'];\n readonly actorsSystem: ActorsSystemBackendService;\n readonly executions: Map<string, Row>;\n readonly tasks: Map<string, Row>;\n /** The one task row a single-run test reads; throws when none was created. */\n onlyTask(): Row;\n /** The one execution row a single-run test reads; throws when none was created. */\n onlyExecution(): Row;\n}\n\nfunction buildExecutionsServiceDouble() {\n const executions = new Map<string, Row>();\n const tasks = new Map<string, Row>();\n let executionSequence = 0;\n let taskSequence = 0;\n const now = () => '2026-07-03T10:00:00.000Z';\n\n const service = {\n createActorExecution: vi.fn(async (payload: Record<string, unknown>) => {\n executionSequence += 1;\n const row: Row = { ...payload, _id: `exec-${executionSequence}`, standaloneTasks: [], createdAt: now(), updatedAt: now() };\n executions.set(row._id, row);\n return row;\n }),\n updateActorExecution: vi.fn(async (executionId: string, patch: Record<string, unknown>) => {\n const row = executions.get(executionId);\n if (!row) throw new Error(`no execution ${executionId}`);\n // `null` clears, absent leaves alone — assigning every PRESENT key is exactly that.\n Object.assign(row, patch);\n return row;\n }),\n getActorExecution: vi.fn(async (executionId: string) => {\n const row = executions.get(executionId);\n if (!row) throw new Error(`no execution ${executionId}`);\n return row;\n }),\n // Both filters optional, newest first, trimmed to `limit` — the real service's list.\n listActorExecutions: vi.fn(async (query: { systemRef?: string; status?: string; limit?: number }) =>\n [...executions.values()]\n .filter((row) => (query.systemRef === undefined || row.systemRef === query.systemRef) && (query.status === undefined || row.status === query.status))\n .reverse()\n .slice(0, query.limit ?? 50)),\n createActorTask: vi.fn(async (payload: Record<string, unknown>) => {\n taskSequence += 1;\n const row: Row = {\n ...payload,\n _id: `task-${taskSequence}`,\n organizationId: 'org-1',\n wildoApplicationId: 'app-1',\n createdAt: now(),\n updatedAt: now(),\n };\n tasks.set(row._id, row);\n const executionId = payload.wildoApplicationActorSystemExecutionId;\n if (typeof executionId === 'string') {\n (executions.get(executionId)?.standaloneTasks as Row[] | undefined)?.push(row);\n }\n return row;\n }),\n updateActorTask: vi.fn(async (taskId: string, patch: Record<string, unknown>) => {\n const row = tasks.get(taskId);\n if (!row) throw new Error(`no task ${taskId}`);\n Object.assign(row, patch);\n return row;\n }),\n getActorTask: vi.fn(async (taskId: string) => {\n const row = tasks.get(taskId);\n if (!row) throw new Error('not found');\n return row;\n }),\n listActorTasks: vi.fn(async (query: { status?: string }) =>\n [...tasks.values()].filter((row) => query.status === undefined || row.status === query.status)),\n };\n return { service, executions, tasks };\n}\n\nexport function createInMemoryCodingActorPlane(): InMemoryCodingActorPlane {\n const { service, executions, tasks } = buildExecutionsServiceDouble();\n // BOTH systems a build dispatch can run under, registered the way the startup assembly registers\n // them — so the driver's roster check is the production one for a coding run and a generation step.\n const systems = new Map<string, ActorSystem>([\n [APPLICATION_CODING_SYSTEM_REF, buildApplicationCodingActorSystemDefinitions().factoryMap[APPLICATION_CODING_SYSTEM_REF]!() as ActorSystem],\n [APPLICATION_BUILD_SYSTEM_REF, buildApplicationBuildActorSystemDefinitions().factoryMap[APPLICATION_BUILD_SYSTEM_REF]!() as ActorSystem],\n ]);\n const resolveSystem = (ref: string): ActorSystem => {\n const system = systems.get(ref);\n if (!system) throw new Error(`unregistered actor system ${ref}`);\n return system;\n };\n const actorsSystem = new ActorsSystemBackendService(\n { debugByType: () => () => undefined, setDebugTypeLogging: () => undefined, error: () => undefined, warn: () => undefined } as never,\n {\n buildError: (type: string, _cause: unknown, detail: { customMessageReference: string }) =>\n Object.assign(new Error(`${type}:${detail.customMessageReference}`), { customMessageReference: detail.customMessageReference }),\n } as never,\n { getSystemOrThrow: resolveSystem, getSystem: (ref: string) => systems.get(ref), getActors: () => [...systems.values()] } as never,\n {} as never,\n new CompanionActorExecutionPersistenceAdapter(service as never),\n );\n const only = (rows: Map<string, Row>, what: string): Row => {\n if (rows.size !== 1) throw new Error(`expected exactly one ${what}, found ${rows.size}`);\n return [...rows.values()][0]!;\n };\n return {\n executionsService: service,\n actorsSystem,\n executions,\n tasks,\n onlyTask: () => only(tasks, 'task'),\n onlyExecution: () => only(executions, 'execution'),\n };\n}\n\n/**\n * Give a dispatch service built with `Object.create(prototype)` what its constructor and field\n * initializers would have: the store, the engine driver over it, and the production reading of a\n * coding run's result.\n */\nexport function wireInMemoryCodingActorPlane(service: object, plane: InMemoryCodingActorPlane = createInMemoryCodingActorPlane()): InMemoryCodingActorPlane {\n Object.assign(service as Record<string, unknown>, {\n executionsService: plane.executionsService,\n actorsSystem: plane.actorsSystem,\n codingRunOptions: CODING_RUN_OPTIONS,\n });\n return plane;\n}\n\n/** Re-exported so a test asserting a waiting row does not import the engine enum for one member. */\nexport const WAITING_STATUS = FlowsActors_Status.AWAITING_APPROVAL;\n"]}
1
+ {"version":3,"file":"in-memory-coding-actor-plane.js","sourceRoot":"","sources":["../../../../../../../src/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAoB,MAAM,uBAAuB,CAAC;AAE1G,OAAO,EAAE,yCAAyC,EAAE,MAAM,+EAA+E,CAAC;AAC1I,OAAO,EACL,6BAA6B,EAC7B,4CAA4C,GAC7C,MAAM,sFAAsF,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,2CAA2C,EAAE,MAAM,+EAA+E,CAAC;AAC1K,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAenF,SAAS,4BAA4B;IACnC,MAAM,UAAU,GAAG,IAAI,GAAG,EAAe,CAAC;IAC1C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAe,CAAC;IACrC,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC,0BAA0B,CAAC;IAE7C,MAAM,OAAO,GAAG;QACd,oBAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAgC,EAAE,EAAE;YACrE,iBAAiB,IAAI,CAAC,CAAC;YACvB,MAAM,GAAG,GAAQ,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,QAAQ,iBAAiB,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,CAAC;YAC3H,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CA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G,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC,iBAAiB,CAAC","sourcesContent":["/**\n * The REAL engine execution driver and the REAL companion persistence adapter, over an in-memory\n * executions store — for tests of the coding lane (#1359).\n *\n * A coding run is an actor-system execution the engine opens, suspends, resumes and settles. Mocking\n * the driver would pin what the lane TELLS it and nothing about what then happens to the rows, and\n * mocking the adapter would hide the one place a driver move becomes a companion write. So both are\n * the production classes; only `CompanionExecutionsCompanionService` is a double — the same four\n * task methods the lane's tests always stubbed, plus the five execution methods the adapter calls,\n * with the one behaviour of the real service the driver depends on: a task created under an\n * execution appears in that execution's `standaloneTasks`.\n *\n * Every method is a `vi.fn`, so a test still asserts `createActorTask` / `updateActorTask` payloads\n * exactly as before — they are now what the ADAPTER wrote, which is what production writes.\n */\nimport { vi } from 'vitest';\nimport { ActorsSystemBackendService } from '@wildo-ai/saas-backend-lib';\nimport { ErrorCustomMessageReference, FlowsActors_Status, type ActorSystem } from '@wildo-ai/saas-models';\n\nimport { CompanionActorExecutionPersistenceAdapter } from '../../../../executions/services/companion-actor-execution-persistence.adapter';\nimport {\n APPLICATION_CODING_SYSTEM_REF,\n buildApplicationCodingActorSystemDefinitions,\n} from '../../../../meta-workflows/models/application-coding-agent.actors-system.definitions';\nimport { APPLICATION_BUILD_SYSTEM_REF, buildApplicationBuildActorSystemDefinitions } from '../../../../meta-workflows/models/application-build.actors-system.definitions';\nimport { CODING_RUN_OPTIONS } from '../../coding-agent-dispatch.companion.service';\n\ntype Row = Record<string, unknown> & { _id: string };\n\nexport interface InMemoryCodingActorPlane {\n readonly executionsService: ReturnType<typeof buildExecutionsServiceDouble>['service'];\n readonly actorsSystem: ActorsSystemBackendService;\n readonly executions: Map<string, Row>;\n readonly tasks: Map<string, Row>;\n /** The one task row a single-run test reads; throws when none was created. */\n onlyTask(): Row;\n /** The one execution row a single-run test reads; throws when none was created. */\n onlyExecution(): Row;\n}\n\nfunction buildExecutionsServiceDouble() {\n const executions = new Map<string, Row>();\n const tasks = new Map<string, Row>();\n let executionSequence = 0;\n let taskSequence = 0;\n const now = () => '2026-07-03T10:00:00.000Z';\n\n const service = {\n createActorExecution: vi.fn(async (payload: Record<string, unknown>) => {\n executionSequence += 1;\n const row: Row = { ...payload, _id: `exec-${executionSequence}`, standaloneTasks: [], createdAt: now(), updatedAt: now() };\n executions.set(row._id, row);\n return row;\n }),\n updateActorExecution: vi.fn(async (executionId: string, patch: Record<string, unknown>) => {\n const row = executions.get(executionId);\n if (!row) throw new Error(`no execution ${executionId}`);\n // `null` clears, absent leaves alone — assigning every PRESENT key is exactly that.\n Object.assign(row, patch);\n // As the real service: a non-terminal row keeps no finish instant (#1586 review N1).\n if (![FlowsActors_Status.COMPLETED, FlowsActors_Status.FAILED, FlowsActors_Status.CANCELLED, FlowsActors_Status.ABORTED].includes(row['status'] as FlowsActors_Status)) delete row['finishedAt'];\n return row;\n }),\n /*\n * The real service's compare-and-swap (#1586): moves the row only while it still waits on\n * `expected`, and answers `null` — writing nothing — otherwise. No `await` between the check and\n * the write, so no other call interleaves, as the one guarded statement guarantees in production.\n */\n updateSuspendedActorExecution: vi.fn(async (executionId: string, expected: { suspensionId?: string; suspendedAt: string }, patch: Record<string, unknown>) => {\n const row = executions.get(executionId);\n const waiting = row?.['suspension'] as { suspensionId?: string; suspendedAt?: string } | null | undefined;\n if (!row || row['status'] !== FlowsActors_Status.AWAITING_APPROVAL || !waiting) return null;\n const matches = expected.suspensionId !== undefined ? waiting.suspensionId === expected.suspensionId : waiting.suspendedAt === expected.suspendedAt;\n if (!matches) return null;\n Object.assign(row, patch);\n if (![FlowsActors_Status.COMPLETED, FlowsActors_Status.FAILED, FlowsActors_Status.CANCELLED, FlowsActors_Status.ABORTED].includes(row['status'] as FlowsActors_Status)) delete row['finishedAt'];\n return row;\n }),\n getActorExecution: vi.fn(async (executionId: string) => {\n const row = executions.get(executionId);\n if (!row) throw new Error(`no execution ${executionId}`);\n return row;\n }),\n // Both filters optional, newest first, trimmed to `limit` — the real service's list.\n listActorExecutions: vi.fn(async (query: { systemRef?: string; status?: string; limit?: number }) =>\n [...executions.values()]\n .filter((row) => (query.systemRef === undefined || row.systemRef === query.systemRef) && (query.status === undefined || row.status === query.status))\n .reverse()\n .slice(0, query.limit ?? 50)),\n createActorTask: vi.fn(async (payload: Record<string, unknown>) => {\n taskSequence += 1;\n const row: Row = {\n ...payload,\n _id: `task-${taskSequence}`,\n organizationId: 'org-1',\n wildoApplicationId: 'app-1',\n createdAt: now(),\n updatedAt: now(),\n };\n tasks.set(row._id, row);\n const executionId = payload.wildoApplicationActorSystemExecutionId;\n if (typeof executionId === 'string') {\n (executions.get(executionId)?.standaloneTasks as Row[] | undefined)?.push(row);\n }\n return row;\n }),\n updateActorTask: vi.fn(async (taskId: string, patch: Record<string, unknown>) => {\n const row = tasks.get(taskId);\n if (!row) throw new Error(`no task ${taskId}`);\n Object.assign(row, patch);\n return row;\n }),\n getActorTask: vi.fn(async (taskId: string) => {\n const row = tasks.get(taskId);\n // As the companion's executions service reports it, so a reader can tell \"no such task\" from a failed read.\n if (!row) throw Object.assign(new Error('not found'), { customMessageReference: ErrorCustomMessageReference.NOT_FOUND });\n return row;\n }),\n listActorTasks: vi.fn(async (query: { status?: string }) =>\n [...tasks.values()].filter((row) => query.status === undefined || row.status === query.status)),\n };\n return { service, executions, tasks };\n}\n\nexport function createInMemoryCodingActorPlane(): InMemoryCodingActorPlane {\n const { service, executions, tasks } = buildExecutionsServiceDouble();\n // BOTH systems a build dispatch can run under, registered the way the startup assembly registers\n // them — so the driver's roster check is the production one for a coding run and a generation step.\n const systems = new Map<string, ActorSystem>([\n [APPLICATION_CODING_SYSTEM_REF, buildApplicationCodingActorSystemDefinitions().factoryMap[APPLICATION_CODING_SYSTEM_REF]!() as ActorSystem],\n [APPLICATION_BUILD_SYSTEM_REF, buildApplicationBuildActorSystemDefinitions().factoryMap[APPLICATION_BUILD_SYSTEM_REF]!() as ActorSystem],\n ]);\n const resolveSystem = (ref: string): ActorSystem => {\n const system = systems.get(ref);\n if (!system) throw new Error(`unregistered actor system ${ref}`);\n return system;\n };\n const actorsSystem = new ActorsSystemBackendService(\n { debugByType: () => () => undefined, setDebugTypeLogging: () => undefined, error: () => undefined, warn: () => undefined } as never,\n {\n buildError: (type: string, _cause: unknown, detail: { customMessageReference: string }) =>\n Object.assign(new Error(`${type}:${detail.customMessageReference}`), { customMessageReference: detail.customMessageReference }),\n } as never,\n { getSystemOrThrow: resolveSystem, getSystem: (ref: string) => systems.get(ref), getActors: () => [...systems.values()] } as never,\n {} as never,\n new CompanionActorExecutionPersistenceAdapter(service as never),\n );\n const only = (rows: Map<string, Row>, what: string): Row => {\n if (rows.size !== 1) throw new Error(`expected exactly one ${what}, found ${rows.size}`);\n return [...rows.values()][0]!;\n };\n return {\n executionsService: service,\n actorsSystem,\n executions,\n tasks,\n onlyTask: () => only(tasks, 'task'),\n onlyExecution: () => only(executions, 'execution'),\n };\n}\n\n/**\n * Give a dispatch service built with `Object.create(prototype)` what its constructor and field\n * initializers would have: the store, the engine driver over it, and the production reading of a\n * coding run's result.\n */\nexport function wireInMemoryCodingActorPlane(service: object, plane: InMemoryCodingActorPlane = createInMemoryCodingActorPlane()): InMemoryCodingActorPlane {\n Object.assign(service as Record<string, unknown>, {\n executionsService: plane.executionsService,\n actorsSystem: plane.actorsSystem,\n codingRunOptions: CODING_RUN_OPTIONS,\n });\n return plane;\n}\n\n/** Re-exported so a test asserting a waiting row does not import the engine enum for one member. */\nexport const WAITING_STATUS = FlowsActors_Status.AWAITING_APPROVAL;\n"]}
@@ -2,6 +2,7 @@ import type { LoggerService } from '@wildo-ai/saas-backend-lib';
2
2
  import type { CompanionContext } from '../../core/context/companion-context';
3
3
  import { PlaybookRunWriteRegisterCompanionService } from '../../meta-workflows/services/playbook-run-write-register.companion.service';
4
4
  import { CodingRunWriteRegisterCompanionService } from './coding-run-write-register.companion.service';
5
+ import type { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';
5
6
  /**
6
7
  * WHO accepted — written into the commit message, because a commit the system made and a commit a
7
8
  * person made are different facts, and the history is the only record of either
@@ -13,22 +14,32 @@ export declare enum AcceptOrigin {
13
14
  /** The dispatch loop, because the autonomy posture maps a run's result to notify-and-proceed. */
14
15
  AUTONOMY_POSTURE = "autonomy_posture",
15
16
  /**
16
- * The end of a parallel build wave (#1528), under the same posture, with `force`. The one caller
17
- * that widens what is committed, and why: runs sharing one tree by decision make "already dirty
18
- * at the run's baseline" and "edited since the run" the NORMAL case — they are siblings in the
19
- * wave, not a person's session. Called only when every run of the wave has settled, so the tree
20
- * holds the wave's merged result; and a path another lane produced is still never committed.
17
+ * The end of a parallel build wave, or of any SHARING EPISODE (#1528, #1805), under the same posture,
18
+ * with `force`: runs sharing one tree by decision make "already dirty at the run's baseline", "edited
19
+ * since the run" and "not claimed" the NORMAL case. Called only when nothing of the episode still
20
+ * writes, so the tree holds its merged result; committed as ONE change naming every run it may carry,
21
+ * never under one run's name; and a path another lane produced is still never committed.
21
22
  */
22
23
  WAVE_RECONCILIATION = "wave_reconciliation",
23
24
  /**
24
25
  * A coding run the companion stopped under, at the next start, under the same posture, with
25
- * `force`. Nobody is left to accept its writes: the run is settled INTERRUPTED_REQUIRES_REVIEW, and
26
+ * `force` — alone only as the sole known writer of its window, otherwise with every run it may have
27
+ * shared the tree with, writer unknown (#1805). Nobody is left to accept its writes: the run is settled INTERRUPTED_REQUIRES_REVIEW, and
26
28
  * its retry finds them already in the tree and cannot claim them (they were dirty at ITS baseline).
27
29
  * Measured 2026-09-24 on scratch-journey: an interrupted user-menu placement left
28
30
  * `app-shell.config.ts` dirty, and every shell surface that file carries stopped landing.
29
31
  */
30
32
  INTERRUPTED_RUN_RECOVERY = "interrupted_run_recovery"
31
33
  }
34
+ /**
35
+ * Who took a DECISION recorded in a specification file (#1609): the creator, or the agent acting in their
36
+ * conversation. Under the automatic posture the companion AUTHORS every such commit, so this trailer is the
37
+ * only place the difference survives.
38
+ */
39
+ export declare enum DecisionRecordActor {
40
+ CREATOR = "creator",
41
+ AGENT = "agent"
42
+ }
32
43
  export declare enum AcceptRefusalReason {
33
44
  /** Already dirty when the run started: the file may carry another session's hunks beside the run's. */
34
45
  CARRIES_CHANGES_FROM_BEFORE_THE_RUN = "carries_changes_from_before_the_run",
@@ -38,8 +49,8 @@ export declare enum AcceptRefusalReason {
38
49
  NOT_THIS_RUN = "not_this_run",
39
50
  /**
40
51
  * The run shared the tree with others (#1528) and has no evidence of its own that it wrote this path:
41
- * it may be a sibling's. Left for that sibling's accept, or for the end-of-wave reconciliation, whose
42
- * force commits the wave's merged result under its own origin.
52
+ * it may be a sibling's. Left for that sibling's accept, or for the shared-tree reconciliation, which
53
+ * commits what the runs left as ONE change naming every run whose writes it may carry (#1805).
43
54
  */
44
55
  NOT_CLAIMED_BY_THE_RUN = "not_claimed_by_the_run"
45
56
  }
@@ -65,6 +76,25 @@ export declare class NothingToAcceptError extends Error {
65
76
  readonly reason: AcceptRefusalReason;
66
77
  }[]);
67
78
  }
79
+ /**
80
+ * A PERSON's acceptance refused because a coding worker is writing the same tree right now. 409: the
81
+ * request is fine, the moment is not — accept again once the run settles.
82
+ *
83
+ * A commit inside a live run's window destroys its attribution (the run's baseline no longer matches
84
+ * HEAD, so what it wrote can no longer be told apart from what the commit carried), and it can sweep in a
85
+ * file the worker is halfway through. The console's commands said "never commit while a dispatch runs"
86
+ * as prose only, which a model may skip and a person at the workbench never read.
87
+ */
88
+ export declare class CodingRunWritingTheTreeError extends Error {
89
+ readonly liveRuns: readonly {
90
+ readonly executionId: string;
91
+ readonly taskRef: string | null;
92
+ }[];
93
+ constructor(liveRuns: readonly {
94
+ readonly executionId: string;
95
+ readonly taskRef: string | null;
96
+ }[]);
97
+ }
68
98
  export declare class AcceptedChangeCommitError extends Error {
69
99
  readonly stderr: string;
70
100
  constructor(message: string, stderr: string);
@@ -74,8 +104,16 @@ export declare class AcceptedChangeCommitCompanionService {
74
104
  private readonly companionContext;
75
105
  private readonly codingRunWrites;
76
106
  private readonly playbookRunWrites;
107
+ private readonly executions;
77
108
  private readonly logDebug;
78
- constructor(logger: LoggerService, companionContext: CompanionContext, codingRunWrites: CodingRunWriteRegisterCompanionService, playbookRunWrites: PlaybookRunWriteRegisterCompanionService);
109
+ constructor(logger: LoggerService, companionContext: CompanionContext, codingRunWrites: CodingRunWriteRegisterCompanionService, playbookRunWrites: PlaybookRunWriteRegisterCompanionService, executions: Pick<CompanionExecutionsCompanionService, 'listActorExecutions'>);
110
+ /**
111
+ * A PERSON's acceptance waits for the tree to be quiet; the automatic origins do not ask. They run from
112
+ * inside the coding dispatch's own window (at a baseline, at the end of a wave, at recovery), where the
113
+ * run being accepted is the one holding it — refusing them would refuse the dispatch its own commit.
114
+ * Read from the actor plane, so a run another process started is seen too.
115
+ */
116
+ private refuseWhileACodingRunWrites;
79
117
  /** Accept the latest recorded coding run of a build-plan task. `subject` is the task's objective, for the message. */
80
118
  acceptCodingRun(input: {
81
119
  readonly taskRef: string;
@@ -84,6 +122,90 @@ export declare class AcceptedChangeCommitCompanionService {
84
122
  /** Defaults to OPERATOR: the workbench predates the loop, and an unstated origin must not read as automatic. */
85
123
  readonly origin?: AcceptOrigin;
86
124
  }): Promise<AcceptedChangeCommitOutcome>;
125
+ /**
126
+ * Commit what runs that SHARED the working tree left uncommitted as ONE change, naming every run whose
127
+ * writes it may carry (#1805). The two origins that may ask: the end of a parallel build wave, and the
128
+ * recovery of runs a restart interrupted.
129
+ *
130
+ * ## Why one commit, and not one per run
131
+ *
132
+ * Runs in one tree each capture everything that moved since their own baseline, so every capture holds
133
+ * siblings' writes. A run's CLAIMS (the file locations its agent reported) separate them only where an
134
+ * agent reports; an agent writing through a shell reports nothing, so a missing claim says nothing
135
+ * about who wrote a file (measured 2026-09-27: a run whose capture was entirely a failed sibling's files
136
+ * claimed none of them, and the per-task reconciliation committed them under its name). A run a restart
137
+ * interrupted has no claims at all — they were held in memory. So once a run's own accept has taken
138
+ * what it claimed, what remains in the tree cannot be attributed, and this does not pretend to: one
139
+ * commit, "writer unknown", naming every recorded run that may carry one of its files, failed runs included
140
+ * (Paul, #1805: "one commit that names every run whose writes it may carry, failed ones included").
141
+ *
142
+ * ## What is committed
143
+ *
144
+ * The union of each run's paths this door can accept under FORCE — never one the run's capture proves
145
+ * is not its (a parallel commit, another lane, outside the application) — restricted to the paths STILL
146
+ * UNCOMMITTED now. A path already at HEAD was committed by its run's own accept and needs nothing, and a
147
+ * run whose paths are all at HEAD contributes nothing here: it is neither named nor marked. That also
148
+ * means nothing is ever "already committed" here: with no uncommitted path there is nothing to accept.
149
+ */
150
+ acceptSharedTreeRunsTogether(input: {
151
+ /** The runs' task ids — the write register's keys, so two runs of one task stay two. */
152
+ readonly taskIds: readonly string[];
153
+ readonly origin: AcceptOrigin.WAVE_RECONCILIATION | AcceptOrigin.INTERRUPTED_RUN_RECOVERY;
154
+ }): Promise<AcceptedChangeCommitOutcome & {
155
+ readonly taskIds: readonly string[];
156
+ }>;
157
+ /**
158
+ * Which recorded runs may carry which paths' current changes (#1805), answered for a whole set of paths at
159
+ * once. A run may carry a path when its capture holds the path as its OWN (never as a parallel commit's,
160
+ * another lane's, or outside the application) and no commit THIS LANE made since that capture touched the
161
+ * path.
162
+ *
163
+ * Only this lane's commits end it, because only they are known to take the WHOLE working file: every one is
164
+ * a pathspec commit of the file as it stands, so what the run left in it is then in history, or was
165
+ * overwritten before (#1805 review 6 G1). They are recognised by the trailer KEYS this service writes
166
+ * (`LANE_COMMIT_TRAILERS`). Another author's commit proves nothing either way: a temporary-index commit or
167
+ * `git add -p` can take their own hunk and leave the run's in the working tree, so the run stays "may", as
168
+ * the rule says. So does a run whose version a person threw away without a commit (review 5 L3). Both
169
+ * over-name, which is the direction the rule accepts, and the bytes test in the caller still commits a path
170
+ * only when its current state is one a run left.
171
+ *
172
+ * Known limit — this can UNDER-name when a commit carrying a lane key was NOT made against the file as it
173
+ * stood after the capture, yet sits after it in history (reviews 7 I3, 8 L1). Two shapes: a person's commit
174
+ * that COPIES a lane trailer (`commit -c`/`-C` of a lane commit, an `--amend` of one with partial staging, a
175
+ * squash), and a lane commit made BEFORE the capture and re-attached after it (`reset --soft` back, the run,
176
+ * `reset --soft` forward; a stash and cherry-pick around a run). The second is closed wherever the clock
177
+ * can tell: a lane commit whose committer second is EARLIER than the capture's second ends no claim. That
178
+ * can only over-name, and a commit in the capture's own second still counts, so the review 5 F1 objection
179
+ * to clocks does not arise. What remains is a copied trailer, or a re-attached commit within the capture's
180
+ * second. `revert` copies no trailer and `cherry-pick` refuses over dirty files.
181
+ *
182
+ * "Since that capture" is HISTORY ORDER, never a clock (review 5 F1): a commit's `%ct` is whole seconds,
183
+ * and a run's own accept usually lands within the second of its capture. And it is the DESCENDANTS of the
184
+ * record's post-run HEAD (`--ancestry-path <postRunHeadSha>..HEAD`), not merely what that HEAD cannot reach
185
+ * (review 7 M1): after a rebase or a branch switch that carries the dirty files across, lane commits made
186
+ * BEFORE the capture are rewritten into the plain range with their trailers intact, and would end a claim
187
+ * on lines still uncommitted. With the ancestry path a rewritten history counts nothing, and its runs stay
188
+ * named. A post-run HEAD git cannot resolve is no evidence either way, so its runs are kept too. Renames
189
+ * are not followed (`--no-renames`), so a moved file is listed under both its names.
190
+ *
191
+ * One `git log` per distinct post-run HEAD, over only the paths asked about (review 6 C1): the query runs
192
+ * under the workspace lock and at every companion start, and one per path per record was minutes on a
193
+ * register a few days old.
194
+ */
195
+ private carryTest;
196
+ /**
197
+ * Whether a run is NOT the sole known writer of what it left (#1805 review 5 F2): some OTHER recorded run
198
+ * may carry one of its still-uncommitted paths. Asked by restart recovery before it commits a lone
199
+ * interrupted run under its own name — the same test the shared-tree door names runs by, so the two cannot
200
+ * disagree about who may have written a file.
201
+ */
202
+ anotherRunMayCarry(taskId: string): Promise<boolean>;
203
+ /**
204
+ * Which of these paths differ from HEAD right now — modified, deleted, or new and untracked. Read from
205
+ * `git status` rather than from the register, because what the register recorded may since have been
206
+ * committed by the run's own accept.
207
+ */
208
+ private uncommittedAmong;
87
209
  /** Accept a playbook run's writes, from its register: the same divergence test `revert` applies. */
88
210
  acceptPlaybookRun(input: {
89
211
  readonly runId: string;
@@ -106,12 +228,18 @@ export declare class AcceptedChangeCommitCompanionService {
106
228
  * **Oldest first, and superseded writes are refused, not errors.** A later run that rewrote a file
107
229
  * makes an earlier run's copy `diverged`, so the earlier run is refused for that path and the later
108
230
  * one commits it. A run whose every path was superseded throws `NothingToAcceptError`, which is
109
- * counted here, not raised. Records whose paths already match HEAD are stamped with no new commit,
231
+ * counted here, not raised.
232
+ *
233
+ * **Superseded is counted apart from edited (#1614).** A later RUN that rewrote the path read this
234
+ * run's landing first, or merged into it: the landing refuses to replace a file that moved since the
235
+ * run read it, so a later run can no longer discard an earlier one. A path no later run wrote was
236
+ * changed by a person or a tool, and that is reported as `editedOutsideRuns`, not as superseded. Records whose paths already match HEAD are stamped with no new commit,
110
237
  * which is how the unstamped backlog of a run carried by hand is absorbed on the first pass.
111
238
  */
112
239
  acceptPendingPlaybookRuns(origin: AcceptOrigin): Promise<{
113
240
  readonly accepted: number;
114
241
  readonly superseded: number;
242
+ readonly editedOutsideRuns: number;
115
243
  readonly failed: number;
116
244
  }>;
117
245
  /**
@@ -122,9 +250,29 @@ export declare class AcceptedChangeCommitCompanionService {
122
250
  /**
123
251
  * `git add -- <paths>` then `git commit -F <message> -- <paths>`. A deleted path is staged as a
124
252
  * removal by the same `add`. When the paths are already identical to HEAD there is nothing to
125
- * commit, and that is answered as `alreadyCommitted` with HEAD's sha rather than as a failure.
253
+ * commit, and that is answered as `alreadyCommitted` with the commit that last changed those paths rather than as a failure.
126
254
  */
127
255
  private commitPaths;
256
+ /**
257
+ * Commit a DECISION the creator (or their agent) just recorded in a specification file, at the moment it
258
+ * is recorded (#1609): opening a playbook instance is a decision about product scope, and a decision that
259
+ * lives only as a working edit is lost to a checkout and invisible to a re-clone.
260
+ *
261
+ * The caller holds the workspace lock around the write and this commit, so no coding run's baseline can
262
+ * see the file half-recorded. The message carries the purpose and the actor as trailers
263
+ * (`Wildo-Purpose:`, `Wildo-Actor:`), because the author is the companion under the automatic posture.
264
+ */
265
+ commitDecisionRecord(input: {
266
+ readonly paths: readonly string[];
267
+ /** One line: what was decided. */
268
+ readonly summary: string;
269
+ readonly purpose: string;
270
+ readonly actor: DecisionRecordActor;
271
+ readonly origin: AcceptOrigin;
272
+ }): Promise<Omit<AcceptedChangeCommitOutcome, 'refusedPaths' | 'message'> & {
273
+ readonly commitSha: string;
274
+ readonly message: string;
275
+ }>;
128
276
  /** `git -C <saasRoot> <args>` — argv array, never a shell; the subcommand MUST be in the allow-list. */
129
277
  private execGit;
130
278
  }
@@ -1 +1 @@
1
- {"version":3,"file":"accepted-change-commit.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/claude-cli/services/accepted-change-commit.companion.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,wCAAwC,EAAE,MAAM,6EAA6E,CAAC;AAEvI,OAAO,EAAE,sCAAsC,EAAwC,MAAM,+CAA+C,CAAC;AAmD7I;;;;GAIG;AACH,oBAAY,YAAY;IACtB,gDAAgD;IAChD,QAAQ,aAAa;IACrB,iGAAiG;IACjG,gBAAgB,qBAAqB;IACrC;;;;;;OAMG;IACH,mBAAmB,wBAAwB;IAC3C;;;;;;OAMG;IACH,wBAAwB,6BAA6B;CACtD;AA6BD,oBAAY,mBAAmB;IAC7B,uGAAuG;IACvG,mCAAmC,wCAAwC;IAC3E,iDAAiD;IACjD,oBAAoB,yBAAyB;IAC7C,sGAAsG;IACtG,YAAY,iBAAiB;IAC7B;;;;OAIG;IACH,sBAAsB,2BAA2B;CAClD;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAA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K,CAAC,EAAE,OAAO,CAAC;QACzB,gHAAgH;QAChH,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;KAChC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA4CxC,oGAAoG;IACvF,iBAAiB,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA6BjK;;;;;;;;;;;;;;;;;;OAkBG;IACU,yBAAyB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAwB1J;;;OAGG;YACW,sBAAsB;IAmCpC;;;;OAIG;YACW,WAAW;IAqBzB,wGAAwG;YAC1F,OAAO;CAuBtB"}
1
+ {"version":3,"file":"accepted-change-commit.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/claude-cli/services/accepted-change-commit.companion.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAA6B,wCAAwC,EAAE,MAAM,6EAA6E,CAAC;AAElK,OAAO,EAAE,sCAAsC,EAAwC,MAAM,+CAA+C,CAAC;AAE7I,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AA4D5H;;;;GAIG;AACH,oBAAY,YAAY;IACtB,gDAAgD;IAChD,QAAQ,aAAa;IACrB,iGAAiG;IACjG,gBAAgB,qBAAqB;IACrC;;;;;;OAMG;IACH,mBAAmB,wBAAw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