@wildo-ai/dev-companion 1.1.5 → 1.1.6

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 (596) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  3. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  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 +0 -1
  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 +8 -0
  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 +6 -0
  11. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  12. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  13. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  14. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  15. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  16. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  17. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  20. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  21. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  22. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  23. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  24. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  25. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  26. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  27. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  29. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  30. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  31. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  33. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  34. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  35. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
  37. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  38. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  39. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  41. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  42. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  43. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  44. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  45. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  46. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  47. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  49. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  50. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  51. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  53. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  54. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  55. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  56. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  57. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  58. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  59. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  60. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  61. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  62. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  63. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  65. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  66. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  67. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  69. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  71. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  72. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  73. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  74. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  75. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  76. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  77. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  78. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  80. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  81. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  82. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  83. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  84. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  85. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  86. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  87. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  88. package/dist/esm/core/inject/models/container.js +4 -0
  89. package/dist/esm/core/inject/models/container.js.map +1 -1
  90. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  91. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  92. package/dist/esm/core/inject/models/service-types.js +4 -0
  93. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  94. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  95. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  96. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  97. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  98. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  99. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  100. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  101. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  102. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  103. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  104. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  105. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  106. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  107. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  108. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  109. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  110. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  111. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  112. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  113. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  114. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  115. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  116. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  117. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  118. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  119. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  120. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  121. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  122. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  123. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  124. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  125. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  126. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  127. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  128. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  129. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  130. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  131. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  132. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  133. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  135. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  137. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  138. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  139. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  141. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  142. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  143. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  145. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  146. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  147. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  149. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  150. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  151. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  152. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  153. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  154. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  155. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  156. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  157. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  158. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  159. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  160. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  161. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  162. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  163. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  164. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  165. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  166. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  167. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  168. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  169. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  170. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  171. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  172. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  173. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  174. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  175. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  176. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  177. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  178. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  179. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  180. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  181. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  182. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  183. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  184. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  185. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  186. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  187. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  188. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  189. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  190. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  191. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  192. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  193. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  194. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  195. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  196. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  197. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  198. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  199. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  200. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  201. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  202. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  203. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  204. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  205. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  206. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  207. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  208. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  209. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  210. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  211. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  212. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  213. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  214. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  215. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  216. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  217. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  218. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  219. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  220. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  221. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  222. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  223. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  224. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  225. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  226. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  227. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  228. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  229. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  230. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  231. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  232. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  233. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  234. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  235. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  236. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  237. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  238. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  239. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  240. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  241. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  242. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  243. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  244. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  245. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  246. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  247. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  248. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  249. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  250. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  251. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  252. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  253. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  254. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  255. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  256. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  257. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  258. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  259. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  260. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  261. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  262. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  263. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  264. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  265. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  266. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  267. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  268. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  269. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  270. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  271. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  272. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  273. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  274. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  275. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  276. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  277. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  278. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  279. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  280. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  281. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  282. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  283. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  284. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  285. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  286. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  287. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  288. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  289. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  290. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  291. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  292. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  293. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  294. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  295. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  296. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  297. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  298. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  299. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  300. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  301. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  302. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  303. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  304. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  305. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  306. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  307. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  308. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  309. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  310. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  311. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  312. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  313. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  314. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  315. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  316. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  317. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  318. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  319. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  320. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  321. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  322. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  323. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  324. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  325. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  326. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  327. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  328. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  329. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  330. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  331. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  332. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  333. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  334. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  335. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  336. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  337. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  338. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  339. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  340. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  341. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  342. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  343. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  344. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  345. package/dist/esm/i18n/index.d.ts +10 -8
  346. package/dist/esm/i18n/index.d.ts.map +1 -1
  347. package/dist/esm/i18n/index.js +10 -8
  348. package/dist/esm/i18n/index.js.map +1 -1
  349. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  350. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  352. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  353. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  354. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  355. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  356. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  357. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  359. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  360. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  361. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  362. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  363. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  364. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  365. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  366. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  367. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  368. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  369. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  370. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  371. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  372. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  373. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  374. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  375. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  376. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  377. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  378. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  379. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  380. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  381. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  382. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  383. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  384. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  385. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  386. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  387. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  388. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  389. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  390. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  391. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  392. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  393. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  394. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  395. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  396. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  397. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  398. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  399. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  400. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  401. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  402. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  403. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  404. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  405. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  407. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  408. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  409. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  411. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  412. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  413. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  414. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  415. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  416. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  417. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  419. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  420. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  421. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  422. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  423. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  424. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  425. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  426. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  427. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  428. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  429. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  430. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  431. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  432. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  433. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  434. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  435. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  436. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  437. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  438. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  439. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  440. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  441. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  442. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  443. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  444. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  445. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  446. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  447. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  448. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  449. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  450. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  451. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  452. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  453. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  454. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  455. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  456. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  457. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  458. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  459. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  460. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  461. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  462. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  463. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  464. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  465. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  466. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  467. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  468. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  469. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  470. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  471. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  472. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  473. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  474. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  475. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  476. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  477. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  478. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  479. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  480. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  481. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  482. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  483. package/dist/esm/index.d.ts.map +1 -1
  484. package/dist/esm/index.js +9 -3
  485. package/dist/esm/index.js.map +1 -1
  486. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  487. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  488. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  489. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  490. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  491. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  492. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  493. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  494. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  495. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  496. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  497. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  498. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  499. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  500. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  501. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  502. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  503. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  504. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  505. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  506. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  507. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  508. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  509. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  510. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  511. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  512. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  513. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  514. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  515. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  516. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  517. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  518. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  519. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  520. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  521. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  522. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  523. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  524. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  525. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  526. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  527. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  528. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  529. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  530. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  531. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  532. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  533. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  534. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  535. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  536. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  537. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  538. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  539. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  540. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  541. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  542. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  543. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  544. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  545. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  546. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  547. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  548. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  549. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  550. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  551. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  552. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  553. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  554. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  555. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  556. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  557. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  558. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  559. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  560. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  561. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  562. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  563. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  564. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  565. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  566. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  567. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  568. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  569. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  570. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  571. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  572. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  573. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  574. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  575. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  576. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  577. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  578. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  579. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  580. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  581. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  582. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  583. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  584. package/package.json +17 -17
  585. package/dist/esm/__time-gov.probe.d.mts +0 -0
  586. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  587. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  588. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  589. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  590. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  591. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  592. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  593. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  594. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  595. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  596. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -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,iBAAiB,EACjB,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wCAAwC,CAAC;AA2DhD,MAAM,gCAAgC,GAAG,uBAAuB,CAC9D,qCAAqC,CACtC,CAAC;AACF,MAAM,yCAAyC,GAAG,uBAAuB,CACvE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B,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"]}
