@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
@@ -18,9 +18,10 @@ import { promisify } from 'node:util';
18
18
  import { inject, injectable } from 'inversify';
19
19
  import { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';
20
20
  import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
21
- import { PlaybookRunWriteRegisterCompanionService } from '../../meta-workflows/services/playbook-run-write-register.companion.service.js';
22
- import { ChangeSetAttributionClass } from '../models/coding-agent-dispatch.models.js';
21
+ import { PlaybookRunFileSuccession, PlaybookRunWriteRegisterCompanionService } from '../../meta-workflows/services/playbook-run-write-register.companion.service.js';
22
+ import { ChangeSetAttributionClass, ChangeSetFileChangeKind, isAttributedToAnotherWriter } from '../models/coding-agent-dispatch.models.js';
23
23
  import { CodingRunWriteRegisterCompanionService, sha256Hex } from './coding-run-write-register.companion.service.js';
24
+ import { listInFlightCodingRuns } from './in-flight-coding-runs.companion.js';
24
25
  const execFileAsync = promisify(execFile);
25
26
  /**
26
27
  * ACCEPTANCE as a commit, from the workbench (#1454, Step 7).
@@ -31,23 +32,27 @@ const execFileAsync = promisify(execFile);
31
32
  * `GitChangeSetCompanionService` is a documented READ-ONLY carve-out. This service is the second,
32
33
  * WRITE-shaped carve-out, and it is narrower than the first in every dimension that matters:
33
34
  *
34
- * - **Two subcommands, pathspec-bounded.** `git add -- <paths>` and `git commit -F <msg> -- <paths>`,
35
- * where `<paths>` is exactly what a run's write register names. Never `add -A`, never `commit -a`,
36
- * never a path the register does not hold. The subcommand allow-list is a guard, not documentation:
37
- * `execGit` refuses anything else before spawning, as the read-only service's does.
38
- * - **On a person's word, or on the posture's.** Two callers and no third: the workbench `accept`
39
- * operations (a person, per run), and the coding dispatch loop when a run concluded with a working
35
+ * - **Two WRITE subcommands, pathspec-bounded.** `git add -- <paths>` and `git commit -F <msg> -- <paths>`,
36
+ * where `<paths>` is exactly what a run's write register names, taken literally. Never `add -A`, never
37
+ * `commit -a`, never a path the register does not hold. The subcommand allow-list is a guard, not
38
+ * documentation: `execGit` refuses anything else before spawning, as the read-only service's does; the
39
+ * other subcommands on it only read.
40
+ * - **On a person's word, or on the posture's.** The workbench `accept` operations (a person, per run);
41
+ * the coding dispatch loop when a run concluded with a working
40
42
  * result AND `laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, APPROVE_RESULT)` says
41
43
  * notify-and-proceed — the YOLO posture `one-source-of-truth.md` D5 records: *"the system commits,
42
44
  * the human is notified and can override."* Under GUIDED the loop does not call it and acceptance
43
45
  * stays the person's. Until #1534 only the first caller existed, so the decided posture was not the
44
46
  * one the lane ran under: an unattended run stopped after its first task, and the 2026-09-23 run
45
- * was carried by an operator's shell loop running `git add -A` between dispatches.
47
+ * was carried by an operator's shell loop running `git add -A` between dispatches. And, for runs that
48
+ * SHARED the tree, the two automatic origins of `acceptSharedTreeRunsTogether` (#1805): the end of a
49
+ * sharing episode or a parallel wave, and restart recovery.
46
50
  * - **The posture never widens what is committed.** The loop calls with no `force`, so every refusal
47
51
  * below applies to it exactly as to a person — a path it cannot vouch for stays uncommitted, the
48
52
  * task stays unlanded, and the refusal is on the record.
49
- * ONE exception, named and scoped: `AcceptOrigin.WAVE_RECONCILIATION`, at the end of a parallel
50
- * build wave (#1528), where siblings sharing the tree make those refusals the normal case. See it.
53
+ * The exceptions are named and scoped: `WAVE_RECONCILIATION` and `INTERRUPTED_RUN_RECOVERY`, where
54
+ * siblings sharing the tree, or an interruption, make those refusals the normal case — and even they
55
+ * commit only a state some named run left, as ONE change naming every run it may carry. See them.
51
56
  * - **It refuses what it cannot vouch for, by name.** A path that was already dirty at the run's
52
57
  * baseline may carry another session's hunks (`BASELINE_DIRTY_AMBIGUOUS`); a path whose bytes are
53
58
  * no longer what the run left was edited since; a path a parallel commit or another lane produced
@@ -64,8 +69,13 @@ const execFileAsync = promisify(execFile);
64
69
  * this repository follows when files carry foreign hunks. The message names the run, so
65
70
  * `git log -S` and a reader both find why the change exists.
66
71
  */
67
- /** The complete WRITE subset this service may invoke — the only git writes in the companion. */
68
- const ACCEPT_GIT_SUBCOMMANDS = new Set(['add', 'commit', 'rev-parse', 'diff']);
72
+ /**
73
+ * Every git subcommand this service may invoke. The WRITES (`add`, `commit`) are the only git writes in the
74
+ * companion; the rest only read. `status` and `log` read too (#1805): which of a set of paths still differ
75
+ * from HEAD, and which commit last changed them. Neither stages, commits or moves a ref, and `status` runs
76
+ * with optional locks off, so it does not even refresh the index's stat cache.
77
+ */
78
+ const ACCEPT_GIT_SUBCOMMANDS = new Set(['add', 'commit', 'rev-parse', 'diff', 'status', 'log']);
69
79
  const GIT_TIMEOUT_MS = 60_000;
70
80
  /**
71
81
  * WHO accepted — written into the commit message, because a commit the system made and a commit a
@@ -79,22 +89,33 @@ export var AcceptOrigin;
79
89
  /** The dispatch loop, because the autonomy posture maps a run's result to notify-and-proceed. */
80
90
  AcceptOrigin["AUTONOMY_POSTURE"] = "autonomy_posture";
81
91
  /**
82
- * The end of a parallel build wave (#1528), under the same posture, with `force`. The one caller
83
- * that widens what is committed, and why: runs sharing one tree by decision make "already dirty
84
- * at the run's baseline" and "edited since the run" the NORMAL case — they are siblings in the
85
- * wave, not a person's session. Called only when every run of the wave has settled, so the tree
86
- * holds the wave's merged result; and a path another lane produced is still never committed.
92
+ * The end of a parallel build wave, or of any SHARING EPISODE (#1528, #1805), under the same posture,
93
+ * with `force`: runs sharing one tree by decision make "already dirty at the run's baseline", "edited
94
+ * since the run" and "not claimed" the NORMAL case. Called only when nothing of the episode still
95
+ * writes, so the tree holds its merged result; committed as ONE change naming every run it may carry,
96
+ * never under one run's name; and a path another lane produced is still never committed.
87
97
  */
88
98
  AcceptOrigin["WAVE_RECONCILIATION"] = "wave_reconciliation";
89
99
  /**
90
100
  * A coding run the companion stopped under, at the next start, under the same posture, with
91
- * `force`. Nobody is left to accept its writes: the run is settled INTERRUPTED_REQUIRES_REVIEW, and
101
+ * `force` — alone only as the sole known writer of its window, otherwise with every run it may have
102
+ * shared the tree with, writer unknown (#1805). Nobody is left to accept its writes: the run is settled INTERRUPTED_REQUIRES_REVIEW, and
92
103
  * its retry finds them already in the tree and cannot claim them (they were dirty at ITS baseline).
93
104
  * Measured 2026-09-24 on scratch-journey: an interrupted user-menu placement left
94
105
  * `app-shell.config.ts` dirty, and every shell surface that file carries stopped landing.
95
106
  */
96
107
  AcceptOrigin["INTERRUPTED_RUN_RECOVERY"] = "interrupted_run_recovery";
97
108
  })(AcceptOrigin || (AcceptOrigin = {}));
