@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":"container.d.ts","sourceRoot":"","sources":["../../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAUhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAgD5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC;AAyB9G,qBAAa,kBAAkB;IAC7B,OAA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B,IAAI,IAAI,CAE9C"}
@@ -27,7 +27,11 @@ import { TechnicalDocumentationApplicationDerivationCompanionService } from "../
27
27
  import { SystemTechnicalDocumentationEnvironmentClock, TechnicalDocumentationEnvironmentIdentityCompanionService, } from "../../../technical-doc/services/technical-documentation-environment-identity.companion.service.js";
28
28
  import { CompanionIntrospectionBehaviorRegistryService } from "../../introspection/services/companion-introspection-behavior-registry.companion.service.js";
29
29
  import { CompanionIntrospectionService } from "../../introspection/services/companion-introspection.companion.service.js";
30
+ import { IntrospectionDerivationStateCompanionService } from "../../introspection/services/introspection-derivation-state.companion.service.js";
31
+ import { IntrospectionSourceWatcherCompanionService } from "../../introspection/services/introspection-source-watcher.companion.service.js";
32
+ import { IntrospectionResourceNotifierCompanionService } from "../../introspection/resources/introspection-resource-notifier.companion.service.js";
30
33
  import { IntrospectionResourceSourceCompanionService } from "../../introspection/resources/introspection-resource-source.companion.service.js";
34
+ import { CreationPlaneProjectionCompanionService } from "../../introspection/resources/creation-plane-projection.companion.service.js";
31
35
  import { TranslationPlacementCompanionService } from "../../introspection/services/translation-placement.companion.service.js";
32
36
  import { CompanionExecutionsCompanionService } from "../../../executions/services/companion-executions.companion.service.js";
33
37
  import { CompanionTraceabilityService } from "../../traceability/companion-traceability.service.js";
@@ -162,6 +166,12 @@ export class CompanionContainer {
162
166
  this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocService).to(TechnicalDocCompanionService).inSingletonScope();
163
167
  // Companion introspection
164
168
  this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionBehaviorRegistryService).to(CompanionIntrospectionBehaviorRegistryService).inSingletonScope();
169
+ this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionDerivationStateService)
170
+ .to(IntrospectionDerivationStateCompanionService).inSingletonScope();
171
+ this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)
172
+ .to(IntrospectionSourceWatcherCompanionService).inSingletonScope();
173
+ this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionResourceNotifierService)
174
+ .to(IntrospectionResourceNotifierCompanionService).inSingletonScope();
165
175
  this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionService).to(CompanionIntrospectionService).inSingletonScope();
166
176
  /*
167
177
  * Bound under the ENGINE's token, not a companion one.
@@ -172,6 +182,7 @@ export class CompanionContainer {
172
182
  * what makes introspected resources readable at all, and it is the same shape
173
183
  * `platform-apps-manager` uses to supply `SAAS_SERVICE_TYPES.StorageCredentialResolver`.
174
184
  */
185
+ this.container.bind(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService).to(CreationPlaneProjectionCompanionService).inSingletonScope();
175
186
  this.container.bind(SAAS_SERVICE_TYPES.IntrospectionResourceSource).to(IntrospectionResourceSourceCompanionService).inSingletonScope();
176
187
  this.container.bind(COMPANION_SERVICE_TYPES.TranslationPlacementService).to(TranslationPlacementCompanionService).inSingletonScope();
