@wildo-ai/dev-companion 1.1.7 → 1.1.8

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 (955) hide show
  1. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  2. package/dist/esm/__tests__/asset-noop.js.map +1 -1
  3. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
  5. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  6. package/dist/esm/__tests__/internal-test-view.js.map +1 -1
  7. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  9. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  10. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  11. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  15. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  16. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  17. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
  18. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
  19. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  21. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  22. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  23. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  24. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  25. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  27. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  29. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  31. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  33. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  34. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  35. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  37. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  38. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  39. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  41. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  42. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  43. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  45. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  46. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  47. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  49. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
  50. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
  51. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  53. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  54. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  55. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  56. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  57. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  58. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  59. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  60. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  61. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
  62. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
  63. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
  65. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  66. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  67. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  69. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
  71. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  72. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  73. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  74. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  75. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  76. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  77. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  78. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  79. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  80. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  81. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  82. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  83. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  84. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  85. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  86. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  87. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  88. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  89. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  90. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  91. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  92. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  93. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  94. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  95. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  96. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  97. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  99. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  107. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  108. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  109. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  110. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  111. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  112. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  113. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  114. package/dist/esm/core/context/companion-context.js.map +1 -1
  115. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  116. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  117. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  118. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  119. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  120. package/dist/esm/core/inject/models/container.js.map +1 -1
  121. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  122. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  123. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  124. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  125. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  126. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  127. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
  128. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
  129. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  130. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  131. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  132. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  133. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  135. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  137. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  138. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  139. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  141. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  142. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  143. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  145. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  146. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  147. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  149. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  150. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  151. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  152. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  153. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  154. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  155. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  156. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  157. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  158. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  159. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  160. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  161. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  162. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  163. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  164. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  165. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  166. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  167. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  169. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  171. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  172. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  173. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  174. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  175. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  176. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  177. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  178. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  179. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  180. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  181. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  182. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  183. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  185. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  186. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  187. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  188. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  189. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  190. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  192. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  193. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  194. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  195. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  198. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  199. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  200. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  201. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  203. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  204. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  205. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  206. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  207. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  208. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  209. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  210. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  211. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
  212. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
  213. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  214. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  215. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  216. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  217. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  218. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  219. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
  220. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
  221. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  222. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  223. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  224. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  225. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  226. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  227. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  228. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  229. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  230. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  231. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  232. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  233. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  234. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  235. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  236. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  237. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  238. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  239. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  240. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  241. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  242. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  243. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  244. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  245. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  246. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  247. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  248. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  249. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  250. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  251. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  252. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  253. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  254. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  255. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  256. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  257. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  258. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  259. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  260. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  261. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  262. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  263. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  264. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  265. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  266. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  267. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  268. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  269. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  270. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  271. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  272. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  273. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  274. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  275. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  276. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  277. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  278. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  279. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  280. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  281. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  282. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  283. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  284. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  285. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  286. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  287. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  288. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  289. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  290. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  291. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  292. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  293. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  294. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  295. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  296. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  297. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  298. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  299. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  300. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  301. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  302. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  303. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  304. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  305. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  306. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  307. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  308. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  309. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  310. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  311. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  312. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  313. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  314. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  315. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  316. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  317. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  318. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  319. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  320. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  321. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  322. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  323. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  324. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  325. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  326. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  327. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  328. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  329. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  330. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  331. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  332. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  333. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  334. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  335. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  337. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  339. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  341. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  342. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  343. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  345. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  347. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  349. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  351. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  353. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  355. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  357. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  359. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  361. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  363. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  365. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  366. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  367. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  368. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  369. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  370. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  371. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  372. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  373. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  374. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  375. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  376. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  377. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  378. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  379. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  380. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  381. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  382. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  383. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  384. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  385. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  386. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  387. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  388. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  389. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  390. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  391. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  392. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  393. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  394. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  395. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
  396. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
  397. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  398. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  399. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  400. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  401. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  402. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  403. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  404. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  405. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  406. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  407. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  408. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  409. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  410. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  411. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  412. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  413. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  414. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  415. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  416. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  417. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  419. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  420. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  421. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  422. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  423. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  424. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  425. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  426. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  427. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  428. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  429. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  430. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  431. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  432. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  433. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  434. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  435. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  436. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  437. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  438. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  439. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
  440. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
  441. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  442. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  443. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  444. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  445. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  446. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  447. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  448. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  449. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  450. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  451. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  452. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  453. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  454. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  455. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  456. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  457. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  458. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  459. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  460. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  461. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  462. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  463. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  464. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  465. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  466. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  467. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  468. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  469. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  470. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  471. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  472. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  473. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  474. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  475. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  476. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  477. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  478. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  479. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  480. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  481. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  482. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  483. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  484. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  485. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  486. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  487. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  488. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  489. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  490. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  491. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  492. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  493. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  494. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  495. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  496. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  497. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  498. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  499. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  500. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  501. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  502. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  503. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  504. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  505. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  506. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  507. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  508. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  509. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  510. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  511. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  512. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  513. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  514. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  515. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  516. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  517. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  518. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  519. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  520. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  521. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  522. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  523. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  524. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  525. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  526. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  527. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  528. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  529. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  530. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  531. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  532. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  534. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  535. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  536. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  537. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  539. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  541. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  543. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  545. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  547. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  549. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  566. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  568. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  570. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  571. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  573. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
  587. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  598. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  600. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  647. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  648. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  649. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  650. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  651. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  652. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  653. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  654. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  655. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  656. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  657. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  658. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  659. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  660. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  661. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  663. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  664. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  665. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  667. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  668. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  669. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  670. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  671. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  673. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  674. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  675. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  677. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  678. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  679. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  681. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  682. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  683. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  684. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  685. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  686. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  687. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  688. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  689. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  690. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  691. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  692. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  693. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  694. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  695. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  696. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  697. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  698. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  699. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  700. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  701. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  702. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  703. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  704. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  705. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  706. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  707. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  708. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  709. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  711. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  712. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  713. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  714. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  715. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  716. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  717. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  718. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  719. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  720. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  721. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  722. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  723. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  724. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  725. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  726. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  727. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  728. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  729. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  730. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  731. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  732. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  733. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  734. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  735. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  736. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  737. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
  738. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
  739. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  740. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  741. package/dist/esm/i18n/index.d.ts.map +1 -1
  742. package/dist/esm/i18n/index.js.map +1 -1
  743. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  744. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  745. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  746. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  747. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  748. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  749. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
  751. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  753. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  755. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  756. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  757. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  758. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  759. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  760. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  761. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  763. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  764. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  765. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  766. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  767. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  769. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  770. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  771. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  772. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  773. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  774. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  775. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  776. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  777. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  778. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  779. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  780. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  781. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  782. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  783. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  784. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  785. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  786. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  787. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  788. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  789. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  790. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  791. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  792. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  793. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  794. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  795. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  796. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  797. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  798. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  799. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  800. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  801. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  802. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  803. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  804. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  805. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  806. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  807. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
  808. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
  809. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  810. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  811. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
  812. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
  813. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  814. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  815. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  816. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  817. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  818. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  819. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  820. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  821. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  822. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  823. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  824. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  825. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  826. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  827. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  828. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  829. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  830. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  831. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  832. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  833. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
  834. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
  835. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  836. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  837. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  838. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  839. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
  840. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
  841. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  842. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  843. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  844. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  845. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  846. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  847. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  848. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  849. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
  850. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
  851. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
  852. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
  853. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  854. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  855. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  856. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  857. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  858. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  859. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
  860. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
  861. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  862. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  863. package/dist/esm/index.d.ts.map +1 -1
  864. package/dist/esm/index.js.map +1 -1
  865. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  866. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  867. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  868. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  869. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  870. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  871. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
  872. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
  873. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  874. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  875. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  876. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  877. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  878. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  879. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  880. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  881. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  882. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  883. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
  884. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
  885. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  886. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  887. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  888. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  889. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  890. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  891. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  892. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  893. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  894. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  895. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  896. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  897. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  898. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  899. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  900. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  901. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
  902. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
  903. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  904. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  905. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  906. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  907. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  908. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  909. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  910. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  911. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  912. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  913. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  914. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  915. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  916. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  917. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  918. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  919. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  920. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  921. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  922. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  923. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  924. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  925. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
  926. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
  927. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
  928. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
  929. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  930. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  931. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  932. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  933. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  934. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  935. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  936. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  937. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  938. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  939. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  940. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  941. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  942. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  943. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  944. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  945. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  946. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  947. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  948. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  949. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  950. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  951. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  952. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  953. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  954. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  955. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"translate-orchestrator.companion.service.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/services/translate-orchestrator.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EACL,kBAAkB,EAKlB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,SAAS,GAGV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAqB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpG,OAAO,EAAE,2CAA2C,E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["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { z } from 'zod';\nimport {\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n type AppConfigurationService,\n type LoggerService,\n type ErrorBuilderBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n describeStructuredGenerationFailure,\n readStructuredGenerationFailure,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n type AgentTraceContext,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport { AvailableLanguage, LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { LabellingPlannerCompanionService, chunkKeys } from './labelling-planner.companion.service';\nimport { EmailTemplateLabellingUnitsCompanionService } from './email-template-labelling-units.companion.service';\nimport { getCompanionConfiguredPrimaryLanguage } from '../../core/config/primary-language.companion.utils';\nimport { WildoSaasLockCompanionService } from '../../core/lock/wildo-saas-lock.companion.service';\nimport type { I18nLockLocaleEntry, I18nLockUnitEntry } from '../../core/lock/wildo-saas-lock.models';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport {\n resolvePerUnitFilePath,\n readPerUnitLabels,\n writePerUnitLabels,\n} from '../utils/per-unit-file.utils';\nimport { rejectPrimaryLocaleTarget } from '../utils/translate-locale-contract.utils';\nimport { incompletePlanRefusal } from '../utils/incomplete-plan-refusal.utils';\nimport {\n assembleTranslatedChunkResult,\n extractLabelPlaceholderTokens,\n type PlaceholderDrift,\n type TranslatedChunkAssembly,\n} from '../utils/label-placeholder-drift.utils';\nimport {\n I18nUnitRunStatus,\n LabellingUnitCategory,\n type LabellingUnit,\n type LabellingUnitChunk,\n type LabellingUnitSpecContext,\n} from '../models/labelling-unit.models';\nimport {\n EMAIL_TEMPLATE_LABELLING_BUCKET,\n emailTemplateLabellingUnitId,\n isEmailTemplateLabellingUnitId,\n type EmailTemplateLabellingUnit,\n} from '../models/email-template-labelling-unit.models';\nimport { completeStructuredChunkKeys, labelValueCarriesControlCharacter } from '../utils/structured-chunk-completion.utils';\nimport { judgeEmailTranslation } from '../utils/email-template-translation.utils';\nimport {\n flattenEmailLabelsTree,\n formatTranslatedEmailLabelsFile,\n mapEmailLabelsTreeLeaves,\n parseEmailLabelsTreeSource,\n type ParsedEmailLabelsTreeFile,\n} from '../../email/utils/email-labels-tree.utils';\nimport { labelsFilePath } from '../../email/utils/email-template-fs-discovery.utils';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport {\n CompanionTraceabilityLevel,\n type CompanionExecutionSessionContext,\n type CompanionTraceStepContext,\n} from '../../core/traceability/companion-traceability.models';\n\nexport interface TranslateOptions {\n targetLocales: AvailableLanguage[];\n forceRetranslate?: boolean;\n /**\n * Unit ids to limit the run to. May mix both lanes: an i18n unit id (`resource:todos`) and an email\n * template unit id (`email_template:system.welcome_email`). A lane none of whose ids is named is not\n * planned at all, so a filtered run does not pay for introspecting the other lane.\n */\n unitIdFilter?: string[];\n}\n\n/** Which of the translate pipeline's lanes a run covers. */\ninterface TranslateLaneSelection {\n /** The generated per-unit i18n files (`planAllUnits()`). */\n readonly i18nUnits: boolean;\n /** Every email template's `labels.<locale>.ts` (#1908). */\n readonly emailTemplates: boolean;\n}\n\n/**\n * What the shared translation core needs to know about a unit: who it is, for the prompt, the traces and\n * the log lines. Narrower than `LabellingUnit` on purpose — an email unit has no `filePathHint`, and the\n * core never needed one.\n */\ntype TranslatableUnitIdentity = Pick<LabellingUnit, 'id' | 'category' | 'displayLabel'>;\n\n/** Mutable tally shared by both lanes of one run. */\ninterface TranslateRunTally {\n details: TranslateUnitResult[];\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n}\n\nexport interface TranslateUnitResult {\n unitId: string;\n targetLocale: AvailableLanguage;\n filePath: string;\n status: I18nUnitRunStatus;\n error?: string;\n}\n\nexport interface TranslateRunResult {\n primaryLocale: AvailableLanguage;\n totalRoundtrips: number;\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n details: TranslateUnitResult[];\n}\n\n/**\n * Per-unit, per-locale translator.\n *\n * For each unit × target locale:\n * - Read primary file content and compute its SHA.\n * - If lock entry says (inputSha, primarySha) match the locale's\n * last successful state and the locale output file SHA still\n * matches => fresh, skip.\n * - Else: rebuild the same chunk schemas, ship the source labels +\n * the SAME spec context the labellize step used + the primary\n * values to the agent, write the per-unit translated file, and\n * update the lock with the new locale entry.\n *\n * \"Same context + primary value\" is the user-mandated invariant: the\n * translator must not see less context than the labellizer.\n */\n@injectable()\nexport class TranslateOrchestratorCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(SAAS_SERVICE_TYPES.AppConfigService)\n private readonly appConfigService: AppConfigurationService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.LabellingPlannerService) private readonly planner: LabellingPlannerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.WildoSaasLockService) private readonly lockService: WildoSaasLockCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService) private readonly traceability: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService)\n private readonly emailTemplateUnits: EmailTemplateLabellingUnitsCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('TranslateOrchestrator');\n }\n\n /**\n * Translate every planned unit into `targetLocales` — the generated i18n units AND, since #1908, every\n * email template's words. `unitIdFilter` may name units of either lane (see {@link TranslateOptions}).\n */\n public async translate(\n options: TranslateOptions,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const filterIds = options.unitIdFilter ?? null;\n const lanes: TranslateLaneSelection = filterIds === null\n ? { i18nUnits: true, emailTemplates: true }\n : {\n i18nUnits: filterIds.some((id) => !isEmailTemplateLabellingUnitId(id)),\n emailTemplates: filterIds.some((id) => isEmailTemplateLabellingUnitId(id)),\n };\n return await this.runTranslate(options, lanes, providedSession);\n }\n\n /**\n * Translate ONLY email templates — every one, or the `templateRefs` named. The door the email\n * generation step and `wildo generate email translate` go through, so they run the very lane\n * `wildo generate translate` runs, with its lock, rather than a second translator of the same files.\n */\n public async translateEmailTemplates(\n options: { targetLocales: AvailableLanguage[]; forceRetranslate?: boolean; templateRefs?: readonly string[] },\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const { targetLocales, forceRetranslate, templateRefs } = options;\n return await this.runTranslate(\n {\n targetLocales,\n ...(forceRetranslate !== undefined ? { forceRetranslate } : {}),\n ...(templateRefs && templateRefs.length > 0\n ? { unitIdFilter: templateRefs.map((templateRef) => emailTemplateLabellingUnitId(templateRef)) }\n : {}),\n },\n { i18nUnits: false, emailTemplates: true },\n providedSession,\n );\n }\n\n private async runTranslate(\n options: TranslateOptions,\n lanes: TranslateLaneSelection,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = [...new Set(options.targetLocales ?? [])];\n if (targetLocales.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'targetLocales is required and must be a non-empty array' },\n });\n }\n rejectPrimaryLocaleTarget(targetLocales, primaryLocale, this.errorBuilder);\n\n const filter = options.unitIdFilter ? new Set(options.unitIdFilter) : null;\n\n // Trace under the CALLER's session when provided (controller's per-request\n // `POST /labelling/translate` session) so artifacts land in the session the\n // user inspects; fall back to a self-owned `internal` session for\n // direct/CLI/test callers. Gated no-op at the default NONE level (translated\n // output byte-identical). At DEBUG_VERBOSE it captures, per unit×locale, the\n // source strings + replayed spec context + the exact prompt + the LLM\n // response + token usage.\n const traceSession = providedSession ?? this.traceability.createInternalSession({\n label: 'translate-run',\n metadata: {\n run: 'translate',\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n unitIdFilter: options.unitIdFilter ?? null,\n lanes,\n },\n });\n\n const tally: TranslateRunTally = { details: [], updated: 0, fresh: 0, failed: 0, skipped: 0 };\n let unitCount = 0;\n\n if (lanes.i18nUnits) {\n const i18nRoot = this.resolveI18nRoot();\n const allUnits = await this.planner.planAllUnits();\n const units = filter ? allUnits.filter((u) => filter.has(u.id)) : allUnits;\n unitCount += units.length;\n\n for (const unit of units) {\n /*\n * Translation prunes every target-locale key the plan does not hold and records the locale\n * `fresh`, so a unit planned from incomplete inputs would lose its words in every locale and\n * never be revisited. Refused here exactly as labellize refuses it — see `incompletePlanRefusal`.\n */\n const refusal = incompletePlanRefusal(unit);\n if (refusal) {\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: refusal });\n }\n this.logger.warn('Translate unit refused — planned from incomplete inputs', {\n unitId: unit.id,\n reasons: unit.plannedFromIncompleteInputs,\n });\n continue;\n }\n const sourceFilePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: primaryLocale });\n let sourceFlat: Record<string, string>;\n try {\n sourceFlat = await readPerUnitLabels(sourceFilePath);\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Failed to read source: ${message}`,\n });\n }\n continue;\n }\n\n if (Object.keys(sourceFlat).length === 0) {\n for (const targetLocale of targetLocales) {\n tally.skipped++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale }),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n continue;\n }\n\n // Spec context is loaded ONCE per unit and reused across locales.\n const specContext = await unit.loadSpecContext();\n\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateUnitForLocale({\n unit,\n sourceLocale: primaryLocale,\n targetLocale,\n sourceFlat,\n specContext,\n i18nRoot,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n });\n tally.details.push(result);\n this.countResult(tally, result.status);\n } catch (err: unknown) {\n tally.failed++;\n const message = describeCaughtError(err);\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: message,\n });\n }\n }\n }\n }\n\n if (lanes.emailTemplates) {\n unitCount += await this.runEmailTemplateLane({\n filter,\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n tally,\n });\n }\n\n const { details, updated, fresh, failed, skipped } = tally;\n await this.traceability.traceEvent({\n session: traceSession,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-run-complete',\n summary: `Translated ${unitCount} unit(s) → [${targetLocales.join(', ')}]: ${updated} updated, ${fresh} fresh, ${skipped} skipped, ${failed} failed`,\n payload: { primaryLocale, targetLocales, totalRoundtrips: details.length, updated, fresh, skipped, failed },\n });\n if (traceSession.traceabilityLevel !== CompanionTraceabilityLevel.NONE) {\n this.logger.info('Translate trace session written', {\n sessionId: traceSession.sessionId,\n sessionDir: traceSession.sessionDirPath,\n });\n }\n\n return {\n primaryLocale,\n totalRoundtrips: details.length,\n updated,\n fresh,\n failed,\n skipped,\n details,\n };\n }\n\n private countResult(tally: TranslateRunTally, status: I18nUnitRunStatus): void {\n if (status === I18nUnitRunStatus.FRESH) tally.fresh++;\n else if (status === I18nUnitRunStatus.UPDATED) tally.updated++;\n else if (status === I18nUnitRunStatus.SKIPPED) tally.skipped++;\n else tally.failed++;\n }\n\n // ─── Email lane (#1908) ────────────────────────────────────────────────────\n\n /**\n * Translate every planned email template into `targetLocales`, adding each roundtrip to `tally`.\n * Returns the number of email units considered.\n *\n * A planning failure (the backend introspection that locates email roots could not answer) is one\n * FAILED roundtrip per locale under the lane's bucket name rather than a thrown run: the i18n lane of\n * the same run may already have written its files, and the caller must still be told both outcomes.\n */\n private async runEmailTemplateLane(args: {\n filter: ReadonlySet<string> | null;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n tally: TranslateRunTally;\n }): Promise<number> {\n const { filter, primaryLocale, targetLocales, forceRetranslate, traceSession, tally } = args;\n\n let units: EmailTemplateLabellingUnit[];\n try {\n units = (await this.emailTemplateUnits.planEmailTemplateUnits()).units;\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n this.logger.error('Email template translation could not be planned', { error: message });\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({\n unitId: EMAIL_TEMPLATE_LABELLING_BUCKET,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Could not locate the application's email templates: ${message}`,\n });\n }\n return 0;\n }\n if (filter) units = units.filter((unit) => filter.has(unit.id));\n\n for (const unit of units) {\n const sourcePath = labelsFilePath(unit.templateDirectory, primaryLocale);\n let source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n try {\n const content = await fs.readFile(sourcePath, 'utf-8');\n const parsed = parseEmailLabelsTreeSource(content);\n source = { content, parsed, words: flattenEmailLabelsTree(parsed.tree) };\n } catch (err: unknown) {\n const message = (err as NodeJS.ErrnoException)?.code === 'ENOENT'\n ? `The template has no primary-locale words to translate: ${sourcePath} does not exist`\n : `Failed to read ${sourcePath}: ${describeCaughtError(err)}`;\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: message });\n }\n continue;\n }\n\n if (Object.keys(source.words).length === 0) {\n for (const targetLocale of targetLocales) {\n tally.skipped++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: labelsFilePath(unit.templateDirectory, targetLocale),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n continue;\n }\n\n const specContext = await unit.loadSpecContext();\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateEmailTemplateUnitForLocale({\n unit,\n source,\n sourceLocale: primaryLocale,\n targetLocale,\n specContext,\n forceRetranslate,\n traceSession,\n });\n tally.details.push(result);\n this.countResult(tally, result.status);\n } catch (err: unknown) {\n tally.failed++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: describeCaughtError(err),\n });\n }\n }\n }\n return units.length;\n }\n\n /**\n * One email template × one locale.\n *\n * ## Freshness\n *\n * The lock row is `units[\"email_template:<ref>\"]`. Both hashes are of the AUTHORED primary file:\n * `inputSha` and `primarySha` are that file's SHA, because for an authored source the file IS the\n * input. A locale is fresh when the recorded source SHA and the locale file's SHA both still match\n * the disk — an unchanged English file is not re-translated, and a hand edit to either side is not\n * silently honoured.\n *\n * When the English file changed, every OTHER locale of the unit is marked `stale` in the same write,\n * which is what labellize does to a generated unit whose primary changed. Without it, translating\n * `fr` would record the new source SHA and leave `de` reading as fresh against words it never saw.\n *\n * ## Why the whole email is re-translated when its English changes\n *\n * The i18n lane translates only the keys whose primary words changed (`staleKeys`, #1409), because\n * the labeller knows which ones did. Nothing records the previous English of an authored email, so\n * the only per-key alternative is storing a hash per key in the lock — rejected: an email is ONE\n * message of a few dozen words read top to bottom, and re-translating it whole keeps its register\n * consistent, where patching one sentence into an older translation can leave the message reading\n * as two voices.\n *\n * ## Written whole, or not at all\n *\n * See `judgeEmailTranslation`: a missing key or a placeholder that did not survive fails the\n * roundtrip and leaves any previous file untouched, because the file's existence is what the backend\n * counts as \"this email covers the locale\".\n */\n private async translateEmailTemplateUnitForLocale(args: {\n unit: EmailTemplateLabellingUnit;\n source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n }): Promise<TranslateUnitResult> {\n const { unit, source, sourceLocale, targetLocale, specContext, forceRetranslate, traceSession } = args;\n const targetPath = labelsFilePath(unit.templateDirectory, targetLocale);\n const sourceSha = this.lockService.hashString(source.content);\n\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (!forceRetranslate && existing?.primarySha === sourceSha && localeEntry?.status === 'fresh' && localeEntry.outputSha) {\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n if (onDiskTargetSha === localeEntry.outputSha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Email locale lock says fresh but the locale file drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n });\n }\n\n // The context replayed into the prompt, recorded like the i18n lane's so a reviewer can confirm the\n // translator saw the email's purpose and not only its words.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n const keys = Object.keys(source.words);\n const assemblies: TranslatedChunkAssembly[] = [];\n for (const chunk of chunkKeys(unit.id, keys)) {\n const chunkSource: Record<string, string> = {};\n for (const key of chunk.keys) chunkSource[key] = source.words[key]!;\n assemblies.push(await this.translateChunkKeys({\n unit,\n chunk,\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSource,\n traceSession,\n step,\n }));\n }\n\n const verdict = judgeEmailTranslation({ keys, sourceWords: source.words, assemblies });\n if (!verdict.accepted) {\n this.logger.error('Email translation refused — nothing written for this locale', {\n unitId: unit.id,\n targetLocale,\n reason: verdict.reason,\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${verdict.reason}`,\n };\n }\n const corrupt = Object.entries(verdict.words).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${corrupt.length} translated value(s) carry a control character (${corrupt.join(', ')})`,\n };\n }\n\n const content = formatTranslatedEmailLabelsFile({\n localeCode: targetLocale,\n localeDisplayName: LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale,\n sourceFileName: path.basename(labelsFilePath(unit.templateDirectory, sourceLocale)),\n tree: mapEmailLabelsTreeLeaves(source.parsed.tree, verdict.words),\n labelsTypeName: source.parsed.labelsTypeName,\n usesAsConst: source.parsed.usesAsConst,\n });\n await writeFileAtomic(targetPath, content);\n\n const sourceChanged = existing?.primarySha !== undefined && existing.primarySha !== sourceSha;\n const locales: Record<string, I18nLockLocaleEntry> = {};\n for (const [locale, entry] of Object.entries(existing?.locales ?? {})) {\n locales[locale] = sourceChanged ? { ...entry, status: 'stale' } : entry;\n }\n locales[targetLocale] = {\n status: 'fresh',\n outputSha: this.lockService.hashString(content),\n lastTranslatedAt: new Date().toISOString(),\n };\n const entry: I18nLockUnitEntry = {\n category: unit.category,\n displayLabel: unit.displayLabel,\n inputSha: sourceSha,\n primarySha: sourceSha,\n locales,\n };\n await this.lockService.upsertI18nUnit(\n unit.id,\n entry,\n // Only a missing section is created here, with the configured primary locale; an existing one\n // keeps the primary locale labellize recorded (translation never rewrites that identity).\n section ? undefined : sourceLocale,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateUnitForLocale(args: {\n unit: LabellingUnit;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n sourceFlat: Record<string, string>;\n specContext: LabellingUnitSpecContext | undefined;\n i18nRoot: string;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n }): Promise<TranslateUnitResult> {\n const { unit, sourceLocale, targetLocale, sourceFlat, specContext, i18nRoot, forceRetranslate, traceSession } = args;\n\n const targetPath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale });\n const sourcePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: sourceLocale });\n\n // One trace step per unit×locale; the source strings + prompt + response\n // land under it (materialized only when a gated write actually fires).\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (\n !forceRetranslate\n && existing?.primarySha\n && localeEntry?.status === 'fresh'\n && localeEntry.outputSha\n ) {\n // Verify both the on-disk source AND target file hashes still\n // match what's recorded. A hand-edit / branch switch / `git\n // checkout` of either file out-of-band must NOT be silently\n // honored as \"fresh\".\n const onDiskSourceSha = await this.computeFileShaIfExists(sourcePath);\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n const sourceMatches = onDiskSourceSha === existing.primarySha;\n const targetMatches = onDiskTargetSha === localeEntry.outputSha;\n if (sourceMatches && targetMatches) {\n this.logDebug('Locale fresh — skipping agent call', {\n unitId: unit.id,\n targetLocale,\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Locale lock says fresh but on-disk content drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n sourceMatches,\n targetMatches,\n });\n }\n\n // We refuse to translate a unit that was never labellized. The\n // primary file's hash space (formatted TS file content, set by\n // labellize) is NOT interchangeable with the source-flat JSON hash\n // we'd otherwise have to fabricate here, and lying about it\n // permanently invalidates the labellize cache for this unit.\n if (!existing?.inputSha || !existing?.primarySha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-skipped',\n summary: `Unit ${unit.id} → ${targetLocale} skipped — no labellize state`,\n payload: { unitId: unit.id, targetLocale },\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.SKIPPED,\n error: 'Unit has no recorded labellize state; run labellize first',\n };\n }\n\n const existingTargetFlat = await readPerUnitLabels(targetPath);\n const targetFlat: Record<string, string> = { ...existingTargetFlat };\n\n // The spec context replayed into the translation prompt (the same one the\n // labellize step used) — recorded so a reviewer can confirm the translator\n // saw no less context than the labellizer (the user-mandated invariant).\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n hints: specContext?.hints ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n /*\n * Which keys to translate (#1409). When the labeller recorded exactly which primary words changed,\n * only those are sent, plus any key this locale has no word for yet; every other translation is\n * kept. Re-translating an unchanged word only re-words it — measured on the security-settings unit,\n * where adding six English keys re-worded the whole French file. Absent `staleKeys` means the\n * change could not be named (a forced run, a hand edit, an older lock), so everything is sent.\n */\n const onlyKeys = !forceRetranslate && localeEntry?.status === 'stale' && Array.isArray(localeEntry.staleKeys)\n ? new Set(localeEntry.staleKeys)\n : undefined;\n const needsTranslation = (key: string): boolean =>\n onlyKeys === undefined\n || onlyKeys.has(key)\n || typeof existingTargetFlat[key] !== 'string'\n || existingTargetFlat[key]!.trim() === '';\n\n for (const chunk of unit.chunks) {\n const chunkSourceEntries: Record<string, string> = {};\n for (const key of chunk.keys) {\n if (!needsTranslation(key)) continue;\n const v = sourceFlat[key];\n if (typeof v === 'string') chunkSourceEntries[key] = v;\n }\n if (Object.keys(chunkSourceEntries).length === 0) continue;\n\n const chunkResult = await this.translateChunk({\n unit,\n // Narrowed to the keys being sent: the chunk's key list is what the model is asked to return,\n // and asking for a key it was given no source for invites an invented word.\n chunk: { ...chunk, keys: Object.keys(chunkSourceEntries) },\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSourceEntries,\n traceSession,\n step,\n });\n Object.assign(targetFlat, chunkResult);\n }\n\n const plannedSet = new Set(unit.chunks.flatMap((chunk) => chunk.keys));\n for (const key of Object.keys(targetFlat)) {\n if (!plannedSet.has(key)) delete targetFlat[key];\n }\n\n const localeDisplayName = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n const writtenContent = await writePerUnitLabels({\n filePath: targetPath,\n localeCode: targetLocale,\n localeDisplayName,\n isPrimaryLocale: false,\n flatEntries: targetFlat,\n });\n\n const outputSha = this.lockService.hashString(writtenContent);\n const updatedLocales = { ...(existing?.locales ?? {}) };\n updatedLocales[targetLocale] = {\n status: 'fresh',\n outputSha,\n lastTranslatedAt: new Date().toISOString(),\n };\n\n // `existing` is guaranteed non-null by the early-return guard above;\n // we never fabricate `inputSha` / `primarySha` here because they\n // belong to the labellize hash space, not translate's.\n const updatedEntry: I18nLockUnitEntry = {\n category: existing.category,\n displayLabel: existing.displayLabel,\n inputSha: existing.inputSha,\n primarySha: existing.primarySha,\n lastLabellizedAt: existing.lastLabellizedAt,\n locales: updatedLocales,\n };\n\n await this.lockService.upsertI18nUnit(\n unit.id,\n updatedEntry,\n undefined,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateChunk(args: {\n unit: LabellingUnit;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<Record<string, string>> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n // The i18n lane keeps the source-word fallback the assembly already applied (see\n // `assembleTranslatedChunkResult`); only the email lane refuses on a gap.\n return (await this.translateChunkKeys({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step,\n })).values;\n }\n\n /**\n * Build the translation prompt for `requestedKeys`.\n *\n * `requestedKeys` is the whole chunk on the first pass and only the outstanding\n * keys on a repair pass, so the source block, the variable-key contract and the\n * omission correction all narrow together — a three-key repair request must not\n * re-send eighty-seven strings it is not being asked to translate.\n */\n private buildTranslatePrompt(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n requestedKeys: readonly string[];\n omittedKeys: readonly string[];\n /**\n * Placeholder drift measured on the previous response, rendered as an\n * explicit per-key correction. Mirrors the labellize prompt's retry block:\n * naming the exact tokens to add/remove is what makes the repair pass\n * reliable, rather than restating the general contract and hoping.\n */\n priorDrift?: readonly PlaceholderDrift[];\n }): string {\n const { unit, chunk, sourceLocale, targetLocale, specContext, requestedKeys, omittedKeys, priorDrift } = args;\n const sourceEntries = Object.fromEntries(\n requestedKeys.filter((key) => args.sourceEntries[key] !== undefined).map((key) => [key, args.sourceEntries[key]!]),\n );\n\n const sourceLanguage = LANGUAGE_INFO_MAP[sourceLocale]?.name ?? sourceLocale;\n const targetLanguage = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n\n // Scan the SOURCE values for runtime variable keys (the `{token}`s). Done by\n // scanning — not chunk.keyParams — so it's accurate to exactly what is being\n // translated and works for EVERY bucket, not just keyParam-threaded\n // components. Listing them explicitly + \"these are variables, not words\" is\n // the strongest guard against the model translating `{limit}` → `{limite}`.\n //\n // The scan goes through the shared extractor so the set stated in the prompt\n // and the set the answer is VALIDATED against are produced by one grammar —\n // a prompt that promised different tokens from the ones the check enforces\n // would fail every repair pass for a reason nobody could read.\n const varsByKey: Array<{ key: string; tokens: string[] }> = [];\n for (const [key, value] of Object.entries(sourceEntries)) {\n const tokens = extractLabelPlaceholderTokens(value);\n if (tokens.length > 0) varsByKey.push({ key, tokens });\n }\n\n const lines: string[] = [\n unit.category === LabellingUnitCategory.EMAIL_TEMPLATE\n // An email is read as a message, not scanned as interface chrome: say so, or the model\n // applies UI brevity rules to a paragraph a recipient reads top to bottom.\n ? `Translate the words of one transactional email from ${sourceLanguage} to ${targetLanguage} for a professional SaaS application (${unit.displayLabel}). Keep the email's tone and completeness; subject lines and buttons stay as short as the source's.`\n : `Translate these UI labels from ${sourceLanguage} to ${targetLanguage} for a professional SaaS web app (${unit.category} \"${unit.displayLabel}\").`,\n ];\n\n // Same context the labellizer saw (terminology + tone), replayed for\n // consistency. No structured-hints dump — the description carries it.\n if (specContext?.description) {\n lines.push('', '# Context (for terminology & tone)', specContext.description.trim());\n }\n\n // Variable-key contract — the placeholders are NOT words to translate.\n if (varsByKey.length > 0) {\n lines.push(\n '',\n '# Variable keys — DO NOT translate',\n 'The single-brace tokens below are runtime VARIABLE KEYS: the app substitutes live values for them at render time. They are NOT words. Copy each one into your translation EXACTLY as written (identical spelling, identical { } braces) — never translate, localize, rename, reorder away, add, or drop one. Each translated value MUST contain exactly the same variable keys as its source — no more, no fewer.',\n 'Variable keys by source string:',\n );\n const keyMeta = chunk.keyMeta ?? {};\n for (const { key, tokens } of varsByKey) {\n const meanings = keyMeta[key]?.paramMeanings;\n const rendered = tokens.map((t) => {\n const m = meanings?.[t];\n return m ? `{${t}} (${m})` : `{${t}}`;\n }).join(' ');\n lines.push(` ${key} → ${rendered}`);\n }\n }\n\n const isEmail = unit.category === LabellingUnitCategory.EMAIL_TEMPLATE;\n lines.push(\n '',\n '# Rules',\n `- Use natural ${targetLanguage} ${isEmail ? 'email' : 'UI'} conventions: do NOT copy English Title Case — apply the casing ${targetLanguage} uses (most languages, including French, use sentence case: capitalize only the first word and proper nouns).`,\n `- Apply ${targetLanguage} typography (e.g. French uses a narrow no-break space before : ; ! ? and « guillemets » for quotes).`,\n // The UI brevity rule would tell the model to cut an email paragraph down to a label; an email is\n // read top to bottom, so it keeps its sentences and only its short parts stay short (#1908).\n isEmail\n ? \"- Keep the email's completeness and tone: translate every sentence of a paragraph, add nothing the source does not say, and keep subject lines, headings, buttons and field names as short as the source's.\"\n : \"- Match the source's brevity: translate as the SHORTEST natural UI copy — never lengthen, never add words the source omits, never re-introduce filler. A 2-word source label becomes a 2-word target label, not a sentence.\",\n '- Never introduce internal/framework jargon the source avoids (e.g. resource/ressource, entity/entité, record/enregistrement): mirror the register + wording the source uses.',\n `- Preserve the SOURCE's register: if the source reads as operator/admin-console or developer/technical copy (not casual consumer wording), keep that same register in ${targetLanguage} — don't casualize it, and don't make end-user copy more technical.`,\n `- A label that names a relationship to another thing stays a relationship NAME in ${targetLanguage} (e.g. \"Assignee\" → \"Responsable\" / \"Assigné\", \"Owner\" → \"Propriétaire\") — never an identifier, never reintroduce \"ID\" / \"Id\" or a technical reference term.`,\n '- Keep terminology consistent across every key; aria phrases stay self-contained and natural to read aloud.',\n );\n\n lines.push(\n '',\n '# Source (translate the values)',\n JSON.stringify(sourceEntries, null, 2),\n '',\n 'Return a translated value for every key. Do not omit any field.',\n );\n\n // Omission correction — the model silently dropped these keys from its\n // previous response. They are the only keys in the source block above.\n if (omittedKeys.length > 0) {\n lines.push(\n '',\n `# Correction — your previous response left out ${omittedKeys.length} key(s). They are the ONLY keys above. Return every one of them.`,\n );\n }\n\n // Placeholder-drift correction — the model DID answer these keys and got the\n // variable keys wrong. Distinct from the omission block above on purpose: a\n // \"you left this out\" instruction against a key that was answered reads as\n // contradicting the model's own transcript and is the weakest possible\n // correction. Name the exact tokens instead.\n const relevantDrift = (priorDrift ?? []).filter((drift) => requestedKeys.includes(drift.key));\n if (relevantDrift.length > 0) {\n lines.push('', '# Correction — your previous translation used the wrong variable keys. Fix EXACTLY these keys:');\n for (const drift of relevantDrift) {\n const expected = drift.expected.length ? drift.expected.map((token) => `{${token}}`).join(' ') : 'no variable keys at all';\n const fixes = [`use ${expected}`];\n if (drift.unexpected.length > 0) fixes.push(`remove ${drift.unexpected.map((token) => `{${token}}`).join(' ')}`);\n if (drift.missing.length > 0) fixes.push(`add ${drift.missing.map((token) => `{${token}}`).join(' ')}`);\n lines.push(` ${drift.key}: ${fixes.join('; ')}`);\n }\n }\n\n return lines.join('\\n');\n }\n\n /**\n * Run one physical translation call for `requestedKeys` and return the raw\n * parsed object. Filtering and fallback belong to the caller.\n */\n private async invokeTranslateChunkAgent(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n targetLocale: AvailableLanguage;\n requestedKeys: readonly string[];\n prompt: string;\n traceContext: AgentTraceContext | undefined;\n }): Promise<Record<string, unknown>> {\n const { unit, chunk, targetLocale, requestedKeys, prompt, traceContext } = args;\n const schema = chunk.buildOutputSchema(requestedKeys);\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema,\n z.ZodSchema<Record<string, string | undefined>>\n > = {\n agentRef: 'labelling.translation.agent',\n initiator: {},\n invocationContext: [],\n input: { prompt, schema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const parsed = (response.output as { object?: Record<string, unknown> })?.object;\n if (!parsed || typeof parsed !== 'object') {\n // The engine now says WHY there is no object; carry it into the message an operator\n // actually sees. Without this the reason existed only in the companion's own log\n // (the preceding `GENERATE_STRUCTURED` line), so the CLI summary — the surface a\n // human reads — reported a bare \"invalid output\" for a truncated completion, a\n // refusal, and a schema the model half-filled, alike. `validationIssues` names the\n // exact paths that failed and is the single most useful half.\n const failure = readStructuredGenerationFailure(response.executionContext);\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.SERVICE_RESOURCE_VALIDATION_FAILED,\n context: {\n message: `Invalid translation output for unit ${unit.id} chunk ${chunk.chunkId} -> ${targetLocale}`\n + (failure ? ` — ${describeStructuredGenerationFailure(failure)}` : ''),\n ...(failure ? { structuredGenerationFailure: failure } : {}),\n },\n });\n }\n return parsed;\n }\n\n /**\n * Translate one chunk into `targetLocale`, re-requesting any key the model\n * omits. A non-strict provider can silently drop leaves from a large flat\n * object, and the response schema now tolerates that (see\n * `LabellingUnitChunk.buildOutputSchema`) — so the gap is repaired here\n * instead of failing the whole unit.\n */\n private async translateChunkKeys(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<TranslatedChunkAssembly> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n\n /**\n * One physical translate call. Factored out because it is now driven from\n * TWO loops — the omission-repair loop and the placeholder-repair round —\n * and a second hand-written copy of the prompt/trace wiring is exactly how\n * the two would come to send different prompts for the same contract.\n */\n const invokeTranslatePass = async (pass: {\n requestedKeys: readonly string[];\n omittedByPreviousPass: readonly string[];\n priorDrift?: readonly PlaceholderDrift[];\n /** Trace label suffix identifying which loop and which pass this call is. */\n labelSuffix: string;\n /** Flat pass counter carried into the trace attributes. */\n passIndex: number;\n }): Promise<Record<string, unknown>> => {\n const prompt = this.buildTranslatePrompt({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries,\n requestedKeys: pass.requestedKeys,\n omittedKeys: pass.omittedByPreviousPass,\n priorDrift: pass.priorDrift,\n });\n // Correlate this chunk×locale×pass so the engine AgentCallTraceSink writes\n // the prompt + output (+usage/latency) into THIS unit's step. The caller\n // keeps only its DOMAIN artifact — the translated labels + source strings.\n const traceContext: AgentTraceContext | undefined = traceSession && step\n ? {\n sessionRef: traceSession.sessionId,\n stepRef: step.stepId,\n label: `translate.chunk-${chunk.chunkId}.${targetLocale}${pass.labelSuffix}`,\n attributes: {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: pass.requestedKeys.length,\n pass: pass.passIndex,\n },\n }\n : undefined;\n return await this.invokeTranslateChunkAgent({\n unit, chunk, targetLocale, requestedKeys: pass.requestedKeys, prompt, traceContext,\n });\n };\n\n const completion = await completeStructuredChunkKeys({\n keys: chunk.keys,\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n labelSuffix: pass === 1 ? '' : `.repair-${pass - 1}`,\n passIndex: pass,\n }),\n });\n\n if (completion.refusedKeys.length > 0) {\n // A corrupt answer, not an incomplete one (#1109): the value carried a control character and\n // was re-requested. Named separately from omissions, because a provider that mangles escapes\n // is a different failure from one that drops leaves, and only this line says which happened.\n this.logger.warn('Translation values carried control characters — refused and re-requested', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n refusedKeys: completion.refusedKeys,\n });\n }\n if (completion.missingKeys.length > 0) {\n // Repair budget spent. These keys fall back to the SOURCE-locale string, so\n // the file stays complete but shows untranslated text — name them, or the\n // only evidence is a reader noticing English in a French UI.\n this.logger.error('Translation keys still missing after repair passes — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n missingKeys: completion.missingKeys,\n });\n } else if (completion.passes > 1) {\n this.logger.warn('Structured translation response omitted keys — recovered by follow-up call(s)', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n keyCount: chunk.keys.length,\n });\n }\n\n // Assemble, enforcing the placeholder contract the prompt states. Until this\n // check existed, a key the model DID return with a mangled variable key —\n // `{limite}` for `{limit}`, or the token dropped entirely — was written\n // straight to the locale file with no signal of any kind. (The OMISSION case\n // was already reported at error level below; drift on a returned key was the\n // genuinely silent one.)\n let assembly = assembleTranslatedChunkResult({ keys: chunk.keys, sourceEntries, translatedValues: completion.values });\n\n // One bounded repair round over just the drifted keys, mirroring the\n // labellize orchestrator's drift retry. Scoped to the offenders rather than\n // re-translating the whole chunk: a three-key request naming the exact\n // tokens to fix is both cheaper and more reliable than re-rolling ninety\n // strings, and every clean translation in this chunk is already good.\n if (assembly.rejectedDrifts.length > 0) {\n const priorDrift = assembly.rejectedDrifts;\n this.logDebug('Translation placeholder drift detected — re-requesting the offending keys', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n offenders: priorDrift.map((drift) => drift.key),\n });\n const repair = await completeStructuredChunkKeys({\n keys: priorDrift.map((drift) => drift.key),\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n priorDrift,\n labelSuffix: `.placeholder-repair${pass === 1 ? '' : `.repair-${pass - 1}`}`,\n passIndex: completion.passes + pass,\n }),\n });\n // Re-assemble from the MERGED values: a key the repair round answered\n // cleanly is adopted, a key it answered badly is rejected again, and a key\n // it omitted keeps its original (still-drifted, still-rejected) value. All\n // three land correctly because the assembler re-checks everything.\n assembly = assembleTranslatedChunkResult({\n keys: chunk.keys,\n sourceEntries,\n translatedValues: { ...completion.values, ...repair.values },\n });\n }\n\n if (assembly.rejectedDrifts.length > 0) {\n // Repair spent and the variable keys still do not match the source. These\n // keys fall back to the SOURCE-locale string — untranslated, but with\n // working placeholders — rather than shipping text that renders `{limite}`\n // literally to a user and drops the value it was meant to carry. Name\n // them, exactly as the missing-key path does: otherwise the only evidence\n // is a reader noticing English in a French UI.\n this.logger.error('Translated placeholders still drifted after the repair round — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n drift: assembly.rejectedDrifts,\n });\n }\n\n const result = assembly.values;\n\n // Caller-owned domain artifact: the translated labels + the source strings\n // for this chunk×locale (the engine sink owns the raw prompt/output/usage\n // record). `translate-chunk` stays a domain event; usage now lives only in\n // the engine sink's agent-call-success event for this step.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: `chunk-${chunk.chunkId}.${targetLocale}.labels.json`,\n content: {\n object: result,\n sourceStrings: sourceEntries,\n // The drift that SURVIVED the repair round, so a reviewer reading the\n // artifact can tell a source-string fallback caused by a mangled\n // placeholder from one caused by a key the model never returned.\n drift: assembly.rejectedDrifts,\n },\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-chunk',\n summary: `Chunk ${chunk.chunkId} → ${targetLocale}: ${chunk.keys.length} key(s), ${assembly.rejectedDrifts.length} placeholder drift`,\n payload: {\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: chunk.keys.length,\n driftKeys: assembly.rejectedDrifts.map((drift) => drift.key),\n },\n });\n\n return assembly;\n }\n\n private async computeFileShaIfExists(filePath: string): Promise<string | undefined> {\n try {\n const content = await fs.readFile(filePath, 'utf-8');\n return this.lockService.hashString(content);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return undefined;\n throw err;\n }\n }\n\n private resolveI18nRoot(): string {\n const backendService = Object.values(this.companionContext.backendServices)[0];\n if (!backendService) {\n throw this.errorBuilder.buildFromStandardError(\n new Error('No backend service configured for per-unit i18n output'),\n undefined,\n {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'TranslateOrchestrator.resolveI18nRoot' },\n },\n );\n }\n return path.resolve(this.companionContext.saasRoot, backendService.path, 'src/engine/i18n');\n }\n}\n"]}
