@wildo-ai/dev-companion 1.1.1 → 1.1.3

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 (212) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +12 -1
  3. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  4. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +11 -0
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +153 -1
  7. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +408 -38
  9. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  10. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +25 -10
  11. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  12. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +65 -24
  13. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  14. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +70 -0
  15. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -0
  16. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +110 -0
  17. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -0
  18. package/dist/esm/companion-api/companion-api.schemas.d.ts +59 -2
  19. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  20. package/dist/esm/companion-api/companion-api.schemas.js +60 -0
  21. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  22. package/dist/esm/companion-api/controllers/companion.controller.d.ts +62 -1
  23. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  24. package/dist/esm/companion-api/controllers/companion.controller.js +295 -19
  25. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  26. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  27. package/dist/esm/core/inject/models/container.js +11 -0
  28. package/dist/esm/core/inject/models/container.js.map +1 -1
  29. package/dist/esm/core/inject/models/service-types.d.ts +5 -0
  30. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  31. package/dist/esm/core/inject/models/service-types.js +5 -0
  32. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  33. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  34. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +81 -0
  35. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  36. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +11 -1
  37. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  38. package/dist/esm/core/introspection/models/companion-introspection.models.js +39 -0
  39. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  40. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +8 -0
  41. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -0
  42. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +317 -0
  43. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -0
  44. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +45 -0
  45. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -0
  46. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +243 -0
  47. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -0
  48. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +123 -0
  49. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -0
  50. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +298 -0
  51. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -0
  52. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +78 -1
  53. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  54. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +155 -6
  55. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  56. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +131 -2
  57. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  58. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +259 -9
  59. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  60. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +243 -0
  61. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -0
  62. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +417 -0
  63. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -0
  64. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +186 -0
  65. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -0
  66. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +368 -0
  67. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -0
  68. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +101 -0
  69. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -0
  70. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +278 -0
  71. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -0
  72. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +370 -0
  73. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -0
  74. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js +167 -0
  75. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -0
  76. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  77. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +332 -3
  78. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  79. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +40 -0
  80. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -0
  81. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +126 -0
  82. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -0
  83. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +51 -0
  84. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -0
  85. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +391 -0
  86. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -0
  87. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +103 -0
  88. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -0
  89. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +124 -0
  90. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -0
  91. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +39 -2
  92. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  93. package/dist/esm/core/runtime/services/start-companion-application.service.js +122 -11
  94. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  95. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts +6 -0
  96. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  97. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  98. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts +23 -0
  99. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  100. package/dist/esm/core/specifications/specification-context-factory.shared.js +26 -4
  101. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  102. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  103. package/dist/esm/executions/services/companion-executions.companion.service.js +13 -8
  104. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  105. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +12 -0
  106. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -0
  107. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +12 -0
  108. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -0
  109. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -1
  110. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +1 -1
  111. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  112. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +13 -0
  113. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -0
  114. package/dist/esm/i18n/composite_views/app.creation-board.en.js +91 -0
  115. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +1 -0
  116. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts +38 -0
  117. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -0
  118. package/dist/esm/i18n/composite_views/app.domain-model.en.js +41 -0
  119. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -0
  120. package/dist/esm/i18n/index.d.ts +3 -3
  121. package/dist/esm/i18n/index.js +3 -3
  122. package/dist/esm/i18n/index.js.map +1 -1
  123. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +24 -0
  124. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -0
  125. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +20 -0
  126. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -0
  127. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +31 -0
  128. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -0
  129. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +27 -0
  130. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -0
  131. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +24 -0
  132. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -0
  133. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +20 -0
  134. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -0
  135. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +28 -0
  136. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -0
  137. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +24 -0
  138. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -0
  139. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +138 -0
  140. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -0
  141. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +100 -0
  142. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -0
  143. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +29 -0
  144. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -0
  145. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +25 -0
  146. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -0
  147. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +27 -0
  148. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -0
  149. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +23 -0
  150. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -0
  151. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +806 -0
  152. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -0
  153. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +326 -0
  154. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -0
  155. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +26 -0
  156. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -0
  157. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +22 -0
  158. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -0
  159. package/dist/esm/i18n/system_enums/market.en.d.ts +202 -0
  160. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -0
  161. package/dist/esm/i18n/system_enums/market.en.js +209 -0
  162. package/dist/esm/i18n/system_enums/market.en.js.map +1 -0
  163. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +31 -0
  164. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  165. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +91 -8
  166. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  167. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +4 -2
  168. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  169. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +10 -7
  170. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  171. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +80 -7
  172. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  173. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +261 -24
  174. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  175. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +46 -3
  176. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  177. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +95 -2
  178. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  179. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +9 -0
  180. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  181. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +13 -0
  182. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  183. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +12 -0
  184. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  185. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +23 -0
  186. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  187. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +113 -1
  188. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  189. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +517 -54
  190. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  191. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +40 -0
  192. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
  193. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +63 -1
  194. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +1 -1
  195. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +21 -0
  196. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  197. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +84 -2
  198. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  199. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +10 -1
  200. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  201. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +10 -1
  202. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  203. package/package.json +17 -17
  204. package/dist/esm/.builder.pid +0 -9
  205. package/dist/esm/i18n/resources/workbenchApplicationModules.en.d.ts +0 -36
  206. package/dist/esm/i18n/resources/workbenchApplicationModules.en.d.ts.map +0 -1
  207. package/dist/esm/i18n/resources/workbenchApplicationModules.en.js +0 -32
  208. package/dist/esm/i18n/resources/workbenchApplicationModules.en.js.map +0 -1
  209. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.d.ts +0 -29
  210. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.d.ts.map +0 -1
  211. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.js +0 -25
  212. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"execution-trace-read.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM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CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACtF,OAAO,GAAG;aACP,KAAK,CAAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;aACxC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,CAAC;gBAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAwB,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC;gBAAC,OAAO,EAAE,CAAC;YAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK,CAAC,SAAS,CAAC,UAAkB;QACxC,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAc,CAAC,CAAC;QACvF,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;YAC9D,WAAW;YACX,SAAS,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAc,CAAC,CAAC,CAAC,IAAI,EAAE;SACtG,CAAC,CAAC,CAAC,CAAC;IACP,CAAC;CACF,CAAA;AA/EY,kCAAkC;IAD9C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAFxC,kCAAkC,CA+E9C","sourcesContent":["import { readdir, readFile, stat } from 'node:fs/promises';\nimport { join } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\n\nimport { resolveAppLayout } from '@wildo-ai/platform-config-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\n\nexport interface ExecutionTraceSessionSummary {\n readonly sessionId: string;\n readonly startedAt: string;\n readonly label: string | null;\n readonly eventCount: number;\n readonly stepCount: number;\n}\n\nexport interface ExecutionTraceEvent {\n readonly timestamp: string;\n readonly type: string;\n readonly summary: string;\n readonly stepId?: string;\n readonly payload?: unknown;\n}\n\nexport interface ExecutionTraceStep {\n readonly stepDirName: string;\n /** File names only — a listing, not the bodies. One answer artifact can be tens of kilobytes. */\n readonly artifacts: readonly string[];\n}\n\nexport interface ExecutionTraceSession extends ExecutionTraceSessionSummary {\n readonly events: readonly ExecutionTraceEvent[];\n readonly steps: readonly ExecutionTraceStep[];\n}\n\nexport class ExecutionTraceNotFoundError extends Error {}\n\n/**\n * Read what a run recorded — the half that makes a trace a trace.\n *\n * Two write-only journal streams were deleted on 2026-08-24 for having no reader. The events this serves\n * are written by the same kind of code, and the difference is exactly this service: it shipped in the same\n * change as the writer, so \"a person can read it\" was true on day one rather than promised.\n *\n * It is READ-ONLY and takes no session identity from the caller beyond the id it is asked for — resolved\n * against the companion's own logs home, and refusing any id that is not a plain session directory name, so\n * a request cannot walk out of the tree it is allowed to read.\n */\n@injectable()\nexport class ExecutionTraceReadCompanionService {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {}\n\n public async listSessions(limit = 50): Promise<readonly ExecutionTraceSessionSummary[]> {\n const root = this.sessionsRoot();\n const names = await readdir(root).catch(() => [] as string[]);\n // Session directory names are `dev-<ISO-ish timestamp>-<suffix>`, so lexical DESC is chronological.\n const newestFirst = names.filter((name) => name.startsWith('dev-')).sort().reverse().slice(0, limit);\n const summaries = await Promise.all(newestFirst.map((name) => this.summarize(root, name)));\n return summaries.filter((entry): entry is ExecutionTraceSessionSummary => entry !== null);\n }\n\n public async readSession(sessionId: string): Promise<ExecutionTraceSession> {\n const root = this.sessionsRoot();\n // A session id is a directory NAME. Anything with a separator is a traversal attempt, not a typo.\n if (!/^[A-Za-z0-9._-]+$/.test(sessionId)) {\n throw new ExecutionTraceNotFoundError(`\"${sessionId}\" is not a session id.`);\n }\n const sessionDir = join(root, sessionId);\n const exists = await stat(sessionDir).then((entry) => entry.isDirectory(), () => false);\n if (!exists) throw new ExecutionTraceNotFoundError(`No trace session \"${sessionId}\".`);\n\n const summary = await this.summarize(root, sessionId);\n if (!summary) throw new ExecutionTraceNotFoundError(`Trace session \"${sessionId}\" has no readable session record.`);\n return { ...summary, events: await this.readEvents(sessionDir), steps: await this.readSteps(sessionDir) };\n }\n\n /** One artifact's body, by session and step and file name. The bodies are why the trace is worth keeping. */\n public async readArtifact(sessionId: string, stepDirName: string, fileName: string): Promise<string> {\n if (!/^[A-Za-z0-9._-]+$/.test(sessionId) || !/^[A-Za-z0-9._-]+$/.test(stepDirName) || !/^[A-Za-z0-9._-]+$/.test(fileName)) {\n throw new ExecutionTraceNotFoundError('Session, step and file names may contain no path separators.');\n }\n const path = join(this.sessionsRoot(), sessionId, 'steps', stepDirName, fileName);\n return readFile(path, 'utf8').catch(() => {\n throw new ExecutionTraceNotFoundError(`No artifact \"${fileName}\" in step \"${stepDirName}\" of session \"${sessionId}\".`);\n });\n }\n\n private sessionsRoot(): string {\n return join(resolveAppLayout(this.companionContext.saasRoot).companionLogsHome, 'sessions');\n }\n\n private async summarize(root: string, sessionId: string): Promise<ExecutionTraceSessionSummary | null> {\n const dir = join(root, sessionId);\n const record = await readFile(join(dir, 'session.json'), 'utf8').then(\n (raw) => JSON.parse(raw) as Record<string, unknown>,\n () => null,\n );\n if (!record) return null;\n const events = await this.readEvents(dir);\n const steps = await readdir(join(dir, 'steps')).catch(() => [] as string[]);\n return {\n sessionId,\n startedAt: typeof record.startedAt === 'string' ? record.startedAt : '',\n label: typeof record.label === 'string' ? record.label : null,\n eventCount: events.length,\n stepCount: steps.length,\n };\n }\n\n private async readEvents(sessionDir: string): Promise<readonly ExecutionTraceEvent[]> {\n const raw = await readFile(join(sessionDir, 'events.ndjson'), 'utf8').catch(() => '');\n return raw\n .split('\\n')\n .filter((line) => line.trim().length > 0)\n .flatMap((line) => {\n try { return [JSON.parse(line) as ExecutionTraceEvent]; } catch { return []; }\n });\n }\n\n private async readSteps(sessionDir: string): Promise<readonly ExecutionTraceStep[]> {\n const stepNames = await readdir(join(sessionDir, 'steps')).catch(() => [] as string[]);\n return Promise.all(stepNames.sort().map(async (stepDirName) => ({\n stepDirName,\n artifacts: (await readdir(join(sessionDir, 'steps', stepDirName)).catch(() => [] as string[])).sort(),\n })));\n }\n}\n"]}