177
188
  this.container.bind(COMPANION_SERVICE_TYPES.TraceabilityService).to(CompanionTraceabilityService).inSingletonScope();
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAE9F,iBAAiB;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EA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AE,iBAAiB,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QAC3I,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC;YAChF,IAAI,KAAK;gBACP,OAAO,yBAAyB,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAC3F,CAAC;SACgC,CAAC,CAAC;IACvC,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AAED,MAAM,UAAU,uBAAuB,CACrC,QAA6B,EAC7B,gBAAmC,EACnC,aAAsC;IAEtC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC7F,eAAe,GAAG,kBAAkB,CAAC,YAAY,EAAE,CAAC;IACtD,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,IAAI,CAAC,eAAe;QAAE,OAAO,uBAAuB,EAAE,CAAC;IACvD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,eAAe,GAAG,IAAI,CAAC;AACzB,CAAC","sourcesContent":["import { randomUUID } from \"node:crypto\";\n\nimport { InversifyContainer } from \"@wildo-ai/saas-backend-lib\";\nimport { SAAS_SERVICE_TYPES } from \"@wildo-ai/saas-backend-lib\";\nimport { CompositeAgentCallTraceSink } from \"@wildo-ai/saas-backend-lib\";\nimport type { AgentCallTraceSink } from \"@wildo-ai/saas-models\";\nimport type { AgentTraceabilityLevel, AgentTraceabilityPolicy } from \"@wildo-ai/saas-models\";\nimport { maxAgentTraceabilityLevel } from \"@wildo-ai/saas-models\";\nimport { setupPlatformSharedInjection } from \"@wildo-ai/platform-shared-lib\";\n\nimport { CompanionStartupCompositionFence } from \"../../runtime/companion-startup-composition-fence\";\nimport { COMPANION_SERVICE_TYPES } from \"./service-types\";\nimport type { CompanionContext } from \"../../context/companion-context\";\nimport type { CompanionRuntimeConfig } from \"../../runtime/models/companion-runtime.models\";\nimport { CompanionTraceabilityLevel } from \"../../traceability/companion-traceability.models\";\n\n// Local services\nimport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\nimport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\nimport { EmailTemplateCompanionService } from \"../../../email/services/email-template.companion.service\";\nimport { EmailSpecContextLoaderCompanionService } from \"../../../email/services/email-spec-context-loader.companion.service\";\nimport { MarketGenerationCompanionService } from \"../../../market/services/market-generation.companion.service\";\nimport { LogoGenerationCompanionService } from \"../../../brand/services/logo-generation.companion.service\";\nimport { LogoDeliberationCompanionService } from \"../../../brand/services/logo-deliberation.companion.service\";\nimport { BrandAcceptCompanionService } from \"../../../brand/services/brand-accept.companion.service\";\nimport { ExpertPersonaCompanionService } from \"../../../expert-personas/services/expert-persona.companion.service\";\nimport { DeliberationCompanionService } from \"../../../deliberations/services/deliberation.companion.service\";\nimport { StructuredDeliberationCompanionService } from \"../../../deliberations/services/structured-deliberation.companion.service\";\nimport { GitChangeSetCompanionService } from \"../../../claude-cli/services/git-change-set.companion.service\";\nimport { CodingAgentDispatchCompanionService } from \"../../../claude-cli/services/coding-agent-dispatch.companion.service\";\nimport { ResearchAgentDispatchCompanionService } from \"../../../claude-cli/services/research-agent-dispatch.companion.service\";\nimport { CompanionAuthFloorCompanionService } from \"../../auth/companion-auth-floor.companion.service\";\nimport { TechnicalDocCompanionService } from \"../../../technical-doc/services/technical-doc.companion.service\";\nimport { TechnicalDocumentationApplicationDerivationCompanionService } from \"../../../technical-doc/services/technical-documentation-application-derivation.companion.service\";\nimport {\n SystemTechnicalDocumentationEnvironmentClock,\n TechnicalDocumentationEnvironmentIdentityCompanionService,\n} from \"../../../technical-doc/services/technical-documentation-environment-identity.companion.service\";\nimport { CompanionIntrospectionBehaviorRegistryService } from \"../../introspection/services/companion-introspection-behavior-registry.companion.service\";\nimport { CompanionIntrospectionService } from \"../../introspection/services/companion-introspection.companion.service\";\nimport { IntrospectionResourceSourceCompanionService } from \"../../introspection/resources/introspection-resource-source.companion.service\";\nimport { TranslationPlacementCompanionService } from \"../../introspection/services/translation-placement.companion.service\";\nimport { CompanionExecutionsCompanionService } from \"../../../executions/services/companion-executions.companion.service\";\nimport { CompanionTraceabilityService } from \"../../traceability/companion-traceability.service\";\nimport { CompanionAgentCallTraceSink, AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL } from \"../../traceability/companion-agent-call-trace-sink.companion.service\";\nimport { WildoSaasLockCompanionService } from \"../../lock/wildo-saas-lock.companion.service\";\nimport { LabellingPlannerCompanionService } from \"../../../i18n-labelling/services/labelling-planner.companion.service\";\nimport { LabellingSpecContextLoaderCompanionService } from \"../../../i18n-labelling/services/labelling-spec-context-loader.companion.service\";\nimport { LabellizeOrchestratorCompanionService } from \"../../../i18n-labelling/services/labellize-orchestrator.companion.service\";\nimport { TranslateOrchestratorCompanionService } from \"../../../i18n-labelling/services/translate-orchestrator.companion.service\";\nimport { ComponentLabelsBootstrapCompanionService } from \"../../../i18n-labelling/services/component-labels-bootstrap.companion.service\";\n\nimport { PlaybookRunCompanionService } from \"../../../meta-workflows/services/playbook-run.companion.service\";\nimport { FoundationExecutorCompanionService } from \"../../../meta-workflows/services/foundation-executor.companion.service\";\nimport { PlaybookChoreographyCheckpointCompanionService } from \"../../../meta-workflows/services/playbook-choreography-checkpoint.companion.service\";\nimport { PlaybookSuspendedRunCompanionService } from \"../../../meta-workflows/services/playbook-suspended-run.companion.service\";\nimport { ApplicationBuildDispatchCompanionService } from \"../../../meta-workflows/services/application-build-dispatch.companion.service\";\nimport { ApplicationBuildGenerationStepCompanionService } from \"../../../meta-workflows/services/application-build-generation-step.companion.service\";\nimport { PlaybookRunWriteRegisterCompanionService } from \"../../../meta-workflows/services/playbook-run-write-register.companion.service\";\nimport { ExecutionTraceReadCompanionService } from \"../../../meta-workflows/services/execution-trace-read.companion.service\";\n\nexport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\n\nexport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\n\nlet globalContainer: InversifyContainer | null = null;\n\n/**\n * Process-safety ceilings for the local application reconciliation adapter.\n *\n * They are deliberately not semantic retry policy: retry count/backoff and\n * lease duration come from the resolved Work Cycle. Reaching either ceiling\n * fails readiness instead of publishing with hidden reconciliation debt.\n */\n/**\n * How many outboxes the STARTUP drain will attempt before giving up and letting boot continue.\n *\n * This is a COUNT bound and it does not bound duration -- reconciling one outbox left mid-flight by an\n * interrupted run was measured taking >90s on its own (2026-08-20), so lowering the count did not stop the\n * TASK_OUTBOX stage blowing its 300,000ms ceiling. The duration bound lives in\n * `reconcileOutstandingAtStartup`, which gives startup a fixed time slice and continues regardless.\n *\n * The count therefore stays generous enough for the EXECUTION-time drain, which shares this limit and\n * throws when work is still claimable after it. Lowering it to 1 broke exactly that path.\n */\nconst TASK_TERMINALIZATION_STARTUP_DRAIN_LIMIT = 64;\nconst TASK_AGGREGATE_CAS_ATTEMPT_LIMIT = 8;\n\nexport class CompanionContainer {\n private readonly container: InversifyContainer;\n\n constructor(container?: InversifyContainer, companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig) {\n this.container = container ?? new InversifyContainer({ defaultScope: \"Singleton\" });\n this.bindServices(companionContext, runtimeConfig);\n }\n\n private bindServices(companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig): void {\n setupPlatformSharedInjection(this.container);\n\n if (companionContext) {\n this.container.bind<CompanionContext>(COMPANION_SERVICE_TYPES.CompanionContext).toConstantValue(companionContext);\n }\n\n this.container\n .bind<CompanionRuntimeConfig>(COMPANION_SERVICE_TYPES.CompanionRuntimeConfig)\n .toConstantValue(runtimeConfig ?? { traceabilityLevel: CompanionTraceabilityLevel.NONE });\n\n // Controller (bind by symbol and by class for flexible retrieval)\n this.container.bind(COMPANION_SERVICE_TYPES.CompanionController).to(CompanionController).inSingletonScope();\n this.container.bind(CompanionController).to(CompanionController).inSingletonScope();\n\n // Startup-graph identity fence: refuses a substituted or mutated startup\n // composition between capture and each consuming phase.\n this.container\n .bind(COMPANION_SERVICE_TYPES.CompanionStartupCompositionFence)\n .to(CompanionStartupCompositionFence)\n .inSingletonScope();\n\n // Start service (bind by class for retrieval)\n this.container.bind(StartCompanionApplicationService).to(StartCompanionApplicationService).inSingletonScope();\n\n // Shared companion lock file (wildo-saas.lock.json)\n this.container.bind(COMPANION_SERVICE_TYPES.WildoSaasLockService).to(WildoSaasLockCompanionService).inSingletonScope();\n\n // i18n Labelling pipeline\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingSpecContextLoader).to(LabellingSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingPlannerService).to(LabellingPlannerCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService).to(LabellizeOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslateOrchestratorService).to(TranslateOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ComponentLabelsBootstrapService).to(ComponentLabelsBootstrapCompanionService).inSingletonScope();\n\n // Email template service\n this.container.bind(COMPANION_SERVICE_TYPES.EmailSpecContextLoader).to(EmailSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.EmailTemplateService).to(EmailTemplateCompanionService).inSingletonScope();\n\n // Market generation service (Phase 4.2)\n this.container.bind(COMPANION_SERVICE_TYPES.MarketGenerationService).to(MarketGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunService).to(PlaybookRunCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.FoundationExecutorService).to(FoundationExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookSuspendedRunService).to(PlaybookSuspendedRunCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookChoreographyCheckpointService).to(PlaybookChoreographyCheckpointCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService).to(ApplicationBuildDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BuildGenerationStepService).to(ApplicationBuildGenerationStepCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService).to(PlaybookRunWriteRegisterCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionTraceReadService).to(ExecutionTraceReadCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoGenerationService).to(LogoGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoDeliberationService).to(LogoDeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BrandAcceptService).to(BrandAcceptCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExpertPersonaService).to(ExpertPersonaCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.DeliberationService).to(DeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.StructuredDeliberationService).to(StructuredDeliberationCompanionService).inSingletonScope();\n\n // Claude-CLI direct invocation (lower-level than the agents path).\n // Reads the `kind: 'cli-runtime'` runtime contract from the\n // backend provider registry and spawns `claude` via\n // `anthropic` in `wildo.saas.config.ts` is what makes the\n // contract reachable from this process.\n\n // Coding-agent dispatch lane (meta-workflows Step 4 / L2): read-only\n // git change-set capture (DD-8 carve-out), async dispatch runs, and\n // the P-29 auth floor (loopback assertion + companion.token).\n this.container.bind(COMPANION_SERVICE_TYPES.GitChangeSetService).to(GitChangeSetCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CodingAgentDispatchService).to(CodingAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService).to(ResearchAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.AuthFloorService).to(CompanionAuthFloorCompanionService).inSingletonScope();\n\n // Workbench construction is effect-free. The dynamic factory creates only\n // in-memory adapters; accepted embedding reads and application-local\n // activation begin later in StartCompanionApplicationService.\n\n // New-contract registry and read-only candidate projection. Executable\n // bindings remain inert until an internal application-creation service\n // supplies exact continuity and artifact inputs.\n\n // Bind the physical executions service once, then expose that same\n // singleton through the internal physical Task port. Public companion Task\n // CRUD and continuity CAS therefore share one repository/ownership view\n // without widening the public DTO's authority.\n if (!this.container.isBound(COMPANION_SERVICE_TYPES.ExecutionsService)) {\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionsService).to(CompanionExecutionsCompanionService).inSingletonScope();\n }\n\n // Any participant not owned by the subject runtime or a concrete\n // family/Task adapter binds to one throwing service. The container remains\n // resolvable for health diagnostics while semantic startup fails closed.\n \n\n // Technical documentation orchestrator (saas-technical-doc.md Step 3)\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentClock).to(SystemTechnicalDocumentationEnvironmentClock).inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentIdentityService)\n .to(TechnicalDocumentationEnvironmentIdentityCompanionService)\n .inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationApplicationDerivationService)\n .to(TechnicalDocumentationApplicationDerivationCompanionService)\n .inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocService).to(TechnicalDocCompanionService).inSingletonScope();\n\n // Companion introspection\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionBehaviorRegistryService).to(CompanionIntrospectionBehaviorRegistryService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionService).to(CompanionIntrospectionService).inSingletonScope();\n /*\n * Bound under the ENGINE's token, not a companion one.\n *\n * `PersistenceAdapter.INTROSPECTION`'s repository resolves this port lazily from the container\n * (`SAAS_SERVICE_TYPES.IntrospectionResourceSource`) and refuses cleanly when nothing is bound —\n * which is the normal state for any application running without a companion. Binding it here is\n * what makes introspected resources readable at all, and it is the same shape\n * `platform-apps-manager` uses to supply `SAAS_SERVICE_TYPES.StorageCredentialResolver`.\n */\n this.container.bind(SAAS_SERVICE_TYPES.IntrospectionResourceSource).to(IntrospectionResourceSourceCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslationPlacementService).to(TranslationPlacementCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TraceabilityService).to(CompanionTraceabilityService).inSingletonScope();\n // Engine agent-call traceability: bind the companion filesystem sink + a\n // policy bridged from the companion's level onto the engine SAAS symbols\n // that `AgentsBackendService` `@optional()`-injects. This is what makes\n // every `invokeAgent` call (companion services, market generation, future\n // backend/minion/worker callers) emit into the companion's session/step tree.\n // The companion always adds its filesystem sink (dev artifacts), composed ON\n // TOP of whatever the engine container bound for `AgentCallTraceSink`: when a\n // PostHog LLM-observability provider is configured the engine binds it (and\n // owns its lazy client + flush), so the companion just fans out\n // \"filesystem + <engine sink>\" with no re-construction. A NoOp engine sink\n // collapses to filesystem-only. Switchable: swapping the LLM-obs provider is an\n // engine-side re-bind, transparent here. Gating: the policy `rebind` below\n // COMPOSES the companion's level with the engine's live LLM-obs level (max);\n // each sink then self-gates.\n // NB: the engine PostHog sink lazy-loads `posthog-node` — an optional peer that\n // must be installed in any runtime that binds LLM_OBSERVABILITY (this companion\n // installs it for dev verification; the missing-package path is a graceful no-op).\n const companionTraceSink = new CompanionAgentCallTraceSink(this.container.get<CompanionTraceabilityService>(COMPANION_SERVICE_TYPES.TraceabilityService));\n const engineAgentTraceSink = this.container.get<AgentCallTraceSink>(SAAS_SERVICE_TYPES.AgentCallTraceSink);\n this.container.rebind(SAAS_SERVICE_TYPES.AgentCallTraceSink).toConstantValue(new CompositeAgentCallTraceSink([companionTraceSink, engineAgentTraceSink]));\n // COMPOSE the policy, never override it: the engine binds a LIVE policy\n // (`DEBUG` iff an LLM-observability provider is selected + configured, else\n // `NONE`) and the previous static rebind here REPLACED it with the\n // companion's filesystem-tracing level alone — with\n // `WILDO_DEV_COMPANION_TRACEABILITY_LEVEL` unset that froze the level at\n // `NONE`, so `emitAgentCallTrace` skipped BEFORE any sink and PostHog\n // capture (plus even its missing-secret warning) went silently dead. The\n // effective level is the MAX of the two concerns; each sink still\n // self-gates (the filesystem sink skips un-correlated calls and applies the\n // session's own level), so raising the policy for LLM-obs does NOT switch\n // on filesystem artifacts.\n const engineAgentTracePolicy = this.container.get<AgentTraceabilityPolicy>(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy);\n const companionAgentTraceLevel = AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL[runtimeConfig?.traceabilityLevel ?? CompanionTraceabilityLevel.NONE];\n this.container.rebind(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy).toConstantValue({\n get level(): AgentTraceabilityLevel {\n return maxAgentTraceabilityLevel(companionAgentTraceLevel, engineAgentTracePolicy.level);\n },\n } satisfies AgentTraceabilityPolicy);\n }\n\n public getContainer(): InversifyContainer {\n return this.container;\n }\n}\n\nexport function setupCompanionInjection(\n existing?: InversifyContainer,\n companionContext?: CompanionContext,\n runtimeConfig?: CompanionRuntimeConfig,\n): InversifyContainer {\n if (!globalContainer) {\n const companionContainer = new CompanionContainer(existing, companionContext, runtimeConfig);\n globalContainer = companionContainer.getContainer();\n }\n return globalContainer;\n}\n\nexport function getCompanionContainer(): InversifyContainer {\n if (!globalContainer) return setupCompanionInjection();\n return globalContainer;\n}\n\nexport function resetCompanionContainer(): void {\n globalContainer = null;\n}\n\n"]}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAA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oCAAoC,CAAC,aAAa,EAAE,iBAAiB,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QAC3I,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC;YAChF,IAAI,KAAK;gBACP,OAAO,yBAAyB,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAC3F,CAAC;SACgC,CAAC,CAAC;IACvC,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AAED,MAAM,UAAU,uBAAuB,CACrC,QAA6B,EAC7B,gBAAmC,EACnC,aAAsC;IAEtC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC7F,eAAe,GAAG,kBAAkB,CAAC,YAAY,EAAE,CAAC;IACtD,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,IAAI,CAAC,eAAe;QAAE,OAAO,uBAAuB,EAAE,CAAC;IACvD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,eAAe,GAAG,IAAI,CAAC;AACzB,CAAC","sourcesContent":["import { randomUUID } from \"node:crypto\";\n\nimport { InversifyContainer } from \"@wildo-ai/saas-backend-lib\";\nimport { SAAS_SERVICE_TYPES } from \"@wildo-ai/saas-backend-lib\";\nimport { CompositeAgentCallTraceSink } from \"@wildo-ai/saas-backend-lib\";\nimport type { AgentCallTraceSink } from \"@wildo-ai/saas-models\";\nimport type { AgentTraceabilityLevel, AgentTraceabilityPolicy } from \"@wildo-ai/saas-models\";\nimport { maxAgentTraceabilityLevel } from \"@wildo-ai/saas-models\";\nimport { setupPlatformSharedInjection } from \"@wildo-ai/platform-shared-lib\";\n\nimport { CompanionStartupCompositionFence } from \"../../runtime/companion-startup-composition-fence\";\nimport { COMPANION_SERVICE_TYPES } from \"./service-types\";\nimport type { CompanionContext } from \"../../context/companion-context\";\nimport type { CompanionRuntimeConfig } from \"../../runtime/models/companion-runtime.models\";\nimport { CompanionTraceabilityLevel } from \"../../traceability/companion-traceability.models\";\n\n// Local services\nimport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\nimport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\nimport { EmailTemplateCompanionService } from \"../../../email/services/email-template.companion.service\";\nimport { EmailSpecContextLoaderCompanionService } from \"../../../email/services/email-spec-context-loader.companion.service\";\nimport { MarketGenerationCompanionService } from \"../../../market/services/market-generation.companion.service\";\nimport { LogoGenerationCompanionService } from \"../../../brand/services/logo-generation.companion.service\";\nimport { LogoDeliberationCompanionService } from \"../../../brand/services/logo-deliberation.companion.service\";\nimport { BrandAcceptCompanionService } from \"../../../brand/services/brand-accept.companion.service\";\nimport { ExpertPersonaCompanionService } from \"../../../expert-personas/services/expert-persona.companion.service\";\nimport { DeliberationCompanionService } from \"../../../deliberations/services/deliberation.companion.service\";\nimport { StructuredDeliberationCompanionService } from \"../../../deliberations/services/structured-deliberation.companion.service\";\nimport { GitChangeSetCompanionService } from \"../../../claude-cli/services/git-change-set.companion.service\";\nimport { CodingAgentDispatchCompanionService } from \"../../../claude-cli/services/coding-agent-dispatch.companion.service\";\nimport { ResearchAgentDispatchCompanionService } from \"../../../claude-cli/services/research-agent-dispatch.companion.service\";\nimport { CompanionAuthFloorCompanionService } from \"../../auth/companion-auth-floor.companion.service\";\nimport { TechnicalDocCompanionService } from \"../../../technical-doc/services/technical-doc.companion.service\";\nimport { TechnicalDocumentationApplicationDerivationCompanionService } from \"../../../technical-doc/services/technical-documentation-application-derivation.companion.service\";\nimport {\n SystemTechnicalDocumentationEnvironmentClock,\n TechnicalDocumentationEnvironmentIdentityCompanionService,\n} from \"../../../technical-doc/services/technical-documentation-environment-identity.companion.service\";\nimport { CompanionIntrospectionBehaviorRegistryService } from \"../../introspection/services/companion-introspection-behavior-registry.companion.service\";\nimport { CompanionIntrospectionService } from \"../../introspection/services/companion-introspection.companion.service\";\nimport { IntrospectionDerivationStateCompanionService } from \"../../introspection/services/introspection-derivation-state.companion.service\";\nimport { IntrospectionSourceWatcherCompanionService } from \"../../introspection/services/introspection-source-watcher.companion.service\";\nimport { IntrospectionResourceNotifierCompanionService } from \"../../introspection/resources/introspection-resource-notifier.companion.service\";\nimport { IntrospectionResourceSourceCompanionService } from \"../../introspection/resources/introspection-resource-source.companion.service\";\nimport { CreationPlaneProjectionCompanionService } from \"../../introspection/resources/creation-plane-projection.companion.service\";\nimport { TranslationPlacementCompanionService } from \"../../introspection/services/translation-placement.companion.service\";\nimport { CompanionExecutionsCompanionService } from \"../../../executions/services/companion-executions.companion.service\";\nimport { CompanionTraceabilityService } from \"../../traceability/companion-traceability.service\";\nimport { CompanionAgentCallTraceSink, AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL } from \"../../traceability/companion-agent-call-trace-sink.companion.service\";\nimport { WildoSaasLockCompanionService } from \"../../lock/wildo-saas-lock.companion.service\";\nimport { LabellingPlannerCompanionService } from \"../../../i18n-labelling/services/labelling-planner.companion.service\";\nimport { LabellingSpecContextLoaderCompanionService } from \"../../../i18n-labelling/services/labelling-spec-context-loader.companion.service\";\nimport { LabellizeOrchestratorCompanionService } from \"../../../i18n-labelling/services/labellize-orchestrator.companion.service\";\nimport { TranslateOrchestratorCompanionService } from \"../../../i18n-labelling/services/translate-orchestrator.companion.service\";\nimport { ComponentLabelsBootstrapCompanionService } from \"../../../i18n-labelling/services/component-labels-bootstrap.companion.service\";\n\nimport { PlaybookRunCompanionService } from \"../../../meta-workflows/services/playbook-run.companion.service\";\nimport { FoundationExecutorCompanionService } from \"../../../meta-workflows/services/foundation-executor.companion.service\";\nimport { PlaybookChoreographyCheckpointCompanionService } from \"../../../meta-workflows/services/playbook-choreography-checkpoint.companion.service\";\nimport { PlaybookSuspendedRunCompanionService } from \"../../../meta-workflows/services/playbook-suspended-run.companion.service\";\nimport { ApplicationBuildDispatchCompanionService } from \"../../../meta-workflows/services/application-build-dispatch.companion.service\";\nimport { ApplicationBuildGenerationStepCompanionService } from \"../../../meta-workflows/services/application-build-generation-step.companion.service\";\nimport { PlaybookRunWriteRegisterCompanionService } from \"../../../meta-workflows/services/playbook-run-write-register.companion.service\";\nimport { ExecutionTraceReadCompanionService } from \"../../../meta-workflows/services/execution-trace-read.companion.service\";\n\nexport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\n\nexport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\n\nlet globalContainer: InversifyContainer | null = null;\n\n/**\n * Process-safety ceilings for the local application reconciliation adapter.\n *\n * They are deliberately not semantic retry policy: retry count/backoff and\n * lease duration come from the resolved Work Cycle. Reaching either ceiling\n * fails readiness instead of publishing with hidden reconciliation debt.\n */\n/**\n * How many outboxes the STARTUP drain will attempt before giving up and letting boot continue.\n *\n * This is a COUNT bound and it does not bound duration -- reconciling one outbox left mid-flight by an\n * interrupted run was measured taking >90s on its own (2026-08-20), so lowering the count did not stop the\n * TASK_OUTBOX stage blowing its 300,000ms ceiling. The duration bound lives in\n * `reconcileOutstandingAtStartup`, which gives startup a fixed time slice and continues regardless.\n *\n * The count therefore stays generous enough for the EXECUTION-time drain, which shares this limit and\n * throws when work is still claimable after it. Lowering it to 1 broke exactly that path.\n */\nconst TASK_TERMINALIZATION_STARTUP_DRAIN_LIMIT = 64;\nconst TASK_AGGREGATE_CAS_ATTEMPT_LIMIT = 8;\n\nexport class CompanionContainer {\n private readonly container: InversifyContainer;\n\n constructor(container?: InversifyContainer, companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig) {\n this.container = container ?? new InversifyContainer({ defaultScope: \"Singleton\" });\n this.bindServices(companionContext, runtimeConfig);\n }\n\n private bindServices(companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig): void {\n setupPlatformSharedInjection(this.container);\n\n if (companionContext) {\n this.container.bind<CompanionContext>(COMPANION_SERVICE_TYPES.CompanionContext).toConstantValue(companionContext);\n }\n\n this.container\n .bind<CompanionRuntimeConfig>(COMPANION_SERVICE_TYPES.CompanionRuntimeConfig)\n .toConstantValue(runtimeConfig ?? { traceabilityLevel: CompanionTraceabilityLevel.NONE });\n\n // Controller (bind by symbol and by class for flexible retrieval)\n this.container.bind(COMPANION_SERVICE_TYPES.CompanionController).to(CompanionController).inSingletonScope();\n this.container.bind(CompanionController).to(CompanionController).inSingletonScope();\n\n // Startup-graph identity fence: refuses a substituted or mutated startup\n // composition between capture and each consuming phase.\n this.container\n .bind(COMPANION_SERVICE_TYPES.CompanionStartupCompositionFence)\n .to(CompanionStartupCompositionFence)\n .inSingletonScope();\n\n // Start service (bind by class for retrieval)\n this.container.bind(StartCompanionApplicationService).to(StartCompanionApplicationService).inSingletonScope();\n\n // Shared companion lock file (wildo-saas.lock.json)\n this.container.bind(COMPANION_SERVICE_TYPES.WildoSaasLockService).to(WildoSaasLockCompanionService).inSingletonScope();\n\n // i18n Labelling pipeline\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingSpecContextLoader).to(LabellingSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingPlannerService).to(LabellingPlannerCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService).to(LabellizeOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslateOrchestratorService).to(TranslateOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ComponentLabelsBootstrapService).to(ComponentLabelsBootstrapCompanionService).inSingletonScope();\n\n // Email template service\n this.container.bind(COMPANION_SERVICE_TYPES.EmailSpecContextLoader).to(EmailSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.EmailTemplateService).to(EmailTemplateCompanionService).inSingletonScope();\n\n // Market generation service (Phase 4.2)\n this.container.bind(COMPANION_SERVICE_TYPES.MarketGenerationService).to(MarketGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunService).to(PlaybookRunCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.FoundationExecutorService).to(FoundationExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookSuspendedRunService).to(PlaybookSuspendedRunCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookChoreographyCheckpointService).to(PlaybookChoreographyCheckpointCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService).to(ApplicationBuildDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BuildGenerationStepService).to(ApplicationBuildGenerationStepCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService).to(PlaybookRunWriteRegisterCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionTraceReadService).to(ExecutionTraceReadCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoGenerationService).to(LogoGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoDeliberationService).to(LogoDeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BrandAcceptService).to(BrandAcceptCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExpertPersonaService).to(ExpertPersonaCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.DeliberationService).to(DeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.StructuredDeliberationService).to(StructuredDeliberationCompanionService).inSingletonScope();\n\n // Claude-CLI direct invocation (lower-level than the agents path).\n // Reads the `kind: 'cli-runtime'` runtime contract from the\n // backend provider registry and spawns `claude` via\n // `anthropic` in `wildo.saas.config.ts` is what makes the\n // contract reachable from this process.\n\n // Coding-agent dispatch lane (meta-workflows Step 4 / L2): read-only\n // git change-set capture (DD-8 carve-out), async dispatch runs, and\n // the P-29 auth floor (loopback assertion + companion.token).\n this.container.bind(COMPANION_SERVICE_TYPES.GitChangeSetService).to(GitChangeSetCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CodingAgentDispatchService).to(CodingAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService).to(ResearchAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.AuthFloorService).to(CompanionAuthFloorCompanionService).inSingletonScope();\n\n // Workbench construction is effect-free. The dynamic factory creates only\n // in-memory adapters; accepted embedding reads and application-local\n // activation begin later in StartCompanionApplicationService.\n\n // New-contract registry and read-only candidate projection. Executable\n // bindings remain inert until an internal application-creation service\n // supplies exact continuity and artifact inputs.\n\n // Bind the physical executions service once, then expose that same\n // singleton through the internal physical Task port. Public companion Task\n // CRUD and continuity CAS therefore share one repository/ownership view\n // without widening the public DTO's authority.\n if (!this.container.isBound(COMPANION_SERVICE_TYPES.ExecutionsService)) {\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionsService).to(CompanionExecutionsCompanionService).inSingletonScope();\n }\n\n // Any participant not owned by the subject runtime or a concrete\n // family/Task adapter binds to one throwing service. The container remains\n // resolvable for health diagnostics while semantic startup fails closed.\n \n\n // Technical documentation orchestrator (saas-technical-doc.md Step 3)\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentClock).to(SystemTechnicalDocumentationEnvironmentClock).inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentIdentityService)\n .to(TechnicalDocumentationEnvironmentIdentityCompanionService)\n .inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationApplicationDerivationService)\n .to(TechnicalDocumentationApplicationDerivationCompanionService)\n .inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocService).to(TechnicalDocCompanionService).inSingletonScope();\n\n // Companion introspection\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionBehaviorRegistryService).to(CompanionIntrospectionBehaviorRegistryService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionDerivationStateService)\n .to(IntrospectionDerivationStateCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)\n .to(IntrospectionSourceWatcherCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionResourceNotifierService)\n .to(IntrospectionResourceNotifierCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionService).to(CompanionIntrospectionService).inSingletonScope();\n /*\n * Bound under the ENGINE's token, not a companion one.\n *\n * `PersistenceAdapter.INTROSPECTION`'s repository resolves this port lazily from the container\n * (`SAAS_SERVICE_TYPES.IntrospectionResourceSource`) and refuses cleanly when nothing is bound —\n * which is the normal state for any application running without a companion. Binding it here is\n * what makes introspected resources readable at all, and it is the same shape\n * `platform-apps-manager` uses to supply `SAAS_SERVICE_TYPES.StorageCredentialResolver`.\n */\n this.container.bind(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService).to(CreationPlaneProjectionCompanionService).inSingletonScope();\n this.container.bind(SAAS_SERVICE_TYPES.IntrospectionResourceSource).to(IntrospectionResourceSourceCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslationPlacementService).to(TranslationPlacementCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TraceabilityService).to(CompanionTraceabilityService).inSingletonScope();\n // Engine agent-call traceability: bind the companion filesystem sink + a\n // policy bridged from the companion's level onto the engine SAAS symbols\n // that `AgentsBackendService` `@optional()`-injects. This is what makes\n // every `invokeAgent` call (companion services, market generation, future\n // backend/minion/worker callers) emit into the companion's session/step tree.\n // The companion always adds its filesystem sink (dev artifacts), composed ON\n // TOP of whatever the engine container bound for `AgentCallTraceSink`: when a\n // PostHog LLM-observability provider is configured the engine binds it (and\n // owns its lazy client + flush), so the companion just fans out\n // \"filesystem + <engine sink>\" with no re-construction. A NoOp engine sink\n // collapses to filesystem-only. Switchable: swapping the LLM-obs provider is an\n // engine-side re-bind, transparent here. Gating: the policy `rebind` below\n // COMPOSES the companion's level with the engine's live LLM-obs level (max);\n // each sink then self-gates.\n // NB: the engine PostHog sink lazy-loads `posthog-node` — an optional peer that\n // must be installed in any runtime that binds LLM_OBSERVABILITY (this companion\n // installs it for dev verification; the missing-package path is a graceful no-op).\n const companionTraceSink = new CompanionAgentCallTraceSink(this.container.get<CompanionTraceabilityService>(COMPANION_SERVICE_TYPES.TraceabilityService));\n const engineAgentTraceSink = this.container.get<AgentCallTraceSink>(SAAS_SERVICE_TYPES.AgentCallTraceSink);\n this.container.rebind(SAAS_SERVICE_TYPES.AgentCallTraceSink).toConstantValue(new CompositeAgentCallTraceSink([companionTraceSink, engineAgentTraceSink]));\n // COMPOSE the policy, never override it: the engine binds a LIVE policy\n // (`DEBUG` iff an LLM-observability provider is selected + configured, else\n // `NONE`) and the previous static rebind here REPLACED it with the\n // companion's filesystem-tracing level alone — with\n // `WILDO_DEV_COMPANION_TRACEABILITY_LEVEL` unset that froze the level at\n // `NONE`, so `emitAgentCallTrace` skipped BEFORE any sink and PostHog\n // capture (plus even its missing-secret warning) went silently dead. The\n // effective level is the MAX of the two concerns; each sink still\n // self-gates (the filesystem sink skips un-correlated calls and applies the\n // session's own level), so raising the policy for LLM-obs does NOT switch\n // on filesystem artifacts.\n const engineAgentTracePolicy = this.container.get<AgentTraceabilityPolicy>(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy);\n const companionAgentTraceLevel = AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL[runtimeConfig?.traceabilityLevel ?? CompanionTraceabilityLevel.NONE];\n this.container.rebind(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy).toConstantValue({\n get level(): AgentTraceabilityLevel {\n return maxAgentTraceabilityLevel(companionAgentTraceLevel, engineAgentTracePolicy.level);\n },\n } satisfies AgentTraceabilityPolicy);\n }\n\n public getContainer(): InversifyContainer {\n return this.container;\n }\n}\n\nexport function setupCompanionInjection(\n existing?: InversifyContainer,\n companionContext?: CompanionContext,\n runtimeConfig?: CompanionRuntimeConfig,\n): InversifyContainer {\n if (!globalContainer) {\n const companionContainer = new CompanionContainer(existing, companionContext, runtimeConfig);\n globalContainer = companionContainer.getContainer();\n }\n return globalContainer;\n}\n\nexport function getCompanionContainer(): InversifyContainer {\n if (!globalContainer) return setupCompanionInjection();\n return globalContainer;\n}\n\nexport function resetCompanionContainer(): void {\n globalContainer = null;\n}\n\n"]}
@@ -14,6 +14,8 @@ export declare const COMPANION_SERVICE_TYPES: {
14
14
  readonly PlaybookRunWriteRegisterService: symbol;
15
15
  /** Read-only browser over the companion traceability tree. */
16
16
  readonly ExecutionTraceReadService: symbol;
17
+ /** In-process creation-plane projections (playbook eligibility, build-plan board, write records, traces) + the eligibility cache. */
18
+ readonly CreationPlaneProjectionService: symbol;
17
19
  readonly CompanionRuntimeConfig: symbol;
18
20
  readonly WildoSaasLockService: symbol;
19
21
  readonly LabellingPlannerService: symbol;
@@ -41,6 +43,9 @@ export declare const COMPANION_SERVICE_TYPES: {
41
43
  readonly TechnicalDocService: symbol;
42
44
  readonly IntrospectionService: symbol;
43
45
  readonly IntrospectionBehaviorRegistryService: symbol;
46
+ readonly IntrospectionDerivationStateService: symbol;
47
+ readonly IntrospectionSourceWatcherService: symbol;
48
+ readonly IntrospectionResourceNotifierService: symbol;
44
49
  readonly TranslationPlacementService: symbol;
45
50
  readonly ExecutionsService: symbol;
46
51
  readonly TraceabilityService: symbol;
@@ -1 +1 @@
1
- {"version":3,"file":"service-types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/inject/models/service-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,uBAAuB;;IAElC,8FAA8F;;;;;IAK9F,qFAAqF;;;;IAIrF,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GtD,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"service-types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/inject/models/service-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,uBAAuB;;IAElC,8FAA8F;;;;;IAK9F,qFAAqF;;;;IAIrF,8DAA8D;;IAE9D,qIAAqI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgH7H,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
@@ -14,6 +14,8 @@ export const COMPANION_SERVICE_TYPES = {
14
14
  PlaybookRunWriteRegisterService: Symbol.for("Companion.PlaybookRunWriteRegisterService"),
15
15
  /** Read-only browser over the companion traceability tree. */
16
16
  ExecutionTraceReadService: Symbol.for("Companion.ExecutionTraceReadService"),
17
+ /** In-process creation-plane projections (playbook eligibility, build-plan board, write records, traces) + the eligibility cache. */
18
+ CreationPlaneProjectionService: Symbol.for("Companion.CreationPlaneProjectionService"),
17
19
  CompanionRuntimeConfig: Symbol.for("Companion.CompanionRuntimeConfig"),
18
20
  // Shared companion-managed lock file (wildo-saas.lock.json)
19
21
  WildoSaasLockService: Symbol.for("Companion.WildoSaasLockService"),
@@ -96,6 +98,9 @@ export const COMPANION_SERVICE_TYPES = {
96
98
  // Companion introspection
97
99
  IntrospectionService: Symbol.for("Companion.IntrospectionService"),
98
100
  IntrospectionBehaviorRegistryService: Symbol.for("Companion.IntrospectionBehaviorRegistryService"),
101
+ IntrospectionDerivationStateService: Symbol.for("Companion.IntrospectionDerivationStateService"),
102
+ IntrospectionSourceWatcherService: Symbol.for("Companion.IntrospectionSourceWatcherService"),
103
+ IntrospectionResourceNotifierService: Symbol.for("Companion.IntrospectionResourceNotifierService"),
99
104
  TranslationPlacementService: Symbol.for("Companion.TranslationPlacementService"),
100
105
  ExecutionsService: Symbol.for("Companion.ExecutionsService"),
101
106
  TraceabilityService: Symbol.for("Companion.TraceabilityService"),
@@ -1 +1 @@
1
- {"version":3,"file":"service-types.js","sourceRoot":"","sources":["../../../../../../src/core/inject/models/service-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,gBAAgB,EAAE,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAC1D,8FAA8F;IAC9F,kBAAkB,EAAE,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC;IAC9D,yBAAyB,EAAE,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC;IAC5E,2BAA2B,EAAE,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC;IAChF,qCAAqC,EAAE,MAAM,CAAC,GAAG,CAAC,iDAAiD,CAAC;IACpG,qFAAqF;IACrF,+BAA+B,EAAE,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC;IACxF,0BAA0B,EAAE,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC;IAC9E,+BAA+B,EAAE,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC;IACxF,8DAA8D;IAC9D,yBAAyB,EAAE,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC;IAC5E,sBAAsB,EAAE,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC;IAEtE,4DAA4D;IAC5D,oBAAoB,EAAE,MAAM,CAAC,GAAG,CAAC,gCAAgC,CAAC;IAElE,kEAAkE;IAClE,uBAAuB,EAAE,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACxE,0BAA0B,EAAE,MAAM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["/**\n * Dev Companion Service Types for Dependency Injection\n */\n\nexport const COMPANION_SERVICE_TYPES = {\n CompanionContext: Symbol.for(\"Companion.CompanionContext\"),\n /** Runs one compiled Framework Knowledge playbook: model generation → specification files. */\n PlaybookRunService: Symbol.for(\"Companion.PlaybookRunService\"),\n FoundationExecutorService: Symbol.for(\"Companion.FoundationExecutorService\"),\n PlaybookSuspendedRunService: Symbol.for(\"Companion.PlaybookSuspendedRunService\"),\n PlaybookChoreographyCheckpointService: Symbol.for(\"Companion.PlaybookChoreographyCheckpointService\"),\n /** Selects the next ready build-plan task and composes its coding-agent dispatch. */\n ApplicationBuildDispatchService: Symbol.for(\"Companion.ApplicationBuildDispatchService\"),\n BuildGenerationStepService: Symbol.for(\"Companion.BuildGenerationStepService\"),\n PlaybookRunWriteRegisterService: Symbol.for(\"Companion.PlaybookRunWriteRegisterService\"),\n /** Read-only browser over the companion traceability tree. */\n ExecutionTraceReadService: Symbol.for(\"Companion.ExecutionTraceReadService\"),\n CompanionRuntimeConfig: Symbol.for(\"Companion.CompanionRuntimeConfig\"),\n\n // Shared companion-managed lock file (wildo-saas.lock.json)\n WildoSaasLockService: Symbol.for(\"Companion.WildoSaasLockService\"),\n\n // i18n labelling pipeline (planner / spec loader / orchestrators)\n LabellingPlannerService: Symbol.for(\"Companion.LabellingPlannerService\"),\n LabellingSpecContextLoader: Symbol.for(\"Companion.LabellingSpecContextLoader\"),\n LabellizeOrchestratorService: Symbol.for(\"Companion.LabellizeOrchestratorService\"),\n TranslateOrchestratorService: Symbol.for(\"Companion.TranslateOrchestratorService\"),\n ComponentLabelsBootstrapService: Symbol.for(\"Companion.ComponentLabelsBootstrapService\"),\n\n // AI services\n\n // Email template service\n EmailTemplateService: Symbol.for(\"Companion.EmailTemplateService\"),\n EmailSpecContextLoader: Symbol.for(\"Companion.EmailSpecContextLoader\"),\n\n // Market generation service (Phase 4.2)\n MarketGenerationService: Symbol.for(\"Companion.MarketGenerationService\"),\n\n // Logo generation service (brand/logo step). Companion-owned orchestrator\n // of the IMAGE-modality `brand.logo.generation.agent`.\n LogoGenerationService: Symbol.for(\"Companion.LogoGenerationService\"),\n\n // Logo DELIBERATION (agentic deliberation system, Step 4): the art-director\n // authors the creative brief, one candidate generates per direction, the\n // expert panel deliberates (craft + coherence + strategy lenses), and the\n // winner is staged as the single-candidate manifest the accept step promotes.\n LogoDeliberationService: Symbol.for(\"Companion.LogoDeliberationService\"),\n\n // Brand accept/promote service (brand/logo ACCEPT step). Companion-owned:\n // runs the `brand.logo.judge.agent` review point + promotes an accepted\n // staged candidate into the specification SSOT (assets/ + resolved-assets.generated.ts).\n BrandAcceptService: Symbol.for(\"Companion.BrandAcceptService\"),\n\n // Expert-persona derive→accept lifecycle (agentic deliberation system).\n // Companion-owned: derives app-specific persona charters from the framework\n // role templates + the app's spec artifacts (staged proposal), and promotes\n // accepted proposals into `specifications/src/personas/` (the committed SSOT).\n ExpertPersonaService: Symbol.for(\"Companion.ExpertPersonaService\"),\n\n // Deliberation composer (agentic deliberation system, Step 3): composes\n // charter-built expert panels into engine deliberations and persists the\n // returned DeliberationRecord to companion staging.\n DeliberationService: Symbol.for(\"Companion.DeliberationService\"),\n StructuredDeliberationService: Symbol.for(\"Companion.StructuredDeliberationService\"),\n\n // Direct Claude-CLI invocation from the companion (lower-level than\n // the agents path used by `MarketGenerationService`). Pulls the\n // `kind: 'cli-runtime'` runtime contract for the configured provider\n // off `BackendProviderRegistryBackendService` and spawns the binary\n // `anthropic` provider (in `wildo.saas.config.ts`) is what makes the\n // contract reachable from this process.\n\n // Coding-agent dispatch lane (meta-workflows Step 4 / L2).\n // GitChangeSetService = READ-ONLY git observation (DD-8 carve-out, P-19);\n // CodingAgentDispatchService = async task-backed CLI runs (P-16..P-21);\n // AuthFloorService = loopback assertion + companion.token middleware (P-29).\n GitChangeSetService: Symbol.for(\"Companion.GitChangeSetService\"),\n CodingAgentDispatchService: Symbol.for(\"Companion.CodingAgentDispatchService\"),\n // ResearchAgentDispatchService = the READ-ONLY sibling. Same ACP transport, no lock and no change\n // set: a run that cannot mutate has nothing to attribute, which is also what lets several run at once.\n ResearchAgentDispatchService: Symbol.for(\"Companion.ResearchAgentDispatchService\"),\n AuthFloorService: Symbol.for(\"Companion.AuthFloorService\"),\n\n // Journey transition-control lane. The legacy runner/registry/choreographer/\n // snapshot services were deleted at the first-activation hard cut; the\n // controller retains only bootstrap-scope intake and the route-bound\n // transition authority/commit protocol.\n\n // Private assessment-episode vertical (flexible intelligence). One\n // composition root owns the whole private graph — working definition, current\n // input, context composition, retained working evaluator, admission,\n // filesystem checkpoint store, generic-loop host with its application\n // adapters, local operator attestation and the sanitized public-v2 membrane.\n // The public-v2 controller is its only HTTP surface and is mounted in the\n // READY posture only.\n\n // Report-only new-contract assessment lane. These services project only the exact\n // current-process v2 registry and assess caller-supplied candidate bytes;\n // they have no route, startup, Journey or legacy-runner effect.\n\n // Application-creation workbench runtime/static delivery. These tokens own\n // only package distribution and transport; they carry no application\n // authentication or semantic decision authority.\n\n // Application execution-continuity integration. Portable records and durable\n // mechanics remain engine-owned; these tokens expose only the narrow local\n // startup, family-binding and physical Task adapter boundaries.\n CompanionStartupCompositionFence: Symbol.for(\"Companion.CompanionStartupCompositionFence\"),\n\n // Technical documentation orchestrator (saas-technical-doc.md Step 3)\n TechnicalDocumentationEnvironmentClock: Symbol.for(\"Companion.TechnicalDocumentationEnvironmentClock\"),\n TechnicalDocumentationEnvironmentIdentityService: Symbol.for(\"Companion.TechnicalDocumentationEnvironmentIdentityService\"),\n TechnicalDocumentationApplicationDerivationService: Symbol.for(\"Companion.TechnicalDocumentationApplicationDerivationService\"),\n TechnicalDocService: Symbol.for(\"Companion.TechnicalDocService\"),\n\n // Companion introspection\n IntrospectionService: Symbol.for(\"Companion.IntrospectionService\"),\n IntrospectionBehaviorRegistryService: Symbol.for(\"Companion.IntrospectionBehaviorRegistryService\"),\n TranslationPlacementService: Symbol.for(\"Companion.TranslationPlacementService\"),\n ExecutionsService: Symbol.for(\"Companion.ExecutionsService\"),\n TraceabilityService: Symbol.for(\"Companion.TraceabilityService\"),\n\n // Controllers\n CompanionController: Symbol.for(\"Companion.Controller\"),\n} as const;\n\nexport type CompanionServiceType = (typeof COMPANION_SERVICE_TYPES)[keyof typeof COMPANION_SERVICE_TYPES];\n"]}
1
+ {"version":3,"file":"service-types.js","sourceRoot":"","sources":["../../../../../../src/core/inject/models/service-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,gBAAgB,EAAE,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAC1D,8FAA8F;IAC9F,kBAAkB,EAAE,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC;IAC9D,yBAAyB,EAAE,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC;IAC5E,2BAA2B,EAAE,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC;IAChF,qCAAqC,EAAE,MAAM,CAAC,GAAG,CAAC,iDAAiD,CAAC;IACpG,qFAAqF;IACrF,+BAA+B,EAAE,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC;IACxF,0BAA0B,EAAE,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC;IAC9E,+BAA+B,EAAE,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC;IACxF,8DAA8D;IAC9D,yBAAyB,EAAE,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC;IAC5E,qIAAqI;IACrI,8BAA8B,EAAE,MAAM,CAAC,GAAG,CAAC,0CAA0C,CAAC;IACtF,sBAAsB,EAAE,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC;IAEtE,4DAA4D;IAC5D,oBAAoB,EAAE,MAAM,CAAC,GAAG,CAAC,gCAAgC,CAAC;IAElE,kEAAkE;IAClE,uBAAuB,EAAE,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACxE,0BAA0B,EAAE,MAAM,CAAC,GAAG,CAAC,sCA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C;IAC5D,mBAAmB,EAAE,MAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC;IAEhE,cAAc;IACd,mBAAmB,EAAE,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC;CAC/C,CAAC","sourcesContent":["/**\n * Dev Companion Service Types for Dependency Injection\n */\n\nexport const COMPANION_SERVICE_TYPES = {\n CompanionContext: Symbol.for(\"Companion.CompanionContext\"),\n /** Runs one compiled Framework Knowledge playbook: model generation → specification files. */\n PlaybookRunService: Symbol.for(\"Companion.PlaybookRunService\"),\n FoundationExecutorService: Symbol.for(\"Companion.FoundationExecutorService\"),\n PlaybookSuspendedRunService: Symbol.for(\"Companion.PlaybookSuspendedRunService\"),\n PlaybookChoreographyCheckpointService: Symbol.for(\"Companion.PlaybookChoreographyCheckpointService\"),\n /** Selects the next ready build-plan task and composes its coding-agent dispatch. */\n ApplicationBuildDispatchService: Symbol.for(\"Companion.ApplicationBuildDispatchService\"),\n BuildGenerationStepService: Symbol.for(\"Companion.BuildGenerationStepService\"),\n PlaybookRunWriteRegisterService: Symbol.for(\"Companion.PlaybookRunWriteRegisterService\"),\n /** Read-only browser over the companion traceability tree. */\n ExecutionTraceReadService: Symbol.for(\"Companion.ExecutionTraceReadService\"),\n /** In-process creation-plane projections (playbook eligibility, build-plan board, write records, traces) + the eligibility cache. */\n CreationPlaneProjectionService: Symbol.for(\"Companion.CreationPlaneProjectionService\"),\n CompanionRuntimeConfig: Symbol.for(\"Companion.CompanionRuntimeConfig\"),\n\n // Shared companion-managed lock file (wildo-saas.lock.json)\n WildoSaasLockService: Symbol.for(\"Companion.WildoSaasLockService\"),\n\n // i18n labelling pipeline (planner / spec loader / orchestrators)\n LabellingPlannerService: Symbol.for(\"Companion.LabellingPlannerService\"),\n LabellingSpecContextLoader: Symbol.for(\"Companion.LabellingSpecContextLoader\"),\n LabellizeOrchestratorService: Symbol.for(\"Companion.LabellizeOrchestratorService\"),\n TranslateOrchestratorService: Symbol.for(\"Companion.TranslateOrchestratorService\"),\n ComponentLabelsBootstrapService: Symbol.for(\"Companion.ComponentLabelsBootstrapService\"),\n\n // AI services\n\n // Email template service\n EmailTemplateService: Symbol.for(\"Companion.EmailTemplateService\"),\n EmailSpecContextLoader: Symbol.for(\"Companion.EmailSpecContextLoader\"),\n\n // Market generation service (Phase 4.2)\n MarketGenerationService: Symbol.for(\"Companion.MarketGenerationService\"),\n\n // Logo generation service (brand/logo step). Companion-owned orchestrator\n // of the IMAGE-modality `brand.logo.generation.agent`.\n LogoGenerationService: Symbol.for(\"Companion.LogoGenerationService\"),\n\n // Logo DELIBERATION (agentic deliberation system, Step 4): the art-director\n // authors the creative brief, one candidate generates per direction, the\n // expert panel deliberates (craft + coherence + strategy lenses), and the\n // winner is staged as the single-candidate manifest the accept step promotes.\n LogoDeliberationService: Symbol.for(\"Companion.LogoDeliberationService\"),\n\n // Brand accept/promote service (brand/logo ACCEPT step). Companion-owned:\n // runs the `brand.logo.judge.agent` review point + promotes an accepted\n // staged candidate into the specification SSOT (assets/ + resolved-assets.generated.ts).\n BrandAcceptService: Symbol.for(\"Companion.BrandAcceptService\"),\n\n // Expert-persona derive→accept lifecycle (agentic deliberation system).\n // Companion-owned: derives app-specific persona charters from the framework\n // role templates + the app's spec artifacts (staged proposal), and promotes\n // accepted proposals into `specifications/src/personas/` (the committed SSOT).\n ExpertPersonaService: Symbol.for(\"Companion.ExpertPersonaService\"),\n\n // Deliberation composer (agentic deliberation system, Step 3): composes\n // charter-built expert panels into engine deliberations and persists the\n // returned DeliberationRecord to companion staging.\n DeliberationService: Symbol.for(\"Companion.DeliberationService\"),\n StructuredDeliberationService: Symbol.for(\"Companion.StructuredDeliberationService\"),\n\n // Direct Claude-CLI invocation from the companion (lower-level than\n // the agents path used by `MarketGenerationService`). Pulls the\n // `kind: 'cli-runtime'` runtime contract for the configured provider\n // off `BackendProviderRegistryBackendService` and spawns the binary\n // `anthropic` provider (in `wildo.saas.config.ts`) is what makes the\n // contract reachable from this process.\n\n // Coding-agent dispatch lane (meta-workflows Step 4 / L2).\n // GitChangeSetService = READ-ONLY git observation (DD-8 carve-out, P-19);\n // CodingAgentDispatchService = async task-backed CLI runs (P-16..P-21);\n // AuthFloorService = loopback assertion + companion.token middleware (P-29).\n GitChangeSetService: Symbol.for(\"Companion.GitChangeSetService\"),\n CodingAgentDispatchService: Symbol.for(\"Companion.CodingAgentDispatchService\"),\n // ResearchAgentDispatchService = the READ-ONLY sibling. Same ACP transport, no lock and no change\n // set: a run that cannot mutate has nothing to attribute, which is also what lets several run at once.\n ResearchAgentDispatchService: Symbol.for(\"Companion.ResearchAgentDispatchService\"),\n AuthFloorService: Symbol.for(\"Companion.AuthFloorService\"),\n\n // Journey transition-control lane. The legacy runner/registry/choreographer/\n // snapshot services were deleted at the first-activation hard cut; the\n // controller retains only bootstrap-scope intake and the route-bound\n // transition authority/commit protocol.\n\n // Private assessment-episode vertical (flexible intelligence). One\n // composition root owns the whole private graph — working definition, current\n // input, context composition, retained working evaluator, admission,\n // filesystem checkpoint store, generic-loop host with its application\n // adapters, local operator attestation and the sanitized public-v2 membrane.\n // The public-v2 controller is its only HTTP surface and is mounted in the\n // READY posture only.\n\n // Report-only new-contract assessment lane. These services project only the exact\n // current-process v2 registry and assess caller-supplied candidate bytes;\n // they have no route, startup, Journey or legacy-runner effect.\n\n // Application-creation workbench runtime/static delivery. These tokens own\n // only package distribution and transport; they carry no application\n // authentication or semantic decision authority.\n\n // Application execution-continuity integration. Portable records and durable\n // mechanics remain engine-owned; these tokens expose only the narrow local\n // startup, family-binding and physical Task adapter boundaries.\n CompanionStartupCompositionFence: Symbol.for(\"Companion.CompanionStartupCompositionFence\"),\n\n // Technical documentation orchestrator (saas-technical-doc.md Step 3)\n TechnicalDocumentationEnvironmentClock: Symbol.for(\"Companion.TechnicalDocumentationEnvironmentClock\"),\n TechnicalDocumentationEnvironmentIdentityService: Symbol.for(\"Companion.TechnicalDocumentationEnvironmentIdentityService\"),\n TechnicalDocumentationApplicationDerivationService: Symbol.for(\"Companion.TechnicalDocumentationApplicationDerivationService\"),\n TechnicalDocService: Symbol.for(\"Companion.TechnicalDocService\"),\n\n // Companion introspection\n IntrospectionService: Symbol.for(\"Companion.IntrospectionService\"),\n IntrospectionBehaviorRegistryService: Symbol.for(\"Companion.IntrospectionBehaviorRegistryService\"),\n IntrospectionDerivationStateService: Symbol.for(\"Companion.IntrospectionDerivationStateService\"),\n IntrospectionSourceWatcherService: Symbol.for(\"Companion.IntrospectionSourceWatcherService\"),\n IntrospectionResourceNotifierService: Symbol.for(\"Companion.IntrospectionResourceNotifierService\"),\n TranslationPlacementService: Symbol.for(\"Companion.TranslationPlacementService\"),\n ExecutionsService: Symbol.for(\"Companion.ExecutionsService\"),\n TraceabilityService: Symbol.for(\"Companion.TraceabilityService\"),\n\n // Controllers\n CompanionController: Symbol.for(\"Companion.Controller\"),\n} as const;\n\nexport type CompanionServiceType = (typeof COMPANION_SERVICE_TYPES)[keyof typeof COMPANION_SERVICE_TYPES];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"companion-introspection-behavior-definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/behaviors/companion-introspection-behavior-definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wCAAwC,EACxC,gCAAgC,EAChC,gDAAgD,EAChD,iCAAiC,EAClC,MAAM,0CAA0C,CAAC;AAOlD,eAAO,MAAM,4CAA4C,EAAE,MAAM,CAC/D,gCAAgC,EAChC,wCAAwC,CA+hBhC,CAAC;AAEX,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,gCAAgC,GAC3C,wCAAwC,CAO1C;AAED,wBAAgB,6DAA6D,CAC3E,UAAU,EAAE,gCAAgC,EAC5C,WAAW,EAAE,iCAAiC,GAC7C,gDAAgD,CAmBlD"}
1
+ {"version":3,"file":"companion-introspection-behavior-definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/behaviors/companion-introspection-behavior-definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wCAAwC,EACxC,gCAAgC,EAChC,gDAAgD,EAChD,iCAAiC,EAClC,MAAM,0CAA0C,CAAC;AAOlD,eAAO,MAAM,4CAA4C,EAAE,MAAM,CAC/D,gCAAgC,EAChC,wCAAwC,CAmnBhC,CAAC;AAEX,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,gCAAgC,GAC3C,wCAAwC,CAO1C;AAED,wBAAgB,6DAA6D,CAC3E,UAAU,EAAE,gCAAgC,EAC5C,WAAW,EAAE,iCAAiC,GAC7C,gDAAgD,CAmBlD"}
@@ -512,6 +512,87 @@ export const COMPANION_INTROSPECTION_BEHAVIOR_DEFINITIONS = {
512
512
  * resource CONFIGS, which the specifications target does not carry. Real logic lives in
513
513
  * `subprocess/compliance-primary-facts.behavior.ts`.
514
514
  */
515
+ /**
516
+ * The application's domain model as one projection — nodes, edges, module membership and the
517
+ * specification prose, from a SINGLE subprocess run.
518
+ *
519
+ * Routed exactly like `resource-specifications` (`specifications` target, `library` required) for
520
+ * the reason that behavior needs both: ownership and the spec overlay come from the specifications
521
+ * package, the relationship edges from the shared library. Declaring the same routing is what makes
522
+ * this ONE derivation rather than a cheaper spelling of two.
523
+ */
524
+ 'application-domain-model': {
525
+ behaviorId: 'application-domain-model',
526
+ description: "Project the observed application's domain model in one derivation: every resource, the module "
527
+ + 'that owns it (null for the engine types its own edges reach), the relationships it participates '
528
+ + 'in with FK-holder direction resolved from cardinality, and the prose of its specification. '
529
+ + 'Consumed by the application-creation workbench\'s domain-model graph.',
530
+ category: 'resources',
531
+ supportedServiceKinds: ['backend', 'frontend'],
532
+ routingByServiceKind: {
533
+ backend: {
534
+ target: 'specifications',
535
+ requiredTargets: ['library'],
536
+ },
537
+ frontend: {
538
+ target: 'specifications',
539
+ requiredTargets: ['library'],
540
+ },
541
+ },
542
+ execution: {
543
+ ...SHARED_EXECUTION_BOUNDARY,
544
+ materializationKind: 'json-snapshot',
545
+ },
546
+ },
547
+ /**
548
+ * The operator-facing projection of the authored specification families (issue #162). Routes to the
549
+ * `specifications` target alone — every family's accepted value is a companion export of that
550
+ * package, and none of them is in the resource registry — so unlike `application-domain-model` it
551
+ * needs no `library` target. Real logic lives in `subprocess/specification-artifacts.behavior.ts`.
552
+ */
553
+ 'specification-artifacts': {
554
+ behaviorId: 'specification-artifacts',
555
+ description: 'Project every application-specification family for a human reviewer: whether it landed, '
556
+ + 'whether its own _core validator still passes, which playbooks produce it, the committed '
557
+ + 'DECISIONS.md and DIAGRAM.md beside it, and the artifact rendered as an outline document. '
558
+ + "Consumed by the application-creation workbench's specification-artifacts destination.",
559
+ category: 'specifications',
560
+ supportedServiceKinds: ['backend', 'frontend'],
561
+ routingByServiceKind: {
562
+ backend: {
563
+ target: 'specifications',
564
+ },
565
+ frontend: {
566
+ target: 'specifications',
567
+ },
568
+ },
569
+ execution: {
570
+ ...SHARED_EXECUTION_BOUNDARY,
571
+ materializationKind: 'json-snapshot',
572
+ },
573
+ },
574
+ 'family-aspects': {
575
+ behaviorId: 'family-aspects',
576
+ description: 'Project every SECOND-LEVEL aspect row of every landed specification family — ICPs, '
577
+ + 'personas, success criteria, requirements, phases, plans and their kin — with their '
578
+ + 'reference edges flattened into plain foreign-key fields, in ONE projection so both ends '
579
+ + "of every edge describe the same working tree. Forty workbench aspect resources bind it, "
580
+ + 'each at its own rowsPath.',
581
+ category: 'specifications',
582
+ supportedServiceKinds: ['backend', 'frontend'],
583
+ routingByServiceKind: {
584
+ backend: {
585
+ target: 'specifications',
586
+ },
587
+ frontend: {
588
+ target: 'specifications',
589
+ },
590
+ },
591
+ execution: {
592
+ ...SHARED_EXECUTION_BOUNDARY,
593
+ materializationKind: 'json-snapshot',
594
+ },
595
+ },
515
596
  'compliance-primary-facts': {
516
597
  behaviorId: 'compliance-primary-facts',
517
598
  description: 'Derive what a compliance document can state about this application — erasure retention mode, '
@@ -1 +1 @@
1
- {"version":3,"file":"companion-introspection-behavior-definitions.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/beh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viorId,\n CompanionIntrospectionResolvedBehaviorDefinition,\n CompanionIntrospectionServiceKind,\n} from '../models/companion-introspection.models';\n\nconst SHARED_EXECUTION_BOUNDARY = {\n materializationBoundary: 'subprocess',\n compositionBoundary: 'parent',\n} as const;\n\nexport const COMPANION_INTROSPECTION_BEHAVIOR_DEFINITIONS: Record<\n CompanionIntrospectionBehaviorId,\n CompanionIntrospectionBehaviorDefinition\n> = {\n 'resources-registry': {\n behaviorId: 'resources-registry',\n description: 'Materialize a JSON-safe shared resources registry snapshot.',\n category: 'resources',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'email-template-placement-info': {\n behaviorId: 'email-template-placement-info',\n description: 'Materialize backend email ownership and placement metadata.',\n category: 'email',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'translation-needed-info': {\n behaviorId: 'translation-needed-info',\n description: 'Materialize shared translation ownership and artifact placement metadata.',\n category: 'translation',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n },\n frontend: {\n target: 'library',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'frontend-artifact-placement-info': {\n behaviorId: 'frontend-artifact-placement-info',\n description: 'Materialize frontend artifact placement metadata.',\n category: 'translation',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'design-system-source-config': {\n behaviorId: 'design-system-source-config',\n description: 'Materialize the authored frontend design-system source config.',\n category: 'frontend-design-system',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'design-tokens-css': {\n behaviorId: 'design-tokens-css',\n description: 'Materialize generated design-token CSS from the authored frontend config.',\n category: 'frontend-design-system',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'text-artifact',\n },\n },\n 'frontend-labels-needed-info': {\n behaviorId: 'frontend-labels-needed-info',\n description: 'Materialize the frontend-derived app-specific label key requirements.',\n category: 'labels',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'resource-specifications': {\n behaviorId: 'resource-specifications',\n description: 'Materialize resource specification overlays merged with shared resource schemas.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'specification-context-parts': {\n behaviorId: 'specification-context-parts',\n description: 'Render one specification into one concern-specific Markdown context part.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'catalog-context-parts': {\n behaviorId: 'catalog-context-parts',\n description:\n 'Render one catalog entry into one AI-readable Markdown context part (Schema.org today). Consumed by AEO/GEO workflows that need per-entity field guidance.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Phase-4 market-context behaviors.\n *\n * Both behaviors share the same routing posture (specifications target,\n * backend + frontend service kinds, json-snapshot materialization) and\n * surface the pure `buildMarketContextBlock(...)` renderer over the\n * companion HTTP/RPC. Anchored as `companion.introspection.behaviors.market`\n * so the `market-companion-prompt-enrichment` SKILL can reference the\n * exact behavior contracts.\n *\n * @wildo_source:part:start companion.introspection.behaviors.market facet:layer:companion facet:family:market\n */\n 'market-context-for-feature': {\n behaviorId: 'market-context-for-feature',\n description:\n 'Render an English market-context block for a feature ref — benefits in scope, '\n + 'most-affected ICPs, anti-targets, preferred voice. Consumed by the dev companion '\n + '\"edit feature X\" prompt enrichment and by the market generation CLI (Phase 4.2).',\n category: 'market',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'market-context-for-icp': {\n behaviorId: 'market-context-for-icp',\n description:\n 'Render an English market-context block for an ICP ref — relevant benefits, ICP profile, '\n + 'anti-targets, preferred voice. Consumed by the market generation CLI when generating '\n + 'per-ICP outputs (landing pages, emails, objection responses).',\n category: 'market',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Phase-4.2 market generation behavior. Materializes the **fully rendered\n * prompt** for one `MarketMessageTemplate` ref + caller-supplied input\n * refs (icp / feature / benefit / channel / objection / outputLanguage).\n * The subprocess owns snapshot resolution + validation, template lookup,\n * `requiredInputs` enforcement, context-block rendering, and Mustache\n * substitution; the parent process consumes only the final prompt\n * string before handing it to `AgentsBackendService.invokeAgent(...)`.\n *\n * The handler intentionally does NOT call the LLM itself — keeping the\n * subprocess pure-and-deterministic preserves the \"snapshot resolution\n * happens in a child process, LLM happens in the parent\" boundary\n * established in Phase 4.1.\n */\n 'market-render-prompt': {\n behaviorId: 'market-render-prompt',\n description:\n 'Render the full market generation prompt (English market-context block + Mustache-substituted '\n + 'message template body) for one MarketMessageTemplate ref. Consumed by the dev-companion '\n + '`/api/companion/market/generate` route, which feeds the prompt to AgentsBackendService.',\n category: 'market',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /** @wildo_source:part:end companion.introspection.behaviors.market */\n /**\n * Brand logo-generation prompt assembler. Routes to the `specifications`\n * target (where the authored `BrandSnapshot` lives via `brandSpecification`),\n * validates the snapshot, and assembles the text-to-image prompt. Pure\n * projection — no image call. Consumed by the parent\n * `LogoGenerationCompanionService`, which invokes the image agent.\n */\n 'brand-render-prompt': {\n behaviorId: 'brand-render-prompt',\n description:\n 'Assemble the text-to-image prompt for logo generation from the authored BrandSnapshot '\n + '(brand name + logo direction + visual tone), optionally enriched by the market tonesOfVoice. '\n + 'Consumed by the dev-companion LogoGenerationCompanionService, which feeds it to the image agent.',\n category: 'brand',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Expert-persona derivation-inputs projector. Routes to the\n * `specifications` target and resolves the snapshots a role's charter\n * derivation is shaped by (input: `{ shapingInputKinds: string[] }`).\n * Returns `{ inputs, missingKinds, parentComposedKinds }` — the parent\n * `ExpertPersonaCompanionService` fails closed on `missingKinds` and\n * composes `parentComposedKinds` (DESIGN_SYSTEM) from the frontend\n * design-system behaviors before digesting + deriving.\n */\n 'expert-persona-derivation-inputs': {\n behaviorId: 'expert-persona-derivation-inputs',\n description:\n 'Resolve the specification-tier shaping inputs (vision / market / brand / requirements / '\n + 'business-model / accepted-decisions) an expert-persona charter derivation needs. Consumed by '\n + 'the dev-companion ExpertPersonaCompanionService, which digests them and invokes the derivation agent.',\n category: 'expert-personas',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Committed expert-persona charters read-back. Routes to the\n * `specifications` target and serves the app's `expertPersonaCharters`\n * companion export (the accepted charters). Consumed by the accept step's\n * overwrite guard + validator run and the deliberation agent factory.\n */\n 'expert-persona-charters': {\n behaviorId: 'expert-persona-charters',\n description:\n 'Serve the committed expert-persona charters (the app\\'s expertPersonaCharters companion export). '\n + 'Consumed by the dev-companion accept guard/validator and the deliberation agent factory.',\n category: 'expert-personas',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Technical-documentation OpenAPI input projector (`saas-technical-doc.md`\n * Step 3b + spec-integration Phase 1). Routes to the `library` target on\n * backend services because the shared `ResourcesRegistry` is loaded by the\n * same `loadSharedModules()` companion export already used by\n * `resources-registry`. It additionally declares `specifications` and the\n * backend `service` as required targets. Specifications provide authored\n * operation and resource meaning; the service provides the application's\n * final startup declaration, including exact organization-unit narrowing.\n * The output is the `OpenApiGenerationInputSchema` payload consumed\n * downstream by `generateOpenApiDocuments(...)` in the parent companion\n * process.\n */\n 'openapi-generation-input': {\n behaviorId: 'openapi-generation-input',\n description:\n 'Project the resolved ResourcesRegistry into the OpenApiGenerationInput shape '\n + '(one row per (operation × initiatorInfo) for API_CALL / API_CALL_WITH_CALLBACK '\n + 'variants, with z.toJSONSchema() request/response bodies), enriched with '\n + 'authored operation summary/description from the specifications target.',\n category: 'technical-doc',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n requiredTargets: ['specifications', 'service'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'settings-placement-content': {\n behaviorId: 'settings-placement-content',\n description:\n \"Verify the application's authored settings rail against the engine destination catalog: \"\n + 'placements naming a destination the catalog does not ship, duplicate refs, and a '\n + 'defaultSectionRef nothing declares. Exists because an unknown destinationRef is NOT a '\n + 'type error — resolution drops the placement and the section silently never renders — so '\n + 'a SHELL_PLACEMENT coding task can pass its typecheck and land a missing settings section.',\n category: 'frontend-design-system',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'chart-registration-refs': {\n behaviorId: 'chart-registration-refs',\n description:\n 'Materialize every frontend chartView chartDefinition.ref across the app resources '\n + '(the frontend-only chart authoring surface). The parent composes these with the '\n + 'backend-registered chart refs to detect a chartView with no backend registration.',\n category: 'charts',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Assertion Surface behavior family (app-creation meta-workflows,\n * master plan S1; implementation-spec P-9). All three route to the\n * `specifications` target (which carries the authored\n * `assertionSpecifications` snapshot) on BOTH service kinds, mirroring\n * `resource-specifications`; the SAAS_APP frontend service key drives\n * the call in v1 (P-14b). `resolve` and `reconcile` additionally\n * declare `requiredTargets: ['library']` because both derive against\n * the live resources registry (built from the shared library target);\n * `list` is a pure authored projection and needs no live target.\n * Real logic lives in `subprocess/assertions.behavior.ts`.\n */\n 'assertions-list': {\n behaviorId: 'assertions-list',\n description:\n 'Project the authored AssertionSpecificationSnapshot (the app-creation meta-workflows '\n + 'assumption surface), filtered by lane / kind. Pure projection — no live registry.',\n category: 'assertions',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'assertions-resolve': {\n behaviorId: 'assertions-resolve',\n description:\n 'Resolve authored assertion entries (narrowed by refs) plus live probe findings derived '\n + 'at query time against the resources registry. The parent process composes LLM '\n + 'interpretation of the free-text query on top of these deterministic outputs.',\n category: 'assertions',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'assertions-reconcile': {\n behaviorId: 'assertions-reconcile',\n description:\n 'Compute per-entry reconcile status (assumed → landed → drifted / unverifiable) by '\n + 'diffing authored assumptions against the introspected resources registry.',\n category: 'assertions',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Top-down definition-specifications projection (app-creation\n * meta-workflows, journey-buildout GAP-D1-9). Routes to the\n * `specifications` target (which carries the registered definition-family\n * companion-export snapshots) — a PURE authored projection like `assertions-list`, so it\n * needs no `library` target. Runs each family's `_core` validator as a\n * durable load-time guard; real logic lives in\n * `subprocess/definition-specifications.behavior.ts`.\n */\n 'definition-specifications': {\n behaviorId: 'definition-specifications',\n description:\n 'Project the presence + structural validity + cross-family coherence of the authored '\n + 'top-down definition set (vision-brief / market-snapshot / requirements / roadmap / '\n + 'business-model / brand-brief) from the specifications companion exports — the durable load-time guard.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Compliance facts derived from the application's resource configurations — the input a governed\n * document is drafted from. `library` target, like `resources-registry`: these are declarations on\n * resource CONFIGS, which the specifications target does not carry. Real logic lives in\n * `subprocess/compliance-primary-facts.behavior.ts`.\n */\n 'compliance-primary-facts': {\n behaviorId: 'compliance-primary-facts',\n description:\n 'Derive what a compliance document can state about this application — erasure retention mode, '\n + 'data-subject kind, subject export and retained see-through access per resource — split by '\n + 'engine-declared versus application-declared origin.',\n category: 'specifications',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n} as const;\n\nexport function getCompanionIntrospectionBehaviorDefinition(\n behaviorId: CompanionIntrospectionBehaviorId,\n): CompanionIntrospectionBehaviorDefinition {\n const definition = COMPANION_INTROSPECTION_BEHAVIOR_DEFINITIONS[behaviorId];\n if (!definition) {\n throw new Error(`Unknown companion introspection behavior \"${behaviorId}\".`);\n }\n\n return definition;\n}\n\nexport function resolveCompanionIntrospectionBehaviorDefinitionForServiceKind(\n behaviorId: CompanionIntrospectionBehaviorId,\n serviceKind: CompanionIntrospectionServiceKind,\n): CompanionIntrospectionResolvedBehaviorDefinition {\n const definition = getCompanionIntrospectionBehaviorDefinition(behaviorId);\n if (!definition.supportedServiceKinds.includes(serviceKind)) {\n throw new Error(`Behavior \"${behaviorId}\" is not declared for ${serviceKind} services.`);\n }\n\n const route = definition.routingByServiceKind[serviceKind];\n if (!route) {\n throw new Error(`Behavior \"${behaviorId}\" does not define routing for ${serviceKind} services.`);\n }\n\n return {\n behaviorId: definition.behaviorId,\n description: definition.description,\n category: definition.category,\n serviceKind,\n route,\n execution: definition.execution,\n };\n}\n"]}
1
+ {"version":3,"file":"companion-introspection-behavior-definitions.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/behaviors/companion-introspection-behavior-definitions.ts"],"names":[],"mappings":"AAOA,MAAM,yBAAyB,GAAG;IAChC,uBAAuB,EAAE,YAAY;IACrC,mBAAmB,EAAE,QAAQ;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,4CAA4C,GAGrD;IACF,oBAAoB,EAAE;QACpB,UAAU,EAAE,oBAAoB;QAChC,WAAW,EAAE,6DAA6D;QAC1E,QAAQ,EAAE,WAAW;QACrB,qBAAqB,EAAE,CAAC,SAAS,CAAC;QAClC,oBAAoB,EAAE;YACpB,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;QACD,SAAS,EAAE;YACT,GAAG,yBAAyB;YAC5B,mBAAmB,EAAE,eAAe;SACrC;KACF;IACD,+BAA+B,EAAE;QAC/B,UAAU,EAAE,+BAA+B;QAC3C,WAAW,EAAE,6DAA6D;QAC1E,QAAQ,EAAE,OAAO;QACjB,qBAAqB,EAAE,CAAC,SAAS,CAAC;QAClC,oBAAoB,EAAE;YACpB,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;QACD,SAAS,EAAE;YACT,GAAG,yBAAyB;YAC5B,mBAAmB,EAAE,eAAe;SACrC;KACF;IACD,yBAAyB,EAAE;QACzB,UAAU,EAAE,yBAAyB;QACrC,WAAW,EAAE,2EAA2E;QACxF,QAAQ,EAAE,aAAa;QACvB,qBAAqB,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAC9C,oBAAoB,EAAE;YACpB,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,SAAS;aAClB;SACF;QACD,S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iC,WAAW,YAAY,CAAC,CAAC;IACnG,CAAC;IAED,OAAO;QACL,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,WAAW,EAAE,UAAU,CAAC,WAAW;QACnC,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,WAAW;QACX,KAAK;QACL,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;AACJ,CAAC","sourcesContent":["import type {\n CompanionIntrospectionBehaviorDefinition,\n CompanionIntrospectionBehaviorId,\n CompanionIntrospectionResolvedBehaviorDefinition,\n CompanionIntrospectionServiceKind,\n} from '../models/companion-introspection.models';\n\nconst SHARED_EXECUTION_BOUNDARY = {\n materializationBoundary: 'subprocess',\n compositionBoundary: 'parent',\n} as const;\n\nexport const COMPANION_INTROSPECTION_BEHAVIOR_DEFINITIONS: Record<\n CompanionIntrospectionBehaviorId,\n CompanionIntrospectionBehaviorDefinition\n> = {\n 'resources-registry': {\n behaviorId: 'resources-registry',\n description: 'Materialize a JSON-safe shared resources registry snapshot.',\n category: 'resources',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'email-template-placement-info': {\n behaviorId: 'email-template-placement-info',\n description: 'Materialize backend email ownership and placement metadata.',\n category: 'email',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'translation-needed-info': {\n behaviorId: 'translation-needed-info',\n description: 'Materialize shared translation ownership and artifact placement metadata.',\n category: 'translation',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n },\n frontend: {\n target: 'library',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'frontend-artifact-placement-info': {\n behaviorId: 'frontend-artifact-placement-info',\n description: 'Materialize frontend artifact placement metadata.',\n category: 'translation',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'design-system-source-config': {\n behaviorId: 'design-system-source-config',\n description: 'Materialize the authored frontend design-system source config.',\n category: 'frontend-design-system',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'design-tokens-css': {\n behaviorId: 'design-tokens-css',\n description: 'Materialize generated design-token CSS from the authored frontend config.',\n category: 'frontend-design-system',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'text-artifact',\n },\n },\n 'frontend-labels-needed-info': {\n behaviorId: 'frontend-labels-needed-info',\n description: 'Materialize the frontend-derived app-specific label key requirements.',\n category: 'labels',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'resource-specifications': {\n behaviorId: 'resource-specifications',\n description: 'Materialize resource specification overlays merged with shared resource schemas.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'specification-context-parts': {\n behaviorId: 'specification-context-parts',\n description: 'Render one specification into one concern-specific Markdown context part.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'catalog-context-parts': {\n behaviorId: 'catalog-context-parts',\n description:\n 'Render one catalog entry into one AI-readable Markdown context part (Schema.org today). Consumed by AEO/GEO workflows that need per-entity field guidance.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Phase-4 market-context behaviors.\n *\n * Both behaviors share the same routing posture (specifications target,\n * backend + frontend service kinds, json-snapshot materialization) and\n * surface the pure `buildMarketContextBlock(...)` renderer over the\n * companion HTTP/RPC. Anchored as `companion.introspection.behaviors.market`\n * so the `market-companion-prompt-enrichment` SKILL can reference the\n * exact behavior contracts.\n *\n * @wildo_source:part:start companion.introspection.behaviors.market facet:layer:companion facet:family:market\n */\n 'market-context-for-feature': {\n behaviorId: 'market-context-for-feature',\n description:\n 'Render an English market-context block for a feature ref — benefits in scope, '\n + 'most-affected ICPs, anti-targets, preferred voice. Consumed by the dev companion '\n + '\"edit feature X\" prompt enrichment and by the market generation CLI (Phase 4.2).',\n category: 'market',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'market-context-for-icp': {\n behaviorId: 'market-context-for-icp',\n description:\n 'Render an English market-context block for an ICP ref — relevant benefits, ICP profile, '\n + 'anti-targets, preferred voice. Consumed by the market generation CLI when generating '\n + 'per-ICP outputs (landing pages, emails, objection responses).',\n category: 'market',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Phase-4.2 market generation behavior. Materializes the **fully rendered\n * prompt** for one `MarketMessageTemplate` ref + caller-supplied input\n * refs (icp / feature / benefit / channel / objection / outputLanguage).\n * The subprocess owns snapshot resolution + validation, template lookup,\n * `requiredInputs` enforcement, context-block rendering, and Mustache\n * substitution; the parent process consumes only the final prompt\n * string before handing it to `AgentsBackendService.invokeAgent(...)`.\n *\n * The handler intentionally does NOT call the LLM itself — keeping the\n * subprocess pure-and-deterministic preserves the \"snapshot resolution\n * happens in a child process, LLM happens in the parent\" boundary\n * established in Phase 4.1.\n */\n 'market-render-prompt': {\n behaviorId: 'market-render-prompt',\n description:\n 'Render the full market generation prompt (English market-context block + Mustache-substituted '\n + 'message template body) for one MarketMessageTemplate ref. Consumed by the dev-companion '\n + '`/api/companion/market/generate` route, which feeds the prompt to AgentsBackendService.',\n category: 'market',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /** @wildo_source:part:end companion.introspection.behaviors.market */\n /**\n * Brand logo-generation prompt assembler. Routes to the `specifications`\n * target (where the authored `BrandSnapshot` lives via `brandSpecification`),\n * validates the snapshot, and assembles the text-to-image prompt. Pure\n * projection — no image call. Consumed by the parent\n * `LogoGenerationCompanionService`, which invokes the image agent.\n */\n 'brand-render-prompt': {\n behaviorId: 'brand-render-prompt',\n description:\n 'Assemble the text-to-image prompt for logo generation from the authored BrandSnapshot '\n + '(brand name + logo direction + visual tone), optionally enriched by the market tonesOfVoice. '\n + 'Consumed by the dev-companion LogoGenerationCompanionService, which feeds it to the image agent.',\n category: 'brand',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Expert-persona derivation-inputs projector. Routes to the\n * `specifications` target and resolves the snapshots a role's charter\n * derivation is shaped by (input: `{ shapingInputKinds: string[] }`).\n * Returns `{ inputs, missingKinds, parentComposedKinds }` — the parent\n * `ExpertPersonaCompanionService` fails closed on `missingKinds` and\n * composes `parentComposedKinds` (DESIGN_SYSTEM) from the frontend\n * design-system behaviors before digesting + deriving.\n */\n 'expert-persona-derivation-inputs': {\n behaviorId: 'expert-persona-derivation-inputs',\n description:\n 'Resolve the specification-tier shaping inputs (vision / market / brand / requirements / '\n + 'business-model / accepted-decisions) an expert-persona charter derivation needs. Consumed by '\n + 'the dev-companion ExpertPersonaCompanionService, which digests them and invokes the derivation agent.',\n category: 'expert-personas',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Committed expert-persona charters read-back. Routes to the\n * `specifications` target and serves the app's `expertPersonaCharters`\n * companion export (the accepted charters). Consumed by the accept step's\n * overwrite guard + validator run and the deliberation agent factory.\n */\n 'expert-persona-charters': {\n behaviorId: 'expert-persona-charters',\n description:\n 'Serve the committed expert-persona charters (the app\\'s expertPersonaCharters companion export). '\n + 'Consumed by the dev-companion accept guard/validator and the deliberation agent factory.',\n category: 'expert-personas',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Technical-documentation OpenAPI input projector (`saas-technical-doc.md`\n * Step 3b + spec-integration Phase 1). Routes to the `library` target on\n * backend services because the shared `ResourcesRegistry` is loaded by the\n * same `loadSharedModules()` companion export already used by\n * `resources-registry`. It additionally declares `specifications` and the\n * backend `service` as required targets. Specifications provide authored\n * operation and resource meaning; the service provides the application's\n * final startup declaration, including exact organization-unit narrowing.\n * The output is the `OpenApiGenerationInputSchema` payload consumed\n * downstream by `generateOpenApiDocuments(...)` in the parent companion\n * process.\n */\n 'openapi-generation-input': {\n behaviorId: 'openapi-generation-input',\n description:\n 'Project the resolved ResourcesRegistry into the OpenApiGenerationInput shape '\n + '(one row per (operation × initiatorInfo) for API_CALL / API_CALL_WITH_CALLBACK '\n + 'variants, with z.toJSONSchema() request/response bodies), enriched with '\n + 'authored operation summary/description from the specifications target.',\n category: 'technical-doc',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n requiredTargets: ['specifications', 'service'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'settings-placement-content': {\n behaviorId: 'settings-placement-content',\n description:\n \"Verify the application's authored settings rail against the engine destination catalog: \"\n + 'placements naming a destination the catalog does not ship, duplicate refs, and a '\n + 'defaultSectionRef nothing declares. Exists because an unknown destinationRef is NOT a '\n + 'type error — resolution drops the placement and the section silently never renders — so '\n + 'a SHELL_PLACEMENT coding task can pass its typecheck and land a missing settings section.',\n category: 'frontend-design-system',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'chart-registration-refs': {\n behaviorId: 'chart-registration-refs',\n description:\n 'Materialize every frontend chartView chartDefinition.ref across the app resources '\n + '(the frontend-only chart authoring surface). The parent composes these with the '\n + 'backend-registered chart refs to detect a chartView with no backend registration.',\n category: 'charts',\n supportedServiceKinds: ['frontend'],\n routingByServiceKind: {\n frontend: {\n target: 'service',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Assertion Surface behavior family (app-creation meta-workflows,\n * master plan S1; implementation-spec P-9). All three route to the\n * `specifications` target (which carries the authored\n * `assertionSpecifications` snapshot) on BOTH service kinds, mirroring\n * `resource-specifications`; the SAAS_APP frontend service key drives\n * the call in v1 (P-14b). `resolve` and `reconcile` additionally\n * declare `requiredTargets: ['library']` because both derive against\n * the live resources registry (built from the shared library target);\n * `list` is a pure authored projection and needs no live target.\n * Real logic lives in `subprocess/assertions.behavior.ts`.\n */\n 'assertions-list': {\n behaviorId: 'assertions-list',\n description:\n 'Project the authored AssertionSpecificationSnapshot (the app-creation meta-workflows '\n + 'assumption surface), filtered by lane / kind. Pure projection — no live registry.',\n category: 'assertions',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'assertions-resolve': {\n behaviorId: 'assertions-resolve',\n description:\n 'Resolve authored assertion entries (narrowed by refs) plus live probe findings derived '\n + 'at query time against the resources registry. The parent process composes LLM '\n + 'interpretation of the free-text query on top of these deterministic outputs.',\n category: 'assertions',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'assertions-reconcile': {\n behaviorId: 'assertions-reconcile',\n description:\n 'Compute per-entry reconcile status (assumed → landed → drifted / unverifiable) by '\n + 'diffing authored assumptions against the introspected resources registry.',\n category: 'assertions',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Top-down definition-specifications projection (app-creation\n * meta-workflows, journey-buildout GAP-D1-9). Routes to the\n * `specifications` target (which carries the registered definition-family\n * companion-export snapshots) — a PURE authored projection like `assertions-list`, so it\n * needs no `library` target. Runs each family's `_core` validator as a\n * durable load-time guard; real logic lives in\n * `subprocess/definition-specifications.behavior.ts`.\n */\n 'definition-specifications': {\n behaviorId: 'definition-specifications',\n description:\n 'Project the presence + structural validity + cross-family coherence of the authored '\n + 'top-down definition set (vision-brief / market-snapshot / requirements / roadmap / '\n + 'business-model / brand-brief) from the specifications companion exports — the durable load-time guard.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * Compliance facts derived from the application's resource configurations — the input a governed\n * document is drafted from. `library` target, like `resources-registry`: these are declarations on\n * resource CONFIGS, which the specifications target does not carry. Real logic lives in\n * `subprocess/compliance-primary-facts.behavior.ts`.\n */\n /**\n * The application's domain model as one projection — nodes, edges, module membership and the\n * specification prose, from a SINGLE subprocess run.\n *\n * Routed exactly like `resource-specifications` (`specifications` target, `library` required) for\n * the reason that behavior needs both: ownership and the spec overlay come from the specifications\n * package, the relationship edges from the shared library. Declaring the same routing is what makes\n * this ONE derivation rather than a cheaper spelling of two.\n */\n 'application-domain-model': {\n behaviorId: 'application-domain-model',\n description:\n \"Project the observed application's domain model in one derivation: every resource, the module \"\n + 'that owns it (null for the engine types its own edges reach), the relationships it participates '\n + 'in with FK-holder direction resolved from cardinality, and the prose of its specification. '\n + 'Consumed by the application-creation workbench\\'s domain-model graph.',\n category: 'resources',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n frontend: {\n target: 'specifications',\n requiredTargets: ['library'],\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n /**\n * The operator-facing projection of the authored specification families (issue #162). Routes to the\n * `specifications` target alone — every family's accepted value is a companion export of that\n * package, and none of them is in the resource registry — so unlike `application-domain-model` it\n * needs no `library` target. Real logic lives in `subprocess/specification-artifacts.behavior.ts`.\n */\n 'specification-artifacts': {\n behaviorId: 'specification-artifacts',\n description:\n 'Project every application-specification family for a human reviewer: whether it landed, '\n + 'whether its own _core validator still passes, which playbooks produce it, the committed '\n + 'DECISIONS.md and DIAGRAM.md beside it, and the artifact rendered as an outline document. '\n + \"Consumed by the application-creation workbench's specification-artifacts destination.\",\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'family-aspects': {\n behaviorId: 'family-aspects',\n description:\n 'Project every SECOND-LEVEL aspect row of every landed specification family — ICPs, '\n + 'personas, success criteria, requirements, phases, plans and their kin — with their '\n + 'reference edges flattened into plain foreign-key fields, in ONE projection so both ends '\n + \"of every edge describe the same working tree. Forty workbench aspect resources bind it, \"\n + 'each at its own rowsPath.',\n category: 'specifications',\n supportedServiceKinds: ['backend', 'frontend'],\n routingByServiceKind: {\n backend: {\n target: 'specifications',\n },\n frontend: {\n target: 'specifications',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n 'compliance-primary-facts': {\n behaviorId: 'compliance-primary-facts',\n description:\n 'Derive what a compliance document can state about this application — erasure retention mode, '\n + 'data-subject kind, subject export and retained see-through access per resource — split by '\n + 'engine-declared versus application-declared origin.',\n category: 'specifications',\n supportedServiceKinds: ['backend'],\n routingByServiceKind: {\n backend: {\n target: 'library',\n },\n },\n execution: {\n ...SHARED_EXECUTION_BOUNDARY,\n materializationKind: 'json-snapshot',\n },\n },\n} as const;\n\nexport function getCompanionIntrospectionBehaviorDefinition(\n behaviorId: CompanionIntrospectionBehaviorId,\n): CompanionIntrospectionBehaviorDefinition {\n const definition = COMPANION_INTROSPECTION_BEHAVIOR_DEFINITIONS[behaviorId];\n if (!definition) {\n throw new Error(`Unknown companion introspection behavior \"${behaviorId}\".`);\n }\n\n return definition;\n}\n\nexport function resolveCompanionIntrospectionBehaviorDefinitionForServiceKind(\n behaviorId: CompanionIntrospectionBehaviorId,\n serviceKind: CompanionIntrospectionServiceKind,\n): CompanionIntrospectionResolvedBehaviorDefinition {\n const definition = getCompanionIntrospectionBehaviorDefinition(behaviorId);\n if (!definition.supportedServiceKinds.includes(serviceKind)) {\n throw new Error(`Behavior \"${behaviorId}\" is not declared for ${serviceKind} services.`);\n }\n\n const route = definition.routingByServiceKind[serviceKind];\n if (!route) {\n throw new Error(`Behavior \"${behaviorId}\" does not define routing for ${serviceKind} services.`);\n }\n\n return {\n behaviorId: definition.behaviorId,\n description: definition.description,\n category: definition.category,\n serviceKind,\n route,\n execution: definition.execution,\n };\n}\n"]}
@@ -2,7 +2,7 @@ export declare const CompanionIntrospectionRouteTargetValues: readonly ["service
2
2
  export type CompanionIntrospectionRouteTargetId = typeof CompanionIntrospectionRouteTargetValues[number];
3
3
  export declare const CompanionIntrospectionServiceKindValues: readonly ["backend", "frontend"];
4
4
  export type CompanionIntrospectionServiceKind = typeof CompanionIntrospectionServiceKindValues[number];
5
- export declare const CompanionIntrospectionBehaviorIdValues: readonly ["resources-registry", "email-template-placement-info", "translation-needed-info", "frontend-artifact-placement-info", "design-system-source-config", "design-tokens-css", "frontend-labels-needed-info", "resource-specifications", "specification-context-parts", "catalog-context-parts", "market-context-for-feature", "market-context-for-icp", "market-render-prompt", "openapi-generation-input", "chart-registration-refs", "settings-placement-content", "assertions-list", "assertions-resolve", "assertions-reconcile", "definition-specifications", "brand-render-prompt", "expert-persona-derivation-inputs", "expert-persona-charters", "compliance-primary-facts"];
5
+ export declare const CompanionIntrospectionBehaviorIdValues: readonly ["resources-registry", "email-template-placement-info", "translation-needed-info", "frontend-artifact-placement-info", "design-system-source-config", "design-tokens-css", "frontend-labels-needed-info", "resource-specifications", "specification-context-parts", "catalog-context-parts", "market-context-for-feature", "market-context-for-icp", "market-render-prompt", "openapi-generation-input", "chart-registration-refs", "settings-placement-content", "assertions-list", "assertions-resolve", "assertions-reconcile", "definition-specifications", "brand-render-prompt", "expert-persona-derivation-inputs", "expert-persona-charters", "compliance-primary-facts", "application-domain-model", "specification-artifacts", "family-aspects"];
6
6
  export type CompanionIntrospectionBehaviorId = typeof CompanionIntrospectionBehaviorIdValues[number];
7
7
  export declare const CompanionIntrospectionBehaviorCategoryValues: readonly ["resources", "translation", "email", "frontend-design-system", "labels", "specifications", "market", "brand", "expert-personas", "technical-doc", "charts", "assertions"];
8
8
  export type CompanionIntrospectionBehaviorCategory = typeof CompanionIntrospectionBehaviorCategoryValues[number];
@@ -100,6 +100,16 @@ export interface CompanionIntrospectionSuccessResult {
100
100
  durationMs: number;
101
101
  stdout?: string;
102
102
  stderr?: string;
103
+ /**
104
+ * Set when this exact derivation was memoized against a source-tree observation that still matches,
105
+ * so no subprocess ran and no application module graph was re-imported.
106
+ *
107
+ * Provenance, not a control: `durationMs` stays the ORIGINAL derivation's cost, because that is the
108
+ * number the acceptance measurement is about. Absent on a freshly derived result rather than
109
+ * `false`, so a consumer reading it can tell "not cached" from "an older companion that had no
110
+ * cache".
111
+ */
112
+ servedFromCache?: true;
103
113
  }
104
114
  export interface CompanionIntrospectionFailureResult {
105
115
  success: false;