@wildo-ai/dev-companion 1.1.4 → 1.1.5

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 (1275) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  3. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  5. package/dist/esm/__time-gov.probe.d.mts +0 -0
  6. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  7. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  9. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.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.map +1 -1
  13. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  14. package/dist/esm/brand/services/brand-accept.companion.service.js +24 -5
  15. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  16. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
  17. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  18. package/dist/esm/brand/services/logo-deliberation.companion.service.js +7 -0
  19. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  20. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  21. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  22. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  23. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  24. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  25. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  26. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +143 -0
  27. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +129 -16
  31. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +173 -11
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  34. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
  35. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
  36. package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
  37. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
  38. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +98 -0
  39. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
  40. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +135 -0
  41. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
  42. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
  43. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
  44. package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
  45. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
  46. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
  47. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
  50. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +46 -0
  51. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +135 -0
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
  54. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +131 -0
  55. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +371 -0
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
  58. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +679 -78
  59. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1909 -420
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  62. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +109 -0
  63. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +186 -0
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
  66. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +215 -7
  67. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +532 -60
  69. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  70. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +27 -6
  71. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  72. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +97 -6
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  74. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  75. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  76. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  77. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  78. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -1
  79. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  80. package/dist/esm/companion-api/companion-api.schemas.d.ts +219 -142
  81. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  82. package/dist/esm/companion-api/companion-api.schemas.js +52 -6
  83. package/dist/esm/companion-api/companion-api.schemas.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-token-floor.policy.d.ts.map +1 -1
  86. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +14 -3
  87. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  88. package/dist/esm/companion-api/controllers/companion.controller.d.ts +170 -13
  89. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  90. package/dist/esm/companion-api/controllers/companion.controller.js +520 -87
  91. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  92. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +39 -4
  93. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  94. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +39 -4
  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.models.d.ts.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  99. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  107. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  108. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  109. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  110. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  111. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  112. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  113. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  114. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  115. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  116. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts +54 -0
  117. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
  118. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
  119. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
  120. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  121. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  122. package/dist/esm/core/config/primary-language.companion.utils.js +12 -0
  123. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  124. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  125. package/dist/esm/core/context/companion-context.js +4 -0
  126. package/dist/esm/core/context/companion-context.js.map +1 -1
  127. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
  128. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  129. package/dist/esm/core/context/companion-package-loaders.companion.js +181 -7
  130. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  131. package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
  132. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
  133. package/dist/esm/core/context/draft-family-values.companion.js +49 -0
  134. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
  135. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  136. package/dist/esm/core/inject/models/container.js +28 -4
  137. package/dist/esm/core/inject/models/container.js.map +1 -1
  138. package/dist/esm/core/inject/models/service-types.d.ts +12 -2
  139. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  140. package/dist/esm/core/inject/models/service-types.js +14 -2
  141. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  142. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  143. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +74 -2
  144. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  145. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +37 -1
  146. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  147. package/dist/esm/core/introspection/models/companion-introspection.models.js +55 -0
  148. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  149. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
  150. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
  151. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
  152. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
  153. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  154. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +630 -16
  155. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  156. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +592 -17
  157. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  158. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +1417 -93
  159. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  160. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +61 -4
  161. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  162. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +136 -10
  163. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  164. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  165. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +11 -0
  166. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  167. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +21 -0
  169. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +21 -3
  171. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  172. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
  174. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  175. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
  176. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  177. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +28 -15
  178. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  179. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +24 -0
  180. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  181. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +29 -5
  182. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  183. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
  185. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
  186. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
  187. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
  188. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +9 -6
  189. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  190. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts +2 -1
  192. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  193. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  194. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  195. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  198. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +82 -49
  200. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  201. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  203. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  205. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts +33 -0
  207. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
  208. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
  209. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
  210. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  211. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +33 -0
  212. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  213. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  214. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  215. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  216. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -140
  217. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +15 -0
  219. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  220. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +140 -46
  221. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +24 -0
  225. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +116 -10
  227. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts +79 -0
  229. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
  230. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
  231. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
  232. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +314 -212
  234. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  235. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
  236. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
  237. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
  238. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
  239. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
  240. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
  241. package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
  242. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
  243. package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
  244. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
  245. package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
  246. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
  247. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  248. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  249. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts +7 -0
  250. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  251. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  252. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +7 -4
  253. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  254. package/dist/esm/core/lock/wildo-saas-lock.schemas.js +1 -0
  255. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  256. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
  257. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
  258. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
  259. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -0
  260. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  261. package/dist/esm/core/runtime/companion-startup-assembly.js +30 -1
  262. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  263. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  264. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  265. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
  266. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
  267. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
  268. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
  269. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +11 -2
  270. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  271. package/dist/esm/core/runtime/services/start-companion-application.service.js +182 -31
  272. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  273. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  274. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +3 -3
  275. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  276. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +27 -9
  277. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  278. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  279. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  280. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  281. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  282. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
  283. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  284. package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
  285. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  286. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  287. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  288. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  289. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  290. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  291. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  292. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  293. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  294. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  295. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  296. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js +6 -34
  297. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  298. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  299. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  300. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  301. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  302. package/dist/esm/core/specifications/resource-specification-context.factory.js +2 -0
  303. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  304. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  305. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  306. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  307. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  308. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  309. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  310. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  311. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  312. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  313. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  314. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  315. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  316. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  317. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  318. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  319. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  320. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  322. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  324. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  326. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  328. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  330. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  332. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  334. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  342. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  351. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  353. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  354. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
  355. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  356. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +12 -2
  357. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  358. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  359. package/dist/esm/core/traceability/companion-traceability.service.d.ts +21 -1
  360. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  361. package/dist/esm/core/traceability/companion-traceability.service.js +25 -1
  362. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  363. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  364. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +45 -0
  365. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
  366. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
  367. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
  368. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
  369. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
  370. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +118 -0
  371. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
  372. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +34 -0
  373. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
  374. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +280 -0
  375. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
  376. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  377. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  378. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
  379. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  380. package/dist/esm/deliberations/services/deliberation.companion.service.js +61 -5
  381. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  382. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -1
  383. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  384. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +7 -2
  385. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  386. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  387. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  388. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  389. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  390. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  391. package/dist/esm/email/services/email-template.companion.service.d.ts +30 -0
  392. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  393. package/dist/esm/email/services/email-template.companion.service.js +92 -41
  394. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  395. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  396. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  397. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +34 -0
  398. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
  399. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +130 -0
  400. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
  401. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +36 -3
  402. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  403. package/dist/esm/executions/services/companion-executions.companion.service.js +136 -5
  404. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  405. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  406. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  407. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  408. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  409. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  410. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +5 -0
  411. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  412. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +58 -8
  413. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  414. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts +8 -0
  415. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
  416. package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
  417. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
  418. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +1 -1
  419. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  420. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js +1 -1
  421. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  422. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts +4 -4
  423. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  424. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js +4 -4
  425. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  426. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts +2 -2
  427. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  428. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js +2 -2
  429. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  430. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  431. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  432. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +4 -2
  433. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  434. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +5 -3
  435. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  436. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts +2 -1
  437. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  438. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js +2 -1
  439. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  440. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts +1 -1
  441. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  442. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js +1 -1
  443. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  444. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts +6 -5
  445. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  446. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
  447. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  448. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts +3 -3
  449. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  450. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js +3 -3
  451. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  452. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  453. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -2
  454. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  455. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +2 -2
  456. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  457. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts +2 -1
  458. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  459. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js +2 -1
  460. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  461. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +1 -1
  462. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  463. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +1 -1
  464. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  465. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +1 -1
  466. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  467. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +1 -1
  468. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  469. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +43 -0
  470. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
  471. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +43 -0
  472. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
  473. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
  474. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
  475. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
  476. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
  477. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
  478. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
  479. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
  480. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
  481. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
  482. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  483. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js +3 -3
  484. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  485. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts +1 -1
  486. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  487. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js +1 -1
  488. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  489. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +2 -2
  490. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  491. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +2 -2
  492. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  493. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -1
  494. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  495. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +4 -1
  496. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  497. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts +10 -10
  498. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  499. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js +10 -10
  500. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  501. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +25 -13
  502. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  503. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +26 -14
  504. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  505. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts +1 -0
  506. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  507. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js +2 -1
  508. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  509. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts +17 -0
  510. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
  511. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
  512. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
  513. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
  514. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  515. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js +5 -5
  516. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  517. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts +1 -1
  518. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  519. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js +1 -1
  520. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  521. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts +1 -1
  522. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js +1 -1
  524. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  525. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts +16 -2
  526. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js +16 -2
  528. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  529. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts +3 -3
  530. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  531. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js +3 -3
  532. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  534. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts +8 -8
  535. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  536. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js +8 -8
  537. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +14 -14
  539. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +14 -14
  541. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +22 -6
  543. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +23 -7
  545. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts +2 -2
  547. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js +2 -2
  549. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts +2 -2
  566. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js +2 -2
  568. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts +21 -0
  570. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
  571. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
  572. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
  573. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts +2 -2
  585. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js +2 -2
  587. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +4 -5
  596. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +4 -5
  598. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts +4 -4
  600. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js +4 -4
  602. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts +2 -2
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js +2 -2
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts +1 -0
  612. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js +2 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +25 -0
  616. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -0
  617. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +25 -0
  618. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -0
  619. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
  620. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js +2 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +3 -2
  624. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +4 -3
  626. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts +3 -2
  628. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js +4 -3
  630. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +3 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +4 -2
  634. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts +3 -3
  640. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js +3 -3
  642. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +3 -3
  648. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +3 -3
  650. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts +15 -0
  652. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
  653. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
  654. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
  655. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
  657. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
  658. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
  659. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
  660. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  665. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +4 -3
  671. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +4 -3
  673. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js +1 -1
  677. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts +3 -0
  679. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js +4 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  709. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts +22 -0
  710. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
  711. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
  712. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
  713. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
  714. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js +2 -2
  716. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts +6 -6
  719. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js +6 -6
  721. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts +3 -3
  723. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js +3 -3
  725. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  726. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +15 -8
  727. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  728. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +16 -9
  729. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +20 -0
  731. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
  732. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +20 -0
  733. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
  734. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +39 -20
  740. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +39 -20
  742. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts +5 -5
  746. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js +5 -5
  748. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  749. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +1 -1
  753. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js +1 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
  759. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
  760. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
  761. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
  762. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
  763. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
  764. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
  765. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
  766. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  767. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
  769. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
  771. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  772. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts +15 -0
  773. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
  774. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
  775. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
  776. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
  777. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  778. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js +6 -4
  779. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  780. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts +10 -9
  781. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  782. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js +11 -10
  783. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  784. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  786. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts +5 -5
  787. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  788. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js +5 -5
  789. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  790. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +6 -6
  791. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  792. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +6 -6
  793. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  794. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts +7 -7
  795. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  796. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js +7 -7
  797. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  798. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts +1 -1
  799. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  800. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js +1 -1
  801. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  802. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts +1 -1
  803. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  804. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js +1 -1
  805. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  806. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts +4 -4
  807. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  808. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js +4 -4
  809. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  810. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts +24 -0
  811. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
  812. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
  813. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
  814. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
  815. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  816. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
  817. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  818. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +14 -10
  819. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  820. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +14 -10
  821. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  822. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts +6 -6
  823. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  824. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js +6 -6
  825. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  826. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts +11 -8
  827. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  828. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js +12 -9
  829. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  830. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts +9 -8
  831. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  832. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js +9 -8
  833. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  834. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts +25 -9
  835. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  836. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js +25 -9
  837. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  838. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts +1 -1
  839. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  840. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js +1 -1
  841. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  842. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts +2 -2
  843. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  844. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
  845. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  846. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts +1 -0
  847. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js +2 -1
  849. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  850. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts +25 -24
  851. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
  853. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  854. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts +1 -1
  855. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  856. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js +1 -1
  857. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  858. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +3 -1
  859. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  860. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +4 -2
  861. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  862. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
  863. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  864. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
  865. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  866. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +11 -11
  867. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  868. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +11 -11
  869. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  870. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +1 -1
  871. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  872. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +1 -1
  873. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  874. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +12 -0
  875. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  876. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +13 -1
  877. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  878. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts +6 -6
  880. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
  882. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  883. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
  884. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  885. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
  886. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  887. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
  888. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  889. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
  890. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  891. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  892. package/dist/esm/i18n/components/guidance_banner.en.d.ts +1 -1
  893. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  894. package/dist/esm/i18n/components/guidance_banner.en.js +1 -1
  895. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  896. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  897. package/dist/esm/i18n/components/guidance_checklist.en.d.ts +2 -2
  898. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  899. package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
  900. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  901. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
  902. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  903. package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -1
  904. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  905. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  906. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts +1 -1
  907. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  908. package/dist/esm/i18n/components/guidance_onboarding_view.en.js +1 -1
  909. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  910. package/dist/esm/i18n/components/guidance_survey.en.d.ts +1 -0
  911. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  912. package/dist/esm/i18n/components/guidance_survey.en.js +2 -1
  913. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  914. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  915. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  916. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +1 -1
  917. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  918. package/dist/esm/i18n/components/progression_achievement_badge.en.js +1 -1
  919. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  920. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +5 -1
  921. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  922. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +6 -2
  923. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  924. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
  925. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
  926. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
  927. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +17 -0
  928. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
  929. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +252 -0
  930. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
  931. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
  932. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
  933. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +58 -0
  934. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
  935. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  936. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +96 -0
  937. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
  938. package/dist/esm/i18n/errors_messages/errors-messages.en.js +54 -0
  939. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
  940. package/dist/esm/i18n/index.d.ts.map +1 -1
  941. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2014 -1
  942. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  943. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +516 -0
  944. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  945. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
  946. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  947. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
  948. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  949. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
  950. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  951. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
  952. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  953. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
  954. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
  955. package/dist/esm/i18n/resources/workbenchAspects.en.js +255 -0
  956. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
  957. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
  958. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
  959. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
  960. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
  961. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +89 -0
  962. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
  963. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +74 -0
  964. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
  965. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
  966. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  967. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
  968. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  969. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +80 -0
  970. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
  971. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +50 -0
  972. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
  973. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
  974. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
  975. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
  976. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
  977. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
  978. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
  979. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
  980. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
  981. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
  982. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  983. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
  984. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  985. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +108 -0
  986. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
  987. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +61 -0
  988. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
  989. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +99 -0
  990. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
  991. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +87 -0
  992. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
  993. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
  994. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
  995. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
  996. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
  997. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +83 -0
  998. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
  999. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +71 -0
  1000. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
  1001. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +159 -0
  1002. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
  1003. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +103 -0
  1004. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
  1005. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +142 -6
  1006. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  1007. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +103 -0
  1008. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  1009. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +94 -4
  1010. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  1011. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +79 -0
  1012. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  1013. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5074 -257
  1014. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  1015. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1201 -44
  1016. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  1017. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
  1018. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  1019. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
  1020. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  1021. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +97 -0
  1022. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
  1023. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +77 -0
  1024. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
  1025. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +272 -0
  1026. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
  1027. package/dist/esm/i18n/system_enums/application-creation.en.js +319 -0
  1028. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
  1029. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
  1030. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
  1031. package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
  1032. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
  1033. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
  1034. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
  1035. package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
  1036. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
  1037. package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
  1038. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  1039. package/dist/esm/i18n/system_enums/market.en.js +12 -2
  1040. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  1041. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +43 -0
  1042. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
  1043. package/dist/esm/i18n/system_enums/processor-register.en.js +43 -0
  1044. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
  1045. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
  1046. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
  1047. package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
  1048. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
  1049. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
  1050. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
  1051. package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
  1052. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
  1053. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
  1054. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
  1055. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
  1056. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
  1057. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +18 -0
  1058. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
  1059. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +18 -0
  1060. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
  1061. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
  1062. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
  1063. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
  1064. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
  1065. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +24 -0
  1066. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
  1067. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +24 -0
  1068. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
  1069. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +51 -3
  1070. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  1071. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +36 -2
  1072. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  1073. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  1074. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  1075. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  1076. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +26 -16
  1077. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  1078. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +167 -40
  1079. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  1080. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +8 -8
  1081. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  1082. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +45 -39
  1083. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  1084. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +104 -0
  1085. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  1086. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +456 -16
  1087. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  1088. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  1089. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +30 -1
  1090. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  1091. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts +91 -0
  1092. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
  1093. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
  1094. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
  1095. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +27 -0
  1096. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
  1097. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
  1098. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
  1099. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +27 -0
  1100. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1101. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js +27 -0
  1102. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1103. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts +12 -0
  1104. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1105. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -1
  1106. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1107. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1108. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js +19 -0
  1109. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1110. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1111. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1112. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1113. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1114. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1115. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -0
  1116. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1117. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1118. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +27 -24
  1119. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1120. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +176 -136
  1121. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1122. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
  1123. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1124. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +27 -3
  1125. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1126. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1127. package/dist/esm/index.d.ts.map +1 -1
  1128. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1129. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
  1130. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
  1131. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +59 -0
  1132. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
  1133. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +35 -0
  1134. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1135. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +69 -3
  1136. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1137. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1138. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +6 -4
  1139. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1140. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +1 -0
  1141. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1142. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +21 -0
  1143. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1144. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +46 -0
  1145. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
  1146. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
  1147. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
  1148. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
  1149. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
  1150. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
  1151. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
  1152. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +65 -0
  1153. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
  1154. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +83 -0
  1155. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
  1156. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +69 -7
  1157. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1158. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +70 -7
  1159. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1160. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1161. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +27 -5
  1162. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1163. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +208 -0
  1164. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
  1165. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +273 -0
  1166. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
  1167. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +356 -0
  1168. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
  1169. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +417 -0
  1170. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
  1171. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
  1172. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
  1173. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
  1174. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
  1175. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  1176. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
  1177. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  1178. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +65 -0
  1179. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
  1180. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +148 -0
  1181. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
  1182. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +929 -51
  1183. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1184. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +2047 -146
  1185. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1186. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +115 -36
  1187. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1188. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +270 -47
  1189. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1190. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +402 -16
  1191. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +1398 -70
  1193. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1194. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
  1195. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
  1196. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
  1197. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
  1198. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +29 -0
  1199. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
  1200. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +88 -0
  1201. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
  1202. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +47 -0
  1203. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
  1204. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +102 -0
  1205. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
  1206. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1207. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1208. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
  1209. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +81 -0
  1210. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
  1211. package/dist/esm/meta-workflows/services/dossier.companion.service.js +231 -0
  1212. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
  1213. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
  1214. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
  1215. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
  1216. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
  1217. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -1
  1218. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1219. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +200 -31
  1220. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1221. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts +16 -0
  1222. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
  1223. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
  1224. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
  1225. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +196 -1
  1226. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1227. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +380 -10
  1228. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1229. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
  1230. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
  1231. package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
  1232. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
  1233. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1234. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +57 -0
  1235. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1236. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +83 -3
  1237. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1238. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +949 -177
  1239. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1240. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +3151 -454
  1241. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1242. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +100 -0
  1243. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
  1244. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
  1245. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
  1246. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
  1247. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
  1248. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
  1249. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
  1250. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
  1251. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
  1252. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
  1253. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
  1254. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +33 -9
  1255. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1256. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +70 -29
  1257. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1258. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +20 -5
  1259. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1260. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +38 -16
  1261. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1262. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1263. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1264. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1265. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1266. package/package.json +18 -18
  1267. package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
  1268. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
  1269. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
  1270. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
  1271. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
  1272. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
  1273. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
  1274. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
  1275. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"deliberation.companion.service.js","sourceRoot":"","sources":["../../../../src/deliberations/services/deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EAET,uBAAuB,GAQxB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,GAEtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAC5H,OAAO,EACL,oCAAoC,EACpC,oCAAoC,EACpC,0CAA0C,EAC1C,qBAAqB,GACtB,MAAM,yDAAyD,CAAC;AAyBjE,MAAM,0BAA0B,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,eAAe,CAAU,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAIe;IAEnC;IAEA;IAEA;IAEA;IAEA;IAbF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EAExD,YAAwC,EAExC,mBAA+C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AAoB,CAAC,CAAA;qCATO,aAAa;QAE1C,0BAA0B;QAEnB,0BAA0B,oBAMhB,6BAA6B;GAdpE,4BAA4B,CAwSxC","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ActorsSystemBackendService,\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n ExpertWorkDomain,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationExpertBinding,\n type DeliberationPlan,\n type DeliberationRecord,\n type FlowsActors_Agent_Invocation,\n type RuntimeExpertProfile,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ExpertPersonaCharterSchema,\n getExpertRoleTemplate,\n type ExpertPersonaCharter,\n} from '@wildo-ai/saas-specifications';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport {\n DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n DeliberationTextRevisionOutputSchema,\n DeliberationTextRevisionOutputStrictSchema,\n expertAgentRefForRole,\n} from '../models/deliberation-agents.actors-system.definitions';\n\n/** A TEXT-subject deliberation request (the v1 route; IMAGE arrives with the brand refit). */\nexport interface DeliberationRunOptions {\n workDomain: ExpertWorkDomain;\n /** The assembled work-product brief every pass is grounded on. */\n briefContext: string;\n /** The initial candidate set (inline text; the service persists the bytes). */\n candidates: Array<{ ref: string; text: string }>;\n /** Panel roles — each must have a committed charter AND cover the work domain. */\n reviewerRoleRefs: string[];\n /** Coordinator role — the manager hat; NOT domain-gated (documented in the plan). */\n coordinatorRoleRef: string;\n /** Rubric-deriving role (default: the first reviewer — the domain owner). */\n rubricDeriverRoleRef?: string;\n roundBudget?: number;\n shortlistSize?: number;\n}\n\nexport interface DeliberationRunResult {\n record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n recordPath: string;\n}\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/**\n * Deliberation COMPOSER (agentic deliberation system, Step 3) — the\n * companion half of the split: it owns charters, agents, candidate BYTES\n * and record persistence; the ENGINE (`ActorsSystemBackendService.\n * executeDeliberation`) owns the orchestration semantics.\n *\n * Composition steps: read the committed charters (introspection read-back,\n * Zod-validated) → enforce NARROWNESS fail-closed (every reviewer's role\n * must declare the deliberation's work domain; the coordinator is the\n * manager hat and is not domain-gated) → map charters to runtime profiles\n * (workDomains come from the TEMPLATE — the charter carries substance, the\n * framework carries routing) → persist the initial candidate bytes under\n * `.wildo-saas/generated/deliberations/<ref>/candidates/` → hand the engine\n * a plan whose PRODUCER callback revises TEXT candidates through the\n * `deliberation.text-producer.agent` and persists each revision → persist\n * the returned `DeliberationRecord` (RF-2).\n *\n * Fail-closed posture (RF-6): a reviewer/coordinator role without a\n * committed charter aborts with \"derive + accept the charter first\"; a\n * charter accepted after startup has no registered agent until the\n * companion restarts — the error says exactly that.\n */\n@injectable()\nexport class DeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('DeliberationCompanionService');\n this.logger.setDebugTypeLogging('DeliberationCompanionService', true);\n }\n\n public async run(\n options: DeliberationRunOptions,\n traceContext?: AgentTraceContext,\n ): Promise<DeliberationRunResult> {\n this.validateOptions(options);\n const deliberationRef = `delib-${options.workDomain.toLowerCase()}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(\n this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef,\n );\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n\n // ── Experts: committed charters → narrowness-gated bindings ──\n const charters = await this.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const reviewers = options.reviewerRoleRefs.map((roleRef) =>\n this.bindExpert(roleRef, charterByRole, { reviewDomain: options.workDomain }));\n const coordinator = this.bindExpert(options.coordinatorRoleRef, charterByRole, {});\n const rubricDeriverRole = options.rubricDeriverRoleRef ?? options.reviewerRoleRefs[0];\n const rubricDeriver = this.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: options.workDomain,\n });\n\n // ── Initial candidates: persist bytes, hand locators+payload to the engine ──\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (const candidate of options.candidates) {\n const fileName = `${candidate.ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), candidate.text, 'utf8');\n initialCandidates.push({\n ref: candidate.ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: candidate.text },\n });\n }\n\n // ── Producer: TEXT revision via the producer agent + byte persistence ──\n let revisionSequence = 0;\n const producer = {\n produceRevision: async (\n parent: DeliberationCandidateInput,\n revisionPrompt: string,\n ): Promise<DeliberationCandidateInput> => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.TEXT) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The TEXT deliberation route cannot revise non-text candidates.' },\n });\n }\n const revised = await this.reviseText(parent.content.text, revisionPrompt, options.briefContext, traceContext);\n revisionSequence += 1;\n const ref = `${parent.ref}-rev${revisionSequence}`;\n const fileName = `${ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), revised, 'utf8');\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: revised },\n };\n },\n };\n\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: options.workDomain,\n subjectKind: FlowsActors_IO_PartKind.TEXT,\n briefContext: options.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n producerAgentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n producer,\n initialCandidates,\n roundBudget: options.roundBudget ?? 2,\n shortlistSize: options.shortlistSize ?? 2,\n };\n\n this.logDebug('deliberation composed', {\n deliberationRef,\n reviewers: reviewers.map((binding) => binding.profile.roleRef),\n coordinator: coordinator.profile.roleRef,\n candidates: initialCandidates.length,\n });\n\n // ── Engine orchestration → persist the record (RF-2) ────────\n const record = await this.actorsSystemService.executeDeliberation(plan, traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(\n resolve(deliberationDirAbs, 'record.json'),\n `${JSON.stringify(record, null, 2)}\\n`,\n 'utf8',\n );\n this.logDebug('deliberation record persisted', {\n deliberationRef,\n status: record.status,\n rounds: record.rounds.length,\n winnerRef: record.synthesis?.winnerRef,\n recordPath,\n });\n return { record, recordPath };\n }\n\n private validateOptions(options: DeliberationRunOptions): void {\n /*\n * The SAME floor the engine enforces (`validateDeliberationPlan`), raised here too\n * so the composer refuses before spending a charter read — and, more importantly,\n * so the two sites do not disagree about what a panel IS. Two floors for one\n * invariant is how a rule ends up half-applied\n * (`invariant-call-site-enumeration.md`); if this bound moves, move both.\n */\n if (options.candidates.length === 0 || options.reviewerRoleRefs.length < 2) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: 'A deliberation needs ≥1 candidate and ≥2 reviewer roles — a panel of one is a judge, '\n + 'not a deliberation, and its record would carry an always-empty dissent.',\n },\n });\n }\n const refs = new Set(options.candidates.map((candidate) => candidate.ref));\n if (refs.size !== options.candidates.length) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'Candidate refs must be unique.' },\n });\n }\n }\n\n /**\n * Resolve one expert seat: committed charter (fail-closed, RF-6) +\n * NARROWNESS enforcement on the right axis — `ownDomain` gates OWNERSHIP\n * (rubric derivation / brief authoring: `template.workDomains`),\n * `reviewDomain` gates PANEL PARTICIPATION (`template.reviewScopes` —\n * a guardian/strategist reviews a mark through its own lens without\n * owning marks) — + charter→runtime-profile mapping (domains from the\n * framework TEMPLATE; substance from the derived charter).\n */\n public bindExpert(\n roleRef: string,\n charterByRole: Map<string, ExpertPersonaCharter>,\n gate: { ownDomain?: ExpertWorkDomain; reviewDomain?: ExpertWorkDomain },\n ): DeliberationExpertBinding {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `Unknown expert role '${roleRef}' — no such template in EXPERT_ROLE_TEMPLATES.` },\n });\n }\n if (gate.ownDomain !== undefined && !template.workDomains.includes(gate.ownDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (ownership): role '${roleRef}' does not OWN work domain '${gate.ownDomain}' `\n + `(owns [${template.workDomains.join(', ')}]) — only the domain owner authors briefs and `\n + `derives rubrics. Use the owning role instead.`,\n },\n });\n }\n if (gate.reviewDomain !== undefined && !template.reviewScopes.includes(gate.reviewDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (lens): role '${roleRef}' does not review work domain '${gate.reviewDomain}' `\n + `(review scopes: [${template.reviewScopes.join(', ')}]) — an expert never sits on a panel `\n + `outside its lens reach. Convene a role whose review scope covers the domain.`,\n },\n });\n }\n const charter = charterByRole.get(roleRef);\n if (!charter) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Role '${roleRef}' has no COMMITTED charter — derive + accept it first `\n + `(POST /expert-personas/derive then /accept), then RESTART the companion so its agent `\n + `registers (agents are indexed at startup).`,\n },\n });\n }\n const profile: RuntimeExpertProfile = {\n charterRef: charter.charterRef,\n roleRef: charter.roleRef,\n workDomains: template.workDomains,\n personaProse: charter.personaProse,\n priorities: charter.priorities,\n taboos: charter.taboos,\n ...(charter.qualityBar !== undefined ? { qualityBar: charter.qualityBar } : {}),\n ...(charter.reviewProtocol !== undefined ? { reviewProtocol: charter.reviewProtocol } : {}),\n };\n return { profile, agentRef: expertAgentRefForRole(roleRef) };\n }\n\n /**\n * Committed charters via the read-back behavior, Zod-validated at the\n * seam. PUBLIC on purpose: this + `bindExpert` are the shared composer\n * seams other deliberation adopters (e.g. the brand/logo IMAGE flow)\n * reuse instead of duplicating charter/narrowness logic.\n */\n public async readCommittedCharters(): Promise<ExpertPersonaCharter[]> {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (!backendServiceKey) {\n throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFIGURATION,\n context: { message: 'No backend service available to resolve the expert-persona-charters behavior.' },\n });\n }\n const introspection = await this.companionIntrospectionService.requestInfo({\n serviceKey: backendServiceKey,\n behavior: 'expert-persona-charters',\n input: {},\n });\n if (introspection.success === false) {\n const failure = introspection;\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { message: failure.error.message, behavior: failure.behavior },\n });\n }\n const raw = (introspection.data as { charters?: unknown[] }).charters ?? [];\n return raw.map((candidate, index) => {\n const parsed = ExpertPersonaCharterSchema.safeParse(candidate);\n if (!parsed.success) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Committed charter at index ${index} is structurally invalid: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; '),\n },\n });\n }\n return parsed.data;\n });\n }\n\n /** One TEXT revision through the producer agent (strict-validated). */\n private async reviseText(\n currentText: string,\n revisionPrompt: string,\n briefContext: string,\n traceContext?: AgentTraceContext,\n ): Promise<string> {\n const prompt = [\n briefContext,\n '',\n '# Current candidate text',\n currentText,\n '',\n revisionPrompt,\n ].join('\\n');\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema\n > = {\n agentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt, schema: DeliberationTextRevisionOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const raw = (response.output as { object?: unknown } | undefined)?.object;\n const parsed = DeliberationTextRevisionOutputStrictSchema.safeParse(raw);\n if (!parsed.success || parsed.data.revisedText.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: 'The text producer returned an invalid/empty revision — re-run the deliberation.',\n },\n });\n }\n return parsed.data.revisedText;\n }\n}\n"]}