1
+ {"version":3,"file":"execution-trace-read.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AA8BjF,MAAM,OAAO,2BAA4B,SAAQ,KAAK;CAAG;AAEzD;;;;;;;;;;GAUG;AAEI,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAEwB;IADrE,YACqE,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IACpG,CAAC;IAEG,KAAK,CAAC,YAAY,CAAC,KAAK,GAAG,EAAE;QAClC,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAc,CAAC,CAAC;QAC9D,oGAAoG;QACpG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AAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;aACxC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,CAAC;gBAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAwB,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC;gBAAC,OAAO,EAAE,CAAC;YAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK,CAAC,SAAS,CAAC,UAAkB;QACxC,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAc,CAAC,CAAC;QACvF,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;YAC9D,WAAW;YACX,SAAS,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAc,CAAC,CAAC,CAAC,IAAI,EAAE;SACtG,CAAC,CAAC,CAAC,CAAC;IACP,CAAC;CACF,CAAA;AA7FY,kCAAkC;IAD9C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAFxC,kCAAkC,CA6F9C","sourcesContent":["import { readdir, readFile, stat } from 'node:fs/promises';\nimport { join } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\n\nimport { resolveAppLayout } from '@wildo-ai/platform-config-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\n\nexport interface ExecutionTraceSessionSummary {\n readonly sessionId: string;\n readonly startedAt: string;\n readonly label: string | null;\n readonly eventCount: number;\n readonly stepCount: number;\n}\n\nexport interface ExecutionTraceEvent {\n readonly timestamp: string;\n readonly type: string;\n readonly summary: string;\n readonly stepId?: string;\n readonly payload?: unknown;\n}\n\nexport interface ExecutionTraceStep {\n readonly stepDirName: string;\n /** File names only — a listing, not the bodies. One answer artifact can be tens of kilobytes. */\n readonly artifacts: readonly string[];\n}\n\nexport interface ExecutionTraceSession extends ExecutionTraceSessionSummary {\n readonly events: readonly ExecutionTraceEvent[];\n readonly steps: readonly ExecutionTraceStep[];\n}\n\nexport class ExecutionTraceNotFoundError extends Error {}\n\n/**\n * Read what a run recorded — the half that makes a trace a trace.\n *\n * Two write-only journal streams were deleted on 2026-08-24 for having no reader. The events this serves\n * are written by the same kind of code, and the difference is exactly this service: it shipped in the same\n * change as the writer, so \"a person can read it\" was true on day one rather than promised.\n *\n * It is READ-ONLY and takes no session identity from the caller beyond the id it is asked for — resolved\n * against the companion's own logs home, and refusing any id that is not a plain session directory name, so\n * a request cannot walk out of the tree it is allowed to read.\n */\n@injectable()\nexport class ExecutionTraceReadCompanionService {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {}\n\n public async listSessions(limit = 50): Promise<readonly ExecutionTraceSessionSummary[]> {\n const root = this.sessionsRoot();\n const names = await readdir(root).catch(() => [] as string[]);\n // Session directory names are `dev-<ISO-ish timestamp>-<suffix>`, so lexical DESC is chronological.\n const newestFirst = names.filter((name) => name.startsWith('dev-')).sort().reverse().slice(0, limit);\n const summaries = await Promise.all(newestFirst.map((name) => this.summarize(root, name)));\n return summaries.filter((entry): entry is ExecutionTraceSessionSummary => entry !== null);\n }\n\n /**\n * Every session DIRECTORY NAME, unbounded and cheap — one readdir, no per-session summarize.\n *\n * Exists for JOIN resolution (a write record's runId → its session by longest-prefix match):\n * bounding that lookup with the display limit made records older than the newest N silently\n * lose their trace link, which is a correctness question the display bound has no business\n * answering (completion-review finding 11a).\n */\n public async listSessionIds(): Promise<readonly string[]> {\n const root = this.sessionsRoot();\n const names = await readdir(root).catch(() => [] as string[]);\n return names.filter((name) => name.startsWith('dev-'));\n }\n\n public async readSession(sessionId: string): Promise<ExecutionTraceSession> {\n const root = this.sessionsRoot();\n // A session id is a directory NAME. Anything with a separator is a traversal attempt, not a typo.\n if (!/^[A-Za-z0-9._-]+$/.test(sessionId)) {\n throw new ExecutionTraceNotFoundError(`\"${sessionId}\" is not a session id.`);\n }\n const sessionDir = join(root, sessionId);\n const exists = await stat(sessionDir).then((entry) => entry.isDirectory(), () => false);\n if (!exists) throw new ExecutionTraceNotFoundError(`No trace session \"${sessionId}\".`);\n\n const summary = await this.summarize(root, sessionId);\n if (!summary) throw new ExecutionTraceNotFoundError(`Trace session \"${sessionId}\" has no readable session record.`);\n return { ...summary, events: await this.readEvents(sessionDir), steps: await this.readSteps(sessionDir) };\n }\n\n /** One artifact's body, by session and step and file name. The bodies are why the trace is worth keeping. */\n public async readArtifact(sessionId: string, stepDirName: string, fileName: string): Promise<string> {\n if (!/^[A-Za-z0-9._-]+$/.test(sessionId) || !/^[A-Za-z0-9._-]+$/.test(stepDirName) || !/^[A-Za-z0-9._-]+$/.test(fileName)) {\n throw new ExecutionTraceNotFoundError('Session, step and file names may contain no path separators.');\n }\n const path = join(this.sessionsRoot(), sessionId, 'steps', stepDirName, fileName);\n return readFile(path, 'utf8').catch(() => {\n throw new ExecutionTraceNotFoundError(`No artifact \"${fileName}\" in step \"${stepDirName}\" of session \"${sessionId}\".`);\n });\n }\n\n private sessionsRoot(): string {\n return join(resolveAppLayout(this.companionContext.saasRoot).companionLogsHome, 'sessions');\n }\n\n private async summarize(root: string, sessionId: string): Promise<ExecutionTraceSessionSummary | null> {\n const dir = join(root, sessionId);\n const record = await readFile(join(dir, 'session.json'), 'utf8').then(\n (raw) => JSON.parse(raw) as Record<string, unknown>,\n () => null,\n );\n if (!record) return null;\n const events = await this.readEvents(dir);\n const steps = await readdir(join(dir, 'steps')).catch(() => [] as string[]);\n return {\n sessionId,\n startedAt: typeof record.startedAt === 'string' ? record.startedAt : '',\n label: typeof record.label === 'string' ? record.label : null,\n eventCount: events.length,\n stepCount: steps.length,\n };\n }\n\n private async readEvents(sessionDir: string): Promise<readonly ExecutionTraceEvent[]> {\n const raw = await readFile(join(sessionDir, 'events.ndjson'), 'utf8').catch(() => '');\n return raw\n .split('\\n')\n .filter((line) => line.trim().length > 0)\n .flatMap((line) => {\n try { return [JSON.parse(line) as ExecutionTraceEvent]; } catch { return []; }\n });\n }\n\n private async readSteps(sessionDir: string): Promise<readonly ExecutionTraceStep[]> {\n const stepNames = await readdir(join(sessionDir, 'steps')).catch(() => [] as string[]);\n return Promise.all(stepNames.sort().map(async (stepDirName) => ({\n stepDirName,\n artifacts: (await readdir(join(sessionDir, 'steps', stepDirName)).catch(() => [] as string[])).sort(),\n })));\n }\n}\n"]}
@@ -51,6 +51,18 @@ export declare class PlaybookRunWriteRegisterCompanionService {
51
51
  private readonly logger;
52
52
  private readonly companionContext;
53
53
  private readonly logDebug;
54
+ /**
55
+ * Notified after every mutation of the register (a `record` or a `revert`).
56
+ *
57
+ * The seam exists for the creation-plane eligibility cache: a run landing files is exactly the
58
+ * event that changes playbook eligibility, and the projection service subscribes here rather
59
+ * than being injected INTO this service (which would cycle — it already depends on this one).
60
+ * Listeners are fire-and-forget and must not throw; a cache invalidation failing must never
61
+ * fail the write it observes.
62
+ */
63
+ private readonly mutationListeners;
64
+ registerMutationListener(listener: () => void): void;
65
+ private notifyMutation;
54
66
  constructor(logger: LoggerService, companionContext: CompanionContext);
55
67
  record(record: PlaybookRunWriteRecord): Promise<void>;
56
68
  /** Newest first. A record that no longer parses is skipped (a cache never fails its reader). */
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-run-write-register.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-run-write-register.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,C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E,MAAM,EAAE,OAAO,GAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAuCjH,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,iBAAiB;CAK1B"}
@@ -63,6 +63,27 @@ let PlaybookRunWriteRegisterCompanionService = class PlaybookRunWriteRegisterCom
63
63
  logger;
64
64
  companionContext;
65
65
  logDebug;
66
+ /**
67
+ * Notified after every mutation of the register (a `record` or a `revert`).
68
+ *
69
+ * The seam exists for the creation-plane eligibility cache: a run landing files is exactly the
70
+ * event that changes playbook eligibility, and the projection service subscribes here rather
71
+ * than being injected INTO this service (which would cycle — it already depends on this one).
72
+ * Listeners are fire-and-forget and must not throw; a cache invalidation failing must never
73
+ * fail the write it observes.
74
+ */
75
+ mutationListeners = [];
76
+ registerMutationListener(listener) {
77
+ this.mutationListeners.push(listener);
78
+ }
79
+ notifyMutation() {
80
+ for (const listener of this.mutationListeners) {
81
+ try {
82
+ listener();
83
+ }
84
+ catch { /* a listener must never fail the write it observes */ }
85
+ }
86
+ }
66
87
  constructor(logger, companionContext) {
67
88
  this.logger = logger;
68
89
  this.companionContext = companionContext;
@@ -74,6 +95,7 @@ let PlaybookRunWriteRegisterCompanionService = class PlaybookRunWriteRegisterCom
74
95
  await mkdir(registerDirectory, { recursive: true });
75
96
  await writeFile(this.resolveRecordPath(parsed.runId), `${JSON.stringify(parsed, null, 2)}\n`, 'utf8');
76
97
  this.logDebug('Recorded run writes', { runId: parsed.runId, files: parsed.files.length });
98
+ this.notifyMutation();
77
99
  }
78
100
  /** Newest first. A record that no longer parses is skipped (a cache never fails its reader). */
79
101
  async list() {
@@ -132,6 +154,7 @@ let PlaybookRunWriteRegisterCompanionService = class PlaybookRunWriteRegisterCom
132
154
  await rm(this.resolveRecordPath(runId), { force: true });
133
155
  }
134
156
  this.logDebug('Reverted run writes', { runId, reverted: reverted.length, refused: refusedDiverged.length });
157
+ this.notifyMutation();
135
158
  return { runId, reverted, refusedDiverged };
136
159
  }
