@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
@@ -1 +1 @@
1
- {"version":3,"file":"companion-actor-execution-persistence.adapter.js","sourceRoot":"","sources":["../../../../../src/executions/services/companion-actor-execution-persistence.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAa/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,EACrC,kCAAkC,EAClC,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F;;;;;;;;;;;;;;;;;GAiBG;AAEI,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAEkB;IADtE,YACsE,UAA+C;QAA/C,eAAU,GAAV,UAAU,CAAqC;IAClH,CAAC;IAEG,KAAK,CAAC,eAAe,CAC1B,KAAqD,EACrD,KAAwC;QAExC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAC1D,0CAA0C,CAAC,KAAK,CAAC;YAC/C,SAAS,EAAE,KAAK,CAAC,S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ata';\nimport { inject, injectable } from 'inversify';\nimport type {\n ActorExecutionPersistencePort,\n ActorExecutionPersistence_CreateExecutionInput,\n ActorExecutionPersistence_CreateTaskInput,\n ActorExecutionPersistence_Created,\n ActorExecutionPersistence_ExecutionPatch,\n ActorExecutionPersistence_ExecutionRow,\n ActorExecutionPersistence_ListQuery,\n ActorExecutionPersistence_TaskPatch,\n} from '@wildo-ai/saas-backend-lib';\nimport type { Wildo_Application_ActorSystem_Execution } from '@wildo-ai/platform-core-shared';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport {\n CompanionCreateActorExecutionRequestSchema,\n CompanionCreateActorTaskRequestSchema,\n CompanionExecutionsListQuerySchema,\n CompanionUpdateActorExecutionRequestSchema,\n CompanionUpdateActorTaskRequestSchema,\n} from '../../companion-api/companion-api.schemas';\nimport { CompanionExecutionsCompanionService } from './companion-executions.companion.service';\n\n/**\n * The platform's implementation of the engine's actor-plane persistence port (#1358).\n *\n * The engine's `ActorsSystemBackendService` owns the LIFECYCLE of an execution — open, execute,\n * settle, in that order — and asks this port to write the rows. The rows are the platform's\n * `wildoApplicationActorSystemExecutions` and `wildoApplicationActorTasks`, owned by an organization\n * and an application the engine knows nothing about, and `CompanionExecutionsCompanionService` already\n * writes them repository-direct under a unit of work with ownership resolved from the session. This\n * adapter is the translation and nothing more: the engine's port shapes into that service's request\n * DTOs, parsed through the same schemas the companion's own HTTP route parses.\n *\n * The scope the engine carries is the companion's trace session, so every row write is traced beside\n * the run it belongs to exactly as before the lifecycle moved into the engine.\n *\n * Bound under the ENGINE's token (`SAAS_SERVICE_TYPES.ActorExecutionPersistencePort`) in the companion\n * container — the same shape as `SAAS_SERVICE_TYPES.IntrospectionResourceSource`. A host that binds\n * nothing gets a runtime that refuses to open an execution, which is the point.\n */\n@injectable()\nexport class CompanionActorExecutionPersistenceAdapter implements ActorExecutionPersistencePort<CompanionExecutionSessionContext> {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n ) {}\n\n public async createExecution(\n input: ActorExecutionPersistence_CreateExecutionInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const execution = await this.executions.createActorExecution(\n CompanionCreateActorExecutionRequestSchema.parse({\n systemRef: input.systemRef,\n status: input.status,\n ...(input.initiator ? { initiator: input.initiator } : {}),\n // The single-flight subject lives ON the row (#1361): it is the lease, read back by every process.\n ...(input.exclusiveSubject !== undefined ? { exclusiveSubject: input.exclusiveSubject } : {}),\n }),\n scope,\n );\n return { _id: String(execution._id) };\n }\n\n public async createTask(\n input: ActorExecutionPersistence_CreateTaskInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const task = await this.executions.createActorTask(\n CompanionCreateActorTaskRequestSchema.parse({\n title: input.title,\n description: input.description,\n topic: input.topic,\n status: input.status,\n actors: { actorRef: input.actorRef },\n wildoApplicationActorSystemExecutionId: input.executionId,\n input: input.input,\n context: input.context,\n ...(input.startedAt !== undefined ? { startedAt: input.startedAt } : {}),\n ...(input.initiator ? { initiator: input.initiator } : {}),\n }),\n scope,\n );\n return { _id: String(task._id) };\n }\n\n public async updateTask(\n taskId: string,\n patch: ActorExecutionPersistence_TaskPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n await this.executions.updateActorTask(\n taskId,\n CompanionUpdateActorTaskRequestSchema.parse({\n status: patch.status,\n ...(patch.startedAt !== undefined ? { startedAt: patch.startedAt } : {}),\n ...(patch.input !== undefined ? { input: patch.input } : {}),\n ...(patch.completedAt !== undefined ? { completedAt: patch.completedAt } : {}),\n ...(patch.output !== undefined ? { output: patch.output } : {}),\n ...(patch.artifacts !== undefined ? { artifacts: patch.artifacts } : {}),\n }),\n scope,\n );\n }\n\n public async updateExecution(\n executionId: string,\n patch: ActorExecutionPersistence_ExecutionPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n /*\n * A checkpoint-only write carries no status, and the update contract requires one: it is the\n * row's CURRENT status, read here rather than guessed, and the service appends no status change\n * for a write that moves nothing.\n */\n const status = patch.status ?? (await this.executions.getActorExecution(executionId, scope)).status;\n await this.executions.updateActorExecution(\n executionId,\n CompanionUpdateActorExecutionRequestSchema.parse({\n status,\n ...(patch.finishedAt !== undefined ? { finishedAt: patch.finishedAt } : {}),\n ...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),\n ...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),\n }),\n scope,\n );\n }\n\n public async readExecution(\n executionId: string,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_ExecutionRow | null> {\n try {\n return this.toRow(await this.executions.getActorExecution(executionId, scope));\n } catch {\n // `getActorExecution` throws a NOT_FOUND for an id this application holds no row for; the\n // port's contract for that is `null`, and the engine names the refusal.\n return null;\n }\n }\n\n public async listExecutions(\n query: ActorExecutionPersistence_ListQuery,\n scope?: CompanionExecutionSessionContext,\n ): Promise<readonly ActorExecutionPersistence_ExecutionRow[]> {\n const rows: ActorExecutionPersistence_ExecutionRow[] = [];\n // One listing per status: the service's list filters on a single status, and the engine asks for\n // at most two at a time.\n for (const status of query.statuses) {\n const listed = await this.executions.listActorExecutions(\n CompanionExecutionsListQuerySchema.parse({ systemRef: query.systemRef, status, limit: 200 }),\n scope,\n );\n rows.push(...listed.map((execution) => this.toRow(execution)));\n }\n return rows;\n }\n\n private toRow(execution: Wildo_Application_ActorSystem_Execution): ActorExecutionPersistence_ExecutionRow {\n return {\n _id: String(execution._id),\n systemRef: execution.systemRef,\n status: execution.status,\n // The execution carries a snapshot of its linked tasks, maintained by the task writes.\n tasks: execution.standaloneTasks.map((task) => ({ _id: String(task._id), actorRef: task.actors.actorRef })),\n ...(execution.suspension !== undefined ? { suspension: execution.suspension } : {}),\n ...(execution.checkpoint !== undefined ? { checkpoint: execution.checkpoint } : {}),\n ...(execution.exclusiveSubject !== undefined ? { exclusiveSubject: execution.exclusiveSubject } : {}),\n createdAt: execution.createdAt,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"companion-actor-execution-persistence.adapter.js","sourceRoot":"","sources":["../../../../../src/executions/services/companion-actor-execution-persistence.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAc/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,EACrC,kCAAkC,EAClC,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F;;;;;;;;;;;;;;;;;GAiBG;AAEI,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAEkB;IADtE,YACsE,UAA+C;QAA/C,eAAU,GAAV,UAAU,CAAqC;IAClH,CAAC;IAEG,KAAK,CAAC,eAAe,CAC1B,KAAqD,EACrD,KAAwC;QAExC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAC1D,0CAA0C,CAAC,KAAK,CAAC;YAC/C,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1D,mGAAmG;YACnG,GAAG,CAAC,KAAK,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7F,qGAAqG;YACrG,yGAAyG;YACzG,wGAAwG;SACzG,CAA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AE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3G,GAAG,CAAC,SAAS,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,GAAG,CAAC,SAAS,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,GAAG,CAAC,SAAS,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrG,SAAS,EAAE,SAAS,CAAC,SAAS;SAC/B,CAAC;IACJ,CAAC;CACF,CAAA;AAhKY,yCAAyC;IADrD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;qCAA8B,mCAAmC;GAF1G,yCAAyC,CAgKrD","sourcesContent":["import 'reflect-metadata';\nimport { inject, injectable } from 'inversify';\nimport type {\n ActorExecutionPersistencePort,\n ActorExecutionPersistence_CreateExecutionInput,\n ActorExecutionPersistence_CreateTaskInput,\n ActorExecutionPersistence_Created,\n ActorExecutionPersistence_ExecutionPatch,\n ActorExecutionPersistence_ExecutionRow,\n ActorExecutionPersistence_ListQuery,\n ActorExecutionPersistence_TaskPatch,\n} from '@wildo-ai/saas-backend-lib';\nimport type { Wildo_Application_ActorSystem_Execution } from '@wildo-ai/platform-core-shared';\nimport type { ActorExecution_Suspension } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport {\n CompanionCreateActorExecutionRequestSchema,\n CompanionCreateActorTaskRequestSchema,\n CompanionExecutionsListQuerySchema,\n CompanionUpdateActorExecutionRequestSchema,\n CompanionUpdateActorTaskRequestSchema,\n} from '../../companion-api/companion-api.schemas';\nimport { CompanionExecutionsCompanionService } from './companion-executions.companion.service';\n\n/**\n * The platform's implementation of the engine's actor-plane persistence port (#1358).\n *\n * The engine's `ActorsSystemBackendService` owns the LIFECYCLE of an execution — open, execute,\n * settle, in that order — and asks this port to write the rows. The rows are the platform's\n * `wildoApplicationActorSystemExecutions` and `wildoApplicationActorTasks`, owned by an organization\n * and an application the engine knows nothing about, and `CompanionExecutionsCompanionService` already\n * writes them repository-direct under a unit of work with ownership resolved from the session. This\n * adapter is the translation and nothing more: the engine's port shapes into that service's request\n * DTOs, parsed through the same schemas the companion's own HTTP route parses.\n *\n * The scope the engine carries is the companion's trace session, so every row write is traced beside\n * the run it belongs to exactly as before the lifecycle moved into the engine.\n *\n * Bound under the ENGINE's token (`SAAS_SERVICE_TYPES.ActorExecutionPersistencePort`) in the companion\n * container — the same shape as `SAAS_SERVICE_TYPES.IntrospectionResourceSource`. A host that binds\n * nothing gets a runtime that refuses to open an execution, which is the point.\n */\n@injectable()\nexport class CompanionActorExecutionPersistenceAdapter implements ActorExecutionPersistencePort<CompanionExecutionSessionContext> {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n ) {}\n\n public async createExecution(\n input: ActorExecutionPersistence_CreateExecutionInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const execution = await this.executions.createActorExecution(\n CompanionCreateActorExecutionRequestSchema.parse({\n systemRef: input.systemRef,\n status: input.status,\n ...(input.initiator ? { initiator: input.initiator } : {}),\n // The single-flight subject lives ON the row (#1361): it is the lease, read back by every process.\n ...(input.exclusiveSubject !== undefined ? { exclusiveSubject: input.exclusiveSubject } : {}),\n // `input.caseRef` (#1598) is deliberately NOT carried: a case is a row of an APPLICATION's work-unit\n // resource, and these rows are the platform's record of building that application, not work done for one\n // of its clients. The companion opens no run on a case, and its model calls are UNATTRIBUTED by design.\n }),\n scope,\n );\n return { _id: String(execution._id) };\n }\n\n public async createTask(\n input: ActorExecutionPersistence_CreateTaskInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const task = await this.executions.createActorTask(\n CompanionCreateActorTaskRequestSchema.parse({\n title: input.title,\n description: input.description,\n topic: input.topic,\n status: input.status,\n actors: { actorRef: input.actorRef },\n wildoApplicationActorSystemExecutionId: input.executionId,\n input: input.input,\n context: input.context,\n ...(input.startedAt !== undefined ? { startedAt: input.startedAt } : {}),\n ...(input.initiator ? { initiator: input.initiator } : {}),\n }),\n scope,\n );\n return { _id: String(task._id) };\n }\n\n public async updateTask(\n taskId: string,\n patch: ActorExecutionPersistence_TaskPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n await this.executions.updateActorTask(\n taskId,\n CompanionUpdateActorTaskRequestSchema.parse({\n status: patch.status,\n ...(patch.startedAt !== undefined ? { startedAt: patch.startedAt } : {}),\n ...(patch.input !== undefined ? { input: patch.input } : {}),\n ...(patch.completedAt !== undefined ? { completedAt: patch.completedAt } : {}),\n ...(patch.output !== undefined ? { output: patch.output } : {}),\n ...(patch.artifacts !== undefined ? { artifacts: patch.artifacts } : {}),\n }),\n scope,\n );\n }\n\n public async updateExecution(\n executionId: string,\n patch: ActorExecutionPersistence_ExecutionPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n /*\n * A checkpoint-only write carries no status, and the update contract requires one: it is the\n * row's CURRENT status, read here rather than guessed, and the service appends no status change\n * for a write that moves nothing.\n */\n const status = patch.status ?? (await this.executions.getActorExecution(executionId, scope)).status;\n await this.executions.updateActorExecution(\n executionId,\n CompanionUpdateActorExecutionRequestSchema.parse({\n status,\n // `null` is not sent: a non-terminal move clears the finish instant in the service itself.\n ...(patch.finishedAt ? { finishedAt: patch.finishedAt } : {}),\n ...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),\n ...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),\n }),\n scope,\n );\n }\n\n public async updateSuspendedExecution(\n executionId: string,\n expected: ActorExecution_Suspension,\n patch: ActorExecutionPersistence_ExecutionPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<boolean> {\n // A move OUT of waiting always names where it goes, so there is no current status to read — and\n // reading one would reopen the window this write exists to close (#1586).\n if (patch.status === undefined) {\n throw new Error(`A move out of waiting must name its status (execution '${executionId}').`);\n }\n const moved = await this.executions.updateSuspendedActorExecution(\n executionId,\n expected,\n CompanionUpdateActorExecutionRequestSchema.parse({\n status: patch.status,\n // `null` is not sent: a non-terminal move clears the finish instant in the service itself.\n ...(patch.finishedAt ? { finishedAt: patch.finishedAt } : {}),\n ...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),\n ...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),\n ...(patch.resolution !== undefined ? { resolution: patch.resolution } : {}),\n }),\n scope,\n );\n return moved !== null;\n }\n\n public async readExecution(\n executionId: string,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_ExecutionRow | null> {\n try {\n return this.toRow(await this.executions.getActorExecution(executionId, scope));\n } catch {\n // `getActorExecution` throws a NOT_FOUND for an id this application holds no row for; the\n // port's contract for that is `null`, and the engine names the refusal.\n return null;\n }\n }\n\n public async listExecutions(\n query: ActorExecutionPersistence_ListQuery,\n scope?: CompanionExecutionSessionContext,\n ): Promise<readonly ActorExecutionPersistence_ExecutionRow[]> {\n const rows: ActorExecutionPersistence_ExecutionRow[] = [];\n // One listing per status: the service's list filters on a single status, and the engine asks for\n // at most two at a time.\n for (const status of query.statuses) {\n const listed = await this.executions.listActorExecutions(\n CompanionExecutionsListQuerySchema.parse({ systemRef: query.systemRef, status, limit: 200 }),\n scope,\n );\n rows.push(...listed.map((execution) => this.toRow(execution)));\n }\n return rows;\n }\n\n private toRow(execution: Wildo_Application_ActorSystem_Execution): ActorExecutionPersistence_ExecutionRow {\n return {\n _id: String(execution._id),\n systemRef: execution.systemRef,\n status: execution.status,\n // The execution carries a snapshot of its linked tasks, maintained by the task writes.\n tasks: execution.standaloneTasks.map((task) => ({ _id: String(task._id), actorRef: task.actors.actorRef })),\n ...(execution.suspension !== undefined ? { suspension: execution.suspension } : {}),\n ...(execution.checkpoint !== undefined ? { checkpoint: execution.checkpoint } : {}),\n ...(execution.exclusiveSubject !== undefined ? { exclusiveSubject: execution.exclusiveSubject } : {}),\n createdAt: execution.createdAt,\n };\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { ErrorBuilderBackendService, ExecutionContextCreatorBackendService, LoggerService, RepositoriesRegistryHandlerBackendService, ResourcePersistenceUnitOfWorkBackendService, ResourcesRegistryBackendService, WebSocketService } from "@wildo-ai/saas-backend-lib";
3
- import { Actors_Task_Schema, ActorSystem_ExecutionSchema, CoreResourceOperation, CoreWebSocketEvent, FlowSystem_Execution_Schema, ResourceAction, ResourceScopeRoomKey } from '@wildo-ai/saas-models';
3
+ import { type ActorExecution_Suspension, Actors_Task_Schema, ActorSystem_ExecutionSchema, CoreResourceOperation, CoreWebSocketEvent, FlowSystem_Execution_Schema, ResourceAction, ResourceScopeRoomKey } from '@wildo-ai/saas-models';
4
4
  import type { CompanionActorTasksListQuery, CompanionCreateActorTaskRequest, CompanionCreateActorExecutionRequest, CompanionCreateFlowExecutionRequest, CompanionExecutionsListQuery, CompanionUpdateActorExecutionRequest, CompanionUpdateActorTaskRequest } from "../../companion-api/companion-api.schemas";
5
5
  import type { CompanionContext } from "../../core/context/companion-context";
6
6
  import { CompanionTraceabilityService } from "../../core/traceability/companion-traceability.service";
@@ -116,6 +116,23 @@ export declare class CompanionExecutionsCompanionService {
116
116
  * write a list missing the other's entry.
117
117
  */
118
118
  updateActorExecution(executionId: string, payload: CompanionUpdateActorExecutionRequest, sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_ActorSystem_Execution>;
119
+ /**
120
+ * Move a WAITING actor execution out of waiting — the compare-and-swap behind the engine port's
121
+ * `updateSuspendedExecution` (#1586). Answers the moved row, or `null` when the row is no longer
122
+ * waiting on `expected`, in which case NOTHING was written.
123
+ *
124
+ * ONE guarded statement: the predicate (this application, `AWAITING_APPROVAL`, and the suspension
125
+ * `expected` names) travels in the filter of `atomicGuardedMutation`, which compiles to a
126
+ * `findOneAndUpdate` on MongoDB and an `UPDATE … WHERE` on PostgreSQL. `updateActorExecution` is not
127
+ * reused: it reads the row and then writes it, which is exactly the window two decisions raced
128
+ * through. For the same reason the history entry is APPENDED in the statement rather than rebuilt
129
+ * from a read, and the two cleared fields use `clear`, the one spelling both adapters agree on.
130
+ *
131
+ * The suspension is matched by the field its reference was taken from — `suspensionId`, or
132
+ * `suspendedAt` for a row written before ids existed — which is `actorExecutionSuspensionRef`'s own
133
+ * rule, so a decision that names a suspension and the write that honours it cannot disagree.
134
+ */
135
+ updateSuspendedActorExecution(executionId: string, expected: ActorExecution_Suspension, payload: CompanionUpdateActorExecutionRequest, sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_ActorSystem_Execution | null>;
119
136
  createFlowExecution(payload: CompanionCreateFlowExecutionRequest, sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_FlowSystem_Execution>;
120
137
  getActorExecution(executionId: string, _sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_ActorSystem_Execution>;
121
138
  getFlowExecution(executionId: string, _sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_FlowSystem_Execution>;
@@ -1 +1 @@
1
- {"version":3,"file":"companion-executions.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/executions/services/companion-executions.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAE1B,qCAAqC,EACrC,aAAa,EACb,yCAAyC,EACzC,2CAA2C,EAC3C,+BAA+B,EAE/B,gBAAgB,EAIjB,MAAM,4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AAe,CAC1B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,+BAA+B,EACxC,cAAc,CAAC,EAAE,gCAAgC,GAChD,OAAO,CAAC,4BAA4B,CAAC;IA4IxC;;;;;OAKG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,OAAO,CAAC,2BAA2B;YAqCrB,gBAAgB;YAehB,aAAa;IAmF3B;;;;;;;;;OASG;IACH;;;;;;;;;;;OAWG;YACW,8BAA8B;IAmB5C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;YACW,cAAc;YAiBd,qBAAqB;YAgDrB,gCAAgC;YA8ChC,6BAA6B;YAiD7B,+BAA+B;YAyC/B,oBAAoB;YAqBpB,yBAAyB;YAyBzB,uBAAuB;YAiBvB,6BAA6B;IAyE3C,OAAO,CAAC,wBAAwB;YASlB,mBAAmB;YAgCnB,qBAAqB;YAgCrB,qBAAqB;IAyBnC,OAAO,CAAC,sBAAsB;YAkBhB,oBAAoB;IA6ClC,OAAO,CAAC,sBAAsB;IAI9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,OAAO,CAAC,kCAAkC;IAS1C,OAAO,CAAC,oCAAoC;IA8B5C,OAAO,CAAC,0BAA0B;IAuClC,OAAO,CAAC,kCAAkC;IA0B1C;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,yBAAyB;IAwBjC,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,gBAAgB;IAIxB;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,sBAAsB;CAU/B"}
1
+ {"version":3,"file":"companion-executions.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/executions/services/companion-executions.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAE1B,qCAA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,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,gBAAgB;IAIxB;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,sBAAsB;CAU/B"}
@@ -11,7 +11,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
11
11
  return function (target, key) { decorator(target, key, paramIndex); }
12
12
  };
13
13
  import { inject, injectable } from "inversify";
14
- import { ErrorBuilderBackendService, ExecutionContextCreatorBackendService, LoggerService, RepositoriesRegistryHandlerBackendService, ResourcePersistenceUnitOfWorkBackendService, ResourcesRegistryBackendService, SAAS_SERVICE_TYPES, WebSocketService, buildScopeRoomNotificationPayload, registerTransactionPostCommitEffect, } from "@wildo-ai/saas-backend-lib";
14
+ import { ErrorBuilderBackendService, ExecutionContextCreatorBackendService, LoggerService, RepositoriesRegistryHandlerBackendService, ResourcePersistenceUnitOfWorkBackendService, RepositoryArrayAdditionPlacement, ResourcesRegistryBackendService, SAAS_SERVICE_TYPES, WebSocketService, buildScopeRoomNotificationPayload, registerTransactionPostCommitEffect, } from "@wildo-ai/saas-backend-lib";
15
15
  import { CoreResourceOperation, CoreWebSocketEvent, ErrorCustomMessageReference, ErrorType, FlowsActors_ElementKind, FlowsActors_Status, ResourceAction, ResourceScopeRoomKey, ResourceSerializationUtils, deriveTrustedSystemWritePreservedFields, isWildoBackendError, } from '@wildo-ai/saas-models';
16
16
  import { CustomShared_ResourceType } from "@wildo-ai/platform-core-shared";
17
17
  import { COMPANION_SERVICE_TYPES } from "../../core/inject/models/service-types.js";
@@ -91,6 +91,8 @@ const COMPANION_EXECUTION_PERSISTENCE_PARTICIPANTS = Object.freeze({
91
91
  actorExecution: WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE,
92
92
  actorTask: WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE,
93
93
  });
94
+ /** How many times a status-less task write re-reads a row whose status moved under it (#1586 review F6). */
95
+ const TASK_STATUS_GUARD_ATTEMPTS = 3;
94
96
  let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionService {
95
97
  logger;
96
98
  errorBuilder;
@@ -255,8 +257,21 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
255
257
  throw new Error(`Actor-system execution '${executionId}' could not be updated: no row matches that id under `
256
258
  + `application '${ownership.wildoApplicationId}'. It was removed concurrently, or it belongs to another application.`);
257
259
  }
258
- this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, ownership, String(updated._id), ResourceAction.UPDATED);
259
- return updated;
260
+ /*
261
+ * A NON-terminal row has no finish instant — whatever wrote one before. The ordinary update can
262
+ * only set, so a run moved back to waiting after a withdraw was undone kept the withdraw's
263
+ * `finishedAt`, and the run record and the workbench then read a waiting run as finished at
264
+ * that instant (#1586 review N1). Cleared in the same transaction, only when there is one — and
265
+ * announced like every other write: this is the one that tells a watcher the run waits again.
266
+ */
267
+ let written = updated;
268
+ if (!isTerminal && updated.finishedAt !== undefined) {
269
+ await this.repositoriesRegistry.atomicConditionalSet(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, { _id: executionId, wildoApplicationId: ownership.wildoApplicationId }, { clear: ['finishedAt'] }, undefined, this.buildRepositoryOptions(transaction));
270
+ const { finishedAt: _cleared, ...unfinished } = updated;
271
+ written = unfinished;
272
+ }
273
+ this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, ownership, String(written._id), ResourceAction.UPDATED);
274
+ return written;
260
275
  });
261
276
  await this.traceOperationSuccess({
262
277
  sessionContext,
@@ -281,6 +296,104 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
281
296
  throw error;
282
297
  }
283
298
  }
299
+ /**
300
+ * Move a WAITING actor execution out of waiting — the compare-and-swap behind the engine port's
301
+ * `updateSuspendedExecution` (#1586). Answers the moved row, or `null` when the row is no longer
302
+ * waiting on `expected`, in which case NOTHING was written.
303
+ *
304
+ * ONE guarded statement: the predicate (this application, `AWAITING_APPROVAL`, and the suspension
305
+ * `expected` names) travels in the filter of `atomicGuardedMutation`, which compiles to a
306
+ * `findOneAndUpdate` on MongoDB and an `UPDATE … WHERE` on PostgreSQL. `updateActorExecution` is not
307
+ * reused: it reads the row and then writes it, which is exactly the window two decisions raced
308
+ * through. For the same reason the history entry is APPENDED in the statement rather than rebuilt
309
+ * from a read, and the two cleared fields use `clear`, the one spelling both adapters agree on.
310
+ *
311
+ * The suspension is matched by the field its reference was taken from — `suspensionId`, or
312
+ * `suspendedAt` for a row written before ids existed — which is `actorExecutionSuspensionRef`'s own
313
+ * rule, so a decision that names a suspension and the write that honours it cannot disagree.
314
+ */
315
+ async updateSuspendedActorExecution(executionId, expected, payload, sessionContext) {
316
+ const traceStep = this.createOperationTraceStep(sessionContext, "update-suspended-actor-execution");
317
+ await this.traceOperationStart({
318
+ sessionContext,
319
+ step: traceStep,
320
+ type: "actor-execution-update-start",
321
+ summary: `Move waiting actor execution ${executionId} out of waiting`,
322
+ payload: { executionId, status: payload.status },
323
+ artifactFileName: "actor-execution-swap-request.json",
324
+ artifactContent: { executionId, expected, payload },
325
+ });
326
+ try {
327
+ const moved = await this.resourcePersistenceUnitOfWork.executeTransaction({
328
+ boundary: 'companion-executions.update-suspended-actor-execution',
329
+ participants: COMPANION_EXECUTION_PERSISTENCE_PARTICIPANTS,
330
+ }, async ({ transaction }) => {
331
+ const ownership = await this.resolveOwnership(sessionContext);
332
+ const executionContext = await this.createInternalExecutionContext(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, CoreResourceOperation.UPDATE, sessionContext);
333
+ const updatedAt = new Date().toISOString();
334
+ const cleared = [
335
+ ...(payload.suspension === null ? ['suspension'] : []),
336
+ ...(payload.checkpoint === null ? ['checkpoint'] : []),
337
+ // A non-terminal move leaves no finish instant, as `updateActorExecution` guarantees (#1586 review N1).
338
+ ...(this.isTerminalStatus(payload.status) ? [] : ['finishedAt']),
339
+ ];
340
+ const updated = await this.repositoriesRegistry.atomicGuardedMutation(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, {
341
+ _id: executionId,
342
+ wildoApplicationId: ownership.wildoApplicationId,
343
+ status: FlowsActors_Status.AWAITING_APPROVAL,
344
+ ...(expected.suspensionId !== undefined
345
+ ? { 'suspension.suspensionId': expected.suspensionId }
346
+ : { 'suspension.suspendedAt': expected.suspendedAt }),
347
+ // A route moved since the read makes this match nothing (#1594 I5). A suspension written
348
+ // before routes existed carries no version and is matched by its identity alone.
349
+ ...(expected.routeVersion !== undefined ? { 'suspension.routeVersion': expected.routeVersion } : {}),
350
+ }, {
351
+ set: {
352
+ status: payload.status,
353
+ updatedAt,
354
+ ...(payload.suspension ? { suspension: payload.suspension } : {}),
355
+ ...(payload.checkpoint ? { checkpoint: payload.checkpoint } : {}),
356
+ ...(this.isTerminalStatus(payload.status) ? { finishedAt: payload.finishedAt ?? updatedAt } : {}),
357
+ },
358
+ ...(cleared.length > 0 ? { clear: cleared } : {}),
359
+ arrayAdditions: [{
360
+ path: 'statusChanges',
361
+ // How the wait ended rides on the change that ended it, in this statement (#1594 I4).
362
+ values: [{ status: payload.status, timestamp: updatedAt, ...(payload.resolution ? { resolution: payload.resolution } : {}) }],
363
+ placement: RepositoryArrayAdditionPlacement.TAIL,
364
+ distinctOnly: false,
365
+ }],
366
+ }, executionContext, this.buildRepositoryOptions(transaction));
367
+ if (updated !== null) {
368
+ this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, ownership, String(updated._id), ResourceAction.UPDATED);
369
+ }
370
+ return updated;
371
+ });
372
+ await this.traceOperationSuccess({
373
+ sessionContext,
374
+ step: traceStep,
375
+ type: "actor-execution-update-success",
376
+ summary: moved
377
+ ? `Moved waiting actor execution ${executionId} to ${payload.status}`
378
+ : `Actor execution ${executionId} was no longer waiting on that question; nothing was written`,
379
+ payload: { executionId, status: payload.status, moved: moved !== null },
380
+ artifactFileName: "actor-execution-swap-result.json",
381
+ artifactContent: moved ?? { moved: false },
382
+ });
383
+ return moved;
384
+ }
385
+ catch (error) {
386
+ await this.traceOperationFailure({
387
+ sessionContext,
388
+ step: traceStep,
389
+ type: "actor-execution-update-failure",
390
+ summary: `Failed to move waiting actor execution ${executionId}`,
391
+ error,
392
+ payload: { executionId, status: payload.status },
393
+ });
394
+ throw error;
395
+ }
396
+ }
284
397
  async createFlowExecution(payload, sessionContext) {
285
398
  const traceStep = this.createOperationTraceStep(sessionContext, "create-flow-execution");
286
399
  await this.traceOperationStart({
@@ -719,50 +832,78 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
719
832
  participants: COMPANION_EXECUTION_PERSISTENCE_PARTICIPANTS,
720
833
  }, async ({ transaction }) => {
721
834
  const ownership = await this.resolveOwnership(sessionContext);
722
- const existingTask = await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
723
- if (payload.wildoApplicationActorSystemExecutionId &&
724
- payload.wildoApplicationActorSystemExecutionId !== existingTask.wildoApplicationActorSystemExecutionId) {
725
- await this.readActorExecutionOrThrow(payload.wildoApplicationActorSystemExecutionId, ownership.wildoApplicationId, transaction, sessionContext);
726
- }
727
- const repository = this.repositoriesRegistry.getRepositoryOrThrow(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE);
728
- const executionContext = await this.createInternalExecutionContext(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, CoreResourceOperation.UPDATE, sessionContext);
729
- const updatedAt = payload.updatedAt ?? new Date().toISOString();
730
- const status = payload.status ?? existingTask.status;
731
- const shouldClearExecutionLink = payload.clearExecutionLink === true;
732
- const { clearExecutionLink: _clearExecutionLink, completedAt: payloadCompletedAt, ...payloadWithoutClearFlag } = payload;
733
- const shouldClearCompletedAt = !this.isTerminalStatus(status);
734
- const completedAt = shouldClearCompletedAt ? undefined : (payloadCompletedAt ?? existingTask.completedAt ?? updatedAt);
735
- const actorStates = payload.actorStates ?? existingTask.actorStates;
736
- const updateData = {
737
- ...payloadWithoutClearFlag,
738
- actorStates,
739
- status,
740
- updatedAt,
741
- ...(completedAt ? { completedAt } : {}),
742
- };
743
- await repository.update(executionContext, { _id: taskId, wildoApplicationId: ownership.wildoApplicationId }, updateData, {
744
- ...this.buildRepositoryOptions(transaction),
745
- // Derived allowlist (typically empty on UPDATE): the only fields the
746
- // update request DTO strips are the scope/audit FKs, and those are
747
- // never in this payload (`wildoApplicationId` is in the filter, not
748
- // the data). A re-linked `wildoApplicationActorSystemExecutionId` is
749
- // an ordinary relationship FK the DTO keeps, so it is not stripped.
750
- preserveServerInjectedFields: this.deriveServerInjectedPreserveFields(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, updateData, CoreResourceOperation.UPDATE),
751
- });
752
- if (shouldClearExecutionLink || shouldClearCompletedAt) {
753
- await this.unsetActorTaskFields(taskId, ownership.wildoApplicationId, {
754
- ...(shouldClearExecutionLink ? { wildoApplicationActorSystemExecutionId: 1 } : {}),
755
- ...(shouldClearCompletedAt ? { completedAt: 1 } : {}),
756
- }, transaction);
757
- }
758
- const updatedTask = await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
759
- if (existingTask.wildoApplicationActorSystemExecutionId &&
760
- existingTask.wildoApplicationActorSystemExecutionId !== updatedTask.wildoApplicationActorSystemExecutionId) {
761
- await this.removeTaskFromExecutionSnapshot(existingTask, transaction, sessionContext);
835
+ /*
836
+ * A write that names NO status still writes one — the one it read — because the row is written
837
+ * whole. Read, then written unconditionally, that re-asserted a stale status: a memory note
838
+ * landing just after a concurrent cancel put the task back to waiting and cleared its completion
839
+ * instant (#1586 review F6). So such a write is conditional on the status it read, and a lost
840
+ * race reads again and re-applies the payload to what is there now. A write that NAMES a status
841
+ * is a move and stays unconditional: moves out of waiting are the execution's swap (#1586).
842
+ */
843
+ for (let attempt = 1;; attempt += 1) {
844
+ const existingTask = await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
845
+ if (payload.wildoApplicationActorSystemExecutionId &&
846
+ payload.wildoApplicationActorSystemExecutionId !== existingTask.wildoApplicationActorSystemExecutionId) {
847
+ await this.readActorExecutionOrThrow(payload.wildoApplicationActorSystemExecutionId, ownership.wildoApplicationId, transaction, sessionContext);
848
+ }
849
+ const repository = this.repositoriesRegistry.getRepositoryOrThrow(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE);
850
+ const executionContext = await this.createInternalExecutionContext(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, CoreResourceOperation.UPDATE, sessionContext);
851
+ const updatedAt = payload.updatedAt ?? new Date().toISOString();
852
+ const status = payload.status ?? existingTask.status;
853
+ const shouldClearExecutionLink = payload.clearExecutionLink === true;
854
+ const { clearExecutionLink: _clearExecutionLink, completedAt: payloadCompletedAt, ...payloadWithoutClearFlag } = payload;
855
+ const shouldClearCompletedAt = !this.isTerminalStatus(status);
856
+ const completedAt = shouldClearCompletedAt ? undefined : (payloadCompletedAt ?? existingTask.completedAt ?? updatedAt);
857
+ const actorStates = payload.actorStates ?? existingTask.actorStates;
858
+ const updateData = {
859
+ ...payloadWithoutClearFlag,
860
+ actorStates,
861
+ status,
862
+ updatedAt,
863
+ ...(completedAt ? { completedAt } : {}),
864
+ };
865
+ const statusGuard = payload.status === undefined ? { status: existingTask.status } : {};
866
+ const written = await repository.update(executionContext, { _id: taskId, wildoApplicationId: ownership.wildoApplicationId, ...statusGuard }, updateData, {
867
+ ...this.buildRepositoryOptions(transaction),
868
+ // Derived allowlist (typically empty on UPDATE): the only fields the
869
+ // update request DTO strips are the scope/audit FKs, and those are
870
+ // never in this payload (`wildoApplicationId` is in the filter, not
871
+ // the data). A re-linked `wildoApplicationActorSystemExecutionId` is
872
+ // an ordinary relationship FK the DTO keeps, so it is not stripped.
873
+ preserveServerInjectedFields: this.deriveServerInjectedPreserveFields(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, updateData, CoreResourceOperation.UPDATE),
874
+ });
875
+ if (written === null) {
876
+ if (payload.status === undefined && attempt < TASK_STATUS_GUARD_ATTEMPTS)
877
+ continue;
878
+ // A row removed under the write answers the typed NOT_FOUND the read raises, as it always did (review N3)…
879
+ await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
880
+ // …and one that is there but kept moving is a conflict, not a server fault.
881
+ throw this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
882
+ customMessageReference: ErrorCustomMessageReference.CONFLICT,
883
+ context: {
884
+ // diagnostic (log-only)
885
+ taskId,
886
+ reason: payload.status === undefined
887
+ ? `its status kept moving across ${TASK_STATUS_GUARD_ATTEMPTS} attempts`
888
+ : 'the update matched no row under this application',
889
+ },
890
+ });
891
+ }
892
+ if (shouldClearExecutionLink || shouldClearCompletedAt) {
893
+ await this.unsetActorTaskFields(taskId, ownership.wildoApplicationId, {
894
+ ...(shouldClearExecutionLink ? { wildoApplicationActorSystemExecutionId: 1 } : {}),
895
+ ...(shouldClearCompletedAt ? { completedAt: 1 } : {}),
896
+ }, transaction);
897
+ }
898
+ const updatedTask = await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
899
+ if (existingTask.wildoApplicationActorSystemExecutionId &&
900
+ existingTask.wildoApplicationActorSystemExecutionId !== updatedTask.wildoApplicationActorSystemExecutionId) {
901
+ await this.removeTaskFromExecutionSnapshot(existingTask, transaction, sessionContext);
902
+ }
903
+ await this.syncTaskIntoExecutionSnapshot(updatedTask, transaction, sessionContext);
904
+ this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, ownership, String(updatedTask._id), ResourceAction.UPDATED);
905
+ return updatedTask;
762
906
  }
763
- await this.syncTaskIntoExecutionSnapshot(updatedTask, transaction, sessionContext);
764
- this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, ownership, String(updatedTask._id), ResourceAction.UPDATED);
765
- return updatedTask;
766
907
  });
767
908
  if (sessionContext) {
768
909
  await this.traceabilityService.registerAlias(sessionContext, CompanionTraceAliasKind.ACTOR_TASK, task._id);