@wildo-ai/dev-companion 1.1.9 → 1.1.10

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 (1131) hide show
  1. package/dist/esm/.tsbuildinfo +1 -0
  2. package/dist/esm/brand/models/accepted-brand-mark.models.d.ts +46 -0
  3. package/dist/esm/brand/models/accepted-brand-mark.models.d.ts.map +1 -0
  4. package/dist/esm/brand/models/accepted-brand-mark.models.js +89 -0
  5. package/dist/esm/brand/models/accepted-brand-mark.models.js.map +1 -0
  6. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  7. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  8. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  9. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  10. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  11. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.schemas.d.ts +5 -3
  13. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.schemas.js +5 -3
  15. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  16. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  17. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  18. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
  19. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
  20. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  21. package/dist/esm/brand/services/logo-deliberation.companion.service.js +10 -7
  22. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  23. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  24. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  25. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  26. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  27. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  28. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  30. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  31. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +89 -0
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +133 -0
  34. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  35. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts +52 -0
  36. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts.map +1 -0
  37. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js +206 -0
  38. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js.map +1 -0
  39. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  41. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +38 -3
  42. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +48 -4
  44. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  45. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  46. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  47. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  49. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +108 -7
  50. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  51. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +461 -27
  52. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  53. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts +53 -0
  54. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts.map +1 -0
  55. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js +193 -0
  56. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js.map +1 -0
  57. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +74 -1
  58. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  59. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +246 -39
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  61. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  62. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  63. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  64. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  65. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
  66. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
  67. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  69. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +15 -2
  70. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  71. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +36 -4
  72. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  73. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  74. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  75. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  76. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  77. package/dist/esm/companion-api/companion-api.schemas.d.ts +337 -337
  78. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  79. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  80. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
  81. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
  82. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
  83. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
  84. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  85. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  86. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  87. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  88. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
  89. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
  90. package/dist/esm/companion-api/controllers/companion.controller.d.ts +25 -6
  91. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  92. package/dist/esm/companion-api/controllers/companion.controller.js +136 -15
  93. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  94. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  95. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  96. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  97. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  98. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  99. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  107. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  108. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  109. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  110. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  111. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  112. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  113. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  114. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  115. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  116. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  117. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  118. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  119. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  120. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  121. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  122. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  123. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  124. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  125. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  126. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  127. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  128. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  129. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  130. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  131. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  132. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  133. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  134. package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -1
  135. package/dist/esm/core/context/application-module-generations.companion.js.map +1 -1
  136. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  137. package/dist/esm/core/context/companion-context.js.map +1 -1
  138. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  139. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  140. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  141. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  142. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  143. package/dist/esm/core/inject/models/container.js.map +1 -1
  144. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  145. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  146. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  147. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  148. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  149. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  150. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
  151. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
  152. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  153. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  154. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  155. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +8 -1
  156. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  157. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +10 -0
  158. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  159. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +56 -2
  160. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  161. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  162. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +7 -3
  163. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  164. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  165. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +22 -2
  166. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  167. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  169. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  171. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +7 -3
  172. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +28 -2
  174. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -1
  175. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  176. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  177. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +8 -2
  178. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  179. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +72 -5
  180. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  181. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +153 -4
  182. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  183. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +383 -30
  184. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  185. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -1
  186. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -1
  187. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +82 -2
  188. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  189. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +220 -10
  190. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  191. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +22 -6
  192. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  193. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +38 -7
  194. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  195. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +9 -0
  198. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +29 -9
  200. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  201. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  203. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/subprocess/assertions.behavior.js +10 -10
  205. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  206. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  207. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  208. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  209. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  210. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  211. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  212. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  213. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  214. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts +1 -1
  215. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  216. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +20 -19
  217. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  219. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  220. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  221. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  225. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  227. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  230. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  231. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +9 -1
  232. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  234. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  235. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js +2 -1
  237. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts +4 -3
  239. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  240. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js +14 -8
  241. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  242. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  243. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +17 -4
  244. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  245. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  246. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  247. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  248. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  249. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  250. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  251. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  252. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  253. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  254. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  255. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  256. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  257. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  258. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  259. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  260. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  261. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +35 -0
  262. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  263. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +74 -0
  264. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  265. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
  266. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
  267. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  268. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  269. package/dist/esm/core/runtime/companion-self-restart.companion.d.ts +38 -0
  270. package/dist/esm/core/runtime/companion-self-restart.companion.d.ts.map +1 -0
  271. package/dist/esm/core/runtime/companion-self-restart.companion.js +110 -0
  272. package/dist/esm/core/runtime/companion-self-restart.companion.js.map +1 -0
  273. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  274. package/dist/esm/core/runtime/companion-startup-assembly.js +7 -1
  275. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  276. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +12 -0
  277. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  278. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +15 -1
  279. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  280. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts +83 -0
  281. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts.map +1 -0
  282. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js +150 -0
  283. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js.map +1 -0
  284. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
  285. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
  286. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  287. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  288. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  289. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  290. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +23 -1
  291. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  292. package/dist/esm/core/runtime/services/start-companion-application.service.js +50 -2
  293. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  294. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  295. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  296. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  297. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  298. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  299. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  300. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  301. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  302. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  303. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  304. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  305. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  306. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  307. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  308. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  309. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  310. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  311. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  312. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  313. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  314. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  315. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  316. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  317. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  318. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  319. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  320. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  322. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  324. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  326. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  328. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  330. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  332. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  334. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  336. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  338. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  340. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  342. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  344. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  346. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  348. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  350. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  351. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  352. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  353. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  354. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  355. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  356. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  357. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  358. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  359. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  360. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  361. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  362. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  363. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  364. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  365. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  366. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  367. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  368. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  369. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  370. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  371. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  372. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  373. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  374. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  375. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  376. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  377. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  378. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  379. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  380. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  381. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  382. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  383. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  384. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  385. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  386. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  387. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  388. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  389. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  390. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  391. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  392. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  393. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  394. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  395. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  396. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  397. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  398. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  399. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  400. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  401. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  402. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  403. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  404. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  405. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  406. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  407. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  408. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  409. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  410. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  411. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  412. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  413. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  414. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  415. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  416. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  417. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  418. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  419. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  420. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  421. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  422. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  423. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  424. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  425. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  426. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  427. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  428. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  429. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  430. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  431. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  432. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  433. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  434. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  435. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  436. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  437. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  438. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  439. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  440. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -1
  441. package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -1
  442. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  443. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  444. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  445. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  446. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  447. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +4 -2
  448. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  449. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  450. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +7 -8
  451. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  452. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +10 -5
  453. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  454. package/dist/esm/deliberations/services/deliberation.companion.service.js +31 -21
  455. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  456. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  457. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  458. package/dist/esm/deliberations/utils/expert-agent-registration.d.ts +56 -0
  459. package/dist/esm/deliberations/utils/expert-agent-registration.d.ts.map +1 -0
  460. package/dist/esm/deliberations/utils/expert-agent-registration.js +74 -0
  461. package/dist/esm/deliberations/utils/expert-agent-registration.js.map +1 -0
  462. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts +9 -5
  463. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  464. package/dist/esm/deliberations/utils/load-committed-expert-agents.js +11 -15
  465. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  466. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  467. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  468. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  469. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  470. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  471. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  472. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  473. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  474. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
  475. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
  476. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  477. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  478. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  479. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  480. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  481. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  482. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  483. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  484. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  485. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  486. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts +5 -3
  487. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  488. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js +5 -3
  489. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  490. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +17 -1
  491. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  492. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +47 -10
  493. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  494. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  495. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  496. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  497. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  498. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  499. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  500. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  501. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  502. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  503. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  504. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  505. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  506. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  507. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  508. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  509. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  510. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  511. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  512. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  513. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  514. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  515. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  516. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  517. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  518. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  519. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  520. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  521. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  522. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
  524. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  526. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  528. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  530. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  531. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  532. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  533. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  534. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  536. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  538. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  539. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  540. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  542. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  543. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  544. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  545. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  546. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  547. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  548. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  549. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  550. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  551. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  552. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  553. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  554. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  555. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  556. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  557. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  558. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  559. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  566. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  568. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  570. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  571. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  587. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  598. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  600. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  653. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  655. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  659. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  665. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  673. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  677. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  709. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  714. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  716. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  721. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  725. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  726. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  727. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  728. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  729. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  730. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  731. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  732. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  734. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  736. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  738. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  740. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  742. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  743. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  744. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  746. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  748. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  749. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  750. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  751. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  752. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  753. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  754. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  755. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  756. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  758. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  760. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  761. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  762. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  763. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  764. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  765. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  766. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  767. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  768. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  769. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  770. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  771. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  772. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  774. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  775. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  776. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  778. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  779. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  780. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  782. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  783. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  784. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  786. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  787. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  788. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  789. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  790. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  791. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  792. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  794. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  795. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  796. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  797. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  798. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  799. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  800. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  801. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  802. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  803. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  804. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  805. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  806. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  807. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  808. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  809. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  810. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  811. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  812. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  813. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  814. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  815. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  816. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +14 -0
  817. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  818. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  820. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  821. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  822. package/dist/esm/i18n/control-plane-label-blocks.d.ts +344 -0
  823. package/dist/esm/i18n/control-plane-label-blocks.d.ts.map +1 -0
  824. package/dist/esm/i18n/control-plane-label-blocks.js +115 -0
  825. package/dist/esm/i18n/control-plane-label-blocks.js.map +1 -0
  826. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
  828. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  829. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  830. package/dist/esm/i18n/index.d.ts.map +1 -1
  831. package/dist/esm/i18n/index.js.map +1 -1
  832. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +410 -0
  833. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  834. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +13 -145
  835. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  836. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +65 -0
  837. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  838. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +4 -37
  839. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  840. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +65 -0
  841. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  842. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +4 -37
  843. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  844. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
  845. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
  846. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  847. package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -0
  848. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  849. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  850. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  851. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  853. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  854. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  855. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  856. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  857. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  858. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  859. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  860. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  861. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  862. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  863. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +10 -0
  864. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  865. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +3 -0
  866. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  867. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  868. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  869. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  870. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  871. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  872. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  873. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  874. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  875. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  876. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  877. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  878. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  879. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +287 -0
  880. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +97 -1
  882. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  883. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  884. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  885. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  886. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  887. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +19 -0
  888. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  889. package/dist/esm/i18n/system_enums/application-creation.en.js +21 -0
  890. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  891. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  892. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  893. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  894. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  895. package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -1
  896. package/dist/esm/i18n/system_enums/localization.en.js.map +1 -1
  897. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  898. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  899. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  900. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  901. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  902. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  903. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  904. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  905. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
  906. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  907. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +2 -0
  908. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  909. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  910. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  911. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  912. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  913. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
  914. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
  915. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  916. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  917. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
  918. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
  919. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -1
  920. package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -1
  921. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +29 -2
  922. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  923. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +17 -0
  924. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  925. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  926. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  927. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  928. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  929. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  930. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  931. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +5 -0
  932. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  933. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +44 -4
  934. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  935. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  936. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  937. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  938. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  939. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  940. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  941. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  942. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  943. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  944. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  945. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
  946. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
  947. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  948. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  949. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  950. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  951. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
  952. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
  953. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  954. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  955. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  956. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  957. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -1
  958. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -1
  959. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  960. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  961. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  962. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  963. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
  964. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
  965. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
  966. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
  967. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  968. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  969. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +8 -1
  970. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  971. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +9 -2
  972. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  973. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -1
  974. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -1
  975. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +13 -7
  976. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  977. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +13 -7
  978. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  979. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
  980. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
  981. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  982. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  983. package/dist/esm/index.d.ts.map +1 -1
  984. package/dist/esm/index.js.map +1 -1
  985. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  986. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  987. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  988. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  989. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  990. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +3 -3
  991. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  992. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
  993. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
  994. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  995. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  996. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  997. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  998. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +18 -0
  999. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  1000. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +37 -0
  1001. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  1002. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  1003. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  1004. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  1005. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  1006. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -1
  1007. package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -1
  1008. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -1
  1009. package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -1
  1010. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
  1011. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
  1012. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1013. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1014. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1015. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1016. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  1017. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  1018. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  1019. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  1020. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  1021. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  1022. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts +36 -0
  1023. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts.map +1 -0
  1024. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js +97 -0
  1025. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js.map +1 -0
  1026. package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts +124 -0
  1027. package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts.map +1 -0
  1028. package/dist/esm/meta-workflows/models/website-copy-review.models.js +74 -0
  1029. package/dist/esm/meta-workflows/models/website-copy-review.models.js.map +1 -0
  1030. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -1
  1031. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -1
  1032. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -1
  1033. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -1
  1034. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +297 -8
  1035. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1036. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +1089 -42
  1037. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1038. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
  1039. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
  1040. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +143 -11
  1041. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1042. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +277 -42
  1043. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1044. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +38 -0
  1045. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1046. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +123 -4
  1047. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1048. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +130 -2
  1049. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  1050. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +251 -4
  1051. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  1052. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts +122 -0
  1053. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts.map +1 -0
  1054. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js +295 -0
  1055. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js.map +1 -0
  1056. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts +22 -0
  1057. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts.map +1 -0
  1058. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js +45 -0
  1059. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js.map +1 -0
  1060. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  1061. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  1062. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  1063. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  1064. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +53 -0
  1065. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -0
  1066. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +97 -0
  1067. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -0
  1068. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  1069. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  1070. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
  1071. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
  1072. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +17 -1
  1073. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -1
  1074. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +25 -3
  1075. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -1
  1076. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
  1077. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
  1078. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -1
  1079. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -1
  1080. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +5 -0
  1081. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  1082. package/dist/esm/meta-workflows/services/dossier.companion.service.js +5 -1
  1083. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  1084. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  1085. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  1086. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1087. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1088. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  1089. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  1090. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +50 -1
  1091. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1092. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +132 -54
  1093. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1094. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
  1095. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
  1096. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
  1097. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
  1098. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -1
  1099. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -1
  1100. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  1101. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  1102. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1103. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  1104. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  1105. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +50 -17
  1106. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  1107. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +42 -0
  1108. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1109. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +62 -0
  1110. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1111. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +61 -1
  1112. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1113. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +398 -81
  1114. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1115. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  1116. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  1117. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  1118. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  1119. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  1120. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  1121. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1122. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1123. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1124. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1125. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1126. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  1127. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1128. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  1129. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1130. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1131. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"creation-lane-preflight.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/creation-lane-preflight.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAgD3H,4FAA4F;AAC5F,MAAM,UAAU,6BAA6B,CAAC,QAAuC;IACnF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAgG,CAAC;IACvH,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,EAAE,CAAC;QACnE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,mCAAmC,CAAC,QAAQ,CAAC,CAAC;QAChF,MAAM,GAAG,GAAG,GAAG,WAAW,IAAI,QAAQ,EAAE,CAAC;QACz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,KAAK;IACrC;IAArB,YAAqB,QAAiD;QACpE,KAAK,CAAC,oCAAoC,CAAC,QAAQ,CAAC,CAAC,CAAC;QADnC,aAAQ,GAAR,QAAQ,CAAyC;QAEpE,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC;IAClD,CAAC;CACF;AAED,uFAAuF;AACvF,MAAM,UAAU,oCAAoC,CAAC,QAAiD;IACpG,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;UACpH,GAAG,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7D;;;OAGG;IACH,OAAO,4GAA4G;UAC/G,mBAAmB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,qEAAqE;UACvG,wFAAwF,CAAC;AAC/F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAuC,EAAE,UAAuC,EAAE;IAC5H,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO;IAClC,MAAM,QAAQ,GAAG,6BAA6B,CAAC,QAAQ,CAAC,CAAC;IACzD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,iCAAiC,CAAC,QAAQ,CAAC,CAAC;AACjF,CAAC","sourcesContent":["import { CREATION_LANE_PROVIDER_REQUIREMENTS, CreationLaneProviderConsumer } from '@wildo-ai/application-creation-runtime';\nimport type { ExternalProvider_ExchangeProtocol_Kind } from '@wildo-ai/external-connectors-models';\n\n/**\n * The creation preflight, evaluated INSIDE the companion with the registry that will refuse (#2229).\n *\n * `wildo creation preflight` predicts the lane's provider refusals from configuration and discovery, before any\n * process runs. This is the same question asked of the running companion's own `ExternalProvidersRegistry` —\n * `isProviderEnabled(<pinned ref>, <protocol>)` and then `getProviderApiKey`, the two calls `AgentsBackendService`\n * refuses on — so it is not a second description of the contract but the contract itself, called early.\n *\n * It runs at every door that STARTS a run from outside — the HTTP run, loop, dispatch-next and named-task routes,\n * the workbench's run, build and dispatch-task operations, and the creation conversation's run tool (its\n * dispatch-task tool goes through the workbench operation) — before a brief is composed or a model is called. It deliberately does not run inside `runPlaybook`: a loop round and a choreography child re-enter there,\n * and a person's decision to start past a refusal must hold for the whole run it started.\n *\n * Whole-lane, like the CLI preflight: the question is whether a run started now can FINISH, and which agents a run\n * reaches is decided deep inside it (the logo step is a build task, a deliberation is a playbook field). The remedy\n * for every refusal is configuration the operator holds (a key in `secrets.json`, a provider under\n * `providers.scopes.companion`); the explicit way past it is `skipPreflight`, which the console forwards.\n *\n * KNOWN LIMITATION: a SINGLE-task door (the workbench's dispatch-task, the conversation's tools) is refused on a pair\n * that task may never call — a coding task refused over a missing deliberation-panel key, say — and the board has no\n * skip, so its way past is the console's `--skip-preflight` or the key. Scoping each door to the consumers its run\n * reaches would need a map from task and playbook to agents that nothing derives today.\n *\n * Not covered here: the coding agent's ACP provider, which no lane agent pins in the table; the CLI preflight's\n * `AI_CODING_AGENT` line and the coding-agent login check (#1637) answer for it.\n */\n\n/** The registry calls the gate makes — the runtime's own, structurally typed so a test can supply them. */\nexport interface CreationLanePreflightRegistry {\n isProviderEnabled(providerRef: string, protocolKind: ExternalProvider_ExchangeProtocol_Kind): boolean;\n getProviderApiKey(providerRef: string, protocolKind: ExternalProvider_ExchangeProtocol_Kind): string | undefined;\n describeMissingProviderApiKey(providerRef: string, protocolKind: ExternalProvider_ExchangeProtocol_Kind): string;\n}\n\n/** One `(provider, protocol)` pair the lane needs that the running companion would refuse. */\nexport interface CreationLanePreflightFinding {\n readonly providerRef: string;\n readonly protocol: string;\n readonly consumers: readonly CreationLaneProviderConsumer[];\n /** Why the runtime would refuse, in the registry's own words where it has them. */\n readonly reason: string;\n /** What stops, per consumer — the table's sentences. */\n readonly stops: readonly string[];\n}\n\n/** Every pair of the lane the running registry would refuse; empty when a run may start. */\nexport function evaluateCreationLanePreflight(registry: CreationLanePreflightRegistry): CreationLanePreflightFinding[] {\n const groups = new Map<string, { providerRef: string; protocol: string; consumers: CreationLaneProviderConsumer[] }>();\n for (const consumer of Object.values(CreationLaneProviderConsumer)) {\n const { providerRef, protocol } = CREATION_LANE_PROVIDER_REQUIREMENTS[consumer];\n const key = `${providerRef} ${protocol}`;\n const group = groups.get(key) ?? { providerRef, protocol, consumers: [] };\n group.consumers.push(consumer);\n groups.set(key, group);\n }\n\n const findings: CreationLanePreflightFinding[] = [];\n for (const { providerRef, protocol, consumers } of groups.values()) {\n // semantic-literal-boundary: the table speaks `BuiltinProviderProtocol`, whose members are drift-tested to equal\n // the engine's `ExternalProvider_ExchangeProtocol_Kind` values (`provider-protocol-vocabulary.drift.test.ts`).\n const protocolKind = protocol as ExternalProvider_ExchangeProtocol_Kind;\n const stops = consumers.map((consumer) => CREATION_LANE_PROVIDER_REQUIREMENTS[consumer].stops);\n if (!registry.isProviderEnabled(providerRef, protocolKind)) {\n findings.push({\n providerRef,\n protocol,\n consumers,\n reason: `${providerRef} does not serve ${protocol} in this companion — scope it under providers.scopes.companion, `\n + 'make sure its protocol is not disabled, then run `wildo config sync` and restart the companion.',\n stops,\n });\n continue;\n }\n if (!registry.getProviderApiKey(providerRef, protocolKind)) {\n findings.push({ providerRef, protocol, consumers, reason: registry.describeMissingProviderApiKey(providerRef, protocolKind), stops });\n }\n }\n return findings;\n}\n\n/** The refusal a door raises; each door translates it into its own transport's answer. */\nexport class CreationLanePreflightRefusedError extends Error {\n constructor(readonly findings: readonly CreationLanePreflightFinding[]) {\n super(describeCreationLanePreflightRefusal(findings));\n this.name = 'CreationLanePreflightRefusedError';\n }\n}\n\n/** One sentence per refused pair, then the way past — the message every door shows. */\nexport function describeCreationLanePreflightRefusal(findings: readonly CreationLanePreflightFinding[]): string {\n const lines = findings.map((finding) => `${finding.providerRef} ${finding.protocol} (${finding.consumers.join(', ')}): `\n + `${finding.reason} Stops: ${finding.stops.join('; ')}.`);\n /*\n * The way past is named by the CONSOLE verbs, never by the request field: this sentence reaches the board and the\n * conversation too, which accept no skip, and a person reading it from there needs the verb they can type.\n */\n return 'The creation preflight refused this run before it started, because the companion would refuse the lane\\'s '\n + `provider calls: ${lines.join(' ')} Fix the configuration it names, or start it from the console with `\n + '`--skip-preflight` (`wildo creation run`, `wildo creation loop` or `wildo build run`).';\n}\n\n/**\n * Refuse a run the companion could not finish, unless the caller explicitly skips. The one call every door makes.\n */\nexport function assertCreationLanePreflight(registry: CreationLanePreflightRegistry, options: { readonly skip?: boolean } = {}): void {\n if (options.skip === true) return;\n const findings = evaluateCreationLanePreflight(registry);\n if (findings.length > 0) throw new CreationLanePreflightRefusedError(findings);\n}\n"]}