137
160
  resolveRegisterDirectory() {
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-run-write-register.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-run-write-register.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGjF,4DAA4D;AAC5D,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IACxC,kDAAkD;IAClD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;IAC1B,yDAAyD;IACzD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,4GAA4G;IAC5G,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAA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AAC;QAC3B,CAAC;QAED,sGAAsG;QACtG,2FAA2F;QAC3F,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjC,MAAM,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5G,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC9C,CAAC;IAEO,wBAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6CAA6C,CAAC,CAAC;IACrG,CAAC;IAEO,iBAAiB,CAAC,KAAa;QACrC,iEAAiE;QACjE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,+BAA+B,CAAC,CAAC;QACvG,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IACrE,CAAC;CACF,CAAA;AApFY,wCAAwC;IADpD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GALxC,wCAAwC,CAoFpD","sourcesContent":["import { mkdir, readFile, readdir, rm, unlink, writeFile } from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { z } from 'zod';\n\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\n\n/** One file a run wrote, with everything a revert needs. */\nconst RunWriteFileSchema = z.strictObject({\n /** App-root-relative path of the written file. */\n path: z.string().min(1),\n existedBefore: z.boolean(),\n /** The file's bytes before the run, when one existed. */\n previousContent: z.string().optional(),\n /** The exact bytes the run wrote — revert refuses when the file has moved on from these (unless forced). */\n writtenContent: z.string().min(1),\n});\n\nconst RunWriteRecordSchema = z.strictObject({\n runId: z.string().min(1),\n playbookRef: z.string().min(1),\n at: z.string().min(1),\n files: z.array(RunWriteFileSchema).min(1),\n});\nexport type PlaybookRunWriteRecord = z.infer<typeof RunWriteRecordSchema>;\n\nexport interface PlaybookRunRevertOutcome {\n readonly runId: string;\n readonly reverted: readonly string[];\n /** Files whose CURRENT bytes differ from what the run wrote — refused without `force` so a human edit is never silently destroyed. */\n readonly refusedDiverged: readonly string[];\n}\n\nexport class PlaybookRunWriteRecordNotFoundError extends Error {\n public constructor(runId: string) {\n super(`No write record exists for run \"${runId}\".`);\n }\n}\n\n/**\n * The per-run WRITE REGISTER: which files each playbook run wrote, with pre-images, so any run can be\n * reverted in one call while mechanisms are being exercised.\n *\n * ## A runtime convenience, not a second truth\n *\n * Records live in the gitignored companion state directory. Deleting them all costs exactly the\n * convenience — git still holds every accepted state, and `git diff` still shows every un-accepted write.\n * Nothing reads these records to make a decision; the ONLY consumers are the list/revert doors below,\n * both operated by a human testing the mechanism. (`.claude/rules/one-source-of-truth.md`: cache, not\n * ledger — losing it costs time, never truth.)\n *\n * ## Revert protects the human's later edits\n *\n * Revert restores a file's pre-image (or deletes a file the run created) ONLY when the file still holds\n * the exact bytes the run wrote. A file that has moved on — a human edited it after the run — is refused\n * and reported, because destroying a person's edit to undo a machine's is the wrong trade. `force`\n * overrides per explicit request.\n *\n * This register is also the natural future home of per-file run locking (issue #48): the mechanism that\n * knows which files a run touches is the one that can hold locks between concurrent CLIs.\n */\n@injectable()\nexport class PlaybookRunWriteRegisterCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('PlaybookRunWriteRegister');\n }\n\n public async record(record: PlaybookRunWriteRecord): Promise<void> {\n const parsed = RunWriteRecordSchema.parse(record);\n const registerDirectory = this.resolveRegisterDirectory();\n await mkdir(registerDirectory, { recursive: true });\n await writeFile(this.resolveRecordPath(parsed.runId), `${JSON.stringify(parsed, null, 2)}\\n`, 'utf8');\n this.logDebug('Recorded run writes', { runId: parsed.runId, files: parsed.files.length });\n }\n\n /** Newest first. A record that no longer parses is skipped (a cache never fails its reader). */\n public async list(): Promise<readonly PlaybookRunWriteRecord[]> {\n const registerDirectory = this.resolveRegisterDirectory();\n const entries = await readdir(registerDirectory).catch((error: NodeJS.ErrnoException) => {\n if (error?.code === 'ENOENT') return [] as string[];\n throw error;\n });\n const records: PlaybookRunWriteRecord[] = [];\n for (const entry of entries.filter((name) => name.endsWith('.json'))) {\n try {\n const raw = await readFile(path.join(registerDirectory, entry), 'utf8');\n records.push(RunWriteRecordSchema.parse(JSON.parse(raw)));\n } catch {\n this.logDebug('Skipping unreadable run-write record', { entry });\n }\n }\n return records.sort((left, right) => right.at.localeCompare(left.at));\n }\n\n public async revert(runId: string, options: { readonly force?: boolean } = {}): Promise<PlaybookRunRevertOutcome> {\n const raw = await readFile(this.resolveRecordPath(runId), 'utf8').catch((error: NodeJS.ErrnoException) => {\n if (error?.code === 'ENOENT') throw new PlaybookRunWriteRecordNotFoundError(runId);\n throw error;\n });\n const record = RunWriteRecordSchema.parse(JSON.parse(raw));\n\n const reverted: string[] = [];\n const refusedDiverged: string[] = [];\n for (const file of record.files) {\n const absolutePath = path.resolve(this.companionContext.saasRoot, file.path);\n const current = await readFile(absolutePath, 'utf8').catch((error: NodeJS.ErrnoException) => {\n if (error?.code === 'ENOENT') return undefined;\n throw error;\n });\n if (options.force !== true && current !== undefined && current !== file.writtenContent) {\n refusedDiverged.push(file.path);\n continue;\n }\n if (file.existedBefore && file.previousContent !== undefined) {\n await writeFile(absolutePath, file.previousContent, 'utf8');\n } else {\n await unlink(absolutePath).catch((error: NodeJS.ErrnoException) => {\n if (error?.code !== 'ENOENT') throw error;\n });\n }\n reverted.push(file.path);\n }\n\n // The record is consumed only when every file it covers has been settled — a partial revert keeps it,\n // so the refused files can be reverted later (with force) without losing their pre-images.\n if (refusedDiverged.length === 0) {\n await rm(this.resolveRecordPath(runId), { force: true });\n }\n this.logDebug('Reverted run writes', { runId, reverted: reverted.length, refused: refusedDiverged.length });\n return { runId, reverted, refusedDiverged };\n }\n\n private resolveRegisterDirectory(): string {\n return path.resolve(this.companionContext.saasRoot, '.wildo-saas/state/meta-workflows/run-writes');\n }\n\n private resolveRecordPath(runId: string): string {\n // The runId doubles as a file name; refuse anything path-shaped.\n if (!/^[a-zA-Z0-9._-]+$/.test(runId)) throw new Error(`Run id \"${runId}\" is not a valid record name.`);\n return path.join(this.resolveRegisterDirectory(), `${runId}.json`);\n }\n}\n"]}
1
+ {"version":3,"file":"playbook-run-write-register.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-run-write-register.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,w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AAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5G,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC9C,CAAC;IAEO,wBAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6CAA6C,CAAC,CAAC;IACrG,CAAC;IAEO,iBAAiB,CAAC,KAAa;QACrC,iEAAiE;QACjE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,+BAA+B,CAAC,CAAC;QACvG,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IACrE,CAAC;CACF,CAAA;AA3GY,wCAAwC;IADpD,UAAU,EAAE;IA0BR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GA1BxC,wCAAwC,CA2GpD","sourcesContent":["import { mkdir, readFile, readdir, rm, unlink, writeFile } from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { z } from 'zod';\n\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\n\n/** One file a run wrote, with everything a revert needs. */\nconst RunWriteFileSchema = z.strictObject({\n /** App-root-relative path of the written file. */\n path: z.string().min(1),\n existedBefore: z.boolean(),\n /** The file's bytes before the run, when one existed. */\n previousContent: z.string().optional(),\n /** The exact bytes the run wrote — revert refuses when the file has moved on from these (unless forced). */\n writtenContent: z.string().min(1),\n});\n\nconst RunWriteRecordSchema = z.strictObject({\n runId: z.string().min(1),\n playbookRef: z.string().min(1),\n at: z.string().min(1),\n files: z.array(RunWriteFileSchema).min(1),\n});\nexport type PlaybookRunWriteRecord = z.infer<typeof RunWriteRecordSchema>;\n\nexport interface PlaybookRunRevertOutcome {\n readonly runId: string;\n readonly reverted: readonly string[];\n /** Files whose CURRENT bytes differ from what the run wrote — refused without `force` so a human edit is never silently destroyed. */\n readonly refusedDiverged: readonly string[];\n}\n\nexport class PlaybookRunWriteRecordNotFoundError extends Error {\n public constructor(runId: string) {\n super(`No write record exists for run \"${runId}\".`);\n }\n}\n\n/**\n * The per-run WRITE REGISTER: which files each playbook run wrote, with pre-images, so any run can be\n * reverted in one call while mechanisms are being exercised.\n *\n * ## A runtime convenience, not a second truth\n *\n * Records live in the gitignored companion state directory. Deleting them all costs exactly the\n * convenience — git still holds every accepted state, and `git diff` still shows every un-accepted write.\n * Nothing reads these records to make a decision; the ONLY consumers are the list/revert doors below,\n * both operated by a human testing the mechanism. (`.claude/rules/one-source-of-truth.md`: cache, not\n * ledger — losing it costs time, never truth.)\n *\n * ## Revert protects the human's later edits\n *\n * Revert restores a file's pre-image (or deletes a file the run created) ONLY when the file still holds\n * the exact bytes the run wrote. A file that has moved on — a human edited it after the run — is refused\n * and reported, because destroying a person's edit to undo a machine's is the wrong trade. `force`\n * overrides per explicit request.\n *\n * This register is also the natural future home of per-file run locking (issue #48): the mechanism that\n * knows which files a run touches is the one that can hold locks between concurrent CLIs.\n */\n@injectable()\nexport class PlaybookRunWriteRegisterCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n /**\n * Notified after every mutation of the register (a `record` or a `revert`).\n *\n * The seam exists for the creation-plane eligibility cache: a run landing files is exactly the\n * event that changes playbook eligibility, and the projection service subscribes here rather\n * than being injected INTO this service (which would cycle — it already depends on this one).\n * Listeners are fire-and-forget and must not throw; a cache invalidation failing must never\n * fail the write it observes.\n */\n private readonly mutationListeners: Array<() => void> = [];\n\n public registerMutationListener(listener: () => void): void {\n this.mutationListeners.push(listener);\n }\n\n private notifyMutation(): void {\n for (const listener of this.mutationListeners) {\n try { listener(); } catch { /* a listener must never fail the write it observes */ }\n }\n }\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('PlaybookRunWriteRegister');\n }\n\n public async record(record: PlaybookRunWriteRecord): Promise<void> {\n const parsed = RunWriteRecordSchema.parse(record);\n const registerDirectory = this.resolveRegisterDirectory();\n await mkdir(registerDirectory, { recursive: true });\n await writeFile(this.resolveRecordPath(parsed.runId), `${JSON.stringify(parsed, null, 2)}\\n`, 'utf8');\n this.logDebug('Recorded run writes', { runId: parsed.runId, files: parsed.files.length });\n this.notifyMutation();\n }\n\n /** Newest first. A record that no longer parses is skipped (a cache never fails its reader). */\n public async list(): Promise<readonly PlaybookRunWriteRecord[]> {\n const registerDirectory = this.resolveRegisterDirectory();\n const entries = await readdir(registerDirectory).catch((error: NodeJS.ErrnoException) => {\n if (error?.code === 'ENOENT') return [] as string[];\n throw error;\n });\n const records: PlaybookRunWriteRecord[] = [];\n for (const entry of entries.filter((name) => name.endsWith('.json'))) {\n try {\n const raw = await readFile(path.join(registerDirectory, entry), 'utf8');\n records.push(RunWriteRecordSchema.parse(JSON.parse(raw)));\n } catch {\n this.logDebug('Skipping unreadable run-write record', { entry });\n }\n }\n return records.sort((left, right) => right.at.localeCompare(left.at));\n }\n\n public async revert(runId: string, options: { readonly force?: boolean } = {}): Promise<PlaybookRunRevertOutcome> {\n const raw = await readFile(this.resolveRecordPath(runId), 'utf8').catch((error: NodeJS.ErrnoException) => {\n if (error?.code === 'ENOENT') throw new PlaybookRunWriteRecordNotFoundError(runId);\n throw error;\n });\n const record = RunWriteRecordSchema.parse(JSON.parse(raw));\n\n const reverted: string[] = [];\n const refusedDiverged: string[] = [];\n for (const file of record.files) {\n const absolutePath = path.resolve(this.companionContext.saasRoot, file.path);\n const current = await readFile(absolutePath, 'utf8').catch((error: NodeJS.ErrnoException) => {\n if (error?.code === 'ENOENT') return undefined;\n throw error;\n });\n if (options.force !== true && current !== undefined && current !== file.writtenContent) {\n refusedDiverged.push(file.path);\n continue;\n }\n if (file.existedBefore && file.previousContent !== undefined) {\n await writeFile(absolutePath, file.previousContent, 'utf8');\n } else {\n await unlink(absolutePath).catch((error: NodeJS.ErrnoException) => {\n if (error?.code !== 'ENOENT') throw error;\n });\n }\n reverted.push(file.path);\n }\n\n // The record is consumed only when every file it covers has been settled — a partial revert keeps it,\n // so the refused files can be reverted later (with force) without losing their pre-images.\n if (refusedDiverged.length === 0) {\n await rm(this.resolveRecordPath(runId), { force: true });\n }\n this.logDebug('Reverted run writes', { runId, reverted: reverted.length, refused: refusedDiverged.length });\n this.notifyMutation();\n return { runId, reverted, refusedDiverged };\n }\n\n private resolveRegisterDirectory(): string {\n return path.resolve(this.companionContext.saasRoot, '.wildo-saas/state/meta-workflows/run-writes');\n }\n\n private resolveRecordPath(runId: string): string {\n // The runId doubles as a file name; refuse anything path-shaped.\n if (!/^[a-zA-Z0-9._-]+$/.test(runId)) throw new Error(`Run id \"${runId}\" is not a valid record name.`);\n return path.join(this.resolveRegisterDirectory(), `${runId}.json`);\n }\n}\n"]}
@@ -8,11 +8,23 @@ import { ApplicationBuildDispatchCompanionService } from './application-build-di
8
8
  import { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service';
9
9
  import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';
10
10
  import { FoundationExecutorCompanionService, type FoundationExecutionResult } from './foundation-executor.companion.service';
11
+ import { CodingAgentDispatchCompanionService } from '../../claude-cli/services/coding-agent-dispatch.companion.service';
11
12
  import { PlaybookChoreographyCheckpointCompanionService } from './playbook-choreography-checkpoint.companion.service';
12
13
  import { PlaybookSuspendedRunCompanionService } from './playbook-suspended-run.companion.service';
13
14
  import type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';
14
15
  import { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';
15
16
  import type { CompanionContext } from '../../core/context/companion-context';
17
+ /** One detached (async-submitted) run's outcome — the poll answer for #265's envelope fix. */
18
+ export interface PlaybookDetachedRunRecord {
19
+ readonly playbookRef: string;
20
+ readonly startedAt: string;
21
+ readonly finishedAt: string;
22
+ readonly ok: boolean;
23
+ /** Present when ok — the same envelope the synchronous route would have returned. */
24
+ readonly result?: unknown;
25
+ /** Present when not ok — the failure, named (never "[object Object]"; see the ACP rejection fix). */
26
+ readonly error?: string;
27
+ }
16
28
  /** The requested playbook ref is not in the compiled catalog. Named so the transport can answer 404 rather than 500. */
17
29
  export declare class UnknownPlaybookError extends Error {
18
30
  }
@@ -30,6 +42,7 @@ export declare class PlaybookRunCompanionService {
30
42
  private readonly traceability;
31
43
  private readonly writeRegister;
32
44
  private readonly buildDispatch;
45
+ private readonly codingAgentDispatch;
33
46
  private readonly git;
34
47
  private readonly introspection;
35
48
  private readonly foundationExecutor;
@@ -37,7 +50,7 @@ export declare class PlaybookRunCompanionService {
37
50
  private readonly choreographyCheckpoints;
38
51
  private readonly structuredDeliberation;
39
52
  private readonly logDebug;
40
- constructor(logger: LoggerService, companionContext: CompanionContext, researchDispatch: ResearchAgentDispatchCompanionService, agents: AgentsBackendService, traceability: CompanionTraceabilityService, writeRegister: PlaybookRunWriteRegisterCompanionService, buildDispatch: ApplicationBuildDispatchCompanionService, git: GitChangeSetCompanionService, introspection: CompanionIntrospectionService, foundationExecutor: FoundationExecutorCompanionService, suspendedRuns: PlaybookSuspendedRunCompanionService, choreographyCheckpoints: PlaybookChoreographyCheckpointCompanionService, structuredDeliberation: StructuredDeliberationCompanionService);
53
+ constructor(logger: LoggerService, companionContext: CompanionContext, researchDispatch: ResearchAgentDispatchCompanionService, agents: AgentsBackendService, traceability: CompanionTraceabilityService, writeRegister: PlaybookRunWriteRegisterCompanionService, buildDispatch: ApplicationBuildDispatchCompanionService, codingAgentDispatch: CodingAgentDispatchCompanionService, git: GitChangeSetCompanionService, introspection: CompanionIntrospectionService, foundationExecutor: FoundationExecutorCompanionService, suspendedRuns: PlaybookSuspendedRunCompanionService, choreographyCheckpoints: PlaybookChoreographyCheckpointCompanionService, structuredDeliberation: StructuredDeliberationCompanionService);
41
54
  /**
42
55
  * The eligibility board: every compiled playbook, whether it can run RIGHT NOW, and why not.
43
56
  *
@@ -202,6 +215,19 @@ export declare class PlaybookRunCompanionService {
202
215
  * is reported UNDECLARED, which is what "nobody has established this" looks like.
203
216
  */
204
217
  private resolveProcessorRegister;
218
+ /**
219
+ * BOTH fact families (#192).
220
+ *
221
+ * A document asserts the FACT, not one family's declaration of it, so reading only the derived half
222
+ * would refuse every clause resting on a fact a human established. Each half is optional and parsed
223
+ * independently: one unreadable file must not erase the other's facts, because that would turn a
224
+ * wiring failure into a content verdict
225
+ * (`.claude/rules/negative-results-require-a-positive-probe.md`).
226
+ *
227
+ * Returns nothing when NEITHER is readable — an empty availability map means "check against nothing"
228
+ * and refuses every citation, which is the wrong answer for an application that has simply not run
229
+ * `refinement.document-facts`.
230
+ */
205
231
  private resolveDeclaredDocumentFacts;
206
232
  /**
207
233
  * Refresh `src/COHERENCE.md` from the tree this run produced.
@@ -371,6 +397,8 @@ export declare class PlaybookRunCompanionService {
371
397
  readonly creatorBrief?: string;
372
398
  /** Answers to the questions this playbook DECLARES. Required in full when it declares any. */
373
399
  readonly elicitationAnswers?: readonly PlaybookElicitationAnswer[];
400
+ /** Set by the choreography driver on a CHILD run: the parent composite's rendered elicitation. */
401
+ readonly parentElicitationSection?: string;
374
402
  /** The request's trace session, so this run's evidence lands beside the LLM call it explains. */
375
403
  readonly session?: CompanionExecutionSessionContext;
376
404
  /** Full pipe — generation, validation, rendering, judge — with NO filesystem writes. For testing playbooks. */
@@ -420,6 +448,31 @@ export declare class PlaybookRunCompanionService {
420
448
  judge?: PlaybookJudgeResult;
421
449
  accepted: false;
422
450
  }
451
+ /**
452
+ * A VERIFICATION run: the playbook declares `executor: DETERMINISTIC_CLI`, so its deliverable is
453
+ * the outcome of named checks run against the already-built application (issue #147).
454
+ *
455
+ * `passed` is the whole-run answer and is `null` under `dryRun`, where the checks were resolved
456
+ * and deliberately not executed — a boolean there would have to be invented, and inventing it is
457
+ * how a dry run comes to be read as a pass.
458
+ *
459
+ * `infrastructureError` is separate from a failing check on purpose: "the application does not
460
+ * typecheck" and "the typecheck could not be run" send an operator to different places.
461
+ */
462
+ | {
463
+ playbookRef: string;
464
+ verified: true;
465
+ dryRun?: true;
466
+ checkRefs: readonly string[];
467
+ checks: readonly {
468
+ checkRef: string;
469
+ success: boolean;
470
+ message: string;
471
+ }[];
472
+ passed: boolean | null;
473
+ infrastructureError?: string;
474
+ accepted: false;
475
+ }
423
476
  /**
424
477
  * A DISPATCH run: the playbook declares `executor: CODING_AGENT`, so its deliverable is a build
425
478
  * task actually run in the workspace rather than a file or a verdict.
@@ -561,7 +614,26 @@ export declare class PlaybookRunCompanionService {
561
614
  * shape of the same one: a fact producer authors no sections and needs the closed name set, and
562
615
  * burying eight lines under section obligations is how a prompt section gets skimmed.
563
616
  */
617
+ /** The closed objective/source sets a compliance programme may draw on. See {@link composeAssuranceProgramAuthorityBrief}. */
618
+ private composeAssuranceProgramAuthoritySection;
564
619
  private composeDocumentFactObligationsSection;
620
+ /**
621
+ * The application's BILLING configuration, as the terms lane needs it (#227).
622
+ *
623
+ * Read from the backend companion exports rather than from `wildo.saas.config.ts`, because that is
624
+ * where it lives: `billing` is declared in the application's `saas-config.backend.ts` and reaches the
625
+ * runtime `AppConfiguration`, not the root config the companion already holds.
626
+ *
627
+ * THREE outcomes, never two. "The configuration could not be read" and "the application declares no
628
+ * billing" are different facts with different consequences — the first means the question was not
629
+ * asked, the second is a positive statement that nothing is sold through the framework — and a
630
+ * drafter told the wrong one writes a confident clause about a product it never saw. Collapsing them
631
+ * into `undefined` is the conflation this whole lane exists to refuse.
632
+ *
633
+ * Best-effort by design: this brief must not be the reason a run fails. An unreadable configuration
634
+ * is rendered as unreadable and the drafter marks the gap.
635
+ */
636
+ private resolveBillingDeclaration;
565
637
  private composeCompliancePrimaryFactsSection;
566
638
  private composeWorkspaceTruthSection;
567
639
  /**
@@ -652,7 +724,47 @@ export declare class PlaybookRunCompanionService {
652
724
  readonly startedAt: string;
653
725
  } | null;
654
726
  interrupted: Awaited<ReturnType<PlaybookChoreographyCheckpointCompanionService['list']>>;
727
+ lastCompleted: readonly PlaybookDetachedRunRecord[];
655
728
  }>;
729
+ /**
730
+ * The most recent DETACHED run outcome per playbook ref — the read side of async submission (#265).
731
+ *
732
+ * In memory deliberately (one-source-of-truth Rule 5: a per-run cache; a restart costs the summary
733
+ * and no fact — the artifacts are in the tree and the details in the traces). Bounded to one entry
734
+ * per ref, because the question this answers is "what happened to the run I submitted", not a
735
+ * history — the traces are the history.
736
+ */
737
+ private lastCompletedDetachedRuns;
738
+ /**
739
+ * Submit a run and return IMMEDIATELY — the async half of #265's envelope fix.
740
+ *
741
+ * The synchronous route holds one HTTP request open for the run's whole life, and the server's
742
+ * 30-minute request ceiling is SHORTER than a choreography's own duration bound — measured twice:
743
+ * the connection dies at exactly 1800s, the run continues and even completes server-side, and the
744
+ * caller gets HTTP 000 instead of a result. This path returns at submission; the caller polls
745
+ * `readRunsInFlight`, whose `lastCompleted` carries the outcome (including a failure — an async
746
+ * submission must never turn an error into silence).
747
+ */
748
+ submitPlaybookRunDetached(input: Parameters<PlaybookRunCompanionService['runPlaybook']>[0]): {
749
+ readonly accepted: false;
750
+ readonly async: true;
751
+ readonly playbookRef: string;
752
+ readonly note: string;
753
+ };
754
+ /**
755
+ * Every run waiting for its creator to answer — a THIRD state, and neither of the two above.
756
+ *
757
+ * `readRunsInFlight` answers `{ running, interrupted }`: the in-process marker for a choreography
758
+ * executing right now, and the checkpoints of one that stopped mid-way. A SUSPENDED run is neither.
759
+ * It is healthy, it has written nothing — the clarification check runs before the artifact call —
760
+ * and it is waiting on a decision only a person can make. It appeared in neither read, so nothing
761
+ * could name it once its creator's client was gone.
762
+ *
763
+ * Kept as its own method rather than folded into `readRunsInFlight` for that reason: merging the
764
+ * three would say a suspended run is a kind of in-flight one, and the difference is exactly what a
765
+ * reader needs — one of the three is waiting for THEM.
766
+ */
767
+ readSuspendedRuns(): Promise<Awaited<ReturnType<PlaybookSuspendedRunCompanionService['list']>>>;
656
768
  private modelCallBreaker;
657
769
  private assertPlaybookModelCallBreaker;
658
770
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-run.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-run.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qEAAqE,CAAC;AA6C5H,OAAO,EAYL,8BAA8B,EAE9B,KAAK,0BAA0B,EAY/B,2BAA2B,EAG3B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAIjC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAGxB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EACjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGtF,OAAO,EAA8D,KAAK,kBAAkB,EAA6B,MAAM,oDAAoD,CAAC;AAMpL,OAAO,EAAE,sCAAsC,EAAE,MAAM,wEAAwE,CAAC;AAGhI,OAAO,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,wCAA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WAAW,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;QAC7E,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,8CAA8C,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC1F,CAAC;IAIF,OAAO,CAAC,gBAAgB,CAAsD;IAE9E,OAAO,CAAC,8BAA8B;IAuBtC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAK9B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,2BAA2B;IAkFnC,OAAO,CAAC,mBAAmB;CAyD5B"}
1
+ {"version":3,"file":"playbook-run.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-run.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qEAAqE,CAAC;AAiD5H,OAAO,EAaL,8BAA8B,EAE9B,KAAK,0BAA0B,EAY/B,2BAA2B,EAG3B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAIjC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAGxB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAIjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGtF,OAAO,EAA8D,KAAK,kBAAkB,EAA6B,MAAM,oDAAoD,CAAC;AAMpL,OAAO,EAAE,sCAAsC,EAAE,MAAM,wEAAwE,CAAC;AAGhI,OAAO,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,wCAAwC,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,6BAA6B,EA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