1
+ {"version":3,"file":"resource-specification-context.factory.js","sourceRoot":"","sources":["../../../../../src/core/specifications/resource-specification-context.factory.ts"],"names":[],"mappings":"AAiBA,OAAO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AAC;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; errorType?: string; customMessageReference?: 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; errorType?: string; customMessageReference?: 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) => {\n // Each identifier is named by the error-body field it arrives in: `error.type`,\n // `error.customMessageReference` and `error.code` are three fields, not one \"error code\".\n const identifiers = [\n scenario.errorType ? `error.type=${scenario.errorType}` : undefined,\n scenario.customMessageReference ? `error.customMessageReference=${scenario.customMessageReference}` : undefined,\n scenario.errorCode ? `error.code=${scenario.errorCode}` : undefined,\n ].filter((identifier): identifier is string => identifier !== undefined);\n return `${scenario.code}${identifiers.length > 0 ? ` (${identifiers.join(', ')})` : ''} — ${scenario.when}`;\n })\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"]}
@@ -37,13 +37,7 @@ export declare enum CompanionTraceAliasKind {
37
37
  /** Links a session to a persisted flow execution `_id`. */
38
38
  FLOW_EXECUTION = "flow-execution",
39
39
  /** Links a session to a persisted actor task `_id`. */
40
- ACTOR_TASK = "actor-task",
41
- /**
42
- * Meta-workflows lane (Step 5 / P-13): a journey alias links a trace
43
- * session to its `Journey_Definition.journeyId`, so a journey's runs are
44
- * greppable across sessions under `<logsRoot>/aliases/journey/`.
45
- */
46
- JOURNEY = "journey"
40
+ ACTOR_TASK = "actor-task"
47
41
  }
