@wildo-ai/dev-companion 1.1.3 → 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 (1095) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__time-gov.probe.d.mts +0 -0
  3. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  4. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  5. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  8. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
  9. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.js +34 -53
  11. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  12. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
  13. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  14. package/dist/esm/brand/services/logo-deliberation.companion.service.js +9 -8
  15. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  16. package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
  17. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  18. package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
  19. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  20. package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
  21. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  22. package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
  23. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  24. package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
  25. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
  27. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +143 -0
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
  30. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
  31. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +177 -14
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  34. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +215 -8
  35. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
  37. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
  38. package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
  39. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
  40. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +98 -0
  41. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
  42. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +135 -0
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
  44. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
  45. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
  46. package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
  47. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
  50. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
  51. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +46 -0
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
  54. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +135 -0
  55. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +131 -0
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
  58. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +371 -0
  59. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +717 -76
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  62. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +2056 -388
  63. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +109 -0
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
  66. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +186 -0
  67. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +227 -29
  69. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  70. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +666 -125
  71. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  72. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +57 -10
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  74. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +127 -10
  75. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  76. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +16 -0
  77. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  78. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +17 -0
  79. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  80. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -1
  81. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  82. package/dist/esm/companion-api/companion-api.schemas.d.ts +164 -87
  83. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  84. package/dist/esm/companion-api/companion-api.schemas.js +52 -6
  85. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  86. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
  87. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
  88. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +109 -0
  89. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
  90. package/dist/esm/companion-api/controllers/companion.controller.d.ts +201 -16
  91. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  92. package/dist/esm/companion-api/controllers/companion.controller.js +660 -117
  93. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  94. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +47 -5
  95. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  96. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +47 -5
  97. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
  99. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
  100. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
  101. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
  102. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
  103. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  105. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  106. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
  107. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  108. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts +54 -0
  109. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
  110. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
  111. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
  112. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  113. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  114. package/dist/esm/core/config/primary-language.companion.utils.js +12 -0
  115. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  116. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  117. package/dist/esm/core/context/companion-context.js +4 -0
  118. package/dist/esm/core/context/companion-context.js.map +1 -1
  119. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
  120. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  121. package/dist/esm/core/context/companion-package-loaders.companion.js +181 -7
  122. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  123. package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
  124. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
  125. package/dist/esm/core/context/draft-family-values.companion.js +49 -0
  126. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
  127. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  128. package/dist/esm/core/inject/models/container.js +28 -11
  129. package/dist/esm/core/inject/models/container.js.map +1 -1
  130. package/dist/esm/core/inject/models/service-types.d.ts +12 -3
  131. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  132. package/dist/esm/core/inject/models/service-types.js +14 -3
  133. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  134. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  135. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +74 -2
  136. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  137. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +37 -1
  138. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  139. package/dist/esm/core/introspection/models/companion-introspection.models.js +55 -0
  140. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  141. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
  142. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
  143. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
  144. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
  145. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  146. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +636 -18
  147. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  148. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +592 -17
  149. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  150. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +1425 -94
  151. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  152. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +61 -4
  153. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  154. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +136 -10
  155. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  156. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  157. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +11 -0
  158. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  159. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +21 -0
  160. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  161. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +63 -4
  162. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  163. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  164. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
  165. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  166. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
  167. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +28 -15
  169. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  170. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +24 -0
  171. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  172. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +29 -5
  173. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  174. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
  175. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
  176. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
  177. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
  178. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +13 -15
  179. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  180. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  181. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts +2 -1
  182. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  183. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  185. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +85 -51
  186. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  187. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
  188. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  189. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
  190. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts +33 -0
  192. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
  193. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
  194. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
  195. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +12 -0
  196. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  198. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  199. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  200. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -102
  201. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  202. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +15 -0
  203. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +140 -46
  205. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  206. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +65 -2
  207. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  208. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +292 -49
  209. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  210. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts +79 -0
  211. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
  212. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
  213. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
  214. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  215. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +314 -212
  216. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  217. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
  218. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
  219. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
  220. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
  221. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
  222. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
  223. package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
  224. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
  225. package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
  226. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
  227. package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
  228. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
  229. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
  230. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  231. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
  232. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  233. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts +7 -0
  234. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  235. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  236. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +3 -0
  237. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  238. package/dist/esm/core/lock/wildo-saas-lock.schemas.js +1 -0
  239. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  240. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
  241. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
  242. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
  243. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -0
  244. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  245. package/dist/esm/core/runtime/companion-startup-assembly.js +35 -1
  246. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  247. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
  248. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
  249. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
  250. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
  251. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +26 -14
  252. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  253. package/dist/esm/core/runtime/services/start-companion-application.service.js +243 -67
  254. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  255. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +3 -3
  256. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  257. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +35 -10
  258. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  259. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
  260. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  261. package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
  262. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  263. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  264. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  265. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  266. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js +6 -34
  267. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  268. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  269. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  270. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  271. package/dist/esm/core/specifications/resource-specification-context.factory.js +2 -0
  272. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  273. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
  274. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  275. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +16 -6
  276. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  277. package/dist/esm/core/traceability/companion-traceability.service.d.ts +21 -1
  278. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  279. package/dist/esm/core/traceability/companion-traceability.service.js +25 -1
  280. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  281. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +45 -0
  282. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
  283. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
  284. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
  285. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
  286. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
  287. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +118 -0
  288. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
  289. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +34 -0
  290. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
  291. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +280 -0
  292. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
  293. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  294. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
  295. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  296. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
  297. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  298. package/dist/esm/deliberations/services/deliberation.companion.service.js +61 -10
  299. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  300. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -1
  301. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  302. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +7 -4
  303. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  304. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  305. package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
  306. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  307. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
  308. package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
  309. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  310. package/dist/esm/email/services/email-template.companion.service.d.ts +30 -0
  311. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  312. package/dist/esm/email/services/email-template.companion.service.js +92 -19
  313. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  314. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +34 -0
  315. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
  316. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +130 -0
  317. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
  318. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +117 -5
  319. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  320. package/dist/esm/executions/services/companion-executions.companion.service.js +263 -10
  321. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  322. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  323. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
  324. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  325. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  326. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
  327. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  328. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +14 -24
  329. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  330. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +69 -68
  331. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  332. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts +8 -0
  333. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
  334. package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
  335. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
  336. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +1 -1
  337. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js +1 -1
  338. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  339. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts +4 -4
  340. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js +4 -4
  341. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  342. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts +2 -2
  343. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js +2 -2
  344. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  345. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +4 -2
  346. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  347. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +5 -3
  348. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  349. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts +2 -1
  350. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js +2 -1
  352. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  353. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts +1 -1
  354. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js +1 -1
  355. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  356. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts +6 -5
  357. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
  359. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  360. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts +3 -3
  361. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js +3 -3
  362. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  363. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -2
  364. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +2 -2
  365. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  366. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts +2 -1
  367. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  368. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js +2 -1
  369. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  370. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +1 -1
  371. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +1 -1
  372. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  373. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +1 -1
  374. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +1 -1
  375. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  376. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +43 -0
  377. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
  378. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +43 -0
  379. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
  380. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
  381. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
  382. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
  383. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
  384. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
  385. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
  386. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
  387. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
  388. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
  389. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js +3 -3
  390. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  391. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts +1 -1
  392. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js +1 -1
  393. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  394. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +2 -2
  395. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +2 -2
  396. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  397. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -1
  398. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  399. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +4 -1
  400. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  401. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts +10 -10
  402. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js +10 -10
  403. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  404. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +25 -13
  405. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +26 -14
  407. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  408. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts +1 -0
  409. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js +2 -1
  411. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  412. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts +17 -0
  413. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
  414. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
  415. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
  416. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
  417. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js +5 -5
  418. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  419. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts +1 -1
  420. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js +1 -1
  421. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  422. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts +1 -1
  423. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js +1 -1
  424. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  425. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts +16 -2
  426. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  427. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js +16 -2
  428. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  429. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts +3 -3
  430. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js +3 -3
  431. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  432. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts +8 -8
  433. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js +8 -8
  434. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  435. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +14 -14
  436. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +14 -14
  437. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  438. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +22 -6
  439. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  440. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +23 -7
  441. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  442. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts +2 -2
  443. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js +2 -2
  444. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  445. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts +1 -1
  446. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js +1 -1
  447. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  448. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +1 -1
  449. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js +1 -1
  450. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  451. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts +1 -1
  452. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js +1 -1
  453. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  454. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts +2 -2
  455. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js +2 -2
  456. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  457. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts +21 -0
  458. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
  459. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
  460. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
  461. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +1 -1
  462. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js +1 -1
  463. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  464. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts +1 -1
  465. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js +1 -1
  466. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  467. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts +2 -2
  468. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js +2 -2
  469. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  470. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts +1 -1
  471. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js +1 -1
  472. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  473. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +4 -5
  474. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  475. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +4 -5
  476. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  477. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts +4 -4
  478. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js +4 -4
  479. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  480. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts +2 -2
  481. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js +2 -2
  482. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  483. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts +1 -1
  484. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js +1 -1
  485. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  486. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts +1 -0
  487. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  488. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js +2 -1
  489. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  490. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +12 -6
  491. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  492. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +12 -6
  493. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  494. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
  495. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  496. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js +2 -1
  497. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  498. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +3 -2
  499. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  500. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +4 -3
  501. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  502. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts +3 -2
  503. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  504. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js +4 -3
  505. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  506. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +3 -1
  507. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  508. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +4 -2
  509. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  510. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts +3 -3
  511. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js +3 -3
  512. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  513. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts +1 -1
  514. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js +1 -1
  515. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  516. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +3 -3
  517. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +3 -3
  518. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  519. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts +15 -0
  520. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
  521. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
  522. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
  523. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
  524. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
  525. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
  526. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
  527. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +1 -1
  528. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js +1 -1
  529. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  530. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts +1 -1
  531. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js +1 -1
  532. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +4 -3
  534. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +4 -3
  536. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  537. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js +1 -1
  539. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts +3 -0
  541. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js +4 -1
  543. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts +1 -1
  545. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  547. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js +1 -1
  549. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts +22 -0
  563. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
  564. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
  565. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
  566. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
  567. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js +2 -2
  568. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts +6 -6
  570. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js +6 -6
  571. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts +3 -3
  573. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js +3 -3
  574. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +15 -8
  576. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +16 -9
  578. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +20 -0
  580. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
  581. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +20 -0
  582. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
  583. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +39 -20
  587. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +39 -20
  589. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts +5 -5
  591. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js +5 -5
  592. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
  597. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
  598. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
  599. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
  600. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
  601. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
  602. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
  603. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
  604. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
  605. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
  606. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts +15 -0
  608. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
  609. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
  610. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
  611. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
  612. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js +6 -4
  614. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  615. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts +10 -9
  616. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js +11 -10
  618. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  619. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
  620. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
  621. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
  622. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
  623. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts +5 -5
  624. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js +5 -5
  625. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  626. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +6 -6
  627. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +6 -6
  628. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  629. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts +7 -7
  630. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js +7 -7
  631. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  632. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts +1 -1
  633. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js +1 -1
  634. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  635. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts +1 -1
  636. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js +1 -1
  637. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  638. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts +4 -4
  639. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js +4 -4
  640. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  641. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts +24 -0
  642. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
  643. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
  644. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
  645. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
  646. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
  648. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  649. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +14 -10
  650. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +14 -10
  652. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  653. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts +6 -6
  654. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js +6 -6
  655. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  656. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts +11 -8
  657. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  658. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js +12 -9
  659. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  660. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts +9 -8
  661. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js +9 -8
  663. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  664. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts +25 -9
  665. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js +25 -9
  667. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  668. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts +1 -1
  669. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js +1 -1
  670. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  671. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts +2 -2
  672. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
  673. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  674. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts +1 -0
  675. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js +2 -1
  677. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  678. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts +25 -24
  679. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
  681. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  682. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts +1 -1
  683. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js +1 -1
  684. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  685. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +3 -1
  686. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +4 -2
  688. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  689. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
  690. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
  691. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  692. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +11 -11
  693. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +11 -11
  694. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  695. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +1 -1
  696. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +1 -1
  697. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  698. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +12 -0
  699. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  700. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +13 -1
  701. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  702. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts +6 -6
  703. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
  704. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  705. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
  706. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
  707. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  708. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
  709. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
  710. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  711. package/dist/esm/i18n/components/guidance_banner.en.d.ts +1 -1
  712. package/dist/esm/i18n/components/guidance_banner.en.js +1 -1
  713. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  714. package/dist/esm/i18n/components/guidance_checklist.en.d.ts +2 -2
  715. package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
  716. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  717. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
  718. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -1
  720. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  721. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts +1 -1
  722. package/dist/esm/i18n/components/guidance_onboarding_view.en.js +1 -1
  723. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  724. package/dist/esm/i18n/components/guidance_survey.en.d.ts +1 -0
  725. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  726. package/dist/esm/i18n/components/guidance_survey.en.js +2 -1
  727. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  728. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +1 -1
  729. package/dist/esm/i18n/components/progression_achievement_badge.en.js +1 -1
  730. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  731. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +5 -1
  732. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +6 -2
  734. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  735. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
  736. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
  737. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
  738. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +17 -0
  739. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
  740. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +252 -0
  741. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
  742. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
  743. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
  744. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +58 -0
  745. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
  746. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +96 -0
  747. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
  748. package/dist/esm/i18n/errors_messages/errors-messages.en.js +54 -0
  749. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
  750. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2014 -1
  751. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +516 -0
  753. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  754. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
  755. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  756. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
  757. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  758. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
  759. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  760. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
  761. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  762. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
  763. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
  764. package/dist/esm/i18n/resources/workbenchAspects.en.js +255 -0
  765. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
  766. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
  767. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
  768. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
  769. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
  770. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +89 -0
  771. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
  772. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +74 -0
  773. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
  774. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
  775. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  776. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
  777. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  778. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +80 -0
  779. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
  780. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +50 -0
  781. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
  782. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
  783. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
  784. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
  785. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
  786. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
  787. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
  788. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
  789. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
  790. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
  791. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
  792. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  793. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +108 -0
  794. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
  795. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +61 -0
  796. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
  797. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +99 -0
  798. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
  799. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +87 -0
  800. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
  801. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
  802. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
  803. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
  804. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
  805. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +83 -0
  806. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
  807. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +71 -0
  808. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
  809. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +159 -0
  810. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
  811. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +103 -0
  812. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
  813. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +142 -6
  814. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  815. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +103 -0
  816. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  817. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +94 -4
  818. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +79 -0
  820. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  821. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5074 -257
  822. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  823. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1201 -44
  824. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  825. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
  826. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
  828. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  829. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +97 -0
  830. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
  831. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +77 -0
  832. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
  833. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +272 -0
  834. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
  835. package/dist/esm/i18n/system_enums/application-creation.en.js +319 -0
  836. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
  837. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
  838. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
  839. package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
  840. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
  841. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
  842. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
  843. package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
  844. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
  845. package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
  846. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  847. package/dist/esm/i18n/system_enums/market.en.js +12 -2
  848. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  849. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +43 -0
  850. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
  851. package/dist/esm/i18n/system_enums/processor-register.en.js +43 -0
  852. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
  853. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
  854. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
  855. package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
  856. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
  857. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
  858. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
  859. package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
  860. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
  861. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
  862. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
  863. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
  864. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
  865. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +18 -0
  866. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
  867. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +18 -0
  868. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
  869. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
  870. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
  871. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
  872. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
  873. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +24 -0
  874. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
  875. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +24 -0
  876. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
  877. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +106 -0
  878. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  879. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +69 -0
  880. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  881. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  882. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
  883. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  884. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +68 -4
  885. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  886. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +320 -88
  887. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  888. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +11 -11
  889. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  890. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +61 -44
  891. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  892. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +139 -2
  893. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  894. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +521 -42
  895. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  896. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  897. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +156 -36
  898. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  899. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts +91 -0
  900. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
  901. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
  902. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
  903. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +27 -0
  904. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
  905. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
  906. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
  907. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +27 -0
  908. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  909. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js +27 -0
  910. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  911. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts +12 -0
  912. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  913. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -1
  914. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  915. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  916. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js +19 -0
  917. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  918. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
  919. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
  920. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
  921. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
  922. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
  923. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
  924. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
  925. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
  926. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  927. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -0
  928. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  929. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +108 -1
  930. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  931. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +289 -104
  932. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  933. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
  934. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  935. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +27 -3
  936. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  937. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
  938. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
  939. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +59 -0
  940. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
  941. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +117 -3
  942. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  943. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +277 -55
  944. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  945. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +27 -1
  946. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  947. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +43 -8
  948. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  949. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +50 -0
  950. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -0
  951. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +116 -0
  952. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -0
  953. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +46 -0
  954. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
  955. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
  956. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
  957. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
  958. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
  959. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
  960. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
  961. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +65 -0
  962. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
  963. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +83 -0
  964. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
  965. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +69 -7
  966. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  967. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +70 -7
  968. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  969. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  970. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +36 -9
  971. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  972. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +208 -0
  973. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
  974. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +273 -0
  975. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
  976. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +356 -0
  977. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
  978. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +417 -0
  979. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
  980. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
  981. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
  982. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
  983. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
  984. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  985. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
  986. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  987. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +65 -0
  988. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
  989. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +148 -0
  990. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
  991. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +933 -36
  992. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  993. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +2092 -134
  994. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  995. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +183 -23
  996. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  997. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +422 -6
  998. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  999. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +402 -16
  1000. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1001. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +1398 -70
  1002. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1003. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
  1004. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
  1005. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
  1006. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
  1007. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +29 -0
  1008. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
  1009. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +88 -0
  1010. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
  1011. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +47 -0
  1012. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
  1013. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +102 -0
  1014. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
  1015. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1016. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1017. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
  1018. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +81 -0
  1019. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
  1020. package/dist/esm/meta-workflows/services/dossier.companion.service.js +231 -0
  1021. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
  1022. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
  1023. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
  1024. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
  1025. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
  1026. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -1
  1027. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1028. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +200 -31
  1029. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1030. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts +16 -0
  1031. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
  1032. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
  1033. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
  1034. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +196 -1
  1035. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1036. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +380 -10
  1037. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1038. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
  1039. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
  1040. package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
  1041. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
  1042. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +57 -0
  1043. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1044. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +83 -3
  1045. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1046. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +980 -167
  1047. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1048. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +3410 -409
  1049. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1050. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +100 -0
  1051. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
  1052. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
  1053. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
  1054. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
  1055. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
  1056. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
  1057. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
  1058. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
  1059. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
  1060. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
  1061. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
  1062. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +148 -9
  1063. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1064. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +317 -85
  1065. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1066. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +27 -6
  1067. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1068. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +211 -20
  1069. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1070. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
  1071. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1072. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
  1073. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1074. package/package.json +18 -18
  1075. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
  1076. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
  1077. package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
  1078. package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
  1079. package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
  1080. package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
  1081. package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
  1082. package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
  1083. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
  1084. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
  1085. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
  1086. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
  1087. package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
  1088. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
  1089. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
  1090. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
  1091. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
  1092. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
  1093. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
  1094. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
  1095. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-view-specification-context.factory.js","sourceRoot":"","sources":["../../../../../src/core/specifications/onboarding-view-specification-context.factory.ts"],"names":[],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C3E,OAAO;gBACL,UAAU;gBACV,MAAM,EAAE,0BAA0B,CAAC,eAAe;gBAClD,OAAO,EAAE,2BAA2B,CAAC,yBAAyB;gBAC9D,eAAe;gBACf,KAAK;gBACL,QAAQ,EAAE,6BAA6B,CAAC;oBACtC,KAAK;oBACL,OAAO,EAAE,aAAa,CAAC,OAAO;oBAC9B,eAAe,EAAE,aAAa,CAAC,eAAe;oBAC9C,MAAM,EAAE,aAAa,CAAC,MAAM;oBAC5B,UAAU;oBACV,OAAO,EAAE,aAAa,CAAC,OAAO;oBAC9B,SAAS,EAAE,aAAa,CAAC,SAAS;oBAClC,eAAe,EAAE,wBAAwB;oBACzC,aAAa;oBACb,aAAa;oBACb,YAAY;oBACZ,qBAAqB;oBACrB,mBAAmB;oBACnB,KAAK;iBACN,CAAC;aACH,CAAC;QACJ,KAAK,8BAA8B,CAAC,+BAA+B;YACjE,OAAO;gBACL,UAAU;gBACV,MAAM,EAAE,0BAA0B,CAAC,eAAe;gBAClD,OAAO,EAAE,2BAA2B,CAAC,eAAe;gBACpD,eAAe;gBACf,KAAK;gBACL,QAAQ,EAAE,2BAA2B,CAAC;oBACpC,KAAK;oBACL,OAAO,EAAE,aAAa,CAAC,OAAO;oBAC9B,eAAe,EAAE,aAAa,CAAC,eAAe;oBAC9C,MAAM,EAAE,aAAa,CAAC,MAAM;oBAC5B,UAAU;oBACV,OAAO,EAAE,aAAa,CAAC,OAAO;oBAC9B,SAAS,EAAE,aAAa,CAAC,SAAS;oBAClC,wBAAwB;oBACxB,aAAa;oBACb,aAAa;oBACb,YAAY;oBACZ,qBAAqB;oBACrB,mBAAmB;oBACnB,KAAK;iBACN,CAAC;aACH,CAAC;IACN,CAAC;AACH,CAAC","sourcesContent":["import type {\n OnboardingViewSpecificationConfig,\n ResourceOnboardingViewSpecificationConfig,\n} from '@wildo-ai/saas-specifications';\n\nimport type { SpecificationMarkdownContextPart } from './specification-context-factory.models';\nimport {\n SpecificationContextConcern,\n SpecificationContextFamily,\n SpecificationContextTemplateId,\n} from './specification-context-factory.models';\nimport {\n buildTriggerLines,\n renderElementBlock,\n} from './onboarding-element-rendering.shared';\nimport {\n compileMarkdownTemplate,\n formatCodeSymbolRef,\n formatOwnerRefBullets,\n formatRequiredFeaturesBullets,\n toMarkdownListItems,\n} from './specification-context-factory.shared';\nimport { formatFeatureRefWithCrossLink } from './cross-registry-rendering.shared';\nimport { ONBOARDING_VIEW_ALL_INFORMATION_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-all-information.template';\nimport { ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template';\nimport { ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-development-usage-context.template';\nimport { ONBOARDING_VIEW_TRANSLATION_CONTEXT_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-translation-context.template';\n\n/**\n * Markdown context model for onboarding view specs. Mirrors the\n * system-email-template precedent: every required field on the spec\n * config maps to a required field here so the templates can drop\n * `{{#if}}` guards on the always-present sections (purpose,\n * successCriteria, uiRole, scope label).\n *\n * `scopeLabel` is computed at render time (`application` for\n * application-scope specs, `resource: <type>` for resource-scope\n * specs) — keeps a single render path for both factory variants\n * without leaking the `resourceType` field through the model when\n * absent.\n *\n * `elementBlocks` carries each `OnboardingViewElementSpecification`\n * as a pre-rendered multi-line markdown string (heading + Purpose +\n * one bullet per text slot). The template emits them inside a\n * single `## Per-element overlay` section so per-element grouping is\n * visible to companion prompts (Q4=b ground rule —\n * `### Element \\`<ref>\\` (\\`<elementType>\\`)`).\n */\ninterface OnboardingViewContextModel {\n title: string;\n purpose: string;\n successCriteria: string;\n uiRole: string;\n scopeLabel: string;\n useWhen?: string;\n avoidWhen?: string;\n textSlotLines?: Array<{ text: string }>;\n elementBlocks?: Array<{ markdown: string }>;\n /**\n * Pre-rendered trigger prose (type, route pattern, event name, delay,\n * required roles, F-12 deviation lines for `newUsersOnly` /\n * `triggerOnce`). Built via the shared `buildTriggerLines` so onboarding\n * views and guidance flows render the same trigger surface — see\n * `onboarding-element-rendering.shared.ts` for the per-line rendering\n * rules and `cross-registry-rendering.shared.ts` for role-ref\n * `(unknown)` decoration.\n */\n triggerLines?: Array<{ text: string }>;\n requiredFeaturesLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n implementationReferences?: Array<{ text: string }>;\n usageReferences?: Array<{ text: string }>;\n notes?: Array<{ text: string }>;\n}\n\nconst renderTranslationContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_TRANSLATION_CONTEXT_TEMPLATE,\n);\nconst renderCustomImplementationContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE,\n);\nconst renderDevelopmentUsageContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE,\n);\nconst renderAllInformationContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_ALL_INFORMATION_TEMPLATE,\n);\n\ntype OnboardingViewSpecAny =\n | OnboardingViewSpecificationConfig\n | ResourceOnboardingViewSpecificationConfig;\n\nfunction isResourceScoped(\n specification: OnboardingViewSpecAny,\n): specification is ResourceOnboardingViewSpecificationConfig {\n return typeof (specification as { resourceType?: unknown }).resourceType === 'string';\n}\n\nfunction buildScopeLabel(specification: OnboardingViewSpecAny): string {\n return isResourceScoped(specification)\n ? `resource: ${specification.resourceType}`\n : 'application';\n}\n\nfunction buildTextSlotLines(\n specification: OnboardingViewSpecAny,\n): Array<{ text: string }> | undefined {\n const textSlots = specification.textSlots ?? {};\n const lines = Object.entries(textSlots).flatMap(([slotName, slotSpec]) => {\n if (!slotSpec) {\n return [];\n }\n const whenSuffix = slotSpec.whenToUse ? ` Use when ${slotSpec.whenToUse}.` : '';\n const header = `${slotName}: ${slotSpec.purpose}${whenSuffix}`;\n const noteLines = slotSpec.notes?.map((note) => `${slotName} note: ${note}`) ?? [];\n return [header, ...noteLines];\n });\n return toMarkdownListItems(lines);\n}\n\n/**\n * Builds one multi-line markdown block per `elements[i]` following\n * the Q4=b convention: a `### Element` heading, a `Purpose:` line,\n * one bullet per authored `textSlots` key, and an optional `Notes:`\n * block. The block is pre-rendered as a single string so the\n * Handlebars template can emit it via `{{markdown}}` without losing\n * the per-element grouping.\n *\n * Delegates the per-element shape to the shared {@link renderElementBlock}\n * (also consumed by the guidance-flow twin). The shared helper carries\n * the F-13 blank-line-between-`Purpose:`-and-bullets fix; previously\n * each factory kept its own divergent local copy that silently drifted\n * away from the F-13 contract pinned by the renderer tests.\n */\nfunction buildElementBlocks(\n specification: OnboardingViewSpecAny,\n): Array<{ markdown: string }> | undefined {\n if (specification.elements.length === 0) {\n return undefined;\n }\n return specification.elements.map((element) => ({\n markdown: renderElementBlock(element),\n }));\n}\n\n/**\n * Render the optional `requiredFeatures` flow-gating block. Delegates\n * the structural shape to the shared {@link formatRequiredFeaturesBullets}\n * helper (header line + per-`limitChecks[i]` bullet) so the onboarding-\n * view, M2M, and guidance-flow audience surfaces produce identical\n * output for the same `RequiredFeaturesSpecification` payload (the\n * guidance-flow audience block was migrated by P3/I1 closure of\n * `non-view-specification-coverage-step9-spec-infrastructure-hardening.md`).\n *\n * Onboarding-view's validator runs with the default `'fail-closed'`\n * cross-registry mode (every authored `featureRef` MUST resolve to the\n * registered `FeatureSpecification` map once a registry is registered),\n * so the renderer pipes refs through `formatFeatureRefWithCrossLink` to\n * decorate unresolved entries with `(unknown)` — the visible drift\n * signal that mirrors the validator's fail-closed contract.\n */\nfunction buildRequiredFeaturesLines(\n specification: OnboardingViewSpecAny,\n): Array<{ text: string }> | undefined {\n const lines = formatRequiredFeaturesBullets(specification.requiredFeatures, {\n formatFeatureRef: formatFeatureRefWithCrossLink,\n });\n return toMarkdownListItems(lines ?? []);\n}\n\nfunction buildImplementationReferences(\n specification: OnboardingViewSpecAny,\n): Array<{ text: string }> | undefined {\n const codeHandling = specification.codeHandling;\n if (!codeHandling) {\n return undefined;\n }\n return toMarkdownListItems([\n ...(codeHandling.definitionOwner ? formatOwnerRefBullets(codeHandling.definitionOwner) : []),\n codeHandling.triggerTypeSymbol\n ? `Trigger-type symbol: ${formatCodeSymbolRef(codeHandling.triggerTypeSymbol)}`\n : undefined,\n codeHandling.elementTypeSymbol\n ? `Element-type symbol: ${formatCodeSymbolRef(codeHandling.elementTypeSymbol)}`\n : undefined,\n ...(codeHandling.declarationSymbols ?? []).map((symbol) => (\n `Declaration symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ...(codeHandling.notes ?? []).map((note) => `Note: ${note}`),\n ]);\n}\n\nexport function renderOnboardingViewSpecificationContextPart(\n specificationId: string,\n specification: OnboardingViewSpecAny,\n templateId:\n | SpecificationContextTemplateId.ONBOARDING_VIEW_TRANSLATION_CONTEXT\n | SpecificationContextTemplateId.ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT\n | SpecificationContextTemplateId.ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT\n | SpecificationContextTemplateId.ONBOARDING_VIEW_ALL_INFORMATION,\n): SpecificationMarkdownContextPart {\n const title = `Onboarding view context: ${specificationId}`;\n const scopeLabel = buildScopeLabel(specification);\n const textSlotLines = buildTextSlotLines(specification);\n const elementBlocks = buildElementBlocks(specification);\n const triggerLines = buildTriggerLines(specification.trigger);\n const requiredFeaturesLines = buildRequiredFeaturesLines(specification);\n const implementationReferences = buildImplementationReferences(specification);\n const businessConstraints = toMarkdownListItems(specification.businessConstraints ?? []);\n const notes = toMarkdownListItems(specification.notes ?? []);\n\n switch (templateId) {\n case SpecificationContextTemplateId.ONBOARDING_VIEW_TRANSLATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.TRANSLATION_CONTEXT,\n specificationId,\n title,\n markdown: renderTranslationContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n useWhen: specification.useWhen,\n avoidWhen: specification.avoidWhen,\n textSlotLines,\n elementBlocks,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.CUSTOM_IMPLEMENTATION_CONTEXT,\n specificationId,\n title,\n markdown: renderCustomImplementationContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n implementationReferences,\n textSlotLines,\n elementBlocks,\n triggerLines,\n requiredFeaturesLines,\n businessConstraints,\n notes,\n }),\n };\n case SpecificationContextTemplateId.ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.DEVELOPMENT_USAGE_CONTEXT,\n specificationId,\n title,\n markdown: renderDevelopmentUsageContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n useWhen: specification.useWhen,\n avoidWhen: specification.avoidWhen,\n usageReferences: implementationReferences,\n textSlotLines,\n elementBlocks,\n triggerLines,\n requiredFeaturesLines,\n businessConstraints,\n notes,\n }),\n };\n case SpecificationContextTemplateId.ONBOARDING_VIEW_ALL_INFORMATION:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.ALL_INFORMATION,\n specificationId,\n title,\n markdown: renderAllInformationContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n useWhen: specification.useWhen,\n avoidWhen: specification.avoidWhen,\n implementationReferences,\n textSlotLines,\n elementBlocks,\n triggerLines,\n requiredFeaturesLines,\n businessConstraints,\n notes,\n }),\n };\n }\n}\n"]}