1
+ {"version":3,"file":"deliberation.companion.service.js","sourceRoot":"","sources":["../../../../../src/deliberations/services/deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EAET,uBAAuB,GAQxB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,GAEtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AAC3H,OAAO,EAAE,kCAAkC,EAAE,MAAM,wDAAwD,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAC5H,OAAO,EACL,oCAAoC,EACpC,oCAAoC,EACpC,0CAA0C,EAC1C,qBAAqB,GACtB,MAAM,yDAAyD,CAAC;AAyBjE,MAAM,0BAA0B,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,eAAe,CAAU,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAIe;IAEnC;IAEA;IAEA;IAEA;IAEA;IAbF,Q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Q;gBAC5D,OAAO,EAAE;oBACP,OAAO,EAAE,iFAAiF;iBAC3F;aACF,CAAC,CAAC;QACL,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;CACF,CAAA;AA3VY,4BAA4B;IADxC,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,CAAA;IAErD,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAE/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;qCATO,aAAa;QAE1C,0BAA0B;QAEnB,0BAA0B,oBAMhB,6BAA6B;GAdpE,4BAA4B,CA2VxC","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ActorsSystemBackendService,\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n ExpertWorkDomain,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationExpertBinding,\n type DeliberationPlan,\n type DeliberationRecord,\n type FlowsActors_Agent_Invocation,\n type RuntimeExpertProfile,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ExpertPersonaCharterSchema,\n getExpertRoleTemplate,\n type ExpertPersonaCharter,\n} from '@wildo-ai/saas-specifications';\n\nimport { composeExpertRoleContext, decidedFamilyValuesFromCompanionExports } from '@wildo-ai/application-creation-runtime';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { loadDraftFamilyValues } from '../../core/context/draft-family-values.companion';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport {\n DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n DeliberationTextRevisionOutputSchema,\n DeliberationTextRevisionOutputStrictSchema,\n expertAgentRefForRole,\n} from '../models/deliberation-agents.actors-system.definitions';\n\n/** A TEXT-subject deliberation request (the v1 route; IMAGE arrives with the brand refit). */\nexport interface DeliberationRunOptions {\n workDomain: ExpertWorkDomain;\n /** The assembled work-product brief every pass is grounded on. */\n briefContext: string;\n /** The initial candidate set (inline text; the service persists the bytes). */\n candidates: Array<{ ref: string; text: string }>;\n /** Panel roles — each must have a committed charter AND cover the work domain. */\n reviewerRoleRefs: string[];\n /** Coordinator role — the manager hat; NOT domain-gated (documented in the plan). */\n coordinatorRoleRef: string;\n /** Rubric-deriving role (default: the first reviewer — the domain owner). */\n rubricDeriverRoleRef?: string;\n roundBudget?: number;\n shortlistSize?: number;\n}\n\nexport interface DeliberationRunResult {\n record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n recordPath: string;\n}\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/**\n * Deliberation COMPOSER (agentic deliberation system, Step 3) — the\n * companion half of the split: it owns charters, agents, candidate BYTES\n * and record persistence; the ENGINE (`ActorsSystemBackendService.\n * executeDeliberation`) owns the orchestration semantics.\n *\n * Composition steps: read the committed charters (introspection read-back,\n * Zod-validated) → enforce NARROWNESS fail-closed (every reviewer's role\n * must declare the deliberation's work domain; the coordinator is the\n * manager hat and is not domain-gated) → map charters to runtime profiles\n * (workDomains come from the TEMPLATE — the charter carries substance, the\n * framework carries routing) → persist the initial candidate bytes under\n * `.wildo-saas/generated/deliberations/<ref>/candidates/` → hand the engine\n * a plan whose PRODUCER callback revises TEXT candidates through the\n * `deliberation.text-producer.agent` and persists each revision → persist\n * the returned `DeliberationRecord` (RF-2).\n *\n * Fail-closed posture (RF-6): a reviewer/coordinator role without a\n * committed charter aborts with \"derive + accept the charter first\"; a\n * charter accepted after startup has no registered agent until the\n * companion restarts — the error says exactly that.\n */\n@injectable()\nexport class DeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('DeliberationCompanionService');\n this.logger.setDebugTypeLogging('DeliberationCompanionService', true);\n }\n\n public async run(\n options: DeliberationRunOptions,\n traceContext?: AgentTraceContext,\n ): Promise<DeliberationRunResult> {\n this.validateOptions(options);\n const deliberationRef = `delib-${options.workDomain.toLowerCase()}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(\n this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef,\n );\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n\n // ── Experts: committed charters → narrowness-gated bindings ──\n const charters = await this.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const rubricDeriverRole = options.rubricDeriverRoleRef ?? options.reviewerRoleRefs[0];\n /*\n * Each seat's OWN context (#1423), composed once per run from the roles actually seated. Before\n * this, the panel's narrowness lived only in charter prose: every seat received one identical\n * brief, so a design-system guardian and a brand strategist judged the same words.\n */\n const roleContexts = await this.composeExpertRoleContextsByRole([\n ...options.reviewerRoleRefs,\n options.coordinatorRoleRef,\n ...(rubricDeriverRole ? [rubricDeriverRole] : []),\n ]);\n const reviewers = options.reviewerRoleRefs.map((roleRef) =>\n this.bindExpert(roleRef, charterByRole, { reviewDomain: options.workDomain }, roleContexts.get(roleRef)));\n const coordinator = this.bindExpert(options.coordinatorRoleRef, charterByRole, {}, roleContexts.get(options.coordinatorRoleRef));\n const rubricDeriver = this.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: options.workDomain,\n }, rubricDeriverRole === undefined ? undefined : roleContexts.get(rubricDeriverRole));\n\n // ── Initial candidates: persist bytes, hand locators+payload to the engine ──\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (const candidate of options.candidates) {\n const fileName = `${candidate.ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), candidate.text, 'utf8');\n initialCandidates.push({\n ref: candidate.ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: candidate.text },\n });\n }\n\n // ── Producer: TEXT revision via the producer agent + byte persistence ──\n let revisionSequence = 0;\n const producer = {\n produceRevision: async (\n parent: DeliberationCandidateInput,\n revisionPrompt: string,\n ): Promise<DeliberationCandidateInput> => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.TEXT) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The TEXT deliberation route cannot revise non-text candidates.' },\n });\n }\n const revised = await this.reviseText(parent.content.text, revisionPrompt, options.briefContext, traceContext);\n revisionSequence += 1;\n const ref = `${parent.ref}-rev${revisionSequence}`;\n const fileName = `${ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), revised, 'utf8');\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: revised },\n };\n },\n };\n\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: options.workDomain,\n subjectKind: FlowsActors_IO_PartKind.TEXT,\n briefContext: options.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n producerAgentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n producer,\n initialCandidates,\n roundBudget: options.roundBudget ?? 2,\n shortlistSize: options.shortlistSize ?? 2,\n };\n\n this.logDebug('deliberation composed', {\n deliberationRef,\n reviewers: reviewers.map((binding) => binding.profile.roleRef),\n coordinator: coordinator.profile.roleRef,\n candidates: initialCandidates.length,\n });\n\n // ── Engine orchestration → persist the record (RF-2) ────────\n const record = await this.actorsSystemService.executeDeliberation(plan, traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(\n resolve(deliberationDirAbs, 'record.json'),\n `${JSON.stringify(record, null, 2)}\\n`,\n 'utf8',\n );\n this.logDebug('deliberation record persisted', {\n deliberationRef,\n status: record.status,\n rounds: record.rounds.length,\n winnerRef: record.synthesis?.winnerRef,\n recordPath,\n });\n return { record, recordPath };\n }\n\n private validateOptions(options: DeliberationRunOptions): void {\n /*\n * The SAME floor the engine enforces (`validateDeliberationPlan`), raised here too\n * so the composer refuses before spending a charter read — and, more importantly,\n * so the two sites do not disagree about what a panel IS. Two floors for one\n * invariant is how a rule ends up half-applied\n * (`invariant-call-site-enumeration.md`); if this bound moves, move both.\n */\n if (options.candidates.length === 0 || options.reviewerRoleRefs.length < 2) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: 'A deliberation needs ≥1 candidate and ≥2 reviewer roles — a panel of one is a judge, '\n + 'not a deliberation, and its record would carry an always-empty dissent.',\n },\n });\n }\n const refs = new Set(options.candidates.map((candidate) => candidate.ref));\n if (refs.size !== options.candidates.length) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'Candidate refs must be unique.' },\n });\n }\n }\n\n /**\n * What each seated role reads beyond the shared brief, keyed by role ref (#1423).\n *\n * Resolves each role's DECLARED `shapingInputKinds` against this application's landed families, so\n * per-role selection happens at RUN time rather than being frozen into charter prose at derivation.\n * It is selection from a declaration, not a planner choosing per agent (#251).\n *\n * Best-effort by construction: an unreadable specifications package leaves every seat with the shared\n * brief, which is exactly the behaviour before this existed. A deliberation must not fail because a\n * seat's extra context could not be composed.\n */\n private async composeExpertRoleContextsByRole(roleRefs: readonly (string | undefined)[]): Promise<Map<string, string>> {\n const contexts = new Map<string, string>();\n try {\n const companionExports = await loadSpecificationsCompanionExports(this.companionContext);\n const valuesByFamily = {\n ...Object.fromEntries(await loadDraftFamilyValues(this.companionContext.resolvedSpecifications?.packageRoot)),\n ...decidedFamilyValuesFromCompanionExports(companionExports as unknown as Record<string, unknown>),\n };\n for (const roleRef of new Set(roleRefs.filter((ref): ref is string => ref !== undefined))) {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) continue;\n const composed = composeExpertRoleContext({ shapingInputKinds: template.shapingInputKinds, valuesByFamily });\n if (composed !== undefined) contexts.set(roleRef, composed);\n }\n } catch (error) {\n this.logger.warn('Per-role deliberation context omitted; every seat reads the shared brief', { error: String(error) });\n }\n return contexts;\n }\n\n /**\n * Resolve one expert seat: committed charter (fail-closed, RF-6) +\n * NARROWNESS enforcement on the right axis — `ownDomain` gates OWNERSHIP\n * (rubric derivation / brief authoring: `template.workDomains`),\n * `reviewDomain` gates PANEL PARTICIPATION (`template.reviewScopes` —\n * a guardian/strategist reviews a mark through its own lens without\n * owning marks) — + charter→runtime-profile mapping (domains from the\n * framework TEMPLATE; substance from the derived charter).\n */\n public bindExpert(\n roleRef: string,\n charterByRole: Map<string, ExpertPersonaCharter>,\n gate: { ownDomain?: ExpertWorkDomain; reviewDomain?: ExpertWorkDomain },\n /**\n * What this seat reads beyond the shared brief (#1423) — see {@link composeExpertRoleContextsByRole}.\n * Optional so the other composer that reuses this seam (the brand/logo IMAGE flow) is unchanged\n * until it supplies one, and a seat without it reads the shared brief alone, as every seat did.\n */\n roleContext?: string,\n ): DeliberationExpertBinding {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `Unknown expert role '${roleRef}' — no such template in EXPERT_ROLE_TEMPLATES.` },\n });\n }\n if (gate.ownDomain !== undefined && !template.workDomains.includes(gate.ownDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (ownership): role '${roleRef}' does not OWN work domain '${gate.ownDomain}' `\n + `(owns [${template.workDomains.join(', ')}]) — only the domain owner authors briefs and `\n + `derives rubrics. Use the owning role instead.`,\n },\n });\n }\n if (gate.reviewDomain !== undefined && !template.reviewScopes.includes(gate.reviewDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (lens): role '${roleRef}' does not review work domain '${gate.reviewDomain}' `\n + `(review scopes: [${template.reviewScopes.join(', ')}]) — an expert never sits on a panel `\n + `outside its lens reach. Convene a role whose review scope covers the domain.`,\n },\n });\n }\n const charter = charterByRole.get(roleRef);\n if (!charter) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Role '${roleRef}' has no COMMITTED charter — derive + accept it first `\n + `(POST /expert-personas/derive then /accept), then RESTART the companion so its agent `\n + `registers (agents are indexed at startup).`,\n },\n });\n }\n const profile: RuntimeExpertProfile = {\n charterRef: charter.charterRef,\n roleRef: charter.roleRef,\n workDomains: template.workDomains,\n personaProse: charter.personaProse,\n priorities: charter.priorities,\n taboos: charter.taboos,\n ...(charter.qualityBar !== undefined ? { qualityBar: charter.qualityBar } : {}),\n ...(charter.reviewProtocol !== undefined ? { reviewProtocol: charter.reviewProtocol } : {}),\n };\n return {\n profile,\n agentRef: expertAgentRefForRole(roleRef),\n ...(roleContext !== undefined && roleContext.trim() !== '' ? { roleContext } : {}),\n };\n }\n\n /**\n * Committed charters via the read-back behavior, Zod-validated at the\n * seam. PUBLIC on purpose: this + `bindExpert` are the shared composer\n * seams other deliberation adopters (e.g. the brand/logo IMAGE flow)\n * reuse instead of duplicating charter/narrowness logic.\n */\n public async readCommittedCharters(): Promise<ExpertPersonaCharter[]> {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (!backendServiceKey) {\n throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFIGURATION,\n context: { message: 'No backend service available to resolve the expert-persona-charters behavior.' },\n });\n }\n const introspection = await this.companionIntrospectionService.requestInfo({\n serviceKey: backendServiceKey,\n behavior: 'expert-persona-charters',\n input: {},\n });\n if (introspection.success === false) {\n const failure = introspection;\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { message: failure.error.message, behavior: failure.behavior },\n });\n }\n const raw = (introspection.data as { charters?: unknown[] }).charters ?? [];\n return raw.map((candidate, index) => {\n const parsed = ExpertPersonaCharterSchema.safeParse(candidate);\n if (!parsed.success) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Committed charter at index ${index} is structurally invalid: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; '),\n },\n });\n }\n return parsed.data;\n });\n }\n\n /** One TEXT revision through the producer agent (strict-validated). */\n private async reviseText(\n currentText: string,\n revisionPrompt: string,\n briefContext: string,\n traceContext?: AgentTraceContext,\n ): Promise<string> {\n const prompt = [\n briefContext,\n '',\n '# Current candidate text',\n currentText,\n '',\n revisionPrompt,\n ].join('\\n');\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema\n > = {\n agentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt, schema: DeliberationTextRevisionOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const raw = (response.output as { object?: unknown } | undefined)?.object;\n const parsed = DeliberationTextRevisionOutputStrictSchema.safeParse(raw);\n if (!parsed.success || parsed.data.revisedText.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: 'The text producer returned an invalid/empty revision — re-run the deliberation.',\n },\n });\n }\n return parsed.data.revisedText;\n }\n}\n"]}
@@ -1,10 +1,12 @@
1
+ import { type MetaWorkflow_PlaybookDeliberation } from '@wildo-ai/saas-models/meta-workflows';
1
2
  import { ErrorBuilderBackendService, LoggerService, ActorsSystemBackendService } from '@wildo-ai/saas-backend-lib';