48
42
  /**
49
43
  * Serialization for a trace artifact body written by
@@ -1 +1 @@
1
- {"version":3,"file":"companion-traceability.models.d.ts","sourceRoot":"","sources":["../../../../../src/core/traceability/companion-traceability.models.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,IAAI,SAAS;IACb,KAAK,UAAU;IACf,aAAa,kBAAkB;CAChC;AAQD,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,0BAA0B,EACvC,YAAY,EAAE,0BAA0B,GACvC,OAAO,CAET;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC,4EAA4E;IAC5E,WAAW,gBAAgB;IAC3B,uEAAuE;IACvE,oBAAoB,yBAAyB;IAC7C;;;;OAIG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,2BAA2B,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,4DAA4D;IAC5D,eAAe,oBAAoB;IACnC,2DAA2D;IAC3D,cAAc,mBAAmB;IACjC,uDAAuD;IACvD,UAAU,eAAe;IACzB;;;;OAIG;IACH,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C1C,yBAAyB,CAAC,EAAE,oCAAoC,EAAE,CAAC;CACpE;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,SAAS,MAAM,EAAE,GAChC,OAAO,CAET"}
1
+ {"version":3,"file":"companion-traceability.models.d.ts","sourceRoot":"","sources":["../../../../../src/core/traceability/companion-traceability.models.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,IAAI,SAAS;IACb,KAAK,UAAU;IACf,aAAa,kBAAkB;CAChC;AAQD,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,0BAA0B,EACvC,YAAY,EAAE,0BAA0B,GACvC,OAAO,CAET;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC,4EAA4E;IAC5E,WAAW,gBAAgB;IAC3B,uEAAuE;IACvE,oBAAoB,yBAAyB;IAC7C;;;;OAIG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,2BAA2B,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,4DAA4D;IAC5D,eAAe,oBAAoB;IACnC,2DAA2D;IAC3D,cAAc,mBAAmB;IACjC,uDAAuD;IACvD,UAAU,eAAe;CAK1B;AAED;;;GAGG;AACH,oBAAY,4BAA4B;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AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,SAAS,MAAM,EAAE,GAChC,OAAO,CAET"}
@@ -43,12 +43,10 @@ export var CompanionTraceAliasKind;
43
43
  CompanionTraceAliasKind["FLOW_EXECUTION"] = "flow-execution";
44
44
  /** Links a session to a persisted actor task `_id`. */
45
45
  CompanionTraceAliasKind["ACTOR_TASK"] = "actor-task";
46
- /**
47
- * Meta-workflows lane (Step 5 / P-13): a journey alias links a trace
48
- * session to its `Journey_Definition.journeyId`, so a journey's runs are
49
- * greppable across sessions under `<logsRoot>/aliases/journey/`.
46
+ /*
47
+ * A JOURNEY alias was declared here and never registered; its id (`Journey_Definition.journeyId`) was
48
+ * retired on 2026-09-26 (#1607). A run's trace is found through its actor execution or task instead.
50
49
  */
51
- CompanionTraceAliasKind["JOURNEY"] = "journey";
52
50
  })(CompanionTraceAliasKind || (CompanionTraceAliasKind = {}));