109
+ /**
110
+ * Who took a DECISION recorded in a specification file (#1609): the creator, or the agent acting in their
111
+ * conversation. Under the automatic posture the companion AUTHORS every such commit, so this trailer is the
112
+ * only place the difference survives.
113
+ */
114
+ export var DecisionRecordActor;
115
+ (function (DecisionRecordActor) {
116
+ DecisionRecordActor["CREATOR"] = "creator";
117
+ DecisionRecordActor["AGENT"] = "agent";
118
+ })(DecisionRecordActor || (DecisionRecordActor = {}));
98
119
  /**
99
120
  * Who AUTHORS an automatic acceptance: the companion, never the person whose machine it runs on.
100
121
  *
@@ -114,11 +135,26 @@ const ACCEPT_ORIGIN_AUTHOR = {
114
135
  [AcceptOrigin.WAVE_RECONCILIATION]: 'Wildo development companion <dev-companion@wildo.invalid>',
115
136
  [AcceptOrigin.INTERRUPTED_RUN_RECOVERY]: 'Wildo development companion <dev-companion@wildo.invalid>',
116
137
  };
138
+ /**
139
+ * The trailers this service writes, and by which its own commits are recognised later. Every commit this
140
+ * service makes goes through `commitPaths`, a pathspec commit of the files as they stand, and carries one of
141
+ * these as its last paragraph: a coding run's accept or a joint commit, a playbook run's accept, a recorded
142
+ * decision. So a commit carrying one took the whole working file, which is what lets the may-carry test end
143
+ * a run's claim on a path (#1805 review 6 G1). Recognised by KEY, never by value (review 7 L1).
144
+ */
145
+ const CODING_RUN_TRAILER = 'Wildo-Coding-Run';
146
+ const PLAYBOOK_RUN_TRAILER = 'Wildo-Playbook-Run';
147
+ const DECISION_PURPOSE_TRAILER = 'Wildo-Purpose';
148
+ const LANE_COMMIT_TRAILERS = [CODING_RUN_TRAILER, PLAYBOOK_RUN_TRAILER, DECISION_PURPOSE_TRAILER];
149
+ /** The separators the may-carry query's `--format` emits (`%x1e`, `%x1c`, `%x1d`): a commit's start, the end of its committer second, the end of its trailers. */
150
+ const COMMIT_MARK = '\x1e';
151
+ const TIME_END = '\x1c';
152
+ const TRAILERS_END = '\x1d';
117
153
  const ACCEPT_ORIGIN_SENTENCE = {
118
154
  [AcceptOrigin.OPERATOR]: 'Accepted from the Wildo workbench',
119
155
  [AcceptOrigin.AUTONOMY_POSTURE]: 'Accepted automatically under the application-creation autonomy posture (the system commits; the creator is notified and can revert)',
120
- [AcceptOrigin.WAVE_RECONCILIATION]: 'Reconciled at the end of a parallel build wave under the autonomy posture (runs shared the tree, so the wave\'s merged result is committed; the creator can revert)',
121
- [AcceptOrigin.INTERRUPTED_RUN_RECOVERY]: 'Recovered at companion start under the autonomy posture: a coding run was interrupted by a restart, and what it had written is committed so its retry continues from it (the creator can revert)',
156
+ [AcceptOrigin.WAVE_RECONCILIATION]: 'Reconciled once the runs sharing the working tree had settled — the end of a parallel build wave or of a sharing episode — under the autonomy posture (their merged result is committed; the creator can revert)',
157
+ [AcceptOrigin.INTERRUPTED_RUN_RECOVERY]: 'Recovered at companion start under the autonomy posture: work a restart interrupted is committed so its retry continues from it (the creator can revert)',
122
158
  };