1
+ {"version":3,"file":"creation-lane-preflight.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/creation-lane-preflight.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3H,OAAO,EAAE,sCAAsC,EAAE,MAAM,sCAAsC,CAAC;AA+C9F;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAgB;IAC1D,mHAAmH;IACnH,MAAM,IAAI,GAAI,sCAAuH,CAAC,QAAQ,CAAC,CAAC;IAChJ,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,gDAAgD,QAAQ,wEAAwE,CAAC,CAAC;IACpJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,6BAA6B,CAAC,QAAuC;IACnF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAgG,CAAC;IACvH,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,EAA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YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACxI,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,0FAA0F;AAC1F,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IACrC;IAArB,YAAqB,QAAiD;QACpE,KAAK,CAAC,oCAAoC,CAAC,QAAQ,CAAC,CAAC,CAAC;QADnC,aAAQ,GAAR,QAAQ,CAAyC;QAEpE,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC;IAClD,CAAC;CACF;AAED,uFAAuF;AACvF,MAAM,UAAU,oCAAoC,CAAC,QAAiD;IACpG,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;UACpH,GAAG,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7D;;;OAGG;IACH,OAAO,4GAA4G;UAC/G,mBAAmB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,qEAAqE;UACvG,wFAAwF,CAAC;AAC/F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAuC,EAAE,UAAuC,EAAE;IAC5H,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO;IAClC,MAAM,QAAQ,GAAG,6BAA6B,CAAC,QAAQ,CAAC,CAAC;IACzD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,iCAAiC,CAAC,QAAQ,CAAC,CAAC;AACjF,CAAC","sourcesContent":["import { CREATION_LANE_PROVIDER_REQUIREMENTS, CreationLaneProviderConsumer } from '@wildo-ai/application-creation-runtime';\nimport { ExternalProvider_ExchangeProtocol_Kind } from '@wildo-ai/external-connectors-models';\n\n/**\n * The creation preflight, evaluated INSIDE the companion with the registry that will refuse (#2229).\n *\n * `wildo creation preflight` predicts the lane's provider refusals from configuration and discovery, before any\n * process runs. This is the same question asked of the running companion's own `ExternalProvidersRegistry` —\n * `isProviderEnabled(<pinned ref>, <protocol>)` and then `getProviderApiKey`, the two calls `AgentsBackendService`\n * refuses on — so it is not a second description of the contract but the contract itself, called early.\n *\n * It runs at every door that STARTS a run from outside — the HTTP run, loop, dispatch-next and named-task routes,\n * the workbench's run, build and dispatch-task operations, and the creation conversation's run tool (its\n * dispatch-task tool goes through the workbench operation) — before a brief is composed or a model is called. It deliberately does not run inside `runPlaybook`: a loop round and a choreography child re-enter there,\n * and a person's decision to start past a refusal must hold for the whole run it started.\n *\n * Whole-lane, like the CLI preflight: the question is whether a run started now can FINISH, and which agents a run\n * reaches is decided deep inside it (the logo step is a build task, a deliberation is a playbook field). The remedy\n * for every refusal is configuration the operator holds (a key in `secrets.json`, a provider under\n * `providers.scopes.companion`); the explicit way past it is `skipPreflight`, which the console forwards.\n *\n * KNOWN LIMITATION: a SINGLE-task door (the workbench's dispatch-task, the conversation's tools) is refused on a pair\n * that task may never call — a coding task refused over a missing deliberation-panel key, say — and the board has no\n * skip, so its way past is the console's `--skip-preflight` or the key. Scoping each door to the consumers its run\n * reaches would need a map from task and playbook to agents that nothing derives today.\n *\n * Not covered here: the coding agent's ACP provider, which no lane agent pins in the table; the CLI preflight's\n * `AI_CODING_AGENT` line and the coding-agent login check (#1637) answer for it.\n */\n\n/** The registry calls the gate makes — the runtime's own, structurally typed so a test can supply them. */\nexport interface CreationLanePreflightRegistry {\n isProviderEnabled(providerRef: string, protocolKind: ExternalProvider_ExchangeProtocol_Kind): boolean;\n getProviderApiKey(providerRef: string, protocolKind: ExternalProvider_ExchangeProtocol_Kind): string | undefined;\n describeMissingProviderApiKey(providerRef: string, protocolKind: ExternalProvider_ExchangeProtocol_Kind): string;\n}\n\n/** One `(provider, protocol)` pair the lane needs that the running companion would refuse. */\nexport interface CreationLanePreflightFinding {\n readonly providerRef: string;\n readonly protocol: string;\n readonly consumers: readonly CreationLaneProviderConsumer[];\n /** Why the runtime would refuse, in the registry's own words where it has them. */\n readonly reason: string;\n /** What stops, per consumer — the table's sentences. */\n readonly stops: readonly string[];\n}\n\n/**\n * The registry's protocol kind for one of the table's protocols.\n *\n * The table speaks the AUTHORING vocabulary (`BuiltinProviderProtocol`, whose values are the enum's member NAMES:\n * `'LLM_PROVIDER'`), and the registry holds the engine's WIRE values (`ExternalProvider_ExchangeProtocol_Kind`,\n * `'llm_provider'`), read from each module binding's `runtimeContract.kind`. The two vocabularies share KEYS, which is\n * all `provider-protocol-vocabulary.drift.test.ts` compares; their values differ.\n *\n * #2415: this was a type cast (`protocol as ExternalProvider_ExchangeProtocol_Kind`), so the registry was asked\n * whether it serves `'LLM_PROVIDER'`. It never does, so every pair was refused and every run needed\n * `--skip-preflight`, while the CLI preflight (which compares authoring names with authoring names) passed.\n *\n * A name with no engine member throws rather than answering \"not served\": that would be a defect in the table, and\n * reporting it as missing configuration would send the operator to fix a configuration that is correct.\n */\nexport function resolveRegistryProtocolKind(protocol: string): ExternalProvider_ExchangeProtocol_Kind {\n // semantic-literal-boundary: the authoring name is looked up by KEY in the engine enum, never compared as a value.\n const kind = (ExternalProvider_ExchangeProtocol_Kind as Readonly<Record<string, ExternalProvider_ExchangeProtocol_Kind | undefined>>)[protocol];\n if (kind === undefined) {\n throw new Error(`The creation preflight table names protocol \"${protocol}\", which is not an ExternalProvider_ExchangeProtocol_Kind member name.`);\n }\n return kind;\n}\n\n/** Every pair of the lane the running registry would refuse; empty when a run may start. */\nexport function evaluateCreationLanePreflight(registry: CreationLanePreflightRegistry): CreationLanePreflightFinding[] {\n const groups = new Map<string, { providerRef: string; protocol: string; consumers: CreationLaneProviderConsumer[] }>();\n for (const consumer of Object.values(CreationLaneProviderConsumer)) {\n const { providerRef, protocol } = CREATION_LANE_PROVIDER_REQUIREMENTS[consumer];\n const key = `${providerRef} ${protocol}`;\n const group = groups.get(key) ?? { providerRef, protocol, consumers: [] };\n group.consumers.push(consumer);\n groups.set(key, group);\n }\n\n const findings: CreationLanePreflightFinding[] = [];\n for (const { providerRef, protocol, consumers } of groups.values()) {\n const protocolKind = resolveRegistryProtocolKind(protocol);\n const stops = consumers.map((consumer) => CREATION_LANE_PROVIDER_REQUIREMENTS[consumer].stops);\n if (!registry.isProviderEnabled(providerRef, protocolKind)) {\n findings.push({\n providerRef,\n protocol,\n consumers,\n reason: `${providerRef} does not serve ${protocol} in this companion — scope it under providers.scopes.companion, `\n + 'make sure its protocol is not disabled, then run `wildo config sync` and restart the companion.',\n stops,\n });\n continue;\n }\n if (!registry.getProviderApiKey(providerRef, protocolKind)) {\n findings.push({ providerRef, protocol, consumers, reason: registry.describeMissingProviderApiKey(providerRef, protocolKind), stops });\n }\n }\n return findings;\n}\n\n/** The refusal a door raises; each door translates it into its own transport's answer. */\nexport class CreationLanePreflightRefusedError extends Error {\n constructor(readonly findings: readonly CreationLanePreflightFinding[]) {\n super(describeCreationLanePreflightRefusal(findings));\n this.name = 'CreationLanePreflightRefusedError';\n }\n}\n\n/** One sentence per refused pair, then the way past — the message every door shows. */\nexport function describeCreationLanePreflightRefusal(findings: readonly CreationLanePreflightFinding[]): string {\n const lines = findings.map((finding) => `${finding.providerRef} ${finding.protocol} (${finding.consumers.join(', ')}): `\n + `${finding.reason} Stops: ${finding.stops.join('; ')}.`);\n /*\n * The way past is named by the CONSOLE verbs, never by the request field: this sentence reaches the board and the\n * conversation too, which accept no skip, and a person reading it from there needs the verb they can type.\n */\n return 'The creation preflight refused this run before it started, because the companion would refuse the lane\\'s '\n + `provider calls: ${lines.join(' ')} Fix the configuration it names, or start it from the console with `\n + '`--skip-preflight` (`wildo creation run`, `wildo creation loop` or `wildo build run`).';\n}\n\n/**\n * Refuse a run the companion could not finish, unless the caller explicitly skips. The one call every door makes.\n */\nexport function assertCreationLanePreflight(registry: CreationLanePreflightRegistry, options: { readonly skip?: boolean } = {}): void {\n if (options.skip === true) return;\n const findings = evaluateCreationLanePreflight(registry);\n if (findings.length > 0) throw new CreationLanePreflightRefusedError(findings);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"creation-run-report.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/creation-run-report.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AAC5H,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,kDAAkD,CAAC;AACnH,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAOhH,OAAO,EAGL,uBAAuB,EACvB,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAEzB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAKhD,uGAAuG;AACvG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,iFAAiF;IACjF,QAAQ,CAAC,aAAa,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACxD,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,GAAG;QAClE,sGAAsG;QACtG,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;QAClC,QAAQ,CAAC,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAC;KACzD,CAAC;IACF,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,YAAY,EAAE,SAAS,wBAAwB,EAAE,CAAC;QAC3D,QAAQ,CAAC,UAAU,EAAE,SAAS,sBAAsB,EAAE,CAAC;QACvD,QAAQ,CAAC,eAAe,EAAE,SAAS,2BAA2B,EAAE,CAAC;QACjE,QAAQ,CAAC,cAAc,EAAE,SAAS,0BAA0B,EAAE,CAAC;QAC/D,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;KACvD,CAAC;IACF,0GAA0G;IAC1G,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,qBACa,iCAAiC;IAEyB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU;IACb,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IACjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAJC,MAAM,EAAE,0CAA0C,EAClE,UAAU,EAAE,mCAAmC,EACjC,aAAa,EAAE,wCAAwC,EACvD,iBAAiB,EAAE,wCAAwC,EAC1E,gBAAgB,EAAE,gBAAgB;IAG1F,QAAQ,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA0GnD,0FAA0F;IAC7E,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAI1I"}
1
+ {"version":3,"file":"creation-run-report.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/creation-run-report.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AAC5H,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM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AO,CAAC,QAAQ,CAAC,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU;IACb,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IACjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAJC,MAAM,EAAE,0CAA0C,EAClE,UAAU,EAAE,mCAAmC,EACjC,aAAa,EAAE,wCAAwC,EACvD,iBAAiB,EAAE,wCAAwC,EAC1E,gBAAgB,EAAE,gBAAgB;IAG1F,QAAQ,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA0GnD,0FAA0F;IAC7E,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAI1I"}
@@ -1 +1 @@
1
- {"version":3,"file":"creation-run-report.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/creation-run-report.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAK/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GAOnB,MAAM,wCAAwC,CAAC;AAEhD,8FAA8F;AAC9F,MAAM,uBAAuB,GAAG,GAAG,CAAC;AA4BpC;;;;GAIG;AAEI,IAAM,iC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CAAC;CACF,CAAA;AAxHY,iCAAiC;IAD7C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,iCAAiC,CAAC,CAAA;IACjE,WAAA,MAAM,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;IACjD,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAC/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAC/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GANxC,iCAAiC,CAwH7C","sourcesContent":["import { inject, injectable } from 'inversify';\n\nimport { FlowsActors_Status } from '@wildo-ai/saas-models';\nimport type { PlaybookSpend } from '@wildo-ai/application-creation-runtime';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas';\nimport type { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';\nimport type { ApplicationBuildDispatchCompanionService } from './application-build-dispatch.companion.service';\nimport type { CreationInterventionLedgerCompanionService } from './creation-intervention-ledger.companion.service';\nimport type { PlaybookRunWriteRegisterCompanionService } from './playbook-run-write-register.companion.service';\nimport { META_WORKFLOWS_SYSTEM_REF } from '../models/meta-workflows-lane.models';\nimport {\n projectPlaybookLoops,\n readPlaybookRunMeasurement,\n type PlaybookRunExecutionRow,\n} from '../models/playbook-run-record.models';\nimport {\n CREATION_BUILD_LANE,\n CREATION_LOOP_LANE,\n deriveIndependenceScore,\n deriveJourneySpend,\n type CreationCodingRunSpend,\n type CreationGenerationStepSpend,\n type CreationIntervention,\n type CreationInterruptedPlaybookExecution,\n type CreationLoopSelectionSpend,\n type CreationPlaybookRunSpend,\n} from '../models/creation-intervention.models';\n\n/** The page the run report reads the meta-workflows executions in. The list's own ceiling. */\nconst PLAYBOOK_EXECUTION_PAGE = 200;\n\n/** What `GET /api/companion/creation/report` answers (#2231) — what `wildo creation report` prints. */\nexport interface CreationRunReport {\n readonly generatedAt: string;\n /**\n * The application the report is about, by its `wildo.saas.config` slug — the name a defect found during its\n * creation carries in its `**Creation run:**` field (#2287), which `wildo creation report` looks up on the tracker.\n */\n readonly application: { readonly slug: string };\n /** Oldest first, each with what it unblocked and why, when a reason is known. */\n readonly interventions: readonly CreationIntervention[];\n readonly independence: ReturnType<typeof deriveIndependenceScore> & {\n /** Build tasks the plan reads LANDED: the per-landed-task denominator the build lane is judged by. */\n readonly landedBuildTasks: number;\n readonly interventionsPerLandedBuildTask: number | null;\n };\n readonly spend: {\n readonly playbookRuns: readonly CreationPlaybookRunSpend[];\n readonly codingRuns: readonly CreationCodingRunSpend[];\n readonly generationSteps: readonly CreationGenerationStepSpend[];\n readonly loopSelections: readonly CreationLoopSelectionSpend[];\n readonly total: ReturnType<typeof deriveJourneySpend>;\n };\n /** What this report could not see, said rather than left out — each line a reason a figure is a floor. */\n readonly notChecked: readonly string[];\n}\n\n/**\n * The CREATION RUN REPORT (#2231): what a person had to do, what each run spent, and how independent the lane\n * was — the report app-creation-test-004's driving session wrote by hand. Derived on every read from rows,\n * registers and git; nothing is stored here, and nothing in the lane reads it.\n */\n@injectable()\nexport class CreationRunReportCompanionService {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.CreationInterventionLedgerService) private readonly ledger: CreationInterventionLedgerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService) private readonly buildDispatch: ApplicationBuildDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService) private readonly playbookRunWrites: PlaybookRunWriteRegisterCompanionService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {}\n\n public async describe(): Promise<CreationRunReport> {\n const notChecked: string[] = [];\n const rows = await this.executions.listActorExecutions(\n CompanionExecutionsListQuerySchema.parse({ systemRef: META_WORKFLOWS_SYSTEM_REF, limit: PLAYBOOK_EXECUTION_PAGE }),\n ) as unknown as PlaybookRunExecutionRow[];\n if (rows.length >= PLAYBOOK_EXECUTION_PAGE) {\n notChecked.push(`playbook runs: only the newest ${PLAYBOOK_EXECUTION_PAGE} executions were read, so older runs' spend and restarts' playbook names are missing`);\n }\n const playbookExecutions = new Map<string, CreationInterruptedPlaybookExecution>();\n // The unattended loop's rows name no playbook; a restart that interrupted one is still a restart of the loop.\n for (const loop of projectPlaybookLoops(rows)) playbookExecutions.set(loop.runId, { lane: CREATION_LOOP_LANE });\n const playbookRuns: CreationPlaybookRunSpend[] = [];\n let playbookRunsInFlight = 0;\n for (const row of rows) {\n const refs = row.standaloneTasks[0]?.context?.correlation?.refs;\n const playbookRef = refs?.['playbookRef'];\n if (typeof playbookRef !== 'string') continue;\n playbookExecutions.set(row._id, { lane: playbookRef, ...(typeof refs?.['rootRunId'] === 'string' ? { rootRunId: refs['rootRunId'] } : {}) });\n if (row.status === FlowsActors_Status.PROCESSING || row.status === FlowsActors_Status.PENDING) playbookRunsInFlight += 1;\n // A child's spend is inside its root's: only ROOT runs are summed, or a composite's work counts twice.\n if (typeof refs?.['rootRunId'] === 'string') continue;\n const measurement = readPlaybookRunMeasurement(row.standaloneTasks[0]?.output);\n playbookRuns.push({\n runId: row._id,\n playbookRef,\n ...(typeof refs?.['instanceKey'] === 'string' ? { instanceKey: refs['instanceKey'] } : {}),\n startedAt: row.createdAt,\n ...(row.finishedAt ? { finishedAt: row.finishedAt } : {}),\n status: row.status,\n ...(measurement ? { spend: measurement.spend } : {}),\n });\n }\n playbookRuns.sort((left, right) => left.startedAt.localeCompare(right.startedAt));\n\n const loopSelections = projectPlaybookLoops(rows).map((loop): CreationLoopSelectionSpend => {\n // The loop's own row counts every lane it ran; each lane is also a root run above, so only the rest is the loop's.\n const laneSpends: PlaybookSpend[] = (loop.steps ?? []).flatMap((step) => (step.lanes ?? []).flatMap((lane) => (lane.spend ? [lane.spend] : [])));\n const cost: Record<string, number> = { ...(loop.measurement?.spend.cost ?? {}) };\n for (const lane of laneSpends) for (const [currency, amount] of Object.entries(lane.cost ?? {})) cost[currency] = (cost[currency] ?? 0) - amount;\n const kept = Object.fromEntries(Object.entries(cost).filter((entry) => entry[1] > 0));\n return { runId: loop.runId, startedAt: loop.startedAt, ...(Object.keys(kept).length > 0 ? { cost: kept } : {}) };\n });\n\n const build = await this.buildDispatch.describeBuildTaskRecords();\n if (build === undefined) notChecked.push('build: the application has no build plan yet, so there are no coding runs to count');\n if (build?.attemptsTruncated) notChecked.push('build: the attempt listing hit its page cap, so coding runs, generation steps and their spend are a floor');\n const attempts = (build?.tasks ?? []).flatMap((task) => task.attempts.map((attempt) => ({ taskRef: task.taskRef, attempt })));\n const codingRuns: CreationCodingRunSpend[] = attempts\n // A generation step is an attempt and no agent run: it is not a coding run. Its own spend is listed apart, below.\n .filter(({ attempt }) => attempt.ranNothing !== true && attempt.generationStep !== true)\n .map(({ taskRef, attempt }) => ({\n runTaskId: attempt.runTaskId,\n taskRef,\n startedAt: attempt.startedAt,\n ...(attempt.settledAt ? { settledAt: attempt.settledAt } : {}),\n ...(attempt.tokens ? { tokens: attempt.tokens } : {}),\n ...(attempt.cost ? { cost: attempt.cost } : {}),\n }))\n .sort((left, right) => left.startedAt.localeCompare(right.startedAt));\n const generationSteps: CreationGenerationStepSpend[] = attempts\n .filter(({ attempt }) => attempt.ranNothing !== true && attempt.generationStep === true)\n .map(({ taskRef, attempt }) => ({\n runTaskId: attempt.runTaskId,\n taskRef,\n startedAt: attempt.startedAt,\n ...(attempt.settledAt ? { settledAt: attempt.settledAt } : {}),\n ...(attempt.generationStepSpend ? { spend: attempt.generationStepSpend } : {}),\n }))\n .sort((left, right) => left.startedAt.localeCompare(right.startedAt));\n const codingRunsInFlight = attempts.filter(({ attempt }) => attempt.status === FlowsActors_Status.PROCESSING || attempt.status === FlowsActors_Status.PENDING).length;\n\n const { interventions, notChecked: ledgerNotChecked } = await this.ledger.deriveInterventions({\n buildAttempts: attempts.map(({ taskRef, attempt }) => ({\n taskRef,\n runTaskId: attempt.runTaskId,\n startedAt: attempt.startedAt,\n ...(attempt.rearm ? { rearm: attempt.rearm } : {}),\n ...(attempt.landedOverride ? { landedOverride: attempt.landedOverride } : {}),\n })),\n playbookExecutions,\n runsInFlight: playbookRunsInFlight + codingRunsInFlight,\n });\n notChecked.push(...ledgerNotChecked);\n\n // A playbook lane's landings are its runs that landed files; the build's, its tasks the plan reads landed.\n const landedByLane = new Map<string, number>();\n for (const record of await this.playbookRunWrites.list()) landedByLane.set(record.playbookRef, (landedByLane.get(record.playbookRef) ?? 0) + 1);\n const landedBuildTasks = build?.summary.landed ?? 0;\n if (build !== undefined) landedByLane.set(CREATION_BUILD_LANE, landedBuildTasks);\n const independence = deriveIndependenceScore(interventions, landedByLane);\n const buildInterventions = interventions.filter((intervention) => intervention.targets.some((target) => target.lane === CREATION_BUILD_LANE)).length;\n\n return {\n generatedAt: new Date().toISOString(),\n application: { slug: this.companionContext.saasConfig.slug },\n interventions,\n independence: {\n ...independence,\n landedBuildTasks,\n interventionsPerLandedBuildTask: landedBuildTasks > 0 ? Math.round((buildInterventions / landedBuildTasks) * 100) / 100 : buildInterventions === 0 ? 0 : null,\n },\n spend: { playbookRuns, codingRuns, generationSteps, loopSelections, total: deriveJourneySpend({ playbookRuns, codingRuns, generationSteps, loopSelections }) },\n notChecked,\n };\n }\n\n /** Record why a person intervened; refused for an id the current report does not hold. */\n public async stateReason(interventionId: string, reason: string): Promise<{ readonly interventionId: string; readonly statedAt: string }> {\n const report = await this.describe();\n return this.ledger.stateReason(interventionId, reason, new Set(report.interventions.map((intervention) => intervention.id)));\n }\n}\n"]}
1
+ {"version":3,"file":"creation-run-report.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/creation-run-report.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EA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,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC,EAAE;YAC9J,UAAU;SACX,CAAC;IACJ,CAAC;IAED,0FAA0F;IACnF,KAAK,CAAC,WAAW,CAAC,cAAsB,EAAE,MAAc;QAC7D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC/H,CAAC;CACF,CAAA;AAxHY,iCAAiC;IAD7C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,iCAAiC,CAAC,CAAA;IACjE,WAAA,MAAM,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;IACjD,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAC/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAC/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GANxC,iCAAiC,CAwH7C","sourcesContent":["import { inject, injectable } from 'inversify';\n\nimport { FlowsActors_Status } from '@wildo-ai/saas-models';\nimport type { PlaybookSpend } from '@wildo-ai/application-creation-runtime';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas';\nimport type { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';\nimport type { ApplicationBuildDispatchCompanionService } from './application-build-dispatch.companion.service';\nimport type { CreationInterventionLedgerCompanionService } from './creation-intervention-ledger.companion.service';\nimport type { PlaybookRunWriteRegisterCompanionService } from './playbook-run-write-register.companion.service';\nimport { META_WORKFLOWS_SYSTEM_REF } from '../models/meta-workflows-lane.models';\nimport {\n projectPlaybookLoops,\n readPlaybookRunMeasurement,\n type PlaybookRunExecutionRow,\n} from '../models/playbook-run-record.models';\nimport {\n CREATION_BUILD_LANE,\n CREATION_LOOP_LANE,\n deriveIndependenceScore,\n deriveJourneySpend,\n type CreationCodingRunSpend,\n type CreationGenerationStepSpend,\n type CreationIntervention,\n type CreationInterruptedPlaybookExecution,\n type CreationLoopSelectionSpend,\n type CreationPlaybookRunSpend,\n} from '../models/creation-intervention.models';\n\n/** The page the run report reads the meta-workflows executions in. The list's own ceiling. */\nconst PLAYBOOK_EXECUTION_PAGE = 200;\n\n/** What `GET /api/companion/creation/report` answers (#2231) — what `wildo creation report` prints. */\nexport interface CreationRunReport {\n readonly generatedAt: string;\n /**\n * The application the report is about, by its `wildo.saas.config` slug — the name a defect found during its\n * creation carries in its `**Creation run:**` field (#2287), which `wildo creation report` looks up on the tracker.\n */\n readonly application: { readonly slug: string };\n /** Oldest first, each with what it unblocked and why, when a reason is known. */\n readonly interventions: readonly CreationIntervention[];\n readonly independence: ReturnType<typeof deriveIndependenceScore> & {\n /** Build tasks the plan reads LANDED: the per-landed-task denominator the build lane is judged by. */\n readonly landedBuildTasks: number;\n readonly interventionsPerLandedBuildTask: number | null;\n };\n readonly spend: {\n readonly playbookRuns: readonly CreationPlaybookRunSpend[];\n readonly codingRuns: readonly CreationCodingRunSpend[];\n readonly generationSteps: readonly CreationGenerationStepSpend[];\n readonly loopSelections: readonly CreationLoopSelectionSpend[];\n readonly total: ReturnType<typeof deriveJourneySpend>;\n };\n /** What this report could not see, said rather than left out — each line a reason a figure is a floor. */\n readonly notChecked: readonly string[];\n}\n\n/**\n * The CREATION RUN REPORT (#2231): what a person had to do, what each run spent, and how independent the lane\n * was — the report app-creation-test-004's driving session wrote by hand. Derived on every read from rows,\n * registers and git; nothing is stored here, and nothing in the lane reads it.\n */\n@injectable()\nexport class CreationRunReportCompanionService {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.CreationInterventionLedgerService) private readonly ledger: CreationInterventionLedgerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService) private readonly buildDispatch: ApplicationBuildDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService) private readonly playbookRunWrites: PlaybookRunWriteRegisterCompanionService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {}\n\n public async describe(): Promise<CreationRunReport> {\n const notChecked: string[] = [];\n const rows = await this.executions.listActorExecutions(\n CompanionExecutionsListQuerySchema.parse({ systemRef: META_WORKFLOWS_SYSTEM_REF, limit: PLAYBOOK_EXECUTION_PAGE }),\n ) as unknown as PlaybookRunExecutionRow[];\n if (rows.length >= PLAYBOOK_EXECUTION_PAGE) {\n notChecked.push(`playbook runs: only the newest ${PLAYBOOK_EXECUTION_PAGE} executions were read, so older runs' spend and restarts' playbook names are missing`);\n }\n const playbookExecutions = new Map<string, CreationInterruptedPlaybookExecution>();\n // The unattended loop's rows name no playbook; a restart that interrupted one is still a restart of the loop.\n for (const loop of projectPlaybookLoops(rows)) playbookExecutions.set(loop.runId, { lane: CREATION_LOOP_LANE });\n const playbookRuns: CreationPlaybookRunSpend[] = [];\n let playbookRunsInFlight = 0;\n for (const row of rows) {\n const refs = row.standaloneTasks[0]?.context?.correlation?.refs;\n const playbookRef = refs?.['playbookRef'];\n if (typeof playbookRef !== 'string') continue;\n playbookExecutions.set(row._id, { lane: playbookRef, ...(typeof refs?.['rootRunId'] === 'string' ? { rootRunId: refs['rootRunId'] } : {}) });\n if (row.status === FlowsActors_Status.PROCESSING || row.status === FlowsActors_Status.PENDING) playbookRunsInFlight += 1;\n // A child's spend is inside its root's: only ROOT runs are summed, or a composite's work counts twice.\n if (typeof refs?.['rootRunId'] === 'string') continue;\n const measurement = readPlaybookRunMeasurement(row.standaloneTasks[0]?.output);\n playbookRuns.push({\n runId: row._id,\n playbookRef,\n ...(typeof refs?.['instanceKey'] === 'string' ? { instanceKey: refs['instanceKey'] } : {}),\n startedAt: row.createdAt,\n ...(row.finishedAt ? { finishedAt: row.finishedAt } : {}),\n status: row.status,\n ...(measurement ? { spend: measurement.spend } : {}),\n });\n }\n playbookRuns.sort((left, right) => left.startedAt.localeCompare(right.startedAt));\n\n const loopSelections = projectPlaybookLoops(rows).map((loop): CreationLoopSelectionSpend => {\n // The loop's own row counts every lane it ran; each lane is also a root run above, so only the rest is the loop's.\n const laneSpends: PlaybookSpend[] = (loop.steps ?? []).flatMap((step) => (step.lanes ?? []).flatMap((lane) => (lane.spend ? [lane.spend] : [])));\n const cost: Record<string, number> = { ...(loop.measurement?.spend.cost ?? {}) };\n for (const lane of laneSpends) for (const [currency, amount] of Object.entries(lane.cost ?? {})) cost[currency] = (cost[currency] ?? 0) - amount;\n const kept = Object.fromEntries(Object.entries(cost).filter((entry) => entry[1] > 0));\n return { runId: loop.runId, startedAt: loop.startedAt, ...(Object.keys(kept).length > 0 ? { cost: kept } : {}) };\n });\n\n const build = await this.buildDispatch.describeBuildTaskRecords();\n if (build === undefined) notChecked.push('build: the application has no build plan yet, so there are no coding runs to count');\n if (build?.attemptsTruncated) notChecked.push('build: the attempt listing hit its page cap, so coding runs, generation steps and their spend are a floor');\n const attempts = (build?.tasks ?? []).flatMap((task) => task.attempts.map((attempt) => ({ taskRef: task.taskRef, attempt })));\n const codingRuns: CreationCodingRunSpend[] = attempts\n // A generation step is an attempt and no agent run: it is not a coding run. Its own spend is listed apart, below.\n .filter(({ attempt }) => attempt.ranNothing !== true && attempt.generationStep !== true)\n .map(({ taskRef, attempt }) => ({\n runTaskId: attempt.runTaskId,\n taskRef,\n startedAt: attempt.startedAt,\n ...(attempt.settledAt ? { settledAt: attempt.settledAt } : {}),\n ...(attempt.tokens ? { tokens: attempt.tokens } : {}),\n ...(attempt.cost ? { cost: attempt.cost } : {}),\n }))\n .sort((left, right) => left.startedAt.localeCompare(right.startedAt));\n const generationSteps: CreationGenerationStepSpend[] = attempts\n .filter(({ attempt }) => attempt.ranNothing !== true && attempt.generationStep === true)\n .map(({ taskRef, attempt }) => ({\n runTaskId: attempt.runTaskId,\n taskRef,\n startedAt: attempt.startedAt,\n ...(attempt.settledAt ? { settledAt: attempt.settledAt } : {}),\n ...(attempt.generationStepSpend ? { spend: attempt.generationStepSpend } : {}),\n }))\n .sort((left, right) => left.startedAt.localeCompare(right.startedAt));\n const codingRunsInFlight = attempts.filter(({ attempt }) => attempt.status === FlowsActors_Status.PROCESSING || attempt.status === FlowsActors_Status.PENDING).length;\n\n const { interventions, notChecked: ledgerNotChecked } = await this.ledger.deriveInterventions({\n buildAttempts: attempts.map(({ taskRef, attempt }) => ({\n taskRef,\n runTaskId: attempt.runTaskId,\n startedAt: attempt.startedAt,\n ...(attempt.rearm ? { rearm: attempt.rearm } : {}),\n ...(attempt.landedOverride ? { landedOverride: attempt.landedOverride } : {}),\n })),\n playbookExecutions,\n runsInFlight: playbookRunsInFlight + codingRunsInFlight,\n });\n notChecked.push(...ledgerNotChecked);\n\n // A playbook lane's landings are its runs that landed files; the build's, its tasks the plan reads landed.\n const landedByLane = new Map<string, number>();\n for (const record of await this.playbookRunWrites.list()) landedByLane.set(record.playbookRef, (landedByLane.get(record.playbookRef) ?? 0) + 1);\n const landedBuildTasks = build?.summary.landed ?? 0;\n if (build !== undefined) landedByLane.set(CREATION_BUILD_LANE, landedBuildTasks);\n const independence = deriveIndependenceScore(interventions, landedByLane);\n const buildInterventions = interventions.filter((intervention) => intervention.targets.some((target) => target.lane === CREATION_BUILD_LANE)).length;\n\n return {\n generatedAt: new Date().toISOString(),\n application: { slug: this.companionContext.saasConfig.slug },\n interventions,\n independence: {\n ...independence,\n landedBuildTasks,\n interventionsPerLandedBuildTask: landedBuildTasks > 0 ? Math.round((buildInterventions / landedBuildTasks) * 100) / 100 : buildInterventions === 0 ? 0 : null,\n },\n spend: { playbookRuns, codingRuns, generationSteps, loopSelections, total: deriveJourneySpend({ playbookRuns, codingRuns, generationSteps, loopSelections }) },\n notChecked,\n };\n }\n\n /** Record why a person intervened; refused for an id the current report does not hold. */\n public async stateReason(interventionId: string, reason: string): Promise<{ readonly interventionId: string; readonly statedAt: string }> {\n const report = await this.describe();\n return this.ledger.stateReason(interventionId, reason, new Set(report.interventions.map((intervention) => intervention.id)));\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dossier-write-queue.companion.utils.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/dossier-write-queue.companion.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAKH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,yBAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAWrH"}
1
+ {"version":3,"file":"dossier-write-queue.companion.utils.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/dossier-write-queue.companion.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAKH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,yBAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAWrH"}
@@ -1 +1 @@
1
- {"version":3,"file":"dossier-write-queue.companion.utils.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/dossier-write-queue.companion.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,mHAAmH;AACnH,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAyB,CAAC;AAE3D,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAI,yBAAiC,EAAE,KAAuB;IACvG,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IACvF,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACxD,iBAAiB,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;IACvD,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,CAAC;IACnB,CAAC;YAAS,CAAC;QACT,0GAA0G;QAC1G,IAAI,iBAAiB,CAAC,GAAG,CAAC,yBAAyB,CAAC,KAAK,IAAI;YAAE,iBAAiB,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACrH,CAAC;AACH,CAAC","sourcesContent":["/**\n * One write to the creator dossier at a time, per specifications package (#2179).\n *\n * ## Why the dossier needs it\n *\n * Every dossier write is a read-modify-write of ONE file: read `creator-inputs` through the companion-exports\n * aggregate, add one change (an answer, the interview depth, an instance opened or closed), and rewrite the whole\n * file. Two writes that overlap both read the same dossier, and the second to finish rewrites the file without\n * the first one's change. Nothing fails and nothing is logged: the creator simply finds an answer they gave\n * missing. The doors that overlap in ordinary use are a CLI `wildo creation answer` while the workbench interview\n * saves, a playbook run filing its gate answers while the person answers in the console, and an instance opened\n * or closed while an answer lands.\n *\n * ## Why an in-process queue, and not the workspace lock\n *\n * The companion is the only process that writes the dossier through these doors (the CLI, the workbench and the\n * creation conversation all reach it over its API), so ordering inside the process is ordering everywhere.\n *\n * The workspace mutation lock was rejected: a coding run holds it for its whole duration, and answering\n * questions while a build runs is normal. Taking it for an answer would turn every answer given during a build\n * into a wait or a refusal. Opening and closing an instance still hold it, because they also commit; they take\n * this queue INSIDE it, and nothing holding this queue ever asks for the workspace lock, so the two cannot\n * deadlock.\n *\n * ## The contract\n *\n * - Writes for one package run strictly in the order they were queued; different packages do not wait on each\n * other.\n * - A failed write releases the queue: the next write runs, and the failure reaches only its own caller.\n * - NOT re-entrant. A write must never queue another write for the same package and await it, or it waits on\n * itself forever. A method that lands several changes takes the queue once and lands them inside.\n *\n * A person editing `creator-inputs/index.ts` by hand is outside this, as any working edit is: git shows it, and\n * the next write reads it.\n */\n\n/** The last queued write per specifications package root, with its failure swallowed so the queue never stalls. */\nconst dossierWriteTails = new Map<string, Promise<void>>();\n\nexport async function serializeDossierWrite<T>(specificationsPackageRoot: string, write: () => Promise<T>): Promise<T> {\n const previous = dossierWriteTails.get(specificationsPackageRoot) ?? Promise.resolve();\n const run = previous.then(() => write());\n const tail = run.then(() => undefined, () => undefined);\n dossierWriteTails.set(specificationsPackageRoot, tail);\n try {\n return await run;\n } finally {\n // Only the LAST queued write clears the entry; an earlier one finishing must not drop a later one's tail.\n if (dossierWriteTails.get(specificationsPackageRoot) === tail) dossierWriteTails.delete(specificationsPackageRoot);\n }\n}\n"]}
1
+ {"version":3,"file":"dossier-write-queue.companion.utils.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/dossier-write-queue.companion.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,mHAAmH;AACnH,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAyB,CAAC;AAE3D,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAI,yBAAiC,EAAE,KAAuB;IACvG,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IACvF,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACxD,iBAAiB,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;IACvD,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,CAAC;IACnB,CAAC;YAAS,CAAC;QACT,0GAA0G;QAC1G,IAAI,iBAAiB,CAAC,GAAG,CAAC,yBAAyB,CAAC,KAAK,IAAI;YAAE,iBAAiB,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACrH,CAAC;AACH,CAAC","sourcesContent":["/**\n * One write to the creator dossier at a time, per specifications package (#2179).\n *\n * ## Why the dossier needs it\n *\n * Every dossier write is a read-modify-write of ONE file: read `creator-inputs` through the companion-exports\n * aggregate, add one change (an answer, the interview depth, an instance opened or closed), and rewrite the whole\n * file. Two writes that overlap both read the same dossier, and the second to finish rewrites the file without\n * the first one's change. Nothing fails and nothing is logged: the creator simply finds an answer they gave\n * missing. The doors that overlap in ordinary use are a CLI `wildo creation answer` while the workbench interview\n * saves, a playbook run filing its gate answers while the person answers in the console, and an instance opened\n * or closed while an answer lands.\n *\n * ## Why an in-process queue, and not the workspace lock\n *\n * The companion is the only process that writes the dossier through these doors (the CLI, the workbench and the\n * creation conversation all reach it over its API), so ordering inside the process is ordering everywhere.\n *\n * The workspace mutation lock was rejected: a coding run holds it for its whole duration, and answering\n * questions while a build runs is normal. Taking it for an answer would turn every answer given during a build\n * into a wait or a refusal. Opening and closing an instance still hold it, because they also commit; they take\n * this queue INSIDE it, and nothing holding this queue ever asks for the workspace lock, so the two cannot\n * deadlock.\n *\n * ## The contract\n *\n * - Writes for one package run strictly in the order they were queued; different packages do not wait on each\n * other.\n * - A failed write releases the queue: the next write runs, and the failure reaches only its own caller.\n * - NOT re-entrant. A write must never queue another write for the same package and await it, or it waits on\n * itself forever. A method that lands several changes takes the queue once and lands them inside.\n *\n * A person editing `creator-inputs/index.ts` by hand is outside this, as any working edit is: git shows it, and\n * the next write reads it.\n */\n\n/** The last queued write per specifications package root, with its failure swallowed so the queue never stalls. */\nconst dossierWriteTails = new Map<string, Promise<void>>();\n\nexport async function serializeDossierWrite<T>(specificationsPackageRoot: string, write: () => Promise<T>): Promise<T> {\n const previous = dossierWriteTails.get(specificationsPackageRoot) ?? Promise.resolve();\n const run = previous.then(() => write());\n const tail = run.then(() => undefined, () => undefined);\n dossierWriteTails.set(specificationsPackageRoot, tail);\n try {\n return await run;\n } finally {\n // Only the LAST queued write clears the entry; an earlier one finishing must not drop a later one's tail.\n if (dossierWriteTails.get(specificationsPackageRoot) === tail) dossierWriteTails.delete(specificationsPackageRoot);\n }\n}\n"]}
@@ -16,6 +16,11 @@ export interface DossierEntry {
16
16
  readonly question: string;
17
17
  readonly kind: string;
18
18
  readonly options: readonly string[];
19
+ /** What each COMPUTED option stands for (#2337) — the resolved `optionDetails`; empty for authored options. */
20
+ readonly optionDetails: readonly {
21
+ readonly option: string;
22
+ readonly detail: string;
23
+ }[];
19
24
  /**
20
25
  * Whether the options can be offered now — `NOT_YET_AVAILABLE` for a computed CHOICE whose source has not
21
26
  * landed or offers nothing, `ANSWER_NO_LONGER_OFFERED` when the recorded answer is not among the computed
@@ -1 +1 @@
1
- {"version":3,"file":"dossier.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/dossier.companion.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,KAAK,qCAAqC,EAC1C,KAAK,4CAA4C,EAEjD,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EAEzC,KAAK,oBAAoB,EAC1B,MAAM,oDAAoD,CAAC;AAM5D,OAAO,KAAK,EAAE,8BAA8B,EAA2B,MAAM,uBAAuB,CAAC;AACrG,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAsH,KAAK,yB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AAM,EAAE,4BAA4B,CAAC,CAAC;IAW5G,oHAAoH;IAC7G,sBAAsB,IAAI,SAAS,oBAAoB,EAAE;IAMhE,sIAAsI;IACtI,OAAO,CAAC,kBAAkB;CAM3B"}
@@ -45,7 +45,9 @@ import { readCompiledApplicationLineCatalog } from '../models/application-line-c
45
45
  * tool both arrive, and {@link fileStillNeededAnswers}, for what a run's gate collected. It
46
46
  * validates the answer against the question's kind with the SAME function a run applies when it
47
47
  * reads the answer back, merges it into the dossier by key, and lands the family file. It does not commit: a landed dossier is a
48
- * working edit until a human commits it (`.claude/rules/one-source-of-truth.md`, rules 2 and 3).
48
+ * working edit until a human commits it (`.claude/rules/one-source-of-truth.md`, rules 2 and 3). It reaches history with the
49
+ * first accepted run whose commit imports it, which carries it, or on its own through `wildo creation accept --dossier`
50
+ * (`AcceptedChangeCommitCompanionService`, #2332).
49
51
  *
50
52
  * Every write here is a read-modify-write of that one file, so every write goes through
51
53
  * {@link serializeDossierWrite}: two overlapping saves would otherwise both build on the same read, and
@@ -306,6 +308,7 @@ let DossierCompanionService = class DossierCompanionService {
306
308
  question: question.question,
307
309
  kind: String(question.kind),
308
310
  options: [...(question.options ?? [])],
311
+ optionDetails: (question.optionDetails ?? []).map((entry) => ({ ...entry })),
309
312
  optionsState: options.optionsState,
310
313
  position,
311
314
  answer: options.answer,
@@ -343,6 +346,7 @@ let DossierCompanionService = class DossierCompanionService {
343
346
  question: question.question,
344
347
  kind: String(question.kind),
345
348
  options: [...(question.options ?? [])],
349
+ optionDetails: (question.optionDetails ?? []).map((entry) => ({ ...entry })),
346
350
  optionsState: options.optionsState,
347
351
  position,
348
352
  answer: options.answer,
@@ -1 +1 @@
1
- {"version":3,"file":"dossier.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/dossier.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,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AA+B,EAAE;aACrC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAClD,MAAM,CAAC,CAAC,QAAQ,EAAoC,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACzH,CAAC;IAED,sIAAsI;IAC9H,kBAAkB,CAAC,WAAmB;QAC5C,MAAM,QAAQ,GAAG,6BAA6B,CAAC,WAAW,CAAC,CAAC;QAC5D,IAAI,CAAC,QAAQ;YAAE,OAAO,SAAS,CAAC;QAChC,MAAM,MAAM,GAAG,0BAA0B,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACvE,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAClD,CAAC;CACF,CAAA;AA9eY,uBAAuB;IADnC,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GALxC,uBAAuB,CA8enC;;AAED,6EAA6E;AAC7E,SAAS,cAAc,CAAC,MAAiD;IACvE,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC;AACnE,CAAC","sourcesContent":["import { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks } from '@wildo-ai/framework-knowledge';\nimport {\n ApplicationAuthoredDocumentFactSpecificationSchema,\n ApplicationCreatorInputsSchema,\n ApplicationDocumentFactSpecificationSchema,\n ApplicationSpecificationFamily,\n ApplicationSpecificationFamilySemanticSchemaRef,\n MetaWorkflowPlaybookSchema,\n creatorInputAnswerKey,\n type ApplicationCreatorInputAnswerStanding,\n type ApplicationAuthoredDocumentFactSpecification,\n type ApplicationComplianceDocumentCandidateSet,\n type ApplicationCreatorInputAnswer,\n type ApplicationCreatorInputs,\n type ApplicationDocumentFactSpecification,\n type ComplianceDocumentCandidate,\n type MetaWorkflowPlaybook,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport {\n createInitialAssuranceDocumentAuthorityCatalog,\n selectAssuranceDocumentBlueprintForDocumentRef,\n type AssuranceDocumentPublicationVariant,\n} from '@wildo-ai/saas-specifications/assurance';\nimport type { GovernedDocumentPublicDocument, GovernedDocumentRelease } from '@wildo-ai/saas-models';\nimport { WorkbenchDossierEntryOptionsState } from '@wildo-ai/platform-core-shared';\nimport { isElicitationQuestionAskedInSimpleInterview, isElicitationQuestionProposable, isRegulatedDomainElicitationQuestion, type ApplicationInterviewDepth } from '@wildo-ai/saas-models/meta-workflows';\nimport {\n PlaybookElicitationError,\n createCompanionExportsFamilyReader,\n deriveAffectedFamilies,\n materializeElicitationOptions,\n type ElicitationOptionsSourceReads,\n landCreatorInputAnswer,\n landInterviewDepth,\n resolveApplicationLineScope,\n resolvePlaybookOutputLandingTarget,\n unansweredElicitationQuestionRefs,\n} from '@wildo-ai/application-creation-runtime';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport { importLandedTypeScriptModule } from './landed-module-import.companion';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport type { InterviewQuestionDisposition } from '../../core/introspection/resources/creation-console-projection.companion';\nimport { selectCurrentGovernedDocumentTexts } from './governed-document-texts.companion';\nimport { serializeDossierWrite } from './dossier-write-queue.companion.utils';\nimport { readCompiledApplicationLineCatalog } from '../models/application-line-catalog.models';\n\n/**\n * THE DOSSIER's companion service (#1454, Steps 5–6): what the creator was asked — by a playbook\n * interview or by a governed document — what they said, and the one door for saying more.\n *\n * ## Two sources, one join\n *\n * The QUESTIONS are the compiled playbook catalog's — every `method.elicitation.questions` entry of\n * every playbook that declares one. The ANSWERS are the `creator-inputs` family, read through the\n * application's companion-exports aggregate like every other landed family. Neither alone is what\n * a person reads, so {@link listDossierEntries} is the join: one entry per declared question,\n * carrying the answer when there is one and `STILL_NEEDED` when there is not.\n *\n * ## One writer, and it lands a family\n *\n * An answer enters the dossier by two doors only, and both land it through the same private\n * `landAnswer`: {@link recordAnswer}, where the resource operation and the assistant's `record_answer`\n * tool both arrive, and {@link fileStillNeededAnswers}, for what a run's gate collected. It\n * validates the answer against the question's kind with the SAME function a run applies when it\n * reads the answer back, merges it into the dossier by key, and lands the family file. It does not commit: a landed dossier is a\n * working edit until a human commits it (`.claude/rules/one-source-of-truth.md`, rules 2 and 3).\n *\n * Every write here is a read-modify-write of that one file, so every write goes through\n * {@link serializeDossierWrite}: two overlapping saves would otherwise both build on the same read, and\n * the second would erase the first one's change (#2179).\n *\n * ## An answer to a question no playbook asks any more is REPORTED, not dropped\n *\n * The catalog moves. A committed answer whose question was renamed or retired stays in the file\n * and is listed as ORPHANED here, so the person who gave it can see it went nowhere — deleting it\n * silently would be a regeneration destroying a human decision, the defect the two document-facts\n * families exist to prevent.\n */\n\n/** The constant prefix every landed family uses — neutral by contract (#65), never the application's name. */\nconst LANDED_CONSTANT_PREFIX = 'application';\n\n/** One question of the catalog, with the creator's answer when there is one. */\nexport interface DossierEntry {\n readonly playbookRef: string;\n /** The playbook INSTANCE this row asks for (#1609); absent on the default instance's rows. */\n readonly instanceKey?: string;\n /** What that instance was opened FOR, as its activation records it; absent on the default instance's rows. */\n readonly instancePurpose?: string;\n readonly questionRef: string;\n readonly question: string;\n readonly kind: string;\n readonly options: readonly string[];\n /**\n * Whether the options can be offered now — `NOT_YET_AVAILABLE` for a computed CHOICE whose source has not\n * landed or offers nothing, `ANSWER_NO_LONGER_OFFERED` when the recorded answer is not among the computed\n * options any more (it is then not carried as `answer`, so the question reads as still needed).\n */\n readonly optionsState: WorkbenchDossierEntryOptionsState;\n readonly position: number;\n readonly answer: ApplicationCreatorInputAnswer | undefined;\n /**\n * On an instance's row with no answer of its own: the step's own answer, which the instance runs on\n * until it is given one (#1609). Absent on the default instance's rows, and whenever `answer` is set.\n */\n readonly answerFromTheStep?: ApplicationCreatorInputAnswer;\n /**\n * Every family this answer feeds — what the asking playbook produces and everything downstream of\n * it — so \"changing this affects: …\" is on the row before anyone saves (#1454, Step 8). Derived\n * from the catalog's declared inputs and outputs; empty for a playbook that produces nothing.\n */\n readonly affectsFamilies: readonly string[];\n /**\n * The family whose SUBJECT this question belongs to (#1454, gap 4): what the asking step itself\n * produces; for a composite that produces nothing directly, what the steps it admits produce; and\n * only then the first family its answer reaches. The last is a downstream family — a compliance\n * interview reaches the vision by way of the build — so it is the fallback, never the first choice.\n */\n readonly subjectFamily: string | undefined;\n /**\n * The OTHER steps that READ this decision through a `sameDecisionAs` fallback (#1454 review) — every\n * such step without an answer of its own. The decision is ONE row, at its owner; those steps'\n * interviews show and answer this row, so a creator is asked once. A fallback that holds its own\n * (legacy) answer reads that answer instead, and is listed on its own row, not here.\n */\n readonly sharedWithPlaybookRefs: readonly string[];\n /** Whether a SIMPLE interview asks it of the person (#2129); otherwise it is proposed (reviewed, or assumed unattended). */\n readonly askedInSimpleInterview: boolean;\n /** Whether an answer may be proposed when the person does not know (#2129). */\n readonly proposable: boolean;\n /** It concerns a regulated domain (#2129): a proposal is named to the person before it is kept. */\n readonly regulatedDomain: boolean;\n}\n\n/**\n * One question's interview disposition (#2129) — what a surface needs to run a simple interview. Read\n * through the shared predicates, never re-derived, so the dossier page, the workbench interview and the\n * console queue select the same questions.\n */\nfunction interviewQuestionDisposition(question: NonNullable<NonNullable<MetaWorkflowPlaybook['method']>['elicitation']>['questions'][number]): InterviewQuestionDisposition {\n return {\n askedInSimpleInterview: isElicitationQuestionAskedInSimpleInterview(question),\n proposable: isElicitationQuestionProposable(question),\n regulatedDomain: isRegulatedDomainElicitationQuestion(question),\n };\n}\n\n/** A committed answer whose question the catalog no longer declares. */\nexport interface OrphanedDossierAnswer {\n readonly answer: ApplicationCreatorInputAnswer;\n /** `unknown_playbook` when the playbook itself is gone, `unknown_question` when only the question is. */\n readonly reason: 'unknown_playbook' | 'unknown_question';\n}\n\nexport interface DossierListing {\n readonly entries: readonly DossierEntry[];\n readonly orphaned: readonly OrphanedDossierAnswer[];\n /** How deep this application's interviews go (#2129); undefined until the person chooses. */\n readonly interviewDepth: ApplicationInterviewDepth | undefined;\n}\n\n/**\n * One answer to record. Named, rather than derived from the private `landAnswer`'s parameter, so the public\n * {@link DossierCompanionService.recordAnswer} keeps its type in emitted declarations (#2179 review).\n */\nexport interface RecordAnswerInput {\n readonly playbookRef: string;\n /** The INSTANCE the answer is for (#1609); it must be opened, and a shared decision is never redirected for it. */\n readonly instanceKey?: string;\n readonly questionRef: string;\n readonly value: string;\n readonly answeredByRef: string;\n /** ASSUMED for a proposed answer the person let stand or an unattended round recorded (#2129); refused for a question only they may answer. */\n readonly standing?: ApplicationCreatorInputAnswerStanding;\n /** The proposer's reason, stored with an ASSUMED answer. */\n readonly assumptionRationale?: string;\n readonly dryRun?: boolean;\n}\n\nexport interface RecordAnswerResult {\n readonly answer: ApplicationCreatorInputAnswer;\n readonly packageRelativePath: string;\n /** The asking playbook's questions still unanswered after this one — empty means it can run. */\n readonly unansweredQuestionRefs: readonly string[];\n readonly dryRun: boolean;\n}\n\n@injectable()\nexport class DossierCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('DossierCompanionService');\n }\n\n /**\n * The dossier as LANDED — the family read through the companion-exports aggregate, re-parsed\n * because a person may have edited the file by hand. A file that does not parse is reported as\n * absent with a debug line rather than thrown: the dossier being unreadable must not take the\n * eligibility board down with it, and the artifact list reports the family as invalid on its own.\n */\n public async readCreatorInputs(): Promise<ApplicationCreatorInputs | undefined> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const raw = (exports as { creatorInputs?: unknown }).creatorInputs;\n if (raw === undefined || raw === null) return undefined;\n const parsed = ApplicationCreatorInputsSchema.safeParse(raw);\n if (!parsed.success) {\n this.logDebug('The landed creator-inputs family does not satisfy its schema; reading the dossier as empty', {\n issue: parsed.error.issues[0]?.message,\n });\n return undefined;\n }\n return parsed.data;\n }\n\n /**\n * The AUTHORED governed-document facts as landed (#1454, Step 6) — the governance half of the\n * dossier, read through the same aggregate as the interview half and re-parsed for the same\n * reason. What a governance landing merges INTO, and what decides a question's standing.\n */\n public async readAuthoredDocumentFacts(): Promise<ApplicationAuthoredDocumentFactSpecification | undefined> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const raw = (exports as { authoredDocumentFactSpecification?: unknown }).authoredDocumentFactSpecification;\n if (raw === undefined || raw === null) return undefined;\n const parsed = ApplicationAuthoredDocumentFactSpecificationSchema.safeParse(raw);\n if (!parsed.success) {\n this.logDebug('The landed document-facts-authored family does not satisfy its schema; reading the governance facts as empty', {\n issue: parsed.error.issues[0]?.message,\n });\n return undefined;\n }\n return parsed.data;\n }\n\n /**\n * The governed-document facts the PRODUCT established, as landed by the document-facts step\n * (#1454, gap 4) — what the dossier shows as \"read from the product\". Re-parsed like its siblings:\n * a landed file that no longer satisfies its schema reads as nothing read yet, never as an answer.\n */\n public async readDerivedDocumentFacts(): Promise<ApplicationDocumentFactSpecification | undefined> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const raw = (exports as { documentFactSpecification?: unknown }).documentFactSpecification;\n if (raw === undefined || raw === null) return undefined;\n const parsed = ApplicationDocumentFactSpecificationSchema.safeParse(raw);\n if (!parsed.success) {\n this.logDebug('The landed document-facts family does not satisfy its schema; reading the product facts as unread', {\n issue: parsed.error.issues[0]?.message,\n });\n return undefined;\n }\n return parsed.data;\n }\n\n /**\n * The governed documents the creator ASKED FOR — those with a landed draft — as definition refs.\n *\n * Read off the landed candidate-set FILE the way the run service reads it (the family has no\n * companion-exports slot: a draft is not accepted truth), and joined to definitions through the\n * catalog's own `document:` → `document-definition:` rule. An open fact of a drafted document is\n * asked of the person now; one of an undrafted document is merely not told yet.\n */\n public async listDraftedGovernedDocumentDefinitionRefs(): Promise<ReadonlySet<string>> {\n let drafts: readonly ComplianceDocumentCandidate[];\n try {\n drafts = await this.readLandedGovernedDocumentDrafts();\n } catch (error) {\n // An unreadable draft set is the artifact list's finding; here it reads as \"nothing drafted\", never as a throw on every dossier read.\n this.logDebug('The landed draft set could not be read; treating no document as drafted', { error: String(error) });\n return new Set();\n }\n const catalog = createInitialAssuranceDocumentAuthorityCatalog();\n const refs = new Set<string>();\n for (const candidate of drafts) {\n const selection = selectAssuranceDocumentBlueprintForDocumentRef(catalog, candidate.documentRef);\n if (selection) refs.add(selection.definition.identity.definitionRef);\n }\n return refs;\n }\n\n /**\n * Every governed document's CURRENT text, keyed by definition ref (#1645): its release, else its\n * latest draft — see {@link selectCurrentGovernedDocumentTexts}. What the workbench prints when the\n * creator asks for all their documents as one PDF.\n *\n * Unlike {@link listDraftedGovernedDocumentDefinitionRefs}, an unreadable draft set THROWS here. That\n * method answers a question a dossier can survive not knowing; this one produces a file a person hands\n * to a reviewer, and printing every document as \"not composed yet\" because the drafts could not be\n * read would be a false document.\n */\n public async readCurrentGovernedDocumentTexts(at: Date): Promise<ReadonlyMap<string, GovernedDocumentPublicDocument>> {\n const exports = (await loadSpecificationsCompanionExports(this.companionContext)) as {\n documentReleaseSet?: { releases?: readonly GovernedDocumentRelease[] };\n documentPublicationSpecification?: { variants?: readonly AssuranceDocumentPublicationVariant[] };\n } | undefined;\n const catalog = createInitialAssuranceDocumentAuthorityCatalog();\n return selectCurrentGovernedDocumentTexts({\n releases: exports?.documentReleaseSet?.releases ?? [],\n drafts: await this.readLandedGovernedDocumentDrafts(),\n definitionRefOfDraft: (draft) => selectAssuranceDocumentBlueprintForDocumentRef(catalog, draft.documentRef)?.definition.identity.definitionRef,\n publishedVariants: exports?.documentPublicationSpecification?.variants ?? [],\n at: at.toISOString(),\n });\n }\n\n /**\n * The drafts in the landed candidate-set FILE, read the way the run service reads it (the family has\n * no companion-exports slot: a draft is not accepted truth). No file is no drafts; a file that cannot\n * be loaded THROWS — each caller decides what not knowing means for it.\n */\n private async readLandedGovernedDocumentDrafts(): Promise<readonly ComplianceDocumentCandidate[]> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (specificationsPackageRoot === undefined) return [];\n const target = resolvePlaybookOutputLandingTarget({\n family: ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE_SET,\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.COMPLIANCE_DOCUMENT_CANDIDATE_SET,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n });\n const modulePath = join(specificationsPackageRoot, target.packageRelativePath);\n if (!existsSync(modulePath)) return [];\n const loaded = await importLandedTypeScriptModule(modulePath, import.meta.url);\n const set = loaded[target.exportedConstantName] as ApplicationComplianceDocumentCandidateSet | undefined;\n return set?.candidates ?? [];\n }\n\n /** Every declared interview question across the catalog, joined with the dossier's answers. */\n public async listDossierEntries(): Promise<DossierListing> {\n const creatorInputs = await this.readCreatorInputs();\n const answersByKey = new Map<string, ApplicationCreatorInputAnswer>();\n // Keyed WITH the instance (#1609): an instance's answer never takes the default instance's place.\n for (const answer of creatorInputs?.answers ?? []) answersByKey.set(creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey), answer);\n\n const entries: DossierEntry[] = [];\n const claimed = new Set<string>();\n const knownPlaybookRefs = new Set<string>();\n /* The whole parsed catalog first: what an answer affects is a question about every OTHER playbook. */\n /*\n * COMPUTED options resolved once for the whole listing (the brand-name choice is computed from the landed\n * screening): a row shows exactly the options its answer will be checked against. A question whose source\n * has not landed lists no options — its playbook is not eligible yet, so it is not asked now either.\n */\n const optionReads = await this.readElicitationOptionSources();\n const unavailableOptionsByPlaybook = new Map<string, ReadonlyMap<string, string>>();\n const catalog = listFrameworkKnowledgePlaybooks()\n .map((summary) => this.readParsedPlaybook(summary.ref))\n .filter((playbook): playbook is MetaWorkflowPlaybook => playbook !== undefined)\n .map((playbook) => {\n const materialized = materializeElicitationOptions(playbook, optionReads);\n unavailableOptionsByPlaybook.set(playbook.ref, materialized.unavailableOptions);\n return materialized.playbook;\n });\n /*\n * The state of a question's options, and the answer as it may still be READ: an answer to a computed\n * CHOICE that is no longer among its options would be refused by the run, so it is not carried as the\n * answer — the row reads as still needed and says why.\n */\n const optionsOf = (playbook: MetaWorkflowPlaybook, question: { readonly ref: string; readonly optionsFrom?: unknown; readonly options?: readonly string[] }, answer: ApplicationCreatorInputAnswer | undefined): { readonly optionsState: WorkbenchDossierEntryOptionsState; readonly answer: ApplicationCreatorInputAnswer | undefined } => {\n if (question.optionsFrom === undefined) return { optionsState: WorkbenchDossierEntryOptionsState.AVAILABLE, answer };\n if (unavailableOptionsByPlaybook.get(playbook.ref)?.has(question.ref)) return { optionsState: WorkbenchDossierEntryOptionsState.NOT_YET_AVAILABLE, answer };\n if (answer !== undefined && !(question.options ?? []).includes(answer.value)) return { optionsState: WorkbenchDossierEntryOptionsState.ANSWER_NO_LONGER_OFFERED, answer: undefined };\n return { optionsState: WorkbenchDossierEntryOptionsState.AVAILABLE, answer };\n };\n /*\n * Which fallback steps READ each owner's decision — the owner row carries them. A fallback holding\n * an answer of its own reads THAT answer (`readAnswersForPlaybookQuestions`: an own answer wins),\n * so it is not listed here: its interview shows its own row alone, and the owner's row neither\n * appears in that interview nor dates that step's result (#1454 review, LOW).\n */\n const sharedWith = new Map<string, string[]>();\n for (const playbook of catalog) {\n for (const question of playbook.method?.elicitation?.questions ?? []) {\n if (!question.sameDecisionAs) continue;\n if (answersByKey.has(creatorInputAnswerKey(playbook.ref, question.ref))) continue;\n const ownerKey = creatorInputAnswerKey(question.sameDecisionAs.playbookRef, question.sameDecisionAs.questionRef);\n sharedWith.set(ownerKey, [...(sharedWith.get(ownerKey) ?? []), playbook.ref]);\n }\n }\n /*\n * Only the questions of the playbooks this application's LINE runs (#1605): an internal tool is never\n * asked for its pricing tiers or its brand. An answer to a question outside the line is KEPT, neither\n * listed nor reported orphaned: it records a previous line's decision and returns if the line does.\n */\n const lineScope = resolveApplicationLineScope({ catalog: readCompiledApplicationLineCatalog(), creatorInputs });\n for (const playbook of catalog) {\n knownPlaybookRefs.add(playbook.ref);\n const questions = playbook.method?.elicitation?.questions ?? [];\n if (!lineScope.admittedPlaybookRefs.has(playbook.ref)) {\n for (const question of questions) claimed.add(creatorInputAnswerKey(playbook.ref, question.ref));\n continue;\n }\n const affectsFamilies = questions.length > 0 ? deriveAffectedFamilies(playbook.ref, catalog) : [];\n const ownFamily = playbook.outputs?.[0]?.family;\n const admittedFamily = (playbook.method?.choreography?.admits ?? [])\n .map((ref) => catalog.find((candidate) => candidate.ref === ref)?.outputs?.[0]?.family)\n .find((family): family is string => typeof family === 'string');\n const subjectFamily = ownFamily ?? admittedFamily ?? affectsFamilies[0];\n questions.forEach((question, position) => {\n const key = creatorInputAnswerKey(playbook.ref, question.ref);\n claimed.add(key);\n /*\n * A question that asks the SAME DECISION as another step's (#1454, gap 4 and its two reviews)\n * is ONE row, at the step that owns it. The owner's row names this step in\n * `sharedWithPlaybookRefs`, so this step's interview shows and answers THAT row (and\n * `recordAnswer` files an answer to the fallback under the owner), which is what keeps one\n * decision from being asked twice or answered two ways. The fallback's own row is listed only\n * when it carries an answer of its own — a legacy answer that wins for this step, and so must\n * be visible and changeable rather than overriding the owner's from nowhere.\n */\n if (question.sameDecisionAs !== undefined && !answersByKey.has(key)) return;\n const options = optionsOf(playbook, question, answersByKey.get(key));\n entries.push({\n playbookRef: playbook.ref,\n questionRef: question.ref,\n question: question.question,\n kind: String(question.kind),\n options: [...(question.options ?? [])],\n optionsState: options.optionsState,\n position,\n answer: options.answer,\n ...interviewQuestionDisposition(question),\n affectsFamilies,\n subjectFamily,\n sharedWithPlaybookRefs: sharedWith.get(key) ?? [],\n });\n });\n /*\n * Each OPENED INSTANCE of this playbook (#1609) asks its questions again, on its own rows: its answer\n * wins for that instance, and a question it leaves unanswered reads the default instance's row. A\n * shared decision is the default instance's and is not repeated per instance.\n */\n for (const activation of Object.values(creatorInputs?.activations ?? {})) {\n if (activation.playbookRef !== playbook.ref) continue;\n questions.forEach((question, position) => {\n if (question.sameDecisionAs !== undefined) return;\n const key = creatorInputAnswerKey(playbook.ref, question.ref, activation.instanceKey);\n claimed.add(key);\n /*\n * A CLOSED instance (#1608) asks nothing any more, so it has no rows. Its answers are still claimed:\n * they answered a real question of a real instance, and reporting them as orphaned would say otherwise.\n */\n if (activation.closure !== undefined) return;\n const options = optionsOf(playbook, question, answersByKey.get(key));\n entries.push({\n playbookRef: playbook.ref,\n instanceKey: activation.instanceKey,\n instancePurpose: activation.purpose,\n questionRef: question.ref,\n question: question.question,\n kind: String(question.kind),\n options: [...(question.options ?? [])],\n optionsState: options.optionsState,\n position,\n answer: options.answer,\n ...interviewQuestionDisposition(question),\n ...(answersByKey.has(key) ? {} : withStepAnswer(answersByKey.get(creatorInputAnswerKey(playbook.ref, question.ref)))),\n affectsFamilies,\n subjectFamily,\n sharedWithPlaybookRefs: [],\n });\n });\n }\n }\n const orphaned: OrphanedDossierAnswer[] = (creatorInputs?.answers ?? [])\n .filter((answer) => !claimed.has(creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey)))\n .map((answer) => ({ answer, reason: knownPlaybookRefs.has(answer.playbookRef) ? 'unknown_question' : 'unknown_playbook' }));\n return { entries, orphaned, interviewDepth: creatorInputs?.interviewDepth };\n }\n\n /**\n * Record one answer. Refuses — by name, as a `PlaybookElicitationError` the dispatch translates to\n * a 400 — an unknown playbook, a question the playbook does not ask, a CHOICE outside its options\n * or an ambiguous CONFIRM. Everything else lands, one dossier write at a time (#2179).\n */\n public async recordAnswer(input: RecordAnswerInput): Promise<RecordAnswerResult> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n // No package: `landAnswer` refuses with its own message, and there is nothing to serialize.\n if (!specificationsPackageRoot) return this.landAnswer(input);\n return serializeDossierWrite(specificationsPackageRoot, () => this.landAnswer(input));\n }\n\n /**\n * {@link recordAnswer} without taking the dossier write queue: the caller must already hold it. The queue\n * is not re-entrant, so a method that files several answers takes it once and lands each through here.\n */\n private async landAnswer(input: RecordAnswerInput): Promise<RecordAnswerResult> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new Error('No specifications package is declared in wildo.saas.config.ts; there is nowhere to land the dossier.');\n }\n const askingPlaybook = this.readParsedPlaybook(input.playbookRef);\n if (!askingPlaybook) {\n throw new PlaybookElicitationError(`No compiled playbook is registered under \"${input.playbookRef}\", so nothing asks \"${input.questionRef}\".`);\n }\n /*\n * An answer to a question that shares its decision with another step is filed under the OWNER\n * (#1454 review): one decision, one answer, whichever step asked it. The owner is resolved from\n * the catalog, never from the caller, and refused like any unknown playbook if it has gone.\n */\n const current = await this.readCreatorInputs();\n /*\n * ...UNLESS the fallback already holds an answer of its own (a legacy answer, listed on its own\n * row). That answer wins for its step, so a change made on that row must change THAT answer —\n * redirected to the owner, the save reported success while the step kept reading the old value\n * (third review, A1).\n */\n const declared = askingPlaybook.method?.elicitation?.questions?.find((question) => question.ref === input.questionRef)?.sameDecisionAs;\n const holdsOwnAnswer = (current?.answers ?? []).some((answer) => answer.playbookRef === input.playbookRef && answer.questionRef === input.questionRef\n && answer.instanceKey === input.instanceKey);\n // A shared decision is the DEFAULT instance's (#1609): an instance's answer stays its own.\n const shared = declared !== undefined && !holdsOwnAnswer && input.instanceKey === undefined ? declared : undefined;\n const playbook = shared ? this.readParsedPlaybook(shared.playbookRef) : askingPlaybook;\n if (!playbook) {\n throw new PlaybookElicitationError(`\"${input.questionRef}\" of \"${input.playbookRef}\" shares its decision with \"${shared?.playbookRef}\", which is no longer a compiled playbook.`);\n }\n const questionRef = shared ? shared.questionRef : input.questionRef;\n /*\n * Computed options are resolved HERE, against the families landed now, so a computed CHOICE is checked\n * against the list the person was shown. A source with nothing to offer is refused with its own reason\n * (e.g. \"no brand-name screening has landed yet\") rather than as an answer outside an empty list.\n */\n const computesOptions = playbook.method?.elicitation?.questions?.find((question) => question.ref === questionRef)?.optionsFrom !== undefined;\n const materialized = computesOptions\n ? materializeElicitationOptions(playbook, await this.readElicitationOptionSources())\n : { playbook, unavailableOptions: new Map<string, string>() };\n const unavailable = materialized.unavailableOptions.get(questionRef);\n if (unavailable !== undefined) throw new PlaybookElicitationError(`\"${questionRef}\" of \"${playbook.ref}\" cannot be answered yet: ${unavailable}`);\n const landed = await landCreatorInputAnswer({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n playbook: materialized.playbook,\n current,\n questionRef,\n ...(input.instanceKey !== undefined ? { instanceKey: input.instanceKey } : {}),\n value: input.value,\n answeredByRef: input.answeredByRef,\n ...(input.standing !== undefined ? { standing: input.standing } : {}),\n ...(input.assumptionRationale !== undefined ? { assumptionRationale: input.assumptionRationale } : {}),\n answeredAt: new Date().toISOString(),\n ...(input.dryRun === true ? { dryRun: true } : {}),\n });\n this.logDebug('Dossier answer recorded', {\n playbookRef: playbook.ref,\n questionRef,\n askedBy: input.playbookRef,\n packageRelativePath: landed.packageRelativePath,\n dryRun: input.dryRun === true,\n });\n return {\n answer: landed.answer,\n packageRelativePath: landed.packageRelativePath,\n /* What the step that ASKED still needs — the owner's answer now counts for it through the shared decision. */\n unansweredQuestionRefs: unansweredElicitationQuestionRefs(askingPlaybook, landed.creatorInputs),\n dryRun: input.dryRun === true,\n };\n }\n\n /**\n * FILE what a step's Run gate collected (#1454 review, LOW): each answer to a question the dossier\n * does NOT answer for that step yet is landed as {@link recordAnswer} lands it (`landAnswer`) — the same validation,\n * the same shared-decision filing, the same provenance — so the next run does not ask again and the\n * dossier stops saying \"still needed\" about a step that ran.\n *\n * Only the STILL-NEEDED ones. The run route's `elicitationAnswers` is also a per-run OVERRIDE of an\n * answer the dossier holds (Step 5: \"request answers override\"); filing an override would silently\n * rewrite a decision the creator made elsewhere, so an answered question's override stays an\n * override. A blank answer is not an answer and is left to the run, which names what is missing.\n *\n * Sequential on purpose: each answer re-reads the dossier it merges into, so two answers filed in\n * parallel would each land a file missing the other.\n *\n * The whole filing holds the dossier write queue ONCE (#2179), the \"still needed\" read included. Taken\n * per answer instead, a person's answer could land between that read and the filing, and the gate's\n * answer would then overwrite a decision the creator had just made: the override this method exists\n * never to file.\n */\n public async fileStillNeededAnswers(input: {\n readonly playbookRef: string;\n /** The instance the run is for (#1609): its pre-answers are filed as THAT instance's answers. */\n readonly instanceKey?: string;\n readonly answers: readonly { readonly questionRef: string; readonly answer: string }[];\n readonly answeredByRef: string;\n }): Promise<readonly string[]> {\n const playbook = this.readParsedPlaybook(input.playbookRef);\n if (!playbook) return [];\n const file = async (): Promise<readonly string[]> => {\n const stillNeeded = new Set(unansweredElicitationQuestionRefs(playbook, await this.readCreatorInputs(), input.instanceKey));\n const filed: string[] = [];\n for (const answer of input.answers) {\n if (!stillNeeded.has(answer.questionRef) || answer.answer.trim().length === 0) continue;\n await this.landAnswer({\n playbookRef: input.playbookRef,\n questionRef: answer.questionRef,\n value: answer.answer,\n answeredByRef: input.answeredByRef,\n ...(input.instanceKey !== undefined ? { instanceKey: input.instanceKey } : {}),\n });\n filed.push(answer.questionRef);\n }\n return filed;\n };\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n return specificationsPackageRoot ? serializeDossierWrite(specificationsPackageRoot, file) : file();\n }\n\n /** The landed families a computed interview option is resolved from, read through the companion-exports aggregate. */\n private async readElicitationOptionSources(): Promise<ElicitationOptionsSourceReads> {\n try {\n return createCompanionExportsFamilyReader((await loadSpecificationsCompanionExports(this.companionContext)) as unknown as Readonly<Record<string, unknown>>);\n } catch (error) {\n /*\n * An aggregate that cannot be loaded reads as NOTHING LANDED, like every other family this service reads:\n * a computed question then offers no options and cannot be answered (it is refused with its reason), and\n * the rest of the dossier still lists. Throwing here would take the whole dossier down over one question.\n */\n this.logDebug('The specifications aggregate could not be loaded; computed interview options read as unavailable', { error: String(error) });\n return createCompanionExportsFamilyReader(undefined);\n }\n }\n\n /**\n * Record how deep this application's interviews go (#2129). A working edit in the dossier, like an answer,\n * and queued like one (#2179).\n */\n public async recordInterviewDepth(interviewDepth: ApplicationInterviewDepth): Promise<{ readonly interviewDepth: ApplicationInterviewDepth; readonly packageRelativePath: string }> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new Error('No specifications package is declared in wildo.saas.config.ts; there is nowhere to land the dossier.');\n }\n const landed = await serializeDossierWrite(specificationsPackageRoot, async () => landInterviewDepth({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n current: await this.readCreatorInputs(),\n interviewDepth,\n }));\n this.logDebug('Interview depth recorded', { interviewDepth, packageRelativePath: landed.packageRelativePath });\n return { interviewDepth, packageRelativePath: landed.packageRelativePath };\n }\n\n /**\n * One playbook as an answer to it is checked: parsed from the compiled catalog, with its COMPUTED options\n * resolved against what has landed now — the list a person is shown and a proposal must choose from\n * (#2129). `undefined` when the catalog holds no such playbook.\n */\n public async readAnswerablePlaybook(playbookRef: string): Promise<MetaWorkflowPlaybook | undefined> {\n const playbook = this.readParsedPlaybook(playbookRef);\n if (!playbook) return undefined;\n const computesOptions = (playbook.method?.elicitation?.questions ?? []).some((question) => question.optionsFrom !== undefined);\n return computesOptions ? materializeElicitationOptions(playbook, await this.readElicitationOptionSources()).playbook : playbook;\n }\n\n /**\n * Each interview question's depth and whether it may be proposed (#2129), keyed `<playbookRef>#<questionRef>`\n * — what the console queue tells a surface so it can run a simple interview. Computed options are resolved\n * first, so a computed CHOICE with nothing to offer yet reads as not proposable.\n */\n public async readInterviewQuestionDispositions(): Promise<ReadonlyMap<string, InterviewQuestionDisposition>> {\n const dispositions = new Map<string, InterviewQuestionDisposition>();\n for (const listed of this.listInterviewPlaybooks()) {\n const playbook = (await this.readAnswerablePlaybook(listed.ref)) ?? listed;\n for (const question of playbook.method?.elicitation?.questions ?? []) {\n dispositions.set(`${playbook.ref}#${question.ref}`, interviewQuestionDisposition(question));\n }\n }\n return dispositions;\n }\n\n /** Every compiled playbook that declares an interview — the question texts a proposal reads the dossier through. */\n public listInterviewPlaybooks(): readonly MetaWorkflowPlaybook[] {\n return listFrameworkKnowledgePlaybooks()\n .map((entry) => this.readParsedPlaybook(entry.ref))\n .filter((playbook): playbook is MetaWorkflowPlaybook => (playbook?.method?.elicitation?.questions?.length ?? 0) > 0);\n }\n\n /** A catalog entry that does not satisfy its own contract is skipped, never fatal — one malformed playbook must not hide the rest. */\n private readParsedPlaybook(playbookRef: string): MetaWorkflowPlaybook | undefined {\n const hydrated = getFrameworkKnowledgePlaybook(playbookRef);\n if (!hydrated) return undefined;\n const parsed = MetaWorkflowPlaybookSchema.safeParse(hydrated.playbook);\n return parsed.success ? parsed.data : undefined;\n }\n}\n\n/** Spread onto an instance's row: the step's own answer, when it has one. */\nfunction withStepAnswer(answer: ApplicationCreatorInputAnswer | undefined): { readonly answerFromTheStep?: ApplicationCreatorInputAnswer } {\n return answer === undefined ? {} : { answerFromTheStep: answer };\n}\n"]}
1
+ {"version":3,"file":"dossier.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/dossier.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,W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esContent":["import { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks } from '@wildo-ai/framework-knowledge';\nimport {\n ApplicationAuthoredDocumentFactSpecificationSchema,\n ApplicationCreatorInputsSchema,\n ApplicationDocumentFactSpecificationSchema,\n ApplicationSpecificationFamily,\n ApplicationSpecificationFamilySemanticSchemaRef,\n MetaWorkflowPlaybookSchema,\n creatorInputAnswerKey,\n type ApplicationCreatorInputAnswerStanding,\n type ApplicationAuthoredDocumentFactSpecification,\n type ApplicationComplianceDocumentCandidateSet,\n type ApplicationCreatorInputAnswer,\n type ApplicationCreatorInputs,\n type ApplicationDocumentFactSpecification,\n type ComplianceDocumentCandidate,\n type MetaWorkflowPlaybook,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport {\n createInitialAssuranceDocumentAuthorityCatalog,\n selectAssuranceDocumentBlueprintForDocumentRef,\n type AssuranceDocumentPublicationVariant,\n} from '@wildo-ai/saas-specifications/assurance';\nimport type { GovernedDocumentPublicDocument, GovernedDocumentRelease } from '@wildo-ai/saas-models';\nimport { WorkbenchDossierEntryOptionsState } from '@wildo-ai/platform-core-shared';\nimport { isElicitationQuestionAskedInSimpleInterview, isElicitationQuestionProposable, isRegulatedDomainElicitationQuestion, type ApplicationInterviewDepth } from '@wildo-ai/saas-models/meta-workflows';\nimport {\n PlaybookElicitationError,\n createCompanionExportsFamilyReader,\n deriveAffectedFamilies,\n materializeElicitationOptions,\n type ElicitationOptionsSourceReads,\n landCreatorInputAnswer,\n landInterviewDepth,\n resolveApplicationLineScope,\n resolvePlaybookOutputLandingTarget,\n unansweredElicitationQuestionRefs,\n} from '@wildo-ai/application-creation-runtime';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport { importLandedTypeScriptModule } from './landed-module-import.companion';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport type { InterviewQuestionDisposition } from '../../core/introspection/resources/creation-console-projection.companion';\nimport { selectCurrentGovernedDocumentTexts } from './governed-document-texts.companion';\nimport { serializeDossierWrite } from './dossier-write-queue.companion.utils';\nimport { readCompiledApplicationLineCatalog } from '../models/application-line-catalog.models';\n\n/**\n * THE DOSSIER's companion service (#1454, Steps 5–6): what the creator was asked — by a playbook\n * interview or by a governed document — what they said, and the one door for saying more.\n *\n * ## Two sources, one join\n *\n * The QUESTIONS are the compiled playbook catalog's — every `method.elicitation.questions` entry of\n * every playbook that declares one. The ANSWERS are the `creator-inputs` family, read through the\n * application's companion-exports aggregate like every other landed family. Neither alone is what\n * a person reads, so {@link listDossierEntries} is the join: one entry per declared question,\n * carrying the answer when there is one and `STILL_NEEDED` when there is not.\n *\n * ## One writer, and it lands a family\n *\n * An answer enters the dossier by two doors only, and both land it through the same private\n * `landAnswer`: {@link recordAnswer}, where the resource operation and the assistant's `record_answer`\n * tool both arrive, and {@link fileStillNeededAnswers}, for what a run's gate collected. It\n * validates the answer against the question's kind with the SAME function a run applies when it\n * reads the answer back, merges it into the dossier by key, and lands the family file. It does not commit: a landed dossier is a\n * working edit until a human commits it (`.claude/rules/one-source-of-truth.md`, rules 2 and 3). It reaches history with the\n * first accepted run whose commit imports it, which carries it, or on its own through `wildo creation accept --dossier`\n * (`AcceptedChangeCommitCompanionService`, #2332).\n *\n * Every write here is a read-modify-write of that one file, so every write goes through\n * {@link serializeDossierWrite}: two overlapping saves would otherwise both build on the same read, and\n * the second would erase the first one's change (#2179).\n *\n * ## An answer to a question no playbook asks any more is REPORTED, not dropped\n *\n * The catalog moves. A committed answer whose question was renamed or retired stays in the file\n * and is listed as ORPHANED here, so the person who gave it can see it went nowhere — deleting it\n * silently would be a regeneration destroying a human decision, the defect the two document-facts\n * families exist to prevent.\n */\n\n/** The constant prefix every landed family uses — neutral by contract (#65), never the application's name. */\nconst LANDED_CONSTANT_PREFIX = 'application';\n\n/** One question of the catalog, with the creator's answer when there is one. */\nexport interface DossierEntry {\n readonly playbookRef: string;\n /** The playbook INSTANCE this row asks for (#1609); absent on the default instance's rows. */\n readonly instanceKey?: string;\n /** What that instance was opened FOR, as its activation records it; absent on the default instance's rows. */\n readonly instancePurpose?: string;\n readonly questionRef: string;\n readonly question: string;\n readonly kind: string;\n readonly options: readonly string[];\n /** What each COMPUTED option stands for (#2337) — the resolved `optionDetails`; empty for authored options. */\n readonly optionDetails: readonly { readonly option: string; readonly detail: string }[];\n /**\n * Whether the options can be offered now — `NOT_YET_AVAILABLE` for a computed CHOICE whose source has not\n * landed or offers nothing, `ANSWER_NO_LONGER_OFFERED` when the recorded answer is not among the computed\n * options any more (it is then not carried as `answer`, so the question reads as still needed).\n */\n readonly optionsState: WorkbenchDossierEntryOptionsState;\n readonly position: number;\n readonly answer: ApplicationCreatorInputAnswer | undefined;\n /**\n * On an instance's row with no answer of its own: the step's own answer, which the instance runs on\n * until it is given one (#1609). Absent on the default instance's rows, and whenever `answer` is set.\n */\n readonly answerFromTheStep?: ApplicationCreatorInputAnswer;\n /**\n * Every family this answer feeds — what the asking playbook produces and everything downstream of\n * it — so \"changing this affects: …\" is on the row before anyone saves (#1454, Step 8). Derived\n * from the catalog's declared inputs and outputs; empty for a playbook that produces nothing.\n */\n readonly affectsFamilies: readonly string[];\n /**\n * The family whose SUBJECT this question belongs to (#1454, gap 4): what the asking step itself\n * produces; for a composite that produces nothing directly, what the steps it admits produce; and\n * only then the first family its answer reaches. The last is a downstream family — a compliance\n * interview reaches the vision by way of the build — so it is the fallback, never the first choice.\n */\n readonly subjectFamily: string | undefined;\n /**\n * The OTHER steps that READ this decision through a `sameDecisionAs` fallback (#1454 review) — every\n * such step without an answer of its own. The decision is ONE row, at its owner; those steps'\n * interviews show and answer this row, so a creator is asked once. A fallback that holds its own\n * (legacy) answer reads that answer instead, and is listed on its own row, not here.\n */\n readonly sharedWithPlaybookRefs: readonly string[];\n /** Whether a SIMPLE interview asks it of the person (#2129); otherwise it is proposed (reviewed, or assumed unattended). */\n readonly askedInSimpleInterview: boolean;\n /** Whether an answer may be proposed when the person does not know (#2129). */\n readonly proposable: boolean;\n /** It concerns a regulated domain (#2129): a proposal is named to the person before it is kept. */\n readonly regulatedDomain: boolean;\n}\n\n/**\n * One question's interview disposition (#2129) — what a surface needs to run a simple interview. Read\n * through the shared predicates, never re-derived, so the dossier page, the workbench interview and the\n * console queue select the same questions.\n */\nfunction interviewQuestionDisposition(question: NonNullable<NonNullable<MetaWorkflowPlaybook['method']>['elicitation']>['questions'][number]): InterviewQuestionDisposition {\n return {\n askedInSimpleInterview: isElicitationQuestionAskedInSimpleInterview(question),\n proposable: isElicitationQuestionProposable(question),\n regulatedDomain: isRegulatedDomainElicitationQuestion(question),\n };\n}\n\n/** A committed answer whose question the catalog no longer declares. */\nexport interface OrphanedDossierAnswer {\n readonly answer: ApplicationCreatorInputAnswer;\n /** `unknown_playbook` when the playbook itself is gone, `unknown_question` when only the question is. */\n readonly reason: 'unknown_playbook' | 'unknown_question';\n}\n\nexport interface DossierListing {\n readonly entries: readonly DossierEntry[];\n readonly orphaned: readonly OrphanedDossierAnswer[];\n /** How deep this application's interviews go (#2129); undefined until the person chooses. */\n readonly interviewDepth: ApplicationInterviewDepth | undefined;\n}\n\n/**\n * One answer to record. Named, rather than derived from the private `landAnswer`'s parameter, so the public\n * {@link DossierCompanionService.recordAnswer} keeps its type in emitted declarations (#2179 review).\n */\nexport interface RecordAnswerInput {\n readonly playbookRef: string;\n /** The INSTANCE the answer is for (#1609); it must be opened, and a shared decision is never redirected for it. */\n readonly instanceKey?: string;\n readonly questionRef: string;\n readonly value: string;\n readonly answeredByRef: string;\n /** ASSUMED for a proposed answer the person let stand or an unattended round recorded (#2129); refused for a question only they may answer. */\n readonly standing?: ApplicationCreatorInputAnswerStanding;\n /** The proposer's reason, stored with an ASSUMED answer. */\n readonly assumptionRationale?: string;\n readonly dryRun?: boolean;\n}\n\nexport interface RecordAnswerResult {\n readonly answer: ApplicationCreatorInputAnswer;\n readonly packageRelativePath: string;\n /** The asking playbook's questions still unanswered after this one — empty means it can run. */\n readonly unansweredQuestionRefs: readonly string[];\n readonly dryRun: boolean;\n}\n\n@injectable()\nexport class DossierCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('DossierCompanionService');\n }\n\n /**\n * The dossier as LANDED — the family read through the companion-exports aggregate, re-parsed\n * because a person may have edited the file by hand. A file that does not parse is reported as\n * absent with a debug line rather than thrown: the dossier being unreadable must not take the\n * eligibility board down with it, and the artifact list reports the family as invalid on its own.\n */\n public async readCreatorInputs(): Promise<ApplicationCreatorInputs | undefined> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const raw = (exports as { creatorInputs?: unknown }).creatorInputs;\n if (raw === undefined || raw === null) return undefined;\n const parsed = ApplicationCreatorInputsSchema.safeParse(raw);\n if (!parsed.success) {\n this.logDebug('The landed creator-inputs family does not satisfy its schema; reading the dossier as empty', {\n issue: parsed.error.issues[0]?.message,\n });\n return undefined;\n }\n return parsed.data;\n }\n\n /**\n * The AUTHORED governed-document facts as landed (#1454, Step 6) — the governance half of the\n * dossier, read through the same aggregate as the interview half and re-parsed for the same\n * reason. What a governance landing merges INTO, and what decides a question's standing.\n */\n public async readAuthoredDocumentFacts(): Promise<ApplicationAuthoredDocumentFactSpecification | undefined> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const raw = (exports as { authoredDocumentFactSpecification?: unknown }).authoredDocumentFactSpecification;\n if (raw === undefined || raw === null) return undefined;\n const parsed = ApplicationAuthoredDocumentFactSpecificationSchema.safeParse(raw);\n if (!parsed.success) {\n this.logDebug('The landed document-facts-authored family does not satisfy its schema; reading the governance facts as empty', {\n issue: parsed.error.issues[0]?.message,\n });\n return undefined;\n }\n return parsed.data;\n }\n\n /**\n * The governed-document facts the PRODUCT established, as landed by the document-facts step\n * (#1454, gap 4) — what the dossier shows as \"read from the product\". Re-parsed like its siblings:\n * a landed file that no longer satisfies its schema reads as nothing read yet, never as an answer.\n */\n public async readDerivedDocumentFacts(): Promise<ApplicationDocumentFactSpecification | undefined> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const raw = (exports as { documentFactSpecification?: unknown }).documentFactSpecification;\n if (raw === undefined || raw === null) return undefined;\n const parsed = ApplicationDocumentFactSpecificationSchema.safeParse(raw);\n if (!parsed.success) {\n this.logDebug('The landed document-facts family does not satisfy its schema; reading the product facts as unread', {\n issue: parsed.error.issues[0]?.message,\n });\n return undefined;\n }\n return parsed.data;\n }\n\n /**\n * The governed documents the creator ASKED FOR — those with a landed draft — as definition refs.\n *\n * Read off the landed candidate-set FILE the way the run service reads it (the family has no\n * companion-exports slot: a draft is not accepted truth), and joined to definitions through the\n * catalog's own `document:` → `document-definition:` rule. An open fact of a drafted document is\n * asked of the person now; one of an undrafted document is merely not told yet.\n */\n public async listDraftedGovernedDocumentDefinitionRefs(): Promise<ReadonlySet<string>> {\n let drafts: readonly ComplianceDocumentCandidate[];\n try {\n drafts = await this.readLandedGovernedDocumentDrafts();\n } catch (error) {\n // An unreadable draft set is the artifact list's finding; here it reads as \"nothing drafted\", never as a throw on every dossier read.\n this.logDebug('The landed draft set could not be read; treating no document as drafted', { error: String(error) });\n return new Set();\n }\n const catalog = createInitialAssuranceDocumentAuthorityCatalog();\n const refs = new Set<string>();\n for (const candidate of drafts) {\n const selection = selectAssuranceDocumentBlueprintForDocumentRef(catalog, candidate.documentRef);\n if (selection) refs.add(selection.definition.identity.definitionRef);\n }\n return refs;\n }\n\n /**\n * Every governed document's CURRENT text, keyed by definition ref (#1645): its release, else its\n * latest draft — see {@link selectCurrentGovernedDocumentTexts}. What the workbench prints when the\n * creator asks for all their documents as one PDF.\n *\n * Unlike {@link listDraftedGovernedDocumentDefinitionRefs}, an unreadable draft set THROWS here. That\n * method answers a question a dossier can survive not knowing; this one produces a file a person hands\n * to a reviewer, and printing every document as \"not composed yet\" because the drafts could not be\n * read would be a false document.\n */\n public async readCurrentGovernedDocumentTexts(at: Date): Promise<ReadonlyMap<string, GovernedDocumentPublicDocument>> {\n const exports = (await loadSpecificationsCompanionExports(this.companionContext)) as {\n documentReleaseSet?: { releases?: readonly GovernedDocumentRelease[] };\n documentPublicationSpecification?: { variants?: readonly AssuranceDocumentPublicationVariant[] };\n } | undefined;\n const catalog = createInitialAssuranceDocumentAuthorityCatalog();\n return selectCurrentGovernedDocumentTexts({\n releases: exports?.documentReleaseSet?.releases ?? [],\n drafts: await this.readLandedGovernedDocumentDrafts(),\n definitionRefOfDraft: (draft) => selectAssuranceDocumentBlueprintForDocumentRef(catalog, draft.documentRef)?.definition.identity.definitionRef,\n publishedVariants: exports?.documentPublicationSpecification?.variants ?? [],\n at: at.toISOString(),\n });\n }\n\n /**\n * The drafts in the landed candidate-set FILE, read the way the run service reads it (the family has\n * no companion-exports slot: a draft is not accepted truth). No file is no drafts; a file that cannot\n * be loaded THROWS — each caller decides what not knowing means for it.\n */\n private async readLandedGovernedDocumentDrafts(): Promise<readonly ComplianceDocumentCandidate[]> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (specificationsPackageRoot === undefined) return [];\n const target = resolvePlaybookOutputLandingTarget({\n family: ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE_SET,\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.COMPLIANCE_DOCUMENT_CANDIDATE_SET,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n });\n const modulePath = join(specificationsPackageRoot, target.packageRelativePath);\n if (!existsSync(modulePath)) return [];\n const loaded = await importLandedTypeScriptModule(modulePath, import.meta.url);\n const set = loaded[target.exportedConstantName] as ApplicationComplianceDocumentCandidateSet | undefined;\n return set?.candidates ?? [];\n }\n\n /** Every declared interview question across the catalog, joined with the dossier's answers. */\n public async listDossierEntries(): Promise<DossierListing> {\n const creatorInputs = await this.readCreatorInputs();\n const answersByKey = new Map<string, ApplicationCreatorInputAnswer>();\n // Keyed WITH the instance (#1609): an instance's answer never takes the default instance's place.\n for (const answer of creatorInputs?.answers ?? []) answersByKey.set(creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey), answer);\n\n const entries: DossierEntry[] = [];\n const claimed = new Set<string>();\n const knownPlaybookRefs = new Set<string>();\n /* The whole parsed catalog first: what an answer affects is a question about every OTHER playbook. */\n /*\n * COMPUTED options resolved once for the whole listing (the brand-name choice is computed from the landed\n * screening): a row shows exactly the options its answer will be checked against. A question whose source\n * has not landed lists no options — its playbook is not eligible yet, so it is not asked now either.\n */\n const optionReads = await this.readElicitationOptionSources();\n const unavailableOptionsByPlaybook = new Map<string, ReadonlyMap<string, string>>();\n const catalog = listFrameworkKnowledgePlaybooks()\n .map((summary) => this.readParsedPlaybook(summary.ref))\n .filter((playbook): playbook is MetaWorkflowPlaybook => playbook !== undefined)\n .map((playbook) => {\n const materialized = materializeElicitationOptions(playbook, optionReads);\n unavailableOptionsByPlaybook.set(playbook.ref, materialized.unavailableOptions);\n return materialized.playbook;\n });\n /*\n * The state of a question's options, and the answer as it may still be READ: an answer to a computed\n * CHOICE that is no longer among its options would be refused by the run, so it is not carried as the\n * answer — the row reads as still needed and says why.\n */\n const optionsOf = (playbook: MetaWorkflowPlaybook, question: { readonly ref: string; readonly optionsFrom?: unknown; readonly options?: readonly string[] }, answer: ApplicationCreatorInputAnswer | undefined): { readonly optionsState: WorkbenchDossierEntryOptionsState; readonly answer: ApplicationCreatorInputAnswer | undefined } => {\n if (question.optionsFrom === undefined) return { optionsState: WorkbenchDossierEntryOptionsState.AVAILABLE, answer };\n if (unavailableOptionsByPlaybook.get(playbook.ref)?.has(question.ref)) return { optionsState: WorkbenchDossierEntryOptionsState.NOT_YET_AVAILABLE, answer };\n if (answer !== undefined && !(question.options ?? []).includes(answer.value)) return { optionsState: WorkbenchDossierEntryOptionsState.ANSWER_NO_LONGER_OFFERED, answer: undefined };\n return { optionsState: WorkbenchDossierEntryOptionsState.AVAILABLE, answer };\n };\n /*\n * Which fallback steps READ each owner's decision — the owner row carries them. A fallback holding\n * an answer of its own reads THAT answer (`readAnswersForPlaybookQuestions`: an own answer wins),\n * so it is not listed here: its interview shows its own row alone, and the owner's row neither\n * appears in that interview nor dates that step's result (#1454 review, LOW).\n */\n const sharedWith = new Map<string, string[]>();\n for (const playbook of catalog) {\n for (const question of playbook.method?.elicitation?.questions ?? []) {\n if (!question.sameDecisionAs) continue;\n if (answersByKey.has(creatorInputAnswerKey(playbook.ref, question.ref))) continue;\n const ownerKey = creatorInputAnswerKey(question.sameDecisionAs.playbookRef, question.sameDecisionAs.questionRef);\n sharedWith.set(ownerKey, [...(sharedWith.get(ownerKey) ?? []), playbook.ref]);\n }\n }\n /*\n * Only the questions of the playbooks this application's LINE runs (#1605): an internal tool is never\n * asked for its pricing tiers or its brand. An answer to a question outside the line is KEPT, neither\n * listed nor reported orphaned: it records a previous line's decision and returns if the line does.\n */\n const lineScope = resolveApplicationLineScope({ catalog: readCompiledApplicationLineCatalog(), creatorInputs });\n for (const playbook of catalog) {\n knownPlaybookRefs.add(playbook.ref);\n const questions = playbook.method?.elicitation?.questions ?? [];\n if (!lineScope.admittedPlaybookRefs.has(playbook.ref)) {\n for (const question of questions) claimed.add(creatorInputAnswerKey(playbook.ref, question.ref));\n continue;\n }\n const affectsFamilies = questions.length > 0 ? deriveAffectedFamilies(playbook.ref, catalog) : [];\n const ownFamily = playbook.outputs?.[0]?.family;\n const admittedFamily = (playbook.method?.choreography?.admits ?? [])\n .map((ref) => catalog.find((candidate) => candidate.ref === ref)?.outputs?.[0]?.family)\n .find((family): family is string => typeof family === 'string');\n const subjectFamily = ownFamily ?? admittedFamily ?? affectsFamilies[0];\n questions.forEach((question, position) => {\n const key = creatorInputAnswerKey(playbook.ref, question.ref);\n claimed.add(key);\n /*\n * A question that asks the SAME DECISION as another step's (#1454, gap 4 and its two reviews)\n * is ONE row, at the step that owns it. The owner's row names this step in\n * `sharedWithPlaybookRefs`, so this step's interview shows and answers THAT row (and\n * `recordAnswer` files an answer to the fallback under the owner), which is what keeps one\n * decision from being asked twice or answered two ways. The fallback's own row is listed only\n * when it carries an answer of its own — a legacy answer that wins for this step, and so must\n * be visible and changeable rather than overriding the owner's from nowhere.\n */\n if (question.sameDecisionAs !== undefined && !answersByKey.has(key)) return;\n const options = optionsOf(playbook, question, answersByKey.get(key));\n entries.push({\n playbookRef: playbook.ref,\n questionRef: question.ref,\n question: question.question,\n kind: String(question.kind),\n options: [...(question.options ?? [])],\n optionDetails: (question.optionDetails ?? []).map((entry) => ({ ...entry })),\n optionsState: options.optionsState,\n position,\n answer: options.answer,\n ...interviewQuestionDisposition(question),\n affectsFamilies,\n subjectFamily,\n sharedWithPlaybookRefs: sharedWith.get(key) ?? [],\n });\n });\n /*\n * Each OPENED INSTANCE of this playbook (#1609) asks its questions again, on its own rows: its answer\n * wins for that instance, and a question it leaves unanswered reads the default instance's row. A\n * shared decision is the default instance's and is not repeated per instance.\n */\n for (const activation of Object.values(creatorInputs?.activations ?? {})) {\n if (activation.playbookRef !== playbook.ref) continue;\n questions.forEach((question, position) => {\n if (question.sameDecisionAs !== undefined) return;\n const key = creatorInputAnswerKey(playbook.ref, question.ref, activation.instanceKey);\n claimed.add(key);\n /*\n * A CLOSED instance (#1608) asks nothing any more, so it has no rows. Its answers are still claimed:\n * they answered a real question of a real instance, and reporting them as orphaned would say otherwise.\n */\n if (activation.closure !== undefined) return;\n const options = optionsOf(playbook, question, answersByKey.get(key));\n entries.push({\n playbookRef: playbook.ref,\n instanceKey: activation.instanceKey,\n instancePurpose: activation.purpose,\n questionRef: question.ref,\n question: question.question,\n kind: String(question.kind),\n options: [...(question.options ?? [])],\n optionDetails: (question.optionDetails ?? []).map((entry) => ({ ...entry })),\n optionsState: options.optionsState,\n position,\n answer: options.answer,\n ...interviewQuestionDisposition(question),\n ...(answersByKey.has(key) ? {} : withStepAnswer(answersByKey.get(creatorInputAnswerKey(playbook.ref, question.ref)))),\n affectsFamilies,\n subjectFamily,\n sharedWithPlaybookRefs: [],\n });\n });\n }\n }\n const orphaned: OrphanedDossierAnswer[] = (creatorInputs?.answers ?? [])\n .filter((answer) => !claimed.has(creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey)))\n .map((answer) => ({ answer, reason: knownPlaybookRefs.has(answer.playbookRef) ? 'unknown_question' : 'unknown_playbook' }));\n return { entries, orphaned, interviewDepth: creatorInputs?.interviewDepth };\n }\n\n /**\n * Record one answer. Refuses — by name, as a `PlaybookElicitationError` the dispatch translates to\n * a 400 — an unknown playbook, a question the playbook does not ask, a CHOICE outside its options\n * or an ambiguous CONFIRM. Everything else lands, one dossier write at a time (#2179).\n */\n public async recordAnswer(input: RecordAnswerInput): Promise<RecordAnswerResult> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n // No package: `landAnswer` refuses with its own message, and there is nothing to serialize.\n if (!specificationsPackageRoot) return this.landAnswer(input);\n return serializeDossierWrite(specificationsPackageRoot, () => this.landAnswer(input));\n }\n\n /**\n * {@link recordAnswer} without taking the dossier write queue: the caller must already hold it. The queue\n * is not re-entrant, so a method that files several answers takes it once and lands each through here.\n */\n private async landAnswer(input: RecordAnswerInput): Promise<RecordAnswerResult> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new Error('No specifications package is declared in wildo.saas.config.ts; there is nowhere to land the dossier.');\n }\n const askingPlaybook = this.readParsedPlaybook(input.playbookRef);\n if (!askingPlaybook) {\n throw new PlaybookElicitationError(`No compiled playbook is registered under \"${input.playbookRef}\", so nothing asks \"${input.questionRef}\".`);\n }\n /*\n * An answer to a question that shares its decision with another step is filed under the OWNER\n * (#1454 review): one decision, one answer, whichever step asked it. The owner is resolved from\n * the catalog, never from the caller, and refused like any unknown playbook if it has gone.\n */\n const current = await this.readCreatorInputs();\n /*\n * ...UNLESS the fallback already holds an answer of its own (a legacy answer, listed on its own\n * row). That answer wins for its step, so a change made on that row must change THAT answer —\n * redirected to the owner, the save reported success while the step kept reading the old value\n * (third review, A1).\n */\n const declared = askingPlaybook.method?.elicitation?.questions?.find((question) => question.ref === input.questionRef)?.sameDecisionAs;\n const holdsOwnAnswer = (current?.answers ?? []).some((answer) => answer.playbookRef === input.playbookRef && answer.questionRef === input.questionRef\n && answer.instanceKey === input.instanceKey);\n // A shared decision is the DEFAULT instance's (#1609): an instance's answer stays its own.\n const shared = declared !== undefined && !holdsOwnAnswer && input.instanceKey === undefined ? declared : undefined;\n const playbook = shared ? this.readParsedPlaybook(shared.playbookRef) : askingPlaybook;\n if (!playbook) {\n throw new PlaybookElicitationError(`\"${input.questionRef}\" of \"${input.playbookRef}\" shares its decision with \"${shared?.playbookRef}\", which is no longer a compiled playbook.`);\n }\n const questionRef = shared ? shared.questionRef : input.questionRef;\n /*\n * Computed options are resolved HERE, against the families landed now, so a computed CHOICE is checked\n * against the list the person was shown. A source with nothing to offer is refused with its own reason\n * (e.g. \"no brand-name screening has landed yet\") rather than as an answer outside an empty list.\n */\n const computesOptions = playbook.method?.elicitation?.questions?.find((question) => question.ref === questionRef)?.optionsFrom !== undefined;\n const materialized = computesOptions\n ? materializeElicitationOptions(playbook, await this.readElicitationOptionSources())\n : { playbook, unavailableOptions: new Map<string, string>() };\n const unavailable = materialized.unavailableOptions.get(questionRef);\n if (unavailable !== undefined) throw new PlaybookElicitationError(`\"${questionRef}\" of \"${playbook.ref}\" cannot be answered yet: ${unavailable}`);\n const landed = await landCreatorInputAnswer({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n playbook: materialized.playbook,\n current,\n questionRef,\n ...(input.instanceKey !== undefined ? { instanceKey: input.instanceKey } : {}),\n value: input.value,\n answeredByRef: input.answeredByRef,\n ...(input.standing !== undefined ? { standing: input.standing } : {}),\n ...(input.assumptionRationale !== undefined ? { assumptionRationale: input.assumptionRationale } : {}),\n answeredAt: new Date().toISOString(),\n ...(input.dryRun === true ? { dryRun: true } : {}),\n });\n this.logDebug('Dossier answer recorded', {\n playbookRef: playbook.ref,\n questionRef,\n askedBy: input.playbookRef,\n packageRelativePath: landed.packageRelativePath,\n dryRun: input.dryRun === true,\n });\n return {\n answer: landed.answer,\n packageRelativePath: landed.packageRelativePath,\n /* What the step that ASKED still needs — the owner's answer now counts for it through the shared decision. */\n unansweredQuestionRefs: unansweredElicitationQuestionRefs(askingPlaybook, landed.creatorInputs),\n dryRun: input.dryRun === true,\n };\n }\n\n /**\n * FILE what a step's Run gate collected (#1454 review, LOW): each answer to a question the dossier\n * does NOT answer for that step yet is landed as {@link recordAnswer} lands it (`landAnswer`) — the same validation,\n * the same shared-decision filing, the same provenance — so the next run does not ask again and the\n * dossier stops saying \"still needed\" about a step that ran.\n *\n * Only the STILL-NEEDED ones. The run route's `elicitationAnswers` is also a per-run OVERRIDE of an\n * answer the dossier holds (Step 5: \"request answers override\"); filing an override would silently\n * rewrite a decision the creator made elsewhere, so an answered question's override stays an\n * override. A blank answer is not an answer and is left to the run, which names what is missing.\n *\n * Sequential on purpose: each answer re-reads the dossier it merges into, so two answers filed in\n * parallel would each land a file missing the other.\n *\n * The whole filing holds the dossier write queue ONCE (#2179), the \"still needed\" read included. Taken\n * per answer instead, a person's answer could land between that read and the filing, and the gate's\n * answer would then overwrite a decision the creator had just made: the override this method exists\n * never to file.\n */\n public async fileStillNeededAnswers(input: {\n readonly playbookRef: string;\n /** The instance the run is for (#1609): its pre-answers are filed as THAT instance's answers. */\n readonly instanceKey?: string;\n readonly answers: readonly { readonly questionRef: string; readonly answer: string }[];\n readonly answeredByRef: string;\n }): Promise<readonly string[]> {\n const playbook = this.readParsedPlaybook(input.playbookRef);\n if (!playbook) return [];\n const file = async (): Promise<readonly string[]> => {\n const stillNeeded = new Set(unansweredElicitationQuestionRefs(playbook, await this.readCreatorInputs(), input.instanceKey));\n const filed: string[] = [];\n for (const answer of input.answers) {\n if (!stillNeeded.has(answer.questionRef) || answer.answer.trim().length === 0) continue;\n await this.landAnswer({\n playbookRef: input.playbookRef,\n questionRef: answer.questionRef,\n value: answer.answer,\n answeredByRef: input.answeredByRef,\n ...(input.instanceKey !== undefined ? { instanceKey: input.instanceKey } : {}),\n });\n filed.push(answer.questionRef);\n }\n return filed;\n };\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n return specificationsPackageRoot ? serializeDossierWrite(specificationsPackageRoot, file) : file();\n }\n\n /** The landed families a computed interview option is resolved from, read through the companion-exports aggregate. */\n private async readElicitationOptionSources(): Promise<ElicitationOptionsSourceReads> {\n try {\n return createCompanionExportsFamilyReader((await loadSpecificationsCompanionExports(this.companionContext)) as unknown as Readonly<Record<string, unknown>>);\n } catch (error) {\n /*\n * An aggregate that cannot be loaded reads as NOTHING LANDED, like every other family this service reads:\n * a computed question then offers no options and cannot be answered (it is refused with its reason), and\n * the rest of the dossier still lists. Throwing here would take the whole dossier down over one question.\n */\n this.logDebug('The specifications aggregate could not be loaded; computed interview options read as unavailable', { error: String(error) });\n return createCompanionExportsFamilyReader(undefined);\n }\n }\n\n /**\n * Record how deep this application's interviews go (#2129). A working edit in the dossier, like an answer,\n * and queued like one (#2179).\n */\n public async recordInterviewDepth(interviewDepth: ApplicationInterviewDepth): Promise<{ readonly interviewDepth: ApplicationInterviewDepth; readonly packageRelativePath: string }> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new Error('No specifications package is declared in wildo.saas.config.ts; there is nowhere to land the dossier.');\n }\n const landed = await serializeDossierWrite(specificationsPackageRoot, async () => landInterviewDepth({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n current: await this.readCreatorInputs(),\n interviewDepth,\n }));\n this.logDebug('Interview depth recorded', { interviewDepth, packageRelativePath: landed.packageRelativePath });\n return { interviewDepth, packageRelativePath: landed.packageRelativePath };\n }\n\n /**\n * One playbook as an answer to it is checked: parsed from the compiled catalog, with its COMPUTED options\n * resolved against what has landed now — the list a person is shown and a proposal must choose from\n * (#2129). `undefined` when the catalog holds no such playbook.\n */\n public async readAnswerablePlaybook(playbookRef: string): Promise<MetaWorkflowPlaybook | undefined> {\n const playbook = this.readParsedPlaybook(playbookRef);\n if (!playbook) return undefined;\n const computesOptions = (playbook.method?.elicitation?.questions ?? []).some((question) => question.optionsFrom !== undefined);\n return computesOptions ? materializeElicitationOptions(playbook, await this.readElicitationOptionSources()).playbook : playbook;\n }\n\n /**\n * Each interview question's depth and whether it may be proposed (#2129), keyed `<playbookRef>#<questionRef>`\n * — what the console queue tells a surface so it can run a simple interview. Computed options are resolved\n * first, so a computed CHOICE with nothing to offer yet reads as not proposable.\n */\n public async readInterviewQuestionDispositions(): Promise<ReadonlyMap<string, InterviewQuestionDisposition>> {\n const dispositions = new Map<string, InterviewQuestionDisposition>();\n for (const listed of this.listInterviewPlaybooks()) {\n const playbook = (await this.readAnswerablePlaybook(listed.ref)) ?? listed;\n for (const question of playbook.method?.elicitation?.questions ?? []) {\n dispositions.set(`${playbook.ref}#${question.ref}`, interviewQuestionDisposition(question));\n }\n }\n return dispositions;\n }\n\n /** Every compiled playbook that declares an interview — the question texts a proposal reads the dossier through. */\n public listInterviewPlaybooks(): readonly MetaWorkflowPlaybook[] {\n return listFrameworkKnowledgePlaybooks()\n .map((entry) => this.readParsedPlaybook(entry.ref))\n .filter((playbook): playbook is MetaWorkflowPlaybook => (playbook?.method?.elicitation?.questions?.length ?? 0) > 0);\n }\n\n /** A catalog entry that does not satisfy its own contract is skipped, never fatal — one malformed playbook must not hide the rest. */\n private readParsedPlaybook(playbookRef: string): MetaWorkflowPlaybook | undefined {\n const hydrated = getFrameworkKnowledgePlaybook(playbookRef);\n if (!hydrated) return undefined;\n const parsed = MetaWorkflowPlaybookSchema.safeParse(hydrated.playbook);\n return parsed.success ? parsed.data : undefined;\n }\n}\n\n/** Spread onto an instance's row: the step's own answer, when it has one. */\nfunction withStepAnswer(answer: ApplicationCreatorInputAnswer | undefined): { readonly answerFromTheStep?: ApplicationCreatorInputAnswer } {\n return answer === undefined ? {} : { answerFromTheStep: answer };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"engine-settings-destination-catalog.companion.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/engine-settings-destination-catalog.companion.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,qCAAqC,IAAI,SAAS,MAAM,EAAE,CAoCzE"}
1
+ {"version":3,"file":"engine-settings-destination-catalog.companion.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/engine-settings-destination-catalog.companion.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,qCAAqC,IAAI,SAAS,MAAM,EAAE,CAoCzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"engine-settings-destination-catalog.companion.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/engine-settings-destination-catalog.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAEhH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,qCAAqC;IACnD,MAAM,cAAc,GAAG,CAAC,WAA0D,EAAU,EAAE;QAC5F,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAClC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,KAAK,yBAAyB,CAAC,kBAAkB;gBAC/C,OAAO,eAAe,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,mBAAmB,M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AAC;AACJ,CAAC","sourcesContent":["import { ENGINE_SETTINGS_DESTINATIONS, SettingsSectionTargetKind } from '@wildo-ai/saas-frontend-lib/companion';\n\n/**\n * The settings destinations the ENGINE ships, rendered for a planner (#1435).\n *\n * `bottom_up.placement-plan` decides where each settings destination sits, and its own declaration\n * says why it needs them: *\"A planner working from the definition artifacts alone invents destination\n * refs that resolve to nothing, and every decision it emits is unplaceable.\"* The composer never\n * delivered them. So the method told the model the refs \"come from the engine catalog and the\n * workspace, read as workspace truth\", the workspace-truth section rendered modules, resources and\n * fields, and the model had to recall sixteen ids it had never been shown.\n *\n * It fails LOUDLY, which is the one mercy: `UNKNOWN_SUBJECT` is a HARD FLOOR in the semantic\n * authority, and `ENGINE_SETTINGS_DESTINATION` is the only subject kind whose universe anyone holds\n * — the authority passes exactly this vocabulary. So an invented ref refuses the landing rather than\n * placing something that never renders. What it cost was every run that hit it.\n *\n * There is a second, quieter gain. Claiming the kind also switches on `SUBJECT_NOT_DECIDED`, one\n * warning per destination the plan says nothing about — so a planner that can SEE the sixteen can\n * rule on all of them, and a plan that deliberately covers three says so instead of appearing\n * forgetful.\n *\n * ## What is rendered, and what is not\n *\n * The ref and what the destination SHOWS — a resource operation, an engine panel, a set of sub-tabs\n * — plus its role and feature gating. That is the planner's input: it decides where a destination\n * sits, never what it means, and the target is what tells it which rail a destination belongs on.\n *\n * NO LABEL, and that is not an omission: a destination's words come from\n * `settings_hub.sections.<ref>.label` in the i18n tree, and the catalogue carries none. Inventing\n * one here from the ref would be the humanized-fallback defect\n * (`.claude/rules/display-text-comes-from-i18n.md`) in a brief instead of a UI.\n *\n * TOTAL over the shipped catalogue rather than a hand-kept list, so a destination added tomorrow\n * reaches the planner by existing — the property `derive-before-you-ask.md` rule 3 asks for.\n */\nexport function composeEngineSettingsDestinationLines(): readonly string[] {\n const describeTarget = (destination: (typeof ENGINE_SETTINGS_DESTINATIONS)[number]): string => {\n const target = destination.target;\n switch (target.kind) {\n case SettingsSectionTargetKind.RESOURCE_OPERATION:\n return `shows the \\`${String(target.resourceType)}\\` resource's \\`${String(target.operation)}\\` operation`;\n case SettingsSectionTargetKind.ENGINE_PANEL:\n return `shows the engine panel \\`${String(target.panelRef)}\\``;\n default: {\n // SUB_TABS and whatever a later engine revision adds. Counted rather than named, because the\n // planner places the DESTINATION and a sub-tab is internal to it.\n const subTabs = (target as { readonly subTabs?: readonly unknown[] }).subTabs;\n return Array.isArray(subTabs)\n ? `groups ${subTabs.length} sub-tab(s)`\n : `target kind \\`${String(target.kind)}\\``;\n }\n }\n };\n\n return [\n '## Settings destinations the engine ships (the CLOSED vocabulary a placement may name)',\n 'These refs are the whole universe for an engine settings destination. A ref that is not one of',\n 'them resolves to nothing and the placement validator REFUSES the plan — it is a hard floor, not a',\n 'warning. Do not invent one, and do not rename one.',\n '',\n ...ENGINE_SETTINGS_DESTINATIONS.map((destination) => {\n const gates = [\n ...(destination.requiredRoles?.length ? [`roles: ${destination.requiredRoles.join(', ')}`] : []),\n ...(destination.entitlementFeatureId ? [`entitled by \\`${destination.entitlementFeatureId}\\``] : []),\n ];\n return `- \\`${destination.ref}\\` — ${describeTarget(destination)}${gates.length > 0 ? ` (${gates.join('; ')})` : ''}`;\n }),\n '',\n 'An application may also place its own resource operations and views. Those are NOT in this list',\n 'and are not checked against it — only an engine destination ref is.',\n ];\n}\n"]}
1
+ {"version":3,"file":"engine-settings-destination-catalog.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/engine-settings-destination-catalog.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAEhH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,qCAAqC;IACnD,MAAM,cAAc,GAAG,CAAC,WAA0D,EAAU,EAAE;QAC5F,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAClC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC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G,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACxH,CAAC,CAAC;QACF,EAAE;QACF,iGAAiG;QACjG,qEAAqE;KACtE,CAAC;AACJ,CAAC","sourcesContent":["import { ENGINE_SETTINGS_DESTINATIONS, SettingsSectionTargetKind } from '@wildo-ai/saas-frontend-lib/companion';\n\n/**\n * The settings destinations the ENGINE ships, rendered for a planner (#1435).\n *\n * `bottom_up.placement-plan` decides where each settings destination sits, and its own declaration\n * says why it needs them: *\"A planner working from the definition artifacts alone invents destination\n * refs that resolve to nothing, and every decision it emits is unplaceable.\"* The composer never\n * delivered them. So the method told the model the refs \"come from the engine catalog and the\n * workspace, read as workspace truth\", the workspace-truth section rendered modules, resources and\n * fields, and the model had to recall sixteen ids it had never been shown.\n *\n * It fails LOUDLY, which is the one mercy: `UNKNOWN_SUBJECT` is a HARD FLOOR in the semantic\n * authority, and `ENGINE_SETTINGS_DESTINATION` is the only subject kind whose universe anyone holds\n * — the authority passes exactly this vocabulary. So an invented ref refuses the landing rather than\n * placing something that never renders. What it cost was every run that hit it.\n *\n * There is a second, quieter gain. Claiming the kind also switches on `SUBJECT_NOT_DECIDED`, one\n * warning per destination the plan says nothing about — so a planner that can SEE the sixteen can\n * rule on all of them, and a plan that deliberately covers three says so instead of appearing\n * forgetful.\n *\n * ## What is rendered, and what is not\n *\n * The ref and what the destination SHOWS — a resource operation, an engine panel, a set of sub-tabs\n * — plus its role and feature gating. That is the planner's input: it decides where a destination\n * sits, never what it means, and the target is what tells it which rail a destination belongs on.\n *\n * NO LABEL, and that is not an omission: a destination's words come from\n * `settings_hub.sections.<ref>.label` in the i18n tree, and the catalogue carries none. Inventing\n * one here from the ref would be the humanized-fallback defect\n * (`.claude/rules/display-text-comes-from-i18n.md`) in a brief instead of a UI.\n *\n * TOTAL over the shipped catalogue rather than a hand-kept list, so a destination added tomorrow\n * reaches the planner by existing — the property `derive-before-you-ask.md` rule 3 asks for.\n */\nexport function composeEngineSettingsDestinationLines(): readonly string[] {\n const describeTarget = (destination: (typeof ENGINE_SETTINGS_DESTINATIONS)[number]): string => {\n const target = destination.target;\n switch (target.kind) {\n case SettingsSectionTargetKind.RESOURCE_OPERATION:\n return `shows the \\`${String(target.resourceType)}\\` resource's \\`${String(target.operation)}\\` operation`;\n case SettingsSectionTargetKind.ENGINE_PANEL:\n return `shows the engine panel \\`${String(target.panelRef)}\\``;\n default: {\n // SUB_TABS and whatever a later engine revision adds. Counted rather than named, because the\n // planner places the DESTINATION and a sub-tab is internal to it.\n const subTabs = (target as { readonly subTabs?: readonly unknown[] }).subTabs;\n return Array.isArray(subTabs)\n ? `groups ${subTabs.length} sub-tab(s)`\n : `target kind \\`${String(target.kind)}\\``;\n }\n }\n };\n\n return [\n '## Settings destinations the engine ships (the CLOSED vocabulary a placement may name)',\n 'These refs are the whole universe for an engine settings destination. A ref that is not one of',\n 'them resolves to nothing and the placement validator REFUSES the plan — it is a hard floor, not a',\n 'warning. Do not invent one, and do not rename one.',\n '',\n ...ENGINE_SETTINGS_DESTINATIONS.map((destination) => {\n const gates = [\n ...(destination.requiredRoles?.length ? [`roles: ${destination.requiredRoles.join(', ')}`] : []),\n ...(destination.entitlementFeatureId ? [`entitled by \\`${destination.entitlementFeatureId}\\``] : []),\n ];\n return `- \\`${destination.ref}\\` — ${describeTarget(destination)}${gates.length > 0 ? ` (${gates.join('; ')})` : ''}`;\n }),\n '',\n 'An application may also place its own resource operations and views. Those are NOT in this list',\n 'and are not checked against it — only an engine destination ref is.',\n ];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"execution-trace-read.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAI7E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAA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AY,CAAC,KAAK,SAAK,GAAG,OAAO,CAAC,SAAS,4BAA4B,EAAE,CAAC;IAQvF;;;;;;;;OAQG;IACU,cAAc,IAAI,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;IAKzD;;;;;;;OAOG;IACU,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC;IAKjF,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAU3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACU,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC;IA4B1F,6GAA6G;IAChG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAMpG;;;;;;;;;;;;;OAaG;IAEU,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;IA8BhF;;;;;OAKG;YAEW,gBAAgB;YAiBhB,aAAa;IAI3B,8FAA8F;YAChF,kBAAkB;IAWhC,OAAO,CAAC,YAAY;YAIN,SAAS;YAiBT,UAAU;YAUV,SAAS;CAOxB"}
1
+ {"version":3,"file":"execution-trace-read.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAI7E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS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