53
51
  /**
54
52
  * Serialization for a trace artifact body written by
@@ -1 +1 @@
1
- {"version":3,"file":"companion-traceability.models.js","sourceRoot":"","sources":["../../../../../src/core/traceability/companion-traceability.models.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,2CAAa,CAAA;IACb,6CAAe,CAAA;IACf,6DAA+B,CAAA;AACjC,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED,MAAM,wBAAwB,GAA+C;IAC3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ERBOSE',\n}\n\nconst TRACEABILITY_LEVEL_ORDER: Record<CompanionTraceabilityLevel, number> = {\n [CompanionTraceabilityLevel.NONE]: 0,\n [CompanionTraceabilityLevel.DEBUG]: 1,\n [CompanionTraceabilityLevel.DEBUG_VERBOSE]: 2,\n};\n\nexport function shouldPersistTraceAtLevel(\n activeLevel: CompanionTraceabilityLevel,\n minimumLevel: CompanionTraceabilityLevel,\n): boolean {\n return TRACEABILITY_LEVEL_ORDER[activeLevel] >= TRACEABILITY_LEVEL_ORDER[minimumLevel];\n}\n\n/**\n * What opened a trace session — the attribution recorded in the session\n * manifest so a reader of `<logsRoot>/sessions/` can tell an HTTP-triggered\n * trace from companion-internal batch work.\n */\nexport enum CompanionTraceInitiatorKind {\n /** An inbound companion HTTP request; the label carries `METHOD /route`. */\n API_REQUEST = 'api-request',\n /** An actor/flow execution the companion runs on behalf of the app. */\n ACTOR_FLOW_EXECUTION = 'actor-flow-execution',\n /**\n * Companion-INTERNAL batch work that is not one HTTP request — e.g. an\n * i18n labellize / translate run. Keeps the manifest honest: the trigger\n * may be a CLI request, but the traced work is a batch process.\n */\n INTERNAL = 'internal',\n}\n\nexport interface CompanionTraceInitiator {\n kind: CompanionTraceInitiatorKind;\n label: string;\n metadata?: Record<string, unknown>;\n}\n\n/**\n * The kind of durable id an alias links a trace session to. Each kind gets\n * its own directory under `<logsRoot>/aliases/<kind>/`, so runs of one\n * execution / task / journey are greppable across sessions.\n */\nexport enum CompanionTraceAliasKind {\n /** Links a session to a persisted actor execution `_id`. */\n ACTOR_EXECUTION = 'actor-execution',\n /** Links a session to a persisted flow execution `_id`. */\n FLOW_EXECUTION = 'flow-execution',\n /** Links a session to a persisted actor task `_id`. */\n ACTOR_TASK = 'actor-task',\n /**\n * Meta-workflows lane (Step 5 / P-13): a journey alias links a trace\n * session to its `Journey_Definition.journeyId`, so a journey's runs are\n * greppable across sessions under `<logsRoot>/aliases/journey/`.\n */\n JOURNEY = 'journey',\n}\n\n/**\n * Serialization for a trace artifact body written by\n * `CompanionTraceabilityService.writeArtifact`.\n */\nexport enum CompanionTraceArtifactFormat {\n /**\n * JSON-stringify the content (the default) — keeps every existing artifact\n * and external consumer byte-compatible.\n */\n JSON = 'json',\n /**\n * Write a string verbatim (real newlines, no JSON escaping) — use it for\n * prose artifacts like the labelling PROMPT, where a JSON-wrapped string is\n * one unreadable escaped line. Pair it with a `.txt`/`.md` file name.\n */\n TEXT = 'text',\n}\n\nexport interface CompanionTraceTransportContext {\n sessionId: string;\n traceabilityLevel: CompanionTraceabilityLevel;\n parentStepId?: string;\n}\n\nexport interface CompanionExecutionSessionAliases {\n actorExecutionIds: string[];\n flowExecutionIds: string[];\n actorTaskIds: string[];\n}\n\nexport interface CompanionExecutionContextArtifactRef {\n requestUUID: string;\n resourceType: string;\n operationIdentifier: string;\n fileName: string;\n recordedAt: string;\n}\n\nexport interface CompanionTraceAliasSessionRef {\n sessionId: string;\n relativeSessionDir: string;\n sessionDirPath: string;\n registeredAt: string;\n}\n\nexport interface CompanionTraceAliasRecord {\n aliasKind: CompanionTraceAliasKind;\n aliasId: string;\n canonicalSession: CompanionTraceAliasSessionRef;\n latestSession: CompanionTraceAliasSessionRef;\n sessions: CompanionTraceAliasSessionRef[];\n}\n\nexport interface CompanionExecutionSessionContext {\n sessionId: string;\n traceabilityLevel: CompanionTraceabilityLevel;\n startedAt: string;\n initiator: CompanionTraceInitiator;\n relativeSessionDir: string;\n sessionDirPath: string;\n lastStepIndex: number;\n aliases: CompanionExecutionSessionAliases;\n executionContextArtifacts?: CompanionExecutionContextArtifactRef[];\n}\n\nexport interface CompanionTraceStepContext {\n stepId: string;\n stepIndex: number;\n kind: string;\n label: string;\n startedAt: string;\n parentStepId?: string;\n relativeStepDir: string;\n stepDirPath: string;\n}\n\n/**\n * Infrastructure-noise carve-out for the per-request trace-session middleware.\n *\n * Supervisors, dev tooling, and run monitors POLL certain read-only GET routes\n * every few seconds (health, journey status/next, coding-agent status). With\n * the companion's ALWAYS-ON traceability default, minting a session for each\n * poll would materialize a session directory + start/finish events per ping\n * AND churn the bounded in-memory session map (evicting the live sessions of\n * long-running work, whose later agent-call artifacts would then be\n * mislocated). Mirrors the engine `setupRequestLogging` /health exemption.\n * Each controller passes its own mount-relative exempt paths.\n */\nexport function isTraceExemptProbe(\n method: string,\n path: string,\n exemptGetPaths: readonly string[],\n): boolean {\n return method === 'GET' && exemptGetPaths.includes(path);\n}\n"]}
1
+ {"version":3,"file":"companion-traceability.models.js","sourceRoot":"","sources":["../../../../../src/core/traceability/companion-traceability.models.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,2CAAa,CAAA;IACb,6CAAe,CAAA;IACf,6DAA+B,CAAA;AACjC,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED,MAAM,wBAAwB,GAA+C;IAC3E,CAAC,0BAA0B,CAAC,IAAI,CAAC,EAAE,CAAC;IACpC,CAAC,0BAA0B,CAAC,KAAK,CAAC,EAAE,CAAC;IACrC,CAAC,0BAA0B,CAAC,aAAa,CAAC,EAAE,CAAC;CAC9C,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,WAAuC,EACvC,YAAwC;IAExC,OAAO,wBAAwB,CAAC,WAAW,CAAC,IAAI,wBAAwB,CAAC,YAAY,CAAC,CAAC;AACzF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,2BAWX;AAXD,WAAY,2BAA2B;IACrC,4EAA4E;IAC5E,0DAA2B,CAAA;IAC3B,uEAAuE;IACvE,4EAA6C,CAAA;IAC7C;;;;OAIG;IACH,oDAAqB,CAAA;AACvB,CAAC,EAXW,2BAA2B,KAA3B,2BAA2B,QAWtC;AAQD;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAWX;AAXD,WAAY,uBAAuB;IACjC,4DAA4D;IAC5D,8DAAmC,CAAA;IACnC,2DAA2D;IAC3D,4DAAiC,CAAA;IACjC,uDAAuD;IACvD,oDAAyB,CAAA;IACzB;;;OAGG;AACL,CAAC,EAXW,uBAAuB,KAAvB,uBAAuB,QAWlC;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,4BAYX;AAZD,WAAY,4BAA4B;IACtC;;;OAGG;IACH,6CAAa,CAAA;IACb;;;;OAIG;IACH,6CAAa,CAAA;AACf,CAAC,EAZW,4BAA4B,KAA5B,4BAA4B,QAYvC;AA4DD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAc,EACd,IAAY,EACZ,cAAiC;IAEjC,OAAO,MAAM,KAAK,KAAK,IAAI,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC","sourcesContent":["export enum CompanionTraceabilityLevel {\n NONE = 'NONE',\n DEBUG = 'DEBUG',\n DEBUG_VERBOSE = 'DEBUG_VERBOSE',\n}\n\nconst TRACEABILITY_LEVEL_ORDER: Record<CompanionTraceabilityLevel, number> = {\n [CompanionTraceabilityLevel.NONE]: 0,\n [CompanionTraceabilityLevel.DEBUG]: 1,\n [CompanionTraceabilityLevel.DEBUG_VERBOSE]: 2,\n};\n\nexport function shouldPersistTraceAtLevel(\n activeLevel: CompanionTraceabilityLevel,\n minimumLevel: CompanionTraceabilityLevel,\n): boolean {\n return TRACEABILITY_LEVEL_ORDER[activeLevel] >= TRACEABILITY_LEVEL_ORDER[minimumLevel];\n}\n\n/**\n * What opened a trace session — the attribution recorded in the session\n * manifest so a reader of `<logsRoot>/sessions/` can tell an HTTP-triggered\n * trace from companion-internal batch work.\n */\nexport enum CompanionTraceInitiatorKind {\n /** An inbound companion HTTP request; the label carries `METHOD /route`. */\n API_REQUEST = 'api-request',\n /** An actor/flow execution the companion runs on behalf of the app. */\n ACTOR_FLOW_EXECUTION = 'actor-flow-execution',\n /**\n * Companion-INTERNAL batch work that is not one HTTP request — e.g. an\n * i18n labellize / translate run. Keeps the manifest honest: the trigger\n * may be a CLI request, but the traced work is a batch process.\n */\n INTERNAL = 'internal',\n}\n\nexport interface CompanionTraceInitiator {\n kind: CompanionTraceInitiatorKind;\n label: string;\n metadata?: Record<string, unknown>;\n}\n\n/**\n * The kind of durable id an alias links a trace session to. Each kind gets\n * its own directory under `<logsRoot>/aliases/<kind>/`, so runs of one\n * execution / task / journey are greppable across sessions.\n */\nexport enum CompanionTraceAliasKind {\n /** Links a session to a persisted actor execution `_id`. */\n ACTOR_EXECUTION = 'actor-execution',\n /** Links a session to a persisted flow execution `_id`. */\n FLOW_EXECUTION = 'flow-execution',\n /** Links a session to a persisted actor task `_id`. */\n ACTOR_TASK = 'actor-task',\n /*\n * A JOURNEY alias was declared here and never registered; its id (`Journey_Definition.journeyId`) was\n * retired on 2026-09-26 (#1607). A run's trace is found through its actor execution or task instead.\n */\n}\n\n/**\n * Serialization for a trace artifact body written by\n * `CompanionTraceabilityService.writeArtifact`.\n */\nexport enum CompanionTraceArtifactFormat {\n /**\n * JSON-stringify the content (the default) — keeps every existing artifact\n * and external consumer byte-compatible.\n */\n JSON = 'json',\n /**\n * Write a string verbatim (real newlines, no JSON escaping) — use it for\n * prose artifacts like the labelling PROMPT, where a JSON-wrapped string is\n * one unreadable escaped line. Pair it with a `.txt`/`.md` file name.\n */\n TEXT = 'text',\n}\n\nexport interface CompanionTraceTransportContext {\n sessionId: string;\n traceabilityLevel: CompanionTraceabilityLevel;\n parentStepId?: string;\n}\n\nexport interface CompanionExecutionSessionAliases {\n actorExecutionIds: string[];\n flowExecutionIds: string[];\n actorTaskIds: string[];\n}\n\nexport interface CompanionExecutionContextArtifactRef {\n requestUUID: string;\n resourceType: string;\n operationIdentifier: string;\n fileName: string;\n recordedAt: string;\n}\n\nexport interface CompanionTraceAliasSessionRef {\n sessionId: string;\n relativeSessionDir: string;\n sessionDirPath: string;\n registeredAt: string;\n}\n\nexport interface CompanionTraceAliasRecord {\n aliasKind: CompanionTraceAliasKind;\n aliasId: string;\n canonicalSession: CompanionTraceAliasSessionRef;\n latestSession: CompanionTraceAliasSessionRef;\n sessions: CompanionTraceAliasSessionRef[];\n}\n\nexport interface CompanionExecutionSessionContext {\n sessionId: string;\n traceabilityLevel: CompanionTraceabilityLevel;\n startedAt: string;\n initiator: CompanionTraceInitiator;\n relativeSessionDir: string;\n sessionDirPath: string;\n lastStepIndex: number;\n aliases: CompanionExecutionSessionAliases;\n executionContextArtifacts?: CompanionExecutionContextArtifactRef[];\n}\n\nexport interface CompanionTraceStepContext {\n stepId: string;\n stepIndex: number;\n kind: string;\n label: string;\n startedAt: string;\n parentStepId?: string;\n relativeStepDir: string;\n stepDirPath: string;\n}\n\n/**\n * Infrastructure-noise carve-out for the per-request trace-session middleware.\n *\n * Supervisors, dev tooling, and run monitors POLL certain read-only GET routes\n * every few seconds (health, journey status/next, coding-agent status). With\n * the companion's ALWAYS-ON traceability default, minting a session for each\n * poll would materialize a session directory + start/finish events per ping\n * AND churn the bounded in-memory session map (evicting the live sessions of\n * long-running work, whose later agent-call artifacts would then be\n * mislocated). Mirrors the engine `setupRequestLogging` /health exemption.\n * Each controller passes its own mount-relative exempt paths.\n */\nexport function isTraceExemptProbe(\n method: string,\n path: string,\n exemptGetPaths: readonly string[],\n): boolean {\n return method === 'GET' && exemptGetPaths.includes(path);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"creation-conversation.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAyB5E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,gCAAgC,sCAA6C,CAAC;AAC3F,eAAO,MAAM,+BAA+B,EAAG,yCAAkD,CAAC;AAElG,eAAO,MAAM,yBAAyB,EAAE,iBA4DvC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,WAqB7C,CAAC;AAEF,eAAO,MAAM,8BAA8B;+CACD,WAAW;CACpD,CAAC"}
1
+ {"version":3,"file":"creation-conversation.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAwB5E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,gCAAgC,sCAA6C,CAAC;AAC3F,eAAO,MAAM,+BAA+B,EAAG,yCAAkD,CAAC;AAElG,eAAO,MAAM,yBAAyB,EAAE,iBA8DvC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,WAqB7C,CAAC;AAEF,eAAO,MAAM,8BAA8B;+CACD,WAAW;CACpD,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { Actor_ExecutionMode, Actor_Role_Category, FlowActorSystem_Kind, FlowActorSystem_Status, FlowActorSystem_Visibility, FlowsActors_Agent_Skill_Type, FlowsActors_Agent_Status, ResourceOperationRiskLevel, ResourcePrimaryScope, } from '@wildo-ai/saas-models';
2
2
  import { LLMProvider_ChatCompletionInputSchema, LLMProvider_ChatCompletionOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model_Applicability, } from '@wildo-ai/external-connectors-models';
3
- import { WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF } from '@wildo-ai/platform-core-shared';
4
- import { CREATION_CONVERSATION_TOOL_REFS } from './creation-conversation.function-tools.js';
3
+ import { WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF, WorkbenchCreationConversationTool } from '@wildo-ai/platform-core-shared';
5
4
  /**
6
5
  * The CREATION CONVERSATION — the actor system behind the workbench's chat (#1454, Step 4).
7
6
  *
@@ -44,7 +43,7 @@ export const creationConversationAgent = {
44
43
  */
45
44
  modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,
46
45
  operationKey: LLMProvider_OperationKey.CHAT_COMPLETION,
47
- accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],
46
+ accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION }],
48
47
  riskLevel: ResourceOperationRiskLevel.LOW,
49
48
  },