1
+ {"version":3,"file":"translate-orchestrator.companion.service.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/services/translate-orchestrator.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EACL,kBAAkB,EAKlB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,SAAS,GAGV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAqB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpG,OAAO,EAAE,2CAA2C,EAAE,MAAM,oDAAoD,CAAC;AACjH,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAC;AAC3G,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAElG,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EACL,s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ACpB,MAAM,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAC5C,IAAI,KAAK,CAAC,wDAAwD,CAAC,EACnE,SAAS,EACT;gBACE,sBAAsB,EAAE,2BAA2B,CAAC,QAAQ;gBAC5D,OAAO,EAAE,EAAE,SAAS,EAAE,uCAAuC,EAAE;aAChE,CACF,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAC9F,CAAC;CACF,CAAA;AA/lCY,qCAAqC;IADjD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAC9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAC/C,WAAA,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IAE3C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,uBAAuB,CAAC,CAAA;IACvD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;IACpD,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;IACnD,WAAA,MAAM,CAAC,uBAAuB,CAAC,kCAAkC,CAAC,CAAA;qFAHgB,gCAAgC;QAC/B,6BAA6B;QAC7B,4BAA4B;QAE3E,2CAA2C;GAdvE,qCAAqC,CA+lCjD","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { z } from 'zod';\nimport {\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n type AppConfigurationService,\n type LoggerService,\n type ErrorBuilderBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n describeStructuredGenerationFailure,\n readStructuredGenerationFailure,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n type AgentTraceContext,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport { AvailableLanguage, LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { LabellingPlannerCompanionService, chunkKeys } from './labelling-planner.companion.service';\nimport { EmailTemplateLabellingUnitsCompanionService } from './email-template-labelling-units.companion.service';\nimport { getCompanionConfiguredPrimaryLanguage } from '../../core/config/primary-language.companion.utils';\nimport { WildoSaasLockCompanionService } from '../../core/lock/wildo-saas-lock.companion.service';\nimport type { I18nLockLocaleEntry, I18nLockUnitEntry } from '../../core/lock/wildo-saas-lock.models';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport {\n resolvePerUnitFilePath,\n readPerUnitLabels,\n writePerUnitLabels,\n} from '../utils/per-unit-file.utils';\nimport { rejectPrimaryLocaleTarget } from '../utils/translate-locale-contract.utils';\nimport { incompletePlanRefusal } from '../utils/incomplete-plan-refusal.utils';\nimport {\n assembleTranslatedChunkResult,\n extractLabelPlaceholderTokens,\n type PlaceholderDrift,\n type TranslatedChunkAssembly,\n} from '../utils/label-placeholder-drift.utils';\nimport {\n I18nUnitRunStatus,\n LabellingUnitCategory,\n type LabellingUnit,\n type LabellingUnitChunk,\n type LabellingUnitSpecContext,\n} from '../models/labelling-unit.models';\nimport {\n EMAIL_TEMPLATE_LABELLING_BUCKET,\n emailTemplateLabellingUnitId,\n isEmailTemplateLabellingUnitId,\n type EmailTemplateLabellingUnit,\n} from '../models/email-template-labelling-unit.models';\nimport { completeStructuredChunkKeys, labelValueCarriesControlCharacter } from '../utils/structured-chunk-completion.utils';\nimport { judgeEmailTranslation } from '../utils/email-template-translation.utils';\nimport {\n flattenEmailLabelsTree,\n formatTranslatedEmailLabelsFile,\n mapEmailLabelsTreeLeaves,\n parseEmailLabelsTreeSource,\n type ParsedEmailLabelsTreeFile,\n} from '../../email/utils/email-labels-tree.utils';\nimport { labelsFilePath } from '../../email/utils/email-template-fs-discovery.utils';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport {\n CompanionTraceabilityLevel,\n type CompanionExecutionSessionContext,\n type CompanionTraceStepContext,\n} from '../../core/traceability/companion-traceability.models';\n\nexport interface TranslateOptions {\n targetLocales: AvailableLanguage[];\n forceRetranslate?: boolean;\n /**\n * Unit ids to limit the run to. May mix both lanes: an i18n unit id (`resource:todos`) and an email\n * template unit id (`email_template:system.welcome_email`). A lane none of whose ids is named is not\n * planned at all, so a filtered run does not pay for introspecting the other lane.\n */\n unitIdFilter?: string[];\n}\n\n/** Which of the translate pipeline's lanes a run covers. */\ninterface TranslateLaneSelection {\n /** The generated per-unit i18n files (`planAllUnits()`). */\n readonly i18nUnits: boolean;\n /** Every email template's `labels.<locale>.ts` (#1908). */\n readonly emailTemplates: boolean;\n}\n\n/**\n * What the shared translation core needs to know about a unit: who it is, for the prompt, the traces and\n * the log lines. Narrower than `LabellingUnit` on purpose — an email unit has no `filePathHint`, and the\n * core never needed one.\n */\ntype TranslatableUnitIdentity = Pick<LabellingUnit, 'id' | 'category' | 'displayLabel'>;\n\n/** Mutable tally shared by both lanes of one run. */\ninterface TranslateRunTally {\n details: TranslateUnitResult[];\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n}\n\nexport interface TranslateUnitResult {\n unitId: string;\n targetLocale: AvailableLanguage;\n filePath: string;\n status: I18nUnitRunStatus;\n error?: string;\n}\n\nexport interface TranslateRunResult {\n primaryLocale: AvailableLanguage;\n totalRoundtrips: number;\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n details: TranslateUnitResult[];\n}\n\n/**\n * Per-unit, per-locale translator.\n *\n * For each unit × target locale:\n * - Read primary file content and compute its SHA.\n * - If lock entry says (inputSha, primarySha) match the locale's\n * last successful state and the locale output file SHA still\n * matches => fresh, skip.\n * - Else: rebuild the same chunk schemas, ship the source labels +\n * the SAME spec context the labellize step used + the primary\n * values to the agent, write the per-unit translated file, and\n * update the lock with the new locale entry.\n *\n * \"Same context + primary value\" is the user-mandated invariant: the\n * translator must not see less context than the labellizer.\n */\n@injectable()\nexport class TranslateOrchestratorCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(SAAS_SERVICE_TYPES.AppConfigService)\n private readonly appConfigService: AppConfigurationService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.LabellingPlannerService) private readonly planner: LabellingPlannerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.WildoSaasLockService) private readonly lockService: WildoSaasLockCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService) private readonly traceability: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService)\n private readonly emailTemplateUnits: EmailTemplateLabellingUnitsCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('TranslateOrchestrator');\n }\n\n /**\n * Translate every planned unit into `targetLocales` — the generated i18n units AND, since #1908, every\n * email template's words. `unitIdFilter` may name units of either lane (see {@link TranslateOptions}).\n */\n public async translate(\n options: TranslateOptions,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const filterIds = options.unitIdFilter ?? null;\n const lanes: TranslateLaneSelection = filterIds === null\n ? { i18nUnits: true, emailTemplates: true }\n : {\n i18nUnits: filterIds.some((id) => !isEmailTemplateLabellingUnitId(id)),\n emailTemplates: filterIds.some((id) => isEmailTemplateLabellingUnitId(id)),\n };\n return await this.runTranslate(options, lanes, providedSession);\n }\n\n /**\n * Translate ONLY email templates — every one, or the `templateRefs` named. The door the email\n * generation step and `wildo generate email translate` go through, so they run the very lane\n * `wildo generate translate` runs, with its lock, rather than a second translator of the same files.\n */\n public async translateEmailTemplates(\n options: { targetLocales: AvailableLanguage[]; forceRetranslate?: boolean; templateRefs?: readonly string[] },\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const { targetLocales, forceRetranslate, templateRefs } = options;\n return await this.runTranslate(\n {\n targetLocales,\n ...(forceRetranslate !== undefined ? { forceRetranslate } : {}),\n ...(templateRefs && templateRefs.length > 0\n ? { unitIdFilter: templateRefs.map((templateRef) => emailTemplateLabellingUnitId(templateRef)) }\n : {}),\n },\n { i18nUnits: false, emailTemplates: true },\n providedSession,\n );\n }\n\n private async runTranslate(\n options: TranslateOptions,\n lanes: TranslateLaneSelection,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = [...new Set(options.targetLocales ?? [])];\n if (targetLocales.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'targetLocales is required and must be a non-empty array' },\n });\n }\n rejectPrimaryLocaleTarget(targetLocales, primaryLocale, this.errorBuilder);\n\n const filter = options.unitIdFilter ? new Set(options.unitIdFilter) : null;\n\n // Trace under the CALLER's session when provided (controller's per-request\n // `POST /labelling/translate` session) so artifacts land in the session the\n // user inspects; fall back to a self-owned `internal` session for\n // direct/CLI/test callers. Gated no-op at the default NONE level (translated\n // output byte-identical). At DEBUG_VERBOSE it captures, per unit×locale, the\n // source strings + replayed spec context + the exact prompt + the LLM\n // response + token usage.\n const traceSession = providedSession ?? this.traceability.createInternalSession({\n label: 'translate-run',\n metadata: {\n run: 'translate',\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n unitIdFilter: options.unitIdFilter ?? null,\n lanes,\n },\n });\n\n const tally: TranslateRunTally = { details: [], updated: 0, fresh: 0, failed: 0, skipped: 0 };\n let unitCount = 0;\n\n if (lanes.i18nUnits) {\n const i18nRoot = this.resolveI18nRoot();\n const allUnits = await this.planner.planAllUnits();\n const units = filter ? allUnits.filter((u) => filter.has(u.id)) : allUnits;\n unitCount += units.length;\n\n for (const unit of units) {\n /*\n * Translation prunes every target-locale key the plan does not hold and records the locale\n * `fresh`, so a unit planned from incomplete inputs would lose its words in every locale and\n * never be revisited. Refused here exactly as labellize refuses it — see `incompletePlanRefusal`.\n */\n const refusal = incompletePlanRefusal(unit);\n if (refusal) {\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: refusal });\n }\n this.logger.warn('Translate unit refused — planned from incomplete inputs', {\n unitId: unit.id,\n reasons: unit.plannedFromIncompleteInputs,\n });\n continue;\n }\n const sourceFilePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: primaryLocale });\n let sourceFlat: Record<string, string>;\n try {\n sourceFlat = await readPerUnitLabels(sourceFilePath);\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Failed to read source: ${message}`,\n });\n }\n continue;\n }\n\n if (Object.keys(sourceFlat).length === 0) {\n for (const targetLocale of targetLocales) {\n tally.skipped++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale }),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n continue;\n }\n\n // Spec context is loaded ONCE per unit and reused across locales.\n const specContext = await unit.loadSpecContext();\n\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateUnitForLocale({\n unit,\n sourceLocale: primaryLocale,\n targetLocale,\n sourceFlat,\n specContext,\n i18nRoot,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n });\n tally.details.push(result);\n this.countResult(tally, result.status);\n } catch (err: unknown) {\n tally.failed++;\n const message = describeCaughtError(err);\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: message,\n });\n }\n }\n }\n }\n\n if (lanes.emailTemplates) {\n unitCount += await this.runEmailTemplateLane({\n filter,\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n tally,\n });\n }\n\n const { details, updated, fresh, failed, skipped } = tally;\n await this.traceability.traceEvent({\n session: traceSession,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-run-complete',\n summary: `Translated ${unitCount} unit(s) → [${targetLocales.join(', ')}]: ${updated} updated, ${fresh} fresh, ${skipped} skipped, ${failed} failed`,\n payload: { primaryLocale, targetLocales, totalRoundtrips: details.length, updated, fresh, skipped, failed },\n });\n if (traceSession.traceabilityLevel !== CompanionTraceabilityLevel.NONE) {\n this.logger.info('Translate trace session written', {\n sessionId: traceSession.sessionId,\n sessionDir: traceSession.sessionDirPath,\n });\n }\n\n return {\n primaryLocale,\n totalRoundtrips: details.length,\n updated,\n fresh,\n failed,\n skipped,\n details,\n };\n }\n\n private countResult(tally: TranslateRunTally, status: I18nUnitRunStatus): void {\n if (status === I18nUnitRunStatus.FRESH) tally.fresh++;\n else if (status === I18nUnitRunStatus.UPDATED) tally.updated++;\n else if (status === I18nUnitRunStatus.SKIPPED) tally.skipped++;\n else tally.failed++;\n }\n\n // ─── Email lane (#1908) ────────────────────────────────────────────────────\n\n /**\n * Translate every planned email template into `targetLocales`, adding each roundtrip to `tally`.\n * Returns the number of email units considered.\n *\n * A planning failure (the backend introspection that locates email roots could not answer) is one\n * FAILED roundtrip per locale under the lane's bucket name rather than a thrown run: the i18n lane of\n * the same run may already have written its files, and the caller must still be told both outcomes.\n */\n private async runEmailTemplateLane(args: {\n filter: ReadonlySet<string> | null;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n tally: TranslateRunTally;\n }): Promise<number> {\n const { filter, primaryLocale, targetLocales, forceRetranslate, traceSession, tally } = args;\n\n let units: EmailTemplateLabellingUnit[];\n try {\n units = (await this.emailTemplateUnits.planEmailTemplateUnits()).units;\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n this.logger.error('Email template translation could not be planned', { error: message });\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({\n unitId: EMAIL_TEMPLATE_LABELLING_BUCKET,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Could not locate the application's email templates: ${message}`,\n });\n }\n return 0;\n }\n if (filter) units = units.filter((unit) => filter.has(unit.id));\n\n for (const unit of units) {\n const sourcePath = labelsFilePath(unit.templateDirectory, primaryLocale);\n let source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n try {\n const content = await fs.readFile(sourcePath, 'utf-8');\n const parsed = parseEmailLabelsTreeSource(content);\n source = { content, parsed, words: flattenEmailLabelsTree(parsed.tree) };\n } catch (err: unknown) {\n const message = (err as NodeJS.ErrnoException)?.code === 'ENOENT'\n ? `The template has no primary-locale words to translate: ${sourcePath} does not exist`\n : `Failed to read ${sourcePath}: ${describeCaughtError(err)}`;\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: message });\n }\n continue;\n }\n\n if (Object.keys(source.words).length === 0) {\n for (const targetLocale of targetLocales) {\n tally.skipped++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: labelsFilePath(unit.templateDirectory, targetLocale),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n continue;\n }\n\n const specContext = await unit.loadSpecContext();\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateEmailTemplateUnitForLocale({\n unit,\n source,\n sourceLocale: primaryLocale,\n targetLocale,\n specContext,\n forceRetranslate,\n traceSession,\n });\n tally.details.push(result);\n this.countResult(tally, result.status);\n } catch (err: unknown) {\n tally.failed++;\n tally.details.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: describeCaughtError(err),\n });\n }\n }\n }\n return units.length;\n }\n\n /**\n * One email template × one locale.\n *\n * ## Freshness\n *\n * The lock row is `units[\"email_template:<ref>\"]`. Both hashes are of the AUTHORED primary file:\n * `inputSha` and `primarySha` are that file's SHA, because for an authored source the file IS the\n * input. A locale is fresh when the recorded source SHA and the locale file's SHA both still match\n * the disk — an unchanged English file is not re-translated, and a hand edit to either side is not\n * silently honoured.\n *\n * When the English file changed, every OTHER locale of the unit is marked `stale` in the same write,\n * which is what labellize does to a generated unit whose primary changed. Without it, translating\n * `fr` would record the new source SHA and leave `de` reading as fresh against words it never saw.\n *\n * ## Why the whole email is re-translated when its English changes\n *\n * The i18n lane translates only the keys whose primary words changed (`staleKeys`, #1409), because\n * the labeller knows which ones did. Nothing records the previous English of an authored email, so\n * the only per-key alternative is storing a hash per key in the lock — rejected: an email is ONE\n * message of a few dozen words read top to bottom, and re-translating it whole keeps its register\n * consistent, where patching one sentence into an older translation can leave the message reading\n * as two voices.\n *\n * ## Written whole, or not at all\n *\n * See `judgeEmailTranslation`: a missing key or a placeholder that did not survive fails the\n * roundtrip and leaves any previous file untouched, because the file's existence is what the backend\n * counts as \"this email covers the locale\".\n */\n private async translateEmailTemplateUnitForLocale(args: {\n unit: EmailTemplateLabellingUnit;\n source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n }): Promise<TranslateUnitResult> {\n const { unit, source, sourceLocale, targetLocale, specContext, forceRetranslate, traceSession } = args;\n const targetPath = labelsFilePath(unit.templateDirectory, targetLocale);\n const sourceSha = this.lockService.hashString(source.content);\n\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (!forceRetranslate && existing?.primarySha === sourceSha && localeEntry?.status === 'fresh' && localeEntry.outputSha) {\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n if (onDiskTargetSha === localeEntry.outputSha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Email locale lock says fresh but the locale file drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n });\n }\n\n // The context replayed into the prompt, recorded like the i18n lane's so a reviewer can confirm the\n // translator saw the email's purpose and not only its words.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n const keys = Object.keys(source.words);\n const assemblies: TranslatedChunkAssembly[] = [];\n for (const chunk of chunkKeys(unit.id, keys)) {\n const chunkSource: Record<string, string> = {};\n for (const key of chunk.keys) chunkSource[key] = source.words[key]!;\n assemblies.push(await this.translateChunkKeys({\n unit,\n chunk,\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSource,\n traceSession,\n step,\n }));\n }\n\n const verdict = judgeEmailTranslation({ keys, sourceWords: source.words, assemblies });\n if (!verdict.accepted) {\n this.logger.error('Email translation refused — nothing written for this locale', {\n unitId: unit.id,\n targetLocale,\n reason: verdict.reason,\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${verdict.reason}`,\n };\n }\n const corrupt = Object.entries(verdict.words).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${corrupt.length} translated value(s) carry a control character (${corrupt.join(', ')})`,\n };\n }\n\n const content = formatTranslatedEmailLabelsFile({\n localeCode: targetLocale,\n localeDisplayName: LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale,\n sourceFileName: path.basename(labelsFilePath(unit.templateDirectory, sourceLocale)),\n tree: mapEmailLabelsTreeLeaves(source.parsed.tree, verdict.words),\n labelsTypeName: source.parsed.labelsTypeName,\n usesAsConst: source.parsed.usesAsConst,\n });\n await writeFileAtomic(targetPath, content);\n\n const sourceChanged = existing?.primarySha !== undefined && existing.primarySha !== sourceSha;\n const locales: Record<string, I18nLockLocaleEntry> = {};\n for (const [locale, entry] of Object.entries(existing?.locales ?? {})) {\n locales[locale] = sourceChanged ? { ...entry, status: 'stale' } : entry;\n }\n locales[targetLocale] = {\n status: 'fresh',\n outputSha: this.lockService.hashString(content),\n lastTranslatedAt: new Date().toISOString(),\n };\n const entry: I18nLockUnitEntry = {\n category: unit.category,\n displayLabel: unit.displayLabel,\n inputSha: sourceSha,\n primarySha: sourceSha,\n locales,\n };\n await this.lockService.upsertI18nUnit(\n unit.id,\n entry,\n // Only a missing section is created here, with the configured primary locale; an existing one\n // keeps the primary locale labellize recorded (translation never rewrites that identity).\n section ? undefined : sourceLocale,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateUnitForLocale(args: {\n unit: LabellingUnit;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n sourceFlat: Record<string, string>;\n specContext: LabellingUnitSpecContext | undefined;\n i18nRoot: string;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n }): Promise<TranslateUnitResult> {\n const { unit, sourceLocale, targetLocale, sourceFlat, specContext, i18nRoot, forceRetranslate, traceSession } = args;\n\n const targetPath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale });\n const sourcePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: sourceLocale });\n\n // One trace step per unit×locale; the source strings + prompt + response\n // land under it (materialized only when a gated write actually fires).\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (\n !forceRetranslate\n && existing?.primarySha\n && localeEntry?.status === 'fresh'\n && localeEntry.outputSha\n ) {\n // Verify both the on-disk source AND target file hashes still\n // match what's recorded. A hand-edit / branch switch / `git\n // checkout` of either file out-of-band must NOT be silently\n // honored as \"fresh\".\n const onDiskSourceSha = await this.computeFileShaIfExists(sourcePath);\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n const sourceMatches = onDiskSourceSha === existing.primarySha;\n const targetMatches = onDiskTargetSha === localeEntry.outputSha;\n if (sourceMatches && targetMatches) {\n this.logDebug('Locale fresh — skipping agent call', {\n unitId: unit.id,\n targetLocale,\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Locale lock says fresh but on-disk content drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n sourceMatches,\n targetMatches,\n });\n }\n\n // We refuse to translate a unit that was never labellized. The\n // primary file's hash space (formatted TS file content, set by\n // labellize) is NOT interchangeable with the source-flat JSON hash\n // we'd otherwise have to fabricate here, and lying about it\n // permanently invalidates the labellize cache for this unit.\n if (!existing?.inputSha || !existing?.primarySha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-skipped',\n summary: `Unit ${unit.id} → ${targetLocale} skipped — no labellize state`,\n payload: { unitId: unit.id, targetLocale },\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.SKIPPED,\n error: 'Unit has no recorded labellize state; run labellize first',\n };\n }\n\n const existingTargetFlat = await readPerUnitLabels(targetPath);\n const targetFlat: Record<string, string> = { ...existingTargetFlat };\n\n // The spec context replayed into the translation prompt (the same one the\n // labellize step used) — recorded so a reviewer can confirm the translator\n // saw no less context than the labellizer (the user-mandated invariant).\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n hints: specContext?.hints ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n /*\n * Which keys to translate (#1409). When the labeller recorded exactly which primary words changed,\n * only those are sent, plus any key this locale has no word for yet; every other translation is\n * kept. Re-translating an unchanged word only re-words it — measured on the security-settings unit,\n * where adding six English keys re-worded the whole French file. Absent `staleKeys` means the\n * change could not be named (a forced run, a hand edit, an older lock), so everything is sent.\n */\n const onlyKeys = !forceRetranslate && localeEntry?.status === 'stale' && Array.isArray(localeEntry.staleKeys)\n ? new Set(localeEntry.staleKeys)\n : undefined;\n const needsTranslation = (key: string): boolean =>\n onlyKeys === undefined\n || onlyKeys.has(key)\n || typeof existingTargetFlat[key] !== 'string'\n || existingTargetFlat[key]!.trim() === '';\n\n for (const chunk of unit.chunks) {\n const chunkSourceEntries: Record<string, string> = {};\n for (const key of chunk.keys) {\n if (!needsTranslation(key)) continue;\n const v = sourceFlat[key];\n if (typeof v === 'string') chunkSourceEntries[key] = v;\n }\n if (Object.keys(chunkSourceEntries).length === 0) continue;\n\n const chunkResult = await this.translateChunk({\n unit,\n // Narrowed to the keys being sent: the chunk's key list is what the model is asked to return,\n // and asking for a key it was given no source for invites an invented word.\n chunk: { ...chunk, keys: Object.keys(chunkSourceEntries) },\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSourceEntries,\n traceSession,\n step,\n });\n Object.assign(targetFlat, chunkResult);\n }\n\n const plannedSet = new Set(unit.chunks.flatMap((chunk) => chunk.keys));\n for (const key of Object.keys(targetFlat)) {\n if (!plannedSet.has(key)) delete targetFlat[key];\n }\n\n const localeDisplayName = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n const writtenContent = await writePerUnitLabels({\n filePath: targetPath,\n localeCode: targetLocale,\n localeDisplayName,\n isPrimaryLocale: false,\n flatEntries: targetFlat,\n });\n\n const outputSha = this.lockService.hashString(writtenContent);\n const updatedLocales = { ...(existing?.locales ?? {}) };\n updatedLocales[targetLocale] = {\n status: 'fresh',\n outputSha,\n lastTranslatedAt: new Date().toISOString(),\n };\n\n // `existing` is guaranteed non-null by the early-return guard above;\n // we never fabricate `inputSha` / `primarySha` here because they\n // belong to the labellize hash space, not translate's.\n const updatedEntry: I18nLockUnitEntry = {\n category: existing.category,\n displayLabel: existing.displayLabel,\n inputSha: existing.inputSha,\n primarySha: existing.primarySha,\n lastLabellizedAt: existing.lastLabellizedAt,\n locales: updatedLocales,\n };\n\n await this.lockService.upsertI18nUnit(\n unit.id,\n updatedEntry,\n undefined,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateChunk(args: {\n unit: LabellingUnit;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<Record<string, string>> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n // The i18n lane keeps the source-word fallback the assembly already applied (see\n // `assembleTranslatedChunkResult`); only the email lane refuses on a gap.\n return (await this.translateChunkKeys({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step,\n })).values;\n }\n\n /**\n * Build the translation prompt for `requestedKeys`.\n *\n * `requestedKeys` is the whole chunk on the first pass and only the outstanding\n * keys on a repair pass, so the source block, the variable-key contract and the\n * omission correction all narrow together — a three-key repair request must not\n * re-send eighty-seven strings it is not being asked to translate.\n */\n private buildTranslatePrompt(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n requestedKeys: readonly string[];\n omittedKeys: readonly string[];\n /**\n * Placeholder drift measured on the previous response, rendered as an\n * explicit per-key correction. Mirrors the labellize prompt's retry block:\n * naming the exact tokens to add/remove is what makes the repair pass\n * reliable, rather than restating the general contract and hoping.\n */\n priorDrift?: readonly PlaceholderDrift[];\n }): string {\n const { unit, chunk, sourceLocale, targetLocale, specContext, requestedKeys, omittedKeys, priorDrift } = args;\n const sourceEntries = Object.fromEntries(\n requestedKeys.filter((key) => args.sourceEntries[key] !== undefined).map((key) => [key, args.sourceEntries[key]!]),\n );\n\n const sourceLanguage = LANGUAGE_INFO_MAP[sourceLocale]?.name ?? sourceLocale;\n const targetLanguage = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n\n // Scan the SOURCE values for runtime variable keys (the `{token}`s). Done by\n // scanning — not chunk.keyParams — so it's accurate to exactly what is being\n // translated and works for EVERY bucket, not just keyParam-threaded\n // components. Listing them explicitly + \"these are variables, not words\" is\n // the strongest guard against the model translating `{limit}` → `{limite}`.\n //\n // The scan goes through the shared extractor so the set stated in the prompt\n // and the set the answer is VALIDATED against are produced by one grammar —\n // a prompt that promised different tokens from the ones the check enforces\n // would fail every repair pass for a reason nobody could read.\n const varsByKey: Array<{ key: string; tokens: string[] }> = [];\n for (const [key, value] of Object.entries(sourceEntries)) {\n const tokens = extractLabelPlaceholderTokens(value);\n if (tokens.length > 0) varsByKey.push({ key, tokens });\n }\n\n const lines: string[] = [\n unit.category === LabellingUnitCategory.EMAIL_TEMPLATE\n // An email is read as a message, not scanned as interface chrome: say so, or the model\n // applies UI brevity rules to a paragraph a recipient reads top to bottom.\n ? `Translate the words of one transactional email from ${sourceLanguage} to ${targetLanguage} for a professional SaaS application (${unit.displayLabel}). Keep the email's tone and completeness; subject lines and buttons stay as short as the source's.`\n : `Translate these UI labels from ${sourceLanguage} to ${targetLanguage} for a professional SaaS web app (${unit.category} \"${unit.displayLabel}\").`,\n ];\n\n // Same context the labellizer saw (terminology + tone), replayed for\n // consistency. No structured-hints dump — the description carries it.\n if (specContext?.description) {\n lines.push('', '# Context (for terminology & tone)', specContext.description.trim());\n }\n\n // Variable-key contract — the placeholders are NOT words to translate.\n if (varsByKey.length > 0) {\n lines.push(\n '',\n '# Variable keys — DO NOT translate',\n 'The single-brace tokens below are runtime VARIABLE KEYS: the app substitutes live values for them at render time. They are NOT words. Copy each one into your translation EXACTLY as written (identical spelling, identical { } braces) — never translate, localize, rename, reorder away, add, or drop one. Each translated value MUST contain exactly the same variable keys as its source — no more, no fewer.',\n 'Variable keys by source string:',\n );\n const keyMeta = chunk.keyMeta ?? {};\n for (const { key, tokens } of varsByKey) {\n const meanings = keyMeta[key]?.paramMeanings;\n const rendered = tokens.map((t) => {\n const m = meanings?.[t];\n return m ? `{${t}} (${m})` : `{${t}}`;\n }).join(' ');\n lines.push(` ${key} → ${rendered}`);\n }\n }\n\n const isEmail = unit.category === LabellingUnitCategory.EMAIL_TEMPLATE;\n lines.push(\n '',\n '# Rules',\n `- Use natural ${targetLanguage} ${isEmail ? 'email' : 'UI'} conventions: do NOT copy English Title Case — apply the casing ${targetLanguage} uses (most languages, including French, use sentence case: capitalize only the first word and proper nouns).`,\n `- Apply ${targetLanguage} typography (e.g. French uses a narrow no-break space before : ; ! ? and « guillemets » for quotes).`,\n // The UI brevity rule would tell the model to cut an email paragraph down to a label; an email is\n // read top to bottom, so it keeps its sentences and only its short parts stay short (#1908).\n isEmail\n ? \"- Keep the email's completeness and tone: translate every sentence of a paragraph, add nothing the source does not say, and keep subject lines, headings, buttons and field names as short as the source's.\"\n : \"- Match the source's brevity: translate as the SHORTEST natural UI copy — never lengthen, never add words the source omits, never re-introduce filler. A 2-word source label becomes a 2-word target label, not a sentence.\",\n '- Never introduce internal/framework jargon the source avoids (e.g. resource/ressource, entity/entité, record/enregistrement): mirror the register + wording the source uses.',\n `- Preserve the SOURCE's register: if the source reads as operator/admin-console or developer/technical copy (not casual consumer wording), keep that same register in ${targetLanguage} — don't casualize it, and don't make end-user copy more technical.`,\n `- A label that names a relationship to another thing stays a relationship NAME in ${targetLanguage} (e.g. \"Assignee\" → \"Responsable\" / \"Assigné\", \"Owner\" → \"Propriétaire\") — never an identifier, never reintroduce \"ID\" / \"Id\" or a technical reference term.`,\n '- Keep terminology consistent across every key; aria phrases stay self-contained and natural to read aloud.',\n );\n\n lines.push(\n '',\n '# Source (translate the values)',\n JSON.stringify(sourceEntries, null, 2),\n '',\n 'Return a translated value for every key. Do not omit any field.',\n );\n\n // Omission correction — the model silently dropped these keys from its\n // previous response. They are the only keys in the source block above.\n if (omittedKeys.length > 0) {\n lines.push(\n '',\n `# Correction — your previous response left out ${omittedKeys.length} key(s). They are the ONLY keys above. Return every one of them.`,\n );\n }\n\n // Placeholder-drift correction — the model DID answer these keys and got the\n // variable keys wrong. Distinct from the omission block above on purpose: a\n // \"you left this out\" instruction against a key that was answered reads as\n // contradicting the model's own transcript and is the weakest possible\n // correction. Name the exact tokens instead.\n const relevantDrift = (priorDrift ?? []).filter((drift) => requestedKeys.includes(drift.key));\n if (relevantDrift.length > 0) {\n lines.push('', '# Correction — your previous translation used the wrong variable keys. Fix EXACTLY these keys:');\n for (const drift of relevantDrift) {\n const expected = drift.expected.length ? drift.expected.map((token) => `{${token}}`).join(' ') : 'no variable keys at all';\n const fixes = [`use ${expected}`];\n if (drift.unexpected.length > 0) fixes.push(`remove ${drift.unexpected.map((token) => `{${token}}`).join(' ')}`);\n if (drift.missing.length > 0) fixes.push(`add ${drift.missing.map((token) => `{${token}}`).join(' ')}`);\n lines.push(` ${drift.key}: ${fixes.join('; ')}`);\n }\n }\n\n return lines.join('\\n');\n }\n\n /**\n * Run one physical translation call for `requestedKeys` and return the raw\n * parsed object. Filtering and fallback belong to the caller.\n */\n private async invokeTranslateChunkAgent(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n targetLocale: AvailableLanguage;\n requestedKeys: readonly string[];\n prompt: string;\n traceContext: AgentTraceContext | undefined;\n }): Promise<Record<string, unknown>> {\n const { unit, chunk, targetLocale, requestedKeys, prompt, traceContext } = args;\n const schema = chunk.buildOutputSchema(requestedKeys);\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema,\n z.ZodSchema<Record<string, string | undefined>>\n > = {\n agentRef: 'labelling.translation.agent',\n initiator: {},\n invocationContext: [],\n input: { prompt, schema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const parsed = (response.output as { object?: Record<string, unknown> })?.object;\n if (!parsed || typeof parsed !== 'object') {\n // The engine now says WHY there is no object; carry it into the message an operator\n // actually sees. Without this the reason existed only in the companion's own log\n // (the preceding `GENERATE_STRUCTURED` line), so the CLI summary — the surface a\n // human reads — reported a bare \"invalid output\" for a truncated completion, a\n // refusal, and a schema the model half-filled, alike. `validationIssues` names the\n // exact paths that failed and is the single most useful half.\n const failure = readStructuredGenerationFailure(response.executionContext);\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.SERVICE_RESOURCE_VALIDATION_FAILED,\n context: {\n message: `Invalid translation output for unit ${unit.id} chunk ${chunk.chunkId} -> ${targetLocale}`\n + (failure ? ` — ${describeStructuredGenerationFailure(failure)}` : ''),\n ...(failure ? { structuredGenerationFailure: failure } : {}),\n },\n });\n }\n return parsed;\n }\n\n /**\n * Translate one chunk into `targetLocale`, re-requesting any key the model\n * omits. A non-strict provider can silently drop leaves from a large flat\n * object, and the response schema now tolerates that (see\n * `LabellingUnitChunk.buildOutputSchema`) — so the gap is repaired here\n * instead of failing the whole unit.\n */\n private async translateChunkKeys(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<TranslatedChunkAssembly> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n\n /**\n * One physical translate call. Factored out because it is now driven from\n * TWO loops — the omission-repair loop and the placeholder-repair round —\n * and a second hand-written copy of the prompt/trace wiring is exactly how\n * the two would come to send different prompts for the same contract.\n */\n const invokeTranslatePass = async (pass: {\n requestedKeys: readonly string[];\n omittedByPreviousPass: readonly string[];\n priorDrift?: readonly PlaceholderDrift[];\n /** Trace label suffix identifying which loop and which pass this call is. */\n labelSuffix: string;\n /** Flat pass counter carried into the trace attributes. */\n passIndex: number;\n }): Promise<Record<string, unknown>> => {\n const prompt = this.buildTranslatePrompt({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries,\n requestedKeys: pass.requestedKeys,\n omittedKeys: pass.omittedByPreviousPass,\n priorDrift: pass.priorDrift,\n });\n // Correlate this chunk×locale×pass so the engine AgentCallTraceSink writes\n // the prompt + output (+usage/latency) into THIS unit's step. The caller\n // keeps only its DOMAIN artifact — the translated labels + source strings.\n const traceContext: AgentTraceContext | undefined = traceSession && step\n ? {\n sessionRef: traceSession.sessionId,\n stepRef: step.stepId,\n label: `translate.chunk-${chunk.chunkId}.${targetLocale}${pass.labelSuffix}`,\n attributes: {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: pass.requestedKeys.length,\n pass: pass.passIndex,\n },\n }\n : undefined;\n return await this.invokeTranslateChunkAgent({\n unit, chunk, targetLocale, requestedKeys: pass.requestedKeys, prompt, traceContext,\n });\n };\n\n const completion = await completeStructuredChunkKeys({\n keys: chunk.keys,\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n labelSuffix: pass === 1 ? '' : `.repair-${pass - 1}`,\n passIndex: pass,\n }),\n });\n\n if (completion.refusedKeys.length > 0) {\n // A corrupt answer, not an incomplete one (#1109): the value carried a control character and\n // was re-requested. Named separately from omissions, because a provider that mangles escapes\n // is a different failure from one that drops leaves, and only this line says which happened.\n this.logger.warn('Translation values carried control characters — refused and re-requested', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n refusedKeys: completion.refusedKeys,\n });\n }\n if (completion.missingKeys.length > 0) {\n // Repair budget spent. These keys fall back to the SOURCE-locale string, so\n // the file stays complete but shows untranslated text — name them, or the\n // only evidence is a reader noticing English in a French UI.\n this.logger.error('Translation keys still missing after repair passes — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n missingKeys: completion.missingKeys,\n });\n } else if (completion.passes > 1) {\n this.logger.warn('Structured translation response omitted keys — recovered by follow-up call(s)', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n keyCount: chunk.keys.length,\n });\n }\n\n // Assemble, enforcing the placeholder contract the prompt states. Until this\n // check existed, a key the model DID return with a mangled variable key —\n // `{limite}` for `{limit}`, or the token dropped entirely — was written\n // straight to the locale file with no signal of any kind. (The OMISSION case\n // was already reported at error level below; drift on a returned key was the\n // genuinely silent one.)\n let assembly = assembleTranslatedChunkResult({ keys: chunk.keys, sourceEntries, translatedValues: completion.values });\n\n // One bounded repair round over just the drifted keys, mirroring the\n // labellize orchestrator's drift retry. Scoped to the offenders rather than\n // re-translating the whole chunk: a three-key request naming the exact\n // tokens to fix is both cheaper and more reliable than re-rolling ninety\n // strings, and every clean translation in this chunk is already good.\n if (assembly.rejectedDrifts.length > 0) {\n const priorDrift = assembly.rejectedDrifts;\n this.logDebug('Translation placeholder drift detected — re-requesting the offending keys', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n offenders: priorDrift.map((drift) => drift.key),\n });\n const repair = await completeStructuredChunkKeys({\n keys: priorDrift.map((drift) => drift.key),\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n priorDrift,\n labelSuffix: `.placeholder-repair${pass === 1 ? '' : `.repair-${pass - 1}`}`,\n passIndex: completion.passes + pass,\n }),\n });\n // Re-assemble from the MERGED values: a key the repair round answered\n // cleanly is adopted, a key it answered badly is rejected again, and a key\n // it omitted keeps its original (still-drifted, still-rejected) value. All\n // three land correctly because the assembler re-checks everything.\n assembly = assembleTranslatedChunkResult({\n keys: chunk.keys,\n sourceEntries,\n translatedValues: { ...completion.values, ...repair.values },\n });\n }\n\n if (assembly.rejectedDrifts.length > 0) {\n // Repair spent and the variable keys still do not match the source. These\n // keys fall back to the SOURCE-locale string — untranslated, but with\n // working placeholders — rather than shipping text that renders `{limite}`\n // literally to a user and drops the value it was meant to carry. Name\n // them, exactly as the missing-key path does: otherwise the only evidence\n // is a reader noticing English in a French UI.\n this.logger.error('Translated placeholders still drifted after the repair round — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n drift: assembly.rejectedDrifts,\n });\n }\n\n const result = assembly.values;\n\n // Caller-owned domain artifact: the translated labels + the source strings\n // for this chunk×locale (the engine sink owns the raw prompt/output/usage\n // record). `translate-chunk` stays a domain event; usage now lives only in\n // the engine sink's agent-call-success event for this step.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: `chunk-${chunk.chunkId}.${targetLocale}.labels.json`,\n content: {\n object: result,\n sourceStrings: sourceEntries,\n // The drift that SURVIVED the repair round, so a reviewer reading the\n // artifact can tell a source-string fallback caused by a mangled\n // placeholder from one caused by a key the model never returned.\n drift: assembly.rejectedDrifts,\n },\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-chunk',\n summary: `Chunk ${chunk.chunkId} → ${targetLocale}: ${chunk.keys.length} key(s), ${assembly.rejectedDrifts.length} placeholder drift`,\n payload: {\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: chunk.keys.length,\n driftKeys: assembly.rejectedDrifts.map((drift) => drift.key),\n },\n });\n\n return assembly;\n }\n\n private async computeFileShaIfExists(filePath: string): Promise<string | undefined> {\n try {\n const content = await fs.readFile(filePath, 'utf-8');\n return this.lockService.hashString(content);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return undefined;\n throw err;\n }\n }\n\n private resolveI18nRoot(): string {\n const backendService = Object.values(this.companionContext.backendServices)[0];\n if (!backendService) {\n throw this.errorBuilder.buildFromStandardError(\n new Error('No backend service configured for per-unit i18n output'),\n undefined,\n {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'TranslateOrchestrator.resolveI18nRoot' },\n },\n );\n }\n return path.resolve(this.companionContext.saasRoot, backendService.path, 'src/engine/i18n');\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-tone-of-voice.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,sFAAsF;AACtF,UAAU,eAAe;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C;AAiBD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,GAAG,SAAS,CAShH;AAaD;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAgClF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,GAAG,OAAO,CAgBzF"}
1
+ {"version":3,"file":"application-tone-of-voice.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,sFAAsF;AACtF,UAAU,eAAe;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C;AAiBD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,GAAG,SAAS,CAShH;AAaD;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAgClF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,GAAG,OAAO,CAgBzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"application-tone-of-voice.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.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,IAAI,IAAI;SACvE;QACD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;QAC9B,UAAU,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QACzC,YAAY,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The application's own BRAND VOICE, rendered for the labellize prompt.\n *\n * ## Why labels owe this\n *\n * Every string a person reads in a generated application comes from the label tree, and until now\n * that tree was written in a voice nothing declared: the labelling agent's persona hard-codes \"a\n * professional tone of voice\", so an application that had carefully authored its own voice got\n * generic copy anyway. Wonder CRM declares `voice-clear-practical` — *\"Direct, calm language for\n * busy small teams … avoid enterprise jargon or unsupported superlatives\"* — and not one of its ~400\n * label units was written against it.\n *\n * The voice was never meant to sit unread. `market-tone-of-voice.schemas.ts` says so at its own\n * anchor: the snapshot is *\"consumed verbatim by prompt enrichment to keep market generation outputs\n * on-brand without re-deriving voice each call\"*. It reaches market copy, the expert-persona brief\n * and the brand renderer's visual register. Labels were the surface it never reached, and labels are\n * the surface a user actually reads.\n *\n * ## Exactly one voice, or none — never a guess\n *\n * `tonesOfVoice` is a LIST, and the other consumers resolve it differently on purpose: the market\n * context block keys voices BY REF because each message template names the one it is written in, and\n * the expert brief renders them ALL because a brief is a survey. Neither shape fits a label run,\n * which produces one body of copy and needs one register.\n *\n * So the rule is a measurement rather than a preference: when the application declares exactly ONE\n * voice, that is unambiguously the application's voice and it is used. When it declares several,\n * nothing in the market family says which governs UI copy — so this returns `undefined` and the\n * prompt keeps the register it had. Picking \"the first\" would be inventing a selector the schema\n * does not have, and a label tree written in a voice nobody chose is worse than one written in the\n * default: the default is at least legible as a default.\n *\n * When a product genuinely needs several voices AND labels, the honest fix is a declared selector on\n * the market family, not a tie-break here.\n */\n\n/** The four Nielsen-Norman axes, each an integer in `[-2, +2]` where 0 is neutral. */\ninterface ToneOfVoiceAxes {\n readonly funnySerious: number;\n readonly formalCasual: number;\n readonly respectfulIrreverent: number;\n readonly enthusiasticMatterOfFact: number;\n}\n\n/**\n * The shape this module reads, deliberately structural rather than the imported schema type.\n *\n * The value crosses the specifications boundary as plain data out of a compiled companion export, so\n * binding to the nominal type would couple this reader to that package's type identity for no gain —\n * the same reason `LabellingUnitSpecContext.audience` is typed `string | undefined` here rather than\n * as the `LabelAudience` enum it came from.\n */\nexport interface ApplicationToneOfVoice {\n readonly ref: string;\n readonly name: string;\n readonly description: string;\n readonly axes?: Partial<ToneOfVoiceAxes>;\n readonly address?: string;\n readonly doExamples?: readonly string[];\n readonly dontExamples?: readonly string[];\n}\n\n/** Each axis's two poles, negative first — the schema's own wording, so the prompt cannot invert one. */\nconst AXIS_POLES: Readonly<Record<keyof ToneOfVoiceAxes, readonly [string, string]>> = {\n funnySerious: ['funny', 'serious'],\n formalCasual: ['formal', 'casual'],\n respectfulIrreverent: ['respectful', 'irreverent'],\n enthusiasticMatterOfFact: ['enthusiastic', 'matter-of-fact'],\n};\n\n/** How the voice addresses the reader, so generated copy does not flip pronouns between labels. */\nconst ADDRESS_INSTRUCTION: Readonly<Record<string, string>> = {\n YOU: 'Address the reader as \"you\".',\n WE: 'Speak as \"we\".',\n THIRD_PERSON: 'Write in the third person; do not address the reader directly.',\n};\n\n/**\n * The application's voice for labelling, or `undefined` when there is no unambiguous one.\n *\n * Tolerant of every absence on the way down — no market family, no voices, a malformed entry — because\n * labelling must never fail for want of a voice. The consequence of `undefined` is the register the\n * prompt already had, which is exactly the behaviour every application has today.\n */\nexport function selectApplicationLabellingVoice(marketSpecification: unknown): ApplicationToneOfVoice | undefined {\n if (typeof marketSpecification !== 'object' || marketSpecification === null) return undefined;\n const voices = (marketSpecification as { tonesOfVoice?: unknown }).tonesOfVoice;\n if (!Array.isArray(voices) || voices.length !== 1) return undefined;\n const voice = voices[0] as Partial<ApplicationToneOfVoice> | null;\n if (typeof voice?.ref !== 'string' || typeof voice.name !== 'string' || typeof voice.description !== 'string') {\n return undefined;\n }\n return voice as ApplicationToneOfVoice;\n}\n\n/** One axis as a phrase — the pole it leans to and how far, never a bare number the model must interpret. */\nfunction describeAxis(axis: keyof ToneOfVoiceAxes, value: number | undefined): string | undefined {\n if (typeof value !== 'number' || !Number.isFinite(value)) return undefined;\n const [negative, positive] = AXIS_POLES[axis];\n if (value === 0) return `balanced between ${negative} and ${positive}`;\n const pole = value < 0 ? negative : positive;\n // |1| vs |2| is the whole point of a 5-point scale: \"leans\" and \"strongly\" are what stop a model\n // reading every non-zero axis as an absolute instruction.\n return `${Math.abs(value) >= 2 ? 'strongly' : 'leans'} ${pole}`;\n}\n\n/**\n * The `# Tone of voice` block for the labellize prompt.\n *\n * Examples are included verbatim and last, because they are the part that works: the schema bounds\n * them to 3–5 precisely so a model can triangulate a register from concrete sentences rather than\n * from adjectives, and putting them after the abstract description is what makes them read as\n * patterns to imitate rather than as content to reuse.\n */\nexport function renderToneOfVoicePromptBlock(voice: ApplicationToneOfVoice): string {\n const lines: string[] = [\n `# Tone of voice — write every label in THIS application's declared voice: \"${voice.name}\"`,\n voice.description,\n ];\n\n const axes = (Object.keys(AXIS_POLES) as (keyof ToneOfVoiceAxes)[])\n .map((axis) => {\n const described = describeAxis(axis, voice.axes?.[axis]);\n return described === undefined ? undefined : `- ${described}`;\n })\n .filter((line): line is string => line !== undefined);\n if (axes.length > 0) lines.push('Register:', ...axes);\n\n const address = voice.address === undefined ? undefined : ADDRESS_INSTRUCTION[voice.address];\n if (address !== undefined) lines.push(address);\n\n if (voice.doExamples && voice.doExamples.length > 0) {\n lines.push('Write LIKE these (imitate the register, never reuse the words):', ...voice.doExamples.map((e) => `- ${e}`));\n }\n if (voice.dontExamples && voice.dontExamples.length > 0) {\n lines.push('Do NOT write like these:', ...voice.dontExamples.map((e) => `- ${e}`));\n }\n\n /*\n * The voice shapes WORDING; it never licenses a longer label. Without this the do-examples — whole\n * marketing sentences — pull UI copy toward prose, which is the one thing the `# Style` block exists\n * to prevent. Stated here rather than relied upon from `# Style` because this block is read closer\n * to generation and the conflict is specifically between these two.\n */\n lines.push('This governs WORDING ONLY. It never overrides the length, casing or key-kind rules below.');\n return lines.join('\\n');\n}\n\n/**\n * The fingerprint contribution — the voice's MEANING, not the object.\n *\n * Every field rendered into the prompt is folded in and nothing else, so the equivalence this defines\n * is \"would the prompt read the same\". That is the rule the labellize fingerprint already applies to\n * per-key metadata and to `promptStyleVersion`: anything fed verbatim into the prompt must invalidate\n * the lock when it changes, or a unit keeps copy written against inputs that have moved.\n *\n * The consequence is the one the operator wants: adopting a voice, editing its description, moving an\n * axis or changing an example re-labellizes the application on the next ordinary run, with no force —\n * and a market edit that touches nothing this block renders changes no fingerprint and re-runs nothing.\n */\nexport function toneOfVoiceFingerprint(voice: ApplicationToneOfVoice | undefined): unknown {\n if (voice === undefined) return null;\n return {\n ref: voice.ref,\n name: voice.name,\n description: voice.description,\n axes: {\n funnySerious: voice.axes?.funnySerious ?? null,\n formalCasual: voice.axes?.formalCasual ?? null,\n respectfulIrreverent: voice.axes?.respectfulIrreverent ?? null,\n enthusiasticMatterOfFact: voice.axes?.enthusiasticMatterOfFact ?? null,\n },\n address: voice.address ?? null,\n doExamples: [...(voice.doExamples ?? [])],\n dontExamples: [...(voice.dontExamples ?? [])],\n };\n}\n"]}
1
+ {"version":3,"file":"application-tone-of-voice.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AA4BH,yGAAyG;AACzG,MAAM,UAAU,GAAuE;IACrF,YAAY,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;IAClC,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAClC,oBAAoB,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;IAClD,wBAAwB,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;CAC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n * Every string a person reads in a generated application comes from the label tree, and until now\n * that tree was written in a voice nothing declared: the labelling agent's persona hard-codes \"a\n * professional tone of voice\", so an application that had carefully authored its own voice got\n * generic copy anyway. Wonder CRM declares `voice-clear-practical` — *\"Direct, calm language for\n * busy small teams … avoid enterprise jargon or unsupported superlatives\"* — and not one of its ~400\n * label units was written against it.\n *\n * The voice was never meant to sit unread. `market-tone-of-voice.schemas.ts` says so at its own\n * anchor: the snapshot is *\"consumed verbatim by prompt enrichment to keep market generation outputs\n * on-brand without re-deriving voice each call\"*. It reaches market copy, the expert-persona brief\n * and the brand renderer's visual register. Labels were the surface it never reached, and labels are\n * the surface a user actually reads.\n *\n * ## Exactly one voice, or none — never a guess\n *\n * `tonesOfVoice` is a LIST, and the other consumers resolve it differently on purpose: the market\n * context block keys voices BY REF because each message template names the one it is written in, and\n * the expert brief renders them ALL because a brief is a survey. Neither shape fits a label run,\n * which produces one body of copy and needs one register.\n *\n * So the rule is a measurement rather than a preference: when the application declares exactly ONE\n * voice, that is unambiguously the application's voice and it is used. When it declares several,\n * nothing in the market family says which governs UI copy — so this returns `undefined` and the\n * prompt keeps the register it had. Picking \"the first\" would be inventing a selector the schema\n * does not have, and a label tree written in a voice nobody chose is worse than one written in the\n * default: the default is at least legible as a default.\n *\n * When a product genuinely needs several voices AND labels, the honest fix is a declared selector on\n * the market family, not a tie-break here.\n */\n\n/** The four Nielsen-Norman axes, each an integer in `[-2, +2]` where 0 is neutral. */\ninterface ToneOfVoiceAxes {\n readonly funnySerious: number;\n readonly formalCasual: number;\n readonly respectfulIrreverent: number;\n readonly enthusiasticMatterOfFact: number;\n}\n\n/**\n * The shape this module reads, deliberately structural rather than the imported schema type.\n *\n * The value crosses the specifications boundary as plain data out of a compiled companion export, so\n * binding to the nominal type would couple this reader to that package's type identity for no gain —\n * the same reason `LabellingUnitSpecContext.audience` is typed `string | undefined` here rather than\n * as the `LabelAudience` enum it came from.\n */\nexport interface ApplicationToneOfVoice {\n readonly ref: string;\n readonly name: string;\n readonly description: string;\n readonly axes?: Partial<ToneOfVoiceAxes>;\n readonly address?: string;\n readonly doExamples?: readonly string[];\n readonly dontExamples?: readonly string[];\n}\n\n/** Each axis's two poles, negative first — the schema's own wording, so the prompt cannot invert one. */\nconst AXIS_POLES: Readonly<Record<keyof ToneOfVoiceAxes, readonly [string, string]>> = {\n funnySerious: ['funny', 'serious'],\n formalCasual: ['formal', 'casual'],\n respectfulIrreverent: ['respectful', 'irreverent'],\n enthusiasticMatterOfFact: ['enthusiastic', 'matter-of-fact'],\n};\n\n/** How the voice addresses the reader, so generated copy does not flip pronouns between labels. */\nconst ADDRESS_INSTRUCTION: Readonly<Record<string, string>> = {\n YOU: 'Address the reader as \"you\".',\n WE: 'Speak as \"we\".',\n THIRD_PERSON: 'Write in the third person; do not address the reader directly.',\n};\n\n/**\n * The application's voice for labelling, or `undefined` when there is no unambiguous one.\n *\n * Tolerant of every absence on the way down — no market family, no voices, a malformed entry — because\n * labelling must never fail for want of a voice. The consequence of `undefined` is the register the\n * prompt already had, which is exactly the behaviour every application has today.\n */\nexport function selectApplicationLabellingVoice(marketSpecification: unknown): ApplicationToneOfVoice | undefined {\n if (typeof marketSpecification !== 'object' || marketSpecification === null) return undefined;\n const voices = (marketSpecification as { tonesOfVoice?: unknown }).tonesOfVoice;\n if (!Array.isArray(voices) || voices.length !== 1) return undefined;\n const voice = voices[0] as Partial<ApplicationToneOfVoice> | null;\n if (typeof voice?.ref !== 'string' || typeof voice.name !== 'string' || typeof voice.description !== 'string') {\n return undefined;\n }\n return voice as ApplicationToneOfVoice;\n}\n\n/** One axis as a phrase — the pole it leans to and how far, never a bare number the model must interpret. */\nfunction describeAxis(axis: keyof ToneOfVoiceAxes, value: number | undefined): string | undefined {\n if (typeof value !== 'number' || !Number.isFinite(value)) return undefined;\n const [negative, positive] = AXIS_POLES[axis];\n if (value === 0) return `balanced between ${negative} and ${positive}`;\n const pole = value < 0 ? negative : positive;\n // |1| vs |2| is the whole point of a 5-point scale: \"leans\" and \"strongly\" are what stop a model\n // reading every non-zero axis as an absolute instruction.\n return `${Math.abs(value) >= 2 ? 'strongly' : 'leans'} ${pole}`;\n}\n\n/**\n * The `# Tone of voice` block for the labellize prompt.\n *\n * Examples are included verbatim and last, because they are the part that works: the schema bounds\n * them to 3–5 precisely so a model can triangulate a register from concrete sentences rather than\n * from adjectives, and putting them after the abstract description is what makes them read as\n * patterns to imitate rather than as content to reuse.\n */\nexport function renderToneOfVoicePromptBlock(voice: ApplicationToneOfVoice): string {\n const lines: string[] = [\n `# Tone of voice — write every label in THIS application's declared voice: \"${voice.name}\"`,\n voice.description,\n ];\n\n const axes = (Object.keys(AXIS_POLES) as (keyof ToneOfVoiceAxes)[])\n .map((axis) => {\n const described = describeAxis(axis, voice.axes?.[axis]);\n return described === undefined ? undefined : `- ${described}`;\n })\n .filter((line): line is string => line !== undefined);\n if (axes.length > 0) lines.push('Register:', ...axes);\n\n const address = voice.address === undefined ? undefined : ADDRESS_INSTRUCTION[voice.address];\n if (address !== undefined) lines.push(address);\n\n if (voice.doExamples && voice.doExamples.length > 0) {\n lines.push('Write LIKE these (imitate the register, never reuse the words):', ...voice.doExamples.map((e) => `- ${e}`));\n }\n if (voice.dontExamples && voice.dontExamples.length > 0) {\n lines.push('Do NOT write like these:', ...voice.dontExamples.map((e) => `- ${e}`));\n }\n\n /*\n * The voice shapes WORDING; it never licenses a longer label. Without this the do-examples — whole\n * marketing sentences — pull UI copy toward prose, which is the one thing the `# Style` block exists\n * to prevent. Stated here rather than relied upon from `# Style` because this block is read closer\n * to generation and the conflict is specifically between these two.\n */\n lines.push('This governs WORDING ONLY. It never overrides the length, casing or key-kind rules below.');\n return lines.join('\\n');\n}\n\n/**\n * The fingerprint contribution — the voice's MEANING, not the object.\n *\n * Every field rendered into the prompt is folded in and nothing else, so the equivalence this defines\n * is \"would the prompt read the same\". That is the rule the labellize fingerprint already applies to\n * per-key metadata and to `promptStyleVersion`: anything fed verbatim into the prompt must invalidate\n * the lock when it changes, or a unit keeps copy written against inputs that have moved.\n *\n * The consequence is the one the operator wants: adopting a voice, editing its description, moving an\n * axis or changing an example re-labellizes the application on the next ordinary run, with no force —\n * and a market edit that touches nothing this block renders changes no fingerprint and re-runs nothing.\n */\nexport function toneOfVoiceFingerprint(voice: ApplicationToneOfVoice | undefined): unknown {\n if (voice === undefined) return null;\n return {\n ref: voice.ref,\n name: voice.name,\n description: voice.description,\n axes: {\n funnySerious: voice.axes?.funnySerious ?? null,\n formalCasual: voice.axes?.formalCasual ?? null,\n respectfulIrreverent: voice.axes?.respectfulIrreverent ?? null,\n enthusiasticMatterOfFact: voice.axes?.enthusiasticMatterOfFact ?? null,\n },\n address: voice.address ?? null,\n doExamples: [...(voice.doExamples ?? [])],\n dontExamples: [...(voice.dontExamples ?? [])],\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"declared-refusal-codes.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAOD,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,eAAe,EAAE,CAwBrH;AAED,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
1
+ {"version":3,"file":"declared-refusal-codes.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CA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uB,CAAC,EAAE,CAAC,CAAC,CAAC;AACrF,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,GAAG,cAAc,CAAC,eAAe,IAAI,IAAI,MAAM,CAAC;AACzD,CAAC","sourcesContent":["import { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\nimport { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The DECLARED refusal codes of an application's resources, and what each one means (#1048).\n *\n * A resource specification documents each failure mode of an operation as an `errorScenarios[]` entry:\n * `{ code, when, errorType?, customMessageReference?, errorCode? }`. `errorCode` is the operation's own\n * refusal code, returned as `error.code`, and `when` is the business-language trigger — for a custom\n * refusal, usually the REMEDY\n * (\"name the slot by its contract key\"). Nothing gave those codes words, so a form refused with one\n * showed only the generic validation sentence, and the remedy the specification documents never reached\n * the person.\n *\n * Collected by WALKING each specification for `errorScenarios` arrays rather than by naming the path to\n * them, because a scenario is authored on an operation or on one of its variants; a walker cannot miss a\n * nesting level a named path would.\n *\n * TOTAL over the declared `error.code` values. Only `errorCode` is read: a `customMessageReference` has its\n * words in `errors_messages` already, and an `errorType` is a framework vocabulary with its own labels.\n * Until those were separate fields (#1620) this planned words for `VALIDATION_FAILED`, `CONFLICT` and\n * uppercase enum KEYS — codes no error ever carried, so no refusal ever looked their words up. The\n * {@link ErrorCustomMessageReference} exclusion below stays as a guard against a value authored in the\n * wrong field.\n */\nexport interface DeclaredRefusal {\n readonly code: string;\n /** The distinct `when` texts authored for this code, in first-seen order. */\n readonly when: readonly string[];\n}\n\nconst ERROR_MESSAGE_REFERENCE_VALUES: ReadonlySet<string> = new Set(Object.values(ErrorCustomMessageReference));\n\n/** How many distinct `when` texts to carry into generation — enough to show the code's meaning, bounded. */\nconst MAX_WHEN_TEXTS_PER_CODE = 3;\n\nexport function collectDeclaredRefusals(specifications: Readonly<Record<string, unknown>>): readonly DeclaredRefusal[] {\n const byCode = new Map<string, string[]>();\n const visit = (node: unknown, depth: number): void => {\n if (depth > 12 || node === null || typeof node !== 'object') return;\n if (Array.isArray(node)) { for (const item of node) visit(item, depth + 1); return; }\n for (const [key, value] of Object.entries(node)) {\n if (key === 'errorScenarios' && Array.isArray(value)) {\n for (const scenario of value) {\n const { errorCode, when } = (scenario ?? {}) as { errorCode?: unknown; when?: unknown };\n if (typeof errorCode !== 'string' || errorCode.length === 0) continue;\n if (ERROR_MESSAGE_REFERENCE_VALUES.has(errorCode)) continue;\n const texts = byCode.get(errorCode) ?? [];\n if (typeof when === 'string' && when.length > 0 && !texts.includes(when)) texts.push(when);\n byCode.set(errorCode, texts);\n }\n continue;\n }\n visit(value, depth + 1);\n }\n };\n for (const specification of Object.values(specifications)) visit(specification, 0);\n return [...byCode.entries()]\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([code, when]) => ({ code, when: when.slice(0, MAX_WHEN_TEXTS_PER_CODE) }));\n}\n\n/** The label key a declared refusal's words live under. */\nexport function refusalLabelKey(code: string): string {\n return `${LabellingTypes.ERRORS_REFUSALS}.${code}.msg`;\n}\n"]}
1
+ {"version":3,"file":"declared-refusal-codes.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AA8BrE,MAAM,8BAA8B,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAEhH,4GAA4G;AAC5G,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAElC,MAAM,UAAU,uBAAuB,CAAC,cAAiD;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC3C,MAAM,KAAK,GAAG,CAAC,IAAa,EAAE,KAAa,EAAQ,EAAE;QACnD,IAAI,KAAK,GAAG,EAAE,IAAI,IAAI,KAAK,IAAI,IA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AAa,EAAE,CAAC,CAAC,CAAC;IACnF,OAAO,CAAC,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;SACzB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;SACpD,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,CAAC,CAAC;AACrF,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,GAAG,cAAc,CAAC,eAAe,IAAI,IAAI,MAAM,CAAC;AACzD,CAAC","sourcesContent":["import { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\nimport { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The DECLARED refusal codes of an application's resources, and what each one means (#1048).\n *\n * A resource specification documents each failure mode of an operation as an `errorScenarios[]` entry:\n * `{ code, when, errorType?, customMessageReference?, errorCode? }`. `errorCode` is the operation's own\n * refusal code, returned as `error.code`, and `when` is the business-language trigger — for a custom\n * refusal, usually the REMEDY\n * (\"name the slot by its contract key\"). Nothing gave those codes words, so a form refused with one\n * showed only the generic validation sentence, and the remedy the specification documents never reached\n * the person.\n *\n * Collected by WALKING each specification for `errorScenarios` arrays rather than by naming the path to\n * them, because a scenario is authored on an operation or on one of its variants; a walker cannot miss a\n * nesting level a named path would.\n *\n * TOTAL over the declared `error.code` values. Only `errorCode` is read: a `customMessageReference` has its\n * words in `errors_messages` already, and an `errorType` is a framework vocabulary with its own labels.\n * Until those were separate fields (#1620) this planned words for `VALIDATION_FAILED`, `CONFLICT` and\n * uppercase enum KEYS — codes no error ever carried, so no refusal ever looked their words up. The\n * {@link ErrorCustomMessageReference} exclusion below stays as a guard against a value authored in the\n * wrong field.\n */\nexport interface DeclaredRefusal {\n readonly code: string;\n /** The distinct `when` texts authored for this code, in first-seen order. */\n readonly when: readonly string[];\n}\n\nconst ERROR_MESSAGE_REFERENCE_VALUES: ReadonlySet<string> = new Set(Object.values(ErrorCustomMessageReference));\n\n/** How many distinct `when` texts to carry into generation — enough to show the code's meaning, bounded. */\nconst MAX_WHEN_TEXTS_PER_CODE = 3;\n\nexport function collectDeclaredRefusals(specifications: Readonly<Record<string, unknown>>): readonly DeclaredRefusal[] {\n const byCode = new Map<string, string[]>();\n const visit = (node: unknown, depth: number): void => {\n if (depth > 12 || node === null || typeof node !== 'object') return;\n if (Array.isArray(node)) { for (const item of node) visit(item, depth + 1); return; }\n for (const [key, value] of Object.entries(node)) {\n if (key === 'errorScenarios' && Array.isArray(value)) {\n for (const scenario of value) {\n const { errorCode, when } = (scenario ?? {}) as { errorCode?: unknown; when?: unknown };\n if (typeof errorCode !== 'string' || errorCode.length === 0) continue;\n if (ERROR_MESSAGE_REFERENCE_VALUES.has(errorCode)) continue;\n const texts = byCode.get(errorCode) ?? [];\n if (typeof when === 'string' && when.length > 0 && !texts.includes(when)) texts.push(when);\n byCode.set(errorCode, texts);\n }\n continue;\n }\n visit(value, depth + 1);\n }\n };\n for (const specification of Object.values(specifications)) visit(specification, 0);\n return [...byCode.entries()]\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([code, when]) => ({ code, when: when.slice(0, MAX_WHEN_TEXTS_PER_CODE) }));\n}\n\n/** The label key a declared refusal's words live under. */\nexport function refusalLabelKey(code: string): string {\n return `${LabellingTypes.ERRORS_REFUSALS}.${code}.msg`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"email-template-translation.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/email-template-translation.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAMlE;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAKtF;AAED,iFAAiF;AACjF,MAAM,MAAM,uBAAuB,GAC/B;IAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9C,UAAU,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAChD,GAAG,uBAAuB,CAqC1B"}
1
+ {"version":3,"file":"email-template-translation.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/email-template-translation.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAMlE;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAKtF;AAED,iFAAiF;AACjF,MAAM,MAAM,uBAAuB,GAC/B;IAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9C,UAAU,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAChD,GAAG,uBAAuB,CAqC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"email-template-translation.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/email-template-translation.utils.ts"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAa;IACtD,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,YAAY,CAAC;IAC3B,IAAI,KAA6B,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI;QAAE,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,OAAO,WAAW,CAAC,IAAI,EAAE,CAAC;AAC5B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAc,EAAE,UAAkB;IAC5E,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC;IAC9C,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/C,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EA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TER bar than a UI label\n *\n * The i18n lane repairs a gap by falling back to the SOURCE word for that key: the file stays complete,\n * the key shows English, and an error names it (`assembleTranslatedChunkResult`). For a UI bundle that\n * is right. For an email it is wrong, because the FILE's existence is the coverage claim: the backend\n * counts a template as covering `fr` the moment a `labels.fr.ts` sits beside it, and stops warning. A\n * French file carrying English words would silence the one signal that says French recipients are\n * reading English, while they keep reading it.\n *\n * So an email unit×locale is written WHOLE or not at all: any key the model did not answer, and any\n * key whose placeholders do not survive, fails the unit and leaves the previous file (if any) alone.\n */\nimport type { TranslatedChunkAssembly } from './label-placeholder-drift.utils';\n\n/**\n * Every placeholder OCCURRENCE in `value`, as its exact source text (`{appName}`), sorted.\n *\n * Deliberately stricter than `extractLabelPlaceholderTokens` (same `{name}` grammar as the runtime's `interpolateLabelParams`), which answers the DISTINCT names: a source\n * that says `{appName}` twice and a translation that says it once agree there, yet the recipient loses\n * a value. An email's placeholders must survive byte for byte and count for count.\n */\nexport function listPlaceholderOccurrences(value: string): string[] {\n const occurrences: string[] = [];\n const regex = /\\{(\\w+)\\}/g;\n let match: RegExpExecArray | null;\n while ((match = regex.exec(value)) !== null) occurrences.push(match[0]);\n return occurrences.sort();\n}\n\n/**\n * Restore the source's leading and trailing whitespace on a translated value.\n *\n * Email templates join fragments with live values — `' suspended a member'`, `' in '` — so the edge\n * spaces are STRUCTURE, not words: a model that trims `' in '` to `'dans'` produces \"Alicedansl'équipe\".\n * Normalising deterministically is safer than refusing (a model trims edges constantly and the fix is\n * never in doubt). A source that is ONLY whitespace is returned as-is.\n */\nexport function restoreSourceEdgeWhitespace(source: string, translated: string): string {\n if (source.trim().length === 0) return source;\n const leading = /^\\s*/.exec(source)?.[0] ?? '';\n const trailing = /\\s*$/.exec(source)?.[0] ?? '';\n return `${leading}${translated.trim()}${trailing}`;\n}\n\n/** The outcome of holding one email's translated words to the contract above. */\nexport type EmailTranslationVerdict =\n | { readonly accepted: true; readonly words: Record<string, string> }\n | { readonly accepted: false; readonly reason: string };\n\n/**\n * Accept or refuse one email unit×locale's assembled translation.\n *\n * @param keys - every key of the email, in source order.\n * @param sourceWords - the primary-locale words, keyed like `keys`.\n * @param assemblies - what the translation chunks produced (each already repaired once for drift).\n */\nexport function judgeEmailTranslation(args: {\n keys: readonly string[];\n sourceWords: Readonly<Record<string, string>>;\n assemblies: readonly TranslatedChunkAssembly[];\n}): EmailTranslationVerdict {\n const { keys, sourceWords, assemblies } = args;\n\n const missing = assemblies.flatMap((assembly) => assembly.missingKeys);\n if (missing.length > 0) {\n return { accepted: false, reason: `the translation left ${missing.length} label(s) unanswered: ${missing.join(', ')}` };\n }\n const drifted = assemblies.flatMap((assembly) => assembly.rejectedDrifts.map((drift) => drift.key));\n if (drifted.length > 0) {\n return { accepted: false, reason: `the translation changed the placeholders of ${drifted.length} label(s): ${drifted.join(', ')}` };\n }\n\n const translated: Record<string, string> = Object.assign({}, ...assemblies.map((assembly) => assembly.values));\n const words: Record<string, string> = {};\n const occurrenceMismatches: string[] = [];\n for (const key of keys) {\n const source = sourceWords[key];\n const value = translated[key];\n if (typeof source !== 'string' || typeof value !== 'string') {\n return { accepted: false, reason: `no translated words for label ${key}` };\n }\n const restored = restoreSourceEdgeWhitespace(source, value);\n const expected = listPlaceholderOccurrences(source);\n const emitted = listPlaceholderOccurrences(restored);\n if (expected.length !== emitted.length || expected.some((token, index) => token !== emitted[index])) {\n occurrenceMismatches.push(`${key} (source ${expected.join(' ') || 'none'}, translation ${emitted.join(' ') || 'none'})`);\n continue;\n }\n words[key] = restored;\n }\n if (occurrenceMismatches.length > 0) {\n return {\n accepted: false,\n reason: `the translation does not carry every placeholder occurrence of its source: ${occurrenceMismatches.join('; ')}`,\n };\n }\n return { accepted: true, words };\n}\n"]}
1
+ {"version":3,"file":"email-template-translation.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/email-template-translation.utils.ts"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAa;I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,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YACpG,oBAAoB,CAAC,IAAI,CAAC,GAAG,GAAG,YAAY,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,MAAM,iBAAiB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;YACzH,SAAS;QACX,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC;IACxB,CAAC;IACD,IAAI,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,OAAO;YACL,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,8EAA8E,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;SACxH,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACnC,CAAC","sourcesContent":["/**\n * The contract a translated email must meet before it is written (#1908).\n *\n * ## Why an email is held to a STRICTER bar than a UI label\n *\n * The i18n lane repairs a gap by falling back to the SOURCE word for that key: the file stays complete,\n * the key shows English, and an error names it (`assembleTranslatedChunkResult`). For a UI bundle that\n * is right. For an email it is wrong, because the FILE's existence is the coverage claim: the backend\n * counts a template as covering `fr` the moment a `labels.fr.ts` sits beside it, and stops warning. A\n * French file carrying English words would silence the one signal that says French recipients are\n * reading English, while they keep reading it.\n *\n * So an email unit×locale is written WHOLE or not at all: any key the model did not answer, and any\n * key whose placeholders do not survive, fails the unit and leaves the previous file (if any) alone.\n */\nimport type { TranslatedChunkAssembly } from './label-placeholder-drift.utils';\n\n/**\n * Every placeholder OCCURRENCE in `value`, as its exact source text (`{appName}`), sorted.\n *\n * Deliberately stricter than `extractLabelPlaceholderTokens` (same `{name}` grammar as the runtime's `interpolateLabelParams`), which answers the DISTINCT names: a source\n * that says `{appName}` twice and a translation that says it once agree there, yet the recipient loses\n * a value. An email's placeholders must survive byte for byte and count for count.\n */\nexport function listPlaceholderOccurrences(value: string): string[] {\n const occurrences: string[] = [];\n const regex = /\\{(\\w+)\\}/g;\n let match: RegExpExecArray | null;\n while ((match = regex.exec(value)) !== null) occurrences.push(match[0]);\n return occurrences.sort();\n}\n\n/**\n * Restore the source's leading and trailing whitespace on a translated value.\n *\n * Email templates join fragments with live values — `' suspended a member'`, `' in '` — so the edge\n * spaces are STRUCTURE, not words: a model that trims `' in '` to `'dans'` produces \"Alicedansl'équipe\".\n * Normalising deterministically is safer than refusing (a model trims edges constantly and the fix is\n * never in doubt). A source that is ONLY whitespace is returned as-is.\n */\nexport function restoreSourceEdgeWhitespace(source: string, translated: string): string {\n if (source.trim().length === 0) return source;\n const leading = /^\\s*/.exec(source)?.[0] ?? '';\n const trailing = /\\s*$/.exec(source)?.[0] ?? '';\n return `${leading}${translated.trim()}${trailing}`;\n}\n\n/** The outcome of holding one email's translated words to the contract above. */\nexport type EmailTranslationVerdict =\n | { readonly accepted: true; readonly words: Record<string, string> }\n | { readonly accepted: false; readonly reason: string };\n\n/**\n * Accept or refuse one email unit×locale's assembled translation.\n *\n * @param keys - every key of the email, in source order.\n * @param sourceWords - the primary-locale words, keyed like `keys`.\n * @param assemblies - what the translation chunks produced (each already repaired once for drift).\n */\nexport function judgeEmailTranslation(args: {\n keys: readonly string[];\n sourceWords: Readonly<Record<string, string>>;\n assemblies: readonly TranslatedChunkAssembly[];\n}): EmailTranslationVerdict {\n const { keys, sourceWords, assemblies } = args;\n\n const missing = assemblies.flatMap((assembly) => assembly.missingKeys);\n if (missing.length > 0) {\n return { accepted: false, reason: `the translation left ${missing.length} label(s) unanswered: ${missing.join(', ')}` };\n }\n const drifted = assemblies.flatMap((assembly) => assembly.rejectedDrifts.map((drift) => drift.key));\n if (drifted.length > 0) {\n return { accepted: false, reason: `the translation changed the placeholders of ${drifted.length} label(s): ${drifted.join(', ')}` };\n }\n\n const translated: Record<string, string> = Object.assign({}, ...assemblies.map((assembly) => assembly.values));\n const words: Record<string, string> = {};\n const occurrenceMismatches: string[] = [];\n for (const key of keys) {\n const source = sourceWords[key];\n const value = translated[key];\n if (typeof source !== 'string' || typeof value !== 'string') {\n return { accepted: false, reason: `no translated words for label ${key}` };\n }\n const restored = restoreSourceEdgeWhitespace(source, value);\n const expected = listPlaceholderOccurrences(source);\n const emitted = listPlaceholderOccurrences(restored);\n if (expected.length !== emitted.length || expected.some((token, index) => token !== emitted[index])) {\n occurrenceMismatches.push(`${key} (source ${expected.join(' ') || 'none'}, translation ${emitted.join(' ') || 'none'})`);\n continue;\n }\n words[key] = restored;\n }\n if (occurrenceMismatches.length > 0) {\n return {\n accepted: false,\n reason: `the translation does not carry every placeholder occurrence of its source: ${occurrenceMismatches.join('; ')}`,\n };\n }\n return { accepted: true, words };\n}\n"]}