123
159
  export var AcceptRefusalReason;
124
160
  (function (AcceptRefusalReason) {
@@ -130,8 +166,8 @@ export var AcceptRefusalReason;
130
166
  AcceptRefusalReason["NOT_THIS_RUN"] = "not_this_run";
131
167
  /**
132
168
  * The run shared the tree with others (#1528) and has no evidence of its own that it wrote this path:
133
- * it may be a sibling's. Left for that sibling's accept, or for the end-of-wave reconciliation, whose
134
- * force commits the wave's merged result under its own origin.
169
+ * it may be a sibling's. Left for that sibling's accept, or for the shared-tree reconciliation, which
170
+ * commits what the runs left as ONE change naming every run whose writes it may carry (#1805).
135
171
  */
136
172
  AcceptRefusalReason["NOT_CLAIMED_BY_THE_RUN"] = "not_claimed_by_the_run";
137
173
  })(AcceptRefusalReason || (AcceptRefusalReason = {}));
@@ -144,6 +180,25 @@ export class NothingToAcceptError extends Error {
144
180
  this.name = 'NothingToAcceptError';
145
181
  }
146
182
  }
183
+ /**
184
+ * A PERSON's acceptance refused because a coding worker is writing the same tree right now. 409: the
185
+ * request is fine, the moment is not — accept again once the run settles.
186
+ *
187
+ * A commit inside a live run's window destroys its attribution (the run's baseline no longer matches
188
+ * HEAD, so what it wrote can no longer be told apart from what the commit carried), and it can sweep in a
189
+ * file the worker is halfway through. The console's commands said "never commit while a dispatch runs"
190
+ * as prose only, which a model may skip and a person at the workbench never read.
191
+ */
192
+ export class CodingRunWritingTheTreeError extends Error {
193
+ liveRuns;
194
+ constructor(liveRuns) {
195
+ super(`A coding run is writing the application's tree right now (${liveRuns.map((run) => run.taskRef ?? run.executionId).join(', ')}). `
196
+ + 'Accepting now would commit around its work and break what it records as its own. Accept again once it has settled '
197
+ + '(`wildo creation feed --follow --exit-on-change` says when).');
198
+ this.liveRuns = liveRuns;
199
+ this.name = 'CodingRunWritingTheTreeError';
200
+ }
201
+ }
147
202
  export class AcceptedChangeCommitError extends Error {
148
203
  stderr;
149
204
  constructor(message, stderr) {
@@ -157,16 +212,32 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
157
212
  companionContext;
158
213
  codingRunWrites;
159
214
  playbookRunWrites;
215
+ executions;
160
216
  logDebug;
161
- constructor(logger, companionContext, codingRunWrites, playbookRunWrites) {
217
+ constructor(logger, companionContext, codingRunWrites, playbookRunWrites, executions) {
162
218
  this.logger = logger;
163
219
  this.companionContext = companionContext;
164
220
  this.codingRunWrites = codingRunWrites;
165
221
  this.playbookRunWrites = playbookRunWrites;
222
+ this.executions = executions;
166
223
  this.logDebug = this.logger.debugByType('AcceptedChangeCommit');
167
224
  }
225
+ /**
226
+ * A PERSON's acceptance waits for the tree to be quiet; the automatic origins do not ask. They run from
227
+ * inside the coding dispatch's own window (at a baseline, at the end of a wave, at recovery), where the
228
+ * run being accepted is the one holding it — refusing them would refuse the dispatch its own commit.
229
+ * Read from the actor plane, so a run another process started is seen too.
230
+ */
231
+ async refuseWhileACodingRunWrites(origin) {
232
+ if (origin !== AcceptOrigin.OPERATOR)
233
+ return;
234
+ const live = await listInFlightCodingRuns(this.executions);
235
+ if (live.length > 0)
236
+ throw new CodingRunWritingTheTreeError(live);
237
+ }
168
238
  /** Accept the latest recorded coding run of a build-plan task. `subject` is the task's objective, for the message. */
169
239
  async acceptCodingRun(input) {
240
+ await this.refuseWhileACodingRunWrites(input.origin ?? AcceptOrigin.OPERATOR);
170
241
  const record = await this.codingRunWrites.findLatestForTaskRef(input.taskRef);
171
242
  if (!record) {
172
243
  throw new NothingToAcceptError(`No coding run of ${input.taskRef} has recorded its writes. A run older than the write register is accepted by committing by hand.`);
@@ -198,14 +269,276 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
198
269
  ...accepted.map((filePath) => `- ${filePath}`),
199
270
  ...(refused.length > 0 ? ['', `Not included (refused by name): ${refused.map((entry) => `${entry.path} — ${entry.reason}`).join('; ')}`] : []),
200
271
  '',
201
- `Wildo-Coding-Run: ${record.taskId}`,
272
+ `${CODING_RUN_TRAILER}: ${record.taskId}`,
202
273
  ].join('\n');
203
274
  const outcome = await this.commitPaths(accepted, message, input.origin ?? AcceptOrigin.OPERATOR);
204
275
  await this.codingRunWrites.markAccepted(record.taskId, outcome.commitSha, new Date().toISOString());
205
276
  return { ...outcome, refusedPaths: refused, message };
206
277
  }
278
+ /**
279
+ * Commit what runs that SHARED the working tree left uncommitted as ONE change, naming every run whose
280
+ * writes it may carry (#1805). The two origins that may ask: the end of a parallel build wave, and the
281
+ * recovery of runs a restart interrupted.
282
+ *
283
+ * ## Why one commit, and not one per run
284
+ *
285
+ * Runs in one tree each capture everything that moved since their own baseline, so every capture holds
286
+ * siblings' writes. A run's CLAIMS (the file locations its agent reported) separate them only where an
287
+ * agent reports; an agent writing through a shell reports nothing, so a missing claim says nothing
288
+ * about who wrote a file (measured 2026-09-27: a run whose capture was entirely a failed sibling's files
289
+ * claimed none of them, and the per-task reconciliation committed them under its name). A run a restart
290
+ * interrupted has no claims at all — they were held in memory. So once a run's own accept has taken
291
+ * what it claimed, what remains in the tree cannot be attributed, and this does not pretend to: one
292
+ * commit, "writer unknown", naming every recorded run that may carry one of its files, failed runs included
293
+ * (Paul, #1805: "one commit that names every run whose writes it may carry, failed ones included").
294
+ *
295
+ * ## What is committed
296
+ *
297
+ * The union of each run's paths this door can accept under FORCE — never one the run's capture proves
298
+ * is not its (a parallel commit, another lane, outside the application) — restricted to the paths STILL
299
+ * UNCOMMITTED now. A path already at HEAD was committed by its run's own accept and needs nothing, and a
300
+ * run whose paths are all at HEAD contributes nothing here: it is neither named nor marked. That also
301
+ * means nothing is ever "already committed" here: with no uncommitted path there is nothing to accept.
302
+ */
303
+ async acceptSharedTreeRunsTogether(input) {
304
+ const origin = input.origin;
305
+ // A narrow type is not enough for a door that commits unattributable work: refuse any other origin at runtime too.
306
+ if (origin !== AcceptOrigin.WAVE_RECONCILIATION && origin !== AcceptOrigin.INTERRUPTED_RUN_RECOVERY) {
307
+ throw new Error(`Runs that shared the tree are accepted together only at a wave's end or a restart's recovery, never from "${String(origin)}".`);
308
+ }
309
+ await this.refuseWhileACodingRunWrites(origin);
310
+ const records = [];
311
+ const acceptable = new Map();
312
+ const refused = new Map();
313
+ for (const taskId of new Set(input.taskIds)) {
314
+ const record = await this.codingRunWrites.read(taskId);
315
+ if (!record)
316
+ continue;
317
+ const result = await this.classifyCodingRunFiles(record, true, true);
318
+ records.push(record);
319
+ acceptable.set(record.taskId, result.accepted);
320
+ for (const entry of result.refused)
321
+ refused.set(entry.path, entry.reason);
322
+ }
323
+ /*
324
+ * WHO may have written a path is asked of EVERY recorded run, not only the ones this call was handed
325
+ * (#1805 reviews 4 F1/F2, 5 L4): a finished run outside the window, whose own accept never took this file,
326
+ * still has its lines in it. See {@link carryTest} for the test — history order, not a clock.
327
+ *
328
+ * Accepted, and said here rather than hidden: a run whose version was thrown away WITHOUT a commit (a
329
+ * checkout, a restore) still "may carry" the path until one of this lane's commits takes it, and is named — "may", as the
330
+ * rule says (#1805 review 5 L3). The bytes test below keeps such a path from being committed unless its
331
+ * current state is still one a run left.
332
+ *
333
+ * A path is committed only when its CURRENT state is one such a run left (#1805 review R3): its bytes
334
+ * equal a recorded hash, or it is gone and a run recorded deleting it. An edit made after every capture —
335
+ * a person's, a watcher's regeneration — is nobody's here and stays uncommitted for its author.
336
+ */
337
+ const sharing = new Map();
338
+ for (const record of await this.codingRunWrites.list())
339
+ sharing.set(record.taskId, record);
340
+ for (const record of records)
341
+ sharing.set(record.taskId, record);
342
+ const uncommitted = await this.uncommittedAmong([...acceptable.values()].flat());
343
+ const carries = await this.carryTest([...uncommitted], [...sharing.values()]);
344
+ const writersOf = new Map();
345
+ for (const filePath of uncommitted) {
346
+ const mayCarry = [...sharing.values()].filter((record) => carries(record, filePath));
347
+ const bytes = await readFile(path.resolve(this.companionContext.saasRoot, filePath)).catch(() => undefined);
348
+ const current = bytes === undefined ? undefined : sha256Hex(bytes);
349
+ const producedByOne = mayCarry.some((record) => {
350
+ const file = record.files.find((entry) => entry.path === filePath);
351
+ return current === undefined ? file.changeKind === ChangeSetFileChangeKind.DELETED : file.contentSha256 === current;
352
+ });
353
+ if (!producedByOne) {
354
+ refused.set(filePath, AcceptRefusalReason.EDITED_SINCE_THE_RUN);
355
+ continue;
356
+ }
357
+ writersOf.set(filePath, new Set(mayCarry.map((record) => record.taskId)));
358
+ }
359
+ const committedPaths = [...writersOf.keys()].sort();
360
+ for (const filePath of committedPaths)
361
+ refused.delete(filePath);
362
+ const refusedPaths = [...refused]
363
+ .filter(([filePath]) => !committedPaths.includes(filePath) && (uncommitted.has(filePath) || ![...acceptable.values()].some((paths) => paths.includes(filePath))))
364
+ .map(([filePath, reason]) => ({ path: filePath, reason }));
365
+ if (committedPaths.length === 0) {
366
+ throw new NothingToAcceptError(`Nothing the runs ${[...new Set(input.taskIds)].join(', ')} left is uncommitted and theirs.`, refusedPaths);
367
+ }
368
+ const namedIds = new Set([...writersOf.values()].flatMap((ids) => [...ids]));
369
+ const contributing = [...sharing.values()].filter((record) => namedIds.has(record.taskId)).sort((left, right) => left.at.localeCompare(right.at));
370
+ const runLine = (record) => `Run: ${record.taskRef} (run ${record.taskId}, recorded ${record.at})`;
371
+ const why = origin === AcceptOrigin.WAVE_RECONCILIATION
372
+ ? 'These runs shared the working tree, and what their own accepts left is committed here as one change: which of them wrote each file is not known, so every run whose writes a file may carry is named, failed runs included.'
373
+ : contributing.length === 1
374
+ ? 'This run\'s files may carry changes it did not write (another run\'s, or edits already there when it began), and which lines are its own cannot be told apart after a restart: they are committed as one recovery, writer unknown.'
375
+ : 'A restart stopped these runs, and which of them wrote each file cannot be told apart after it: they are committed as one recovery, writer unknown, naming every run whose writes a file may carry.';
376
+ const message = [
377
+ `${[...new Set(contributing.map((record) => record.taskRef))].join(', ')}: ${origin === AcceptOrigin.WAVE_RECONCILIATION ? 'commit what the wave left, writer unknown' : 'recover work a restart interrupted, writer unknown'}`,
378
+ '',
379
+ `${ACCEPT_ORIGIN_SENTENCE[origin]}.`,
380
+ why,
381
+ '',
382
+ ...contributing.map(runLine),
383
+ '',
384
+ ...committedPaths.map((filePath) => `- ${filePath}`),
385
+ ...(refusedPaths.length > 0 ? ['', `Not included (refused by name): ${refusedPaths.map((entry) => `${entry.path} — ${entry.reason}`).join('; ')}`] : []),
386
+ '',
387
+ ...contributing.map((record) => `${CODING_RUN_TRAILER}: ${record.taskId}`),
388
+ ].join('\n');
389
+ const outcome = await this.commitPaths(committedPaths, message, origin);
390
+ const acceptedAt = new Date().toISOString();
391
+ // A run already accepted keeps the commit its own accept made; only runs never accepted are marked on this one.
392
+ for (const record of contributing) {
393
+ if (record.acceptedCommitSha === undefined)
394
+ await this.codingRunWrites.markAccepted(record.taskId, outcome.commitSha, acceptedAt);
395
+ }
396
+ return { ...outcome, refusedPaths, message, taskIds: contributing.map((record) => record.taskId) };
397
+ }
398
+ /**
399
+ * Which recorded runs may carry which paths' current changes (#1805), answered for a whole set of paths at
400
+ * once. A run may carry a path when its capture holds the path as its OWN (never as a parallel commit's,
401
+ * another lane's, or outside the application) and no commit THIS LANE made since that capture touched the
402
+ * path.
403
+ *
404
+ * Only this lane's commits end it, because only they are known to take the WHOLE working file: every one is
405
+ * a pathspec commit of the file as it stands, so what the run left in it is then in history, or was
406
+ * overwritten before (#1805 review 6 G1). They are recognised by the trailer KEYS this service writes
407
+ * (`LANE_COMMIT_TRAILERS`). Another author's commit proves nothing either way: a temporary-index commit or
408
+ * `git add -p` can take their own hunk and leave the run's in the working tree, so the run stays "may", as
409
+ * the rule says. So does a run whose version a person threw away without a commit (review 5 L3). Both
410
+ * over-name, which is the direction the rule accepts, and the bytes test in the caller still commits a path
411
+ * only when its current state is one a run left.
412
+ *
413
+ * Known limit — this can UNDER-name when a commit carrying a lane key was NOT made against the file as it
414
+ * stood after the capture, yet sits after it in history (reviews 7 I3, 8 L1). Two shapes: a person's commit
415
+ * that COPIES a lane trailer (`commit -c`/`-C` of a lane commit, an `--amend` of one with partial staging, a
416
+ * squash), and a lane commit made BEFORE the capture and re-attached after it (`reset --soft` back, the run,
417
+ * `reset --soft` forward; a stash and cherry-pick around a run). The second is closed wherever the clock
418
+ * can tell: a lane commit whose committer second is EARLIER than the capture's second ends no claim. That
419
+ * can only over-name, and a commit in the capture's own second still counts, so the review 5 F1 objection
420
+ * to clocks does not arise. What remains is a copied trailer, or a re-attached commit within the capture's
421
+ * second. `revert` copies no trailer and `cherry-pick` refuses over dirty files.
422
+ *
423
+ * "Since that capture" is HISTORY ORDER, never a clock (review 5 F1): a commit's `%ct` is whole seconds,
424
+ * and a run's own accept usually lands within the second of its capture. And it is the DESCENDANTS of the
425
+ * record's post-run HEAD (`--ancestry-path <postRunHeadSha>..HEAD`), not merely what that HEAD cannot reach
426
+ * (review 7 M1): after a rebase or a branch switch that carries the dirty files across, lane commits made
427
+ * BEFORE the capture are rewritten into the plain range with their trailers intact, and would end a claim
428
+ * on lines still uncommitted. With the ancestry path a rewritten history counts nothing, and its runs stay
429
+ * named. A post-run HEAD git cannot resolve is no evidence either way, so its runs are kept too. Renames
430
+ * are not followed (`--no-renames`), so a moved file is listed under both its names.
431
+ *
432
+ * One `git log` per distinct post-run HEAD, over only the paths asked about (review 6 C1): the query runs
433
+ * under the workspace lock and at every companion start, and one per path per record was minutes on a
434
+ * register a few days old.
435
+ */
436
+ async carryTest(paths, pool) {
437
+ const asked = new Set(paths);
438
+ const owns = (record, filePath) => {
439
+ const file = record.files.find((entry) => entry.path === filePath);
440
+ return file !== undefined && !isAttributedToAnotherWriter(file.attribution);
441
+ };
442
+ const pathsByHead = new Map();
443
+ for (const record of pool) {
444
+ for (const file of record.files) {
445
+ if (!asked.has(file.path) || !owns(record, file.path))
446
+ continue;
447
+ const heads = pathsByHead.get(record.postRunHeadSha) ?? new Set();
448
+ heads.add(file.path);
449
+ pathsByHead.set(record.postRunHeadSha, heads);
450
+ }
451
+ }
452
+ /*
453
+ * Per post-run HEAD: for each path a lane commit took since it, the LATEST committer second among those
454
+ * commits — or `undefined` when git cannot resolve the HEAD.
455
+ */
456
+ const takenSince = new Map();
457
+ for (const [head, headPaths] of pathsByHead) {
458
+ const log = await this.execGit([
459
+ 'log', '-z', '--relative', '--name-only', '--no-renames', '--ancestry-path',
460
+ `--format=%x1e%ct%x1c%(trailers:${LANE_COMMIT_TRAILERS.map((key) => `key=${key}`).join(',')},only,unfold,separator=%x1f)%x1d`,
461
+ `${head}..HEAD`, '--', ...[...headPaths].sort(),
462
+ ], { acceptExitCodes: [128] });
463
+ if (log.exitCode === 128) {
464
+ takenSince.set(head, undefined);
465
+ continue;
466
+ }
467
+ const taken = new Map();
468
+ for (const commit of log.stdout.split(COMMIT_MARK)) {
469
+ const end = commit.indexOf(TRAILERS_END);
470
+ const timeEnd = commit.indexOf(TIME_END);
471
+ if (end < 0 || timeEnd < 0 || commit.slice(timeEnd + 1, end).trim() === '')
472
+ continue;
473
+ const committedAt = Number(commit.slice(0, timeEnd));
474
+ for (const name of commit.slice(end + 1).split('\0')) {
475
+ const filePath = name.replace(/^\n+/u, '');
476
+ if (filePath)
477
+ taken.set(filePath, Math.max(taken.get(filePath) ?? Number.NEGATIVE_INFINITY, committedAt));
478
+ }
479
+ }
480
+ takenSince.set(head, taken);
481
+ }
482
+ return (record, filePath) => {
483
+ if (!owns(record, filePath))
484
+ return false;
485
+ const takenAt = takenSince.get(record.postRunHeadSha)?.get(filePath);
486
+ // Taken only by a lane commit from the capture's own second or later (review 8 L1).
487
+ return takenAt === undefined || takenAt < Math.floor(Date.parse(record.at) / 1_000);
488
+ };
489
+ }
490
+ /**
491
+ * Whether a run is NOT the sole known writer of what it left (#1805 review 5 F2): some OTHER recorded run
492
+ * may carry one of its still-uncommitted paths. Asked by restart recovery before it commits a lone
493
+ * interrupted run under its own name — the same test the shared-tree door names runs by, so the two cannot
494
+ * disagree about who may have written a file.
495
+ */
496
+ async anotherRunMayCarry(taskId) {
497
+ const record = await this.codingRunWrites.read(taskId);
498
+ if (!record)
499
+ return false;
500
+ const others = (await this.codingRunWrites.list()).filter((candidate) => candidate.taskId !== taskId);
501
+ const uncommitted = [...await this.uncommittedAmong(record.files.map((entry) => entry.path))];
502
+ const carries = await this.carryTest(uncommitted, others);
503
+ return uncommitted.some((filePath) => others.some((other) => carries(other, filePath)));
504
+ }
505
+ /**
506
+ * Which of these paths differ from HEAD right now — modified, deleted, or new and untracked. Read from
507
+ * `git status` rather than from the register, because what the register recorded may since have been
508
+ * committed by the run's own accept.
509
+ */
510
+ async uncommittedAmong(paths) {
511
+ const unique = [...new Set(paths)];
512
+ if (unique.length === 0)
513
+ return new Set();
514
+ /*
515
+ * With `-z`, `git status` prints paths relative to the REPOSITORY root whatever `-C` says (#1805 review
516
+ * R1; the same trap `GitChangeSetCompanionService.resolveApplicationRelativePathMapper` records). For an
517
+ * application nested in its repository — every dogfood application here — nothing would ever match the
518
+ * register's application-relative paths, so the prefix git reports for the application is stripped.
519
+ */
520
+ const prefix = (await this.execGit(['rev-parse', '--show-prefix'])).stdout.replace(/\r?\n$/u, '');
521
+ const toApplicationPath = (repositoryPath) => (prefix && repositoryPath.startsWith(prefix) ? repositoryPath.slice(prefix.length) : repositoryPath);
522
+ const status = await this.execGit(['status', '--porcelain=v1', '-z', '--untracked-files=all', '--', ...unique]);
523
+ const tokens = status.stdout.split('\0');
524
+ const dirty = new Set();
525
+ for (let index = 0; index < tokens.length; index += 1) {
526
+ const entry = tokens[index];
527
+ if (entry.length < 4)
528
+ continue;
529
+ dirty.add(toApplicationPath(entry.slice(3)));
530
+ // A rename or copy is `XY new\0old`: the ORIGINAL path is its own token, and it changed too.
531
+ if (entry[0] === 'R' || entry[0] === 'C' || entry[1] === 'R' || entry[1] === 'C') {
532
+ index += 1;
533
+ if (tokens[index])
534
+ dirty.add(toApplicationPath(tokens[index]));
535
+ }
536
+ }
537
+ return new Set(unique.filter((filePath) => dirty.has(filePath)));
538
+ }
207
539
  /** Accept a playbook run's writes, from its register: the same divergence test `revert` applies. */
208
540
  async acceptPlaybookRun(input) {
541
+ await this.refuseWhileACodingRunWrites(input.origin ?? AcceptOrigin.OPERATOR);
209
542
  const diff = await this.playbookRunWrites.describeRunDiff(input.runId);
210
543
  const accepted = [];
211
544
  const refused = [];
@@ -226,7 +559,7 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
226
559
  ...accepted.map((filePath) => `- ${filePath}`),
227
560
  ...(refused.length > 0 ? ['', `Not included (refused by name): ${refused.map((entry) => `${entry.path} — ${entry.reason}`).join('; ')}`] : []),
228
561
  '',
229
- `Wildo-Playbook-Run: ${diff.runId}`,
562
+ `${PLAYBOOK_RUN_TRAILER}: ${diff.runId}`,
230
563
  ].join('\n');
231
564
  const outcome = await this.commitPaths(accepted, message, input.origin ?? AcceptOrigin.OPERATOR);
232
565
  await this.playbookRunWrites.markAccepted(input.runId, outcome.commitSha, new Date().toISOString());
@@ -248,7 +581,12 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
248
581
  * **Oldest first, and superseded writes are refused, not errors.** A later run that rewrote a file
249
582
  * makes an earlier run's copy `diverged`, so the earlier run is refused for that path and the later
250
583
  * one commits it. A run whose every path was superseded throws `NothingToAcceptError`, which is
251
- * counted here, not raised. Records whose paths already match HEAD are stamped with no new commit,
584
+ * counted here, not raised.
585
+ *
586
+ * **Superseded is counted apart from edited (#1614).** A later RUN that rewrote the path read this
587
+ * run's landing first, or merged into it: the landing refuses to replace a file that moved since the
588
+ * run read it, so a later run can no longer discard an earlier one. A path no later run wrote was
589
+ * 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,
252
590
  * which is how the unstamped backlog of a run carried by hand is absorbed on the first pass.
253
591
  */
254
592
  async acceptPendingPlaybookRuns(origin) {
@@ -257,6 +595,7 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
257
595
  .sort((left, right) => left.at.localeCompare(right.at));
258
596
  let accepted = 0;
259
597
  let superseded = 0;
598
+ let editedOutsideRuns = 0;
260
599
  let failed = 0;
261
600
  for (const record of pending) {
262
601
  try {
@@ -265,7 +604,13 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
265
604
  }
266
605
  catch (error) {
267
606
  if (error instanceof NothingToAcceptError) {
268
- superseded += 1;
607
+ const succession = await this.playbookRunWrites.describeSuccession(record.runId);
608
+ if ([...succession.values()].every((entry) => entry === PlaybookRunFileSuccession.LATER_RUN))
609
+ superseded += 1;
610
+ else {
611
+ editedOutsideRuns += 1;
612
+ this.logDebug('A playbook run\'s writes were changed outside the runs before they could be accepted', { runId: record.runId, playbookRef: record.playbookRef });
613
+ }
269
614
  continue;
270
615
  }
271
616
  failed += 1;
@@ -273,25 +618,30 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
273
618
  }
274
619
  }
275
620
  if (pending.length > 0)
276
- this.logDebug('Accepted pending playbook runs', { pending: pending.length, accepted, superseded, failed });
277
- return { accepted, superseded, failed };
621
+ this.logDebug('Accepted pending playbook runs', { pending: pending.length, accepted, superseded, editedOutsideRuns, failed });
622
+ return { accepted, superseded, editedOutsideRuns, failed };
278
623
  }
279
624
  /**
280
625
  * Which of a coding run's paths this service can vouch for. Attribution decides first — a path
281
626
  * that is not the run's is never accepted, whatever `force` says — then the bytes.
282
627
  */
283
- async classifyCodingRunFiles(record, force) {
628
+ async classifyCodingRunFiles(record, force,
629
+ /**
630
+ * Whether FORCE also passes a concurrent run's missing CLAIM (#1805 review R4). Only the shared-tree
631
+ * door may: it commits unattributable work as such, naming every run. Any other forced accept — a
632
+ * person's from the workbench, `wildo build accept` — commits under ONE run's name, and a path that run
633
+ * never claimed is not its to be named for, forced or not.
634
+ */
635
+ passMissingClaims = false) {
284
636
  const accepted = [];
285
637
  const refused = [];
286
638
  for (const file of record.files) {
287
- if (file.attribution === ChangeSetAttributionClass.COMMITTED_DURING_RUN
288
- || file.attribution === ChangeSetAttributionClass.CONCURRENT_HOST_LANE
289
- || file.attribution === ChangeSetAttributionClass.OUTSIDE_APPLICATION_ROOT) {
639
+ if (isAttributedToAnotherWriter(file.attribution)) {
290
640
  refused.push({ path: file.path, reason: AcceptRefusalReason.NOT_THIS_RUN });
291
641
  continue;
292
642
  }
293
643
  // A concurrent run's capture holds its siblings' files too; without FORCE it commits only what it claims.
294
- if (record.concurrent === true && file.claimedByRun !== true && !force) {
644
+ if (record.concurrent === true && file.claimedByRun !== true && !(force && passMissingClaims)) {
295
645
  refused.push({ path: file.path, reason: AcceptRefusalReason.NOT_CLAIMED_BY_THE_RUN });
296
646
  continue;
297
647
  }
@@ -312,15 +662,21 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
312
662
  /**
313
663
  * `git add -- <paths>` then `git commit -F <message> -- <paths>`. A deleted path is staged as a
314
664
  * removal by the same `add`. When the paths are already identical to HEAD there is nothing to
315
- * commit, and that is answered as `alreadyCommitted` with HEAD's sha rather than as a failure.
665
+ * commit, and that is answered as `alreadyCommitted` with the commit that last changed those paths rather than as a failure.
316
666
  */
317
667
  async commitPaths(paths, message, origin) {
318
668
  await this.execGit(['add', '--', ...paths]);
319
669
  const staged = await this.execGit(['diff', '--cached', '--quiet', '--', ...paths], { acceptExitCodes: [0, 1] });
320
670
  if (staged.exitCode === 0) {
321
- const head = (await this.execGit(['rev-parse', 'HEAD'])).stdout.trim();
322
- this.logDebug('Nothing to commit: every accepted path already matches HEAD', { paths, head });
323
- return { commitSha: head, committedPaths: [...paths], alreadyCommitted: true };
671
+ /*
672
+ * The commit that last changed these paths, never merely HEAD (#1805 review N6): HEAD may be any
673
+ * later, unrelated commit, and a record marked accepted "on" it would name a commit holding none of
674
+ * the run's work. Falls back to HEAD only for paths git has no history for.
675
+ */
676
+ const lastTouching = (await this.execGit(['log', '-1', '--format=%H', '--', ...paths])).stdout.trim();
677
+ const commitSha = lastTouching || (await this.execGit(['rev-parse', 'HEAD'])).stdout.trim();
678
+ this.logDebug('Nothing to commit: every accepted path already matches HEAD', { paths, commitSha });
679
+ return { commitSha, committedPaths: [...paths], alreadyCommitted: true };
324
680
  }
325
681
  const messagePath = path.join(tmpdir(), `wildo-accept-${process.pid}-${Date.now()}.txt`);
326
682
  await writeFile(messagePath, `${message}\n`, 'utf8');
@@ -335,6 +691,27 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
335
691
  this.logDebug('Accepted a run as a commit', { commitSha, paths: paths.length });
336
692
  return { commitSha, committedPaths: [...paths], alreadyCommitted: false };
337
693
  }
694
+ /**
695
+ * Commit a DECISION the creator (or their agent) just recorded in a specification file, at the moment it
696
+ * is recorded (#1609): opening a playbook instance is a decision about product scope, and a decision that
697
+ * lives only as a working edit is lost to a checkout and invisible to a re-clone.
698
+ *
699
+ * The caller holds the workspace lock around the write and this commit, so no coding run's baseline can
700
+ * see the file half-recorded. The message carries the purpose and the actor as trailers
701
+ * (`Wildo-Purpose:`, `Wildo-Actor:`), because the author is the companion under the automatic posture.
702
+ */
703
+ async commitDecisionRecord(input) {
704
+ const message = [
705
+ input.summary,
706
+ '',
707
+ `${ACCEPT_ORIGIN_SENTENCE[input.origin]}: a decision recorded in the application's specifications.`,
708
+ '',
709
+ `${DECISION_PURPOSE_TRAILER}: ${input.purpose.replace(/\s+/gu, ' ').trim()}`,
710
+ `Wildo-Actor: ${input.actor}`,
711
+ ].join('\n');
712
+ const outcome = await this.commitPaths(input.paths, message, input.origin);
713
+ return { ...outcome, message };
714
+ }
338
715
  /** `git -C <saasRoot> <args>` — argv array, never a shell; the subcommand MUST be in the allow-list. */
339
716
  async execGit(args, options = {}) {
340
717
  const subcommand = args[0];
@@ -344,7 +721,12 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
344
721
  try {
345
722
  const result = await execFileAsync('git', ['-C', this.companionContext.saasRoot, ...args], {
346
723
  timeout: GIT_TIMEOUT_MS,
347
- env: { ...process.env, GIT_TERMINAL_PROMPT: '0' },
724
+ /*
725
+ * Literal pathspecs: every path here is a FILE the register named, and a route file such as
726
+ * `[slug].astro` is a glob otherwise (#1805 review R8). No optional locks: `status` would refresh
727
+ * the index's stat cache and take `index.lock` while another session commits (R7).
728
+ */
729
+ env: { ...process.env, GIT_TERMINAL_PROMPT: '0', GIT_LITERAL_PATHSPECS: '1', GIT_OPTIONAL_LOCKS: '0' },
348
730
  });
349
731
  return { ...result, exitCode: 0 };
350
732
  }
@@ -364,8 +746,9 @@ AcceptedChangeCommitCompanionService = __decorate([
364
746
  __param(1, inject(COMPANION_SERVICE_TYPES.CompanionContext)),
365
747
  __param(2, inject(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService)),
366
748
  __param(3, inject(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService)),
749
+ __param(4, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
367
750
  __metadata("design:paramtypes", [Function, Object, CodingRunWriteRegisterCompanionService,
368
- PlaybookRunWriteRegisterCompanionService])
751
+ PlaybookRunWriteRegisterCompanionService, Object])
369
752
  ], AcceptedChangeCommitCompanionService);
370
753
  export { AcceptedChangeCommitCompanionService };
371
754
  //# sourceMappingURL=accepted-change-commit.companion.service.js.map