50
49
  operationDefinition: {
@@ -69,22 +68,24 @@ export const creationConversationAgent = {
69
68
  instructions: [
70
69
  'Answer ONLY the current message, concisely. Do not restate what you already said in this conversation.',
71
70
  'Call tools SILENTLY: never narrate your process. Return the answer, or the action you started.',
72
- `Before saying anything about what exists or is missing, call \`${CREATION_CONVERSATION_TOOL_REFS.READ_APPLICATION_STATE}\`. It returns which specification families are landed, refused or missing, which playbooks can run now, and which build tasks are ready or landed.`,
73
- `To show or discuss a produced artifact, call \`${CREATION_CONVERSATION_TOOL_REFS.READ_ARTIFACT}\` with its family id from the state; the workbench opens it beside the conversation.`,
74
- `To START a step, call \`${CREATION_CONVERSATION_TOOL_REFS.RUN_PLAYBOOK}\` with the playbook ref from the state. It asks the person to approve first (that is the confirmation — do not ask in prose) and returns at once with a run id; the run then shows in the conversation as a card. Only ELIGIBLE playbooks may be started; if the one they want is not, say what it waits on.`,
75
- `If a run stopped on a question and the person answers it, call \`${CREATION_CONVERSATION_TOOL_REFS.ANSWER_RUN_QUESTION}\` with the run id and their answers, ref by ref; \`decline\` continues on a stated assumption, \`cancel\` abandons the run.`,
76
- `To find something out from the public web, call \`${CREATION_CONVERSATION_TOOL_REFS.RESEARCH}\` with one clear objective. It asks for approval first and takes minutes; say so.`,
77
- `A step that asks the person questions reads its answers from the DOSSIER. Before asking anything, call \`${CREATION_CONVERSATION_TOOL_REFS.READ_DOSSIER}\` for that step: ask only what is still-needed, one question at a time, in the question's own words. When the person answers, file it at once with \`${CREATION_CONVERSATION_TOOL_REFS.RECORD_ANSWER}\` — their words, never yours, and never an answer they did not give in this conversation. When nothing is still needed, the step can be started.`,
78
- `When the person asks for a CHANGE to the application, turn it into ONE build task and call \`${CREATION_CONVERSATION_TOOL_REFS.PROPOSE_BUILD_TASK}\`: the person reviews the task and approves it, changes it, or refuses — that is the confirmation, so do not describe the task in prose first. A task is added to the plan, not run. If they want it kept for later, stop there.`,
79
- `Before running a task, call \`${CREATION_CONVERSATION_TOOL_REFS.DESCRIBE_TASK}\` and tell the person in one line what it costs — a coding-agent run of minutes, paid per token, with the context size the tool returns — then call \`${CREATION_CONVERSATION_TOOL_REFS.DISPATCH_TASK}\`, which asks for their approval. Only a READY task runs; if it is not, say what it waits on. The run then shows as a card; read its outcome there.`,
80
- `When a run has finished and the person wants to keep what it wrote, call \`${CREATION_CONVERSATION_TOOL_REFS.ACCEPT_TASK}\` (approved by them): it commits exactly the run's files and names any it refused. Never say a change is in place before that commit exists.`,
71
+ `Before saying anything about what exists or is missing, call \`${WorkbenchCreationConversationTool.READ_APPLICATION_STATE}\`. It returns which specification families are landed, refused or missing, which playbooks can run now, and which build tasks are ready or landed.`,
72
+ `To show or discuss a produced artifact, call \`${WorkbenchCreationConversationTool.READ_ARTIFACT}\` with its family id from the state; the workbench opens it beside the conversation.`,
73
+ `To START a step, call \`${WorkbenchCreationConversationTool.RUN_PLAYBOOK}\` with the playbook ref from the state. It asks the person to approve first (that is the confirmation — do not ask in prose) and returns at once with a run id; the run then shows in the conversation as a card. Only ELIGIBLE playbooks may be started; if the one they want is not, say what it waits on.`,
74
+ `When the person wants a step done SEPARATELY for one purpose (one segment, one area), call \`${WorkbenchCreationConversationTool.OPEN_PLAYBOOK_INSTANCE}\` with the playbook ref, a short kebab-case key and the purpose in their words; it asks for approval and records the decision. Then start that instance with \`${WorkbenchCreationConversationTool.RUN_PLAYBOOK}\` and its \`instanceKey\`. Never open an instance the person did not ask for.`,
75
+ `When the person wants a FEATURE added once the application exists, open a line for it: call \`${WorkbenchCreationConversationTool.OPEN_SECONDARY_LINE}\` with the line \`feature_development\`, a short kebab-case key and the feature in their words; it asks for approval and records the decision. If the feature needs something this kind of application leaves out (a public website on an internal tool), pass the families it needs back as \`neededFamilies\`; never add one the person did not ask for. Then start it with \`${WorkbenchCreationConversationTool.RUN_PLAYBOOK}\` on the entry playbook it returns and that key. A line lands the feature as requirements first, then re-plans and builds it; a small change to existing code stays a build task. To say what is being worked on, call \`${WorkbenchCreationConversationTool.READ_LINES}\`. When the person says a line is done, or no longer wanted, close it with \`${WorkbenchCreationConversationTool.CLOSE_SECONDARY_LINE}\` (completed or abandoned); never close one they did not ask about. When the person wants something the application ALREADY holds made better (the requirements, the experience plan, the value proposition), that is a refinement, not a feature: open it with \`${WorkbenchCreationConversationTool.OPEN_REFINEMENT_LINE}\`, naming the families to refine, then run it the same way.`,
76
+ `If a run stopped on a question and the person answers it, call \`${WorkbenchCreationConversationTool.ANSWER_RUN_QUESTION}\` with the run id, the ROUND whose questions they answered (from the waiting runs in the state — the round whose questions match what they answered), and their answers, ref by ref; \`decline\` continues on a stated assumption, \`cancel\` abandons the run. If it answers that the run has asked again, read the state and put the NEW questions to the person.`,
77
+ `To find something out from the public web, call \`${WorkbenchCreationConversationTool.RESEARCH}\` with one clear objective. It asks for approval first and takes minutes; say so.`,
78
+ `A step that asks the person questions reads its answers from the DOSSIER. Before asking anything, call \`${WorkbenchCreationConversationTool.READ_DOSSIER}\` for that step: ask only what is still-needed, one question at a time, in the question's own words. When the person answers, file it at once with \`${WorkbenchCreationConversationTool.RECORD_ANSWER}\` — their words, never yours, and never an answer they did not give in this conversation. When nothing is still needed, the step can be started.`,
79
+ `When the person asks for a CHANGE to the application, turn it into ONE build task and call \`${WorkbenchCreationConversationTool.PROPOSE_BUILD_TASK}\`: the person reviews the task and approves it, changes it, or refuses — that is the confirmation, so do not describe the task in prose first. A task is added to the plan, not run. The person's choice comes back with the approval: if they chose to build it now, the workbench starts its coding run itself, so do not call the dispatch tool for that task and do not ask again; if they chose to keep it for later, stop there.`,
80
+ `Before running a task, call \`${WorkbenchCreationConversationTool.DESCRIBE_TASK}\` and tell the person in one line what it costs — a coding-agent run of minutes, paid per token, with the context size the tool returns — then call \`${WorkbenchCreationConversationTool.DISPATCH_TASK}\`, which asks for their approval. Only a READY task runs; if it is not, say what it waits on. The run then shows as a card; read its outcome there.`,
81
+ `When a run has finished and the person wants to keep what it wrote, call \`${WorkbenchCreationConversationTool.ACCEPT_TASK}\` (approved by them): it commits exactly the run's files and names any it refused. Never say a change is in place before that commit exists.`,
81
82
  'You never write code or files yourself; a change reaches the application only through a build task and its coding run.',
82
83
  'Never claim a run landed, succeeded or was refused: a run\'s outcome is in its card and its detail, not in your words.',
83
84
  ],
84
85
  },
85
86
  capabilities: {
86
87
  tools: {
87
- functionRefs: [...Object.values(CREATION_CONVERSATION_TOOL_REFS)],
88
+ functionRefs: [...Object.values(WorkbenchCreationConversationTool)],
88
89
  mcpRefs: [],
89
90
  },
90
91
  },
@@ -100,7 +101,7 @@ export const creationConversationActorSystem = {
100
101
  visibility: FlowActorSystem_Visibility.FRONTEND,
101
102
  config: {
102
103
  timeout: 120_000,
103
- accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],
104
+ accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION }],
104
105
  riskLevel: ResourceOperationRiskLevel.LOW,
105
106
  },
106
107
  actors: [{