1
+ {"version":3,"file":"onboarding-view-specification-context.factory.js","sourceRoot":"","sources":["../../../../../src/core/specifications/onboarding-view-specification-context.factory.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,wCAAwC,EAAE,MAAM,oFAAoF,CAAC;AAC9I,OAAO,EAAE,sDAAsD,EAAE,MAAM,kGAAkG,CAAC;AAC1K,OAAO,EAAE,kDAAkD,EAAE,MAAM,8FAA8F,CAAC;AAClK,OAAO,EAAE,4CAA4C,EAAE,MAAM,wFAAwF,CAAC;AAkDtJ,MAAM,wBAAwB,GAAG,uBAAuB,CACtD,4CAA4C,CAC7C,CAAC;AACF,MAAM,iCAAiC,GAAG,uBAAuB,CAC/D,sDAAsD,CACvD,CAAC;AACF,MAAM,6BAA6B,GAAG,uBAAuB,CAC3D,kDAAkD,CACnD,CAAC;AACF,MAAM,2BAA2B,GAAG,uBAAuB,CACzD,wCAAwC,CACzC,CAAC;AAMF,SAAS,gBAAgB,CACvB,aAAoC;IAEpC,OAAO,OAAQ,aAA4C,CAAC,YAAY,KAAK,QAAQ,CAAC;AACxF,CAAC;AAED,SAAS,eAAe,CAAC,aAAoC;IAC3D,OAAO,gBAAgB,CAAC,aAAa,CAAC;QACpC,CAAC,CAAC,aAAa,aAAa,CAAC,YAAY,EAAE;QAC3C,CAAC,CAAC,aAAa,CAAC;AACpB,CAAC;AAED,SAAS,kBAAkB,CACzB,aA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n OnboardingViewSpecificationConfig,\n ResourceOnboardingViewSpecificationConfig,\n} from '@wildo-ai/saas-specifications';\n\nimport type { SpecificationMarkdownContextPart } from './specification-context-factory.models';\nimport {\n SpecificationContextConcern,\n SpecificationContextFamily,\n SpecificationContextTemplateId,\n} from './specification-context-factory.models';\nimport {\n buildTriggerLines,\n renderElementBlock,\n} from './onboarding-element-rendering.shared';\nimport {\n compileMarkdownTemplate,\n formatCodeSymbolRef,\n formatOwnerRefBullets,\n formatRequiredFeaturesBullets,\n toMarkdownListItems,\n} from './specification-context-factory.shared';\nimport { formatFeatureRefWithCrossLink } from './cross-registry-rendering.shared';\nimport { ONBOARDING_VIEW_ALL_INFORMATION_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-all-information.template';\nimport { ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template';\nimport { ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-development-usage-context.template';\nimport { ONBOARDING_VIEW_TRANSLATION_CONTEXT_TEMPLATE } from './templates/onboarding-view-specification/onboarding-view-translation-context.template';\n\n/**\n * Markdown context model for onboarding view specs. Mirrors the\n * system-email-template precedent: every required field on the spec\n * config maps to a required field here so the templates can drop\n * `{{#if}}` guards on the always-present sections (purpose,\n * successCriteria, uiRole, scope label).\n *\n * `scopeLabel` is computed at render time (`application` for\n * application-scope specs, `resource: <type>` for resource-scope\n * specs) — keeps a single render path for both factory variants\n * without leaking the `resourceType` field through the model when\n * absent.\n *\n * `elementBlocks` carries each `OnboardingViewElementSpecification`\n * as a pre-rendered multi-line markdown string (heading + Purpose +\n * one bullet per text slot). The template emits them inside a\n * single `## Per-element overlay` section so per-element grouping is\n * visible to companion prompts (Q4=b ground rule —\n * `### Element \\`<ref>\\` (\\`<elementType>\\`)`).\n */\ninterface OnboardingViewContextModel {\n title: string;\n purpose: string;\n successCriteria: string;\n uiRole: string;\n scopeLabel: string;\n useWhen?: string;\n avoidWhen?: string;\n textSlotLines?: Array<{ text: string }>;\n elementBlocks?: Array<{ markdown: string }>;\n /**\n * Pre-rendered trigger prose (type, route pattern, event name, delay).\n * The role-ref and `newUsersOnly` / `triggerOnce` lines it used to carry\n * went with `trigger.conditions` itself in #1369 — the runtime read none\n * of it. Built via the shared `buildTriggerLines` so onboarding\n * views and guidance flows render the same trigger surface — see\n * `onboarding-element-rendering.shared.ts` for the per-line rendering\n * rules and `cross-registry-rendering.shared.ts` for role-ref\n * `(unknown)` decoration.\n */\n triggerLines?: Array<{ text: string }>;\n requiredFeaturesLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n implementationReferences?: Array<{ text: string }>;\n usageReferences?: Array<{ text: string }>;\n notes?: Array<{ text: string }>;\n}\n\nconst renderTranslationContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_TRANSLATION_CONTEXT_TEMPLATE,\n);\nconst renderCustomImplementationContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE,\n);\nconst renderDevelopmentUsageContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE,\n);\nconst renderAllInformationContext = compileMarkdownTemplate<OnboardingViewContextModel>(\n ONBOARDING_VIEW_ALL_INFORMATION_TEMPLATE,\n);\n\ntype OnboardingViewSpecAny =\n | OnboardingViewSpecificationConfig\n | ResourceOnboardingViewSpecificationConfig;\n\nfunction isResourceScoped(\n specification: OnboardingViewSpecAny,\n): specification is ResourceOnboardingViewSpecificationConfig {\n return typeof (specification as { resourceType?: unknown }).resourceType === 'string';\n}\n\nfunction buildScopeLabel(specification: OnboardingViewSpecAny): string {\n return isResourceScoped(specification)\n ? `resource: ${specification.resourceType}`\n : 'application';\n}\n\nfunction buildTextSlotLines(\n specification: OnboardingViewSpecAny,\n): Array<{ text: string }> | undefined {\n const textSlots = specification.textSlots ?? {};\n const lines = Object.entries(textSlots).flatMap(([slotName, slotSpec]) => {\n if (!slotSpec) {\n return [];\n }\n const whenSuffix = slotSpec.whenToUse ? ` Use when ${slotSpec.whenToUse}.` : '';\n const header = `${slotName}: ${slotSpec.purpose}${whenSuffix}`;\n const noteLines = slotSpec.notes?.map((note) => `${slotName} note: ${note}`) ?? [];\n return [header, ...noteLines];\n });\n return toMarkdownListItems(lines);\n}\n\n/**\n * Builds one multi-line markdown block per `elements[i]` following\n * the Q4=b convention: a `### Element` heading, a `Purpose:` line,\n * one bullet per authored `textSlots` key, and an optional `Notes:`\n * block. The block is pre-rendered as a single string so the\n * Handlebars template can emit it via `{{markdown}}` without losing\n * the per-element grouping.\n *\n * Delegates the per-element shape to the shared {@link renderElementBlock}\n * (also consumed by the guidance-flow twin). The shared helper carries\n * the F-13 blank-line-between-`Purpose:`-and-bullets fix; previously\n * each factory kept its own divergent local copy that silently drifted\n * away from the F-13 contract pinned by the renderer tests.\n */\nfunction buildElementBlocks(\n specification: OnboardingViewSpecAny,\n): Array<{ markdown: string }> | undefined {\n if (specification.elements.length === 0) {\n return undefined;\n }\n return specification.elements.map((element) => ({\n markdown: renderElementBlock(element),\n }));\n}\n\n/**\n * Render the optional `requiredFeatures` flow-gating block. Delegates\n * the structural shape to the shared {@link formatRequiredFeaturesBullets}\n * helper (header line + per-`limitChecks[i]` bullet) so the onboarding-\n * view, M2M, and guidance-flow audience surfaces produce identical\n * output for the same `RequiredFeaturesSpecification` payload (the\n * guidance-flow audience block was migrated by P3/I1 closure of\n * `non-view-specification-coverage-step9-spec-infrastructure-hardening.md`).\n *\n * Onboarding-view's validator runs with the default `'fail-closed'`\n * cross-registry mode (every authored `featureRef` MUST resolve to the\n * registered `FeatureSpecification` map once a registry is registered),\n * so the renderer pipes refs through `formatFeatureRefWithCrossLink` to\n * decorate unresolved entries with `(unknown)` — the visible drift\n * signal that mirrors the validator's fail-closed contract.\n */\nfunction buildRequiredFeaturesLines(\n specification: OnboardingViewSpecAny,\n): Array<{ text: string }> | undefined {\n const lines = formatRequiredFeaturesBullets(specification.requiredFeatures, {\n formatFeatureRef: formatFeatureRefWithCrossLink,\n });\n return toMarkdownListItems(lines ?? []);\n}\n\nfunction buildImplementationReferences(\n specification: OnboardingViewSpecAny,\n): Array<{ text: string }> | undefined {\n const codeHandling = specification.codeHandling;\n if (!codeHandling) {\n return undefined;\n }\n return toMarkdownListItems([\n ...(codeHandling.definitionOwner ? formatOwnerRefBullets(codeHandling.definitionOwner) : []),\n codeHandling.triggerTypeSymbol\n ? `Trigger-type symbol: ${formatCodeSymbolRef(codeHandling.triggerTypeSymbol)}`\n : undefined,\n codeHandling.elementTypeSymbol\n ? `Element-type symbol: ${formatCodeSymbolRef(codeHandling.elementTypeSymbol)}`\n : undefined,\n ...(codeHandling.declarationSymbols ?? []).map((symbol) => (\n `Declaration symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ...(codeHandling.notes ?? []).map((note) => `Note: ${note}`),\n ]);\n}\n\nexport function renderOnboardingViewSpecificationContextPart(\n specificationId: string,\n specification: OnboardingViewSpecAny,\n templateId:\n | SpecificationContextTemplateId.ONBOARDING_VIEW_TRANSLATION_CONTEXT\n | SpecificationContextTemplateId.ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT\n | SpecificationContextTemplateId.ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT\n | SpecificationContextTemplateId.ONBOARDING_VIEW_ALL_INFORMATION,\n): SpecificationMarkdownContextPart {\n const title = `Onboarding view context: ${specificationId}`;\n const scopeLabel = buildScopeLabel(specification);\n const textSlotLines = buildTextSlotLines(specification);\n const elementBlocks = buildElementBlocks(specification);\n const triggerLines = buildTriggerLines(specification.trigger);\n const requiredFeaturesLines = buildRequiredFeaturesLines(specification);\n const implementationReferences = buildImplementationReferences(specification);\n const businessConstraints = toMarkdownListItems(specification.businessConstraints ?? []);\n const notes = toMarkdownListItems(specification.notes ?? []);\n\n switch (templateId) {\n case SpecificationContextTemplateId.ONBOARDING_VIEW_TRANSLATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.TRANSLATION_CONTEXT,\n specificationId,\n title,\n markdown: renderTranslationContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n useWhen: specification.useWhen,\n avoidWhen: specification.avoidWhen,\n textSlotLines,\n elementBlocks,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.ONBOARDING_VIEW_CUSTOM_IMPLEMENTATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.CUSTOM_IMPLEMENTATION_CONTEXT,\n specificationId,\n title,\n markdown: renderCustomImplementationContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n implementationReferences,\n textSlotLines,\n elementBlocks,\n triggerLines,\n requiredFeaturesLines,\n businessConstraints,\n notes,\n }),\n };\n case SpecificationContextTemplateId.ONBOARDING_VIEW_DEVELOPMENT_USAGE_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.DEVELOPMENT_USAGE_CONTEXT,\n specificationId,\n title,\n markdown: renderDevelopmentUsageContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n useWhen: specification.useWhen,\n avoidWhen: specification.avoidWhen,\n usageReferences: implementationReferences,\n textSlotLines,\n elementBlocks,\n triggerLines,\n requiredFeaturesLines,\n businessConstraints,\n notes,\n }),\n };\n case SpecificationContextTemplateId.ONBOARDING_VIEW_ALL_INFORMATION:\n return {\n templateId,\n family: SpecificationContextFamily.ONBOARDING_VIEW,\n concern: SpecificationContextConcern.ALL_INFORMATION,\n specificationId,\n title,\n markdown: renderAllInformationContext({\n title,\n purpose: specification.purpose,\n successCriteria: specification.successCriteria,\n uiRole: specification.uiRole,\n scopeLabel,\n useWhen: specification.useWhen,\n avoidWhen: specification.avoidWhen,\n implementationReferences,\n textSlotLines,\n elementBlocks,\n triggerLines,\n requiredFeaturesLines,\n businessConstraints,\n notes,\n }),\n };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resource-specification-context.factory.d.ts","sourceRoot":"","sources":["../../../../../src/core/specifications/resource-specification-context.factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAe/B,MAAM,+BAA+B,CAAC;AAKvC,OAAO,KAAK,EACV,iDAAiD,EACjD,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAGL,8BAA8B,EAC/B,MAAM,wCAAwC,CAAC;AAuBhD,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,iBAAiB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5C,mBAAmB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,C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AAED,wBAAgB,sCAAsC,CACpD,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,8BAA8B,EAC7C,UAAU,EACN,8BAA8B,CAAC,4BAA4B,GAC3D,8BAA8B,CAAC,sCAAsC,GACrE,8BAA8B,CAAC,kCAAkC,GACjE,8BAA8B,CAAC,wBAAwB,EAC3D,OAAO,GAAE,kCAAuC,GAC/C,gCAAgC,CAwHlC"}
1
+ {"version":3,"file":"resource-specification-context.factory.d.ts","sourceRoot":"","sources":["../../../../../src/core/specifications/resource-specification-context.factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAe/B,MAAM,+BAA+B,CAAC;AAKvC,OAAO,KAAK,EACV,iDAAiD,EACjD,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAGL,8BAA8B,EAC/B,MAAM,wCAAwC,CAAC;AAuBhD,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,iBAAiB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5C,mBAAmB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CA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AED,wBAAgB,sCAAsC,CACpD,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,8BAA8B,EAC7C,UAAU,EACN,8BAA8B,CAAC,4BAA4B,GAC3D,8BAA8B,CAAC,sCAAsC,GACrE,8BAA8B,CAAC,kCAAkC,GACjE,8BAA8B,CAAC,wBAAwB,EAC3D,OAAO,GAAE,kCAAuC,GAC/C,gCAAgC,CAwHlC"}
@@ -57,6 +57,8 @@ function buildResourceOperationLines(operations) {
57
57
  return undefined;
58
58
  }
59
59
  return toMarkdownListItems(Object.entries(operations).flatMap(([operationId, operation]) => {
60
+ if (operation === undefined)
61
+ return [];
60
62
  const sharedLine = `${operationId}: ${operation.purpose ?? 'No explicit purpose provided.'}${operation.outcome ? ` Outcome: ${operation.outcome}.` : ''}${operation.whenToUse ? ` Use when ${operation.whenToUse}.` : ''}`;
61
63
  const sharedViewLine = formatOperationViewLine(`${operationId}.views.default`, operation.views?.default);
62
64
  const communicationsLines = formatOperationCommunicationsLines(operationId, operation.communications);
@@ -1 +1 @@
1
- {"version":3,"file":"resource-specification-context.factory.js","sourceRoot":"","sources":["../../../../../src/core/specifications/resource-specification-context.factory.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,6BAA6B,EAC7B,8CAA8C,GAC/C,MAAM,+BAA+B,CAAC;AASvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,iCAAiC,GAClC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,+CAA+C,GAChD,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EACL,2CAA2C,GAC5C,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,qCAAqC,GACtC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,iBAA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AAC,OAAO;oBAC9B,YAAY,EAAE,aAAa,CAAC,YAAY;oBACxC,aAAa;oBACb,wBAAwB;oBACxB,UAAU;oBACV,kBAAkB;oBAClB,iBAAiB;oBACjB,aAAa;oBACb,gBAAgB;oBAChB,mBAAmB;iBACpB,CAAC;aACH,CAAC;IACN,CAAC;AACH,CAAC","sourcesContent":["import type {\n AnyResourceSpecificationConfig,\n ExtractedFieldSpec,\n ExtractFieldSpecsRegistryContext,\n ResourceOperationCommunicationsSpecification,\n ResourceOperationEmailDeliverySpecification,\n ResourceOperationEmailSpecification,\n ResourceOperationM2MDeliverySpecification,\n ResourceOperationM2MSpecification,\n ResourceOperationNotificationDeliverySpecification,\n ResourceOperationNotificationSpecification,\n ResourcePdfTemplateSpecification,\n ResourceOperationScheduledExecutionSpecification,\n ResourceOperationViewSpecification,\n TranslationSlotSpecification,\n TranslationSlotSpecificationMap,\n} from '@wildo-ai/saas-specifications';\nimport {\n extractFieldSpecsFromFieldMap,\n ResourceOperationScheduledExecutionVariantType,\n} from '@wildo-ai/saas-specifications';\nimport type {\n ResourceConfiguration_InheritanceSchemaDefinition,\n ResourceRelationship,\n} from '@wildo-ai/saas-models';\nimport type { z } from 'zod';\nimport type {\n SpecificationMarkdownContextPart,\n} from './specification-context-factory.models';\nimport { validateResourceFieldCompleteness } from './validate-resource-field-completeness';\nimport {\n SpecificationContextConcern,\n SpecificationContextFamily,\n SpecificationContextTemplateId,\n} from './specification-context-factory.models';\nimport {\n RESOURCE_ALL_INFORMATION_TEMPLATE,\n} from './templates/resource/resource-all-information.template';\nimport {\n RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE,\n} from './templates/resource/resource-custom-implementation-context.template';\nimport {\n RESOURCE_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE,\n} from './templates/resource/resource-development-usage-context.template';\nimport {\n RESOURCE_TRANSLATION_CONTEXT_TEMPLATE,\n} from './templates/resource/resource-translation-context.template';\nimport {\n compileMarkdownTemplate,\n formatCollectionEntryRef,\n formatCodeSymbolRef,\n formatFieldSpecBlock,\n formatLiteralLine,\n formatRequiredFeaturesBullets,\n toMarkdownListItems,\n} from './specification-context-factory.shared';\n\nexport interface ResourceTranslationContextModel {\n title: string;\n purpose: string;\n businessRole: string;\n lifecycleRole?: string;\n fieldLines?: Array<{ text: string }>;\n frontendLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n}\n\nexport interface ResourceCustomImplementationContextModel {\n title: string;\n purpose: string;\n implementationReferences?: Array<{ text: string }>;\n fieldLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n /**\n * Resource-level invariants that the custom implementation must preserve.\n * Threaded into the template so the CUSTOM_IMPLEMENTATION concern matches\n * its sibling templates (TRANSLATION, DEVELOPMENT_USAGE, ALL_INFORMATION),\n * which all surface authored constraints under `## Constraints to preserve`.\n */\n businessConstraints?: Array<{ text: string }>;\n}\n\nexport interface ResourceDevelopmentUsageContextModel {\n title: string;\n purpose: string;\n businessRole: string;\n lifecycleRole?: string;\n fieldLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n frontendLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n}\n\nexport interface ResourceAllInformationContextModel {\n title: string;\n purpose: string;\n businessRole: string;\n lifecycleRole?: string;\n implementationReferences?: Array<{ text: string }>;\n fieldLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n frontendLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n}\n\nconst renderResourceTranslationContext = compileMarkdownTemplate<ResourceTranslationContextModel>(\n RESOURCE_TRANSLATION_CONTEXT_TEMPLATE,\n);\nconst renderResourceCustomImplementationContext = compileMarkdownTemplate<ResourceCustomImplementationContextModel>(\n RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE,\n);\nconst renderResourceDevelopmentUsageContext = compileMarkdownTemplate<ResourceDevelopmentUsageContextModel>(\n RESOURCE_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE,\n);\nconst renderResourceAllInformationContext = compileMarkdownTemplate<ResourceAllInformationContextModel>(\n RESOURCE_ALL_INFORMATION_TEMPLATE,\n);\n\nfunction buildResourceFieldSpecs(\n specification: AnyResourceSpecificationConfig,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const overlayFieldSpecs = specification.fields\n ? extractFieldSpecsFromFieldMap(\n specification.fields as Record<string, z.ZodTypeAny>,\n undefined,\n registryContext,\n )\n : [];\n return [...overlayFieldSpecs, ...(specification.additionalFieldSpecs ?? [])];\n}\n\nfunction buildResourceFieldLines(\n fieldSpecs: ExtractedFieldSpec[],\n pdfTemplates: readonly ResourcePdfTemplateSpecification[] | undefined,\n): Array<{ text: string }> | undefined {\n if (fieldSpecs.length === 0 && !pdfTemplates?.length) {\n return undefined;\n }\n const pdfTemplateByField = new Map((pdfTemplates ?? []).map((template) => [template.fieldName, template]));\n const matchedPdfTemplateFields = new Set<string>();\n const fieldLines = fieldSpecs.flatMap((fieldSpec) => {\n const fieldLine = { text: formatFieldSpecBlock(fieldSpec) };\n const pdfTemplate = pdfTemplateByField.get(fieldSpec.fieldName);\n if (!pdfTemplate) {\n return [fieldLine];\n }\n matchedPdfTemplateFields.add(pdfTemplate.fieldName);\n return [\n fieldLine,\n { text: formatPdfTemplateFieldLine(pdfTemplate) },\n ];\n });\n const unmatchedPdfTemplateLines = (pdfTemplates ?? [])\n .filter((template) => !matchedPdfTemplateFields.has(template.fieldName))\n .map((template) => ({ text: formatPdfTemplateFieldLine(template) }));\n return [...fieldLines, ...unmatchedPdfTemplateLines];\n}\n\nfunction buildResourcePdfTemplateLines(\n pdfTemplates: readonly ResourcePdfTemplateSpecification[] | undefined,\n): Array<{ text: string }> | undefined {\n if (!pdfTemplates?.length) {\n return undefined;\n }\n\n return toMarkdownListItems(\n pdfTemplates.flatMap((entry) => [\n `Generated PDF field \\`${entry.fieldName}\\` uses backend template \\`${entry.templateId}\\`. Output is ${entry.output.mimeType}, single-file, read-visible, write-stripped, and has no upload route (\\`uploadRoute: ${entry.output.uploadRoute}\\`).`,\n `Generated PDF operations for \\`${entry.fieldName}\\`: CREATE \\`${entry.operations.create}\\`; UPDATE \\`${entry.operations.update}\\`; explicit regenerate operation \\`${entry.operations.regenerateOperationIdentifier}\\`.`,\n `Generated PDF context for \\`${entry.fieldName}\\`: CREATE receives \\`${entry.contextAvailability.create}\\`; REGENERATE receives \\`${entry.contextAvailability.regenerate}\\`.`,\n ]),\n );\n}\n\nfunction formatPdfTemplateFieldLine(\n entry: ResourcePdfTemplateSpecification,\n): string {\n return `generated PDF field ${entry.fieldName}: template \\`${entry.templateId}\\`; read-visible; stripped from write DTOs; no upload route; regenerate via \\`${entry.operations.regenerateOperationIdentifier}\\`.`;\n}\n\nfunction buildResourceOperationLines(\n operations: Record<string, {\n purpose?: string;\n outcome?: string;\n whenToUse?: string;\n responseStatuses?: Array<{ code: string; meaning: string }>;\n errorScenarios?: Array<{ code: string; when: string; errorCode?: string }>;\n idempotent?: boolean;\n rateLimitNote?: string;\n examples?: Array<{ title: string }>;\n communications?: ResourceOperationCommunicationsSpecification;\n scheduledExecution?: ResourceOperationScheduledExecutionSpecification;\n variants?: Record<string, {\n purpose?: string;\n outcome?: string;\n whenToUse?: string;\n }>;\n views?: {\n default?: ResourceOperationViewSpecification;\n variants?: Record<string, ResourceOperationViewSpecification>;\n };\n }> | undefined,\n): Array<{ text: string }> | undefined {\n if (!operations) {\n return undefined;\n }\n\n return toMarkdownListItems(\n Object.entries(operations).flatMap(([operationId, operation]) => {\n const sharedLine = `${operationId}: ${operation.purpose ?? 'No explicit purpose provided.'}${operation.outcome ? ` Outcome: ${operation.outcome}.` : ''}${operation.whenToUse ? ` Use when ${operation.whenToUse}.` : ''}`;\n const sharedViewLine = formatOperationViewLine(\n `${operationId}.views.default`,\n operation.views?.default,\n );\n const communicationsLines = formatOperationCommunicationsLines(\n operationId,\n operation.communications,\n );\n const scheduledExecutionLine = formatOperationScheduledExecutionLine(\n operationId,\n operation.scheduledExecution,\n );\n const httpDocLines = formatOperationHttpDocLines(operationId, operation);\n const variantIds = Array.from(new Set([\n ...Object.keys(operation.variants ?? {}),\n ...Object.keys(operation.views?.variants ?? {}),\n ]));\n const variantLines = variantIds.flatMap((variantId) => {\n const variant = operation.variants?.[variantId];\n const variantLine = variant\n ? `${operationId}.${variantId}: ${variant.purpose ?? 'No explicit purpose provided.'}${variant.outcome ? ` Outcome: ${variant.outcome}.` : ''}${variant.whenToUse ? ` Use when ${variant.whenToUse}.` : ''}`\n : undefined;\n const variantViewLine = formatOperationViewLine(\n `${operationId}.views.${variantId}`,\n operation.views?.variants?.[variantId],\n );\n return [variantLine, variantViewLine];\n });\n return [\n sharedLine,\n sharedViewLine,\n ...communicationsLines,\n scheduledExecutionLine,\n ...httpDocLines,\n ...variantLines,\n ];\n }),\n );\n}\n\n/**\n * Renders the Tier-3 HTTP-documentation fields of one operation as greppable\n * `operationId.field:` lines so prose readers (and tooling that greps by\n * operation) can find every authored axis. Returns an empty array when the\n * operation authored none.\n */\nfunction formatOperationHttpDocLines(\n operationId: string,\n operation: {\n responseStatuses?: Array<{ code: string; meaning: string }>;\n errorScenarios?: Array<{ code: string; when: string; errorCode?: string }>;\n idempotent?: boolean;\n rateLimitNote?: string;\n examples?: Array<{ title: string }>;\n },\n): Array<string | undefined> {\n const lines: Array<string | undefined> = [];\n if (operation.responseStatuses && operation.responseStatuses.length > 0) {\n lines.push(\n `${operationId}.responseStatuses: ${operation.responseStatuses\n .map((status) => `${status.code} — ${status.meaning}`)\n .join('; ')}`,\n );\n }\n if (operation.errorScenarios && operation.errorScenarios.length > 0) {\n lines.push(\n `${operationId}.errorScenarios: ${operation.errorScenarios\n .map((scenario) => `${scenario.code}${scenario.errorCode ? ` (${scenario.errorCode})` : ''} — ${scenario.when}`)\n .join('; ')}`,\n );\n }\n if (operation.idempotent !== undefined) {\n lines.push(`${operationId}.idempotent: ${operation.idempotent ? 'yes' : 'no'}`);\n }\n if (operation.rateLimitNote) {\n lines.push(`${operationId}.rateLimit: ${operation.rateLimitNote}`);\n }\n if (operation.examples && operation.examples.length > 0) {\n lines.push(\n `${operationId}.examples: ${operation.examples.map((example) => example.title).join('; ')}`,\n );\n }\n return lines;\n}\n\nfunction formatOperationCommunicationsLines(\n operationId: string,\n communications: ResourceOperationCommunicationsSpecification | undefined,\n): Array<string | undefined> {\n if (!communications) {\n return [];\n }\n return [\n formatOperationEmailLine(operationId, communications.email),\n formatOperationNotificationLine(operationId, communications.notification),\n formatOperationM2MLine(operationId, communications.m2m),\n ];\n}\n\n/**\n * Render every authored text slot — required and optional — as its own\n * dotted-bullet entry so companion prompts see each slot's `purpose` /\n * `whenToUse` / `notes`, not just a flat key list. The first key in\n * `requiredSlotKeys` is rendered first so the canonical \"subject\"/\"title\"\n * slot keeps its leading position; remaining slots follow declaration order.\n *\n * Distinct from {@link buildTextSlotLines} only in **key format**, not in\n * note rendering: this helper uses a dotted key (`${owner}.${slotKey}:`)\n * because communications text slots are addressable translation targets in\n * their own right, while {@link buildTextSlotLines} uses a humanised key\n * (`${owner} ${slotName}:`) for the resource frontend's label / layout /\n * guidance surfaces. **Both** helpers expand `notes` per-line under the\n * matching `… note: …` suffix so downstream tooling can grep for every\n * authored note as its own structural line — the consolidated\n * `assertOptionalNonEmptyStringList` validator JSDoc promises exactly that.\n *\n * **Casing convention** (intentionally two-tiered across this renderer):\n * - **Block-level headlines** (`Purpose:`, `Tone:`, `Audience:`,\n * `Use when …`, `Avoid when …`, `Channel:`, `Target:`, `Variant:`, etc.)\n * start with a capital letter because they are sentence-cased narrative\n * labels for the section the reader just entered.\n * - **Slot-level entries** here (`purpose:`, `when to use:`) start with a\n * lowercase letter because they are key-value metadata enumerated under\n * the slot's own dotted address, not narrative prose. Downstream tooling\n * can grep `${owner}.${slotKey}: purpose:` to find every authored slot\n * purpose without false-positive matches against the block headlines.\n *\n * Keep this convention stable: changing the casing breaks both companion\n * prompt readability and the grep contract.\n */\nfunction formatOperationTextSlotLines(\n ownerLabel: string,\n textSlots: TranslationSlotSpecificationMap,\n requiredSlotKeys: readonly string[],\n): string[] {\n const orderedKeys = [\n ...requiredSlotKeys.filter((key) => key in textSlots),\n ...Object.keys(textSlots).filter((key) => !requiredSlotKeys.includes(key)),\n ];\n const lines: string[] = [];\n for (const slotKey of orderedKeys) {\n const slot = textSlots[slotKey];\n if (!slot) {\n continue;\n }\n const slotParts = [\n `purpose: ${slot.purpose}`,\n slot.whenToUse ? `when to use: ${slot.whenToUse}` : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n lines.push(`${ownerLabel}.${slotKey}: ${slotParts.join(' ')}`);\n if (slot.notes?.length) {\n for (const note of slot.notes) {\n lines.push(`${ownerLabel}.${slotKey} note: ${note}`);\n }\n }\n }\n return lines;\n}\n\n/**\n * Render the optional `eventData` slot under its owner label as one\n * `purpose` (+ optional `whenToUse`) headline followed by per-note bullets.\n *\n * Mirrors the per-note grep-ability of\n * `system-email-template-specification-context.factory.ts`'s\n * `buildEventDataLines` (notes never silently flatten into a join), but the\n * surface format is intentionally different:\n *\n * - System-email renderer emits scalar `Meaning: …` and `Note: …` lines\n * because there is exactly ONE eventData per template (no ambiguity about\n * ownership). Downstream tooling for system-email greps for those scalar\n * prefixes inside one template's section.\n * - Resource-operation renderer (this function) emits owner-prefixed lines\n * `${ownerLabel}: purpose: …` and `${ownerLabel} note: …` because every\n * operation can have multiple communication blocks (email, notification,\n * m2m) and every block can have its own eventData; the owner label is the\n * only thing that disambiguates them inside the same operation list, and\n * downstream tooling greps by owner (e.g. `change_status.communications.email.eventData note:`).\n *\n * The validators in `resource-specification.schemas.ts`\n * (`assertOptionalEventDataSlot`) enforce non-empty trimmed entries on this\n * very surface, so the renderer MUST surface them here for the validation\n * contract to hold end-to-end.\n */\nfunction formatEventDataLines(\n ownerLabel: string,\n eventData: TranslationSlotSpecification | undefined,\n): string[] {\n if (!eventData) {\n return [];\n }\n const headlineParts = [\n `purpose: ${eventData.purpose}`,\n eventData.whenToUse ? `when to use: ${eventData.whenToUse}` : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n const lines = [`${ownerLabel}: ${headlineParts.join(' ')}`];\n for (const note of eventData.notes ?? []) {\n lines.push(`${ownerLabel} note: ${note}`);\n }\n return lines;\n}\n\n/**\n * The on-rendered noun used as a companion-bullet line prefix by\n * {@link formatBulletList}. Each member's string value IS the rendered prose,\n * so renaming a member value changes the compiled specification-context\n * Markdown that downstream tooling greps by prefix.\n */\nenum SpecificationBulletKind {\n /**\n * Parent-block `businessConstraints` (the canonical list a delivery\n * inherits from).\n */\n CONSTRAINT = 'constraint',\n /**\n * Per-delivery `additionalBusinessConstraints` (M5-8 cue) so prose readers\n * see the layering semantics explicitly instead of inferring them from the\n * path alone — the schema JSDoc on\n * `ResourceOperationEmailDeliverySpecification.additionalBusinessConstraints`\n * states these are layered on top of parent `businessConstraints`, but the\n * rendered Markdown previously read identically to the parent constraints\n * with only the path differing.\n */\n ADDITIONAL_CONSTRAINT_LAYERED_ON_PARENT = 'additional constraint (layered on parent)',\n /** `notes[]` and `codeHandling.notes[]` surfaces. */\n NOTE = 'note',\n}\n\n/**\n * Render an authored `string[]` companion-bullet surface as one line per\n * entry under the owner label. Mirrors the contract documented on\n * `assertOptionalNonEmptyStringList` (resource-specification.schemas.ts):\n * \"every entry must be a non-empty trimmed string because the renderer\n * emits each entry as a bullet\" — keep that promise truthful by emitting\n * one bullet per entry instead of an inline `Constraints: a b c` join, so\n * downstream tooling that greps for `${owner} constraint:` / `${owner}\n * note:` finds every authored entry as its own structural line.\n *\n * `bulletKind` carries the on-rendered noun used as the line prefix — see\n * {@link SpecificationBulletKind} for the per-member semantics.\n */\nfunction formatBulletList(\n ownerLabel: string,\n bulletKind: SpecificationBulletKind,\n values: readonly string[] | undefined,\n): string[] {\n if (!values?.length) {\n return [];\n }\n return values.map((value) => `${ownerLabel} ${bulletKind}: ${value}`);\n}\n\nfunction formatOperationEmailLine(\n operationId: string,\n email: ResourceOperationEmailSpecification | undefined,\n): string | undefined {\n if (!email) {\n return undefined;\n }\n const ownerLabel = `${operationId}.communications.email`;\n const headlineParts = [\n `Purpose: ${email.purpose}`,\n `Tone: ${email.tone}`,\n email.useWhen ? `Use when ${email.useWhen}.` : undefined,\n email.avoidWhen ? `Avoid when ${email.avoidWhen}.` : undefined,\n `Deliveries: ${email.deliveries.length}.`,\n email.codeHandling?.eventDataSchemaSymbol\n ? `Event schema: ${formatCodeSymbolRef(email.codeHandling.eventDataSchemaSymbol)}`\n : undefined,\n email.codeHandling?.eventDataTypeSymbol\n ? `Event type: ${formatCodeSymbolRef(email.codeHandling.eventDataTypeSymbol)}`\n : undefined,\n ...(email.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(ownerLabel, SpecificationBulletKind.CONSTRAINT, email.businessConstraints);\n const codeHandlingNoteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, email.codeHandling?.notes);\n const eventDataLines = formatEventDataLines(`${ownerLabel}.eventData`, email.eventData);\n const slotLines = formatOperationTextSlotLines(\n `${ownerLabel}.textSlots`,\n email.textSlots,\n ['subject'],\n );\n const deliveryLines = email.deliveries.flatMap((delivery, index) => (\n formatEmailDeliveryLines(ownerLabel, index, delivery)\n ));\n\n const allLines = [\n headline,\n ...constraintLines,\n ...codeHandlingNoteLines,\n ...eventDataLines,\n ...slotLines,\n ...deliveryLines,\n ].filter((value): value is string => Boolean(value));\n\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Render one email delivery as its own structural section so companion\n * prompts and transposers see every authored fan-out entry as a discrete\n * unit rather than buried prose. Per-delivery overrides\n * (`textSlotsOverrides`, `purposeOverride`, `additionalBusinessConstraints`,\n * `notes`) are surfaced ONLY when authored, so the common case where a\n * delivery shares the parent copy verbatim stays terse.\n *\n * The headline echoes the runtime fan-out keys (`targetRef`, `variantRef`,\n * `customDeliveryRef`) so transposers can compute the dispatcher's template\n * path (`email.{resourceId}.{op}.{variant?}.{target-kebab}_{customRef?}`)\n * directly from the spec without re-reading the resource configuration.\n */\nfunction formatEmailDeliveryLines(\n parentLabel: string,\n index: number,\n delivery: ResourceOperationEmailDeliverySpecification,\n): string[] {\n const ownerLabel = `${parentLabel}.deliveries[${index}]`;\n const headlineParts = [\n `Audience: ${delivery.audience}`,\n `Target: \\`${delivery.targetRef}\\`.`,\n delivery.variantRef ? `Variant: \\`${delivery.variantRef}\\`.` : undefined,\n delivery.customDeliveryRef\n ? `Custom delivery ref: \\`${delivery.customDeliveryRef}\\`.`\n : undefined,\n delivery.systemEmailTemplateRef\n ? `System-email template ref: \\`${delivery.systemEmailTemplateRef}\\`.`\n : undefined,\n delivery.purposeOverride\n ? `Purpose override (replaces parent purpose for this delivery): ${delivery.purposeOverride}`\n : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = `${ownerLabel}: ${headlineParts.join(' ')}`;\n const constraintLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.ADDITIONAL_CONSTRAINT_LAYERED_ON_PARENT,\n delivery.additionalBusinessConstraints,\n );\n const noteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, delivery.notes);\n const overrideSlotLines = delivery.textSlotsOverrides\n ? formatOperationTextSlotLines(\n `${ownerLabel}.textSlotsOverrides (replaces parent textSlots for this delivery)`,\n delivery.textSlotsOverrides,\n [],\n )\n : [];\n\n return [headline, ...constraintLines, ...noteLines, ...overrideSlotLines];\n}\n\nfunction formatOperationNotificationLine(\n operationId: string,\n notification: ResourceOperationNotificationSpecification | undefined,\n): string | undefined {\n if (!notification) {\n return undefined;\n }\n const ownerLabel = `${operationId}.communications.notification`;\n const headlineParts = [\n `Purpose: ${notification.purpose}`,\n `Tone: ${notification.tone}`,\n notification.useWhen ? `Use when ${notification.useWhen}.` : undefined,\n notification.avoidWhen ? `Avoid when ${notification.avoidWhen}.` : undefined,\n `Deliveries: ${notification.deliveries.length}.`,\n notification.codeHandling?.channelEnum\n ? `Channel enum: ${formatCodeSymbolRef(notification.codeHandling.channelEnum)}`\n : undefined,\n notification.codeHandling?.eventDataSchemaSymbol\n ? `Event schema: ${formatCodeSymbolRef(notification.codeHandling.eventDataSchemaSymbol)}`\n : undefined,\n notification.codeHandling?.eventDataTypeSymbol\n ? `Event type: ${formatCodeSymbolRef(notification.codeHandling.eventDataTypeSymbol)}`\n : undefined,\n ...(notification.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(ownerLabel, SpecificationBulletKind.CONSTRAINT, notification.businessConstraints);\n const codeHandlingNoteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, notification.codeHandling?.notes);\n const eventDataLines = formatEventDataLines(`${ownerLabel}.eventData`, notification.eventData);\n const slotLines = formatOperationTextSlotLines(\n `${ownerLabel}.textSlots`,\n notification.textSlots,\n ['title'],\n );\n const deliveryLines = notification.deliveries.flatMap((delivery, index) => (\n formatNotificationDeliveryLines(ownerLabel, index, delivery)\n ));\n\n const allLines = [\n headline,\n ...constraintLines,\n ...codeHandlingNoteLines,\n ...eventDataLines,\n ...slotLines,\n ...deliveryLines,\n ].filter((value): value is string => Boolean(value));\n\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Render one in-app notification delivery. Same contract as\n * {@link formatEmailDeliveryLines} with `channelRef` echoed in the headline\n * because notifications fan out per `(target, channel)` pair at runtime.\n */\nfunction formatNotificationDeliveryLines(\n parentLabel: string,\n index: number,\n delivery: ResourceOperationNotificationDeliverySpecification,\n): string[] {\n const ownerLabel = `${parentLabel}.deliveries[${index}]`;\n const headlineParts = [\n `Audience: ${delivery.audience}`,\n `Channel: \\`${delivery.channelRef}\\`.`,\n `Target: \\`${delivery.targetRef}\\`.`,\n delivery.variantRef ? `Variant: \\`${delivery.variantRef}\\`.` : undefined,\n delivery.customDeliveryRef\n ? `Custom delivery ref: \\`${delivery.customDeliveryRef}\\`.`\n : undefined,\n delivery.purposeOverride\n ? `Purpose override (replaces parent purpose for this delivery): ${delivery.purposeOverride}`\n : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = `${ownerLabel}: ${headlineParts.join(' ')}`;\n const constraintLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.ADDITIONAL_CONSTRAINT_LAYERED_ON_PARENT,\n delivery.additionalBusinessConstraints,\n );\n const noteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, delivery.notes);\n const overrideSlotLines = delivery.textSlotsOverrides\n ? formatOperationTextSlotLines(\n `${ownerLabel}.textSlotsOverrides (replaces parent textSlots for this delivery)`,\n delivery.textSlotsOverrides,\n [],\n )\n : [];\n\n return [headline, ...constraintLines, ...noteLines, ...overrideSlotLines];\n}\n\n/**\n * Render the M2M (webhook) communications block, mirroring the email and\n * notification renderers. M2M dispatch carries no user-facing copy (no\n * `tone`, no `textSlots`), so the parent block surfaces only the shared\n * intent / use guidance / business constraints / payload schema, while\n * each delivery becomes its own structural section.\n */\nfunction formatOperationM2MLine(\n operationId: string,\n m2m: ResourceOperationM2MSpecification | undefined,\n): string | undefined {\n if (!m2m) {\n return undefined;\n }\n const ownerLabel = `${operationId}.communications.m2m`;\n const headlineParts = [\n `Purpose: ${m2m.purpose}`,\n m2m.useWhen ? `Use when ${m2m.useWhen}.` : undefined,\n m2m.avoidWhen ? `Avoid when ${m2m.avoidWhen}.` : undefined,\n `Deliveries: ${m2m.deliveries.length}.`,\n m2m.codeHandling?.channelEnum\n ? `Channel enum: ${formatCodeSymbolRef(m2m.codeHandling.channelEnum)}`\n : undefined,\n m2m.codeHandling?.levelEnum\n ? `Level enum: ${formatCodeSymbolRef(m2m.codeHandling.levelEnum)}`\n : undefined,\n m2m.codeHandling?.payloadSchemaSymbol\n ? `Payload schema: ${formatCodeSymbolRef(m2m.codeHandling.payloadSchemaSymbol)}`\n : undefined,\n m2m.codeHandling?.payloadTypeSymbol\n ? `Payload type: ${formatCodeSymbolRef(m2m.codeHandling.payloadTypeSymbol)}`\n : undefined,\n ...(m2m.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(ownerLabel, SpecificationBulletKind.CONSTRAINT, m2m.businessConstraints);\n const codeHandlingNoteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, m2m.codeHandling?.notes);\n // M2M opts INTO `crossRegistry: 'fail-soft'` at the validator layer\n // (see `assertOptionalRequiredFeaturesSpecification` consumer wiring) and\n // the renderer mirrors that contract by passing a bare ref formatter —\n // see `cross-registry-rendering.shared.ts` \"M2M is intentionally out of\n // scope\" section for the rationale.\n const requiredFeaturesBulletLines = (\n formatRequiredFeaturesBullets(m2m.requiredFeatures, {\n formatFeatureRef: (ref) => `\\`${ref}\\``,\n }) ?? []\n ).map((line) => `${ownerLabel} required-features: ${line}`);\n const deliveryLines = m2m.deliveries.flatMap((delivery, index) => (\n formatM2MDeliveryLines(ownerLabel, index, delivery)\n ));\n\n const allLines = [\n headline,\n ...constraintLines,\n ...codeHandlingNoteLines,\n ...requiredFeaturesBulletLines,\n ...deliveryLines,\n ].filter((value): value is string => Boolean(value));\n\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Render one M2M (webhook) delivery as its own structural section. Each\n * runtime `m2mNotifications[]` entry maps to one delivery here, so the\n * headline echoes `channelRef` / `level` / `variantRef` / `customDeliveryRef`\n * — the four fields that fully identify the dispatch at runtime.\n */\nfunction formatM2MDeliveryLines(\n parentLabel: string,\n index: number,\n delivery: ResourceOperationM2MDeliverySpecification,\n): string[] {\n const ownerLabel = `${parentLabel}.deliveries[${index}]`;\n const headlineParts = [\n `Audience: ${delivery.audience}`,\n `Channel: \\`${delivery.channelRef}\\`.`,\n delivery.level ? `Level: \\`${delivery.level}\\`.` : undefined,\n delivery.variantRef ? `Variant: \\`${delivery.variantRef}\\`.` : undefined,\n delivery.customDeliveryRef\n ? `Custom delivery ref: \\`${delivery.customDeliveryRef}\\`.`\n : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = `${ownerLabel}: ${headlineParts.join(' ')}`;\n const noteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, delivery.notes);\n\n return [headline, ...noteLines];\n}\n\n/**\n * Renders a flat markdown line for the discriminated-union\n * `scheduledExecution` overlay. Each arm surfaces only the fields the spec\n * arm actually carries — companion prompts must not imagine a cron on a\n * batch-job arm nor a custom-batch ref on the native arms. The union\n * discriminant (`variantType`) is echoed explicitly so downstream readers\n * can reason about the anchor class (`NATIVE_CRON_JOB` / `NATIVE_BATCH_JOB` /\n * `CUSTOM_BATCH`) without pattern-matching on field presence.\n */\nfunction formatOperationScheduledExecutionLine(\n operationId: string,\n scheduledExecution: ResourceOperationScheduledExecutionSpecification | undefined,\n): string | undefined {\n if (!scheduledExecution) {\n return undefined;\n }\n const ownerLabel = `${operationId}.scheduledExecution`;\n const variantLine = `Variant: ${scheduledExecution.variantType}.`;\n const cronLine = scheduledExecutionCronExpression(scheduledExecution);\n const customBatchRefLine = scheduledExecution.variantType === ResourceOperationScheduledExecutionVariantType.CUSTOM_BATCH\n ? `Custom batch ref: \\`${scheduledExecution.customBatchRef}\\`.`\n : undefined;\n const headlineParts = [\n variantLine,\n `Purpose: ${scheduledExecution.purpose}`,\n `Outcome: ${scheduledExecution.outcome}`,\n cronLine,\n customBatchRefLine,\n scheduledExecution.useWhen ? `Use when ${scheduledExecution.useWhen}.` : undefined,\n scheduledExecution.avoidWhen ? `Avoid when ${scheduledExecution.avoidWhen}.` : undefined,\n scheduledExecution.codeHandling?.inputSchemaSymbol\n ? `Input schema: ${formatCodeSymbolRef(scheduledExecution.codeHandling.inputSchemaSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.outputSchemaSymbol\n ? `Output schema: ${formatCodeSymbolRef(scheduledExecution.codeHandling.outputSchemaSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.inputTypeSymbol\n ? `Input type: ${formatCodeSymbolRef(scheduledExecution.codeHandling.inputTypeSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.outputTypeSymbol\n ? `Output type: ${formatCodeSymbolRef(scheduledExecution.codeHandling.outputTypeSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.customBatchRefSymbol\n ? `Batch ref symbol: ${formatCodeSymbolRef(scheduledExecution.codeHandling.customBatchRefSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.batchFactorySymbol\n ? `Batch factory: ${formatCodeSymbolRef(scheduledExecution.codeHandling.batchFactorySymbol)}`\n : undefined,\n ...(scheduledExecution.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.CONSTRAINT,\n scheduledExecution.businessConstraints,\n );\n const codeHandlingNoteLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.NOTE,\n scheduledExecution.codeHandling?.notes,\n );\n\n const allLines = [headline, ...constraintLines, ...codeHandlingNoteLines]\n .filter((value): value is string => Boolean(value));\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Returns the cron markdown token for arms that carry one. `NATIVE_BATCH_JOB`\n * is event-triggered by contract (validator fails closed on a declared cron),\n * so the renderer must not fabricate a cron line for it — consumers that see\n * no cron line know the run is dispatched, not scheduled.\n */\nfunction scheduledExecutionCronExpression(\n scheduledExecution: ResourceOperationScheduledExecutionSpecification,\n): string | undefined {\n switch (scheduledExecution.variantType) {\n case ResourceOperationScheduledExecutionVariantType.NATIVE_CRON_JOB:\n return `Cron: \\`${scheduledExecution.cronExpression}\\`.`;\n case ResourceOperationScheduledExecutionVariantType.CUSTOM_BATCH:\n return scheduledExecution.cronExpression\n ? `Cron: \\`${scheduledExecution.cronExpression}\\`.`\n : undefined;\n case ResourceOperationScheduledExecutionVariantType.NATIVE_BATCH_JOB:\n return undefined;\n default: {\n const exhaustiveCheck: never = scheduledExecution;\n throw new Error(\n `scheduledExecutionCronExpression(): unsupported variantType: ${JSON.stringify(exhaustiveCheck)}.`,\n );\n }\n }\n}\n\n/**\n * Render the views overlay for an operation. Custom hosts and linked views\n * each become a header line that echoes the structural identity (host\n * symbol / preset / declaration symbols, linked view kind + ref + purpose,\n * `whenToUse` guidance), followed by one structural bullet per authored\n * note via {@link formatBulletList}. The previous inline `${notes.join(' ')}`\n * silently flattened authored notes onto the header line and broke the\n * companion-bullet contract that downstream tooling depends on for\n * grep-able per-note lines (`${owner} note: …`).\n */\nfunction formatOperationViewLine(\n viewKey: string,\n views: ResourceOperationViewSpecification | undefined,\n): string | undefined {\n if (!views) {\n return undefined;\n }\n\n const lines: string[] = [];\n\n if (views.customView) {\n const customLabel = `${viewKey}.customView`;\n const customHeadline = `Custom host: ${formatCodeSymbolRef(\n views.customView.consumerFacingSymbol ?? views.customView.implementationSymbol,\n )}${views.customView.basedOnPreset ? ` Based on preset \\`${views.customView.basedOnPreset}\\`.` : ''}${views.customView.whenToUse ? ` Use when ${views.customView.whenToUse}.` : ''}${\n views.customView.declarationSymbols?.length\n ? ` Declared from ${views.customView.declarationSymbols.map((symbol) => `\\`${symbol.exportName}\\``).join(', ')}.`\n : ''\n }`;\n lines.push(`${customLabel}: ${customHeadline}`);\n lines.push(...formatBulletList(customLabel, SpecificationBulletKind.NOTE, views.customView.notes));\n }\n\n for (const [index, otherView] of (views.otherViews ?? []).entries()) {\n const otherLabel = `${viewKey}.otherViews[${index}]`;\n const otherHeadline = `Linked ${otherView.viewKind} view \\`${otherView.viewRef}\\`: ${otherView.purpose}${otherView.whenToUse ? ` Use when ${otherView.whenToUse}.` : ''}`;\n lines.push(`${otherLabel}: ${otherHeadline}`);\n lines.push(...formatBulletList(otherLabel, SpecificationBulletKind.NOTE, otherView.notes));\n }\n\n return lines.length > 0 ? lines.join('\\n') : undefined;\n}\n\nfunction buildResourceFrontendLines(\n specification: AnyResourceSpecificationConfig,\n): Array<{ text: string }> | undefined {\n const frontend = specification.frontend;\n if (!frontend) {\n return undefined;\n }\n\n const guidanceLines = Object.entries(frontend.guidance ?? {}).map(([guidanceId, guidance]) => (\n `${guidanceId}: ${guidance.purpose}${guidance.whenToTrigger ? ` Trigger when ${guidance.whenToTrigger}.` : ''}`\n ));\n const layoutSlotLines = buildStructuralSlotLines('section', frontend.layout?.sections);\n const wizardStepLines = buildStructuralSlotLines('wizard step', frontend.layout?.wizardSteps);\n const groupLines = buildStructuralSlotLines('group', frontend.layout?.groups);\n const guidanceElementLines = Object.entries(frontend.guidance ?? {}).flatMap(([guidanceId, guidance]) => {\n const flowSlotLines = buildTextSlotLines(\n `guidance ${guidanceId}`,\n guidance.textSlots,\n );\n const elementLines = Object.entries(guidance.elements ?? {}).flatMap(([elementRef, element]) => ([\n `Guidance element ${guidanceId}.${elementRef}: ${element.purpose}${element.whenToUse ? ` Use when ${element.whenToUse}.` : ''}`,\n ...buildTextSlotLines(`guidance ${guidanceId}.${elementRef}`, element.textSlots),\n ]));\n return [...flowSlotLines, ...elementLines];\n });\n\n return toMarkdownListItems([\n frontend.label?.purpose ? `Label strategy: ${frontend.label.purpose}` : undefined,\n ...buildTextSlotLines('label strategy', frontend.label?.textSlots),\n frontend.layout?.purpose ? `Layout purpose: ${frontend.layout.purpose}` : undefined,\n frontend.layout?.displayPurpose ? `Display purpose: ${frontend.layout.displayPurpose}` : undefined,\n frontend.layout?.summaryPurpose ? `Summary purpose: ${frontend.layout.summaryPurpose}` : undefined,\n frontend.layout?.editPurpose ? `Edit purpose: ${frontend.layout.editPurpose}` : undefined,\n ...layoutSlotLines,\n ...wizardStepLines,\n ...groupLines,\n frontend.emptyState?.purpose ? `Empty state: ${frontend.emptyState.purpose}` : undefined,\n frontend.emptyState?.primaryActionPurpose\n ? `Empty-state primary action: ${frontend.emptyState.primaryActionPurpose}`\n : undefined,\n frontend.emptyState?.secondaryActionPurpose\n ? `Empty-state secondary action: ${frontend.emptyState.secondaryActionPurpose}`\n : undefined,\n ...guidanceLines,\n ...guidanceElementLines,\n ]);\n}\n\nfunction buildStructuralSlotLines(\n slotKind: string,\n slots: Record<string, { purpose: string; whenToUse?: string; textSlots?: Record<string, { purpose: string; whenToUse?: string }> }> | undefined,\n): string[] {\n return Object.entries(slots ?? {}).flatMap(([slotRef, slotSpec]) => ([\n `${slotKind} ${slotRef}: ${slotSpec.purpose}${slotSpec.whenToUse ? ` Use when ${slotSpec.whenToUse}.` : ''}`,\n ...buildTextSlotLines(`${slotKind} ${slotRef}`, slotSpec.textSlots),\n ]));\n}\n\n/**\n * Per-slot rendering for the resource frontend's labelling / layout /\n * guidance / structural slots. Each slot becomes one header line\n * (`${ownerLabel} ${slotName}: ${purpose} Use when …`) followed by one\n * additional line per authored note (`${ownerLabel} ${slotName} note: …`).\n *\n * The header line stays compact (single bullet per slot) but notes are\n * expanded so downstream tooling that greps for `${owner} … note:` finds\n * every authored entry as its own structural line — symmetric with\n * {@link formatOperationTextSlotLines} (operation communications) and the\n * system-email factory's `buildTextSlotLines`. The previous\n * `Notes: a b c` join silently flattened per-note grep-ability and\n * diverged from the per-note rendering pattern that the consolidated\n * `assertOptionalNonEmptyStringList` validator JSDoc promises across the\n * companion surface.\n */\nfunction buildTextSlotLines(\n ownerLabel: string,\n textSlots: Record<string, { purpose: string; whenToUse?: string; notes?: string[] }> | undefined,\n): string[] {\n return Object.entries(textSlots ?? {}).flatMap(([slotName, slotSpec]) => {\n const header = `${ownerLabel} ${slotName}: ${slotSpec.purpose}${slotSpec.whenToUse ? ` Use when ${slotSpec.whenToUse}.` : ''}`;\n const noteLines = (slotSpec.notes ?? []).map(\n (note) => `${ownerLabel} ${slotName} note: ${note}`,\n );\n return [header, ...noteLines];\n });\n}\n\nfunction buildResourceImplementationReferences(\n specification: AnyResourceSpecificationConfig,\n): Array<{ text: string }> | undefined {\n const codeHandling = specification.codeHandling;\n if (!codeHandling) {\n return undefined;\n }\n\n return toMarkdownListItems([\n formatCodeSymbolRef(codeHandling.mainSchema),\n codeHandling.resourceFactory ? formatCodeSymbolRef(codeHandling.resourceFactory) : undefined,\n codeHandling.resourceFactoryCollectionEntry\n ? formatCollectionEntryRef(codeHandling.resourceFactoryCollectionEntry)\n : undefined,\n codeHandling.resourceType\n ? `Use resource type member \\`${codeHandling.resourceType.memberName}\\` from \\`${codeHandling.resourceType.enumDeclaration.exportName}\\` imported via \\`${codeHandling.resourceType.enumDeclaration.packageName}\\`.`\n : undefined,\n codeHandling.operationVocabulary?.coreEnum\n ? `Core operation vocabulary: ${formatCodeSymbolRef(codeHandling.operationVocabulary.coreEnum)}`\n : undefined,\n codeHandling.operationVocabulary?.customEnum\n ? `Custom operation vocabulary: ${formatCodeSymbolRef(codeHandling.operationVocabulary.customEnum)}`\n : undefined,\n ...(codeHandling.frontendConfigurationSources ?? []).map((source) => (\n `Frontend configuration source: ${formatCodeSymbolRef(source)}`\n )),\n ...(codeHandling.frontendConfigurationSourceEntries ?? []).map((sourceEntry) => (\n `Frontend configuration source: ${formatCollectionEntryRef(sourceEntry)}`\n )),\n ...(codeHandling.notes ?? []),\n ]);\n}\n\n/**\n * Optional registry + materialization plumbing.\n *\n * - `resourceRelationships` — Phase 2B: threads the resource's relationship\n * slice into the field-spec extractor so `foreignKeySpec` fields can\n * derive their target via `ResourceRelationship.foreignKeyField`. The\n * resource type used to scope the lookup is `specificationId` (resource\n * specifications are keyed by resource type at the spec layer).\n * - `materializedConfig` — Phase 4: lets the renderer fire\n * `validateResourceFieldCompleteness(...)` against the resource's live\n * `mainSchema` + `inheritenceSchemaDefinition` before producing any\n * markdown. Missing overlay on an enum / array / FK field, or an\n * `enumSpec.values` divergence, throws synchronously so partial /\n * incorrect prompts cannot ship downstream.\n *\n * Both slices are optional rather than required because:\n * - test harnesses construct render requests without a live registry,\n * - non-resource family renderers do not need them,\n * - `additionalFieldSpecs` entries are passed through unchanged anyway\n * (per Q6-5, the Phase 3 shape gates apply but completeness derivation\n * does not).\n *\n * Production introspection callers always supply both; tests only supply\n * what they need to assert.\n */\nexport interface RenderResourceSpecificationOptions {\n resourceRelationships?: readonly ResourceRelationship[];\n materializedConfig?: {\n mainSchema: z.ZodTypeAny;\n inheritanceDefinition?: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>;\n };\n}\n\nexport function renderResourceSpecificationContextPart(\n specificationId: string,\n specification: AnyResourceSpecificationConfig,\n templateId:\n | SpecificationContextTemplateId.RESOURCE_TRANSLATION_CONTEXT\n | SpecificationContextTemplateId.RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT\n | SpecificationContextTemplateId.RESOURCE_DEVELOPMENT_USAGE_CONTEXT\n | SpecificationContextTemplateId.RESOURCE_ALL_INFORMATION,\n options: RenderResourceSpecificationOptions = {},\n): SpecificationMarkdownContextPart {\n const title = `Resource context: ${specificationId}`;\n const implementationReferences = buildResourceImplementationReferences(specification);\n const registryContext: ExtractFieldSpecsRegistryContext | undefined = options.resourceRelationships\n ? {\n currentResourceType: specificationId,\n relationships: options.resourceRelationships,\n }\n : undefined;\n const fieldSpecs = buildResourceFieldSpecs(specification, registryContext);\n\n // Phase 4 (D-6) — fail-closed completeness gate. Runs before any\n // markdown is produced so a missing overlay (enum/array/FK) on a\n // spec-worthy field aborts the render with a single combined message\n // instead of shipping a partial prompt downstream. Fires only when the\n // caller wired both the live schema (`materializedConfig`) AND the\n // registry slice (`resourceRelationships`) — production introspection\n // wires both; tests opt in selectively.\n if (options.materializedConfig && options.resourceRelationships) {\n validateResourceFieldCompleteness(\n `companion[render: ${specificationId}]: `,\n {\n mainSchema: options.materializedConfig.mainSchema,\n inheritanceDefinition: options.materializedConfig.inheritanceDefinition,\n fieldSpecs,\n relationships: options.resourceRelationships,\n currentResourceType: specificationId,\n },\n );\n }\n\n const fieldLines = buildResourceFieldLines(fieldSpecs, specification.pdfTemplates);\n const baseOperationLines = buildResourceOperationLines(specification.operations);\n const frontendViewLines = buildResourceOperationLines(specification.frontend?.views);\n const frontendLines = buildResourceFrontendLines(specification);\n const pdfTemplateLines = buildResourcePdfTemplateLines(specification.pdfTemplates);\n const businessConstraints = toMarkdownListItems(specification.businessConstraints ?? []);\n const lifecycleRole = formatLiteralLine('Lifecycle role', specification.lifecycleRole);\n\n switch (templateId) {\n case SpecificationContextTemplateId.RESOURCE_TRANSLATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.TRANSLATION_CONTEXT,\n specificationId,\n title,\n markdown: renderResourceTranslationContext({\n title,\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole,\n fieldLines,\n frontendLines,\n baseOperationLines,\n frontendViewLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.CUSTOM_IMPLEMENTATION_CONTEXT,\n specificationId,\n title,\n markdown: renderResourceCustomImplementationContext({\n title,\n purpose: specification.purpose,\n implementationReferences,\n fieldLines,\n baseOperationLines,\n frontendViewLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.RESOURCE_DEVELOPMENT_USAGE_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.DEVELOPMENT_USAGE_CONTEXT,\n specificationId,\n title,\n markdown: renderResourceDevelopmentUsageContext({\n title,\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole,\n fieldLines,\n baseOperationLines,\n frontendViewLines,\n frontendLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.RESOURCE_ALL_INFORMATION:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.ALL_INFORMATION,\n specificationId,\n title,\n markdown: renderResourceAllInformationContext({\n title,\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole,\n implementationReferences,\n fieldLines,\n baseOperationLines,\n frontendViewLines,\n frontendLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n }\n}\n"]}
1
+ {"version":3,"file":"resource-specification-context.factory.js","sourceRoot":"","sources":["../../../../../src/core/specifications/resource-specification-context.factory.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,6BAA6B,EAC7B,8CAA8C,GAC/C,MAAM,+BAA+B,CAAC;AASvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,iCAAiC,GAClC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,+CAA+C,GAChD,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAC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AA8B,CAAC,wBAAwB;YAC1D,OAAO;gBACL,UAAU;gBACV,MAAM,EAAE,0BAA0B,CAAC,QAAQ;gBAC3C,OAAO,EAAE,2BAA2B,CAAC,eAAe;gBACpD,eAAe;gBACf,KAAK;gBACL,QAAQ,EAAE,mCAAmC,CAAC;oBAC5C,KAAK;oBACL,OAAO,EAAE,aAAa,CAAC,OAAO;oBAC9B,YAAY,EAAE,aAAa,CAAC,YAAY;oBACxC,aAAa;oBACb,wBAAwB;oBACxB,UAAU;oBACV,kBAAkB;oBAClB,iBAAiB;oBACjB,aAAa;oBACb,gBAAgB;oBAChB,mBAAmB;iBACpB,CAAC;aACH,CAAC;IACN,CAAC;AACH,CAAC","sourcesContent":["import type {\n AnyResourceSpecificationConfig,\n ExtractedFieldSpec,\n ExtractFieldSpecsRegistryContext,\n ResourceOperationCommunicationsSpecification,\n ResourceOperationEmailDeliverySpecification,\n ResourceOperationEmailSpecification,\n ResourceOperationM2MDeliverySpecification,\n ResourceOperationM2MSpecification,\n ResourceOperationNotificationDeliverySpecification,\n ResourceOperationNotificationSpecification,\n ResourcePdfTemplateSpecification,\n ResourceOperationScheduledExecutionSpecification,\n ResourceOperationViewSpecification,\n TranslationSlotSpecification,\n TranslationSlotSpecificationMap,\n} from '@wildo-ai/saas-specifications';\nimport {\n extractFieldSpecsFromFieldMap,\n ResourceOperationScheduledExecutionVariantType,\n} from '@wildo-ai/saas-specifications';\nimport type {\n ResourceConfiguration_InheritanceSchemaDefinition,\n ResourceRelationship,\n} from '@wildo-ai/saas-models';\nimport type { z } from 'zod';\nimport type {\n SpecificationMarkdownContextPart,\n} from './specification-context-factory.models';\nimport { validateResourceFieldCompleteness } from './validate-resource-field-completeness';\nimport {\n SpecificationContextConcern,\n SpecificationContextFamily,\n SpecificationContextTemplateId,\n} from './specification-context-factory.models';\nimport {\n RESOURCE_ALL_INFORMATION_TEMPLATE,\n} from './templates/resource/resource-all-information.template';\nimport {\n RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE,\n} from './templates/resource/resource-custom-implementation-context.template';\nimport {\n RESOURCE_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE,\n} from './templates/resource/resource-development-usage-context.template';\nimport {\n RESOURCE_TRANSLATION_CONTEXT_TEMPLATE,\n} from './templates/resource/resource-translation-context.template';\nimport {\n compileMarkdownTemplate,\n formatCollectionEntryRef,\n formatCodeSymbolRef,\n formatFieldSpecBlock,\n formatLiteralLine,\n formatRequiredFeaturesBullets,\n toMarkdownListItems,\n} from './specification-context-factory.shared';\n\nexport interface ResourceTranslationContextModel {\n title: string;\n purpose: string;\n businessRole: string;\n lifecycleRole?: string;\n fieldLines?: Array<{ text: string }>;\n frontendLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n}\n\nexport interface ResourceCustomImplementationContextModel {\n title: string;\n purpose: string;\n implementationReferences?: Array<{ text: string }>;\n fieldLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n /**\n * Resource-level invariants that the custom implementation must preserve.\n * Threaded into the template so the CUSTOM_IMPLEMENTATION concern matches\n * its sibling templates (TRANSLATION, DEVELOPMENT_USAGE, ALL_INFORMATION),\n * which all surface authored constraints under `## Constraints to preserve`.\n */\n businessConstraints?: Array<{ text: string }>;\n}\n\nexport interface ResourceDevelopmentUsageContextModel {\n title: string;\n purpose: string;\n businessRole: string;\n lifecycleRole?: string;\n fieldLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n frontendLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n}\n\nexport interface ResourceAllInformationContextModel {\n title: string;\n purpose: string;\n businessRole: string;\n lifecycleRole?: string;\n implementationReferences?: Array<{ text: string }>;\n fieldLines?: Array<{ text: string }>;\n baseOperationLines?: Array<{ text: string }>;\n frontendViewLines?: Array<{ text: string }>;\n frontendLines?: Array<{ text: string }>;\n businessConstraints?: Array<{ text: string }>;\n pdfTemplateLines?: Array<{ text: string }>;\n}\n\nconst renderResourceTranslationContext = compileMarkdownTemplate<ResourceTranslationContextModel>(\n RESOURCE_TRANSLATION_CONTEXT_TEMPLATE,\n);\nconst renderResourceCustomImplementationContext = compileMarkdownTemplate<ResourceCustomImplementationContextModel>(\n RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT_TEMPLATE,\n);\nconst renderResourceDevelopmentUsageContext = compileMarkdownTemplate<ResourceDevelopmentUsageContextModel>(\n RESOURCE_DEVELOPMENT_USAGE_CONTEXT_TEMPLATE,\n);\nconst renderResourceAllInformationContext = compileMarkdownTemplate<ResourceAllInformationContextModel>(\n RESOURCE_ALL_INFORMATION_TEMPLATE,\n);\n\nfunction buildResourceFieldSpecs(\n specification: AnyResourceSpecificationConfig,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const overlayFieldSpecs = specification.fields\n ? extractFieldSpecsFromFieldMap(\n specification.fields as Record<string, z.ZodTypeAny>,\n undefined,\n registryContext,\n )\n : [];\n return [...overlayFieldSpecs, ...(specification.additionalFieldSpecs ?? [])];\n}\n\nfunction buildResourceFieldLines(\n fieldSpecs: ExtractedFieldSpec[],\n pdfTemplates: readonly ResourcePdfTemplateSpecification[] | undefined,\n): Array<{ text: string }> | undefined {\n if (fieldSpecs.length === 0 && !pdfTemplates?.length) {\n return undefined;\n }\n const pdfTemplateByField = new Map((pdfTemplates ?? []).map((template) => [template.fieldName, template]));\n const matchedPdfTemplateFields = new Set<string>();\n const fieldLines = fieldSpecs.flatMap((fieldSpec) => {\n const fieldLine = { text: formatFieldSpecBlock(fieldSpec) };\n const pdfTemplate = pdfTemplateByField.get(fieldSpec.fieldName);\n if (!pdfTemplate) {\n return [fieldLine];\n }\n matchedPdfTemplateFields.add(pdfTemplate.fieldName);\n return [\n fieldLine,\n { text: formatPdfTemplateFieldLine(pdfTemplate) },\n ];\n });\n const unmatchedPdfTemplateLines = (pdfTemplates ?? [])\n .filter((template) => !matchedPdfTemplateFields.has(template.fieldName))\n .map((template) => ({ text: formatPdfTemplateFieldLine(template) }));\n return [...fieldLines, ...unmatchedPdfTemplateLines];\n}\n\nfunction buildResourcePdfTemplateLines(\n pdfTemplates: readonly ResourcePdfTemplateSpecification[] | undefined,\n): Array<{ text: string }> | undefined {\n if (!pdfTemplates?.length) {\n return undefined;\n }\n\n return toMarkdownListItems(\n pdfTemplates.flatMap((entry) => [\n `Generated PDF field \\`${entry.fieldName}\\` uses backend template \\`${entry.templateId}\\`. Output is ${entry.output.mimeType}, single-file, read-visible, write-stripped, and has no upload route (\\`uploadRoute: ${entry.output.uploadRoute}\\`).`,\n `Generated PDF operations for \\`${entry.fieldName}\\`: CREATE \\`${entry.operations.create}\\`; UPDATE \\`${entry.operations.update}\\`; explicit regenerate operation \\`${entry.operations.regenerateOperationIdentifier}\\`.`,\n `Generated PDF context for \\`${entry.fieldName}\\`: CREATE receives \\`${entry.contextAvailability.create}\\`; REGENERATE receives \\`${entry.contextAvailability.regenerate}\\`.`,\n ]),\n );\n}\n\nfunction formatPdfTemplateFieldLine(\n entry: ResourcePdfTemplateSpecification,\n): string {\n return `generated PDF field ${entry.fieldName}: template \\`${entry.templateId}\\`; read-visible; stripped from write DTOs; no upload route; regenerate via \\`${entry.operations.regenerateOperationIdentifier}\\`.`;\n}\n\nfunction buildResourceOperationLines(\n operations: Partial<Record<string, {\n purpose?: string;\n outcome?: string;\n whenToUse?: string;\n responseStatuses?: Array<{ code: string; meaning: string }>;\n errorScenarios?: Array<{ code: string; when: string; errorCode?: string }>;\n idempotent?: boolean;\n rateLimitNote?: string;\n examples?: Array<{ title: string }>;\n communications?: ResourceOperationCommunicationsSpecification;\n scheduledExecution?: ResourceOperationScheduledExecutionSpecification;\n /*\n * `Partial<…>`, matching `ResourceOperationSpecificationVariants` on the real spec type (#352).\n * Restating it as a total `Record` made the whole parameter unassignable once `strictNullChecks`\n * was on — the drift a structural restatement of somebody else's type always risks. Safe at every\n * use: `operation.variants?.[variantId]` is already guarded by the `variant ?` below.\n */\n variants?: Partial<Record<string, {\n purpose?: string;\n outcome?: string;\n whenToUse?: string;\n }>>;\n views?: {\n default?: ResourceOperationViewSpecification;\n /* Partial for the same reason as `variants` above; the read site optional-chains. */\n variants?: Partial<Record<string, ResourceOperationViewSpecification>>;\n };\n /*\n * `Partial<Record<…>>`, because both callers pass one (#352). A partial record's values are\n * `T | undefined`, and `Object.entries` yields a key whose value was explicitly set to `undefined`\n * — so dereferencing `operation.purpose` below would have thrown on such an entry. It compiled\n * while `strictNullChecks` was off; the skip below is what makes it true rather than merely typed.\n */\n }>> | undefined,\n): Array<{ text: string }> | undefined {\n if (!operations) {\n return undefined;\n }\n\n return toMarkdownListItems(\n Object.entries(operations).flatMap(([operationId, operation]) => {\n if (operation === undefined) return [];\n const sharedLine = `${operationId}: ${operation.purpose ?? 'No explicit purpose provided.'}${operation.outcome ? ` Outcome: ${operation.outcome}.` : ''}${operation.whenToUse ? ` Use when ${operation.whenToUse}.` : ''}`;\n const sharedViewLine = formatOperationViewLine(\n `${operationId}.views.default`,\n operation.views?.default,\n );\n const communicationsLines = formatOperationCommunicationsLines(\n operationId,\n operation.communications,\n );\n const scheduledExecutionLine = formatOperationScheduledExecutionLine(\n operationId,\n operation.scheduledExecution,\n );\n const httpDocLines = formatOperationHttpDocLines(operationId, operation);\n const variantIds = Array.from(new Set([\n ...Object.keys(operation.variants ?? {}),\n ...Object.keys(operation.views?.variants ?? {}),\n ]));\n const variantLines = variantIds.flatMap((variantId) => {\n const variant = operation.variants?.[variantId];\n const variantLine = variant\n ? `${operationId}.${variantId}: ${variant.purpose ?? 'No explicit purpose provided.'}${variant.outcome ? ` Outcome: ${variant.outcome}.` : ''}${variant.whenToUse ? ` Use when ${variant.whenToUse}.` : ''}`\n : undefined;\n const variantViewLine = formatOperationViewLine(\n `${operationId}.views.${variantId}`,\n operation.views?.variants?.[variantId],\n );\n return [variantLine, variantViewLine];\n });\n return [\n sharedLine,\n sharedViewLine,\n ...communicationsLines,\n scheduledExecutionLine,\n ...httpDocLines,\n ...variantLines,\n ];\n }),\n );\n}\n\n/**\n * Renders the Tier-3 HTTP-documentation fields of one operation as greppable\n * `operationId.field:` lines so prose readers (and tooling that greps by\n * operation) can find every authored axis. Returns an empty array when the\n * operation authored none.\n */\nfunction formatOperationHttpDocLines(\n operationId: string,\n operation: {\n responseStatuses?: Array<{ code: string; meaning: string }>;\n errorScenarios?: Array<{ code: string; when: string; errorCode?: string }>;\n idempotent?: boolean;\n rateLimitNote?: string;\n examples?: Array<{ title: string }>;\n },\n): Array<string | undefined> {\n const lines: Array<string | undefined> = [];\n if (operation.responseStatuses && operation.responseStatuses.length > 0) {\n lines.push(\n `${operationId}.responseStatuses: ${operation.responseStatuses\n .map((status) => `${status.code} — ${status.meaning}`)\n .join('; ')}`,\n );\n }\n if (operation.errorScenarios && operation.errorScenarios.length > 0) {\n lines.push(\n `${operationId}.errorScenarios: ${operation.errorScenarios\n .map((scenario) => `${scenario.code}${scenario.errorCode ? ` (${scenario.errorCode})` : ''} — ${scenario.when}`)\n .join('; ')}`,\n );\n }\n if (operation.idempotent !== undefined) {\n lines.push(`${operationId}.idempotent: ${operation.idempotent ? 'yes' : 'no'}`);\n }\n if (operation.rateLimitNote) {\n lines.push(`${operationId}.rateLimit: ${operation.rateLimitNote}`);\n }\n if (operation.examples && operation.examples.length > 0) {\n lines.push(\n `${operationId}.examples: ${operation.examples.map((example) => example.title).join('; ')}`,\n );\n }\n return lines;\n}\n\nfunction formatOperationCommunicationsLines(\n operationId: string,\n communications: ResourceOperationCommunicationsSpecification | undefined,\n): Array<string | undefined> {\n if (!communications) {\n return [];\n }\n return [\n formatOperationEmailLine(operationId, communications.email),\n formatOperationNotificationLine(operationId, communications.notification),\n formatOperationM2MLine(operationId, communications.m2m),\n ];\n}\n\n/**\n * Render every authored text slot — required and optional — as its own\n * dotted-bullet entry so companion prompts see each slot's `purpose` /\n * `whenToUse` / `notes`, not just a flat key list. The first key in\n * `requiredSlotKeys` is rendered first so the canonical \"subject\"/\"title\"\n * slot keeps its leading position; remaining slots follow declaration order.\n *\n * Distinct from {@link buildTextSlotLines} only in **key format**, not in\n * note rendering: this helper uses a dotted key (`${owner}.${slotKey}:`)\n * because communications text slots are addressable translation targets in\n * their own right, while {@link buildTextSlotLines} uses a humanised key\n * (`${owner} ${slotName}:`) for the resource frontend's label / layout /\n * guidance surfaces. **Both** helpers expand `notes` per-line under the\n * matching `… note: …` suffix so downstream tooling can grep for every\n * authored note as its own structural line — the consolidated\n * `assertOptionalNonEmptyStringList` validator JSDoc promises exactly that.\n *\n * **Casing convention** (intentionally two-tiered across this renderer):\n * - **Block-level headlines** (`Purpose:`, `Tone:`, `Audience:`,\n * `Use when …`, `Avoid when …`, `Channel:`, `Target:`, `Variant:`, etc.)\n * start with a capital letter because they are sentence-cased narrative\n * labels for the section the reader just entered.\n * - **Slot-level entries** here (`purpose:`, `when to use:`) start with a\n * lowercase letter because they are key-value metadata enumerated under\n * the slot's own dotted address, not narrative prose. Downstream tooling\n * can grep `${owner}.${slotKey}: purpose:` to find every authored slot\n * purpose without false-positive matches against the block headlines.\n *\n * Keep this convention stable: changing the casing breaks both companion\n * prompt readability and the grep contract.\n */\nfunction formatOperationTextSlotLines(\n ownerLabel: string,\n textSlots: TranslationSlotSpecificationMap,\n requiredSlotKeys: readonly string[],\n): string[] {\n const orderedKeys = [\n ...requiredSlotKeys.filter((key) => key in textSlots),\n ...Object.keys(textSlots).filter((key) => !requiredSlotKeys.includes(key)),\n ];\n const lines: string[] = [];\n for (const slotKey of orderedKeys) {\n const slot = textSlots[slotKey];\n if (!slot) {\n continue;\n }\n const slotParts = [\n `purpose: ${slot.purpose}`,\n slot.whenToUse ? `when to use: ${slot.whenToUse}` : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n lines.push(`${ownerLabel}.${slotKey}: ${slotParts.join(' ')}`);\n if (slot.notes?.length) {\n for (const note of slot.notes) {\n lines.push(`${ownerLabel}.${slotKey} note: ${note}`);\n }\n }\n }\n return lines;\n}\n\n/**\n * Render the optional `eventData` slot under its owner label as one\n * `purpose` (+ optional `whenToUse`) headline followed by per-note bullets.\n *\n * Mirrors the per-note grep-ability of\n * `system-email-template-specification-context.factory.ts`'s\n * `buildEventDataLines` (notes never silently flatten into a join), but the\n * surface format is intentionally different:\n *\n * - System-email renderer emits scalar `Meaning: …` and `Note: …` lines\n * because there is exactly ONE eventData per template (no ambiguity about\n * ownership). Downstream tooling for system-email greps for those scalar\n * prefixes inside one template's section.\n * - Resource-operation renderer (this function) emits owner-prefixed lines\n * `${ownerLabel}: purpose: …` and `${ownerLabel} note: …` because every\n * operation can have multiple communication blocks (email, notification,\n * m2m) and every block can have its own eventData; the owner label is the\n * only thing that disambiguates them inside the same operation list, and\n * downstream tooling greps by owner (e.g. `change_status.communications.email.eventData note:`).\n *\n * The validators in `resource-specification.schemas.ts`\n * (`assertOptionalEventDataSlot`) enforce non-empty trimmed entries on this\n * very surface, so the renderer MUST surface them here for the validation\n * contract to hold end-to-end.\n */\nfunction formatEventDataLines(\n ownerLabel: string,\n eventData: TranslationSlotSpecification | undefined,\n): string[] {\n if (!eventData) {\n return [];\n }\n const headlineParts = [\n `purpose: ${eventData.purpose}`,\n eventData.whenToUse ? `when to use: ${eventData.whenToUse}` : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n const lines = [`${ownerLabel}: ${headlineParts.join(' ')}`];\n for (const note of eventData.notes ?? []) {\n lines.push(`${ownerLabel} note: ${note}`);\n }\n return lines;\n}\n\n/**\n * The on-rendered noun used as a companion-bullet line prefix by\n * {@link formatBulletList}. Each member's string value IS the rendered prose,\n * so renaming a member value changes the compiled specification-context\n * Markdown that downstream tooling greps by prefix.\n */\nenum SpecificationBulletKind {\n /**\n * Parent-block `businessConstraints` (the canonical list a delivery\n * inherits from).\n */\n CONSTRAINT = 'constraint',\n /**\n * Per-delivery `additionalBusinessConstraints` (M5-8 cue) so prose readers\n * see the layering semantics explicitly instead of inferring them from the\n * path alone — the schema JSDoc on\n * `ResourceOperationEmailDeliverySpecification.additionalBusinessConstraints`\n * states these are layered on top of parent `businessConstraints`, but the\n * rendered Markdown previously read identically to the parent constraints\n * with only the path differing.\n */\n ADDITIONAL_CONSTRAINT_LAYERED_ON_PARENT = 'additional constraint (layered on parent)',\n /** `notes[]` and `codeHandling.notes[]` surfaces. */\n NOTE = 'note',\n}\n\n/**\n * Render an authored `string[]` companion-bullet surface as one line per\n * entry under the owner label. Mirrors the contract documented on\n * `assertOptionalNonEmptyStringList` (resource-specification.schemas.ts):\n * \"every entry must be a non-empty trimmed string because the renderer\n * emits each entry as a bullet\" — keep that promise truthful by emitting\n * one bullet per entry instead of an inline `Constraints: a b c` join, so\n * downstream tooling that greps for `${owner} constraint:` / `${owner}\n * note:` finds every authored entry as its own structural line.\n *\n * `bulletKind` carries the on-rendered noun used as the line prefix — see\n * {@link SpecificationBulletKind} for the per-member semantics.\n */\nfunction formatBulletList(\n ownerLabel: string,\n bulletKind: SpecificationBulletKind,\n values: readonly string[] | undefined,\n): string[] {\n if (!values?.length) {\n return [];\n }\n return values.map((value) => `${ownerLabel} ${bulletKind}: ${value}`);\n}\n\nfunction formatOperationEmailLine(\n operationId: string,\n email: ResourceOperationEmailSpecification | undefined,\n): string | undefined {\n if (!email) {\n return undefined;\n }\n const ownerLabel = `${operationId}.communications.email`;\n const headlineParts = [\n `Purpose: ${email.purpose}`,\n `Tone: ${email.tone}`,\n email.useWhen ? `Use when ${email.useWhen}.` : undefined,\n email.avoidWhen ? `Avoid when ${email.avoidWhen}.` : undefined,\n `Deliveries: ${email.deliveries.length}.`,\n email.codeHandling?.eventDataSchemaSymbol\n ? `Event schema: ${formatCodeSymbolRef(email.codeHandling.eventDataSchemaSymbol)}`\n : undefined,\n email.codeHandling?.eventDataTypeSymbol\n ? `Event type: ${formatCodeSymbolRef(email.codeHandling.eventDataTypeSymbol)}`\n : undefined,\n ...(email.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(ownerLabel, SpecificationBulletKind.CONSTRAINT, email.businessConstraints);\n const codeHandlingNoteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, email.codeHandling?.notes);\n const eventDataLines = formatEventDataLines(`${ownerLabel}.eventData`, email.eventData);\n const slotLines = formatOperationTextSlotLines(\n `${ownerLabel}.textSlots`,\n email.textSlots,\n ['subject'],\n );\n const deliveryLines = email.deliveries.flatMap((delivery, index) => (\n formatEmailDeliveryLines(ownerLabel, index, delivery)\n ));\n\n const allLines = [\n headline,\n ...constraintLines,\n ...codeHandlingNoteLines,\n ...eventDataLines,\n ...slotLines,\n ...deliveryLines,\n ].filter((value): value is string => Boolean(value));\n\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Render one email delivery as its own structural section so companion\n * prompts and transposers see every authored fan-out entry as a discrete\n * unit rather than buried prose. Per-delivery overrides\n * (`textSlotsOverrides`, `purposeOverride`, `additionalBusinessConstraints`,\n * `notes`) are surfaced ONLY when authored, so the common case where a\n * delivery shares the parent copy verbatim stays terse.\n *\n * The headline echoes the runtime fan-out keys (`targetRef`, `variantRef`,\n * `customDeliveryRef`) so transposers can compute the dispatcher's template\n * path (`email.{resourceId}.{op}.{variant?}.{target-kebab}_{customRef?}`)\n * directly from the spec without re-reading the resource configuration.\n */\nfunction formatEmailDeliveryLines(\n parentLabel: string,\n index: number,\n delivery: ResourceOperationEmailDeliverySpecification,\n): string[] {\n const ownerLabel = `${parentLabel}.deliveries[${index}]`;\n const headlineParts = [\n `Audience: ${delivery.audience}`,\n `Target: \\`${delivery.targetRef}\\`.`,\n delivery.variantRef ? `Variant: \\`${delivery.variantRef}\\`.` : undefined,\n delivery.customDeliveryRef\n ? `Custom delivery ref: \\`${delivery.customDeliveryRef}\\`.`\n : undefined,\n delivery.systemEmailTemplateRef\n ? `System-email template ref: \\`${delivery.systemEmailTemplateRef}\\`.`\n : undefined,\n delivery.purposeOverride\n ? `Purpose override (replaces parent purpose for this delivery): ${delivery.purposeOverride}`\n : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = `${ownerLabel}: ${headlineParts.join(' ')}`;\n const constraintLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.ADDITIONAL_CONSTRAINT_LAYERED_ON_PARENT,\n delivery.additionalBusinessConstraints,\n );\n const noteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, delivery.notes);\n const overrideSlotLines = delivery.textSlotsOverrides\n ? formatOperationTextSlotLines(\n `${ownerLabel}.textSlotsOverrides (replaces parent textSlots for this delivery)`,\n delivery.textSlotsOverrides,\n [],\n )\n : [];\n\n return [headline, ...constraintLines, ...noteLines, ...overrideSlotLines];\n}\n\nfunction formatOperationNotificationLine(\n operationId: string,\n notification: ResourceOperationNotificationSpecification | undefined,\n): string | undefined {\n if (!notification) {\n return undefined;\n }\n const ownerLabel = `${operationId}.communications.notification`;\n const headlineParts = [\n `Purpose: ${notification.purpose}`,\n `Tone: ${notification.tone}`,\n notification.useWhen ? `Use when ${notification.useWhen}.` : undefined,\n notification.avoidWhen ? `Avoid when ${notification.avoidWhen}.` : undefined,\n `Deliveries: ${notification.deliveries.length}.`,\n notification.codeHandling?.channelEnum\n ? `Channel enum: ${formatCodeSymbolRef(notification.codeHandling.channelEnum)}`\n : undefined,\n notification.codeHandling?.eventDataSchemaSymbol\n ? `Event schema: ${formatCodeSymbolRef(notification.codeHandling.eventDataSchemaSymbol)}`\n : undefined,\n notification.codeHandling?.eventDataTypeSymbol\n ? `Event type: ${formatCodeSymbolRef(notification.codeHandling.eventDataTypeSymbol)}`\n : undefined,\n ...(notification.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(ownerLabel, SpecificationBulletKind.CONSTRAINT, notification.businessConstraints);\n const codeHandlingNoteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, notification.codeHandling?.notes);\n const eventDataLines = formatEventDataLines(`${ownerLabel}.eventData`, notification.eventData);\n const slotLines = formatOperationTextSlotLines(\n `${ownerLabel}.textSlots`,\n notification.textSlots,\n ['title'],\n );\n const deliveryLines = notification.deliveries.flatMap((delivery, index) => (\n formatNotificationDeliveryLines(ownerLabel, index, delivery)\n ));\n\n const allLines = [\n headline,\n ...constraintLines,\n ...codeHandlingNoteLines,\n ...eventDataLines,\n ...slotLines,\n ...deliveryLines,\n ].filter((value): value is string => Boolean(value));\n\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Render one in-app notification delivery. Same contract as\n * {@link formatEmailDeliveryLines} with `channelRef` echoed in the headline\n * because notifications fan out per `(target, channel)` pair at runtime.\n */\nfunction formatNotificationDeliveryLines(\n parentLabel: string,\n index: number,\n delivery: ResourceOperationNotificationDeliverySpecification,\n): string[] {\n const ownerLabel = `${parentLabel}.deliveries[${index}]`;\n const headlineParts = [\n `Audience: ${delivery.audience}`,\n `Channel: \\`${delivery.channelRef}\\`.`,\n `Target: \\`${delivery.targetRef}\\`.`,\n delivery.variantRef ? `Variant: \\`${delivery.variantRef}\\`.` : undefined,\n delivery.customDeliveryRef\n ? `Custom delivery ref: \\`${delivery.customDeliveryRef}\\`.`\n : undefined,\n delivery.purposeOverride\n ? `Purpose override (replaces parent purpose for this delivery): ${delivery.purposeOverride}`\n : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = `${ownerLabel}: ${headlineParts.join(' ')}`;\n const constraintLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.ADDITIONAL_CONSTRAINT_LAYERED_ON_PARENT,\n delivery.additionalBusinessConstraints,\n );\n const noteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, delivery.notes);\n const overrideSlotLines = delivery.textSlotsOverrides\n ? formatOperationTextSlotLines(\n `${ownerLabel}.textSlotsOverrides (replaces parent textSlots for this delivery)`,\n delivery.textSlotsOverrides,\n [],\n )\n : [];\n\n return [headline, ...constraintLines, ...noteLines, ...overrideSlotLines];\n}\n\n/**\n * Render the M2M (webhook) communications block, mirroring the email and\n * notification renderers. M2M dispatch carries no user-facing copy (no\n * `tone`, no `textSlots`), so the parent block surfaces only the shared\n * intent / use guidance / business constraints / payload schema, while\n * each delivery becomes its own structural section.\n */\nfunction formatOperationM2MLine(\n operationId: string,\n m2m: ResourceOperationM2MSpecification | undefined,\n): string | undefined {\n if (!m2m) {\n return undefined;\n }\n const ownerLabel = `${operationId}.communications.m2m`;\n const headlineParts = [\n `Purpose: ${m2m.purpose}`,\n m2m.useWhen ? `Use when ${m2m.useWhen}.` : undefined,\n m2m.avoidWhen ? `Avoid when ${m2m.avoidWhen}.` : undefined,\n `Deliveries: ${m2m.deliveries.length}.`,\n m2m.codeHandling?.channelEnum\n ? `Channel enum: ${formatCodeSymbolRef(m2m.codeHandling.channelEnum)}`\n : undefined,\n m2m.codeHandling?.levelEnum\n ? `Level enum: ${formatCodeSymbolRef(m2m.codeHandling.levelEnum)}`\n : undefined,\n m2m.codeHandling?.payloadSchemaSymbol\n ? `Payload schema: ${formatCodeSymbolRef(m2m.codeHandling.payloadSchemaSymbol)}`\n : undefined,\n m2m.codeHandling?.payloadTypeSymbol\n ? `Payload type: ${formatCodeSymbolRef(m2m.codeHandling.payloadTypeSymbol)}`\n : undefined,\n ...(m2m.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(ownerLabel, SpecificationBulletKind.CONSTRAINT, m2m.businessConstraints);\n const codeHandlingNoteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, m2m.codeHandling?.notes);\n // M2M opts INTO `crossRegistry: 'fail-soft'` at the validator layer\n // (see `assertOptionalRequiredFeaturesSpecification` consumer wiring) and\n // the renderer mirrors that contract by passing a bare ref formatter —\n // see `cross-registry-rendering.shared.ts` \"M2M is intentionally out of\n // scope\" section for the rationale.\n const requiredFeaturesBulletLines = (\n formatRequiredFeaturesBullets(m2m.requiredFeatures, {\n formatFeatureRef: (ref) => `\\`${ref}\\``,\n }) ?? []\n ).map((line) => `${ownerLabel} required-features: ${line}`);\n const deliveryLines = m2m.deliveries.flatMap((delivery, index) => (\n formatM2MDeliveryLines(ownerLabel, index, delivery)\n ));\n\n const allLines = [\n headline,\n ...constraintLines,\n ...codeHandlingNoteLines,\n ...requiredFeaturesBulletLines,\n ...deliveryLines,\n ].filter((value): value is string => Boolean(value));\n\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Render one M2M (webhook) delivery as its own structural section. Each\n * runtime `m2mNotifications[]` entry maps to one delivery here, so the\n * headline echoes `channelRef` / `level` / `variantRef` / `customDeliveryRef`\n * — the four fields that fully identify the dispatch at runtime.\n */\nfunction formatM2MDeliveryLines(\n parentLabel: string,\n index: number,\n delivery: ResourceOperationM2MDeliverySpecification,\n): string[] {\n const ownerLabel = `${parentLabel}.deliveries[${index}]`;\n const headlineParts = [\n `Audience: ${delivery.audience}`,\n `Channel: \\`${delivery.channelRef}\\`.`,\n delivery.level ? `Level: \\`${delivery.level}\\`.` : undefined,\n delivery.variantRef ? `Variant: \\`${delivery.variantRef}\\`.` : undefined,\n delivery.customDeliveryRef\n ? `Custom delivery ref: \\`${delivery.customDeliveryRef}\\`.`\n : undefined,\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = `${ownerLabel}: ${headlineParts.join(' ')}`;\n const noteLines = formatBulletList(ownerLabel, SpecificationBulletKind.NOTE, delivery.notes);\n\n return [headline, ...noteLines];\n}\n\n/**\n * Renders a flat markdown line for the discriminated-union\n * `scheduledExecution` overlay. Each arm surfaces only the fields the spec\n * arm actually carries — companion prompts must not imagine a cron on a\n * batch-job arm nor a custom-batch ref on the native arms. The union\n * discriminant (`variantType`) is echoed explicitly so downstream readers\n * can reason about the anchor class (`NATIVE_CRON_JOB` / `NATIVE_BATCH_JOB` /\n * `CUSTOM_BATCH`) without pattern-matching on field presence.\n */\nfunction formatOperationScheduledExecutionLine(\n operationId: string,\n scheduledExecution: ResourceOperationScheduledExecutionSpecification | undefined,\n): string | undefined {\n if (!scheduledExecution) {\n return undefined;\n }\n const ownerLabel = `${operationId}.scheduledExecution`;\n const variantLine = `Variant: ${scheduledExecution.variantType}.`;\n const cronLine = scheduledExecutionCronExpression(scheduledExecution);\n const customBatchRefLine = scheduledExecution.variantType === ResourceOperationScheduledExecutionVariantType.CUSTOM_BATCH\n ? `Custom batch ref: \\`${scheduledExecution.customBatchRef}\\`.`\n : undefined;\n const headlineParts = [\n variantLine,\n `Purpose: ${scheduledExecution.purpose}`,\n `Outcome: ${scheduledExecution.outcome}`,\n cronLine,\n customBatchRefLine,\n scheduledExecution.useWhen ? `Use when ${scheduledExecution.useWhen}.` : undefined,\n scheduledExecution.avoidWhen ? `Avoid when ${scheduledExecution.avoidWhen}.` : undefined,\n scheduledExecution.codeHandling?.inputSchemaSymbol\n ? `Input schema: ${formatCodeSymbolRef(scheduledExecution.codeHandling.inputSchemaSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.outputSchemaSymbol\n ? `Output schema: ${formatCodeSymbolRef(scheduledExecution.codeHandling.outputSchemaSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.inputTypeSymbol\n ? `Input type: ${formatCodeSymbolRef(scheduledExecution.codeHandling.inputTypeSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.outputTypeSymbol\n ? `Output type: ${formatCodeSymbolRef(scheduledExecution.codeHandling.outputTypeSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.customBatchRefSymbol\n ? `Batch ref symbol: ${formatCodeSymbolRef(scheduledExecution.codeHandling.customBatchRefSymbol)}`\n : undefined,\n scheduledExecution.codeHandling?.batchFactorySymbol\n ? `Batch factory: ${formatCodeSymbolRef(scheduledExecution.codeHandling.batchFactorySymbol)}`\n : undefined,\n ...(scheduledExecution.codeHandling?.supportingSymbols ?? []).map((symbol) => (\n `Supporting symbol: ${formatCodeSymbolRef(symbol)}`\n )),\n ].filter((value): value is string => Boolean(value && value.trim().length));\n\n const headline = headlineParts.length > 0\n ? `${ownerLabel}: ${headlineParts.join(' ')}`\n : undefined;\n const constraintLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.CONSTRAINT,\n scheduledExecution.businessConstraints,\n );\n const codeHandlingNoteLines = formatBulletList(\n ownerLabel,\n SpecificationBulletKind.NOTE,\n scheduledExecution.codeHandling?.notes,\n );\n\n const allLines = [headline, ...constraintLines, ...codeHandlingNoteLines]\n .filter((value): value is string => Boolean(value));\n return allLines.length > 0 ? allLines.join('\\n') : undefined;\n}\n\n/**\n * Returns the cron markdown token for arms that carry one. `NATIVE_BATCH_JOB`\n * is event-triggered by contract (validator fails closed on a declared cron),\n * so the renderer must not fabricate a cron line for it — consumers that see\n * no cron line know the run is dispatched, not scheduled.\n */\nfunction scheduledExecutionCronExpression(\n scheduledExecution: ResourceOperationScheduledExecutionSpecification,\n): string | undefined {\n switch (scheduledExecution.variantType) {\n case ResourceOperationScheduledExecutionVariantType.NATIVE_CRON_JOB:\n return `Cron: \\`${scheduledExecution.cronExpression}\\`.`;\n case ResourceOperationScheduledExecutionVariantType.CUSTOM_BATCH:\n return scheduledExecution.cronExpression\n ? `Cron: \\`${scheduledExecution.cronExpression}\\`.`\n : undefined;\n case ResourceOperationScheduledExecutionVariantType.NATIVE_BATCH_JOB:\n return undefined;\n default: {\n const exhaustiveCheck: never = scheduledExecution;\n throw new Error(\n `scheduledExecutionCronExpression(): unsupported variantType: ${JSON.stringify(exhaustiveCheck)}.`,\n );\n }\n }\n}\n\n/**\n * Render the views overlay for an operation. Custom hosts and linked views\n * each become a header line that echoes the structural identity (host\n * symbol / preset / declaration symbols, linked view kind + ref + purpose,\n * `whenToUse` guidance), followed by one structural bullet per authored\n * note via {@link formatBulletList}. The previous inline `${notes.join(' ')}`\n * silently flattened authored notes onto the header line and broke the\n * companion-bullet contract that downstream tooling depends on for\n * grep-able per-note lines (`${owner} note: …`).\n */\nfunction formatOperationViewLine(\n viewKey: string,\n views: ResourceOperationViewSpecification | undefined,\n): string | undefined {\n if (!views) {\n return undefined;\n }\n\n const lines: string[] = [];\n\n if (views.customView) {\n const customLabel = `${viewKey}.customView`;\n const customHeadline = `Custom host: ${formatCodeSymbolRef(\n views.customView.consumerFacingSymbol ?? views.customView.implementationSymbol,\n )}${views.customView.basedOnPreset ? ` Based on preset \\`${views.customView.basedOnPreset}\\`.` : ''}${views.customView.whenToUse ? ` Use when ${views.customView.whenToUse}.` : ''}${\n views.customView.declarationSymbols?.length\n ? ` Declared from ${views.customView.declarationSymbols.map((symbol) => `\\`${symbol.exportName}\\``).join(', ')}.`\n : ''\n }`;\n lines.push(`${customLabel}: ${customHeadline}`);\n lines.push(...formatBulletList(customLabel, SpecificationBulletKind.NOTE, views.customView.notes));\n }\n\n for (const [index, otherView] of (views.otherViews ?? []).entries()) {\n const otherLabel = `${viewKey}.otherViews[${index}]`;\n const otherHeadline = `Linked ${otherView.viewKind} view \\`${otherView.viewRef}\\`: ${otherView.purpose}${otherView.whenToUse ? ` Use when ${otherView.whenToUse}.` : ''}`;\n lines.push(`${otherLabel}: ${otherHeadline}`);\n lines.push(...formatBulletList(otherLabel, SpecificationBulletKind.NOTE, otherView.notes));\n }\n\n return lines.length > 0 ? lines.join('\\n') : undefined;\n}\n\nfunction buildResourceFrontendLines(\n specification: AnyResourceSpecificationConfig,\n): Array<{ text: string }> | undefined {\n const frontend = specification.frontend;\n if (!frontend) {\n return undefined;\n }\n\n const guidanceLines = Object.entries(frontend.guidance ?? {}).map(([guidanceId, guidance]) => (\n `${guidanceId}: ${guidance.purpose}${guidance.whenToTrigger ? ` Trigger when ${guidance.whenToTrigger}.` : ''}`\n ));\n const layoutSlotLines = buildStructuralSlotLines('section', frontend.layout?.sections);\n const wizardStepLines = buildStructuralSlotLines('wizard step', frontend.layout?.wizardSteps);\n const groupLines = buildStructuralSlotLines('group', frontend.layout?.groups);\n const guidanceElementLines = Object.entries(frontend.guidance ?? {}).flatMap(([guidanceId, guidance]) => {\n const flowSlotLines = buildTextSlotLines(\n `guidance ${guidanceId}`,\n guidance.textSlots,\n );\n const elementLines = Object.entries(guidance.elements ?? {}).flatMap(([elementRef, element]) => ([\n `Guidance element ${guidanceId}.${elementRef}: ${element.purpose}${element.whenToUse ? ` Use when ${element.whenToUse}.` : ''}`,\n ...buildTextSlotLines(`guidance ${guidanceId}.${elementRef}`, element.textSlots),\n ]));\n return [...flowSlotLines, ...elementLines];\n });\n\n return toMarkdownListItems([\n frontend.label?.purpose ? `Label strategy: ${frontend.label.purpose}` : undefined,\n ...buildTextSlotLines('label strategy', frontend.label?.textSlots),\n frontend.layout?.purpose ? `Layout purpose: ${frontend.layout.purpose}` : undefined,\n frontend.layout?.displayPurpose ? `Display purpose: ${frontend.layout.displayPurpose}` : undefined,\n frontend.layout?.summaryPurpose ? `Summary purpose: ${frontend.layout.summaryPurpose}` : undefined,\n frontend.layout?.editPurpose ? `Edit purpose: ${frontend.layout.editPurpose}` : undefined,\n ...layoutSlotLines,\n ...wizardStepLines,\n ...groupLines,\n frontend.emptyState?.purpose ? `Empty state: ${frontend.emptyState.purpose}` : undefined,\n frontend.emptyState?.primaryActionPurpose\n ? `Empty-state primary action: ${frontend.emptyState.primaryActionPurpose}`\n : undefined,\n frontend.emptyState?.secondaryActionPurpose\n ? `Empty-state secondary action: ${frontend.emptyState.secondaryActionPurpose}`\n : undefined,\n ...guidanceLines,\n ...guidanceElementLines,\n ]);\n}\n\nfunction buildStructuralSlotLines(\n slotKind: string,\n slots: Record<string, { purpose: string; whenToUse?: string; textSlots?: Record<string, { purpose: string; whenToUse?: string }> }> | undefined,\n): string[] {\n return Object.entries(slots ?? {}).flatMap(([slotRef, slotSpec]) => ([\n `${slotKind} ${slotRef}: ${slotSpec.purpose}${slotSpec.whenToUse ? ` Use when ${slotSpec.whenToUse}.` : ''}`,\n ...buildTextSlotLines(`${slotKind} ${slotRef}`, slotSpec.textSlots),\n ]));\n}\n\n/**\n * Per-slot rendering for the resource frontend's labelling / layout /\n * guidance / structural slots. Each slot becomes one header line\n * (`${ownerLabel} ${slotName}: ${purpose} Use when …`) followed by one\n * additional line per authored note (`${ownerLabel} ${slotName} note: …`).\n *\n * The header line stays compact (single bullet per slot) but notes are\n * expanded so downstream tooling that greps for `${owner} … note:` finds\n * every authored entry as its own structural line — symmetric with\n * {@link formatOperationTextSlotLines} (operation communications) and the\n * system-email factory's `buildTextSlotLines`. The previous\n * `Notes: a b c` join silently flattened per-note grep-ability and\n * diverged from the per-note rendering pattern that the consolidated\n * `assertOptionalNonEmptyStringList` validator JSDoc promises across the\n * companion surface.\n */\nfunction buildTextSlotLines(\n ownerLabel: string,\n textSlots: Record<string, { purpose: string; whenToUse?: string; notes?: string[] }> | undefined,\n): string[] {\n return Object.entries(textSlots ?? {}).flatMap(([slotName, slotSpec]) => {\n const header = `${ownerLabel} ${slotName}: ${slotSpec.purpose}${slotSpec.whenToUse ? ` Use when ${slotSpec.whenToUse}.` : ''}`;\n const noteLines = (slotSpec.notes ?? []).map(\n (note) => `${ownerLabel} ${slotName} note: ${note}`,\n );\n return [header, ...noteLines];\n });\n}\n\nfunction buildResourceImplementationReferences(\n specification: AnyResourceSpecificationConfig,\n): Array<{ text: string }> | undefined {\n const codeHandling = specification.codeHandling;\n if (!codeHandling) {\n return undefined;\n }\n\n return toMarkdownListItems([\n formatCodeSymbolRef(codeHandling.mainSchema),\n codeHandling.resourceFactory ? formatCodeSymbolRef(codeHandling.resourceFactory) : undefined,\n codeHandling.resourceFactoryCollectionEntry\n ? formatCollectionEntryRef(codeHandling.resourceFactoryCollectionEntry)\n : undefined,\n codeHandling.resourceType\n ? `Use resource type member \\`${codeHandling.resourceType.memberName}\\` from \\`${codeHandling.resourceType.enumDeclaration.exportName}\\` imported via \\`${codeHandling.resourceType.enumDeclaration.packageName}\\`.`\n : undefined,\n codeHandling.operationVocabulary?.coreEnum\n ? `Core operation vocabulary: ${formatCodeSymbolRef(codeHandling.operationVocabulary.coreEnum)}`\n : undefined,\n codeHandling.operationVocabulary?.customEnum\n ? `Custom operation vocabulary: ${formatCodeSymbolRef(codeHandling.operationVocabulary.customEnum)}`\n : undefined,\n ...(codeHandling.frontendConfigurationSources ?? []).map((source) => (\n `Frontend configuration source: ${formatCodeSymbolRef(source)}`\n )),\n ...(codeHandling.frontendConfigurationSourceEntries ?? []).map((sourceEntry) => (\n `Frontend configuration source: ${formatCollectionEntryRef(sourceEntry)}`\n )),\n ...(codeHandling.notes ?? []),\n ]);\n}\n\n/**\n * Optional registry + materialization plumbing.\n *\n * - `resourceRelationships` — Phase 2B: threads the resource's relationship\n * slice into the field-spec extractor so `foreignKeySpec` fields can\n * derive their target via `ResourceRelationship.foreignKeyField`. The\n * resource type used to scope the lookup is `specificationId` (resource\n * specifications are keyed by resource type at the spec layer).\n * - `materializedConfig` — Phase 4: lets the renderer fire\n * `validateResourceFieldCompleteness(...)` against the resource's live\n * `mainSchema` + `inheritenceSchemaDefinition` before producing any\n * markdown. Missing overlay on an enum / array / FK field, or an\n * `enumSpec.values` divergence, throws synchronously so partial /\n * incorrect prompts cannot ship downstream.\n *\n * Both slices are optional rather than required because:\n * - test harnesses construct render requests without a live registry,\n * - non-resource family renderers do not need them,\n * - `additionalFieldSpecs` entries are passed through unchanged anyway\n * (per Q6-5, the Phase 3 shape gates apply but completeness derivation\n * does not).\n *\n * Production introspection callers always supply both; tests only supply\n * what they need to assert.\n */\nexport interface RenderResourceSpecificationOptions {\n resourceRelationships?: readonly ResourceRelationship[];\n materializedConfig?: {\n mainSchema: z.ZodTypeAny;\n inheritanceDefinition?: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>;\n };\n}\n\nexport function renderResourceSpecificationContextPart(\n specificationId: string,\n specification: AnyResourceSpecificationConfig,\n templateId:\n | SpecificationContextTemplateId.RESOURCE_TRANSLATION_CONTEXT\n | SpecificationContextTemplateId.RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT\n | SpecificationContextTemplateId.RESOURCE_DEVELOPMENT_USAGE_CONTEXT\n | SpecificationContextTemplateId.RESOURCE_ALL_INFORMATION,\n options: RenderResourceSpecificationOptions = {},\n): SpecificationMarkdownContextPart {\n const title = `Resource context: ${specificationId}`;\n const implementationReferences = buildResourceImplementationReferences(specification);\n const registryContext: ExtractFieldSpecsRegistryContext | undefined = options.resourceRelationships\n ? {\n currentResourceType: specificationId,\n relationships: options.resourceRelationships,\n }\n : undefined;\n const fieldSpecs = buildResourceFieldSpecs(specification, registryContext);\n\n // Phase 4 (D-6) — fail-closed completeness gate. Runs before any\n // markdown is produced so a missing overlay (enum/array/FK) on a\n // spec-worthy field aborts the render with a single combined message\n // instead of shipping a partial prompt downstream. Fires only when the\n // caller wired both the live schema (`materializedConfig`) AND the\n // registry slice (`resourceRelationships`) — production introspection\n // wires both; tests opt in selectively.\n if (options.materializedConfig && options.resourceRelationships) {\n validateResourceFieldCompleteness(\n `companion[render: ${specificationId}]: `,\n {\n mainSchema: options.materializedConfig.mainSchema,\n inheritanceDefinition: options.materializedConfig.inheritanceDefinition,\n fieldSpecs,\n relationships: options.resourceRelationships,\n currentResourceType: specificationId,\n },\n );\n }\n\n const fieldLines = buildResourceFieldLines(fieldSpecs, specification.pdfTemplates);\n const baseOperationLines = buildResourceOperationLines(specification.operations);\n const frontendViewLines = buildResourceOperationLines(specification.frontend?.views);\n const frontendLines = buildResourceFrontendLines(specification);\n const pdfTemplateLines = buildResourcePdfTemplateLines(specification.pdfTemplates);\n const businessConstraints = toMarkdownListItems(specification.businessConstraints ?? []);\n const lifecycleRole = formatLiteralLine('Lifecycle role', specification.lifecycleRole);\n\n switch (templateId) {\n case SpecificationContextTemplateId.RESOURCE_TRANSLATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.TRANSLATION_CONTEXT,\n specificationId,\n title,\n markdown: renderResourceTranslationContext({\n title,\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole,\n fieldLines,\n frontendLines,\n baseOperationLines,\n frontendViewLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.RESOURCE_CUSTOM_IMPLEMENTATION_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.CUSTOM_IMPLEMENTATION_CONTEXT,\n specificationId,\n title,\n markdown: renderResourceCustomImplementationContext({\n title,\n purpose: specification.purpose,\n implementationReferences,\n fieldLines,\n baseOperationLines,\n frontendViewLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.RESOURCE_DEVELOPMENT_USAGE_CONTEXT:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.DEVELOPMENT_USAGE_CONTEXT,\n specificationId,\n title,\n markdown: renderResourceDevelopmentUsageContext({\n title,\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole,\n fieldLines,\n baseOperationLines,\n frontendViewLines,\n frontendLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n case SpecificationContextTemplateId.RESOURCE_ALL_INFORMATION:\n return {\n templateId,\n family: SpecificationContextFamily.RESOURCE,\n concern: SpecificationContextConcern.ALL_INFORMATION,\n specificationId,\n title,\n markdown: renderResourceAllInformationContext({\n title,\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole,\n implementationReferences,\n fieldLines,\n baseOperationLines,\n frontendViewLines,\n frontendLines,\n pdfTemplateLines,\n businessConstraints,\n }),\n };\n }\n}\n"]}
@@ -20,8 +20,10 @@ export declare const AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL: Record<CompanionTrace
20
20
  *
21
21
  * Correlation: the caller passes its companion session/step ids as
22
22
  * `traceContext.sessionRef` / `stepRef`; this sink resolves them via
23
- * `CompanionTraceabilityService.getSession/getStep`. Un-correlated calls (no
24
- * `sessionRef`, or an evicted/unknown one) fall back to a lazily-created
23
+ * `CompanionTraceabilityService.getSession/getStep`. A call that names none is
24
+ * attributed to the session its async context runs under — the request that
25
+ * started the work (`getActiveSession`). Only calls with neither (a boot-time
26
+ * derivation, a timer) fall back to a lazily-created
25
27
  * AMBIENT session — one `internal`-kind session per companion process where
26
28
  * every otherwise-homeless agent call lands as its own step. This is the
27
29
  * "always-on traceability for build-time agent calls" guarantee: a caller
@@ -1 +1 @@
1
- {"version":3,"file":"companion-agent-call-trace-sink.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/traceability/companion-agent-call-trace-sink.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAgC,MAAM,iCAAiC,CAAC;AAE3G;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,0BAA0B,EAAE,sBAAsB,CAI3G,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,2BAA4B,YAAW,kBAAkB;IAMlE,OAAO,CAAC,QAAQ,CAAC,YAAY;IAL/B,qEAAqE;IACrE,OAAO,CAAC,cAAc,CAAgF;gBAInF,YAAY,EAAE,4BAA4B;IAGhD,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAiFvF;;;OAGG;IACH,OAAO,CAAC,iBAAiB;CAY1B"}
1
+ {"version":3,"file":"companion-agent-call-trace-sink.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/traceability/companion-agent-call-trace-sink.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAgC,MAAM,iCAAiC,CAAC;AAE3G;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,0BAA0B,EAAE,sBAAsB,CAI3G,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,2BAA4B,YAAW,kBAAkB;IAMlE,OAAO,CAAC,QAAQ,CAAC,YAAY;IAL/B,qEAAqE;IACrE,OAAO,CAAC,cAAc,CAAgF;gBAInF,YAAY,EAAE,4BAA4B;IAGhD,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAyFvF;;;OAGG;IACH,OAAO,CAAC,iBAAiB;CAY1B"}
@@ -37,8 +37,10 @@ export const AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL = {
37
37
  *
38
38
  * Correlation: the caller passes its companion session/step ids as
39
39
  * `traceContext.sessionRef` / `stepRef`; this sink resolves them via
40
- * `CompanionTraceabilityService.getSession/getStep`. Un-correlated calls (no
41
- * `sessionRef`, or an evicted/unknown one) fall back to a lazily-created
40
+ * `CompanionTraceabilityService.getSession/getStep`. A call that names none is
41
+ * attributed to the session its async context runs under — the request that
42
+ * started the work (`getActiveSession`). Only calls with neither (a boot-time
43
+ * derivation, a timer) fall back to a lazily-created
42
44
  * AMBIENT session — one `internal`-kind session per companion process where
43
45
  * every otherwise-homeless agent call lands as its own step. This is the
44
46
  * "always-on traceability for build-time agent calls" guarantee: a caller
@@ -58,6 +60,14 @@ let CompanionAgentCallTraceSink = class CompanionAgentCallTraceSink {
58
60
  const correlated = sessionId ? this.traceability.getSession(sessionId) : undefined;
59
61
  let session = correlated;
60
62
  let step = correlated && context?.stepRef ? this.traceability.getStep(context.stepRef) : undefined;
63
+ // The session the call is RUNNING under, when the caller named none: the request that started
64
+ // the work. One step per call, as the ambient fallback does, so two calls sharing a label cannot
65
+ // overwrite each other's prompt artifact.
66
+ const active = session ? undefined : this.traceability.getActiveSession();
67
+ if (active) {
68
+ session = active;
69
+ step = this.traceability.createStep(active, { kind: 'agent-invocation', label: context?.label ?? trace.agentRef });
70
+ }
61
71
  if (!session) {
62
72
  // Ambient fallback: no disk I/O happens at session creation, so an idle
63
73
  // companion (or one at traceability NONE) never materializes this tree.
@@ -160,10 +170,10 @@ export { CompanionAgentCallTraceSink };
160
170
  * very thing an operator opens the file to check: what the model was given.
161
171
  *
162
172
  * This is a READING VIEW and only that. It never touches what is sent: the wire bytes are assembled by
163
- * the Driver, and `promptDigest` (plus the seam hash the Block-4 harness computes in memory) covers
164
- * those, not this file. Re-indenting here is safe precisely because nothing derives a digest from the
165
- * artifact -- verified before making the change -- and semantically lossless, since only whitespace
166
- * between tokens of a successfully parsed value changes.
173
+ * the Driver, and nothing reads this artifact back into any decision. Re-indenting here is safe
174
+ * precisely because nothing derives anything from the artifact -- verified before making the change --
175
+ * and semantically lossless, since only whitespace between tokens of a successfully parsed value
176
+ * changes.
167
177
  *
168
178
  * Lines that are not self-contained JSON are passed through byte-for-byte, so prose, headers and any
169
179
  * partial fragment survive exactly as the model saw them.