2
3
  import { type AgentTraceContext, type DeliberationRecord } from '@wildo-ai/saas-models';
3
- import type { MetaWorkflow_PlaybookDeliberation } from '@wildo-ai/saas-specifications/application-creation';
4
4
  import type { CompanionContext } from '../../core/context/companion-context';
5
5
  import { DeliberationCompanionService } from './deliberation.companion.service';
6
6
  /** How one structured candidate is produced or revised — supplied by the caller, which owns the schema. */
7
7
  export interface StructuredCandidateProducer {
8
+ /** Identity of the agent used by the caller's initial/revision callbacks. The caller owns registry resolution; this service retains its nonempty identity in the review record. */
9
+ readonly agentRef: string;
8
10
  /**
9
11
  * Produce candidate `index` of `total`. The caller varies its own prompt so the
10
12
  * candidates genuinely differ; this service never composes prompts, because the
@@ -1 +1 @@
1
- {"version":3,"file":"structured-deliberation.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAEb,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,iBAAiB,EAItB,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AAG5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAIhF,2GAA2G;AAC3G,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,+EAA+E;IAC/E,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3E;;;;;OAKG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED,MAAM,WAAW,4BAA4B;IAC3C,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,sDAAsD;IACtD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;GAaG;AACH,qBACa,sCAAsC;IAIZ,OAAO,CAAC,QAAQ,CAAC,MAAM;IAE1D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAE7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAEpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEjC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAXvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EAExD,YAAY,EAAE,0BAA0B,EAExC,mBAAmB,EAAE,0BAA0B,EAE/C,gBAAgB,EAAE,gBAAgB,EAElC,oBAAoB,EAAE,4BAA4B;IAMxD,GAAG,CAAC,KAAK,EAAE;QACtB,8CAA8C;QAC9C,QAAQ,CAAC,KAAK,EAAE,iCAAiC,CAAC;QAClD,wFAAwF;QACxF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,8EAA8E;QAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;QAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAC;KAC3C,GAAG,OAAO,CAAC,4BAA4B,CAAC;CAuI1C"}
1
+ {"version":3,"file":"structured-deliberation.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACvC,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAEb,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,iBAAiB,EAItB,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAIhF,2GAA2G;AAC3G,MAAM,WAAW,2BAA2B;IAC1C,mLAAm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,EAAE,2BAA2B,CAAC;QAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAC;KAC3C,GAAG,OAAO,CAAC,4BAA4B,CAAC;CA6I1C"}
@@ -17,7 +17,6 @@ import { inject, injectable } from 'inversify';
17
17
  import { ErrorBuilderBackendService, LoggerService, SAAS_SERVICE_TYPES, ActorsSystemBackendService, } from '@wildo-ai/saas-backend-lib';
18
18
  import { ErrorCustomMessageReference, ErrorType, FlowsActors_IO_PartKind, DeliberationStatus, } from '@wildo-ai/saas-models';
19
19
  import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
20
- import { DELIBERATION_TEXT_PRODUCER_AGENT_REF } from '../models/deliberation-agents.actors-system.definitions.js';
21
20
  import { DeliberationCompanionService } from './deliberation.companion.service.js';
22
21
  const DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'];
23
22
  /**
@@ -52,6 +51,12 @@ let StructuredDeliberationCompanionService = class StructuredDeliberationCompani
52
51
  }
53
52
  async run(input) {
54
53
  const { panel, producer } = input;
54
+ if (typeof producer.agentRef !== 'string' || producer.agentRef.trim().length === 0) {
55
+ throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
56
+ customMessageReference: ErrorCustomMessageReference.VALIDATION,
57
+ context: { message: 'A structured deliberation must name the agent that produces its candidates and revisions.' },
58
+ });
59
+ }
55
60
  const deliberationRef = `delib-${input.label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}-${randomUUID().slice(0, 8)}`;
56
61
  const deliberationDirAbs = resolve(this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef);
57
62
  const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');
@@ -115,7 +120,7 @@ let StructuredDeliberationCompanionService = class StructuredDeliberationCompani
115
120
  // The revision producer is the CALLER's structured generator, not the text
116
121
  // producer agent; this ref is the audit stamp for who produced revisions, and
117
122
  // naming the text agent would be a lie about what ran.
118
- producerAgentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,
123
+ producerAgentRef: producer.agentRef,
119
124
  producer: {
120
125
  produceRevision: async (parent, revisionPrompt) => {
121
126
  if (parent.content.kind !== FlowsActors_IO_PartKind.STRUCTURED) {
@@ -1 +1 @@
1
- {"version":3,"file":"structured-deliberation.companion.service.js","sourceRoot":"","sources":["../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EACT,uBAAuB,EAIvB,kBAAkB,GAEnB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAEhF,MAAM,0BAA0B,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,eAAe,CAAU,CAAC;AA6B1F;;;;;;;;;;;;;GAaG;AAEI,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAIK;IAEnC;IAEA;IAEA;IAEA;IAXF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EAExD,YAAwC,EAExC,mBAA+C,EAE/C,gBAAkC,EAElC,oBAAkD;QARf,WAAM,GAAN,MAAM,CAAe;QAExD,iBAAY,GAAZ,YAAY,CAA4B;QAExC,wBAAmB,GAAnB,mBAAmB,CAA4B;QA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D,sCAAsC,CAkKlD","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n ActorsSystemBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationPlan,\n DeliberationStatus,\n type DeliberationRecord,\n} from '@wildo-ai/saas-models';\nimport type { MetaWorkflow_PlaybookDeliberation } from '@wildo-ai/saas-specifications/application-creation';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { DELIBERATION_TEXT_PRODUCER_AGENT_REF } from '../models/deliberation-agents.actors-system.definitions';\nimport { DeliberationCompanionService } from './deliberation.companion.service';\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/** How one structured candidate is produced or revised — supplied by the caller, which owns the schema. */\nexport interface StructuredCandidateProducer {\n /**\n * Produce candidate `index` of `total`. The caller varies its own prompt so the\n * candidates genuinely differ; this service never composes prompts, because the\n * brief belongs to whatever family is being deliberated.\n */\n produceInitial(index: number, total: number): Promise<unknown>;\n /** Revise `parent` against the coordinator's deterministic revision prompt. */\n produceRevision(parent: unknown, revisionPrompt: string): Promise<unknown>;\n /**\n * OPTIONAL human-readable framing rendered ABOVE the candidate's JSON — never\n * instead of it. See `DeliberationCandidateContent`: the engine always renders the\n * value, so a projection that drifts cannot cause the panel to score prose while\n * the winner is data.\n */\n project?(value: unknown): string | undefined;\n}\n\nexport interface StructuredDeliberationResult {\n /** The winning candidate's value — what the caller lands. */\n readonly winner: unknown;\n readonly record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n readonly recordPath: string;\n}\n\n/**\n * Runs an expert panel over STRUCTURED candidates.\n *\n * The sibling of `LogoDeliberationCompanionService` for the third subject kind, and\n * built the same way: charter reading and narrowness gating are delegated to the\n * shared `DeliberationCompanionService` seams (`readCommittedCharters`, `bindExpert`),\n * so the working TEXT route is untouched and there is one implementation of \"who may\n * sit on this panel\".\n *\n * Deliberately GENERIC over the family. It knows nothing about placement, or any\n * other artifact: the caller owns the schema, the brief and the prompts, and hands in\n * a producer. That keeps this service from accumulating a per-family branch every\n * time another artifact becomes worth arguing over.\n */\n@injectable()\nexport class StructuredDeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.DeliberationService)\n private readonly deliberationComposer: DeliberationCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('StructuredDeliberationCompanionService');\n this.logger.setDebugTypeLogging('StructuredDeliberationCompanionService', true);\n }\n\n public async run(input: {\n /** The panel, as the playbook declared it. */\n readonly panel: MetaWorkflow_PlaybookDeliberation;\n /** The assembled brief every pass is grounded on — the caller's, not this service's. */\n readonly briefContext: string;\n /** Correlation label, e.g. `placement-plan`. Used in the deliberation ref. */\n readonly label: string;\n readonly producer: StructuredCandidateProducer;\n readonly traceContext?: AgentTraceContext;\n }): Promise<StructuredDeliberationResult> {\n const { panel, producer } = input;\n const deliberationRef = `delib-${input.label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef);\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n\n // ── Panel: committed charters → narrowness-gated bindings (shared seams) ──\n const charters = await this.deliberationComposer.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const reviewers = panel.reviewerRoleRefs.map((roleRef) =>\n this.deliberationComposer.bindExpert(roleRef, charterByRole, { reviewDomain: panel.workDomain }));\n const coordinator = this.deliberationComposer.bindExpert(panel.coordinatorRoleRef, charterByRole, {});\n const rubricDeriverRole = panel.rubricDeriverRoleRef ?? panel.reviewerRoleRefs[0]!;\n const rubricDeriver = this.deliberationComposer.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: panel.workDomain,\n });\n\n // ── Initial candidates: persist bytes, hand locators + payload to the engine ──\n /*\n * Every candidate VALUE this run produced, keyed by ref — initial and revised alike.\n *\n * Necessary because the persisted `DeliberationRecord` carries only refs and\n * storage locators, never payloads (the engine never holds candidate bytes, RF-2).\n * A first cut resolved the winner from `record.rounds[].candidateSet` and would\n * have resolved any REVISED winner to `undefined` — which is most of them, since\n * revision is the point of a multi-round panel.\n */\n const valueByRef = new Map<string, unknown>();\n\n const persist = async (ref: string, value: unknown): Promise<DeliberationCandidateInput> => {\n const fileName = `${ref}.json`;\n await writeFile(resolve(candidatesDirAbs, fileName), `${JSON.stringify(value, null, 2)}\\n`, 'utf8');\n valueByRef.set(ref, value);\n const projection = producer.project?.(value);\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: {\n kind: FlowsActors_IO_PartKind.STRUCTURED,\n value,\n ...(projection === undefined ? {} : { projection }),\n },\n };\n };\n\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (let index = 0; index < panel.candidateCount; index += 1) {\n const value = await producer.produceInitial(index, panel.candidateCount);\n initialCandidates.push(await persist(`c${index + 1}`, value));\n }\n if (initialCandidates.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation produced no candidates — there is nothing to deliberate over.' },\n });\n }\n\n let revisionSequence = 0;\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: panel.workDomain,\n subjectKind: FlowsActors_IO_PartKind.STRUCTURED,\n briefContext: input.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n // The revision producer is the CALLER's structured generator, not the text\n // producer agent; this ref is the audit stamp for who produced revisions, and\n // naming the text agent would be a lie about what ran.\n producerAgentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n producer: {\n produceRevision: async (parent, revisionPrompt) => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.STRUCTURED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The STRUCTURED deliberation route cannot revise a non-structured candidate.' },\n });\n }\n const revised = await producer.produceRevision(parent.content.value, revisionPrompt);\n revisionSequence += 1;\n return persist(`${parent.ref}-rev${revisionSequence}`, revised);\n },\n },\n initialCandidates,\n roundBudget: panel.roundBudget ?? 2,\n shortlistSize: panel.shortlistSize ?? 2,\n };\n\n const record = await this.actorsSystemService.executeDeliberation(plan, input.traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(resolve(deliberationDirAbs, 'record.json'), `${JSON.stringify(record, null, 2)}\\n`, 'utf8');\n\n /*\n * Resolve the winner from the values THIS RUN produced, and fail loudly when the\n * ref does not resolve: a coordinator naming a candidate that does not exist must\n * never land an `undefined` artifact.\n */\n /*\n * A REJECTED panel is a RESULT, and it must not surface as \"something went wrong\".\n * The engine completed, every lens was heard, and the answer is \"none of these\" —\n * so the message says that, names the rejected count, and points at the record\n * where the critiques are. Reporting it as a missing winner would send the reader\n * looking for a defect in the machinery instead of at the candidates.\n */\n if (record.status === DeliberationStatus.REJECTED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The panel REJECTED every one of the ${initialCandidates.length} candidate(s) for `\n + `'${input.label}' — this is a verdict, not a failure. Nothing is landed. The reviewers' `\n + `critiques are in ${recordPath}; widen the brief or the candidate set and re-run.`,\n },\n });\n }\n\n const winnerRef = record.synthesis?.winnerRef;\n const winner = winnerRef === undefined ? undefined : valueByRef.get(winnerRef);\n if (winnerRef === undefined || winner === undefined) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The deliberation produced no resolvable winner (synthesis ref ${winnerRef ?? 'absent'}); `\n + `record at ${recordPath}. A run that cannot name its winner has decided nothing, and landing `\n + 'anything here would attribute an unargued artifact to a panel.',\n },\n });\n }\n\n this.logDebug('structured deliberation complete', {\n deliberationRef, status: record.status, rounds: record.rounds.length, winnerRef, recordPath,\n });\n return { winner, record, recordPath };\n }\n}\n"]}
1
+ {"version":3,"file":"structured-deliberation.companion.service.js","sourceRoot":"","sources":["../../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EACT,uBAAuB,EAIvB,kBAAkB,GAEnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wC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E;oBACP,OAAO,EAAE,iEAAiE,SAAS,IAAI,QAAQ,KAAK;0BAChG,aAAa,UAAU,uEAAuE;0BAC9F,gEAAgE;iBACrE;aACF,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,kCAAkC,EAAE;YAChD,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU;SAC5F,CAAC,CAAC;QACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AAxKY,sCAAsC;IADlD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,CAAA;IAErD,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;qCAPQ,aAAa;QAE1C,0BAA0B;QAEnB,0BAA0B,UAIzB,4BAA4B;GAZ1D,sCAAsC,CAwKlD","sourcesContent":["import {\n type MetaWorkflow_PlaybookDeliberation,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n ActorsSystemBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationPlan,\n DeliberationStatus,\n type DeliberationRecord,\n} from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { DeliberationCompanionService } from './deliberation.companion.service';\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/** How one structured candidate is produced or revised — supplied by the caller, which owns the schema. */\nexport interface StructuredCandidateProducer {\n /** Identity of the agent used by the caller's initial/revision callbacks. The caller owns registry resolution; this service retains its nonempty identity in the review record. */\n readonly agentRef: string;\n /**\n * Produce candidate `index` of `total`. The caller varies its own prompt so the\n * candidates genuinely differ; this service never composes prompts, because the\n * brief belongs to whatever family is being deliberated.\n */\n produceInitial(index: number, total: number): Promise<unknown>;\n /** Revise `parent` against the coordinator's deterministic revision prompt. */\n produceRevision(parent: unknown, revisionPrompt: string): Promise<unknown>;\n /**\n * OPTIONAL human-readable framing rendered ABOVE the candidate's JSON — never\n * instead of it. See `DeliberationCandidateContent`: the engine always renders the\n * value, so a projection that drifts cannot cause the panel to score prose while\n * the winner is data.\n */\n project?(value: unknown): string | undefined;\n}\n\nexport interface StructuredDeliberationResult {\n /** The winning candidate's value — what the caller lands. */\n readonly winner: unknown;\n readonly record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n readonly recordPath: string;\n}\n\n/**\n * Runs an expert panel over STRUCTURED candidates.\n *\n * The sibling of `LogoDeliberationCompanionService` for the third subject kind, and\n * built the same way: charter reading and narrowness gating are delegated to the\n * shared `DeliberationCompanionService` seams (`readCommittedCharters`, `bindExpert`),\n * so the working TEXT route is untouched and there is one implementation of \"who may\n * sit on this panel\".\n *\n * Deliberately GENERIC over the family. It knows nothing about placement, or any\n * other artifact: the caller owns the schema, the brief and the prompts, and hands in\n * a producer. That keeps this service from accumulating a per-family branch every\n * time another artifact becomes worth arguing over.\n */\n@injectable()\nexport class StructuredDeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.DeliberationService)\n private readonly deliberationComposer: DeliberationCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('StructuredDeliberationCompanionService');\n this.logger.setDebugTypeLogging('StructuredDeliberationCompanionService', true);\n }\n\n public async run(input: {\n /** The panel, as the playbook declared it. */\n readonly panel: MetaWorkflow_PlaybookDeliberation;\n /** The assembled brief every pass is grounded on — the caller's, not this service's. */\n readonly briefContext: string;\n /** Correlation label, e.g. `placement-plan`. Used in the deliberation ref. */\n readonly label: string;\n readonly producer: StructuredCandidateProducer;\n readonly traceContext?: AgentTraceContext;\n }): Promise<StructuredDeliberationResult> {\n const { panel, producer } = input;\n if (typeof producer.agentRef !== 'string' || producer.agentRef.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation must name the agent that produces its candidates and revisions.' },\n });\n }\n const deliberationRef = `delib-${input.label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef);\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n\n // ── Panel: committed charters → narrowness-gated bindings (shared seams) ──\n const charters = await this.deliberationComposer.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const reviewers = panel.reviewerRoleRefs.map((roleRef) =>\n this.deliberationComposer.bindExpert(roleRef, charterByRole, { reviewDomain: panel.workDomain }));\n const coordinator = this.deliberationComposer.bindExpert(panel.coordinatorRoleRef, charterByRole, {});\n const rubricDeriverRole = panel.rubricDeriverRoleRef ?? panel.reviewerRoleRefs[0]!;\n const rubricDeriver = this.deliberationComposer.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: panel.workDomain,\n });\n\n // ── Initial candidates: persist bytes, hand locators + payload to the engine ──\n /*\n * Every candidate VALUE this run produced, keyed by ref — initial and revised alike.\n *\n * Necessary because the persisted `DeliberationRecord` carries only refs and\n * storage locators, never payloads (the engine never holds candidate bytes, RF-2).\n * A first cut resolved the winner from `record.rounds[].candidateSet` and would\n * have resolved any REVISED winner to `undefined` — which is most of them, since\n * revision is the point of a multi-round panel.\n */\n const valueByRef = new Map<string, unknown>();\n\n const persist = async (ref: string, value: unknown): Promise<DeliberationCandidateInput> => {\n const fileName = `${ref}.json`;\n await writeFile(resolve(candidatesDirAbs, fileName), `${JSON.stringify(value, null, 2)}\\n`, 'utf8');\n valueByRef.set(ref, value);\n const projection = producer.project?.(value);\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: {\n kind: FlowsActors_IO_PartKind.STRUCTURED,\n value,\n ...(projection === undefined ? {} : { projection }),\n },\n };\n };\n\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (let index = 0; index < panel.candidateCount; index += 1) {\n const value = await producer.produceInitial(index, panel.candidateCount);\n initialCandidates.push(await persist(`c${index + 1}`, value));\n }\n if (initialCandidates.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation produced no candidates — there is nothing to deliberate over.' },\n });\n }\n\n let revisionSequence = 0;\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: panel.workDomain,\n subjectKind: FlowsActors_IO_PartKind.STRUCTURED,\n briefContext: input.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n // The revision producer is the CALLER's structured generator, not the text\n // producer agent; this ref is the audit stamp for who produced revisions, and\n // naming the text agent would be a lie about what ran.\n producerAgentRef: producer.agentRef,\n producer: {\n produceRevision: async (parent, revisionPrompt) => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.STRUCTURED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The STRUCTURED deliberation route cannot revise a non-structured candidate.' },\n });\n }\n const revised = await producer.produceRevision(parent.content.value, revisionPrompt);\n revisionSequence += 1;\n return persist(`${parent.ref}-rev${revisionSequence}`, revised);\n },\n },\n initialCandidates,\n roundBudget: panel.roundBudget ?? 2,\n shortlistSize: panel.shortlistSize ?? 2,\n };\n\n const record = await this.actorsSystemService.executeDeliberation(plan, input.traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(resolve(deliberationDirAbs, 'record.json'), `${JSON.stringify(record, null, 2)}\\n`, 'utf8');\n\n /*\n * Resolve the winner from the values THIS RUN produced, and fail loudly when the\n * ref does not resolve: a coordinator naming a candidate that does not exist must\n * never land an `undefined` artifact.\n */\n /*\n * A REJECTED panel is a RESULT, and it must not surface as \"something went wrong\".\n * The engine completed, every lens was heard, and the answer is \"none of these\" —\n * so the message says that, names the rejected count, and points at the record\n * where the critiques are. Reporting it as a missing winner would send the reader\n * looking for a defect in the machinery instead of at the candidates.\n */\n if (record.status === DeliberationStatus.REJECTED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The panel REJECTED every one of the ${initialCandidates.length} candidate(s) for `\n + `'${input.label}' — this is a verdict, not a failure. Nothing is landed. The reviewers' `\n + `critiques are in ${recordPath}; widen the brief or the candidate set and re-run.`,\n },\n });\n }\n\n const winnerRef = record.synthesis?.winnerRef;\n const winner = winnerRef === undefined ? undefined : valueByRef.get(winnerRef);\n if (winnerRef === undefined || winner === undefined) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The deliberation produced no resolvable winner (synthesis ref ${winnerRef ?? 'absent'}); `\n + `record at ${recordPath}. A run that cannot name its winner has decided nothing, and landing `\n + 'anything here would attribute an unargued artifact to a panel.',\n },\n });\n }\n\n this.logDebug('structured deliberation complete', {\n deliberationRef, status: record.status, rounds: record.rounds.length, winnerRef, recordPath,\n });\n return { winner, record, recordPath };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"load-committed-expert-agents.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/utils/load-committed-expert-agents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AASrF;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAAC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAC,CA4C5E"}
1
+ {"version":3,"file":"load-committed-expert-agents.d.ts","sourceRoot":"","sources":["../../../../../src/deliberations/utils/load-committed-expert-agents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AASrF;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAAC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAC,CA4C5E"}
@@ -1 +1 @@
1
- {"version":3,"file":"email-template.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../src/email/models/email-template.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,iBAAiB,EAA0D,MAAM,uBAAuB,CAAC;AAOlH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAoC1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAE1C,CAAC"}
1
+ {"version":3,"file":"email-template.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/email/models/email-template.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,iBAAiB,EAA0D,MAAM,uBAAuB,CAAC;AAOlH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAoC1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAE1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"email-template.actors-system.definitions.js","sourceRoot":"","sources":["../../../../src/email/models/email-template.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAqB,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAClH,OAAO,EAAE,mCAAmC,EAAE,oCAAoC,EAAE,uCAAuC,EAAuC,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAClQ,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,GAAG,EAAE,iCAAiC;IACtC,WAAW,EAAE,iCAAiC;IAC9C,MAAM,EAAE,wBAAwB,CAAC,MAAM;IACvC,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,8FAA8F;QAC9F,6CAA6C;QAC7C,kBAAkB,EAAE,uBAAuB,CAAC,oBAAoB;QAChE,YAAY,EAAE,wBAAwB,CAAC,aAAa;QACpD,WAAW,EAAE,GAAG,EAAE,mDAAmD;QACrE,aAAa,EAAE,CAAC;gBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;gBAC9C,gBAAgB,EAAE,KAAK;aACxB,CAAC;QACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;KAC1C;IACD,mBAAmB,EAAE;QACnB,YAAY,EAAE,wBAAwB,CAAC,aAAa;QACpD,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,mCAAmC;QAChD,YAAY,EAAE,oCAAoC;QAClD,sBAAsB,EAAE,uCAAuC;KAClB;IAC/C,UAAU,EAAE;QACV,IAAI,EAAE;;kGAEwF;QAC9F,OAAO,EAAE;;;qFAGwE;QACjF,SAAS,EAAE,4BAA4B,CAAC,UAAU;QAClD,YAAY,EAAE,EAAE;KACjB;IACD,SAAS,EAAE,0BAA0B;CACtC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAwB;IAC9C,4BAA4B;CAC7B,CAAC","sourcesContent":["/**\n * Email Template Generation Agent Definition — COMPANION-OWNED.\n *\n * Defines the LLM agent the dev companion invokes to scaffold the\n * **file-based** email-template authoring artifacts:\n * - `template.tsx` — a typed `EmailTemplateDefinition<L>` exporting\n * `subject` + `body` functions consuming `EmailTemplateProps<L>`.\n * - `labels.<locale>.ts` — co-located per-locale label maps.\n *\n * This is a build-time generation agent with the SAME ownership tier as the\n * labelling / logo agents: defined and registered by the companion, NOT\n * shipped as an engine default. Its only live consumer is the companion's\n * `email-template.companion.service.ts` (`generateTemplateArtifactsWithAgent`),\n * which invokes it by `agentRef: 'email-template.generation.agent'` and writes\n * the returned `templateSource` + `labels` to disk before calling\n * `refreshEmailTemplateRegistry()`.\n *\n * The engine owns only the generic execution MACHINERY (AgentsBackendService,\n * the LLM transport) + the runtime `EmailTemplateRegistryBackendService` that\n * reads the scaffolded files from the filesystem. The build-time agent that\n * writes them lives here, where it is consumed.\n *\n * (Relocated from `@wildo-ai/saas-backend-lib` — an engine runtime library —\n * because it is companion-only build-time tooling, never used by an engine\n * runtime service.)\n */\n\nimport { FlowsActors_Agent, FlowsActors_Agent_Status, FlowsActors_Agent_Skill_Type } from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateTextInputSchema, LLMProvider_GenerateTextOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationDefinitionBase, LLMProvider_OperationKey, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport {\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\n\n/**\n * Agent for scaffolding **file-based** email-template artifacts\n * (`template.tsx` + `labels.<locale>.ts`) via an LLM call.\n *\n * Uses `GENERATE_TEXT` because the output is raw code (TSX source + a JSON\n * labels map embedded in the response) rather than a structured object. The\n * companion service prompts the agent to return\n * `{ templateSource: string, labels: Record<string, string> }`, then parses,\n * validates, and writes those artifacts to disk before refreshing\n * `EmailTemplateRegistryBackendService`.\n */\nexport const emailTemplateGenerationAgent: FlowsActors_Agent = {\n ref: 'email-template.generation.agent',\n displayName: 'Email Template Generation Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'openai',\n // STRUCTURED_AUTHORING: copy generated against a template (#439). Resolves to `gpt-5.6-terra`\n // on `openai` today — the model this pinned.\n modelApplicability: LLM_Model_Applicability.STRUCTURED_AUTHORING,\n operationKey: LLMProvider_OperationKey.GENERATE_TEXT,\n temperature: 0.4, // Slightly higher for creative template generation\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_TEXT,\n providerRef: 'openai',\n inputSchema: LLMProvider_GenerateTextInputSchema,\n outputSchema: LLMProvider_GenerateTextOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role: `You are an expert email template developer specializing in React Email components.\nYour task is to generate professional, accessible, and visually appealing email templates using TSX syntax.\nYou create templates that work across all major email clients (Gmail, Outlook, Apple Mail, etc.).`,\n persona: `You write clean, maintainable TSX code with proper TypeScript types.\nYou follow email best practices: inline styles, table-based layouts for compatibility, mobile-responsive design.\nYou use the provided predefined components and design tokens consistently.\nYou never use external APIs, fetch calls, or any code that could be a security risk.`,\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n instructions: [],\n },\n createdAt: '2024-01-01T00:00:00.000Z',\n};\n\n/**\n * Aggregate list of companion email agents, spread into the companion\n * bootstrap's `flowsActorsRegistry.agents` in `src/index.ts`. Currently a\n * singleton; new email-related build-time agents belong here.\n */\nexport const emailAgents: FlowsActors_Agent[] = [\n emailTemplateGenerationAgent,\n];\n"]}
1
+ {"version":3,"file":"email-template.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/email/models/email-template.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAqB,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAClH,OAAO,EAAE,mCAAmC,EAAE,oCAAoC,EAAE,uCAAuC,EAAuC,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAClQ,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,GAAG,EAAE,iCAAiC;IACtC,WAAW,EAAE,iCAAiC;IAC9C,MAAM,EAAE,wBAAwB,CAAC,MAAM;IACvC,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,8FAA8F;QAC9F,6CAA6C;QAC7C,kBAAkB,EAAE,uBAAuB,CAAC,oBAAoB;QAChE,YAAY,EAAE,wBAAwB,CAAC,aAAa;QACpD,WAAW,EAAE,GAAG,EAAE,mDAAmD;QACrE,aAAa,EAAE,CAAC;gBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;gBAC9C,gBAAgB,EAAE,KAAK;aACxB,CAAC;QACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;KAC1C;IACD,mBAAmB,EAAE;QACnB,YAAY,EAAE,wBAAwB,CAAC,aAAa;QACpD,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,mCAAmC;QAChD,YAAY,EAAE,oCAAoC;QAClD,sBAAsB,EAAE,uCAAuC;KAClB;IAC/C,UAAU,EAAE;QACV,IAAI,EAAE;;kGAEwF;QAC9F,OAAO,EAAE;;;qFAGwE;QACjF,SAAS,EAAE,4BAA4B,CAAC,UAAU;QAClD,YAAY,EAAE,EAAE;KACjB;IACD,SAAS,EAAE,0BAA0B;CACtC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAwB;IAC9C,4BAA4B;CAC7B,CAAC","sourcesContent":["/**\n * Email Template Generation Agent Definition — COMPANION-OWNED.\n *\n * Defines the LLM agent the dev companion invokes to scaffold the\n * **file-based** email-template authoring artifacts:\n * - `template.tsx` — a typed `EmailTemplateDefinition<L>` exporting\n * `subject` + `body` functions consuming `EmailTemplateProps<L>`.\n * - `labels.<locale>.ts` — co-located per-locale label maps.\n *\n * This is a build-time generation agent with the SAME ownership tier as the\n * labelling / logo agents: defined and registered by the companion, NOT\n * shipped as an engine default. Its only live consumer is the companion's\n * `email-template.companion.service.ts` (`generateTemplateArtifactsWithAgent`),\n * which invokes it by `agentRef: 'email-template.generation.agent'` and writes\n * the returned `templateSource` + `labels` to disk before calling\n * `refreshEmailTemplateRegistry()`.\n *\n * The engine owns only the generic execution MACHINERY (AgentsBackendService,\n * the LLM transport) + the runtime `EmailTemplateRegistryBackendService` that\n * reads the scaffolded files from the filesystem. The build-time agent that\n * writes them lives here, where it is consumed.\n *\n * (Relocated from `@wildo-ai/saas-backend-lib` — an engine runtime library —\n * because it is companion-only build-time tooling, never used by an engine\n * runtime service.)\n */\n\nimport { FlowsActors_Agent, FlowsActors_Agent_Status, FlowsActors_Agent_Skill_Type } from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateTextInputSchema, LLMProvider_GenerateTextOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationDefinitionBase, LLMProvider_OperationKey, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport {\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\n\n/**\n * Agent for scaffolding **file-based** email-template artifacts\n * (`template.tsx` + `labels.<locale>.ts`) via an LLM call.\n *\n * Uses `GENERATE_TEXT` because the output is raw code (TSX source + a JSON\n * labels map embedded in the response) rather than a structured object. The\n * companion service prompts the agent to return\n * `{ templateSource: string, labels: Record<string, string> }`, then parses,\n * validates, and writes those artifacts to disk before refreshing\n * `EmailTemplateRegistryBackendService`.\n */\nexport const emailTemplateGenerationAgent: FlowsActors_Agent = {\n ref: 'email-template.generation.agent',\n displayName: 'Email Template Generation Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'openai',\n // STRUCTURED_AUTHORING: copy generated against a template (#439). Resolves to `gpt-5.6-terra`\n // on `openai` today — the model this pinned.\n modelApplicability: LLM_Model_Applicability.STRUCTURED_AUTHORING,\n operationKey: LLMProvider_OperationKey.GENERATE_TEXT,\n temperature: 0.4, // Slightly higher for creative template generation\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_TEXT,\n providerRef: 'openai',\n inputSchema: LLMProvider_GenerateTextInputSchema,\n outputSchema: LLMProvider_GenerateTextOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role: `You are an expert email template developer specializing in React Email components.\nYour task is to generate professional, accessible, and visually appealing email templates using TSX syntax.\nYou create templates that work across all major email clients (Gmail, Outlook, Apple Mail, etc.).`,\n persona: `You write clean, maintainable TSX code with proper TypeScript types.\nYou follow email best practices: inline styles, table-based layouts for compatibility, mobile-responsive design.\nYou use the provided predefined components and design tokens consistently.\nYou never use external APIs, fetch calls, or any code that could be a security risk.`,\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n instructions: [],\n },\n createdAt: '2024-01-01T00:00:00.000Z',\n};\n\n/**\n * Aggregate list of companion email agents, spread into the companion\n * bootstrap's `flowsActorsRegistry.agents` in `src/index.ts`. Currently a\n * singleton; new email-related build-time agents belong here.\n */\nexport const emailAgents: FlowsActors_Agent[] = [\n emailTemplateGenerationAgent,\n];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"email-spec-context-loader.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/email/services/email-spec-context-loader.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAK7E;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBACa,sCAAsC;IAMZ,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IANrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IACxF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA8C;IAC3E,OAAO,CAAC,gBAAgB,CAAiD;gBAGnB,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB;IAKvG;;;;OAIG;IACH;;;;OAIG;IACU,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAO9F;;;;;OAKG;IACU,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAO/F;;;;;;OAMG;YACW,YAAY;IAwC1B;;;;;OAKG;YACW,oBAAoB;CAmBnC"}
1
+ {"version":3,"file":"email-spec-context-loader.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/email/services/email-spec-context-loader.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAK7E;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBACa,sCAAsC;IAMZ,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IANrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IACxF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA8C;IAC3E,OAAO,CAAC,gBAAgB,CAAiD;gBAGnB,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB;IAKvG;;;;OAIG;IACH;;;;OAIG;IACU,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAO9F;;;;;OAKG;IACU,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAO/F;;;;;;OAMG;YACW,YAAY;IAwC1B;;;;;OAKG;YACW,oBAAoB;CAmBnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"email-spec-context-loader.companion.service.js","sourceRoot":"","sources":["../../../../src/email/services/email-spec-context-loader.companion.service.ts"],"names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AAO,GAAG,MAAM,kCAAkC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAChF,IAAI,CAAC,gBAAgB;gBAClB,OAAoF;qBAClF,iCAAiC,IAAI,EAAE,CAAC;YAC7C,IAAI,CAAC,QAAQ,CAAC,6CAA6C,EAAE;gBAC3D,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM;aACjD,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,iGAAiG,EACjG,EAAE,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAAE,CACpC,CAAC;YACF,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;QAC7B,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;CACF,CAAA;AAlHY,sCAAsC;IADlD,UAAU,EAAE;IAOR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAPxC,sCAAsC,CAkHlD","sourcesContent":["import { inject, injectable } from 'inversify';\nimport { SAAS_SERVICE_TYPES , describeCaughtError} from '@wildo-ai/saas-backend-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport type { SystemEmailTemplateSpecification } from '@wildo-ai/saas-specifications';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { renderSystemEmailTemplateSpecificationContextPart } from '../../core/specifications/system-email-template-specification-context.factory';\nimport { SpecificationContextTemplateId } from '../../core/specifications/specification-context-factory.models';\n\n/**\n * Resolved authored-spec context for one email template, ready to inject into\n * the generation prompt.\n */\nexport interface EmailSpecContext {\n /**\n * Rendered `SystemEmailTemplateSpecification` markdown (purpose, tone,\n * per-slot text-slot meaning, event-data meaning, business constraints) —\n * the body of the prompt's `# Email purpose & contract` block.\n */\n description: string;\n}\n\n/**\n * Loads the authored `SystemEmailTemplateSpecification` for a system-email\n * `templateRef` and renders it into LLM-ready markdown for the email\n * generation prompt.\n *\n * This is the email analogue of `LabellingSpecContextLoaderCompanionService`:\n * it resolves the SAME `systemEmailTemplateSpecifications` companion-export the\n * `wildo context info` introspection lane resolves (keyed by `templateRef`), and reuses the\n * SAME renderer the spec-context dispatcher uses\n * (`renderSystemEmailTemplateSpecificationContextPart`). DD1 picks the\n * `CUSTOM_IMPLEMENTATION_CONTEXT` concern — it bundles purpose + tone +\n * text-slot meaning + event-data + business constraints, the shape needed to\n * author the TSX + labels (translation context is a separate concern used by\n * the translate path).\n *\n * Companion rule: ALWAYS warn when context cannot be located, NEVER throw —\n * generation degrades to the ref + app name + current source only. Results are\n * cached per `templateRef`; the exports map is loaded once.\n */\n@injectable()\nexport class EmailSpecContextLoaderCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private readonly contextCache = new Map<string, EmailSpecContext | null>();\n private systemEmailSpecs: SystemEmailTemplateSpecification | null = null;\n\n 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('EmailSpecContextLoader');\n }\n\n /**\n * Resolve + render the authored spec context for a system-email\n * `templateRef`. Returns `undefined` (after a soft warning) when no authored\n * spec exists for the ref or rendering fails — never throws.\n */\n /**\n * Generation context (DD1: the `CUSTOM_IMPLEMENTATION_CONTEXT` concern) —\n * purpose, tone, text-slot meaning, event-data, business constraints + impl\n * references. For the `generate` prompt that authors the TSX + labels.\n */\n public async loadGenerationContext(templateRef: string): Promise<EmailSpecContext | undefined> {\n return this.loadRendered(\n templateRef,\n SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_CUSTOM_IMPLEMENTATION_CONTEXT,\n );\n }\n\n /**\n * Translation context (the `TRANSLATION_CONTEXT` concern) — purpose, tone,\n * and per-slot meaning framed for terminology/tone fidelity. For the\n * `translate` prompt. Mirrors how the labelling translate path feeds the\n * translation context (vs the richer custom-impl context generation uses).\n */\n public async loadTranslationContext(templateRef: string): Promise<EmailSpecContext | undefined> {\n return this.loadRendered(\n templateRef,\n SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_TRANSLATION_CONTEXT,\n );\n }\n\n /**\n * Resolve + render the authored spec context for a system-email\n * `templateRef` under the requested concern. Returns `undefined` (after a\n * soft warning) when no authored spec exists for the ref or rendering fails —\n * never throws. Cached per `(templateRef, templateId)` since the two concerns\n * render different markdown.\n */\n private async loadRendered(\n templateRef: string,\n templateId:\n | SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_CUSTOM_IMPLEMENTATION_CONTEXT\n | SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_TRANSLATION_CONTEXT,\n ): Promise<EmailSpecContext | undefined> {\n const cacheKey = `${templateRef}::${templateId}`;\n if (this.contextCache.has(cacheKey)) {\n return this.contextCache.get(cacheKey) ?? undefined;\n }\n\n const specs = await this.loadSystemEmailSpecs();\n const specification = specs[templateRef];\n\n if (!specification) {\n this.logger.warn(\n `No system-email-template specification found for \"${templateRef}\". `\n + 'The email will be generated/translated without authored spec context '\n + '(purpose / tone / text-slot meaning / event-data / business constraints).',\n { templateRef },\n );\n this.contextCache.set(cacheKey, null);\n return undefined;\n }\n\n try {\n const part = renderSystemEmailTemplateSpecificationContextPart(templateRef, specification, templateId);\n const ctx: EmailSpecContext = { description: part.markdown };\n this.contextCache.set(cacheKey, ctx);\n return ctx;\n } catch (err: unknown) {\n this.logger.warn(\n `Failed to render system-email-template specification context for \"${templateRef}\"; proceeding without it.`,\n { templateRef, error: describeCaughtError(err) },\n );\n this.contextCache.set(cacheKey, null);\n return undefined;\n }\n }\n\n /**\n * Lazily load the merged `systemEmailTemplateSpecifications` map from the\n * specifications companion exports (engine overlays + any app overlays).\n * Loaded once and cached. Best-effort: a load failure degrades email\n * generation to generic context rather than breaking the run.\n */\n private async loadSystemEmailSpecs(): Promise<SystemEmailTemplateSpecification> {\n if (this.systemEmailSpecs) return this.systemEmailSpecs;\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n this.systemEmailSpecs =\n (exports as { systemEmailTemplateSpecifications?: SystemEmailTemplateSpecification })\n .systemEmailTemplateSpecifications ?? {};\n this.logDebug('Loaded system-email-template specifications', {\n count: Object.keys(this.systemEmailSpecs).length,\n });\n } catch (err: unknown) {\n this.logger.warn(\n 'Failed to load system-email-template specifications; email generation will use generic context.',\n { error: describeCaughtError(err) },\n );\n this.systemEmailSpecs = {};\n }\n return this.systemEmailSpecs;\n }\n}\n"]}
1
+ {"version":3,"file":"email-spec-context-loader.companion.service.js","sourceRoot":"","sources":["../../../../../src/email/services/email-spec-context-loader.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAG,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAIrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,wDAAwD,CAAC;AAC5G,OAAO,EAAE,iDAAiD,EAAE,MAAM,+EAA+E,CAAC;AAClJ,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAehH;;;;;;;;;;;;;;;;;;GAkBG;AAEI,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAMK;IACe;IANpD,QAAQ,CAA+D;IACvE,YAAY,GAAG,IAAI,GAAG,EAAmC,CAAC;IACnE,gBAAgB,GAA4C,IAAI,CAAC;IAEzE,YACsD,MAAqB,EACN,gBAAkC;QADjD,WAAM,GAAN,MAAM,CAAe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AAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAPxC,sCAAsC,CAkHlD","sourcesContent":["import { inject, injectable } from 'inversify';\nimport { SAAS_SERVICE_TYPES , describeCaughtError} from '@wildo-ai/saas-backend-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport type { SystemEmailTemplateSpecification } from '@wildo-ai/saas-specifications';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { renderSystemEmailTemplateSpecificationContextPart } from '../../core/specifications/system-email-template-specification-context.factory';\nimport { SpecificationContextTemplateId } from '../../core/specifications/specification-context-factory.models';\n\n/**\n * Resolved authored-spec context for one email template, ready to inject into\n * the generation prompt.\n */\nexport interface EmailSpecContext {\n /**\n * Rendered `SystemEmailTemplateSpecification` markdown (purpose, tone,\n * per-slot text-slot meaning, event-data meaning, business constraints) —\n * the body of the prompt's `# Email purpose & contract` block.\n */\n description: string;\n}\n\n/**\n * Loads the authored `SystemEmailTemplateSpecification` for a system-email\n * `templateRef` and renders it into LLM-ready markdown for the email\n * generation prompt.\n *\n * This is the email analogue of `LabellingSpecContextLoaderCompanionService`:\n * it resolves the SAME `systemEmailTemplateSpecifications` companion-export the\n * `wildo context info` introspection lane resolves (keyed by `templateRef`), and reuses the\n * SAME renderer the spec-context dispatcher uses\n * (`renderSystemEmailTemplateSpecificationContextPart`). DD1 picks the\n * `CUSTOM_IMPLEMENTATION_CONTEXT` concern — it bundles purpose + tone +\n * text-slot meaning + event-data + business constraints, the shape needed to\n * author the TSX + labels (translation context is a separate concern used by\n * the translate path).\n *\n * Companion rule: ALWAYS warn when context cannot be located, NEVER throw —\n * generation degrades to the ref + app name + current source only. Results are\n * cached per `templateRef`; the exports map is loaded once.\n */\n@injectable()\nexport class EmailSpecContextLoaderCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private readonly contextCache = new Map<string, EmailSpecContext | null>();\n private systemEmailSpecs: SystemEmailTemplateSpecification | null = null;\n\n 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('EmailSpecContextLoader');\n }\n\n /**\n * Resolve + render the authored spec context for a system-email\n * `templateRef`. Returns `undefined` (after a soft warning) when no authored\n * spec exists for the ref or rendering fails — never throws.\n */\n /**\n * Generation context (DD1: the `CUSTOM_IMPLEMENTATION_CONTEXT` concern) —\n * purpose, tone, text-slot meaning, event-data, business constraints + impl\n * references. For the `generate` prompt that authors the TSX + labels.\n */\n public async loadGenerationContext(templateRef: string): Promise<EmailSpecContext | undefined> {\n return this.loadRendered(\n templateRef,\n SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_CUSTOM_IMPLEMENTATION_CONTEXT,\n );\n }\n\n /**\n * Translation context (the `TRANSLATION_CONTEXT` concern) — purpose, tone,\n * and per-slot meaning framed for terminology/tone fidelity. For the\n * `translate` prompt. Mirrors how the labelling translate path feeds the\n * translation context (vs the richer custom-impl context generation uses).\n */\n public async loadTranslationContext(templateRef: string): Promise<EmailSpecContext | undefined> {\n return this.loadRendered(\n templateRef,\n SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_TRANSLATION_CONTEXT,\n );\n }\n\n /**\n * Resolve + render the authored spec context for a system-email\n * `templateRef` under the requested concern. Returns `undefined` (after a\n * soft warning) when no authored spec exists for the ref or rendering fails —\n * never throws. Cached per `(templateRef, templateId)` since the two concerns\n * render different markdown.\n */\n private async loadRendered(\n templateRef: string,\n templateId:\n | SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_CUSTOM_IMPLEMENTATION_CONTEXT\n | SpecificationContextTemplateId.SYSTEM_EMAIL_TEMPLATE_TRANSLATION_CONTEXT,\n ): Promise<EmailSpecContext | undefined> {\n const cacheKey = `${templateRef}::${templateId}`;\n if (this.contextCache.has(cacheKey)) {\n return this.contextCache.get(cacheKey) ?? undefined;\n }\n\n const specs = await this.loadSystemEmailSpecs();\n const specification = specs[templateRef];\n\n if (!specification) {\n this.logger.warn(\n `No system-email-template specification found for \"${templateRef}\". `\n + 'The email will be generated/translated without authored spec context '\n + '(purpose / tone / text-slot meaning / event-data / business constraints).',\n { templateRef },\n );\n this.contextCache.set(cacheKey, null);\n return undefined;\n }\n\n try {\n const part = renderSystemEmailTemplateSpecificationContextPart(templateRef, specification, templateId);\n const ctx: EmailSpecContext = { description: part.markdown };\n this.contextCache.set(cacheKey, ctx);\n return ctx;\n } catch (err: unknown) {\n this.logger.warn(\n `Failed to render system-email-template specification context for \"${templateRef}\"; proceeding without it.`,\n { templateRef, error: describeCaughtError(err) },\n );\n this.contextCache.set(cacheKey, null);\n return undefined;\n }\n }\n\n /**\n * Lazily load the merged `systemEmailTemplateSpecifications` map from the\n * specifications companion exports (engine overlays + any app overlays).\n * Loaded once and cached. Best-effort: a load failure degrades email\n * generation to generic context rather than breaking the run.\n */\n private async loadSystemEmailSpecs(): Promise<SystemEmailTemplateSpecification> {\n if (this.systemEmailSpecs) return this.systemEmailSpecs;\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n this.systemEmailSpecs =\n (exports as { systemEmailTemplateSpecifications?: SystemEmailTemplateSpecification })\n .systemEmailTemplateSpecifications ?? {};\n this.logDebug('Loaded system-email-template specifications', {\n count: Object.keys(this.systemEmailSpecs).length,\n });\n } catch (err: unknown) {\n this.logger.warn(\n 'Failed to load system-email-template specifications; email generation will use generic context.',\n { error: describeCaughtError(err) },\n );\n this.systemEmailSpecs = {};\n }\n return this.systemEmailSpecs;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { type EmailTemplateRegistryBackendService, LoggerService, ErrorBuilderBackendService, type AgentsBackendService } from '@wildo-ai/saas-backend-lib';
2
+ import { type ObjectContext, type PrimaryScopeContext, EmailSubmissionOutcome } from '@wildo-ai/saas-models';
2
3
  import { AvailableLanguage } from '@wildo-ai/presets-components-models';
3
4
  import type { CompanionContext } from '../../core/context/companion-context';
4
5
  import { TranslationPlacementCompanionService } from '../../core/introspection/services/translation-placement.companion.service';
@@ -8,6 +9,10 @@ import { type CompanionExecutionSessionContext } from '../../core/traceability/c
8
9
  import type { AppConfigurationService } from '@wildo-ai/saas-backend-lib';
9
10
  import type { EmailBackendService } from '@wildo-ai/saas-backend-lib';
10
11
  import type { EmailTemplateValidatorBackendService } from '@wildo-ai/saas-backend-lib';
12
+ /** Partial authoring-only object context; nested scope overrides retain synthetic defaults. */
13
+ export type EmailTemplateMockObjectContext = Omit<Partial<ObjectContext>, 'primaryScopeContext'> & {
14
+ primaryScopeContext?: Partial<PrimaryScopeContext>;
15
+ };
11
16
  /**
12
17
  * Request for generating email templates
13
18
  */
@@ -28,6 +33,7 @@ export interface PreviewEmailTemplateRequest {
28
33
  /** Mock context data for preview */
29
34
  mockContext?: {
30
35
  currentObject?: Record<string, unknown>;
36
+ objectContext?: EmailTemplateMockObjectContext;
31
37
  userContext?: {
32
38
  email: string;
33
39
  name?: string;
@@ -59,6 +65,7 @@ export interface TestSendEmailRequest {
59
65
  /** Mock context data for test */
60
66
  mockContext?: {
61
67
  currentObject?: Record<string, unknown>;
68
+ objectContext?: EmailTemplateMockObjectContext;
62
69
  userContext?: {
63
70
  email: string;
64
71
  name?: string;
@@ -72,6 +79,10 @@ export interface TestSendEmailRequest {
72
79
  */
73
80
  export interface TestSendEmailResult {
74
81
  success: boolean;
82
+ submissionId: string;
83
+ outcome: EmailSubmissionOutcome;
84
+ retryable: boolean;
85
+ deduplicated?: boolean;
75
86
  templateRef: string;
76
87
  locale: AvailableLanguage;
77
88
  recipientEmail: string;
@@ -165,6 +176,13 @@ export declare class EmailTemplateCompanionService {
165
176
  * Generate primary-locale filesystem email template artifacts using LLM.
166
177
  */
167
178
  generateTemplates(request: GenerateEmailTemplatesRequest, sessionContext?: CompanionExecutionSessionContext): Promise<GenerateEmailTemplatesResult>;
179
+ /**
180
+ * Preview and test-send share the application's email logo resolver. Their synthetic names,
181
+ * object ids and recipients remain distinct. Scope overrides merge over branding/defaults;
182
+ * other object-context fields (parents and operation) survive without replacing that scope.
183
+ * This is an authoring context, not a replay of a notification producer's real resource context.
184
+ */
185
+ private buildMockObjectContext;
168
186
  /**
169
187
  * Preview an email template with mock context
170
188
  */
@@ -212,6 +230,18 @@ export declare class EmailTemplateCompanionService {
212
230
  * silently misroute generated email artifacts to the wrong app.
213
231
  */
214
232
  private getWorkspaceRoot;
233
+ /**
234
+ * Answer a template the application does not have yet from the delivered engine canon, with no model
235
+ * call. Answers whether the template now exists.
236
+ *
237
+ * `wildo init` copies the canon once, so an engine email added afterwards reached an existing
238
+ * application only by generating it — the cost the canon exists to avoid, for a template that is the
239
+ * same in every application. This is the email twin of the labelling run's base seeding. It copies
240
+ * the template and the labels of each locale the application serves, and NEVER overwrites: a file
241
+ * that exists is the application's, generated or edited. A template the canon does not carry — the
242
+ * application's own — is generated as before.
243
+ */
244
+ private seedTemplateFromDeliveredCanon;
215
245
  private assertResolvedEmailTargetsOrThrow;
216
246
  /**
217
247
  * Reload the backend email-definition modules and repopulate the in-memory registry so
@@ -1 +1 @@
1
- {"version":3,"file":"email-template.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/email/services/email-template.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,mCAAmC,EACxC,aAAa,EACb,0BAA0B,EAE1B,KAAK,oBAAoB,EAE1B,MAAM,4BAA4B,CAAC;AAqBpC,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qCAAqC,CAAC;AAa3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAK7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2EAA2E,CAAC;AACjI,OAAO,EAAE,4BAA4B,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,4BAA4B,CAChC,OAAO,EAAE,mCAAmC,EAC5C,cAAc,CAAC,EAAE,gCAAgC,GAChD,OAAO,CAAC,kCAAkC,CAAC;IAgN9C,OAAO,CAAC,8BAA8B;YAuBxB,qBAAqB;IAWnC,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,gCAAgC;IAIxC,OAAO,CAAC,sCAAsC;IAqD9C;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iCAAiC;IA2CzC;;;OAGG;YACW,4BAA4B;IAqD1C,OAAO,CAAC,yBAAyB;IAKjC,OAAO,CAAC,qCAAqC;YAgF/B,kCAAkC;IA6LhD;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAyC5B;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,6BAA6B;IAarC,OAAO,CAAC,qBAAqB;YAQf,8BAA8B;IAiL5C,OAAO,CAAC,sBAAsB;YAYhB,iBAAiB;YA8BjB,mBAAmB;YA8BnB,mBAAmB;IAyBjC,OAAO,CAAC,sBAAsB;IAkB9B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;YACW,yBAAyB;CAoCxC"}
1
+ {"version":3,"file":"email-template.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/email/services/email-template.companion.service.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,mCAAmC,EACxC,aAAa,EACb,0BAA0B,EAE1B,KAAK,oBAAoB,EAE1B,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,sBAAsB,EAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qCAAqC,CAAC;AAiB3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAK7E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