@wildo-ai/dev-companion 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1244) hide show
  1. package/bin/companion-supervisor.d.mts +33 -0
  2. package/bin/companion-supervisor.mjs +174 -0
  3. package/bin/wildo-dev-companion-supervised.mjs +16 -0
  4. package/dist/esm/.tsbuildinfo +1 -1
  5. package/dist/esm/brand/models/accepted-brand-mark.models.d.ts +46 -0
  6. package/dist/esm/brand/models/accepted-brand-mark.models.d.ts.map +1 -0
  7. package/dist/esm/brand/models/accepted-brand-mark.models.js +89 -0
  8. package/dist/esm/brand/models/accepted-brand-mark.models.js.map +1 -0
  9. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  10. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  11. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  12. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
  13. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  15. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
  16. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  17. package/dist/esm/brand/models/logo-judge.schemas.d.ts +5 -3
  18. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  19. package/dist/esm/brand/models/logo-judge.schemas.js +5 -3
  20. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  21. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
  22. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  23. package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
  24. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  25. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
  26. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
  27. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  28. package/dist/esm/brand/services/logo-deliberation.companion.service.js +10 -7
  29. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  30. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  31. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  32. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  33. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  34. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  35. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  36. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
  37. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  38. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
  39. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  40. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +130 -2
  41. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  42. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +176 -1
  43. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  44. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts +52 -0
  45. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts.map +1 -0
  46. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js +206 -0
  47. package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js.map +1 -0
  48. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  49. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  50. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +38 -3
  51. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +48 -4
  53. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  54. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  55. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  56. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  57. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  58. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +165 -8
  59. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  60. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +536 -28
  61. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  62. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts +53 -0
  63. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts.map +1 -0
  64. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js +193 -0
  65. package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js.map +1 -0
  66. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +164 -6
  67. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +468 -41
  69. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  70. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  71. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  72. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  73. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  74. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
  75. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
  76. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  77. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  78. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +15 -2
  79. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  80. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +36 -4
  81. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  82. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  83. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  84. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  85. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  86. package/dist/esm/companion-api/companion-api.schemas.d.ts +360 -339
  87. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  88. package/dist/esm/companion-api/companion-api.schemas.js +13 -2
  89. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  90. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
  91. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
  92. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
  93. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
  94. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  95. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  96. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  97. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  98. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
  99. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
  100. package/dist/esm/companion-api/controllers/companion.controller.d.ts +88 -13
  101. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  102. package/dist/esm/companion-api/controllers/companion.controller.js +448 -51
  103. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  104. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  105. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  106. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  107. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  108. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  109. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  110. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  111. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  112. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  113. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  114. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  115. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  116. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  117. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  118. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  119. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  120. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  121. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  122. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  123. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  124. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  125. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  126. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  127. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  128. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  129. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  130. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  131. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  132. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  133. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  134. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  135. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  136. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  137. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  138. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  139. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  140. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  141. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  142. package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
  143. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  144. package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
  145. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  146. package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
  147. package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
  148. package/dist/esm/core/context/application-module-generations.companion.js +313 -0
  149. package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
  150. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  151. package/dist/esm/core/context/companion-context.js.map +1 -1
  152. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
  153. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  154. package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
  155. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  156. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  157. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  158. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  159. package/dist/esm/core/inject/models/container.js +4 -0
  160. package/dist/esm/core/inject/models/container.js.map +1 -1
  161. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  162. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  163. package/dist/esm/core/inject/models/service-types.js +4 -0
  164. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  165. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  166. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  167. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  169. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
  171. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
  172. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
  174. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  175. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
  176. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  177. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +71 -25
  178. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  179. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +10 -0
  180. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  181. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +58 -2
  182. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  183. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
  184. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  185. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +197 -20
  186. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  187. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  188. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +49 -7
  189. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  190. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  191. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  192. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  193. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  194. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +51 -0
  195. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
  196. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +124 -0
  197. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
  198. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  200. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +14 -3
  201. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +91 -5
  203. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  204. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +186 -11
  205. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +437 -35
  207. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  208. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
  209. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
  210. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
  211. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
  212. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +123 -24
  213. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  214. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +281 -54
  215. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  216. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +22 -6
  217. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  218. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +38 -7
  219. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  220. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  221. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +9 -0
  223. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +29 -9
  225. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  227. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/assertions.behavior.js +10 -10
  230. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  231. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  232. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  234. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  235. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  237. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  239. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts +1 -1
  240. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  241. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +20 -19
  242. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  243. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  244. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  245. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  246. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  247. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  248. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  249. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  250. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  251. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  252. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  253. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
  254. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  255. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
  256. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  257. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  258. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +9 -1
  259. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  260. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  261. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  262. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  263. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js +2 -1
  264. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  265. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts +4 -3
  266. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  267. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js +14 -8
  268. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  269. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  270. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +17 -4
  271. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  272. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  273. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  274. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  275. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
  276. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  277. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  278. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  279. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  280. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  281. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  282. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  283. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  284. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  285. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  286. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  287. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  288. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  289. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  290. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +35 -0
  291. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  292. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +74 -0
  293. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  294. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
  295. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
  296. package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
  297. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  298. package/dist/esm/core/runtime/companion-env-file.js +75 -16
  299. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  300. package/dist/esm/core/runtime/companion-self-restart.companion.d.ts +38 -0
  301. package/dist/esm/core/runtime/companion-self-restart.companion.d.ts.map +1 -0
  302. package/dist/esm/core/runtime/companion-self-restart.companion.js +110 -0
  303. package/dist/esm/core/runtime/companion-self-restart.companion.js.map +1 -0
  304. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  305. package/dist/esm/core/runtime/companion-startup-assembly.js +7 -1
  306. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  307. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +12 -0
  308. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  309. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +15 -1
  310. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  311. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts +83 -0
  312. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts.map +1 -0
  313. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js +150 -0
  314. package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js.map +1 -0
  315. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
  316. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
  317. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  318. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  319. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  320. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  321. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +30 -4
  322. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  323. package/dist/esm/core/runtime/services/start-companion-application.service.js +78 -12
  324. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  325. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  326. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  327. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  328. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  329. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  330. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  331. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  332. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  333. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  334. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  335. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  337. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  339. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  341. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  342. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  343. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  345. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  347. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  349. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  351. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  353. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  355. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  357. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  359. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  361. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  363. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  365. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  366. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  367. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  368. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  369. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  370. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  371. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  372. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  373. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  374. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  375. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  376. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  377. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  378. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  379. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  380. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  381. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  382. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  383. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  384. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  385. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  386. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  387. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  388. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  389. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  390. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  391. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  392. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  393. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  394. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  395. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  396. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  397. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  398. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  399. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  400. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  401. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  402. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  403. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  404. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  405. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  406. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  407. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  408. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  409. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  410. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  411. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  412. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  413. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  414. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  415. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  416. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  417. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  418. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  419. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  420. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  421. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  422. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  423. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  424. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  425. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  426. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  427. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  428. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  429. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  430. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  431. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  432. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  433. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  434. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  435. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  436. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  437. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  438. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  439. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  440. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  441. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  442. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  443. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  444. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  445. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  446. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  447. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  448. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  449. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  450. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  451. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  452. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  453. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  454. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  455. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  456. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  457. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  458. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  459. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  460. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  461. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  462. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  463. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  464. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  465. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  466. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  467. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  468. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  469. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  470. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  471. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
  472. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
  473. package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
  474. package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
  475. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
  476. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  477. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
  478. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  479. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  480. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
  481. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  482. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  483. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +69 -7
  484. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  485. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
  486. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  487. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +17 -12
  488. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  489. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +10 -5
  490. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  491. package/dist/esm/deliberations/services/deliberation.companion.service.js +31 -21
  492. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  493. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  494. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  495. package/dist/esm/deliberations/utils/expert-agent-registration.d.ts +56 -0
  496. package/dist/esm/deliberations/utils/expert-agent-registration.d.ts.map +1 -0
  497. package/dist/esm/deliberations/utils/expert-agent-registration.js +74 -0
  498. package/dist/esm/deliberations/utils/expert-agent-registration.js.map +1 -0
  499. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts +9 -5
  500. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  501. package/dist/esm/deliberations/utils/load-committed-expert-agents.js +11 -15
  502. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  503. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  504. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  505. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  506. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  507. package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
  508. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  509. package/dist/esm/email/services/email-template.companion.service.js +4 -1
  510. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  511. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  512. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  513. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
  514. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
  515. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  516. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  517. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  518. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  519. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  520. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  521. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  522. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
  523. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  524. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  525. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
  526. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  527. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts +5 -3
  528. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  529. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js +5 -3
  530. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  531. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +17 -1
  532. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  533. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +51 -14
  534. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  535. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  536. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  537. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  538. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  539. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  540. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  541. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  542. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  543. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  544. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  545. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  546. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  547. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  548. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  549. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  550. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  551. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  552. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  553. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  554. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  555. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  557. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  558. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  559. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  560. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  561. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  562. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  563. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
  564. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
  565. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  566. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  567. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  568. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  569. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  570. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  571. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  572. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  573. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  574. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  575. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  576. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  577. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  578. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  579. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  580. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  581. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  582. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  583. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  584. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  585. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  587. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  588. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  589. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  590. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  591. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  592. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  593. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  594. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  595. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  596. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  597. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  598. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  599. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  600. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  653. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  655. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  659. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  665. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  673. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  677. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  709. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  714. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  716. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  719. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  721. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  723. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  725. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  726. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  727. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  728. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  729. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  731. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  732. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  733. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  734. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  740. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  742. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  745. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  746. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  747. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  748. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  749. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  753. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  759. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  760. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  761. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  763. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  764. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  765. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  766. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  767. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  769. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  771. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  772. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  773. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  774. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  775. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  776. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  777. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  778. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  779. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  780. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  781. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  782. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  783. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  784. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  785. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  786. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  787. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  788. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  789. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  790. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  791. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  792. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  793. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  794. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  795. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  796. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  797. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  798. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  799. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  800. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  801. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  802. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  803. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  804. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  805. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  806. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  807. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  808. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  809. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  810. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  811. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  812. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  813. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  814. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  815. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  816. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  817. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  818. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  819. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  820. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  821. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  822. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  823. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  824. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  825. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  826. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  827. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  828. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  829. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  830. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  831. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  832. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  833. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  834. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  835. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  836. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  837. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  838. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  839. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  840. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  841. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  842. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  843. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  844. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  845. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  846. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  847. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  849. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  850. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  851. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  853. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  854. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  855. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  856. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  857. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +55 -1
  858. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  859. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  860. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  861. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  862. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  863. package/dist/esm/i18n/control-plane-label-blocks.d.ts +344 -0
  864. package/dist/esm/i18n/control-plane-label-blocks.d.ts.map +1 -0
  865. package/dist/esm/i18n/control-plane-label-blocks.js +115 -0
  866. package/dist/esm/i18n/control-plane-label-blocks.js.map +1 -0
  867. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
  868. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
  869. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  870. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  871. package/dist/esm/i18n/index.d.ts.map +1 -1
  872. package/dist/esm/i18n/index.js.map +1 -1
  873. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +410 -0
  874. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  875. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +13 -145
  876. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  877. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +65 -0
  878. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +4 -37
  880. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  881. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +65 -0
  882. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  883. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +4 -37
  884. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  885. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
  886. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
  887. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  888. package/dist/esm/i18n/resources/workbenchAspects.en.js +11 -0
  889. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  890. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
  891. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  892. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
  893. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  894. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  895. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  896. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
  897. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  898. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
  899. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  900. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  901. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  902. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  903. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  904. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  905. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  906. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  907. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  908. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +56 -0
  909. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  910. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +15 -0
  911. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  912. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  913. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  914. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  915. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  916. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  917. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  918. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  919. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  920. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  921. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  922. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  923. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  924. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +553 -0
  925. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  926. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +187 -5
  927. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  928. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  929. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  930. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  931. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  932. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +60 -0
  933. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  934. package/dist/esm/i18n/system_enums/application-creation.en.js +66 -1
  935. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  936. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  937. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  938. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  939. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  940. package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
  941. package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
  942. package/dist/esm/i18n/system_enums/localization.en.js +82 -0
  943. package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
  944. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  945. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  946. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  947. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  948. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
  949. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  950. package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
  951. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  952. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  953. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  954. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
  955. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  956. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +2 -0
  957. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  958. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
  959. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  960. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
  961. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  962. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  963. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  964. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
  965. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
  966. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  967. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  968. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
  969. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
  970. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
  971. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
  972. package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
  973. package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
  974. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +29 -2
  975. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  976. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +17 -0
  977. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  978. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  979. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  980. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  981. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  982. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  983. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  984. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +5 -0
  985. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  986. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +44 -4
  987. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  988. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  989. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  990. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
  991. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  992. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
  993. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  994. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
  995. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  996. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
  997. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  998. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  999. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  1000. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  1001. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  1002. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
  1003. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
  1004. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1005. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1006. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1007. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1008. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
  1009. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
  1010. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1011. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1012. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1013. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1014. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
  1015. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
  1016. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
  1017. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
  1018. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1019. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1020. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
  1021. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1022. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
  1023. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1024. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
  1025. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
  1026. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
  1027. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
  1028. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1029. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  1030. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +8 -1
  1031. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1032. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +9 -2
  1033. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1034. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
  1035. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
  1036. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
  1037. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
  1038. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +13 -7
  1039. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1040. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +13 -7
  1041. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1042. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
  1043. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
  1044. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1045. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  1046. package/dist/esm/index.d.ts.map +1 -1
  1047. package/dist/esm/index.js.map +1 -1
  1048. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1049. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  1050. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  1051. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  1052. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1053. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +3 -3
  1054. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1055. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
  1056. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
  1057. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1058. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1059. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1060. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1061. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +85 -1
  1062. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  1063. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +101 -0
  1064. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  1065. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  1066. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  1067. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  1068. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  1069. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
  1070. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
  1071. package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
  1072. package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
  1073. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
  1074. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
  1075. package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
  1076. package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
  1077. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
  1078. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
  1079. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
  1080. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1081. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
  1082. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1083. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1084. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1085. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
  1086. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  1087. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
  1088. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  1089. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
  1090. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  1091. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
  1092. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  1093. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  1094. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  1095. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts +36 -0
  1096. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts.map +1 -0
  1097. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js +97 -0
  1098. package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js.map +1 -0
  1099. package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts +124 -0
  1100. package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts.map +1 -0
  1101. package/dist/esm/meta-workflows/models/website-copy-review.models.js +74 -0
  1102. package/dist/esm/meta-workflows/models/website-copy-review.models.js.map +1 -0
  1103. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
  1104. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
  1105. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
  1106. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
  1107. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
  1108. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
  1109. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
  1110. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
  1111. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +672 -24
  1112. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1113. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +1887 -74
  1114. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1115. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
  1116. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
  1117. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +232 -14
  1118. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1119. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +407 -55
  1120. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1121. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +158 -3
  1122. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1123. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +446 -18
  1124. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1125. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +130 -2
  1126. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  1127. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +266 -10
  1128. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  1129. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts +122 -0
  1130. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts.map +1 -0
  1131. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js +295 -0
  1132. package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js.map +1 -0
  1133. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts +22 -0
  1134. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts.map +1 -0
  1135. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js +45 -0
  1136. package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js.map +1 -0
  1137. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  1138. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
  1139. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  1140. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  1141. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  1142. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +53 -0
  1143. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -0
  1144. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +97 -0
  1145. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -0
  1146. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  1147. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
  1148. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  1149. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
  1150. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
  1151. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
  1152. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
  1153. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +76 -0
  1154. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
  1155. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +88 -0
  1156. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
  1157. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
  1158. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
  1159. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
  1160. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
  1161. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
  1162. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
  1163. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
  1164. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
  1165. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +79 -14
  1166. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  1167. package/dist/esm/meta-workflows/services/dossier.companion.service.js +185 -29
  1168. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  1169. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  1170. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  1171. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1172. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1173. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  1174. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  1175. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +52 -4
  1176. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1177. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +134 -62
  1178. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1179. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
  1180. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
  1181. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
  1182. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
  1183. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
  1184. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
  1185. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
  1186. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
  1187. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  1188. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  1189. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1190. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  1191. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +61 -20
  1193. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  1194. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +134 -4
  1195. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1196. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +390 -7
  1197. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1198. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +166 -7
  1199. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1200. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +703 -116
  1201. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1202. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
  1203. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  1204. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
  1205. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  1206. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  1207. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  1208. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  1209. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  1210. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1211. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1212. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1213. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1214. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1215. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  1216. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1217. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  1218. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1219. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1220. package/package.json +22 -18
  1221. package/dist/esm/__tests__/asset-noop.d.ts +0 -3
  1222. package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
  1223. package/dist/esm/__tests__/asset-noop.js +0 -2
  1224. package/dist/esm/__tests__/asset-noop.js.map +0 -1
  1225. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
  1226. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
  1227. package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
  1228. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
  1229. package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
  1230. package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
  1231. package/dist/esm/__tests__/internal-test-view.js +0 -2
  1232. package/dist/esm/__tests__/internal-test-view.js.map +0 -1
  1233. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
  1234. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
  1235. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
  1236. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
  1237. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
  1238. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
  1239. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
  1240. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
  1241. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
  1242. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
  1243. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
  1244. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
@@ -32,7 +32,12 @@ export async function readPerUnitLabels(filePath) {
32
32
  throw err;
33
33
  }
34
34
  }
35
- export async function writePerUnitLabels(args) {
35
+ /**
36
+ * The file content for one unit in one locale, refused when a value carries a control character —
37
+ * everything {@link writePerUnitLabels} does except the write. Split out so a run can stage the
38
+ * content in a `StagedLabelFileWriter` and move it into place with the rest of the run (#2213).
39
+ */
40
+ export function renderPerUnitLabels(args) {
36
41
  // The last door before disk (#1109). The completion loop already refuses and re-requests a
37
42
  // value carrying a control character, so a value arriving here is one no generation path
38
43
  // produced — a corrupt prior file being carried forward, or a caller that bypassed the loop.
@@ -43,12 +48,15 @@ export async function writePerUnitLabels(args) {
43
48
  throw new Error(`Refusing to write ${args.filePath}: ${corrupt.length} label value(s) carry a control character (${corrupt.slice(0, 5).join(', ')}${corrupt.length > 5 ? ', …' : ''}). A control byte in a label reaches the UI, the logs and every export of the label tree; regenerate the unit.`);
44
49
  }
45
50
  const nested = buildNestedLabelsFromFlatEntries(args.flatEntries);
46
- const content = formatNestedLabelsTsFile({
51
+ return formatNestedLabelsTsFile({
47
52
  localeCode: args.localeCode,
48
53
  localeDisplayName: args.localeDisplayName,
49
54
  isPrimaryLocale: args.isPrimaryLocale,
50
55
  labels: nested,
51
56
  });
57
+ }
58
+ export async function writePerUnitLabels(args) {
59
+ const content = renderPerUnitLabels(args);
52
60
  await fs.mkdir(path.dirname(args.filePath), { recursive: true });
53
61
  await writeFileAtomic(args.filePath, content);
54
62
  return content;
@@ -1 +1 @@
1
- {"version":3,"file":"per-unit-file.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/per-unit-file.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,g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AG,CAAC,CAAC;IACrI,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,qBAAqB,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,MAAM,8CAA8C,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,gHAAgH,CACpR,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,gCAAgC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClE,MAAM,OAAO,GAAG,wBAAwB,CAAC;QACvC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,MAAM,EAAE,MAAM;KACf,CAAC,CAAC;IACH,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,MAAM,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport {\n buildNestedLabelsFromFlatEntries,\n flattenNestedStringLabels,\n formatNestedLabelsTsFile,\n parseNestedLabelsTsSource,\n} from './label-file-source.utils';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport { labelValueCarriesControlCharacter } from './structured-chunk-completion.utils';\nimport type { LabellingUnit } from '../models/labelling-unit.models';\n\nexport interface PerUnitFilePathArgs {\n i18nRoot: string;\n unit: Pick<LabellingUnit, 'filePathHint'>;\n localeCode: string;\n}\n\n/**\n * Resolve the on-disk path for a unit's per-locale labels file.\n * Layout (under `<backendRoot>/src/engine/i18n/`):\n * - `components/<slug>.<locale>.ts`\n * - `resources/<slug>.<locale>.ts`\n * - `themes/<slug>.<locale>.ts`\n * - `milestones/<slug>.<locale>.ts`\n * - `billing/<slug>.<locale>.ts`\n *\n * These per-unit files are the runtime source of truth — there is no\n * monolithic `labels.<locale>.ts`. The backend's engine i18n barrel\n * walks this tree at module load via\n * {@link scanCustomLabelsDirectory} from `@wildo-ai/saas-backend-lib`.\n */\nexport function resolvePerUnitFilePath({ i18nRoot, unit, localeCode }: PerUnitFilePathArgs): string {\n return path.resolve(i18nRoot, unit.filePathHint.bucket, `${unit.filePathHint.slug}.${localeCode}.ts`);\n}\n\nexport async function readPerUnitLabels(filePath: string): Promise<Record<string, string>> {\n try {\n const raw = await fs.readFile(filePath, 'utf-8');\n const parsed = parseNestedLabelsTsSource(raw);\n return flattenNestedStringLabels(parsed.labels);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return {};\n throw err;\n }\n}\n\nexport async function writePerUnitLabels(args: {\n filePath: string;\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n flatEntries: Record<string, string>;\n}): Promise<string> {\n // The last door before disk (#1109). The completion loop already refuses and re-requests a\n // value carrying a control character, so a value arriving here is one no generation path\n // produced — a corrupt prior file being carried forward, or a caller that bypassed the loop.\n // A bundle is loaded by the backend and served to every client, so refusing the unit is\n // cheaper than any reader finding the byte.\n const corrupt = Object.entries(args.flatEntries).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n throw new Error(\n `Refusing to write ${args.filePath}: ${corrupt.length} label value(s) carry a control character (${corrupt.slice(0, 5).join(', ')}${corrupt.length > 5 ? ', …' : ''}). A control byte in a label reaches the UI, the logs and every export of the label tree; regenerate the unit.`,\n );\n }\n const nested = buildNestedLabelsFromFlatEntries(args.flatEntries);\n const content = formatNestedLabelsTsFile({\n localeCode: args.localeCode,\n localeDisplayName: args.localeDisplayName,\n isPrimaryLocale: args.isPrimaryLocale,\n labels: nested,\n });\n await fs.mkdir(path.dirname(args.filePath), { recursive: true });\n await writeFileAtomic(args.filePath, content);\n return content;\n}\n"]}
1
+ {"version":3,"file":"per-unit-file.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/per-unit-file.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AASxF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAuB;IACxF,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,UAAU,KAAK,CAAC,CAAC;AACxG,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IACtD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,yBAAyB,CAAC,GAAG,CAAC,CAAC;QAC9C,OAAO,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,IAAK,GAA6B,EAAE,IAAI,KAAK,QAAQ;YAAE,OAAO,EAAE,CAAC;QACjE,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;;GAIG;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CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport {\n buildNestedLabelsFromFlatEntries,\n flattenNestedStringLabels,\n formatNestedLabelsTsFile,\n parseNestedLabelsTsSource,\n} from './label-file-source.utils';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport { labelValueCarriesControlCharacter } from './structured-chunk-completion.utils';\nimport type { LabellingUnit } from '../models/labelling-unit.models';\n\nexport interface PerUnitFilePathArgs {\n i18nRoot: string;\n unit: Pick<LabellingUnit, 'filePathHint'>;\n localeCode: string;\n}\n\n/**\n * Resolve the on-disk path for a unit's per-locale labels file.\n * Layout (under `<backendRoot>/src/engine/i18n/`):\n * - `components/<slug>.<locale>.ts`\n * - `resources/<slug>.<locale>.ts`\n * - `themes/<slug>.<locale>.ts`\n * - `milestones/<slug>.<locale>.ts`\n * - `billing/<slug>.<locale>.ts`\n *\n * These per-unit files are the runtime source of truth — there is no\n * monolithic `labels.<locale>.ts`. The backend's engine i18n barrel\n * walks this tree at module load via\n * {@link scanCustomLabelsDirectory} from `@wildo-ai/saas-backend-lib`.\n */\nexport function resolvePerUnitFilePath({ i18nRoot, unit, localeCode }: PerUnitFilePathArgs): string {\n return path.resolve(i18nRoot, unit.filePathHint.bucket, `${unit.filePathHint.slug}.${localeCode}.ts`);\n}\n\nexport async function readPerUnitLabels(filePath: string): Promise<Record<string, string>> {\n try {\n const raw = await fs.readFile(filePath, 'utf-8');\n const parsed = parseNestedLabelsTsSource(raw);\n return flattenNestedStringLabels(parsed.labels);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return {};\n throw err;\n }\n}\n\n/**\n * The file content for one unit in one locale, refused when a value carries a control character —\n * everything {@link writePerUnitLabels} does except the write. Split out so a run can stage the\n * content in a `StagedLabelFileWriter` and move it into place with the rest of the run (#2213).\n */\nexport function renderPerUnitLabels(args: {\n filePath: string;\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n flatEntries: Record<string, string>;\n}): string {\n // The last door before disk (#1109). The completion loop already refuses and re-requests a\n // value carrying a control character, so a value arriving here is one no generation path\n // produced — a corrupt prior file being carried forward, or a caller that bypassed the loop.\n // A bundle is loaded by the backend and served to every client, so refusing the unit is\n // cheaper than any reader finding the byte.\n const corrupt = Object.entries(args.flatEntries).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n throw new Error(\n `Refusing to write ${args.filePath}: ${corrupt.length} label value(s) carry a control character (${corrupt.slice(0, 5).join(', ')}${corrupt.length > 5 ? ', …' : ''}). A control byte in a label reaches the UI, the logs and every export of the label tree; regenerate the unit.`,\n );\n }\n const nested = buildNestedLabelsFromFlatEntries(args.flatEntries);\n return formatNestedLabelsTsFile({\n localeCode: args.localeCode,\n localeDisplayName: args.localeDisplayName,\n isPrimaryLocale: args.isPrimaryLocale,\n labels: nested,\n });\n}\n\nexport async function writePerUnitLabels(args: {\n filePath: string;\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n flatEntries: Record<string, string>;\n}): Promise<string> {\n const content = renderPerUnitLabels(args);\n await fs.mkdir(path.dirname(args.filePath), { recursive: true });\n await writeFileAtomic(args.filePath, content);\n return content;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"provider-display-name-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mHAAmH;AACnH,eAAO,MAAM,sBAAsB,QAAuD,CAAC;AAa3F,qFAAqF;AACrF,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,2BAA2B,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,iCAAiC,EAAE,CAAC;CACjD;AAED,mFAAmF;AACnF,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAOD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,0BAA6C,GACxD,2BAA2B,CAkB7B;AAED,sFAAsF;AACtF,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,0BAA0B,CAsB/F"}
1
+ {"version":3,"file":"provider-display-name-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mHAAmH;AACnH,eAAO,MAAM,sBAAsB,QAAuD,CAAC;AAa3F,qFAAqF;AACrF,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,2BAA2B,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,iCAAiC,EAAE,CAAC;CACjD;AAED,mFAAmF;AACnF,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAOD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,0BAA6C,GACxD,2BAA2B,CAkB7B;AAED,sFAAsF;AACtF,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,0BAA0B,CAsB/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"provider-display-name-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EACL,wCAAwC,EACxC,kCAAkC,GAEnC,MAAM,+BAA+B,CAAC;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mHAAmH;AACnH,MAAM,CAAC,MAAM,sBAAsB,GAAG,gCAAgC,CAAC,GAAG,CAAC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AAG,CAAC,CAAC;QAC5D,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAClG,CAAC;IACH,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC;AAChD,CAAC;AAQD;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,IAAuB;IACjE,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,MAAM,OAAO,GAAiC,EAAE,CAAC;IACjD,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAC5C,MAAM,GAAG,GAAG,gCAAgC,CAAC,GAAG,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,GAAG;YACb,IAAI,EAAE,SAAS,CAAC,KAAK;YACrB,QAAQ,EAAE,aAAa,CAAC,QAAQ;YAChC,OAAO,EACL,8FAA8F,GAAG,gBAAgB;gBACjH,8GAA8G;gBAC9G,6GAA6G;gBAC7G,iEAAiE;YACnE,KAAK,EAAE;gBACL,wEAAwE;gBACxE,2FAA2F;gBAC3F,sEAAsE;aACvE;SACF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { z } from 'zod';\nimport { LabelAudience, LabelKind } from '@wildo-ai/presets-components-models';\nimport { buildProviderDisplayNameLabelKey } from '@wildo-ai/saas-models';\nimport {\n PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS,\n SaasRuntimeProvidersArtifactSchema,\n type ProviderRuntimeArtifactKind,\n} from '@wildo-ai/platform-config-lib';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Vendor display names — `providers.<ref>.displayName` — planned TOTAL over the providers an application declares\n * (#1895).\n *\n * Every surface that names a third-party vendor resolves the name through that key\n * (`buildProviderDisplayNameLabelKey`): the connected-accounts screen, the Security settings identity links, the social\n * sign-in buttons, the billing provider label. Provider modules are deliberately locale-neutral — they carry the KEY,\n * never the word — so the words have to be authored somewhere, and until this family existed nothing planned them: every\n * vendor rendered its raw ref (`google-calendar`) in every locale. That was the \"missing label looks missing\" behaviour\n * `display-text-comes-from-i18n.md` asks for; the gap was that nothing ever authored the words.\n *\n * ## Where the population comes from\n *\n * The per-runtime-kind provider artifacts `wildo config sync` writes under `.wildo-saas/generated/providers/`\n * ({@link PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS}). Their `providerRefs` are the providers the application declares,\n * already resolved per runtime scope, and the union over every kind is the set of vendors any of the application's\n * processes may name — the backend's connected accounts, the frontend's social sign-in, a minion's integration.\n * Reading the union rather than one scope matters: a vendor declared only for a frontend service (an analytics or\n * captcha provider) is still a name the application may show.\n *\n * Derived rather than hand-listed, and total over what is declared, so a provider declared tomorrow is planned by\n * construction and a withdrawn one stops being planned (`derive-before-you-ask.md`). A connection's BASE ref, which the\n * connected-accounts screen keys the name on, is always itself a declared ref, so it is covered by the same union.\n *\n * ## What this does NOT do\n *\n * It never derives a WORD from the ref. The ref reaches the generator as intent (which vendor this is), and the\n * generator writes the vendor's own product name — the thing a humanizing fallback would get wrong (`immudb`,\n * `posthog`, `email-preview`). A key nobody generated still renders its raw ref.\n */\n\n/** The labelling bucket (and file-path bucket) the vendor-name unit writes to — the first segment of every key. */\nexport const PROVIDERS_LABEL_BUCKET = buildProviderDisplayNameLabelKey('_').split('.')[0]!;\n\n/**\n * Only the field this family reads, taken from the artifact's own schema so the two cannot disagree about its shape.\n *\n * Loose on purpose: the rest of the artifact (imports, digests, augmentations, scopes) is irrelevant to which vendors\n * exist, and a strict parse would let an unrelated artifact-schema change — a field added by a newer `wildo config sync`\n * — withhold every vendor name. The field itself is still validated exactly as the artifact declares it.\n */\nconst ProviderRefsOnlySchema = z.looseObject({\n providerRefs: SaasRuntimeProvidersArtifactSchema.shape.providerRefs,\n});\n\n/** One artifact that exists on disk but could not be read as a provider artifact. */\nexport interface UnreadableProviderRuntimeArtifact {\n kind: ProviderRuntimeArtifactKind;\n path: string;\n detail: string;\n}\n\n/** Result of reading the application's declared provider population. */\nexport interface DeclaredProviderRefsReading {\n /** Sorted, de-duplicated union of `providerRefs` over every readable artifact. */\n refs: string[];\n /**\n * Artifacts present but unreadable. A non-empty list means the population is INCOMPLETE: a vendor declared only in\n * the unreadable scope would be missing, and an orphan report must not condemn its existing words.\n */\n unreadable: UnreadableProviderRuntimeArtifact[];\n}\n\n/** File-system seam, so the reader is testable without a real application tree. */\nexport interface ProviderArtifactFileSystem {\n exists(path: string): boolean;\n read(path: string): string;\n}\n\nconst NODE_FILE_SYSTEM: ProviderArtifactFileSystem = {\n exists: (path) => existsSync(path),\n read: (path) => readFileSync(path, 'utf8'),\n};\n\n/**\n * Read the union of declared provider refs from every per-runtime-kind artifact of the application at `saasRoot`.\n *\n * An ABSENT artifact is not a degradation: `wildo config sync` writes one only for the runtime kinds the application\n * has (Wonder CRM has no node workers, so it has no `node-workers` artifact). A PRESENT artifact that does not parse is,\n * and is reported so the caller can mark the family incomplete.\n */\nexport function readDeclaredProviderRefs(\n saasRoot: string,\n fileSystem: ProviderArtifactFileSystem = NODE_FILE_SYSTEM,\n): DeclaredProviderRefsReading {\n const refs = new Set<string>();\n const unreadable: UnreadableProviderRuntimeArtifact[] = [];\n for (const [kind, relativePath] of Object.entries(PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS) as [ProviderRuntimeArtifactKind, string][]) {\n const path = join(saasRoot, relativePath);\n if (!fileSystem.exists(path)) continue;\n try {\n const parsed = ProviderRefsOnlySchema.safeParse(JSON.parse(fileSystem.read(path)));\n if (!parsed.success) {\n unreadable.push({ kind, path, detail: parsed.error.message });\n continue;\n }\n for (const ref of parsed.data.providerRefs) refs.add(ref);\n } catch (error: unknown) {\n unreadable.push({ kind, path, detail: error instanceof Error ? error.message : String(error) });\n }\n }\n return { refs: [...refs].sort(), unreadable };\n}\n\n/** The planned keys of the vendor-name family, with the per-key generation intent. */\nexport interface ProviderDisplayNameKeyPlan {\n keys: string[];\n keyMeta: Record<string, LabelKeyMeta>;\n}\n\n/**\n * `providers.<ref>.displayName` for every declared ref, each carrying the ref as INTENT, never as the word.\n *\n * The purpose tells the generator the thing a ref cannot: that the label is a vendor's own product name, which users\n * recognise by its official spelling and which is normally not translated.\n */\nexport function planProviderDisplayNameKeys(refs: readonly string[]): ProviderDisplayNameKeyPlan {\n const keys: string[] = [];\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const ref of [...new Set(refs)].sort()) {\n const key = buildProviderDisplayNameLabelKey(ref);\n keys.push(key);\n keyMeta[key] = {\n kind: LabelKind.LABEL,\n audience: LabelAudience.END_USER,\n purpose:\n `The name of the third-party service this application integrates with under the identifier \"${ref}\", written as ` +\n 'that service\\'s own users know it — its official product or brand name, shown on the screens where a person ' +\n 'connects an account, signs in with it, or sees which service a feature uses. The identifier is a technical ' +\n 'reference, not the name: write the name the vendor itself uses.',\n notes: [\n 'A brand name: keep the vendor\\'s official spelling and capitalization.',\n 'Do not translate it unless the vendor itself publishes a localized name in that language.',\n 'The name only: no description, no \"account\" or \"integration\" suffix.',\n ],\n };\n }\n return { keys, keyMeta };\n}\n"]}
1
+ {"version":3,"file":"provider-display-name-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,O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C,OAAO,EACL,8FAA8F,GAAG,gBAAgB;gBACjH,8GAA8G;gBAC9G,6GAA6G;gBAC7G,iEAAiE;YACnE,KAAK,EAAE;gBACL,wEAAwE;gBACxE,2FAA2F;gBAC3F,sEAAsE;aACvE;SACF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { z } from 'zod';\nimport { LabelAudience, LabelKind } from '@wildo-ai/presets-components-models';\nimport { buildProviderDisplayNameLabelKey } from '@wildo-ai/saas-models';\nimport {\n PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS,\n SaasRuntimeProvidersArtifactSchema,\n type ProviderRuntimeArtifactKind,\n} from '@wildo-ai/platform-config-lib';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Vendor display names — `providers.<ref>.displayName` — planned TOTAL over the providers an application declares\n * (#1895).\n *\n * Every surface that names a third-party vendor resolves the name through that key\n * (`buildProviderDisplayNameLabelKey`): the connected-accounts screen, the Security settings identity links, the social\n * sign-in buttons, the billing provider label. Provider modules are deliberately locale-neutral — they carry the KEY,\n * never the word — so the words have to be authored somewhere, and until this family existed nothing planned them: every\n * vendor rendered its raw ref (`google-calendar`) in every locale. That was the \"missing label looks missing\" behaviour\n * `display-text-comes-from-i18n.md` asks for; the gap was that nothing ever authored the words.\n *\n * ## Where the population comes from\n *\n * The per-runtime-kind provider artifacts `wildo config sync` writes under `.wildo-saas/generated/providers/`\n * ({@link PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS}). Their `providerRefs` are the providers the application declares,\n * already resolved per runtime scope, and the union over every kind is the set of vendors any of the application's\n * processes may name — the backend's connected accounts, the frontend's social sign-in, a minion's integration.\n * Reading the union rather than one scope matters: a vendor declared only for a frontend service (an analytics or\n * captcha provider) is still a name the application may show.\n *\n * Derived rather than hand-listed, and total over what is declared, so a provider declared tomorrow is planned by\n * construction and a withdrawn one stops being planned (`derive-before-you-ask.md`). A connection's BASE ref, which the\n * connected-accounts screen keys the name on, is always itself a declared ref, so it is covered by the same union.\n *\n * ## What this does NOT do\n *\n * It never derives a WORD from the ref. The ref reaches the generator as intent (which vendor this is), and the\n * generator writes the vendor's own product name — the thing a humanizing fallback would get wrong (`immudb`,\n * `posthog`, `email-preview`). A key nobody generated still renders its raw ref.\n */\n\n/** The labelling bucket (and file-path bucket) the vendor-name unit writes to — the first segment of every key. */\nexport const PROVIDERS_LABEL_BUCKET = buildProviderDisplayNameLabelKey('_').split('.')[0]!;\n\n/**\n * Only the field this family reads, taken from the artifact's own schema so the two cannot disagree about its shape.\n *\n * Loose on purpose: the rest of the artifact (imports, digests, augmentations, scopes) is irrelevant to which vendors\n * exist, and a strict parse would let an unrelated artifact-schema change — a field added by a newer `wildo config sync`\n * — withhold every vendor name. The field itself is still validated exactly as the artifact declares it.\n */\nconst ProviderRefsOnlySchema = z.looseObject({\n providerRefs: SaasRuntimeProvidersArtifactSchema.shape.providerRefs,\n});\n\n/** One artifact that exists on disk but could not be read as a provider artifact. */\nexport interface UnreadableProviderRuntimeArtifact {\n kind: ProviderRuntimeArtifactKind;\n path: string;\n detail: string;\n}\n\n/** Result of reading the application's declared provider population. */\nexport interface DeclaredProviderRefsReading {\n /** Sorted, de-duplicated union of `providerRefs` over every readable artifact. */\n refs: string[];\n /**\n * Artifacts present but unreadable. A non-empty list means the population is INCOMPLETE: a vendor declared only in\n * the unreadable scope would be missing, and an orphan report must not condemn its existing words.\n */\n unreadable: UnreadableProviderRuntimeArtifact[];\n}\n\n/** File-system seam, so the reader is testable without a real application tree. */\nexport interface ProviderArtifactFileSystem {\n exists(path: string): boolean;\n read(path: string): string;\n}\n\nconst NODE_FILE_SYSTEM: ProviderArtifactFileSystem = {\n exists: (path) => existsSync(path),\n read: (path) => readFileSync(path, 'utf8'),\n};\n\n/**\n * Read the union of declared provider refs from every per-runtime-kind artifact of the application at `saasRoot`.\n *\n * An ABSENT artifact is not a degradation: `wildo config sync` writes one only for the runtime kinds the application\n * has (Wonder CRM has no node workers, so it has no `node-workers` artifact). A PRESENT artifact that does not parse is,\n * and is reported so the caller can mark the family incomplete.\n */\nexport function readDeclaredProviderRefs(\n saasRoot: string,\n fileSystem: ProviderArtifactFileSystem = NODE_FILE_SYSTEM,\n): DeclaredProviderRefsReading {\n const refs = new Set<string>();\n const unreadable: UnreadableProviderRuntimeArtifact[] = [];\n for (const [kind, relativePath] of Object.entries(PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS) as [ProviderRuntimeArtifactKind, string][]) {\n const path = join(saasRoot, relativePath);\n if (!fileSystem.exists(path)) continue;\n try {\n const parsed = ProviderRefsOnlySchema.safeParse(JSON.parse(fileSystem.read(path)));\n if (!parsed.success) {\n unreadable.push({ kind, path, detail: parsed.error.message });\n continue;\n }\n for (const ref of parsed.data.providerRefs) refs.add(ref);\n } catch (error: unknown) {\n unreadable.push({ kind, path, detail: error instanceof Error ? error.message : String(error) });\n }\n }\n return { refs: [...refs].sort(), unreadable };\n}\n\n/** The planned keys of the vendor-name family, with the per-key generation intent. */\nexport interface ProviderDisplayNameKeyPlan {\n keys: string[];\n keyMeta: Record<string, LabelKeyMeta>;\n}\n\n/**\n * `providers.<ref>.displayName` for every declared ref, each carrying the ref as INTENT, never as the word.\n *\n * The purpose tells the generator the thing a ref cannot: that the label is a vendor's own product name, which users\n * recognise by its official spelling and which is normally not translated.\n */\nexport function planProviderDisplayNameKeys(refs: readonly string[]): ProviderDisplayNameKeyPlan {\n const keys: string[] = [];\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const ref of [...new Set(refs)].sort()) {\n const key = buildProviderDisplayNameLabelKey(ref);\n keys.push(key);\n keyMeta[key] = {\n kind: LabelKind.LABEL,\n audience: LabelAudience.END_USER,\n purpose:\n `The name of the third-party service this application integrates with under the identifier \"${ref}\", written as ` +\n 'that service\\'s own users know it — its official product or brand name, shown on the screens where a person ' +\n 'connects an account, signs in with it, or sees which service a feature uses. The identifier is a technical ' +\n 'reference, not the name: write the name the vendor itself uses.',\n notes: [\n 'A brand name: keep the vendor\\'s official spelling and capitalization.',\n 'Do not translate it unless the vendor itself publishes a localized name in that language.',\n 'The name only: no description, no \"account\" or \"integration\" suffix.',\n ],\n };\n }\n return { keys, keyMeta };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resource-section-label-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC7D,GAAG,MAAM,EAAE,CASX"}
1
+ {"version":3,"file":"resource-section-label-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC7D,GAAG,MAAM,EAAE,CASX"}
@@ -1 +1 @@
1
- {"version":3,"file":"resource-section-label-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAK5C;IACC,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI,CAAC,0BAA0B,EAAE,GAAG,CAAC,UAAU,CAAC;gBAAE,SAAS;YACzF,IAAI,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,aAAa,UAAU,IAAI,IAAI,EAAE,CAAC,CAAC;QAC/F,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The label keys a resource's layout SECTIONS need: one per section per policy slot\n * (`resources.<type>.sections.<ref>.<slot>`), except a `description` its specification does not\n * document.\n *\n * A section description is optional (`RESOURCE_LAYOUT_REQUIRED_TEXT_SLOTS` in the specification\n * schemas). Planned regardless, the model wrote one for every section, restating the title — \"Workflow —\n * Choose a workflow\". `sectionsWithoutDescription` is `undefined` when the resource has no\n * specification to read the decision from, and then every slot is planned, as before. Pure.\n */\nexport function planResourceSectionLabelKeys(args: {\n resourceType: string;\n sectionRefs: readonly string[];\n slotKeys: readonly string[];\n sectionsWithoutDescription: ReadonlySet<string> | undefined;\n}): string[] {\n const keys: string[] = [];\n for (const sectionRef of args.sectionRefs) {\n for (const slot of args.slotKeys) {\n if (slot === 'description' && args.sectionsWithoutDescription?.has(sectionRef)) continue;\n keys.push(`${LabellingTypes.RESOURCES}.${args.resourceType}.sections.${sectionRef}.${slot}`);\n }\n }\n return keys;\n}\n"]}
1
+ {"version":3,"file":"resource-section-label-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAK5C;IACC,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI,CAAC,0BAA0B,EAAE,GAAG,CAAC,UAAU,CAAC;gBAAE,SAAS;YACzF,IAAI,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,aAAa,UAAU,IAAI,IAAI,EAAE,CAAC,CAAC;QAC/F,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The label keys a resource's layout SECTIONS need: one per section per policy slot\n * (`resources.<type>.sections.<ref>.<slot>`), except a `description` its specification does not\n * document.\n *\n * A section description is optional (`RESOURCE_LAYOUT_REQUIRED_TEXT_SLOTS` in the specification\n * schemas). Planned regardless, the model wrote one for every section, restating the title — \"Workflow —\n * Choose a workflow\". `sectionsWithoutDescription` is `undefined` when the resource has no\n * specification to read the decision from, and then every slot is planned, as before. Pure.\n */\nexport function planResourceSectionLabelKeys(args: {\n resourceType: string;\n sectionRefs: readonly string[];\n slotKeys: readonly string[];\n sectionsWithoutDescription: ReadonlySet<string> | undefined;\n}): string[] {\n const keys: string[] = [];\n for (const sectionRef of args.sectionRefs) {\n for (const slot of args.slotKeys) {\n if (slot === 'description' && args.sectionsWithoutDescription?.has(sectionRef)) continue;\n keys.push(`${LabellingTypes.RESOURCES}.${args.resourceType}.sections.${sectionRef}.${slot}`);\n }\n }\n return keys;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"role-lifecycle-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;;EAG7C,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAwB1C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAmB/C"}
1
+ {"version":3,"file":"role-lifecycle-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;;EAG7C,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAwB1C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAmB/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"role-lifecycle-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,eAAe,GAAG,kCAAkC,EAAE,CAAC;IAC7D,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzD,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,KAAK,CAAsD,CAAC;IAC1G,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,IAAI,IAAI,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WAAW,EAAE,CAAC;YAChC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,UAAU,UAAU,IAAI,KAAK,EAAE,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,0BAA0B,EAAE,mBAAmB,EAAE,gBAAgB,CAAU,CAAC;IAC9F,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import {\n LifecycleStage,\n LIFECYCLE_LABEL_FIELDS,\n} from '@wildo-ai/saas-models';\nimport {\n LabellingTypes,\n LabellingPolicy,\n type LabellingUnitaryDef,\n} from '@wildo-ai/presets-components-models';\nimport { getAllRegisteredRoleSpecifications } from '@wildo-ai/saas-specifications';\n\n/**\n * Canonical per-unit location for application role labels. The labelling\n * planner writes this unit and consumer-documentation publication reads the\n * same primary-locale unit; keeping one named value prevents path drift.\n */\nexport const ROLE_LABELLING_UNIT_FILE_PATH_HINT = Object.freeze({\n bucket: 'roles',\n slug: 'root',\n});\n\n/**\n * Roles emit one set of keys per unique role `ref` (engine + app\n * specifications collapse into the same flat namespace because the\n * runtime role token is globally unique).\n */\nexport function collectRoleKeys(): string[] {\n const registeredSpecs = getAllRegisteredRoleSpecifications();\n if (Object.keys(registeredSpecs).length === 0) return [];\n\n const policy = LabellingPolicy[LabellingTypes.ROLES] as Record<string, LabellingUnitaryDef[]> | undefined;\n const roleSubKeys = (policy?.role ?? [])\n .map((def) => (typeof def === 'string' ? def : def?.ref))\n .filter((value): value is string => typeof value === 'string' && value.length > 0);\n\n if (roleSubKeys.length === 0) return [];\n\n const uniqueRefs = new Set<string>();\n for (const specification of Object.values(registeredSpecs)) {\n const ref = (specification as { ref?: string })?.ref;\n if (typeof ref === 'string' && ref.length > 0) uniqueRefs.add(ref);\n }\n\n const keys: string[] = [];\n for (const ref of uniqueRefs) {\n for (const subKey of roleSubKeys) {\n keys.push(`${LabellingTypes.ROLES}.${ref}.${subKey}`);\n }\n }\n return keys;\n}\n\n/**\n * Lifecycle stages + home-page sections. Both are static so the key\n * shape is fully determined by `LIFECYCLE_LABEL_FIELDS`.\n */\nexport function collectLifecycleKeys(): string[] {\n const prefix = LabellingTypes.LIFECYCLE;\n const keys: string[] = [];\n\n const stageFields = LIFECYCLE_LABEL_FIELDS.stage;\n for (const stageValue of Object.values(LifecycleStage)) {\n for (const field of stageFields) {\n keys.push(`${prefix}.stage.${stageValue}.${field}`);\n }\n }\n\n const sections = ['home_activation_progress', 'home_welcome_back', 'home_dashboard'] as const;\n for (const section of sections) {\n for (const field of LIFECYCLE_LABEL_FIELDS[section]) {\n keys.push(`${prefix}.${section}.${field}`);\n }\n }\n\n return keys;\n}\n"]}
1
+ {"version":3,"file":"role-lifecycle-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,eAAe,GAAG,kCAAkC,EAAE,CAAC;IAC7D,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,E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sBAAsB,CAAC,KAAK,CAAC;IACjD,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;QACvD,KAAK,MAAM,KAAK,IAAI,WAAW,EAAE,CAAC;YAChC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,UAAU,UAAU,IAAI,KAAK,EAAE,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,0BAA0B,EAAE,mBAAmB,EAAE,gBAAgB,CAAU,CAAC;IAC9F,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import {\n LifecycleStage,\n LIFECYCLE_LABEL_FIELDS,\n} from '@wildo-ai/saas-models';\nimport {\n LabellingTypes,\n LabellingPolicy,\n type LabellingUnitaryDef,\n} from '@wildo-ai/presets-components-models';\nimport { getAllRegisteredRoleSpecifications } from '@wildo-ai/saas-specifications';\n\n/**\n * Canonical per-unit location for application role labels. The labelling\n * planner writes this unit and consumer-documentation publication reads the\n * same primary-locale unit; keeping one named value prevents path drift.\n */\nexport const ROLE_LABELLING_UNIT_FILE_PATH_HINT = Object.freeze({\n bucket: 'roles',\n slug: 'root',\n});\n\n/**\n * Roles emit one set of keys per unique role `ref` (engine + app\n * specifications collapse into the same flat namespace because the\n * runtime role token is globally unique).\n */\nexport function collectRoleKeys(): string[] {\n const registeredSpecs = getAllRegisteredRoleSpecifications();\n if (Object.keys(registeredSpecs).length === 0) return [];\n\n const policy = LabellingPolicy[LabellingTypes.ROLES] as Record<string, LabellingUnitaryDef[]> | undefined;\n const roleSubKeys = (policy?.role ?? [])\n .map((def) => (typeof def === 'string' ? def : def?.ref))\n .filter((value): value is string => typeof value === 'string' && value.length > 0);\n\n if (roleSubKeys.length === 0) return [];\n\n const uniqueRefs = new Set<string>();\n for (const specification of Object.values(registeredSpecs)) {\n const ref = (specification as { ref?: string })?.ref;\n if (typeof ref === 'string' && ref.length > 0) uniqueRefs.add(ref);\n }\n\n const keys: string[] = [];\n for (const ref of uniqueRefs) {\n for (const subKey of roleSubKeys) {\n keys.push(`${LabellingTypes.ROLES}.${ref}.${subKey}`);\n }\n }\n return keys;\n}\n\n/**\n * Lifecycle stages + home-page sections. Both are static so the key\n * shape is fully determined by `LIFECYCLE_LABEL_FIELDS`.\n */\nexport function collectLifecycleKeys(): string[] {\n const prefix = LabellingTypes.LIFECYCLE;\n const keys: string[] = [];\n\n const stageFields = LIFECYCLE_LABEL_FIELDS.stage;\n for (const stageValue of Object.values(LifecycleStage)) {\n for (const field of stageFields) {\n keys.push(`${prefix}.stage.${stageValue}.${field}`);\n }\n }\n\n const sections = ['home_activation_progress', 'home_welcome_back', 'home_dashboard'] as const;\n for (const section of sections) {\n for (const field of LIFECYCLE_LABEL_FIELDS[section]) {\n keys.push(`${prefix}.${section}.${field}`);\n }\n }\n\n return keys;\n}\n"]}
@@ -199,7 +199,11 @@ export declare function buildSystemEnumLabelKeys(resourceConfigs: Iterable<AnyRe
199
199
  * - the reason codes an expert may give for correcting an agent's work (`agentWorkReview.reasonCodes`, #1921),
200
200
  * worded under `system_enums.AgentWorkReasonCode.<code>` and read by the reviewer's approval card;
201
201
  * - the organization types (`organizationTypes`, keyed by type, #1851), worded under
202
- * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown.
202
+ * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown;
203
+ * - the application's OWN audit event types (`auditTrail.applicationEventTypes`, keyed by event type, #2687), worded
204
+ * under `system_enums.CoreAuditableEventType.<eventType>` — the ENGINE's open vocabulary, not one of the
205
+ * application's own, because the audit row's `eventType` field names that one vocabulary for every event type and
206
+ * the audit views read it. A second name for the same field would leave the views unable to tell which to read.
203
207
  *
204
208
  * A value the application declares is planned the moment it is declared and one it removes stops being planned —
205
209
  * no hand-kept list of the application's values exists anywhere.
@@ -214,6 +218,9 @@ export interface ApplicationConfigVocabularySources {
214
218
  readonly reasonCodes?: readonly string[];
215
219
  };
216
220
  readonly organizationTypes?: Readonly<Record<string, unknown>>;
221
+ readonly auditTrail?: {
222
+ readonly applicationEventTypes?: Readonly<Record<string, unknown>>;
223
+ };
217
224
  }
218
225
  /**
219
226
  * Build framework-general `LabelKeyMeta` for a resource's ephemeral fields.
@@ -1 +1 @@
1
- {"version":3,"file":"schema-fields-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,OAAO,EAA8D,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAElI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IACtB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AA2I9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,SAA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AAM,EAAE,CAAA;KAAE,CAAC;IACxE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChE;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,wBAAwB,CAAC;CAC1C,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAkB/B"}
1
+ {"version":3,"file":"schema-fields-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,OAAO,EAAoF,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAExJ,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IACtB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AA2I9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,SAAS,EAChC,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,EAAE,kBAAkB,EACvB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C,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/D,QAAQ,CAAC,UAAU,CAAC,EAAE;QAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;KAAE,CAAC;CAC9F;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,wBAAwB,CAAC;CAC1C,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAkB/B"}
@@ -1,6 +1,6 @@
1
1
  import { unwrapSchema, getZodType, getZodDefProperty, hasZodInternals, getZodDefArrayProperty, getZodObjectShape, getZodDefSchemaProperty, getEnumValues, getUnionObjectMembers, hasTooltipForDisplay, hasTooltipForEdit, hasDescriptionForDisplay, hasDescriptionForEdit, isEphemeralField, isHiddenForDisplay, isHiddenForEdit, isFieldContainerSchema, } from '@wildo-ai/zod-decorators';
2
2
  import { LabelKind, SYSTEM_ENUM_VALUES, resolveDeclaredSystemEnumName, resolveFieldEnumSchema, synthesizeUnionDiscriminatorEnums, isSectionedVocabulary, } from '@wildo-ai/presets-components-models';
3
- import { ApplicationConfigVocabulary, ENGINE_OPEN_VOCABULARY_VALUES } from '@wildo-ai/saas-models';
3
+ import { ApplicationConfigVocabulary, ENGINE_OPEN_VOCABULARY_VALUES, EngineOpenVocabulary } from '@wildo-ai/saas-models';
4
4
  import { LabellingTypes } from '@wildo-ai/presets-components-models';
5
5
  /*
6
6
  * The framework's system-enum catalogue (`SYSTEM_ENUM_VALUES`) and the exact value-set match used to
@@ -495,7 +495,11 @@ export function buildSystemEnumLabelKeys(resourceConfigs, applicationVocabularie
495
495
  * - the reason codes an expert may give for correcting an agent's work (`agentWorkReview.reasonCodes`, #1921),
496
496
  * worded under `system_enums.AgentWorkReasonCode.<code>` and read by the reviewer's approval card;
497
497
  * - the organization types (`organizationTypes`, keyed by type, #1851), worded under
498
- * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown.
498
+ * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown;
499
+ * - the application's OWN audit event types (`auditTrail.applicationEventTypes`, keyed by event type, #2687), worded
500
+ * under `system_enums.CoreAuditableEventType.<eventType>` — the ENGINE's open vocabulary, not one of the
501
+ * application's own, because the audit row's `eventType` field names that one vocabulary for every event type and
502
+ * the audit views read it. A second name for the same field would leave the views unable to tell which to read.
499
503
  *
500
504
  * A value the application declares is planned the moment it is declared and one it removes stops being planned —
501
505
  * no hand-kept list of the application's values exists anywhere.
@@ -511,6 +515,9 @@ export function collectApplicationConfigSystemEnumVocabularies(appConfig) {
511
515
  const organizationTypes = Object.keys(appConfig?.organizationTypes ?? {});
512
516
  if (organizationTypes.length > 0)
513
517
  vocabularies.set(ApplicationConfigVocabulary.ORGANIZATION_TYPE, organizationTypes);
518
+ const auditEventTypes = Object.keys(appConfig?.auditTrail?.applicationEventTypes ?? {});
519
+ if (auditEventTypes.length > 0)
520
+ vocabularies.set(EngineOpenVocabulary.CORE_AUDITABLE_EVENT_TYPE, auditEventTypes);
514
521
  return vocabularies;
515
522
  }
516
523
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schema-fields-extractor.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,6BAA6B,EAC7B,sBAA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ACvC,MAAM,MAAM,GAAG,GAAG,cAAc,CAAC,SAAS,IAAI,YAAY,WAAW,SAAS,EAAE,CAAC;QACjF,2EAA2E;QAC3E,wEAAwE;QACxE,MAAM,SAAS,GAAiB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;QAClG,OAAO,CAAC,GAAG,MAAM,gBAAgB,CAAC,GAAG,SAAS,CAAC;QAC/C,OAAO,CAAC,GAAG,MAAM,aAAa,CAAC,GAAG,SAAS,CAAC;QAC5C,OAAO,CAAC,GAAG,MAAM,sBAAsB,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IAC3H,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n unwrapSchema,\n getZodType,\n getZodDefProperty,\n hasZodInternals,\n getZodDefArrayProperty,\n getZodObjectShape,\n getZodDefSchemaProperty,\n getEnumValues,\n getUnionObjectMembers,\n hasTooltipForDisplay,\n hasTooltipForEdit,\n hasDescriptionForDisplay,\n hasDescriptionForEdit,\n isEphemeralField,\n isHiddenForDisplay,\n isHiddenForEdit,\n isFieldContainerSchema,\n} from '@wildo-ai/zod-decorators';\nimport {\n LabelKind,\n SYSTEM_ENUM_VALUES,\n resolveDeclaredSystemEnumName,\n resolveFieldEnumSchema,\n synthesizeUnionDiscriminatorEnums,\n isSectionedVocabulary,\n} from '@wildo-ai/presets-components-models';\nimport { ApplicationConfigVocabulary, ENGINE_OPEN_VOCABULARY_VALUES, type AnyResourceConfiguration } from '@wildo-ai/saas-models';\nimport { LabellingTypes } from '@wildo-ai/presets-components-models';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Per-field metadata captured while walking a Zod schema. Used to\n * decide which translation keys (display/edit, tooltip, description,\n * enum values) need to be generated for a given field path.\n *\n * Two specific behaviors that consumers must NOT change without\n * carefully reviewing every planner caller:\n *\n * 1. **`data.…<path>` collapses onto `<path>`** when both exist —\n * legacy code at `collectResourcesFieldKeys` strips the `data.`\n * prefix and drops the duplicate. We replicate the same filter in\n * `extractResourceFieldKeys` below, collapsing EVERY leading\n * `data.` segment: a LIST response DTO nests the resource under a\n * multi-level `{ data: { data: [ … ] } }` envelope, so the same\n * field surfaces at `data.`, `data.data.`, `data.data.data.` … and\n * all of those depths are duplicates of the top-level field.\n *\n * 2. **System enums are excluded from per-field enum keys.** A field\n * whose values exactly match a known system enum (timezone,\n * currency, locale, …) is registered with `isSystemEnum: true` so\n * the resource unit doesn't re-emit the same translation under\n * `<resource>.fields.<path>.enum.<value>`. The system enums get\n * translated once in the dedicated `theme:system_enums` unit.\n */\nexport interface SchemaFieldInfo {\n isEnum: boolean;\n enumValues?: string[];\n isSystemEnum?: boolean;\n schema?: z.ZodTypeAny;\n /**\n * `true` when ANY occurrence of this field path carries the `.isEphemeral()`\n * marker (a one-time secret like an API key's `plainKey`, surfaced only in a\n * per-operation `customResponseDto`). Drives two ephemeral-specific outputs:\n * a forced `display.description` key (the \"copy it now, shown once\" caption)\n * and the framework-general label/description keyMeta built by\n * `buildEphemeralFieldKeyMeta`. OR-accumulated across schema occurrences.\n */\n isEphemeral?: boolean;\n /**\n * The system-enum NAME this field's values belong to, when it has one — either\n * declared by `.systemEnum('X')` on the schema, or recognised by an exact value-set\n * match against `SYSTEM_ENUM_VALUES`. Answered by `resolveDeclaredSystemEnumName`\n * (`@wildo-ai/presets-components-models`), the same function the frontend's\n * `tResourceFieldEnumValue` reads, so \"suppressed here\" and \"looked up there\" cannot\n * disagree about which enum a field declares (#966).\n *\n * Recorded rather than discarded because it is the OTHER half of `isSystemEnum`.\n * `isSystemEnum` says \"suppress the per-field `<resource>.fields.<path>.enum.<value>`\n * keys\"; the name says WHERE the label must be planned instead\n * (`system_enums.<name>.<value>`). Keeping only the boolean is what let a decorated\n * name be suppressed here and never planned there, leaving the value with no label\n * anywhere and rendering its RAW wire value in the UI — see\n * `collectSystemEnumVocabularies` below.\n */\n systemEnumName?: string;\n /**\n * Two occurrences of this field declared DIFFERENT vocabularies (#1108), so no `system_enums` group may\n * claim it even if a later occurrence agrees with one of them. Set once, never cleared.\n */\n systemEnumDisputed?: boolean;\n}\n\nexport type SchemaFieldInfoMap = Map<string, SchemaFieldInfo>;\n\n/*\n * The framework's system-enum catalogue (`SYSTEM_ENUM_VALUES`) and the exact value-set match used to\n * live here. They moved to `@wildo-ai/presets-components-models` (#966) so the frontend label cascade\n * reads the SAME answer to \"which enum does this field declare\" — see `resolveDeclaredSystemEnumName`.\n */\n\n/**\n * Register one field path.\n *\n * @param enumSourceSchema - the schema the field's VOCABULARY is read from, when it is not the field's own.\n * A union's discriminator passes the enum `synthesizeUnionDiscriminatorEnums` collected across every\n * member, so the path carries the whole vocabulary rather than one member's literal. The field's own\n * `schema` still supplies its tooltip/description/ephemeral metadata.\n * @param insideUnresolvableUnion - `true` inside a union `getUnionObjectMembers` does not recognise (see\n * `collectSchemaFields`): the field is registered, but never as an enum of ANY shape.\n */\nfunction registerField(\n pathParts: string[],\n schema: z.ZodTypeAny,\n acc: SchemaFieldInfoMap,\n enumSourceSchema?: z.ZodTypeAny,\n insideUnresolvableUnion = false,\n): void {\n const fieldPath = pathParts.join('.');\n const unwrapped = unwrapSchema(schema);\n if (!unwrapped) return;\n\n if (!acc.has(fieldPath)) acc.set(fieldPath, { isEnum: false });\n const entry = acc.get(fieldPath)!;\n if (!entry.schema) entry.schema = schema;\n\n // A field is ephemeral if ANY of its occurrences carries `.isEphemeral()`.\n // Ephemeral fields live only in a per-operation customResponseDto (e.g. an API\n // key's `plainKey`), so they never reach the resource spec — the marker on the\n // runtime schema is the only signal the labelling pipeline gets.\n if (isEphemeralField(schema)) entry.isEphemeral = true;\n\n /*\n * WHETHER the field carries a vocabulary is `resolveFieldEnumSchema`'s answer — the renderer's\n * (`resolveResourceLabelEnumSchema` delegates to it). This used to ask \"is the unwrapped type `enum`\",\n * so a discriminator `z.literal` (#1021) and an ARRAY's element (#1079) were invisible here while the\n * renderer looked both up: `privacy.consentedPurposes: z.array(z.enum(ConsentPurpose).systemEnum(…))`\n * was planned nowhere, and the consent gate rendered its purposes raw.\n */\n const resolvedEnumSchema = resolveFieldEnumSchema(enumSourceSchema ?? schema);\n const enumSchema = insideUnresolvableUnion ? undefined : resolvedEnumSchema;\n\n if (enumSchema) {\n const occurrenceValues = extractEnumValues(enumSchema);\n /*\n * A field's planned vocabulary is the UNION of every value any occurrence of it can hold (#1108).\n *\n * One path is walked several times — the main schema, then every operation's request and response\n * DTO — and a later occurrence used to REPLACE the values an earlier one had registered. For a\n * `createSchemaFamily` discriminator that is fatal: the main schema is the family's discriminated\n * union, whose synthesized discriminator carries every base value and every variant, while a\n * variant's request DTO carries that ONE variant's literal. Walked last, the DTO left\n * `consumableTokens.consumptionMode` planned with `BOUNDED_REUSE` alone, and a regeneration that\n * followed the plan deleted the words for `SINGLE_USE` and `EPHEMERAL_STATE` — values rows hold.\n */\n entry.isEnum = true;\n entry.enumValues = [...new Set([...(entry.enumValues ?? []), ...occurrenceValues])];\n // The DECORATOR wins over value matching: `.systemEnum('SubscriptionStatus')` names a\n // vocabulary that has no `SystemEnumName` member and could never be recognised by\n // values. Both answers feed one field so that suppression (`isSystemEnum`) and the\n // planned destination (`systemEnumName`) can never disagree about the same field — and\n // the function is shared with the frontend cascade, so neither can the renderer (#966).\n // Across occurrences the name survives only while every occurrence that declares one\n // declares the same; a narrowed DTO literal that declares nothing keeps the union's answer,\n // and two occurrences naming different vocabularies leave the field with per-field words,\n // as `synthesizeUnionDiscriminatorEnums` decides for disagreeing members.\n const declared = resolveDeclaredSystemEnumName(enumSchema, occurrenceValues);\n if (declared !== undefined) {\n if (entry.systemEnumName === undefined && !entry.systemEnumDisputed) entry.systemEnumName = declared;\n else if (entry.systemEnumName !== declared) {\n entry.systemEnumName = undefined;\n entry.systemEnumDisputed = true;\n }\n }\n entry.isSystemEnum = Boolean(entry.systemEnumName);\n }\n}\n\n/**\n * The values of an enum-bearing schema. A `z.enum` keeps the extraction this planner has always used\n * (with its fallbacks over Zod's enum def shapes); a literal or a union of enum-likes reads `getEnumValues`,\n * as the renderer does.\n */\nfunction extractEnumValues(enumSchema: z.ZodTypeAny): string[] {\n const unwrapped = unwrapSchema(enumSchema);\n if (getZodType(unwrapped) !== 'enum') return getEnumValues(enumSchema);\n\n const entriesFromDef = getZodDefProperty(unwrapped, 'entries');\n const valuesFromDef = getZodDefProperty(unwrapped, 'values');\n const schemaAny = unwrapped as { options?: unknown; enum?: unknown };\n const optionsFromSchema = schemaAny.options;\n const enumFromSchema = schemaAny.enum;\n\n let enumValues = getEnumValues(unwrapped);\n\n if (enumValues.length === 0) {\n if (Array.isArray(entriesFromDef)) {\n enumValues = entriesFromDef.filter((v): v is string => typeof v === 'string');\n } else if (Array.isArray(valuesFromDef)) {\n enumValues = valuesFromDef.filter((v): v is string => typeof v === 'string');\n } else if (Array.isArray(optionsFromSchema)) {\n enumValues = (optionsFromSchema as unknown[]).filter((v): v is string => typeof v === 'string');\n } else if (entriesFromDef && typeof entriesFromDef === 'object' && !Array.isArray(entriesFromDef)) {\n const enumObj = entriesFromDef as Record<string, unknown>;\n for (const key of Object.keys(enumObj)) {\n const value = enumObj[key];\n if (typeof value === 'string') {\n if (!Number.isNaN(Number(key))) continue;\n enumValues.push(value);\n } else if (typeof value === 'number') {\n enumValues.push(String(value));\n }\n }\n } else if (enumFromSchema && typeof enumFromSchema === 'object' && !Array.isArray(enumFromSchema)) {\n const enumObj = enumFromSchema as Record<string, unknown>;\n for (const key of Object.keys(enumObj)) {\n const value = enumObj[key];\n if (typeof value === 'string') {\n enumValues.push(value);\n } else if (typeof value === 'number') {\n const reverseKey = String(value);\n if ((enumObj as Record<string, unknown>)[reverseKey] !== key) {\n enumValues.push(String(value));\n }\n }\n }\n }\n }\n\n return enumValues;\n}\n\n/**\n * Recursively walk a Zod schema and populate the field info map.\n *\n * @param discriminatorEnums - set only when walking one member of a union: the union's discriminator enums\n * (`synthesizeUnionDiscriminatorEnums`), read in place of that member's own literal so the discriminator\n * path carries the vocabulary of EVERY member — and its declared `system_enums` name when they all agree —\n * exactly as the renderer's `collectResourceLabelFieldEntries` collects it (#1021).\n * @param insideUnresolvableUnion - `true` once the walk is inside a union `getUnionObjectMembers` does not\n * recognise (no key discriminates it). The renderer walks NOTHING below such a union, so no field in the\n * subtree is registered as an enum of any shape — literal, synthesized discriminator, array element, literal\n * union or plain `z.enum` — and none plans enum keys nothing reads. Fields are still registered, and still\n * plan their label keys (a pre-existing over-plan). Carried through object, array and intersection recursion.\n */\nexport function collectSchemaFields(\n schema: z.ZodTypeAny | undefined,\n basePath: string[],\n acc: SchemaFieldInfoMap,\n discriminatorEnums?: Readonly<Record<string, z.ZodTypeAny>>,\n insideUnresolvableUnion = false,\n): void {\n if (!schema) return;\n const unwrapped = unwrapSchema(schema);\n if (!unwrapped) return;\n\n const typeName = getZodType(unwrapped);\n if (!typeName) return;\n\n switch (typeName) {\n case 'object': {\n /*\n * A structured VALUE is a Zod object whose parts are not fields (#1959). `z_money()` is\n * `{ amount, currency, decimals }` and `z_address()` is `{ line1, …, coordinates }`, but the value's own\n * component draws and names those parts; the resource has one word for the whole value, its field label,\n * which the parent's `registerField` has already planned. The renderer's walk\n * (`collectResourceLabelFieldEntries`) stops here through the same `isFieldContainerSchema`, so every word\n * planned below this point was generated, translated and shipped with no reader — measured in Wonder CRM,\n * `fields.amount.amount`, `fields.amount.currency` and `fields.amount.decimals` for `deal.amount`.\n *\n * Gated here, on the object about to be walked, rather than at each of the four recursions that reach it,\n * so a structured value met as a field, an array item, a union member or an intersection side stops alike.\n * Read off the classifier rather than a list of value types, so a structured type added tomorrow is covered.\n */\n if (!isFieldContainerSchema(schema)) break;\n const shape = getZodObjectShape(unwrapped);\n for (const key of Object.keys(shape)) {\n const nextPath = [...basePath, key];\n const child = shape[key] as z.ZodTypeAny;\n registerField(nextPath, child, acc, discriminatorEnums?.[key], insideUnresolvableUnion);\n collectSchemaFields(child, nextPath, acc, undefined, insideUnresolvableUnion);\n }\n break;\n }\n case 'array': {\n const element = getZodDefSchemaProperty(unwrapped, 'element');\n if (element) collectSchemaFields(element, basePath, acc, undefined, insideUnresolvableUnion);\n break;\n }\n case 'union':\n case 'discriminatedUnion': {\n const unionMembers = getUnionObjectMembers(unwrapped);\n const unionDiscriminatorEnums = synthesizeUnionDiscriminatorEnums(unionMembers);\n const memberInsideUnresolvableUnion = insideUnresolvableUnion || unionMembers.length === 0;\n const options = getZodDefArrayProperty(unwrapped, 'options') || [];\n for (const opt of options) {\n if (opt && typeof opt === 'object' && hasZodInternals(opt)) {\n collectSchemaFields(opt as unknown as z.ZodTypeAny, basePath, acc, unionDiscriminatorEnums, memberInsideUnresolvableUnion);\n }\n }\n break;\n }\n case 'intersection': {\n const left = getZodDefSchemaProperty(unwrapped, 'left');\n const right = getZodDefSchemaProperty(unwrapped, 'right');\n if (left) collectSchemaFields(left, basePath, acc, undefined, insideUnresolvableUnion);\n if (right) collectSchemaFields(right, basePath, acc, undefined, insideUnresolvableUnion);\n break;\n }\n /*\n * No wrapper cases (`optional`/`nullable`/`default`/`effects`/`transform`/`refine`), deliberately: `unwrapSchema`\n * above peels optional, nullable, default, pipe, readonly and catch, and Zod 4 has no `effects`/`refine` type\n * (a refinement is a check on the same schema). The one survivor among the removed case labels is\n * `transform` (e.g. the `in` side of a `z.preprocess` pipe), whose def carries no inner schema — so the removed\n * case could only ever do nothing. `prefault`, `lazy` and `nonoptional` also survive `unwrapSchema`, but no case\n * here ever walked them. Measured 2026-09-14 over optional, nullable, nullish, default, transform, refine,\n * superRefine, preprocess, pipe, readonly, catch, prefault, lazy, brand and a chained wrapper.\n */\n default:\n break;\n }\n}\n\n/**\n * Drop `data.`-wrapped field paths that duplicate a top-level field.\n *\n * A LIST response DTO nests the resource under a multi-level\n * `{ data: { data: [ … ] } }` envelope, so the SAME field surfaces at\n * `data.title`, `data.data.title`, `data.data.data.title`, …. Every such depth\n * collapses onto the top-level field and is a duplicate of its label, so we\n * strip EVERY leading `data.` segment and drop the path when the collapsed form\n * matches a top-level (non-`data.`) field. The original implementation stripped\n * only ONE `data.` segment, leaving `data.data.*` and deeper as ~40 redundant\n * keys per list-DTO resource (e.g. `todos`).\n *\n * Non-resource wrapper sub-paths are intentionally PRESERVED because they\n * collapse to a non-top-level path: `data.pagination.*` → `pagination.*`, and a\n * populated relationship `data.data.organization.*` → `organization.*` (neither\n * is a top-level resource field). Pure; order-preserving (the caller sorts).\n */\nexport function dedupeDataWrappedFieldPaths(fieldPaths: Iterable<string>): string[] {\n const all = [...fieldPaths];\n const topLevelFields = new Set(all.filter((path) => !path.startsWith('data.')));\n return all.filter((path) => {\n if (!path.startsWith('data.')) return true;\n let collapsed = path;\n while (collapsed.startsWith('data.')) collapsed = collapsed.slice('data.'.length);\n return !topLevelFields.has(collapsed);\n });\n}\n\n/**\n * Walk a resource's full schema surface into a field-info map: `mainSchema`\n * plus every operation's request/response DTO. The response DTO IS the\n * `customResponseDto` for a custom-response op — the ONLY place ephemeral\n * fields (an API key's `plainKey`) live — so this is what surfaces them.\n * Shared by `extractResourceFieldKeys` and `buildEphemeralFieldKeyMeta` so the\n * two always see the identical field set (incl. ephemeral fields + their marker).\n */\nfunction buildResourceFieldInfoMap(resourceConfig: AnyResourceConfiguration): SchemaFieldInfoMap {\n const fieldInfoMap: SchemaFieldInfoMap = new Map();\n const mainSchema = resourceConfig.mainSchema as z.ZodTypeAny | undefined;\n collectSchemaFields(mainSchema, [], fieldInfoMap);\n\n for (const operation of resourceConfig.operations || []) {\n if (operation.requestDto) {\n collectSchemaFields(operation.requestDto as z.ZodTypeAny, [], fieldInfoMap);\n }\n if (operation.responseDto) {\n collectSchemaFields(operation.responseDto as z.ZodTypeAny, [], fieldInfoMap);\n }\n }\n\n return fieldInfoMap;\n}\n\n/**\n * Produce the full set of `RESOURCES.<type>.fields.<path>.<sub>` keys\n * for a single resource, given the per-field display/edit subkey\n * lists. Output is deterministic (paths sorted alphabetically) so the\n * lock fingerprint stays stable across runs.\n */\nexport function extractResourceFieldKeys(args: {\n resourceType: string;\n resourceConfig: AnyResourceConfiguration;\n displayDefs: string[];\n editDefs: string[];\n}): string[] {\n const { resourceType, resourceConfig, displayDefs, editDefs } = args;\n\n const fieldInfoMap = buildResourceFieldInfoMap(resourceConfig);\n const filteredFieldPaths = dedupeDataWrappedFieldPaths(fieldInfoMap.keys());\n\n const keys: string[] = [];\n for (const fieldPath of filteredFieldPaths.sort()) {\n const info = fieldInfoMap.get(fieldPath)!;\n const fieldPrefix = `${LabellingTypes.RESOURCES}.${resourceType}.fields.${fieldPath}`;\n\n /*\n * A field HIDDEN in a mode gets no words for that mode, because nothing can ever read them.\n *\n * `.isHidden()` is not a styling hint: `DisplayField` returns empty for `isHiddenForDisplay`\n * BEFORE any render, and says so — \"must never render in ANY display surface\" — covering the\n * authored `<DisplayField name=\"x\" />` path as well as the generated one. So a label planned for\n * such a field is text with no reachable reader, and an LLM is paid per unit to invent it.\n *\n * Measured 2026-09-18 (#1298), on the framework-injected retention pair alone: `impersonalizedAt`\n * is `.isHidden()` on every resource declaring a `retentionPolicy`, and across the two dogfood\n * applications it had collected ELEVEN different English labels — \"Impersonalized at\" 87 times,\n * \"Impersonalized\" 33, and, contradicting this repository's own `impersonaliz* ≠ anonymiz*`\n * distinction, \"Anonymized\" 5 more. Nobody had ever seen any of them.\n *\n * Gated PER MODE rather than per field, because the decorator is per mode: `.isHidden()` bare\n * hides both, while `.isHidden({ display: true })` hides one and leaves the other renderable and\n * therefore still owed its words. The enum VALUES need only one surface that can show them, so\n * they drop out only when the field is hidden in both.\n */\n const hiddenForDisplay = info.schema ? isHiddenForDisplay(info.schema) : false;\n const hiddenForEdit = info.schema ? isHiddenForEdit(info.schema) : false;\n\n if (!hiddenForDisplay) {\n for (const sub of displayDefs) {\n keys.push(`${fieldPrefix}.display.${sub}`);\n }\n }\n if (!hiddenForEdit) {\n for (const sub of editDefs) {\n keys.push(`${fieldPrefix}.edit.${sub}`);\n }\n }\n\n if (info.schema) {\n if (!hiddenForDisplay && hasTooltipForDisplay(info.schema)) keys.push(`${fieldPrefix}.display.tooltip`);\n if (!hiddenForEdit && hasTooltipForEdit(info.schema)) keys.push(`${fieldPrefix}.edit.tooltip`);\n // An ephemeral field always earns a display description — the \"copy it\n // now, shown once\" caption the reveal dialog renders — even without an\n // authored `.describe()`. (`info.schema` is always set for walked fields.)\n if (!hiddenForDisplay && (info.isEphemeral || hasDescriptionForDisplay(info.schema))) keys.push(`${fieldPrefix}.display.description`);\n if (!hiddenForEdit && hasDescriptionForEdit(info.schema)) keys.push(`${fieldPrefix}.edit.description`);\n }\n\n if (!(hiddenForDisplay && hiddenForEdit) && info.isEnum && info.enumValues && info.enumValues.length > 0 && !info.isSystemEnum) {\n for (const enumValue of info.enumValues) {\n keys.push(`${fieldPrefix}.enum.${enumValue}`);\n }\n }\n }\n\n return keys;\n}\n\n/**\n * Collect every system-enum vocabulary the application's own resources actually USE, as\n * `name → values`.\n *\n * ## Why this exists, and why it walks the resources rather than reading a registry\n *\n * `extractResourceFieldKeys` above SUPPRESSES the per-field\n * `<resource>.fields.<path>.enum.<value>` keys for any field whose `isSystemEnum` is true,\n * on the contract that the value is labelled once, centrally, under\n * `system_enums.<name>.<value>`. Nothing was enforcing the other half of that contract: the\n * planner emitted a hand-written list of nine names, so every OTHER decorated name was\n * suppressed here and planned nowhere — and `tResourceFieldEnumValue` then falls through to\n * step 3 of its cascade and renders the RAW WIRE VALUE. Measured on the Wonder Todos\n * generated tree on 2026-09-08: `organizationSubscriptions.status` had a field label and no\n * `enum` block, so a subscription badge read `past_due`, a product type read `one_time`, and\n * a pricing model read `per_unit`.\n *\n * Deriving from the SCHEMA WALK — rather than from the frontend's `registerCommonEnum`\n * registry — is what makes the invariant structural instead of hand-kept:\n *\n * - it reads the exact same `buildResourceFieldInfoMap` walk that decides suppression, so\n * \"suppressed here ⇒ planned there\" cannot come apart for any field;\n * - it is total over the application. A resource that decorates a new vocabulary tomorrow\n * is planned with no edit anywhere;\n * - the registry could not have answered it anyway. Registration happened at FRONTEND startup\n * (`registerBuiltinCommonEnums()`) in a React bundle the companion's Node process never loads,\n * carried no VALUES, and missed two decorated vocabularies (`PlatformAccessGrantStatus`,\n * `PlatformAccessGrantAutoApprovalReason`). Since #966 registration wires no words at all and\n * nothing reads the registered-name set: the DECLARATION is the only answer, read by\n * `resolveDeclaredSystemEnumName` here, in the frontend cascade, and in the frontend label\n * introspection.\n *\n * Vocabularies registered for RENDERING but never `.systemEnum()`-decorated (the\n * user-preference badges, the two role vocabularies) are correctly absent: nothing suppresses\n * their per-field keys, so they are already labelled — per field for the preferences, and in\n * the `roles.*` tree for the roles. Planning them here would duplicate an authored label, and\n * would flatten deliberate per-resource wording (`theme.AUTO` is \"Automatic\" on\n * `userPreferences` and \"System default\" on `userSelfPreferences`).\n *\n * Values are de-duplicated across resources and returned in first-seen order per name; the\n * caller sorts the names, so the emitted key list is deterministic and the lock fingerprint\n * stays stable across runs.\n */\nexport function collectSystemEnumVocabularies(\n resourceConfigs: Iterable<AnyResourceConfiguration>,\n): Map<string, Set<string>> {\n const vocabularies = new Map<string, Set<string>>();\n for (const resourceConfig of resourceConfigs) {\n for (const info of buildResourceFieldInfoMap(resourceConfig).values()) {\n if (!info.systemEnumName || !info.enumValues || info.enumValues.length === 0) continue;\n let values = vocabularies.get(info.systemEnumName);\n if (!values) {\n values = new Set<string>();\n vocabularies.set(info.systemEnumName, values);\n }\n for (const value of info.enumValues) values.add(value);\n }\n }\n return vocabularies;\n}\n\n/**\n * Build the full `system_enums.<EnumName>.<value>` key list for the labelling plan.\n *\n * ## The sources, and why each is needed\n *\n * 1. **`SYSTEM_ENUM_VALUES`** — every member of the framework's declared `SystemEnumName`\n * vocabulary, unconditionally. These are framework-owned and an application may reach one\n * through a shared schema the resource walk does not necessarily see (a `z_duration()`\n * field on a config object, say). Keyed as a `Record<SystemEnumName, …>` at its\n * declaration, so an eleventh member is a compile error there rather than an omission\n * here.\n * 2. **`collectSystemEnumVocabularies`** — every vocabulary the application's own resource\n * schemas declare with `.systemEnum()`, off the same walk that decides suppression. This\n * is the half no fixed list can have: `SubscriptionStatus` has no `SystemEnumName`\n * member, and an application that decorates a new vocabulary tomorrow is planned with no\n * edit anywhere.\n * 3. **`applicationVocabularies`** — vocabularies whose NAME the framework owns and whose VALUES\n * the application declares rather than a schema: in its configuration\n * ({@link collectApplicationConfigSystemEnumVocabularies}), such as the reviewers' reason codes\n * (#1921), or in its gates' `pauseStates`, which the planner adds from the backend introspection\n * (#1864). No resource schema can carry those values, because they are the application's declarations.\n * 4. **`ENGINE_OPEN_VOCABULARY_VALUES`** — the engine's OPEN vocabularies (#1791): a STRING field names one\n * with `.systemEnum(EngineOpenVocabulary.X)` because the schema cannot enumerate its values (an audit\n * event's `eventType`), so the values come from the one list the engine keeps of them. Planned for every\n * application, like source 1.\n *\n * ## Why it lives HERE rather than in the planner\n *\n * Beside `extractResourceFieldKeys`, which is the function it has to agree with. The defect\n * this replaces was exactly a disagreement between the two: suppression lived here, the\n * central plan lived in the planner as nine hand-written `push(...)` calls, and nothing\n * connected them — so ten decorated vocabularies were suppressed here and planned nowhere,\n * and `tResourceFieldEnumValue` rendered their raw wire values. One module now owns both\n * halves, and one test can assert the invariant between them.\n *\n * Names are emitted in `SystemEnumName` declaration order first, then discovered ones sorted\n * alphabetically, so the key list is deterministic and the labelling lock's fingerprint is\n * stable across runs. A name in both sources contributes one group — the union of its values.\n */\nexport function buildSystemEnumLabelKeys(\n resourceConfigs: Iterable<AnyResourceConfiguration>,\n applicationVocabularies: ReadonlyMap<string, readonly string[]> = new Map(),\n): string[] {\n const vocabularies = new Map<string, Set<string>>();\n for (const [enumName, values] of Object.entries(SYSTEM_ENUM_VALUES)) {\n vocabularies.set(enumName, new Set(values));\n }\n const discoveredVocabularies = collectSystemEnumVocabularies(resourceConfigs);\n // Source 4: the engine's OPEN vocabularies, unconditionally — a string field names one with `.systemEnum()`, and\n // its values are the engine's to list, not the field's (#1791).\n for (const [enumName, values] of Object.entries(ENGINE_OPEN_VOCABULARY_VALUES)) {\n const merged = discoveredVocabularies.get(enumName) ?? new Set<string>();\n for (const value of values) merged.add(value);\n discoveredVocabularies.set(enumName, merged);\n }\n for (const [enumName, values] of applicationVocabularies) {\n const merged = discoveredVocabularies.get(enumName) ?? new Set<string>();\n for (const value of values) merged.add(value);\n discoveredVocabularies.set(enumName, merged);\n }\n // A vocabulary that keeps its words in a section of its own (a feature, a limit, #1851) is planned there — by the\n // billing unit, total over the declared features and limits — and never a second time under `system_enums`.\n for (const enumName of [...discoveredVocabularies.keys()]) {\n if (isSectionedVocabulary(enumName)) discoveredVocabularies.delete(enumName);\n }\n for (const [enumName, values] of discoveredVocabularies) {\n const existing = vocabularies.get(enumName);\n if (existing) {\n for (const value of values) existing.add(value);\n } else {\n vocabularies.set(enumName, values);\n }\n }\n\n const declaredOrder = Object.keys(SYSTEM_ENUM_VALUES);\n const declared = new Set(declaredOrder);\n const discovered = [...vocabularies.keys()].filter((name) => !declared.has(name)).sort();\n\n const keys: string[] = [];\n for (const enumName of [...declaredOrder, ...discovered]) {\n for (const value of vocabularies.get(enumName)!) {\n keys.push(`${LabellingTypes.SYSTEM_ENUMS}.${enumName}.${value}`);\n }\n }\n return keys;\n}\n\n/**\n * The named vocabularies whose VALUES the application declares in its configuration — source 3 of\n * {@link buildSystemEnumLabelKeys}, one entry per configuration-declared `ApplicationConfigVocabulary` member (the\n * gates' pause states, #1864, are declared in backend modules; the planner adds them from the backend introspection):\n *\n * - the reason codes an expert may give for correcting an agent's work (`agentWorkReview.reasonCodes`, #1921),\n * worded under `system_enums.AgentWorkReasonCode.<code>` and read by the reviewer's approval card;\n * - the organization types (`organizationTypes`, keyed by type, #1851), worded under\n * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown.\n *\n * A value the application declares is planned the moment it is declared and one it removes stops being planned —\n * no hand-kept list of the application's values exists anywhere.\n *\n * Rejected: wording the codes inside the approval component's own labels. A component label key is fixed at\n * authoring time, and these values are the application's; the component would need one key per code it cannot know.\n */\nexport function collectApplicationConfigSystemEnumVocabularies(\n appConfig: ApplicationConfigVocabularySources | undefined,\n): Map<string, readonly string[]> {\n const vocabularies = new Map<string, readonly string[]>();\n const reasonCodes = appConfig?.agentWorkReview?.reasonCodes ?? [];\n if (reasonCodes.length > 0) vocabularies.set(ApplicationConfigVocabulary.AGENT_WORK_REASON_CODE, [...reasonCodes]);\n const organizationTypes = Object.keys(appConfig?.organizationTypes ?? {});\n if (organizationTypes.length > 0) vocabularies.set(ApplicationConfigVocabulary.ORGANIZATION_TYPE, organizationTypes);\n return vocabularies;\n}\n\n/** The parts of an application's configuration that declare the values of an `ApplicationConfigVocabulary`. */\nexport interface ApplicationConfigVocabularySources {\n readonly agentWorkReview?: { readonly reasonCodes?: readonly string[] };\n readonly organizationTypes?: Readonly<Record<string, unknown>>;\n}\n\n/**\n * Framework-general purpose for an ephemeral field's user-facing LABEL. The\n * runtime field name (`plainKey`) is developer-oriented; the LLM, given this\n * purpose plus the resource context (e.g. `organizationApiKeys`), produces the\n * credential's end-user name (\"API key\"). Applies to ANY `.isEphemeral()` field.\n */\nconst EPHEMERAL_FIELD_LABEL_PURPOSE =\n 'Caption for a one-time secret credential this resource issues — for example an API key, access token, or recovery code — revealed once at creation for the user to copy. Name it as the end user knows the credential; never the raw field name, and never the word \"plain\".';\n\n/**\n * Framework-general purpose for an ephemeral field's DESCRIPTION — the per-field\n * \"copy it now, shown once\" caption the reveal dialog renders under the value.\n * Derived purely from the `.isEphemeral()` marker (closes the LABELLING-2 gap).\n */\nconst EPHEMERAL_FIELD_DESCRIPTION_PURPOSE =\n 'Tells the user to copy and store this secret value immediately because it is shown only this once and can never be retrieved or displayed again.';\n\n/**\n * Build framework-general `LabelKeyMeta` for a resource's ephemeral fields.\n *\n * Ephemeral fields (`.isEphemeral()`) live only in a per-operation\n * `customResponseDto`, so they never reach the resource spec and\n * `projectResourceKeyMeta` (which reads `spec.fields`) leaves them to heuristic\n * field-name humanization (\"Plain key\"). Straight from the marker, this projects\n * a user-facing label purpose (\"API key\") + a \"shown once\" description purpose —\n * so every ephemeral field is labelled well with zero per-field authoring. The\n * planner merges this OVER the spec keyMeta (ephemeral wins). `{}` when none.\n */\nexport function buildEphemeralFieldKeyMeta(args: {\n resourceType: string;\n resourceConfig: AnyResourceConfiguration;\n}): Record<string, LabelKeyMeta> {\n const { resourceType, resourceConfig } = args;\n const fieldInfoMap = buildResourceFieldInfoMap(resourceConfig);\n const ephemeralPaths = dedupeDataWrappedFieldPaths(\n [...fieldInfoMap.keys()].filter((path) => fieldInfoMap.get(path)!.isEphemeral),\n );\n\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const fieldPath of ephemeralPaths) {\n const prefix = `${LabellingTypes.RESOURCES}.${resourceType}.fields.${fieldPath}`;\n // display + edit share the user-facing caption (the field is not editable,\n // but the edit.label key is still emitted, so keep the two consistent).\n const labelMeta: LabelKeyMeta = { kind: LabelKind.LABEL, purpose: EPHEMERAL_FIELD_LABEL_PURPOSE };\n keyMeta[`${prefix}.display.label`] = labelMeta;\n keyMeta[`${prefix}.edit.label`] = labelMeta;\n keyMeta[`${prefix}.display.description`] = { kind: LabelKind.DESCRIPTION, purpose: EPHEMERAL_FIELD_DESCRIPTION_PURPOSE };\n }\n return keyMeta;\n}\n"]}
1
+ {"version":3,"file":"schema-fields-extractor.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,GACvB,MAAM,0BAA0B,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AyB,CAAC,cAAc,CAAC,CAAC;IAC/D,MAAM,cAAc,GAAG,2BAA2B,CAChD,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,WAAW,CAAC,CAC/E,CAAC;IAEF,MAAM,OAAO,GAAiC,EAAE,CAAC;IACjD,KAAK,MAAM,SAAS,IAAI,cAAc,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,GAAG,cAAc,CAAC,SAAS,IAAI,YAAY,WAAW,SAAS,EAAE,CAAC;QACjF,2EAA2E;QAC3E,wEAAwE;QACxE,MAAM,SAAS,GAAiB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;QAClG,OAAO,CAAC,GAAG,MAAM,gBAAgB,CAAC,GAAG,SAAS,CAAC;QAC/C,OAAO,CAAC,GAAG,MAAM,aAAa,CAAC,GAAG,SAAS,CAAC;QAC5C,OAAO,CAAC,GAAG,MAAM,sBAAsB,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IAC3H,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n unwrapSchema,\n getZodType,\n getZodDefProperty,\n hasZodInternals,\n getZodDefArrayProperty,\n getZodObjectShape,\n getZodDefSchemaProperty,\n getEnumValues,\n getUnionObjectMembers,\n hasTooltipForDisplay,\n hasTooltipForEdit,\n hasDescriptionForDisplay,\n hasDescriptionForEdit,\n isEphemeralField,\n isHiddenForDisplay,\n isHiddenForEdit,\n isFieldContainerSchema,\n} from '@wildo-ai/zod-decorators';\nimport {\n LabelKind,\n SYSTEM_ENUM_VALUES,\n resolveDeclaredSystemEnumName,\n resolveFieldEnumSchema,\n synthesizeUnionDiscriminatorEnums,\n isSectionedVocabulary,\n} from '@wildo-ai/presets-components-models';\nimport { ApplicationConfigVocabulary, ENGINE_OPEN_VOCABULARY_VALUES, EngineOpenVocabulary, type AnyResourceConfiguration } from '@wildo-ai/saas-models';\nimport { LabellingTypes } from '@wildo-ai/presets-components-models';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Per-field metadata captured while walking a Zod schema. Used to\n * decide which translation keys (display/edit, tooltip, description,\n * enum values) need to be generated for a given field path.\n *\n * Two specific behaviors that consumers must NOT change without\n * carefully reviewing every planner caller:\n *\n * 1. **`data.…<path>` collapses onto `<path>`** when both exist —\n * legacy code at `collectResourcesFieldKeys` strips the `data.`\n * prefix and drops the duplicate. We replicate the same filter in\n * `extractResourceFieldKeys` below, collapsing EVERY leading\n * `data.` segment: a LIST response DTO nests the resource under a\n * multi-level `{ data: { data: [ … ] } }` envelope, so the same\n * field surfaces at `data.`, `data.data.`, `data.data.data.` … and\n * all of those depths are duplicates of the top-level field.\n *\n * 2. **System enums are excluded from per-field enum keys.** A field\n * whose values exactly match a known system enum (timezone,\n * currency, locale, …) is registered with `isSystemEnum: true` so\n * the resource unit doesn't re-emit the same translation under\n * `<resource>.fields.<path>.enum.<value>`. The system enums get\n * translated once in the dedicated `theme:system_enums` unit.\n */\nexport interface SchemaFieldInfo {\n isEnum: boolean;\n enumValues?: string[];\n isSystemEnum?: boolean;\n schema?: z.ZodTypeAny;\n /**\n * `true` when ANY occurrence of this field path carries the `.isEphemeral()`\n * marker (a one-time secret like an API key's `plainKey`, surfaced only in a\n * per-operation `customResponseDto`). Drives two ephemeral-specific outputs:\n * a forced `display.description` key (the \"copy it now, shown once\" caption)\n * and the framework-general label/description keyMeta built by\n * `buildEphemeralFieldKeyMeta`. OR-accumulated across schema occurrences.\n */\n isEphemeral?: boolean;\n /**\n * The system-enum NAME this field's values belong to, when it has one — either\n * declared by `.systemEnum('X')` on the schema, or recognised by an exact value-set\n * match against `SYSTEM_ENUM_VALUES`. Answered by `resolveDeclaredSystemEnumName`\n * (`@wildo-ai/presets-components-models`), the same function the frontend's\n * `tResourceFieldEnumValue` reads, so \"suppressed here\" and \"looked up there\" cannot\n * disagree about which enum a field declares (#966).\n *\n * Recorded rather than discarded because it is the OTHER half of `isSystemEnum`.\n * `isSystemEnum` says \"suppress the per-field `<resource>.fields.<path>.enum.<value>`\n * keys\"; the name says WHERE the label must be planned instead\n * (`system_enums.<name>.<value>`). Keeping only the boolean is what let a decorated\n * name be suppressed here and never planned there, leaving the value with no label\n * anywhere and rendering its RAW wire value in the UI — see\n * `collectSystemEnumVocabularies` below.\n */\n systemEnumName?: string;\n /**\n * Two occurrences of this field declared DIFFERENT vocabularies (#1108), so no `system_enums` group may\n * claim it even if a later occurrence agrees with one of them. Set once, never cleared.\n */\n systemEnumDisputed?: boolean;\n}\n\nexport type SchemaFieldInfoMap = Map<string, SchemaFieldInfo>;\n\n/*\n * The framework's system-enum catalogue (`SYSTEM_ENUM_VALUES`) and the exact value-set match used to\n * live here. They moved to `@wildo-ai/presets-components-models` (#966) so the frontend label cascade\n * reads the SAME answer to \"which enum does this field declare\" — see `resolveDeclaredSystemEnumName`.\n */\n\n/**\n * Register one field path.\n *\n * @param enumSourceSchema - the schema the field's VOCABULARY is read from, when it is not the field's own.\n * A union's discriminator passes the enum `synthesizeUnionDiscriminatorEnums` collected across every\n * member, so the path carries the whole vocabulary rather than one member's literal. The field's own\n * `schema` still supplies its tooltip/description/ephemeral metadata.\n * @param insideUnresolvableUnion - `true` inside a union `getUnionObjectMembers` does not recognise (see\n * `collectSchemaFields`): the field is registered, but never as an enum of ANY shape.\n */\nfunction registerField(\n pathParts: string[],\n schema: z.ZodTypeAny,\n acc: SchemaFieldInfoMap,\n enumSourceSchema?: z.ZodTypeAny,\n insideUnresolvableUnion = false,\n): void {\n const fieldPath = pathParts.join('.');\n const unwrapped = unwrapSchema(schema);\n if (!unwrapped) return;\n\n if (!acc.has(fieldPath)) acc.set(fieldPath, { isEnum: false });\n const entry = acc.get(fieldPath)!;\n if (!entry.schema) entry.schema = schema;\n\n // A field is ephemeral if ANY of its occurrences carries `.isEphemeral()`.\n // Ephemeral fields live only in a per-operation customResponseDto (e.g. an API\n // key's `plainKey`), so they never reach the resource spec — the marker on the\n // runtime schema is the only signal the labelling pipeline gets.\n if (isEphemeralField(schema)) entry.isEphemeral = true;\n\n /*\n * WHETHER the field carries a vocabulary is `resolveFieldEnumSchema`'s answer — the renderer's\n * (`resolveResourceLabelEnumSchema` delegates to it). This used to ask \"is the unwrapped type `enum`\",\n * so a discriminator `z.literal` (#1021) and an ARRAY's element (#1079) were invisible here while the\n * renderer looked both up: `privacy.consentedPurposes: z.array(z.enum(ConsentPurpose).systemEnum(…))`\n * was planned nowhere, and the consent gate rendered its purposes raw.\n */\n const resolvedEnumSchema = resolveFieldEnumSchema(enumSourceSchema ?? schema);\n const enumSchema = insideUnresolvableUnion ? undefined : resolvedEnumSchema;\n\n if (enumSchema) {\n const occurrenceValues = extractEnumValues(enumSchema);\n /*\n * A field's planned vocabulary is the UNION of every value any occurrence of it can hold (#1108).\n *\n * One path is walked several times — the main schema, then every operation's request and response\n * DTO — and a later occurrence used to REPLACE the values an earlier one had registered. For a\n * `createSchemaFamily` discriminator that is fatal: the main schema is the family's discriminated\n * union, whose synthesized discriminator carries every base value and every variant, while a\n * variant's request DTO carries that ONE variant's literal. Walked last, the DTO left\n * `consumableTokens.consumptionMode` planned with `BOUNDED_REUSE` alone, and a regeneration that\n * followed the plan deleted the words for `SINGLE_USE` and `EPHEMERAL_STATE` — values rows hold.\n */\n entry.isEnum = true;\n entry.enumValues = [...new Set([...(entry.enumValues ?? []), ...occurrenceValues])];\n // The DECORATOR wins over value matching: `.systemEnum('SubscriptionStatus')` names a\n // vocabulary that has no `SystemEnumName` member and could never be recognised by\n // values. Both answers feed one field so that suppression (`isSystemEnum`) and the\n // planned destination (`systemEnumName`) can never disagree about the same field — and\n // the function is shared with the frontend cascade, so neither can the renderer (#966).\n // Across occurrences the name survives only while every occurrence that declares one\n // declares the same; a narrowed DTO literal that declares nothing keeps the union's answer,\n // and two occurrences naming different vocabularies leave the field with per-field words,\n // as `synthesizeUnionDiscriminatorEnums` decides for disagreeing members.\n const declared = resolveDeclaredSystemEnumName(enumSchema, occurrenceValues);\n if (declared !== undefined) {\n if (entry.systemEnumName === undefined && !entry.systemEnumDisputed) entry.systemEnumName = declared;\n else if (entry.systemEnumName !== declared) {\n entry.systemEnumName = undefined;\n entry.systemEnumDisputed = true;\n }\n }\n entry.isSystemEnum = Boolean(entry.systemEnumName);\n }\n}\n\n/**\n * The values of an enum-bearing schema. A `z.enum` keeps the extraction this planner has always used\n * (with its fallbacks over Zod's enum def shapes); a literal or a union of enum-likes reads `getEnumValues`,\n * as the renderer does.\n */\nfunction extractEnumValues(enumSchema: z.ZodTypeAny): string[] {\n const unwrapped = unwrapSchema(enumSchema);\n if (getZodType(unwrapped) !== 'enum') return getEnumValues(enumSchema);\n\n const entriesFromDef = getZodDefProperty(unwrapped, 'entries');\n const valuesFromDef = getZodDefProperty(unwrapped, 'values');\n const schemaAny = unwrapped as { options?: unknown; enum?: unknown };\n const optionsFromSchema = schemaAny.options;\n const enumFromSchema = schemaAny.enum;\n\n let enumValues = getEnumValues(unwrapped);\n\n if (enumValues.length === 0) {\n if (Array.isArray(entriesFromDef)) {\n enumValues = entriesFromDef.filter((v): v is string => typeof v === 'string');\n } else if (Array.isArray(valuesFromDef)) {\n enumValues = valuesFromDef.filter((v): v is string => typeof v === 'string');\n } else if (Array.isArray(optionsFromSchema)) {\n enumValues = (optionsFromSchema as unknown[]).filter((v): v is string => typeof v === 'string');\n } else if (entriesFromDef && typeof entriesFromDef === 'object' && !Array.isArray(entriesFromDef)) {\n const enumObj = entriesFromDef as Record<string, unknown>;\n for (const key of Object.keys(enumObj)) {\n const value = enumObj[key];\n if (typeof value === 'string') {\n if (!Number.isNaN(Number(key))) continue;\n enumValues.push(value);\n } else if (typeof value === 'number') {\n enumValues.push(String(value));\n }\n }\n } else if (enumFromSchema && typeof enumFromSchema === 'object' && !Array.isArray(enumFromSchema)) {\n const enumObj = enumFromSchema as Record<string, unknown>;\n for (const key of Object.keys(enumObj)) {\n const value = enumObj[key];\n if (typeof value === 'string') {\n enumValues.push(value);\n } else if (typeof value === 'number') {\n const reverseKey = String(value);\n if ((enumObj as Record<string, unknown>)[reverseKey] !== key) {\n enumValues.push(String(value));\n }\n }\n }\n }\n }\n\n return enumValues;\n}\n\n/**\n * Recursively walk a Zod schema and populate the field info map.\n *\n * @param discriminatorEnums - set only when walking one member of a union: the union's discriminator enums\n * (`synthesizeUnionDiscriminatorEnums`), read in place of that member's own literal so the discriminator\n * path carries the vocabulary of EVERY member — and its declared `system_enums` name when they all agree —\n * exactly as the renderer's `collectResourceLabelFieldEntries` collects it (#1021).\n * @param insideUnresolvableUnion - `true` once the walk is inside a union `getUnionObjectMembers` does not\n * recognise (no key discriminates it). The renderer walks NOTHING below such a union, so no field in the\n * subtree is registered as an enum of any shape — literal, synthesized discriminator, array element, literal\n * union or plain `z.enum` — and none plans enum keys nothing reads. Fields are still registered, and still\n * plan their label keys (a pre-existing over-plan). Carried through object, array and intersection recursion.\n */\nexport function collectSchemaFields(\n schema: z.ZodTypeAny | undefined,\n basePath: string[],\n acc: SchemaFieldInfoMap,\n discriminatorEnums?: Readonly<Record<string, z.ZodTypeAny>>,\n insideUnresolvableUnion = false,\n): void {\n if (!schema) return;\n const unwrapped = unwrapSchema(schema);\n if (!unwrapped) return;\n\n const typeName = getZodType(unwrapped);\n if (!typeName) return;\n\n switch (typeName) {\n case 'object': {\n /*\n * A structured VALUE is a Zod object whose parts are not fields (#1959). `z_money()` is\n * `{ amount, currency, decimals }` and `z_address()` is `{ line1, …, coordinates }`, but the value's own\n * component draws and names those parts; the resource has one word for the whole value, its field label,\n * which the parent's `registerField` has already planned. The renderer's walk\n * (`collectResourceLabelFieldEntries`) stops here through the same `isFieldContainerSchema`, so every word\n * planned below this point was generated, translated and shipped with no reader — measured in Wonder CRM,\n * `fields.amount.amount`, `fields.amount.currency` and `fields.amount.decimals` for `deal.amount`.\n *\n * Gated here, on the object about to be walked, rather than at each of the four recursions that reach it,\n * so a structured value met as a field, an array item, a union member or an intersection side stops alike.\n * Read off the classifier rather than a list of value types, so a structured type added tomorrow is covered.\n */\n if (!isFieldContainerSchema(schema)) break;\n const shape = getZodObjectShape(unwrapped);\n for (const key of Object.keys(shape)) {\n const nextPath = [...basePath, key];\n const child = shape[key] as z.ZodTypeAny;\n registerField(nextPath, child, acc, discriminatorEnums?.[key], insideUnresolvableUnion);\n collectSchemaFields(child, nextPath, acc, undefined, insideUnresolvableUnion);\n }\n break;\n }\n case 'array': {\n const element = getZodDefSchemaProperty(unwrapped, 'element');\n if (element) collectSchemaFields(element, basePath, acc, undefined, insideUnresolvableUnion);\n break;\n }\n case 'union':\n case 'discriminatedUnion': {\n const unionMembers = getUnionObjectMembers(unwrapped);\n const unionDiscriminatorEnums = synthesizeUnionDiscriminatorEnums(unionMembers);\n const memberInsideUnresolvableUnion = insideUnresolvableUnion || unionMembers.length === 0;\n const options = getZodDefArrayProperty(unwrapped, 'options') || [];\n for (const opt of options) {\n if (opt && typeof opt === 'object' && hasZodInternals(opt)) {\n collectSchemaFields(opt as unknown as z.ZodTypeAny, basePath, acc, unionDiscriminatorEnums, memberInsideUnresolvableUnion);\n }\n }\n break;\n }\n case 'intersection': {\n const left = getZodDefSchemaProperty(unwrapped, 'left');\n const right = getZodDefSchemaProperty(unwrapped, 'right');\n if (left) collectSchemaFields(left, basePath, acc, undefined, insideUnresolvableUnion);\n if (right) collectSchemaFields(right, basePath, acc, undefined, insideUnresolvableUnion);\n break;\n }\n /*\n * No wrapper cases (`optional`/`nullable`/`default`/`effects`/`transform`/`refine`), deliberately: `unwrapSchema`\n * above peels optional, nullable, default, pipe, readonly and catch, and Zod 4 has no `effects`/`refine` type\n * (a refinement is a check on the same schema). The one survivor among the removed case labels is\n * `transform` (e.g. the `in` side of a `z.preprocess` pipe), whose def carries no inner schema — so the removed\n * case could only ever do nothing. `prefault`, `lazy` and `nonoptional` also survive `unwrapSchema`, but no case\n * here ever walked them. Measured 2026-09-14 over optional, nullable, nullish, default, transform, refine,\n * superRefine, preprocess, pipe, readonly, catch, prefault, lazy, brand and a chained wrapper.\n */\n default:\n break;\n }\n}\n\n/**\n * Drop `data.`-wrapped field paths that duplicate a top-level field.\n *\n * A LIST response DTO nests the resource under a multi-level\n * `{ data: { data: [ … ] } }` envelope, so the SAME field surfaces at\n * `data.title`, `data.data.title`, `data.data.data.title`, …. Every such depth\n * collapses onto the top-level field and is a duplicate of its label, so we\n * strip EVERY leading `data.` segment and drop the path when the collapsed form\n * matches a top-level (non-`data.`) field. The original implementation stripped\n * only ONE `data.` segment, leaving `data.data.*` and deeper as ~40 redundant\n * keys per list-DTO resource (e.g. `todos`).\n *\n * Non-resource wrapper sub-paths are intentionally PRESERVED because they\n * collapse to a non-top-level path: `data.pagination.*` → `pagination.*`, and a\n * populated relationship `data.data.organization.*` → `organization.*` (neither\n * is a top-level resource field). Pure; order-preserving (the caller sorts).\n */\nexport function dedupeDataWrappedFieldPaths(fieldPaths: Iterable<string>): string[] {\n const all = [...fieldPaths];\n const topLevelFields = new Set(all.filter((path) => !path.startsWith('data.')));\n return all.filter((path) => {\n if (!path.startsWith('data.')) return true;\n let collapsed = path;\n while (collapsed.startsWith('data.')) collapsed = collapsed.slice('data.'.length);\n return !topLevelFields.has(collapsed);\n });\n}\n\n/**\n * Walk a resource's full schema surface into a field-info map: `mainSchema`\n * plus every operation's request/response DTO. The response DTO IS the\n * `customResponseDto` for a custom-response op — the ONLY place ephemeral\n * fields (an API key's `plainKey`) live — so this is what surfaces them.\n * Shared by `extractResourceFieldKeys` and `buildEphemeralFieldKeyMeta` so the\n * two always see the identical field set (incl. ephemeral fields + their marker).\n */\nfunction buildResourceFieldInfoMap(resourceConfig: AnyResourceConfiguration): SchemaFieldInfoMap {\n const fieldInfoMap: SchemaFieldInfoMap = new Map();\n const mainSchema = resourceConfig.mainSchema as z.ZodTypeAny | undefined;\n collectSchemaFields(mainSchema, [], fieldInfoMap);\n\n for (const operation of resourceConfig.operations || []) {\n if (operation.requestDto) {\n collectSchemaFields(operation.requestDto as z.ZodTypeAny, [], fieldInfoMap);\n }\n if (operation.responseDto) {\n collectSchemaFields(operation.responseDto as z.ZodTypeAny, [], fieldInfoMap);\n }\n }\n\n return fieldInfoMap;\n}\n\n/**\n * Produce the full set of `RESOURCES.<type>.fields.<path>.<sub>` keys\n * for a single resource, given the per-field display/edit subkey\n * lists. Output is deterministic (paths sorted alphabetically) so the\n * lock fingerprint stays stable across runs.\n */\nexport function extractResourceFieldKeys(args: {\n resourceType: string;\n resourceConfig: AnyResourceConfiguration;\n displayDefs: string[];\n editDefs: string[];\n}): string[] {\n const { resourceType, resourceConfig, displayDefs, editDefs } = args;\n\n const fieldInfoMap = buildResourceFieldInfoMap(resourceConfig);\n const filteredFieldPaths = dedupeDataWrappedFieldPaths(fieldInfoMap.keys());\n\n const keys: string[] = [];\n for (const fieldPath of filteredFieldPaths.sort()) {\n const info = fieldInfoMap.get(fieldPath)!;\n const fieldPrefix = `${LabellingTypes.RESOURCES}.${resourceType}.fields.${fieldPath}`;\n\n /*\n * A field HIDDEN in a mode gets no words for that mode, because nothing can ever read them.\n *\n * `.isHidden()` is not a styling hint: `DisplayField` returns empty for `isHiddenForDisplay`\n * BEFORE any render, and says so — \"must never render in ANY display surface\" — covering the\n * authored `<DisplayField name=\"x\" />` path as well as the generated one. So a label planned for\n * such a field is text with no reachable reader, and an LLM is paid per unit to invent it.\n *\n * Measured 2026-09-18 (#1298), on the framework-injected retention pair alone: `impersonalizedAt`\n * is `.isHidden()` on every resource declaring a `retentionPolicy`, and across the two dogfood\n * applications it had collected ELEVEN different English labels — \"Impersonalized at\" 87 times,\n * \"Impersonalized\" 33, and, contradicting this repository's own `impersonaliz* ≠ anonymiz*`\n * distinction, \"Anonymized\" 5 more. Nobody had ever seen any of them.\n *\n * Gated PER MODE rather than per field, because the decorator is per mode: `.isHidden()` bare\n * hides both, while `.isHidden({ display: true })` hides one and leaves the other renderable and\n * therefore still owed its words. The enum VALUES need only one surface that can show them, so\n * they drop out only when the field is hidden in both.\n */\n const hiddenForDisplay = info.schema ? isHiddenForDisplay(info.schema) : false;\n const hiddenForEdit = info.schema ? isHiddenForEdit(info.schema) : false;\n\n if (!hiddenForDisplay) {\n for (const sub of displayDefs) {\n keys.push(`${fieldPrefix}.display.${sub}`);\n }\n }\n if (!hiddenForEdit) {\n for (const sub of editDefs) {\n keys.push(`${fieldPrefix}.edit.${sub}`);\n }\n }\n\n if (info.schema) {\n if (!hiddenForDisplay && hasTooltipForDisplay(info.schema)) keys.push(`${fieldPrefix}.display.tooltip`);\n if (!hiddenForEdit && hasTooltipForEdit(info.schema)) keys.push(`${fieldPrefix}.edit.tooltip`);\n // An ephemeral field always earns a display description — the \"copy it\n // now, shown once\" caption the reveal dialog renders — even without an\n // authored `.describe()`. (`info.schema` is always set for walked fields.)\n if (!hiddenForDisplay && (info.isEphemeral || hasDescriptionForDisplay(info.schema))) keys.push(`${fieldPrefix}.display.description`);\n if (!hiddenForEdit && hasDescriptionForEdit(info.schema)) keys.push(`${fieldPrefix}.edit.description`);\n }\n\n if (!(hiddenForDisplay && hiddenForEdit) && info.isEnum && info.enumValues && info.enumValues.length > 0 && !info.isSystemEnum) {\n for (const enumValue of info.enumValues) {\n keys.push(`${fieldPrefix}.enum.${enumValue}`);\n }\n }\n }\n\n return keys;\n}\n\n/**\n * Collect every system-enum vocabulary the application's own resources actually USE, as\n * `name → values`.\n *\n * ## Why this exists, and why it walks the resources rather than reading a registry\n *\n * `extractResourceFieldKeys` above SUPPRESSES the per-field\n * `<resource>.fields.<path>.enum.<value>` keys for any field whose `isSystemEnum` is true,\n * on the contract that the value is labelled once, centrally, under\n * `system_enums.<name>.<value>`. Nothing was enforcing the other half of that contract: the\n * planner emitted a hand-written list of nine names, so every OTHER decorated name was\n * suppressed here and planned nowhere — and `tResourceFieldEnumValue` then falls through to\n * step 3 of its cascade and renders the RAW WIRE VALUE. Measured on the Wonder Todos\n * generated tree on 2026-09-08: `organizationSubscriptions.status` had a field label and no\n * `enum` block, so a subscription badge read `past_due`, a product type read `one_time`, and\n * a pricing model read `per_unit`.\n *\n * Deriving from the SCHEMA WALK — rather than from the frontend's `registerCommonEnum`\n * registry — is what makes the invariant structural instead of hand-kept:\n *\n * - it reads the exact same `buildResourceFieldInfoMap` walk that decides suppression, so\n * \"suppressed here ⇒ planned there\" cannot come apart for any field;\n * - it is total over the application. A resource that decorates a new vocabulary tomorrow\n * is planned with no edit anywhere;\n * - the registry could not have answered it anyway. Registration happened at FRONTEND startup\n * (`registerBuiltinCommonEnums()`) in a React bundle the companion's Node process never loads,\n * carried no VALUES, and missed two decorated vocabularies (`PlatformAccessGrantStatus`,\n * `PlatformAccessGrantAutoApprovalReason`). Since #966 registration wires no words at all and\n * nothing reads the registered-name set: the DECLARATION is the only answer, read by\n * `resolveDeclaredSystemEnumName` here, in the frontend cascade, and in the frontend label\n * introspection.\n *\n * Vocabularies registered for RENDERING but never `.systemEnum()`-decorated (the\n * user-preference badges, the two role vocabularies) are correctly absent: nothing suppresses\n * their per-field keys, so they are already labelled — per field for the preferences, and in\n * the `roles.*` tree for the roles. Planning them here would duplicate an authored label, and\n * would flatten deliberate per-resource wording (`theme.AUTO` is \"Automatic\" on\n * `userPreferences` and \"System default\" on `userSelfPreferences`).\n *\n * Values are de-duplicated across resources and returned in first-seen order per name; the\n * caller sorts the names, so the emitted key list is deterministic and the lock fingerprint\n * stays stable across runs.\n */\nexport function collectSystemEnumVocabularies(\n resourceConfigs: Iterable<AnyResourceConfiguration>,\n): Map<string, Set<string>> {\n const vocabularies = new Map<string, Set<string>>();\n for (const resourceConfig of resourceConfigs) {\n for (const info of buildResourceFieldInfoMap(resourceConfig).values()) {\n if (!info.systemEnumName || !info.enumValues || info.enumValues.length === 0) continue;\n let values = vocabularies.get(info.systemEnumName);\n if (!values) {\n values = new Set<string>();\n vocabularies.set(info.systemEnumName, values);\n }\n for (const value of info.enumValues) values.add(value);\n }\n }\n return vocabularies;\n}\n\n/**\n * Build the full `system_enums.<EnumName>.<value>` key list for the labelling plan.\n *\n * ## The sources, and why each is needed\n *\n * 1. **`SYSTEM_ENUM_VALUES`** — every member of the framework's declared `SystemEnumName`\n * vocabulary, unconditionally. These are framework-owned and an application may reach one\n * through a shared schema the resource walk does not necessarily see (a `z_duration()`\n * field on a config object, say). Keyed as a `Record<SystemEnumName, …>` at its\n * declaration, so an eleventh member is a compile error there rather than an omission\n * here.\n * 2. **`collectSystemEnumVocabularies`** — every vocabulary the application's own resource\n * schemas declare with `.systemEnum()`, off the same walk that decides suppression. This\n * is the half no fixed list can have: `SubscriptionStatus` has no `SystemEnumName`\n * member, and an application that decorates a new vocabulary tomorrow is planned with no\n * edit anywhere.\n * 3. **`applicationVocabularies`** — vocabularies whose NAME the framework owns and whose VALUES\n * the application declares rather than a schema: in its configuration\n * ({@link collectApplicationConfigSystemEnumVocabularies}), such as the reviewers' reason codes\n * (#1921), or in its gates' `pauseStates`, which the planner adds from the backend introspection\n * (#1864). No resource schema can carry those values, because they are the application's declarations.\n * 4. **`ENGINE_OPEN_VOCABULARY_VALUES`** — the engine's OPEN vocabularies (#1791): a STRING field names one\n * with `.systemEnum(EngineOpenVocabulary.X)` because the schema cannot enumerate its values (an audit\n * event's `eventType`), so the values come from the one list the engine keeps of them. Planned for every\n * application, like source 1.\n *\n * ## Why it lives HERE rather than in the planner\n *\n * Beside `extractResourceFieldKeys`, which is the function it has to agree with. The defect\n * this replaces was exactly a disagreement between the two: suppression lived here, the\n * central plan lived in the planner as nine hand-written `push(...)` calls, and nothing\n * connected them — so ten decorated vocabularies were suppressed here and planned nowhere,\n * and `tResourceFieldEnumValue` rendered their raw wire values. One module now owns both\n * halves, and one test can assert the invariant between them.\n *\n * Names are emitted in `SystemEnumName` declaration order first, then discovered ones sorted\n * alphabetically, so the key list is deterministic and the labelling lock's fingerprint is\n * stable across runs. A name in both sources contributes one group — the union of its values.\n */\nexport function buildSystemEnumLabelKeys(\n resourceConfigs: Iterable<AnyResourceConfiguration>,\n applicationVocabularies: ReadonlyMap<string, readonly string[]> = new Map(),\n): string[] {\n const vocabularies = new Map<string, Set<string>>();\n for (const [enumName, values] of Object.entries(SYSTEM_ENUM_VALUES)) {\n vocabularies.set(enumName, new Set(values));\n }\n const discoveredVocabularies = collectSystemEnumVocabularies(resourceConfigs);\n // Source 4: the engine's OPEN vocabularies, unconditionally — a string field names one with `.systemEnum()`, and\n // its values are the engine's to list, not the field's (#1791).\n for (const [enumName, values] of Object.entries(ENGINE_OPEN_VOCABULARY_VALUES)) {\n const merged = discoveredVocabularies.get(enumName) ?? new Set<string>();\n for (const value of values) merged.add(value);\n discoveredVocabularies.set(enumName, merged);\n }\n for (const [enumName, values] of applicationVocabularies) {\n const merged = discoveredVocabularies.get(enumName) ?? new Set<string>();\n for (const value of values) merged.add(value);\n discoveredVocabularies.set(enumName, merged);\n }\n // A vocabulary that keeps its words in a section of its own (a feature, a limit, #1851) is planned there — by the\n // billing unit, total over the declared features and limits — and never a second time under `system_enums`.\n for (const enumName of [...discoveredVocabularies.keys()]) {\n if (isSectionedVocabulary(enumName)) discoveredVocabularies.delete(enumName);\n }\n for (const [enumName, values] of discoveredVocabularies) {\n const existing = vocabularies.get(enumName);\n if (existing) {\n for (const value of values) existing.add(value);\n } else {\n vocabularies.set(enumName, values);\n }\n }\n\n const declaredOrder = Object.keys(SYSTEM_ENUM_VALUES);\n const declared = new Set(declaredOrder);\n const discovered = [...vocabularies.keys()].filter((name) => !declared.has(name)).sort();\n\n const keys: string[] = [];\n for (const enumName of [...declaredOrder, ...discovered]) {\n for (const value of vocabularies.get(enumName)!) {\n keys.push(`${LabellingTypes.SYSTEM_ENUMS}.${enumName}.${value}`);\n }\n }\n return keys;\n}\n\n/**\n * The named vocabularies whose VALUES the application declares in its configuration — source 3 of\n * {@link buildSystemEnumLabelKeys}, one entry per configuration-declared `ApplicationConfigVocabulary` member (the\n * gates' pause states, #1864, are declared in backend modules; the planner adds them from the backend introspection):\n *\n * - the reason codes an expert may give for correcting an agent's work (`agentWorkReview.reasonCodes`, #1921),\n * worded under `system_enums.AgentWorkReasonCode.<code>` and read by the reviewer's approval card;\n * - the organization types (`organizationTypes`, keyed by type, #1851), worded under\n * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown;\n * - the application's OWN audit event types (`auditTrail.applicationEventTypes`, keyed by event type, #2687), worded\n * under `system_enums.CoreAuditableEventType.<eventType>` — the ENGINE's open vocabulary, not one of the\n * application's own, because the audit row's `eventType` field names that one vocabulary for every event type and\n * the audit views read it. A second name for the same field would leave the views unable to tell which to read.\n *\n * A value the application declares is planned the moment it is declared and one it removes stops being planned —\n * no hand-kept list of the application's values exists anywhere.\n *\n * Rejected: wording the codes inside the approval component's own labels. A component label key is fixed at\n * authoring time, and these values are the application's; the component would need one key per code it cannot know.\n */\nexport function collectApplicationConfigSystemEnumVocabularies(\n appConfig: ApplicationConfigVocabularySources | undefined,\n): Map<string, readonly string[]> {\n const vocabularies = new Map<string, readonly string[]>();\n const reasonCodes = appConfig?.agentWorkReview?.reasonCodes ?? [];\n if (reasonCodes.length > 0) vocabularies.set(ApplicationConfigVocabulary.AGENT_WORK_REASON_CODE, [...reasonCodes]);\n const organizationTypes = Object.keys(appConfig?.organizationTypes ?? {});\n if (organizationTypes.length > 0) vocabularies.set(ApplicationConfigVocabulary.ORGANIZATION_TYPE, organizationTypes);\n const auditEventTypes = Object.keys(appConfig?.auditTrail?.applicationEventTypes ?? {});\n if (auditEventTypes.length > 0) vocabularies.set(EngineOpenVocabulary.CORE_AUDITABLE_EVENT_TYPE, auditEventTypes);\n return vocabularies;\n}\n\n/** The parts of an application's configuration that declare the values of an `ApplicationConfigVocabulary`. */\nexport interface ApplicationConfigVocabularySources {\n readonly agentWorkReview?: { readonly reasonCodes?: readonly string[] };\n readonly organizationTypes?: Readonly<Record<string, unknown>>;\n readonly auditTrail?: { readonly applicationEventTypes?: Readonly<Record<string, unknown>> };\n}\n\n/**\n * Framework-general purpose for an ephemeral field's user-facing LABEL. The\n * runtime field name (`plainKey`) is developer-oriented; the LLM, given this\n * purpose plus the resource context (e.g. `organizationApiKeys`), produces the\n * credential's end-user name (\"API key\"). Applies to ANY `.isEphemeral()` field.\n */\nconst EPHEMERAL_FIELD_LABEL_PURPOSE =\n 'Caption for a one-time secret credential this resource issues — for example an API key, access token, or recovery code — revealed once at creation for the user to copy. Name it as the end user knows the credential; never the raw field name, and never the word \"plain\".';\n\n/**\n * Framework-general purpose for an ephemeral field's DESCRIPTION — the per-field\n * \"copy it now, shown once\" caption the reveal dialog renders under the value.\n * Derived purely from the `.isEphemeral()` marker (closes the LABELLING-2 gap).\n */\nconst EPHEMERAL_FIELD_DESCRIPTION_PURPOSE =\n 'Tells the user to copy and store this secret value immediately because it is shown only this once and can never be retrieved or displayed again.';\n\n/**\n * Build framework-general `LabelKeyMeta` for a resource's ephemeral fields.\n *\n * Ephemeral fields (`.isEphemeral()`) live only in a per-operation\n * `customResponseDto`, so they never reach the resource spec and\n * `projectResourceKeyMeta` (which reads `spec.fields`) leaves them to heuristic\n * field-name humanization (\"Plain key\"). Straight from the marker, this projects\n * a user-facing label purpose (\"API key\") + a \"shown once\" description purpose —\n * so every ephemeral field is labelled well with zero per-field authoring. The\n * planner merges this OVER the spec keyMeta (ephemeral wins). `{}` when none.\n */\nexport function buildEphemeralFieldKeyMeta(args: {\n resourceType: string;\n resourceConfig: AnyResourceConfiguration;\n}): Record<string, LabelKeyMeta> {\n const { resourceType, resourceConfig } = args;\n const fieldInfoMap = buildResourceFieldInfoMap(resourceConfig);\n const ephemeralPaths = dedupeDataWrappedFieldPaths(\n [...fieldInfoMap.keys()].filter((path) => fieldInfoMap.get(path)!.isEphemeral),\n );\n\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const fieldPath of ephemeralPaths) {\n const prefix = `${LabellingTypes.RESOURCES}.${resourceType}.fields.${fieldPath}`;\n // display + edit share the user-facing caption (the field is not editable,\n // but the edit.label key is still emitted, so keep the two consistent).\n const labelMeta: LabelKeyMeta = { kind: LabelKind.LABEL, purpose: EPHEMERAL_FIELD_LABEL_PURPOSE };\n keyMeta[`${prefix}.display.label`] = labelMeta;\n keyMeta[`${prefix}.edit.label`] = labelMeta;\n keyMeta[`${prefix}.display.description`] = { kind: LabelKind.DESCRIPTION, purpose: EPHEMERAL_FIELD_DESCRIPTION_PURPOSE };\n }\n return keyMeta;\n}\n"]}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Where a labelling run stages its generated files: `<saasRoot>/.wildo-saas/state/label-staging/`.
3
+ *
4
+ * Under `.wildo-saas/state`, which every application gitignores (the skeleton's `gitignore` and both
5
+ * dogfood applications), and which nothing watches: the backend's `tsc-watch` watches its own package,
6
+ * and the introspection observer never descends `.wildo-saas`.
7
+ */
8
+ export declare const LABEL_STAGING_RELATIVE_ROOT: string;
9
+ /**
10
+ * Stages a labelling run's generated files on disk and moves them into the application in ONE burst
11
+ * when the run ends (#2213).
12
+ *
13
+ * ## Why
14
+ *
15
+ * Label files live inside the application's backend source (`<backend>/src/engine/i18n/**`, and each
16
+ * email template's `labels.<locale>.ts`). Every file written there wakes two watchers that each do a
17
+ * whole application's worth of work: the backend's `tsc-watch` recompiles and RESTARTS the server, and
18
+ * the companion's introspection watcher sees the emitted `dist` move and recompiles every derivation
19
+ * that can read the backend (#2245). Measured on `app-creation-test-004` (2026-10-01) over 2h20 of one
20
+ * `i18n-labels` step: 215 backend boots, 41 recompile passes, 300 introspection subprocesses.
21
+ *
22
+ * Staged files reach the application only at the end of the run, all at once, so a whole run costs one
23
+ * restart and one recompile pass. They are renamed into place, which is atomic per file and lands every
24
+ * file inside one watcher settle window.
25
+ *
26
+ * ## Why on disk rather than in memory
27
+ *
28
+ * The first version (efb3a30a8d) held files in memory and wrote a burst every five minutes, because a
29
+ * companion that stopped mid-run would lose everything held. On disk, nothing is lost: a run that dies
30
+ * leaves its staging directory behind, and the next run adopts it ({@link adoptAbandonedLabelStaging})
31
+ * before doing any work. So the run can wait until its end, which is what makes it one restart.
32
+ *
33
+ * ## Why recording a unit before its file lands is safe
34
+ *
35
+ * The run records a unit in the lock (`fresh`, with the SHA of what it produced) before the file
36
+ * reaches its place. Every freshness check compares that SHA with the file ON DISK in its place, so a
37
+ * staged file that never lands reads as drifted and is redone; and translate refuses to translate from
38
+ * a primary file that does not match the labellize record, so a run overlapping another's staging can
39
+ * never record a wrong fresh.
40
+ *
41
+ * A file that cannot be moved into place is reported back to the run, which turns that unit's result
42
+ * into a FAILED row. It stays staged, and a later run adopts it.
43
+ *
44
+ * ## What is NOT staged
45
+ *
46
+ * A target outside the application root is written at once (staging mirrors paths relative to the
47
+ * root, so it has nowhere to put it). The labellize adoption prune, which reads its own file back, and
48
+ * the framework-base seeders, which already write as one burst before the unit pool, write directly.
49
+ */
50
+ export declare class StagedLabelFileWriter {
51
+ private readonly saasRoot;
52
+ private readonly runDirectory;
53
+ /** Staged files by their target path. */
54
+ private readonly staged;
55
+ private closed;
56
+ private constructor();
57
+ /** Open a run's staging directory and mark it as owned by this process. */
58
+ static open(saasRoot: string): Promise<StagedLabelFileWriter>;
59
+ /**
60
+ * Stage `content` for `targetPath`. Throws when it cannot be written, so the caller records the unit
61
+ * FAILED before anything is recorded in the lock.
62
+ */
63
+ stage(targetPath: string, content: string): Promise<void>;
64
+ /**
65
+ * Move every staged file into place, as one burst, and return every file that could not be moved, by
66
+ * target path. Idempotent. The run calls it before it reports, however the run ended.
67
+ */
68
+ close(): Promise<ReadonlyMap<string, string>>;
69
+ }
70
+ /**
71
+ * Move into place the files a dead or finished run left staged (#2213).
72
+ *
73
+ * A run directory is adopted when its marker says the run closed, or its process is gone; a live run's
74
+ * directory is never touched. A staged file is moved only if the file in its place is not NEWER — a
75
+ * file written in place since (a person's edit, another run) is not overwritten, and the staged one is
76
+ * discarded. Its lock record then disagrees with the disk, so the unit is redone. Never throws: a
77
+ * staging root it cannot read adopts nothing.
78
+ */
79
+ export declare function adoptAbandonedLabelStaging(saasRoot: string): Promise<{
80
+ readonly adopted: readonly string[];
81
+ readonly discarded: readonly string[];
82
+ }>;
83
+ /** A run's results with every unit whose file could not be put in place turned into a FAILED row. */
84
+ export declare function withUnwrittenFilesFailed<T extends {
85
+ filePath: string;
86
+ status: string;
87
+ error?: string;
88
+ }>(results: readonly T[], failures: ReadonlyMap<string, string>, failedStatus: T['status']): T[];
89
+ //# sourceMappingURL=staged-label-file-writer.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staged-label-file-writer.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/staged-label-file-writer.utils.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,QAAqD,CAAC;AAY9F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBAAa,qBAAqB;IAM9B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAN/B,yCAAyC;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO;IAKP,2EAA2E;WACvD,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAO1E;;;OAGG;IACU,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYtE;;;OAGG;IACU,KAAK,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAY3D;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,SAAS,EAA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